MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / load

Method load

src/workspaces/headless-task-registry.ts:76–85  ·  view source on GitHub ↗
(
    path: string,
    logger: Logger,
    opts: { logsDir?: string } = {},
  )

Source from the content-addressed store, hash-verified

74 ) {}
75
76 static async load(
77 path: string,
78 logger: Logger,
79 opts: { logsDir?: string } = {},
80 ): Promise<HeadlessTaskRegistry> {
81 const reg = new HeadlessTaskRegistry(path, logger, opts.logsDir ?? null)
82 await reg.read()
83 await reg.reconcile()
84 return reg
85 }
86
87 private async read(): Promise<void> {
88 try {

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
reconcileMethod · 0.95

Tested by

no test coverage detected