MCPcopy Create free account
hub / github.com/arctic-cli/interface / state

Function state

packages/arctic/src/project/instance.ts:61–63  ·  view source on GitHub ↗
(init: () => S, dispose?: (state: Awaited<S>) => Promise<void>)

Source from the content-addressed store, hash-verified

59 return context.use().eventDirectory
60 },
61 state<S>(init: () => S, dispose?: (state: Awaited<S>) => Promise<void>): () => S {
62 return State.create(() => Instance.directory, init, dispose)
63 },
64 async dispose() {
65 Log.Default.info("disposing instance", { directory: Instance.directory })
66 await State.dispose(Instance.directory)

Callers 15

initFunction · 0.85
statusFunction · 0.85
getClientsFunction · 0.85
runFunction · 0.85
triggerFunction · 0.85
listFunction · 0.85
initFunction · 0.85
initFunction · 0.85
branchFunction · 0.85
getFunction · 0.85
listFunction · 0.85
removeFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected