MCPcopy Create free account
hub / github.com/anomalyco/opencode / disposeApps

Function disposeApps

packages/opencode/test/server/httpapi-exercise/backend.ts:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45const appCache: Partial<Record<string, CachedApp>> = {}
46
47export async function disposeApps() {
48 const apps = Object.values(appCache)
49 for (const key of Object.keys(appCache)) delete appCache[key]
50 await Promise.all(apps.flatMap((app) => (app === undefined ? [] : [app.dispose()])))
51}
52
53function app(modules: Runtime, options: CallOptions) {
54 const username = options.auth?.username

Callers 2

index.tsFile · 0.90
runner.tsFile · 0.90

Calls 3

valuesMethod · 0.45
allMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected