@skaile/workspaces 3.14.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +165 -0
- package/dist/{asset-feeds-STHKKTW3.js → asset-feeds-XSUE5LE6.js} +7 -7
- package/dist/{asset-feeds-STHKKTW3.js.map → asset-feeds-XSUE5LE6.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +1 -1
- package/dist/asset-manager/index.js +7 -7
- package/dist/asset-manager/installer.js +4 -4
- package/dist/asset-manager/renderers.js +2 -2
- package/dist/bridge/drivers/claude-sdk.js +9 -6
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +2 -2
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +4 -4
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +145 -6
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +4 -4
- package/dist/bridge/index.js +4 -4
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts +62 -0
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +1 -0
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/models.d.ts +27 -2
- package/dist/bridge/src/models.d.ts.map +1 -1
- package/dist/bridge/src/provider-endpoints.d.ts +39 -0
- package/dist/bridge/src/provider-endpoints.d.ts.map +1 -1
- package/dist/bridge/src/validation.d.ts +6 -1
- package/dist/bridge/src/validation.d.ts.map +1 -1
- package/dist/{chunk-ZSZSDBBW.js → chunk-4OQ2HQCQ.js} +5 -5
- package/dist/{chunk-ZSZSDBBW.js.map → chunk-4OQ2HQCQ.js.map} +1 -1
- package/dist/{chunk-GY5SLCH2.js → chunk-5WMFU575.js} +158 -13
- package/dist/chunk-5WMFU575.js.map +1 -0
- package/dist/{chunk-UTW6YKAC.js → chunk-6YDXCJGK.js} +2 -2
- package/dist/{chunk-UTW6YKAC.js.map → chunk-6YDXCJGK.js.map} +1 -1
- package/dist/{chunk-IRORTHGA.js → chunk-AN6NAFRT.js} +21 -7
- package/dist/chunk-AN6NAFRT.js.map +1 -0
- package/dist/{chunk-HYFJPR7W.js → chunk-CWTL2QWL.js} +7 -7
- package/dist/{chunk-HYFJPR7W.js.map → chunk-CWTL2QWL.js.map} +1 -1
- package/dist/{chunk-2A7BV6WT.js → chunk-DTSKPMP3.js} +9 -6
- package/dist/chunk-DTSKPMP3.js.map +1 -0
- package/dist/{chunk-IEX5YV4R.js → chunk-DVSASEGO.js} +3 -3
- package/dist/{chunk-IEX5YV4R.js.map → chunk-DVSASEGO.js.map} +1 -1
- package/dist/{chunk-XICDQVOG.js → chunk-DWO2N72K.js} +4 -4
- package/dist/{chunk-XICDQVOG.js.map → chunk-DWO2N72K.js.map} +1 -1
- package/dist/{chunk-AZPXCHDK.js → chunk-F2WTSHZS.js} +3 -4
- package/dist/chunk-F2WTSHZS.js.map +1 -0
- package/dist/{chunk-URB2QZ4W.js → chunk-FI4QNNMD.js} +5 -5
- package/dist/{chunk-URB2QZ4W.js.map → chunk-FI4QNNMD.js.map} +1 -1
- package/dist/{chunk-PGUTER7Z.js → chunk-FYLIY6TO.js} +3 -3
- package/dist/{chunk-PGUTER7Z.js.map → chunk-FYLIY6TO.js.map} +1 -1
- package/dist/{chunk-V34ZEXSE.js → chunk-GURXUF2J.js} +32 -7
- package/dist/chunk-GURXUF2J.js.map +1 -0
- package/dist/{chunk-NELENR57.js → chunk-LAOS2TZU.js} +5 -5
- package/dist/{chunk-NELENR57.js.map → chunk-LAOS2TZU.js.map} +1 -1
- package/dist/{chunk-5F33LGZL.js → chunk-LVZ5NGME.js} +3 -3
- package/dist/{chunk-5F33LGZL.js.map → chunk-LVZ5NGME.js.map} +1 -1
- package/dist/{chunk-KKMRT6GU.js → chunk-MTCLDJPR.js} +7 -7
- package/dist/{chunk-KKMRT6GU.js.map → chunk-MTCLDJPR.js.map} +1 -1
- package/dist/{chunk-GRMQBBN4.js → chunk-O52DU5KU.js} +2 -2
- package/dist/{chunk-GRMQBBN4.js.map → chunk-O52DU5KU.js.map} +1 -1
- package/dist/{chunk-PW4SJE3X.js → chunk-PPKK5EV6.js} +3 -3
- package/dist/{chunk-PW4SJE3X.js.map → chunk-PPKK5EV6.js.map} +1 -1
- package/dist/{chunk-OCLCDB7G.js → chunk-Q7KWJO4J.js} +5 -5
- package/dist/{chunk-OCLCDB7G.js.map → chunk-Q7KWJO4J.js.map} +1 -1
- package/dist/{chunk-OYZIURPH.js → chunk-QZ6XXD3A.js} +3 -3
- package/dist/{chunk-OYZIURPH.js.map → chunk-QZ6XXD3A.js.map} +1 -1
- package/dist/{chunk-Z7W4B7P2.js → chunk-TMAGWRKY.js} +6 -6
- package/dist/{chunk-Z7W4B7P2.js.map → chunk-TMAGWRKY.js.map} +1 -1
- package/dist/{chunk-Y6JJHOLR.js → chunk-VFPFW67T.js} +9 -9
- package/dist/{chunk-Y6JJHOLR.js.map → chunk-VFPFW67T.js.map} +1 -1
- package/dist/{chunk-WAFHQDLK.js → chunk-WE7ONZNB.js} +3 -3
- package/dist/{chunk-WAFHQDLK.js.map → chunk-WE7ONZNB.js.map} +1 -1
- package/dist/{chunk-O7WKKINT.js → chunk-X5EYJEEQ.js} +4 -4
- package/dist/{chunk-O7WKKINT.js.map → chunk-X5EYJEEQ.js.map} +1 -1
- package/dist/{chunk-AONVXRAE.js → chunk-Z5ED4E57.js} +2 -2
- package/dist/{chunk-AONVXRAE.js.map → chunk-Z5ED4E57.js.map} +1 -1
- package/dist/cli/index.js +46 -46
- package/dist/cli/index.js.map +1 -1
- package/dist/connectors/config.js +1 -1
- package/dist/connectors/index.js +6 -6
- package/dist/core/index.js +1 -1
- package/dist/core/src/settings.d.ts +12 -1
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/discovery/index.js +2 -2
- package/dist/{ensure-sources-BFVKV773.js → ensure-sources-SFQT5GXY.js} +10 -10
- package/dist/{ensure-sources-BFVKV773.js.map → ensure-sources-SFQT5GXY.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +6 -6
- package/dist/factory-assets/connectors/deploy.js +6 -6
- package/dist/factory-assets/connectors/devserver.js +6 -6
- package/dist/factory-assets/connectors/flow/adapter.js +6 -6
- package/dist/factory-assets/connectors/flow/engine.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.js +7 -7
- package/dist/factory-assets/connectors/flow.js +6 -6
- package/dist/factory-assets/connectors/git.js +6 -6
- package/dist/factory-assets/connectors/gmail.js +6 -6
- package/dist/factory-assets/connectors/googledrive.js +6 -6
- package/dist/factory-assets/connectors/local.js +6 -6
- package/dist/factory-assets/connectors/mattermost.js +6 -6
- package/dist/factory-assets/connectors/memory.js +6 -6
- package/dist/factory-assets/connectors/minio.js +6 -6
- package/dist/factory-assets/connectors/postgres.js +6 -6
- package/dist/factory-assets/connectors/s3.js +6 -6
- package/dist/factory-assets/connectors/sharepoint.js +6 -6
- package/dist/factory-assets/connectors/sqlite.js +6 -6
- package/dist/factory-assets/connectors/static-server.js +6 -6
- package/dist/factory-assets/connectors/tunnel.js +6 -6
- package/dist/factory-assets/connectors/webdav.js +6 -6
- package/dist/factory-assets/connectors/xstate-store.js +6 -6
- package/dist/factory-assets/connectors/xstate.js +6 -6
- package/dist/{flows-4R4VJ5VM.js → flows-Z3DM5BHF.js} +4 -4
- package/dist/{flows-4R4VJ5VM.js.map → flows-Z3DM5BHF.js.map} +1 -1
- package/dist/{helpers-CQV2V2SL.js → helpers-VRQXNHFR.js} +10 -10
- package/dist/{helpers-CQV2V2SL.js.map → helpers-VRQXNHFR.js.map} +1 -1
- package/dist/library/index.js +4 -4
- package/dist/library/install.js +1 -1
- package/dist/{library-publish-6FZCXPYU.js → library-publish-DV3B2ITY.js} +14 -14
- package/dist/{library-publish-6FZCXPYU.js.map → library-publish-DV3B2ITY.js.map} +1 -1
- package/dist/{open-library-4EOFZ4QD.js → open-library-2BXBAC6Q.js} +12 -12
- package/dist/{open-library-4EOFZ4QD.js.map → open-library-2BXBAC6Q.js.map} +1 -1
- package/dist/{paths-S7UESJKT.js → paths-AI7MDPNA.js} +3 -3
- package/dist/{paths-S7UESJKT.js.map → paths-AI7MDPNA.js.map} +1 -1
- package/dist/{plugin-store-5SJX2PRR.js → plugin-store-OO5EZBYP.js} +3 -3
- package/dist/{plugin-store-5SJX2PRR.js.map → plugin-store-OO5EZBYP.js.map} +1 -1
- package/dist/{project-J7RSKBAU.js → project-2TYDMEZB.js} +11 -11
- package/dist/{project-J7RSKBAU.js.map → project-2TYDMEZB.js.map} +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/runner/index.js +9 -9
- package/dist/runner/src/compaction/orchestrator.d.ts +23 -0
- package/dist/runner/src/compaction/orchestrator.d.ts.map +1 -1
- package/dist/runner/src/compaction-gate.d.ts +93 -0
- package/dist/runner/src/compaction-gate.d.ts.map +1 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +7 -7
- package/dist/sdk/bridge.js +4 -4
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/flow.js +2 -2
- package/dist/sdk/index.js +9 -9
- package/dist/sdk/resolver.js +1 -1
- package/dist/sdk/runner.js +9 -9
- package/dist/{setup-OQT5YK2Q.js → setup-EH4TZFMN.js} +6 -6
- package/dist/{setup-OQT5YK2Q.js.map → setup-EH4TZFMN.js.map} +1 -1
- package/dist/{skills-OBJX3VYG.js → skills-XZOG6ZPX.js} +3 -3
- package/dist/{skills-OBJX3VYG.js.map → skills-XZOG6ZPX.js.map} +1 -1
- package/dist/{source-AJ27AS6D.js → source-PVTUMNAO.js} +13 -13
- package/dist/{source-AJ27AS6D.js.map → source-PVTUMNAO.js.map} +1 -1
- package/dist/{source-manifest-publish-UCA2O5UA.js → source-manifest-publish-3XYTUVQQ.js} +15 -15
- package/dist/{source-manifest-publish-UCA2O5UA.js.map → source-manifest-publish-3XYTUVQQ.js.map} +1 -1
- package/dist/tui/index.js +9 -9
- package/dist/types/manifests.js +1 -1
- package/dist/types/src/manifests/agent.d.ts +47 -7
- package/dist/types/src/manifests/agent.d.ts.map +1 -1
- package/dist/types/src/manifests/index.d.ts +2 -2
- package/dist/types/src/manifests/index.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/adapters/omp.js +7 -7
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-2A7BV6WT.js.map +0 -1
- package/dist/chunk-AZPXCHDK.js.map +0 -1
- package/dist/chunk-GY5SLCH2.js.map +0 -1
- package/dist/chunk-IRORTHGA.js.map +0 -1
- package/dist/chunk-V34ZEXSE.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/plugin-store/paths.ts","../cli/src/plugin-store/spec.ts","../cli/src/plugin-store/load.ts","../cli/src/plugin-store/reconcile.ts","../cli/src/plugin-store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAUO,SAAS,WAAW,UAAA,EAA4B;AACrD,EAAA,OAAO,IAAA,CAAK,UAAA,EAAY,SAAA,EAAW,SAAS,CAAA;AAC9C;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,cAAc,CAAA;AACpD;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,cAAc,CAAA;AACpD;AAGO,SAAS,kBAAkB,UAAA,EAA4B;AAC5D,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,iBAAiB,CAAA;AACvD;AAOO,SAAS,kBAA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,UAAU,QAAQ,CAAA;AAChC,EAAA,OAAO,EAAE,OAAA,EAAS,IAAA,EAAM,MAAA,EAAQ,YAAA,EAAa;AAC/C;;;ACxFA,eAAsB,oBACpB,UAAA,EACA,OAAA,EACA,WAA2B,cAAA,EAC3B,IAAA,GAA6B,EAAC,EACT;AACrB,EAAA,IAAI,CAAC,OAAA,IAAW,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG;AACpC,IAAA,OAAO,EAAE,MAAA,EAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAAA,EAClC;AACA,EAAA,MAAM,gBAAA,CAAiB,UAAA,EAAY,OAAA,EAAS,IAAI,CAAA;AAChD,EAAA,OAAO,WAAA,CAAY,YAAY,OAAA,EAAS,QAAA,EAAU,EAAE,GAAA,EAAK,IAAA,CAAK,KAAK,CAAA;AACrE","file":"plugin-store-5SJX2PRR.js","sourcesContent":["/**\n * Pure path helpers for the project-local plugin store.\n *\n * The store is a self-contained npm workspace owned by the CLI under\n * `<projectDir>/.skaile/plugins/`. Nothing here touches the filesystem.\n */\n\nimport { join } from \"node:path\";\n\n/** `<projectDir>/.skaile/plugins` — the store root. */\nexport function pluginsDir(projectDir: string): string {\n return join(projectDir, \".skaile\", \"plugins\");\n}\n\n/** `<store>/package.json` — generated, never user-edited. */\nexport function pluginsPkgJson(projectDir: string): string {\n return join(pluginsDir(projectDir), \"package.json\");\n}\n\n/** `<store>/node_modules` — where reconciled plugin packages land. */\nexport function nodeModulesDir(projectDir: string): string {\n return join(pluginsDir(projectDir), \"node_modules\");\n}\n\n/** `<store>/.reconcile-hash` — SHA of plugins-list + lock slice; skip reinstall when unchanged. */\nexport function reconcileHashFile(projectDir: string): string {\n return join(pluginsDir(projectDir), \".reconcile-hash\");\n}\n\n/**\n * Absolute path to a plugin package's entry directory under the store's\n * `node_modules`. Dynamic `import()` against this absolute path works inside\n * compiled binaries via `pathToFileURL`.\n */\nexport function resolvePluginEntry(projectDir: string, pkgName: string): string {\n return join(nodeModulesDir(projectDir), pkgName);\n}\n","/**\n * Parse npm package specifiers from the `plugins:` list into name + range.\n *\n * The leading `@` of a scope is NOT a separator: only the last `@` at a\n * non-zero index splits the package name from its semver range.\n * \"@skaile/provider-fly@^0.1.0\" → { name: \"@skaile/provider-fly\", range: \"^0.1.0\" }\n * \"@skaile/connector-redis\" → { name: \"@skaile/connector-redis\", range: \"*\" }\n * \"lodash@^4\" → { name: \"lodash\", range: \"^4\" }\n */\n\n/** A parsed plugin specifier: package name plus a semver range (`\"*\"` when omitted). */\nexport interface PluginSpec {\n name: string;\n range: string;\n}\n\n/**\n * Parse a single plugin specifier into `{ name, range }`.\n *\n * @param spec - An npm specifier, e.g. `\"@skaile/provider-fly@^0.1.0\"` or `\"lodash\"`.\n * @returns The package name and semver range (range defaults to `\"*\"`).\n * @throws Error when the specifier is empty.\n */\nexport function parseSpec(spec: string): PluginSpec {\n const trimmed = spec.trim();\n if (!trimmed) throw new Error(\"parseSpec: empty specifier\");\n\n // Find the version-separating `@` — the last one that is not the scope `@`\n // at index 0. A bare `@scope/name` has its only `@` at index 0 (no range).\n const at = trimmed.lastIndexOf(\"@\");\n if (at <= 0) {\n return { name: trimmed, range: \"*\" };\n }\n const name = trimmed.slice(0, at);\n const range = trimmed.slice(at + 1);\n return { name, range: range.length > 0 ? range : \"*\" };\n}\n\n/** Convenience: just the package name of a specifier. */\nexport function specName(spec: string): string {\n return parseSpec(spec).name;\n}\n","/**\n * Runtime plugin loader: dynamic-import each reconciled plugin and let it\n * self-register into the `pluginRegistry`.\n *\n * Each plugin specifier resolves to an absolute path under the store's\n * `node_modules`; we import it via a `file://` URL so the import works inside\n * `bun --compile` binaries (which bundle only the literal-string switches, but\n * can still execute a `file://` import against the unpacked store on disk).\n * Failures are caught per-plugin so one broken plugin never aborts the rest.\n */\n\nimport { pathToFileURL } from \"node:url\";\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { resolvePluginEntry } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/** Options for {@link loadPlugins}. */\nexport interface LoadOptions {\n log?: Logger;\n}\n\n/** Result of a load pass: which specs registered and which failed. */\nexport interface LoadResult {\n loaded: string[];\n failed: { spec: string; error: string }[];\n}\n\n/** The self-registration entrypoint a plugin module is expected to export. */\ntype PluginModule = { register?: (registry: PluginRegistry) => void };\n\n/**\n * Load and register each plugin in `plugins` into `registry`.\n *\n * @param projectDir - Project root holding `.skaile/plugins/node_modules`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param registry - Registry to register into. Defaults to the process-wide `pluginRegistry`.\n * @param opts - Optional logger.\n * @returns Loaded specs + per-plugin failures (never throws).\n */\nexport async function loadPlugins(\n projectDir: string,\n plugins: string[],\n registry: PluginRegistry = pluginRegistry,\n opts: LoadOptions = {},\n): Promise<LoadResult> {\n const loaded: string[] = [];\n const failed: { spec: string; error: string }[] = [];\n\n for (const spec of plugins) {\n try {\n const { name } = parseSpec(spec);\n const entry = resolvePluginEntry(projectDir, name);\n const mod = (await import(pathToFileURL(entry).href)) as PluginModule;\n if (typeof mod.register !== \"function\") {\n throw new Error(`plugin \"${name}\" does not export a register() function`);\n }\n mod.register(registry);\n loaded.push(spec);\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n failed.push({ spec, error: `failed to load plugin \"${spec}\": ${message}` });\n opts.log?.warn(`plugin load failed: ${spec}`, { error: message });\n }\n }\n\n return { loaded, failed };\n}\n","/**\n * Reconcile the project-local plugin store (`<projectDir>/.skaile/plugins/`).\n *\n * The reconciler is hash-skipped: it computes a SHA-256 over the sorted plugin\n * list plus the lock file's `plugins` slice and compares it to the stored\n * `.reconcile-hash`. On a match it returns with zero further I/O; otherwise it\n * regenerates the store's `package.json` and runs `bun install` against it.\n *\n * The install step is injectable (`InstallFn`) so tests stay hermetic — they\n * pass a fake installer that records calls and writes a stub `node_modules`.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { readPluginsLockSlice } from \"@skaile/workspaces/core\";\nimport { pluginsDir, pluginsPkgJson, reconcileHashFile } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/**\n * Installs the store's dependencies. Returns `ok: false` (never throws) on a\n * failed install so the reconciler can surface the captured `output`.\n */\nexport type InstallFn = (pluginsDir: string) => Promise<{ ok: boolean; output: string }>;\n\n/** Options for {@link reconcilePlugins}. */\nexport interface ReconcileOptions {\n /** Injectable installer. Defaults to a real `bun install` of the store. */\n runInstall?: InstallFn;\n /**\n * Lock slice to fold into the reconcile-hash. Defaults to\n * `readPluginsLockSlice(projectDir)` so a lock edit invalidates the hash.\n */\n lockSlice?: unknown;\n}\n\n/** Result of a reconcile pass. */\nexport interface ReconcileResult {\n changed: boolean;\n reason: \"no-plugins\" | \"up-to-date\" | \"reconciled\";\n}\n\n/**\n * The default real installer: `bun install` inside the store directory.\n * Frozen on subsequent runs (a `bun.lock`/`bun.lockb` already exists), and\n * non-frozen on the first run so a lock can be generated.\n */\nexport const defaultInstall: InstallFn = async (dir) => {\n const { portableSpawn } = await import(\"@skaile/workspaces/core\");\n const hasLock =\n existsSync(`${dir}/bun.lock`) ||\n existsSync(`${dir}/bun.lockb`) ||\n existsSync(`${dir}/package-lock.json`);\n const args = hasLock ? [\"bun\", \"install\", \"--frozen-lockfile\"] : [\"bun\", \"install\"];\n const proc = portableSpawn(args, { cwd: dir });\n const chunks: string[] = [];\n const decoder = new TextDecoder();\n const pump = async (stream: ReadableStream<Uint8Array>) => {\n const reader = stream.getReader();\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n if (value) chunks.push(decoder.decode(value, { stream: true }));\n }\n };\n await Promise.all([pump(proc.stdout), pump(proc.stderr)]);\n const code = await proc.exited;\n return { ok: code === 0, output: chunks.join(\"\") };\n};\n\n/** Generate the store's `package.json` from the plugin specs. */\nfunction writePackageJson(projectDir: string, plugins: string[]): void {\n const dependencies: Record<string, string> = {};\n for (const spec of plugins) {\n const { name, range } = parseSpec(spec);\n dependencies[name] = range;\n }\n const pkg = {\n name: \"skaile-project-plugins\",\n private: true,\n dependencies,\n };\n mkdirSync(pluginsDir(projectDir), { recursive: true });\n writeFileSync(pluginsPkgJson(projectDir), `${JSON.stringify(pkg, null, 2)}\\n`);\n}\n\n/**\n * Reconcile the plugin store for a project.\n *\n * @param projectDir - Project root containing `skaile.yaml` / `skaile.lock.yaml`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param opts - Optional injectable installer + lock slice override.\n * @returns Whether the store changed and why.\n */\nexport async function reconcilePlugins(\n projectDir: string,\n plugins: string[],\n opts: ReconcileOptions = {},\n): Promise<ReconcileResult> {\n if (plugins.length === 0) {\n return { changed: false, reason: \"no-plugins\" };\n }\n\n const lockSlice = opts.lockSlice ?? readPluginsLockSlice(projectDir);\n const wantHash = createHash(\"sha256\")\n .update(JSON.stringify({ plugins: [...plugins].sort(), lock: lockSlice }))\n .digest(\"hex\");\n\n const hashFile = reconcileHashFile(projectDir);\n if (existsSync(hashFile)) {\n const have = readFileSync(hashFile, \"utf8\").trim();\n if (have === wantHash) {\n return { changed: false, reason: \"up-to-date\" };\n }\n }\n\n writePackageJson(projectDir, plugins);\n\n const install = opts.runInstall ?? defaultInstall;\n const result = await install(pluginsDir(projectDir));\n if (!result.ok) {\n throw new Error(`plugin install failed:\\n${result.output}`);\n }\n\n writeFileSync(hashFile, wantHash);\n return { changed: true, reason: \"reconciled\" };\n}\n","/**\n * The project-local plugin store: reconcile (`<projectDir>/.skaile/plugins/`)\n * then load the reconciled plugins into the `pluginRegistry`.\n *\n * `ensurePluginsLoaded` is the single entrypoint commands wire in. It is a\n * guarded no-op when `plugins` is empty/undefined — zero overhead for the\n * common case where no project declares `plugins:` in `skaile.yaml`.\n */\n\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { type LoadResult, loadPlugins } from \"./load.js\";\nimport { type ReconcileOptions, reconcilePlugins } from \"./reconcile.js\";\n\nexport type { LoadResult } from \"./load.js\";\nexport { loadPlugins } from \"./load.js\";\nexport type { ReconcileOptions } from \"./reconcile.js\";\nexport { reconcilePlugins } from \"./reconcile.js\";\nexport { specName } from \"./spec.js\";\n\n/** Options for {@link ensurePluginsLoaded}. */\nexport interface EnsurePluginsOptions extends ReconcileOptions {\n log?: Logger;\n}\n\n/**\n * Reconcile the plugin store then load each plugin into `registry`.\n *\n * No-op (returns immediately) when `plugins` is empty/undefined, so the common\n * no-plugins path costs nothing.\n *\n * @param projectDir - Project root.\n * @param plugins - The `skaile.yaml` `plugins:` list (may be undefined).\n * @param registry - Registry to register into. Defaults to `pluginRegistry`.\n * @param opts - Injectable installer / lock slice + optional logger.\n * @returns The load result, or an empty result when there are no plugins.\n */\nexport async function ensurePluginsLoaded(\n projectDir: string,\n plugins: string[] | undefined,\n registry: PluginRegistry = pluginRegistry,\n opts: EnsurePluginsOptions = {},\n): Promise<LoadResult> {\n if (!plugins || plugins.length === 0) {\n return { loaded: [], failed: [] };\n }\n await reconcilePlugins(projectDir, plugins, opts);\n return loadPlugins(projectDir, plugins, registry, { log: opts.log });\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../cli/src/plugin-store/paths.ts","../cli/src/plugin-store/spec.ts","../cli/src/plugin-store/load.ts","../cli/src/plugin-store/reconcile.ts","../cli/src/plugin-store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAUO,SAAS,WAAW,UAAA,EAA4B;AACrD,EAAA,OAAO,IAAA,CAAK,UAAA,EAAY,SAAA,EAAW,SAAS,CAAA;AAC9C;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,cAAc,CAAA;AACpD;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,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UAAU,CAAC,CAAA;AACnD,EAAA,IAAI,CAAC,OAAO,EAAA,EAAI;AACd,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA;AAAA,EAA2B,MAAA,CAAO,MAAM,CAAA,CAAE,CAAA;AAAA,EAC5D;AAEA,EAAA,aAAA,CAAc,UAAU,QAAQ,CAAA;AAChC,EAAA,OAAO,EAAE,OAAA,EAAS,IAAA,EAAM,MAAA,EAAQ,YAAA,EAAa;AAC/C;;;ACxFA,eAAsB,oBACpB,UAAA,EACA,OAAA,EACA,WAA2B,cAAA,EAC3B,IAAA,GAA6B,EAAC,EACT;AACrB,EAAA,IAAI,CAAC,OAAA,IAAW,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG;AACpC,IAAA,OAAO,EAAE,MAAA,EAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAAA,EAClC;AACA,EAAA,MAAM,gBAAA,CAAiB,UAAA,EAAY,OAAA,EAAS,IAAI,CAAA;AAChD,EAAA,OAAO,WAAA,CAAY,YAAY,OAAA,EAAS,QAAA,EAAU,EAAE,GAAA,EAAK,IAAA,CAAK,KAAK,CAAA;AACrE","file":"plugin-store-OO5EZBYP.js","sourcesContent":["/**\n * Pure path helpers for the project-local plugin store.\n *\n * The store is a self-contained npm workspace owned by the CLI under\n * `<projectDir>/.skaile/plugins/`. Nothing here touches the filesystem.\n */\n\nimport { join } from \"node:path\";\n\n/** `<projectDir>/.skaile/plugins` — the store root. */\nexport function pluginsDir(projectDir: string): string {\n return join(projectDir, \".skaile\", \"plugins\");\n}\n\n/** `<store>/package.json` — generated, never user-edited. */\nexport function pluginsPkgJson(projectDir: string): string {\n return join(pluginsDir(projectDir), \"package.json\");\n}\n\n/** `<store>/node_modules` — where reconciled plugin packages land. */\nexport function nodeModulesDir(projectDir: string): string {\n return join(pluginsDir(projectDir), \"node_modules\");\n}\n\n/** `<store>/.reconcile-hash` — SHA of plugins-list + lock slice; skip reinstall when unchanged. */\nexport function reconcileHashFile(projectDir: string): string {\n return join(pluginsDir(projectDir), \".reconcile-hash\");\n}\n\n/**\n * Absolute path to a plugin package's entry directory under the store's\n * `node_modules`. Dynamic `import()` against this absolute path works inside\n * compiled binaries via `pathToFileURL`.\n */\nexport function resolvePluginEntry(projectDir: string, pkgName: string): string {\n return join(nodeModulesDir(projectDir), pkgName);\n}\n","/**\n * Parse npm package specifiers from the `plugins:` list into name + range.\n *\n * The leading `@` of a scope is NOT a separator: only the last `@` at a\n * non-zero index splits the package name from its semver range.\n * \"@skaile/provider-fly@^0.1.0\" → { name: \"@skaile/provider-fly\", range: \"^0.1.0\" }\n * \"@skaile/connector-redis\" → { name: \"@skaile/connector-redis\", range: \"*\" }\n * \"lodash@^4\" → { name: \"lodash\", range: \"^4\" }\n */\n\n/** A parsed plugin specifier: package name plus a semver range (`\"*\"` when omitted). */\nexport interface PluginSpec {\n name: string;\n range: string;\n}\n\n/**\n * Parse a single plugin specifier into `{ name, range }`.\n *\n * @param spec - An npm specifier, e.g. `\"@skaile/provider-fly@^0.1.0\"` or `\"lodash\"`.\n * @returns The package name and semver range (range defaults to `\"*\"`).\n * @throws Error when the specifier is empty.\n */\nexport function parseSpec(spec: string): PluginSpec {\n const trimmed = spec.trim();\n if (!trimmed) throw new Error(\"parseSpec: empty specifier\");\n\n // Find the version-separating `@` — the last one that is not the scope `@`\n // at index 0. A bare `@scope/name` has its only `@` at index 0 (no range).\n const at = trimmed.lastIndexOf(\"@\");\n if (at <= 0) {\n return { name: trimmed, range: \"*\" };\n }\n const name = trimmed.slice(0, at);\n const range = trimmed.slice(at + 1);\n return { name, range: range.length > 0 ? range : \"*\" };\n}\n\n/** Convenience: just the package name of a specifier. */\nexport function specName(spec: string): string {\n return parseSpec(spec).name;\n}\n","/**\n * Runtime plugin loader: dynamic-import each reconciled plugin and let it\n * self-register into the `pluginRegistry`.\n *\n * Each plugin specifier resolves to an absolute path under the store's\n * `node_modules`; we import it via a `file://` URL so the import works inside\n * `bun --compile` binaries (which bundle only the literal-string switches, but\n * can still execute a `file://` import against the unpacked store on disk).\n * Failures are caught per-plugin so one broken plugin never aborts the rest.\n */\n\nimport { pathToFileURL } from \"node:url\";\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { resolvePluginEntry } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/** Options for {@link loadPlugins}. */\nexport interface LoadOptions {\n log?: Logger;\n}\n\n/** Result of a load pass: which specs registered and which failed. */\nexport interface LoadResult {\n loaded: string[];\n failed: { spec: string; error: string }[];\n}\n\n/** The self-registration entrypoint a plugin module is expected to export. */\ntype PluginModule = { register?: (registry: PluginRegistry) => void };\n\n/**\n * Load and register each plugin in `plugins` into `registry`.\n *\n * @param projectDir - Project root holding `.skaile/plugins/node_modules`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param registry - Registry to register into. Defaults to the process-wide `pluginRegistry`.\n * @param opts - Optional logger.\n * @returns Loaded specs + per-plugin failures (never throws).\n */\nexport async function loadPlugins(\n projectDir: string,\n plugins: string[],\n registry: PluginRegistry = pluginRegistry,\n opts: LoadOptions = {},\n): Promise<LoadResult> {\n const loaded: string[] = [];\n const failed: { spec: string; error: string }[] = [];\n\n for (const spec of plugins) {\n try {\n const { name } = parseSpec(spec);\n const entry = resolvePluginEntry(projectDir, name);\n const mod = (await import(pathToFileURL(entry).href)) as PluginModule;\n if (typeof mod.register !== \"function\") {\n throw new Error(`plugin \"${name}\" does not export a register() function`);\n }\n mod.register(registry);\n loaded.push(spec);\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n failed.push({ spec, error: `failed to load plugin \"${spec}\": ${message}` });\n opts.log?.warn(`plugin load failed: ${spec}`, { error: message });\n }\n }\n\n return { loaded, failed };\n}\n","/**\n * Reconcile the project-local plugin store (`<projectDir>/.skaile/plugins/`).\n *\n * The reconciler is hash-skipped: it computes a SHA-256 over the sorted plugin\n * list plus the lock file's `plugins` slice and compares it to the stored\n * `.reconcile-hash`. On a match it returns with zero further I/O; otherwise it\n * regenerates the store's `package.json` and runs `bun install` against it.\n *\n * The install step is injectable (`InstallFn`) so tests stay hermetic — they\n * pass a fake installer that records calls and writes a stub `node_modules`.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { readPluginsLockSlice } from \"@skaile/workspaces/core\";\nimport { pluginsDir, pluginsPkgJson, reconcileHashFile } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/**\n * Installs the store's dependencies. Returns `ok: false` (never throws) on a\n * failed install so the reconciler can surface the captured `output`.\n */\nexport type InstallFn = (pluginsDir: string) => Promise<{ ok: boolean; output: string }>;\n\n/** Options for {@link reconcilePlugins}. */\nexport interface ReconcileOptions {\n /** Injectable installer. Defaults to a real `bun install` of the store. */\n runInstall?: InstallFn;\n /**\n * Lock slice to fold into the reconcile-hash. Defaults to\n * `readPluginsLockSlice(projectDir)` so a lock edit invalidates the hash.\n */\n lockSlice?: unknown;\n}\n\n/** Result of a reconcile pass. */\nexport interface ReconcileResult {\n changed: boolean;\n reason: \"no-plugins\" | \"up-to-date\" | \"reconciled\";\n}\n\n/**\n * The default real installer: `bun install` inside the store directory.\n * Frozen on subsequent runs (a `bun.lock`/`bun.lockb` already exists), and\n * non-frozen on the first run so a lock can be generated.\n */\nexport const defaultInstall: InstallFn = async (dir) => {\n const { portableSpawn } = await import(\"@skaile/workspaces/core\");\n const hasLock =\n existsSync(`${dir}/bun.lock`) ||\n existsSync(`${dir}/bun.lockb`) ||\n existsSync(`${dir}/package-lock.json`);\n const args = hasLock ? [\"bun\", \"install\", \"--frozen-lockfile\"] : [\"bun\", \"install\"];\n const proc = portableSpawn(args, { cwd: dir });\n const chunks: string[] = [];\n const decoder = new TextDecoder();\n const pump = async (stream: ReadableStream<Uint8Array>) => {\n const reader = stream.getReader();\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n if (value) chunks.push(decoder.decode(value, { stream: true }));\n }\n };\n await Promise.all([pump(proc.stdout), pump(proc.stderr)]);\n const code = await proc.exited;\n return { ok: code === 0, output: chunks.join(\"\") };\n};\n\n/** Generate the store's `package.json` from the plugin specs. */\nfunction writePackageJson(projectDir: string, plugins: string[]): void {\n const dependencies: Record<string, string> = {};\n for (const spec of plugins) {\n const { name, range } = parseSpec(spec);\n dependencies[name] = range;\n }\n const pkg = {\n name: \"skaile-project-plugins\",\n private: true,\n dependencies,\n };\n mkdirSync(pluginsDir(projectDir), { recursive: true });\n writeFileSync(pluginsPkgJson(projectDir), `${JSON.stringify(pkg, null, 2)}\\n`);\n}\n\n/**\n * Reconcile the plugin store for a project.\n *\n * @param projectDir - Project root containing `skaile.yaml` / `skaile.lock.yaml`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param opts - Optional injectable installer + lock slice override.\n * @returns Whether the store changed and why.\n */\nexport async function reconcilePlugins(\n projectDir: string,\n plugins: string[],\n opts: ReconcileOptions = {},\n): Promise<ReconcileResult> {\n if (plugins.length === 0) {\n return { changed: false, reason: \"no-plugins\" };\n }\n\n const lockSlice = opts.lockSlice ?? readPluginsLockSlice(projectDir);\n const wantHash = createHash(\"sha256\")\n .update(JSON.stringify({ plugins: [...plugins].sort(), lock: lockSlice }))\n .digest(\"hex\");\n\n const hashFile = reconcileHashFile(projectDir);\n if (existsSync(hashFile)) {\n const have = readFileSync(hashFile, \"utf8\").trim();\n if (have === wantHash) {\n return { changed: false, reason: \"up-to-date\" };\n }\n }\n\n writePackageJson(projectDir, plugins);\n\n const install = opts.runInstall ?? defaultInstall;\n const result = await install(pluginsDir(projectDir));\n if (!result.ok) {\n throw new Error(`plugin install failed:\\n${result.output}`);\n }\n\n writeFileSync(hashFile, wantHash);\n return { changed: true, reason: \"reconciled\" };\n}\n","/**\n * The project-local plugin store: reconcile (`<projectDir>/.skaile/plugins/`)\n * then load the reconciled plugins into the `pluginRegistry`.\n *\n * `ensurePluginsLoaded` is the single entrypoint commands wire in. It is a\n * guarded no-op when `plugins` is empty/undefined — zero overhead for the\n * common case where no project declares `plugins:` in `skaile.yaml`.\n */\n\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { type LoadResult, loadPlugins } from \"./load.js\";\nimport { type ReconcileOptions, reconcilePlugins } from \"./reconcile.js\";\n\nexport type { LoadResult } from \"./load.js\";\nexport { loadPlugins } from \"./load.js\";\nexport type { ReconcileOptions } from \"./reconcile.js\";\nexport { reconcilePlugins } from \"./reconcile.js\";\nexport { specName } from \"./spec.js\";\n\n/** Options for {@link ensurePluginsLoaded}. */\nexport interface EnsurePluginsOptions extends ReconcileOptions {\n log?: Logger;\n}\n\n/**\n * Reconcile the plugin store then load each plugin into `registry`.\n *\n * No-op (returns immediately) when `plugins` is empty/undefined, so the common\n * no-plugins path costs nothing.\n *\n * @param projectDir - Project root.\n * @param plugins - The `skaile.yaml` `plugins:` list (may be undefined).\n * @param registry - Registry to register into. Defaults to `pluginRegistry`.\n * @param opts - Injectable installer / lock slice + optional logger.\n * @returns The load result, or an empty result when there are no plugins.\n */\nexport async function ensurePluginsLoaded(\n projectDir: string,\n plugins: string[] | undefined,\n registry: PluginRegistry = pluginRegistry,\n opts: EnsurePluginsOptions = {},\n): Promise<LoadResult> {\n if (!plugins || plugins.length === 0) {\n return { loaded: [], failed: [] };\n }\n await reconcilePlugins(projectDir, plugins, opts);\n return loadPlugins(projectDir, plugins, registry, { log: opts.log });\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { makeCheckCommand, makeCleanCommand, makeInstallCommand, reportInstalledSoftDeps, runPointerOnlyInstall, supportsInstallManifest } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { makeCheckCommand, makeCleanCommand, makeInstallCommand, reportInstalledSoftDeps, runPointerOnlyInstall, supportsInstallManifest } from './chunk-CWTL2QWL.js';
|
|
2
|
+
import './chunk-LVZ5NGME.js';
|
|
3
|
+
import './chunk-FI4QNNMD.js';
|
|
4
|
+
import './chunk-Q7KWJO4J.js';
|
|
5
|
+
import './chunk-PPKK5EV6.js';
|
|
6
6
|
import './chunk-UKJMQZV6.js';
|
|
7
7
|
import './chunk-R7FOF242.js';
|
|
8
8
|
import './chunk-JXT46QFC.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-X5EYJEEQ.js';
|
|
10
10
|
import './chunk-CGYEHQOX.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-F2WTSHZS.js';
|
|
12
12
|
import './chunk-F3HNW354.js';
|
|
13
13
|
import './chunk-K5GBV4SA.js';
|
|
14
14
|
import './chunk-QVZA2MDT.js';
|
|
@@ -22,8 +22,8 @@ import './chunk-5Q7HA4JP.js';
|
|
|
22
22
|
import './chunk-3A5IKBHQ.js';
|
|
23
23
|
import './chunk-KTBKW2FI.js';
|
|
24
24
|
import './chunk-UQ6LFBPZ.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-DVSASEGO.js';
|
|
26
|
+
import './chunk-AN6NAFRT.js';
|
|
27
27
|
import './chunk-NSBPE2FW.js';
|
|
28
|
-
//# sourceMappingURL=project-
|
|
29
|
-
//# sourceMappingURL=project-
|
|
28
|
+
//# sourceMappingURL=project-2TYDMEZB.js.map
|
|
29
|
+
//# sourceMappingURL=project-2TYDMEZB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"project-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"project-2TYDMEZB.js"}
|
package/dist/resolver/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { buildRequiresPreamble, parseCompactionDirectives, parseSkillFrontmatter, parseSkillRequirements, validateConnectorRequirements, validateFlowVersions, validateRequirements } from '../chunk-4VTBZ2MF.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-F2WTSHZS.js';
|
|
3
3
|
import '../chunk-F3HNW354.js';
|
|
4
4
|
import '../chunk-K5GBV4SA.js';
|
|
5
5
|
import '../chunk-QVZA2MDT.js';
|
package/dist/runner/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-5WMFU575.js';
|
|
2
|
+
import '../chunk-6YDXCJGK.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
|
|
5
5
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -7,28 +7,28 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-GTS2FODO.js';
|
|
8
8
|
import '../chunk-WQ7DE5UC.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-LAOS2TZU.js';
|
|
11
11
|
import '../chunk-4R6DROGN.js';
|
|
12
12
|
import '../chunk-4VTBZ2MF.js';
|
|
13
13
|
import '../chunk-GHWJHOYX.js';
|
|
14
14
|
import '../chunk-NC5YXVZF.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-MTCLDJPR.js';
|
|
16
16
|
import '../chunk-3UU3D2Q3.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-DTSKPMP3.js';
|
|
18
18
|
import '../chunk-RUFTB7QN.js';
|
|
19
19
|
import '../chunk-RRVQAE5D.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-GURXUF2J.js';
|
|
21
21
|
import '../chunk-GAH4YRCI.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-Z5ED4E57.js';
|
|
23
23
|
import '../chunk-6E6PKKAD.js';
|
|
24
24
|
import '../chunk-IFGTRL2I.js';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-QZ6XXD3A.js';
|
|
26
26
|
import '../chunk-AXEOG4B5.js';
|
|
27
27
|
import '../chunk-HY6CIKFH.js';
|
|
28
28
|
import '../chunk-2D5BYAL6.js';
|
|
29
29
|
import '../chunk-ELPR5XBG.js';
|
|
30
30
|
import '../chunk-2KBA5OO2.js';
|
|
31
|
-
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-
|
|
31
|
+
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-F2WTSHZS.js';
|
|
32
32
|
import '../chunk-F3HNW354.js';
|
|
33
33
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
34
34
|
import '../chunk-QVZA2MDT.js';
|
|
@@ -83,6 +83,18 @@ export interface CompactionOrchestratorOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
onCompactionAttempt?: (event: CompactionAttemptEvent) => void;
|
|
85
85
|
onCompactionEnd?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires once the compaction call has fully settled and the driver is free.
|
|
88
|
+
*
|
|
89
|
+
* Distinct from {@link onCompactionEnd}, which fires earlier on the success
|
|
90
|
+
* path — before `resetSession()` and the snapshot injection — so that the
|
|
91
|
+
* injection turn's events are not suppressed. A host holding user turns off
|
|
92
|
+
* the driver has to wait for this one instead, or it releases them straight
|
|
93
|
+
* into the injection.
|
|
94
|
+
*
|
|
95
|
+
* Guaranteed on every exit, including a throw.
|
|
96
|
+
*/
|
|
97
|
+
onCompactionSettled?: () => void;
|
|
86
98
|
onLog?: (line: string) => void;
|
|
87
99
|
/**
|
|
88
100
|
* Phase 3 (resume cascade): supplies the current capability registry
|
|
@@ -111,6 +123,10 @@ export declare class CompactionOrchestrator {
|
|
|
111
123
|
private readonly config;
|
|
112
124
|
private readonly opts;
|
|
113
125
|
private _isCompacting;
|
|
126
|
+
/** Whether {@link CompactionOrchestratorOptions.onCompactionStart} has fired for the current call. */
|
|
127
|
+
private _startFired;
|
|
128
|
+
/** Whether {@link CompactionOrchestratorOptions.onCompactionEnd} has fired for the current call. */
|
|
129
|
+
private _endFired;
|
|
114
130
|
private lastCompactionSeq;
|
|
115
131
|
private lastCompactionTime;
|
|
116
132
|
/**
|
|
@@ -134,6 +150,13 @@ export declare class CompactionOrchestrator {
|
|
|
134
150
|
trackMessage(seq: number): void;
|
|
135
151
|
shouldCompact(): boolean;
|
|
136
152
|
compact(trigger: CompactionTrigger, focus?: string): Promise<SnapshotEvent | null>;
|
|
153
|
+
/**
|
|
154
|
+
* Fire {@link CompactionOrchestratorOptions.onCompactionEnd} once per
|
|
155
|
+
* compaction. The host stops suppressing forwarded events here, so a second
|
|
156
|
+
* call would emit a stray idle status over the injection turn that follows
|
|
157
|
+
* it on the success path.
|
|
158
|
+
*/
|
|
159
|
+
private _endCompaction;
|
|
137
160
|
/**
|
|
138
161
|
* One compaction attempt, plus at most one narrowed retry.
|
|
139
162
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACX,MAAM,0BAA0B,CAAC;AAwFlC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAmD3C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAK1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAK9F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAA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AuB;IACjD;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,uBAAuB,CAAK;gBAExB,IAAI,EAAE,6BAA6B;IAU/C;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IAInB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/B,aAAa,IAAI,OAAO;IAoBlB,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAwCxF;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;OAOG;YACW,UAAU;IAyFxB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;OAYG;YACW,oBAAoB;IA0GlC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,kBAAkB;IA2C1B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;;OAGG;YACW,mBAAmB;CAyDlC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { AgentEvent } from "@skaile/workspaces/types";
|
|
2
|
+
/** Opaque handle for one in-flight compaction. See {@link CompactionGate.begin}. */
|
|
3
|
+
export type CompactionHold = symbol;
|
|
4
|
+
/**
|
|
5
|
+
* Coordinates the compaction-turn / user-turn race on a single driver.
|
|
6
|
+
*
|
|
7
|
+
* Compaction prompts the very driver a user turn would, and the runner
|
|
8
|
+
* suppresses forwarded events for its duration. A turn dispatched into that
|
|
9
|
+
* window therefore runs against a driver already mid-turn and has its reply
|
|
10
|
+
* dropped on the way out — no text, no `finished`, no error, just an indefinite
|
|
11
|
+
* "AI is thinking…" (skaile-ai/platform#3882).
|
|
12
|
+
*
|
|
13
|
+
* The window this gate holds is deliberately wider than the event suppression.
|
|
14
|
+
* On the success path the orchestrator stops suppressing before it resets the
|
|
15
|
+
* driver and injects the snapshot, so a turn released at that moment would race
|
|
16
|
+
* the injection instead of the summary. The gate opens only once the whole
|
|
17
|
+
* compaction call has settled.
|
|
18
|
+
*
|
|
19
|
+
* Mirrors {@link DriverSwapGate}: one instance per agent server, and every
|
|
20
|
+
* method is safe to call when nothing is in flight.
|
|
21
|
+
*/
|
|
22
|
+
export declare class CompactionGate {
|
|
23
|
+
/**
|
|
24
|
+
* Every compaction currently holding the driver.
|
|
25
|
+
*
|
|
26
|
+
* A set rather than a boolean because holds can overlap: a driver swap
|
|
27
|
+
* rebuilds the orchestrator, and the new instance carries its own
|
|
28
|
+
* `_isCompacting`, so it can start a compaction while the previous
|
|
29
|
+
* instance's call is still unwinding. Keyed by handle so the older one
|
|
30
|
+
* settling cannot open the gate under the newer one — the same identity
|
|
31
|
+
* check `DriverSwapGate.beginSwap` makes for swaps.
|
|
32
|
+
*/
|
|
33
|
+
private held;
|
|
34
|
+
/** Resolves when the last hold is released. Null whenever the driver is free. */
|
|
35
|
+
private opened;
|
|
36
|
+
private release;
|
|
37
|
+
/**
|
|
38
|
+
* Mark a compaction as occupying the driver. The returned handle is the only
|
|
39
|
+
* thing that can release it.
|
|
40
|
+
*/
|
|
41
|
+
begin(): CompactionHold;
|
|
42
|
+
/**
|
|
43
|
+
* Release one hold, opening the gate once none remain. Unknown and null
|
|
44
|
+
* handles are ignored, so a settle signal that fires without a matching
|
|
45
|
+
* `begin()` is harmless.
|
|
46
|
+
*
|
|
47
|
+
* Call this from a signal the orchestrator emits unconditionally. A `begin()`
|
|
48
|
+
* whose `settle()` can be skipped holds user turns forever, which is a worse
|
|
49
|
+
* failure than the discarded reply this gate exists to prevent.
|
|
50
|
+
*/
|
|
51
|
+
settle(hold: CompactionHold | null | undefined): void;
|
|
52
|
+
/**
|
|
53
|
+
* Wait for the driver to be free.
|
|
54
|
+
*
|
|
55
|
+
* Returns `idle` when nothing was in flight, `waited` when every compaction
|
|
56
|
+
* settled within the bound, and `timeout` when they did not. A caller that
|
|
57
|
+
* gets `timeout` must surface it rather than dispatch: a compaction still
|
|
58
|
+
* holding the driver past this bound is stuck, and dispatching into it
|
|
59
|
+
* reproduces the silent loss.
|
|
60
|
+
*
|
|
61
|
+
* Re-checks in a loop, as `DriverSwapGate.awaitSwap` does, so a compaction
|
|
62
|
+
* armed while this turn was already waiting is also awaited. `timeoutMs`
|
|
63
|
+
* bounds the whole wait, not each iteration.
|
|
64
|
+
*/
|
|
65
|
+
awaitIdle(timeoutMs: number): Promise<"idle" | "waited" | "timeout">;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* How long a user turn waits for a compaction before the runner reports it as
|
|
69
|
+
* stuck. Read per call so a test (or an operator) can set
|
|
70
|
+
* `SKAILE_COMPACTION_GATE_TIMEOUT_MS` after this module is imported.
|
|
71
|
+
*/
|
|
72
|
+
export declare function compactionGateTimeoutMs(): number;
|
|
73
|
+
/** The message a caller sends when it abandons a turn rather than race a compaction. */
|
|
74
|
+
export declare const COMPACTION_GATE_TIMEOUT_MESSAGE = "The session is still compacting its history and could not take this message. Send it again in a moment.";
|
|
75
|
+
export interface GuardTurnDeps {
|
|
76
|
+
gate: CompactionGate;
|
|
77
|
+
/** What is waiting, for the log line: "prompt", "reply". */
|
|
78
|
+
what: string;
|
|
79
|
+
log: (line: string) => void;
|
|
80
|
+
sendEvent: (event: AgentEvent) => void;
|
|
81
|
+
/** Defaults to {@link compactionGateTimeoutMs}. */
|
|
82
|
+
timeoutMs?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Hold a user turn until the driver is free of any compaction.
|
|
86
|
+
*
|
|
87
|
+
* Returns false when the caller must abandon the turn — dispatching anyway is
|
|
88
|
+
* what skaile-ai/platform#3882 records. The error event is the first
|
|
89
|
+
* user-visible signal this failure has ever had: before it, the turn ran and
|
|
90
|
+
* its reply was dropped in silence.
|
|
91
|
+
*/
|
|
92
|
+
export declare function guardTurnAgainstCompaction(deps: GuardTurnDeps): Promise<boolean>;
|
|
93
|
+
//# sourceMappingURL=compaction-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction-gate.d.ts","sourceRoot":"","sources":["../../../runner/src/compaction-gate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACzB;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,CAA6B;IACzC,iFAAiF;IACjF,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,OAAO,CAA6B;IAE5C;;;OAGG;IACH,KAAK,IAAI,cAAc;IAWvB;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IASrD;;;;;;;;;;;;OAYG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CAe3E;AA2BD;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAGhD;AAED,wFAAwF;AACxF,eAAO,MAAM,+BAA+B,4GAC+D,CAAC;AAE5G,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,SAAS,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAOtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAwBH,OAAO,EAIL,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,WAAW,EAKhB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAevC,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,0DAA0D,CAAC;AASlE,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,oEAAoE,CAAC;AAE5E,OAAO,KAAK,EAEV,UAAU,EAGV,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,MAAM,EAEN,mBAAmB,EAEnB,eAAe,EACf,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAwBH,OAAO,EAIL,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,WAAW,EAKhB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAevC,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,0DAA0D,CAAC;AASlE,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,oEAAoE,CAAC;AAE5E,OAAO,KAAK,EAEV,UAAU,EAGV,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,MAAM,EAEN,mBAAmB,EAEnB,eAAe,EACf,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AA4ClC,OAAO,EACL,2BAA2B,EAC3B,sCAAsC,EACtC,6BAA6B,EAG7B,8BAA8B,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,YAAY,EAGlB,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,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+qGxE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-FI4QNNMD.js';
|
|
2
|
+
import '../chunk-Q7KWJO4J.js';
|
|
3
|
+
import '../chunk-PPKK5EV6.js';
|
|
4
4
|
import '../chunk-UKJMQZV6.js';
|
|
5
5
|
import '../chunk-R7FOF242.js';
|
|
6
6
|
import '../chunk-JXT46QFC.js';
|
|
7
|
-
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-
|
|
7
|
+
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-X5EYJEEQ.js';
|
|
8
8
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-CGYEHQOX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-F2WTSHZS.js';
|
|
10
10
|
import '../chunk-F3HNW354.js';
|
|
11
11
|
import '../chunk-K5GBV4SA.js';
|
|
12
12
|
import '../chunk-QVZA2MDT.js';
|
|
@@ -20,8 +20,8 @@ import '../chunk-5Q7HA4JP.js';
|
|
|
20
20
|
import '../chunk-3A5IKBHQ.js';
|
|
21
21
|
export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
|
|
22
22
|
import '../chunk-UQ6LFBPZ.js';
|
|
23
|
-
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
24
|
-
import '../chunk-
|
|
23
|
+
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-DVSASEGO.js';
|
|
24
|
+
import '../chunk-AN6NAFRT.js';
|
|
25
25
|
import '../chunk-NSBPE2FW.js';
|
|
26
26
|
//# sourceMappingURL=asset-manager.js.map
|
|
27
27
|
//# sourceMappingURL=asset-manager.js.map
|
package/dist/sdk/bridge.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-
|
|
1
|
+
export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-DTSKPMP3.js';
|
|
2
2
|
export { CLOUD_SECRET_ENV_KEYS, SUPPORTED_CLOUDS, buildClaudeCloudEnv, probeResumeTranscript, resolveClaudeConfigDir } from '../chunk-RUFTB7QN.js';
|
|
3
3
|
export { dispatchCapability, filterRenderCapabilities, renderFallback } from '../chunk-RRVQAE5D.js';
|
|
4
|
-
export { ModelTierResolutionError, PROVIDER_MODEL_TIERS, STATIC_MODELS, fetchProviderModels, getModels, getStaticModels, resolveModelTier } from '../chunk-
|
|
4
|
+
export { ModelTierResolutionError, PROVIDER_ENDPOINTS, PROVIDER_MODEL_TIERS, STATIC_MODELS, fetchProviderModels, getModels, getStaticModels, resolveModelTier, resolveProviderModelsUrl } from '../chunk-GURXUF2J.js';
|
|
5
5
|
export { AccountUnavailableError, AuthError, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable } from '../chunk-GAH4YRCI.js';
|
|
6
|
-
export { AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, createDriver, getBridgeLogger, listDrivers, listModelsForDriver, registerBuiltinDrivers } from '../chunk-
|
|
6
|
+
export { AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, createDriver, getBridgeLogger, listDrivers, listModelsForDriver, registerBuiltinDrivers } from '../chunk-Z5ED4E57.js';
|
|
7
7
|
import '../chunk-6E6PKKAD.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-F2WTSHZS.js';
|
|
9
9
|
import '../chunk-F3HNW354.js';
|
|
10
10
|
import '../chunk-K5GBV4SA.js';
|
|
11
11
|
import '../chunk-QVZA2MDT.js';
|
package/dist/sdk/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, defaultLibraryDir, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveLibraryDir, resolveSettings, savePatch, saveSettings, skaileHomeDir, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-
|
|
1
|
+
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, defaultLibraryDir, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveLibraryDir, resolveSettings, savePatch, saveSettings, skaileHomeDir, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-F2WTSHZS.js';
|
|
2
2
|
export { deployedBase, deployedDir, isDeployed } from '../chunk-F3HNW354.js';
|
|
3
3
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
4
4
|
export { ASSET_KIND_DIRS, assetSearchDirs, detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-QVZA2MDT.js';
|
package/dist/sdk/flow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../chunk-
|
|
1
|
+
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../chunk-QZ6XXD3A.js';
|
|
2
2
|
import '../chunk-HY6CIKFH.js';
|
|
3
3
|
export { deterministicNodeKindLabel, flowDefaults, flowSkillVersionPins, isActiveRuntimeNode, isAgentNode, isCheckNode, isExecutableNode, isFunctionNode, isGateNode, isRouterNode, isSubFlowNode, isSubpromptNode, nodeAssets, nodeBindings, nodeInstruction, nodeIsInert, nodeIsOptional, nodeLabel, nodeRequiresApproval, nodeRunKind, nodeSkillAsset, nodeSkillId, nodeSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-F2WTSHZS.js';
|
|
5
5
|
import '../chunk-F3HNW354.js';
|
|
6
6
|
import '../chunk-K5GBV4SA.js';
|
|
7
7
|
import '../chunk-QVZA2MDT.js';
|
package/dist/sdk/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentClient } from '../chunk-AL6BU3SP.js';
|
|
2
|
-
import { startAgentServer } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
import { startAgentServer } from '../chunk-5WMFU575.js';
|
|
3
|
+
import '../chunk-6YDXCJGK.js';
|
|
4
4
|
import '../chunk-X5YPJV4N.js';
|
|
5
5
|
import '../chunk-W3UDISS2.js';
|
|
6
6
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -8,28 +8,28 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
8
8
|
import { WebSocketClientTransport } from '../chunk-GTS2FODO.js';
|
|
9
9
|
import '../chunk-WQ7DE5UC.js';
|
|
10
10
|
import '../chunk-32NA4TVC.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-LAOS2TZU.js';
|
|
12
12
|
import '../chunk-4R6DROGN.js';
|
|
13
13
|
import '../chunk-4VTBZ2MF.js';
|
|
14
14
|
import '../chunk-GHWJHOYX.js';
|
|
15
15
|
import '../chunk-NC5YXVZF.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-MTCLDJPR.js';
|
|
17
17
|
import '../chunk-3UU3D2Q3.js';
|
|
18
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-DTSKPMP3.js';
|
|
19
19
|
import '../chunk-RUFTB7QN.js';
|
|
20
20
|
import '../chunk-RRVQAE5D.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-GURXUF2J.js';
|
|
22
22
|
import '../chunk-GAH4YRCI.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-Z5ED4E57.js';
|
|
24
24
|
import '../chunk-6E6PKKAD.js';
|
|
25
25
|
import '../chunk-IFGTRL2I.js';
|
|
26
|
-
import '../chunk-
|
|
26
|
+
import '../chunk-QZ6XXD3A.js';
|
|
27
27
|
import '../chunk-AXEOG4B5.js';
|
|
28
28
|
import '../chunk-HY6CIKFH.js';
|
|
29
29
|
import '../chunk-2D5BYAL6.js';
|
|
30
30
|
import '../chunk-ELPR5XBG.js';
|
|
31
31
|
import '../chunk-2KBA5OO2.js';
|
|
32
|
-
import '../chunk-
|
|
32
|
+
import '../chunk-F2WTSHZS.js';
|
|
33
33
|
import '../chunk-F3HNW354.js';
|
|
34
34
|
import '../chunk-K5GBV4SA.js';
|
|
35
35
|
import '../chunk-QVZA2MDT.js';
|
package/dist/sdk/resolver.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { buildRequiresPreamble, parseCompactionDirectives, parseSkillFrontmatter, parseSkillRequirements, validateConnectorRequirements, validateFlowVersions, validateRequirements } from '../chunk-4VTBZ2MF.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-F2WTSHZS.js';
|
|
3
3
|
import '../chunk-F3HNW354.js';
|
|
4
4
|
import '../chunk-K5GBV4SA.js';
|
|
5
5
|
import '../chunk-QVZA2MDT.js';
|
package/dist/sdk/runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-5WMFU575.js';
|
|
2
|
+
import '../chunk-6YDXCJGK.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
|
|
5
5
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -7,28 +7,28 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-GTS2FODO.js';
|
|
8
8
|
import '../chunk-WQ7DE5UC.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-LAOS2TZU.js';
|
|
11
11
|
import '../chunk-4R6DROGN.js';
|
|
12
12
|
import '../chunk-4VTBZ2MF.js';
|
|
13
13
|
import '../chunk-GHWJHOYX.js';
|
|
14
14
|
import '../chunk-NC5YXVZF.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-MTCLDJPR.js';
|
|
16
16
|
import '../chunk-3UU3D2Q3.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-DTSKPMP3.js';
|
|
18
18
|
import '../chunk-RUFTB7QN.js';
|
|
19
19
|
import '../chunk-RRVQAE5D.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-GURXUF2J.js';
|
|
21
21
|
import '../chunk-GAH4YRCI.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-Z5ED4E57.js';
|
|
23
23
|
import '../chunk-6E6PKKAD.js';
|
|
24
24
|
import '../chunk-IFGTRL2I.js';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-QZ6XXD3A.js';
|
|
26
26
|
import '../chunk-AXEOG4B5.js';
|
|
27
27
|
import '../chunk-HY6CIKFH.js';
|
|
28
28
|
import '../chunk-2D5BYAL6.js';
|
|
29
29
|
import '../chunk-ELPR5XBG.js';
|
|
30
30
|
import '../chunk-2KBA5OO2.js';
|
|
31
|
-
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-
|
|
31
|
+
export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-F2WTSHZS.js';
|
|
32
32
|
import '../chunk-F3HNW354.js';
|
|
33
33
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
34
34
|
import '../chunk-QVZA2MDT.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { validateApiKey } from './chunk-
|
|
1
|
+
import { validateApiKey } from './chunk-DTSKPMP3.js';
|
|
2
2
|
import './chunk-RUFTB7QN.js';
|
|
3
3
|
import './chunk-RRVQAE5D.js';
|
|
4
|
-
import { getModels } from './chunk-
|
|
4
|
+
import { getModels } from './chunk-GURXUF2J.js';
|
|
5
5
|
import './chunk-GAH4YRCI.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-Z5ED4E57.js';
|
|
7
7
|
import './chunk-6E6PKKAD.js';
|
|
8
|
-
import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, projectSettingsPath, loadSettings, saveSettings, WorkspaceYamlEditor, providerEnvKey } from './chunk-
|
|
8
|
+
import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, projectSettingsPath, loadSettings, saveSettings, WorkspaceYamlEditor, providerEnvKey } from './chunk-F2WTSHZS.js';
|
|
9
9
|
import './chunk-F3HNW354.js';
|
|
10
10
|
import './chunk-K5GBV4SA.js';
|
|
11
11
|
import './chunk-QVZA2MDT.js';
|
|
@@ -511,5 +511,5 @@ async function cmdSetup(_args, opts) {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
export { cmdSetup };
|
|
514
|
-
//# sourceMappingURL=setup-
|
|
515
|
-
//# sourceMappingURL=setup-
|
|
514
|
+
//# sourceMappingURL=setup-EH4TZFMN.js.map
|
|
515
|
+
//# sourceMappingURL=setup-EH4TZFMN.js.map
|