@skaile/workspaces 0.23.0 → 0.25.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.
Files changed (122) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/{asset-feeds-WKIKSZ6Z.js → asset-feeds-77KLWCBP.js} +9 -9
  3. package/dist/{asset-feeds-WKIKSZ6Z.js.map → asset-feeds-77KLWCBP.js.map} +1 -1
  4. package/dist/asset-manager/index.js +7 -7
  5. package/dist/asset-manager/installer.js +6 -6
  6. package/dist/base-assets/connectors/deploy.js +7 -7
  7. package/dist/base-assets/connectors/devserver.js +7 -7
  8. package/dist/base-assets/connectors/flow/adapter.js +7 -7
  9. package/dist/base-assets/connectors/flow/run-flow.js +8 -8
  10. package/dist/base-assets/connectors/flow.js +7 -7
  11. package/dist/base-assets/connectors/git.js +7 -7
  12. package/dist/base-assets/connectors/gmail.js +7 -7
  13. package/dist/base-assets/connectors/googledrive/driver.d.ts.map +1 -1
  14. package/dist/base-assets/connectors/googledrive.js +7 -7
  15. package/dist/base-assets/connectors/local.js +7 -7
  16. package/dist/base-assets/connectors/mattermost.js +7 -7
  17. package/dist/base-assets/connectors/memory.js +7 -7
  18. package/dist/base-assets/connectors/minio.js +7 -7
  19. package/dist/base-assets/connectors/postgres.js +7 -7
  20. package/dist/base-assets/connectors/s3.js +7 -7
  21. package/dist/base-assets/connectors/sharepoint/driver.d.ts.map +1 -1
  22. package/dist/base-assets/connectors/sharepoint.js +7 -7
  23. package/dist/base-assets/connectors/sqlite.js +7 -7
  24. package/dist/base-assets/connectors/static-server.js +7 -7
  25. package/dist/base-assets/connectors/tunnel.js +7 -7
  26. package/dist/base-assets/connectors/webdav/driver.d.ts.map +1 -1
  27. package/dist/base-assets/connectors/webdav.js +7 -7
  28. package/dist/base-assets/connectors/xstate-store/adapter.d.ts +1 -1
  29. package/dist/base-assets/connectors/xstate-store/adapter.d.ts.map +1 -1
  30. package/dist/base-assets/connectors/xstate-store.js +7 -7
  31. package/dist/base-assets/connectors/xstate.js +7 -7
  32. package/dist/{chunk-542K7SR6.js → chunk-3QTZWPGH.js} +36 -7
  33. package/dist/chunk-3QTZWPGH.js.map +1 -0
  34. package/dist/{chunk-46COM7M5.js → chunk-4FADEVBN.js} +4 -4
  35. package/dist/{chunk-46COM7M5.js.map → chunk-4FADEVBN.js.map} +1 -1
  36. package/dist/{chunk-AFLH7B64.js → chunk-4FJE6BI6.js} +3 -3
  37. package/dist/{chunk-AFLH7B64.js.map → chunk-4FJE6BI6.js.map} +1 -1
  38. package/dist/{chunk-OVQZ5OKL.js → chunk-4QVFQEY2.js} +2 -2
  39. package/dist/{chunk-OVQZ5OKL.js.map → chunk-4QVFQEY2.js.map} +1 -1
  40. package/dist/{chunk-BTAC2VYT.js → chunk-B4ZXBH57.js} +7 -7
  41. package/dist/{chunk-BTAC2VYT.js.map → chunk-B4ZXBH57.js.map} +1 -1
  42. package/dist/{chunk-DZCFFTAX.js → chunk-BJWUSHC4.js} +336 -113
  43. package/dist/chunk-BJWUSHC4.js.map +1 -0
  44. package/dist/{chunk-2F3RUZXC.js → chunk-DCAWIRD6.js} +15 -6
  45. package/dist/chunk-DCAWIRD6.js.map +1 -0
  46. package/dist/{chunk-QTWA6BZK.js → chunk-FJFHJBGS.js} +5 -5
  47. package/dist/{chunk-QTWA6BZK.js.map → chunk-FJFHJBGS.js.map} +1 -1
  48. package/dist/{chunk-DH4N5AW4.js → chunk-GL45UNVS.js} +3 -3
  49. package/dist/{chunk-DH4N5AW4.js.map → chunk-GL45UNVS.js.map} +1 -1
  50. package/dist/{chunk-LJ52ZKIU.js → chunk-KT3CK26V.js} +3 -3
  51. package/dist/{chunk-LJ52ZKIU.js.map → chunk-KT3CK26V.js.map} +1 -1
  52. package/dist/{chunk-2RFOFHSM.js → chunk-QXC62DOF.js} +4 -4
  53. package/dist/{chunk-2RFOFHSM.js.map → chunk-QXC62DOF.js.map} +1 -1
  54. package/dist/{chunk-ODPII24X.js → chunk-SETTLPBD.js} +3 -3
  55. package/dist/{chunk-ODPII24X.js.map → chunk-SETTLPBD.js.map} +1 -1
  56. package/dist/{chunk-5ESCS2OS.js → chunk-UD4ZLXGS.js} +4 -4
  57. package/dist/{chunk-5ESCS2OS.js.map → chunk-UD4ZLXGS.js.map} +1 -1
  58. package/dist/{chunk-YX3UWPJ5.js → chunk-WIAHJOMG.js} +19 -49
  59. package/dist/chunk-WIAHJOMG.js.map +1 -0
  60. package/dist/{chunk-E4UJ7CVK.js → chunk-XMP6XTMF.js} +213 -57
  61. package/dist/chunk-XMP6XTMF.js.map +1 -0
  62. package/dist/{chunk-Z3M5K67G.js → chunk-XVL22AWE.js} +3 -3
  63. package/dist/{chunk-Z3M5K67G.js.map → chunk-XVL22AWE.js.map} +1 -1
  64. package/dist/cli/index.js +160 -46
  65. package/dist/cli/index.js.map +1 -1
  66. package/dist/cli/src/commands/project.d.ts.map +1 -1
  67. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  68. package/dist/connectors/config.js +6 -6
  69. package/dist/connectors/index.js +7 -7
  70. package/dist/connectors/src/connector-manager.d.ts +49 -0
  71. package/dist/connectors/src/connector-manager.d.ts.map +1 -1
  72. package/dist/connectors/src/connector-types.d.ts +16 -0
  73. package/dist/connectors/src/connector-types.d.ts.map +1 -1
  74. package/dist/core/index.js +5 -5
  75. package/dist/core/manifest.js +2 -2
  76. package/dist/core/models.js +1 -1
  77. package/dist/core/runtime-assets.js +4 -4
  78. package/dist/core/src/index.d.ts +2 -2
  79. package/dist/core/src/index.d.ts.map +1 -1
  80. package/dist/core/src/models.d.ts +10 -3
  81. package/dist/core/src/models.d.ts.map +1 -1
  82. package/dist/core/src/workspace-config.d.ts +21 -0
  83. package/dist/core/src/workspace-config.d.ts.map +1 -1
  84. package/dist/core/workspace-config.js +3 -3
  85. package/dist/deploy/index.js +5 -5
  86. package/dist/discovery/index.js +3 -3
  87. package/dist/{ensure-sources-OJUBGX6Z.js → ensure-sources-7MOOKY3K.js} +9 -9
  88. package/dist/{ensure-sources-OJUBGX6Z.js.map → ensure-sources-7MOOKY3K.js.map} +1 -1
  89. package/dist/library/index.js +12 -4
  90. package/dist/library/src/install/install-from-manifest.d.ts.map +1 -1
  91. package/dist/open-library-GW7DWWNZ.js +21 -0
  92. package/dist/{open-library-67FSSQWE.js.map → open-library-GW7DWWNZ.js.map} +1 -1
  93. package/dist/{plugin-store-IZ5SCRAV.js → plugin-store-R32NH7JE.js} +7 -7
  94. package/dist/{plugin-store-IZ5SCRAV.js.map → plugin-store-R32NH7JE.js.map} +1 -1
  95. package/dist/runner/index.js +9 -9
  96. package/dist/runner/src/external-mcp.d.ts +112 -0
  97. package/dist/runner/src/external-mcp.d.ts.map +1 -0
  98. package/dist/runner/src/resources.d.ts +22 -1
  99. package/dist/runner/src/resources.d.ts.map +1 -1
  100. package/dist/runner/src/serve.d.ts.map +1 -1
  101. package/dist/runner/src/session-builder.d.ts +19 -0
  102. package/dist/runner/src/session-builder.d.ts.map +1 -1
  103. package/dist/sdk/asset-manager.js +7 -7
  104. package/dist/sdk/core.js +5 -5
  105. package/dist/sdk/index.js +9 -9
  106. package/dist/sdk/runner.js +9 -9
  107. package/dist/{setup-J7CYEQOF.js → setup-SRPBQOHY.js} +7 -7
  108. package/dist/{setup-J7CYEQOF.js.map → setup-SRPBQOHY.js.map} +1 -1
  109. package/dist/store-client-INZD2RYD.js +14 -0
  110. package/dist/{store-client-AEI6Y3KD.js.map → store-client-INZD2RYD.js.map} +1 -1
  111. package/dist/tui/index.js +9 -9
  112. package/dist/types/src/install-manifest.d.ts +1 -1
  113. package/dist/types/src/install-manifest.d.ts.map +1 -1
  114. package/dist/workspace-plugin/index.js +1 -1
  115. package/package.json +1 -1
  116. package/dist/chunk-2F3RUZXC.js.map +0 -1
  117. package/dist/chunk-542K7SR6.js.map +0 -1
  118. package/dist/chunk-DZCFFTAX.js.map +0 -1
  119. package/dist/chunk-E4UJ7CVK.js.map +0 -1
  120. package/dist/chunk-YX3UWPJ5.js.map +0 -1
  121. package/dist/open-library-67FSSQWE.js +0 -13
  122. package/dist/store-client-AEI6Y3KD.js +0 -14
@@ -0,0 +1,21 @@
1
+ export { openCatalogSource, openLibrary, openLibraryManager, resolveCatalogSource } from './chunk-4FADEVBN.js';
2
+ import './chunk-WSZAFRQL.js';
3
+ import './chunk-DCAWIRD6.js';
4
+ import './chunk-R7FOF242.js';
5
+ import './chunk-KT3CK26V.js';
6
+ import './chunk-OKRUTSG7.js';
7
+ import './chunk-ICS76R4T.js';
8
+ import './chunk-XVL22AWE.js';
9
+ import './chunk-K5GBV4SA.js';
10
+ import './chunk-KLNL7QHN.js';
11
+ import './chunk-UD4ZLXGS.js';
12
+ import './chunk-3QTZWPGH.js';
13
+ import './chunk-GL45UNVS.js';
14
+ import './chunk-WIAHJOMG.js';
15
+ import './chunk-JKNWJ64A.js';
16
+ import './chunk-O4JH3KUE.js';
17
+ import './chunk-24UIWON4.js';
18
+ import './chunk-NELZIQ2E.js';
19
+ import './chunk-NSBPE2FW.js';
20
+ //# sourceMappingURL=open-library-GW7DWWNZ.js.map
21
+ //# sourceMappingURL=open-library-GW7DWWNZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-67FSSQWE.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-GW7DWWNZ.js"}
@@ -1,11 +1,11 @@
1
1
  import { pluginRegistry } from './chunk-6E6PKKAD.js';
2
- import { readPluginsLockSlice } from './chunk-Z3M5K67G.js';
2
+ import { readPluginsLockSlice } from './chunk-XVL22AWE.js';
3
3
  import './chunk-K5GBV4SA.js';
4
4
  import './chunk-KLNL7QHN.js';
5
- import './chunk-5ESCS2OS.js';
6
- import './chunk-542K7SR6.js';
7
- import './chunk-DH4N5AW4.js';
8
- import './chunk-YX3UWPJ5.js';
5
+ import './chunk-UD4ZLXGS.js';
6
+ import './chunk-3QTZWPGH.js';
7
+ import './chunk-GL45UNVS.js';
8
+ import './chunk-WIAHJOMG.js';
9
9
  import './chunk-JKNWJ64A.js';
10
10
  import './chunk-O4JH3KUE.js';
11
11
  import './chunk-24UIWON4.js';
@@ -140,5 +140,5 @@ async function ensurePluginsLoaded(projectDir, plugins, registry = pluginRegistr
140
140
  }
141
141
 
142
142
  export { defaultInstall, ensurePluginsLoaded, loadPlugins, lockPath, nodeModulesDir, parseSpec, pluginsDir, pluginsPkgJson, reconcileHashFile, reconcilePlugins, resolvePluginEntry, specName };
143
- //# sourceMappingURL=plugin-store-IZ5SCRAV.js.map
144
- //# sourceMappingURL=plugin-store-IZ5SCRAV.js.map
143
+ //# sourceMappingURL=plugin-store-R32NH7JE.js.map
144
+ //# sourceMappingURL=plugin-store-R32NH7JE.js.map
@@ -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;AAGO,SAAS,SAAS,UAAA,EAA4B;AACnD,EAAA,OAAO,IAAA,CAAK,YAAY,kBAAkB,CAAA;AAC5C;AAOO,SAAS,kBAAA,CAAmB,YAAoB,OAAA,EAAyB;AAC9E,EAAA,OAAO,IAAA,CA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AAM,MAAA,EAAQ,YAAA,EAAa;AAC/C;;;AC/EA,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-IZ5SCRAV.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/** `<projectDir>/skaile.lock.yaml` — the project lock file. */\nexport function lockPath(projectDir: string): string {\n return join(projectDir, \"skaile.lock.yaml\");\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 { LoadOptions, LoadResult } from \"./load.js\";\nexport { loadPlugins } from \"./load.js\";\nexport {\n lockPath,\n nodeModulesDir,\n pluginsDir,\n pluginsPkgJson,\n reconcileHashFile,\n resolvePluginEntry,\n} from \"./paths.js\";\nexport type { InstallFn, ReconcileOptions, ReconcileResult } from \"./reconcile.js\";\nexport { defaultInstall, reconcilePlugins } from \"./reconcile.js\";\nexport type { PluginSpec } from \"./spec.js\";\nexport { parseSpec, 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,EA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,QAAA,EAAU;AACrB,MAAA,OAAO,EAAE,OAAA,EAAS,KAAA,EAAO,MAAA,EAAQ,YAAA,EAAa;AAAA,IAChD;AAAA,EACF;AAEA,EAAA,gBAAA,CAAiB,YAAY,OAAO,CAAA;AAEpC,EAAA,MAAM,OAAA,GAAU,KAAK,UAAA,IAAc,cAAA;AACnC,EAAA,MAAM,MAAA,GAAS,MAAM,OAAA,CAAQ,UAAA,CAAW,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;;;AC/EA,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-R32NH7JE.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/** `<projectDir>/skaile.lock.yaml` — the project lock file. */\nexport function lockPath(projectDir: string): string {\n return join(projectDir, \"skaile.lock.yaml\");\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 { LoadOptions, LoadResult } from \"./load.js\";\nexport { loadPlugins } from \"./load.js\";\nexport {\n lockPath,\n nodeModulesDir,\n pluginsDir,\n pluginsPkgJson,\n reconcileHashFile,\n resolvePluginEntry,\n} from \"./paths.js\";\nexport type { InstallFn, ReconcileOptions, ReconcileResult } from \"./reconcile.js\";\nexport { defaultInstall, reconcilePlugins } from \"./reconcile.js\";\nexport type { PluginSpec } from \"./spec.js\";\nexport { parseSpec, 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,5 +1,5 @@
1
- export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-DZCFFTAX.js';
2
- import '../chunk-OVQZ5OKL.js';
1
+ export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-BJWUSHC4.js';
2
+ import '../chunk-4QVFQEY2.js';
3
3
  import '../chunk-X5YPJV4N.js';
4
4
  import '../chunk-O7SG5PC2.js';
5
5
  import '../chunk-7QBNJTTQ.js';
@@ -14,21 +14,21 @@ import '../chunk-KOVLSBXK.js';
14
14
  import '../chunk-RRVQAE5D.js';
15
15
  import '../chunk-6VTG73UY.js';
16
16
  import '../chunk-LV2HPH3C.js';
17
- import '../chunk-E4UJ7CVK.js';
18
- import '../chunk-ODPII24X.js';
17
+ import '../chunk-XMP6XTMF.js';
18
+ import '../chunk-SETTLPBD.js';
19
19
  import '../chunk-QMONOHXT.js';
20
20
  import '../chunk-QAVZOJCV.js';
21
21
  import '../chunk-6E6PKKAD.js';
22
22
  import '../chunk-ICS76R4T.js';
23
23
  import '../chunk-GZWJGNNN.js';
24
24
  import '../chunk-FVTV7M76.js';
25
- export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-Z3M5K67G.js';
25
+ export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-XVL22AWE.js';
26
26
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
27
27
  import '../chunk-KLNL7QHN.js';
28
- import '../chunk-5ESCS2OS.js';
29
- import '../chunk-542K7SR6.js';
30
- import '../chunk-DH4N5AW4.js';
31
- import '../chunk-YX3UWPJ5.js';
28
+ import '../chunk-UD4ZLXGS.js';
29
+ import '../chunk-3QTZWPGH.js';
30
+ import '../chunk-GL45UNVS.js';
31
+ import '../chunk-WIAHJOMG.js';
32
32
  import '../chunk-JKNWJ64A.js';
33
33
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
34
34
  import '../chunk-24UIWON4.js';
@@ -0,0 +1,112 @@
1
+ import { type McpServerDeclaration } from "@skaile/workspaces/core";
2
+ import type { CapabilityRegistry } from "./capability-registry.js";
3
+ /**
4
+ * Minimal interface for secret resolution — avoids a hard import of
5
+ * `@skaile/workspaces/connectors` just for the SecretProvider type.
6
+ */
7
+ export interface SecretProviderLike {
8
+ resolve(ref: string): string | undefined;
9
+ }
10
+ /**
11
+ * Resolve secret references (`env:VAR`, `forge:KEY`, etc.) in a string-keyed
12
+ * record. Returns a new record with resolved values; entries that fail to
13
+ * resolve are passed through unchanged.
14
+ */
15
+ export declare function resolveRecordSecrets(record: Record<string, string>, secrets: SecretProviderLike | undefined): Record<string, string>;
16
+ /**
17
+ * Load the declarative MCP servers from `skaile.yaml` and resolve any
18
+ * `recipe:` bindings into absolute `/nix/store` paths, substituting
19
+ * `${recipe:<id>...}` markers in `command`, `args`, and `env`.
20
+ *
21
+ * Mirrors the resilience of the original wiring: a single broken declaration
22
+ * (reserved id, recipe resolution failure, unresolved/invalid substituted
23
+ * path) is logged and dropped — it never aborts the caller. Secret references
24
+ * in `env` / `headers` are NOT resolved here; the spawn path resolves them at
25
+ * transport-construction time so resolved secrets never sit in the returned
26
+ * declaration objects.
27
+ *
28
+ * @returns The recipe-substituted declarations ready for spawn (or SDK
29
+ * delegation in the legacy fallback path).
30
+ */
31
+ export declare function resolveExternalMcpDeclarations(projectDir: string, sessionId?: string): McpServerDeclaration[];
32
+ /** A single tool advertised by an MCP server's `tools/list`. */
33
+ export interface McpToolDescriptor {
34
+ name: string;
35
+ description?: string;
36
+ inputSchema?: unknown;
37
+ }
38
+ /**
39
+ * Minimal MCP client surface the manager depends on. The real
40
+ * `@modelcontextprotocol/sdk` {@link Client} satisfies this structurally; tests
41
+ * inject a fake via the {@link ExternalMcpManager} constructor's `connect`
42
+ * argument so they need no live subprocess and run under both Bun and Node.
43
+ */
44
+ export interface McpClientLike {
45
+ listTools(): Promise<{
46
+ tools: McpToolDescriptor[];
47
+ }>;
48
+ callTool(params: {
49
+ name: string;
50
+ arguments?: Record<string, unknown>;
51
+ }): Promise<{
52
+ content?: Array<{
53
+ type?: string;
54
+ text?: string;
55
+ }>;
56
+ isError?: boolean;
57
+ }>;
58
+ close(): Promise<void>;
59
+ }
60
+ /** Connects (spawns/handshakes) the MCP client for one declaration. */
61
+ export type McpClientConnector = (decl: McpServerDeclaration) => Promise<McpClientLike>;
62
+ /**
63
+ * Spawns and owns the lifecycle of every external MCP server for a session,
64
+ * registering each server's tools into the {@link CapabilityRegistry}.
65
+ *
66
+ * One instance per session (one per `buildAgentResources` pass). Spawn after
67
+ * recipe resolution; the subprocesses stay alive for the session and are killed
68
+ * by {@link dispose} at session end. A spawn / connect failure for one server is
69
+ * logged and skipped — it never aborts session startup (mirrors the
70
+ * recipe-resolution "drop the server, continue" behavior).
71
+ *
72
+ * @category Runtime
73
+ * @since 3.5.0
74
+ */
75
+ export declare class ExternalMcpManager {
76
+ private readonly registry;
77
+ private readonly servers;
78
+ private readonly log;
79
+ private readonly connect;
80
+ /**
81
+ * @param registry Session capability registry to register MCP tools into.
82
+ * @param secrets Secret provider for resolving `env:` / `forge:` refs in the
83
+ * stdio subprocess env and sse/http headers.
84
+ * @param sessionId Used for the logger instance slice.
85
+ * @param connect Optional connector override (tests inject a fake client so
86
+ * no live subprocess is spawned). Defaults to the real SDK
87
+ * client + transport.
88
+ */
89
+ constructor(registry: CapabilityRegistry, secrets: SecretProviderLike | undefined, sessionId?: string, connect?: McpClientConnector);
90
+ /** True when at least one external server connected and registered tools. */
91
+ hasServers(): boolean;
92
+ /**
93
+ * Connect every declaration and register its tools. Per-server failures are
94
+ * logged and skipped so a single bad server never blocks the session.
95
+ */
96
+ start(declarations: McpServerDeclaration[]): Promise<void>;
97
+ private startServer;
98
+ /**
99
+ * Wrap a single MCP tool as a {@link DefinedCapability}. The capability name
100
+ * is `mcp__<server>__<tool>` (the naming claude-sdk wildcards and prompts
101
+ * depend on). The handler proxies the call to the live MCP client; a tool
102
+ * error (`isError`) is rethrown so the capability dispatch path surfaces it
103
+ * to the LLM as a tool failure.
104
+ */
105
+ private buildToolCapability;
106
+ /**
107
+ * Deregister every tool and close every client (kills the subprocesses).
108
+ * Best-effort: a failed close on one server does not prevent the rest.
109
+ */
110
+ dispose(): Promise<void>;
111
+ }
112
+ //# sourceMappingURL=external-mcp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-mcp.d.ts","sourceRoot":"","sources":["../../../runner/src/external-mcp.ts"],"names":[],"mappings":"AAmCA,OAAO,EAA6B,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAanE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,OAAO,EAAE,kBAAkB,GAAG,SAAS,GACtC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB;AAaD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB,oBAAoB,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Y,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAclD,WAAW;IAiCzB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IA8C3B;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAgB/B"}
@@ -9,6 +9,8 @@
9
9
  */
10
10
  import { type ConnectorChangeEvent, type PreMintedSecretProvider, type SyncStatusPayload, type TokenMediator } from "@skaile/workspaces/connectors";
11
11
  import { type RuntimeAssetsResult } from "@skaile/workspaces/core";
12
+ import type { ConnectorStatusEvent } from "@skaile/workspaces/types";
13
+ import type { CapabilityRegistry } from "./capability-registry.js";
12
14
  /**
13
15
  * Result of {@link buildAgentResources}.
14
16
  *
@@ -59,6 +61,13 @@ export interface ResourceWatchCallbacks {
59
61
  onFileChanged?: (connectorId: string, event: ConnectorChangeEvent) => void;
60
62
  /** Dedup window for file_changed events in milliseconds. Default: 500. */
61
63
  dedupTtlMs?: number;
64
+ /**
65
+ * Called whenever a connector's connection state changes
66
+ * (`connecting` → `connected` | `error`, plus `disconnected`). Used by
67
+ * serve.ts to forward `connector_status` events to the platform — the
68
+ * channel deferred (background) filesystem mounts report progress through.
69
+ */
70
+ onConnectorStatus?: (event: ConnectorStatusEvent) => void;
62
71
  }
63
72
  /**
64
73
  * Set up all connectors declared in `skaile.yaml` for an agent session.
@@ -84,11 +93,23 @@ export interface ResourceWatchCallbacks {
84
93
  * supplied, `auth: backend` connectors find their initial
85
94
  * token in-process instead of paying a
86
95
  * `request_access_token` round-trip at connect time.
96
+ * @param deferFilesystemMounts When true, rclone-backed filesystem-face
97
+ * connectors (marked `deferMount`) are brought up in the
98
+ * background instead of being awaited — so a slow remote
99
+ * can't gate session bootstrap. Their mount path is still
100
+ * rendered immediately; progress rides `onConnectorStatus`.
101
+ * @param capabilityRegistry When supplied, external (declarative / recipe-backed)
102
+ * MCP servers are spawned and connected BY THE RUNNER and
103
+ * their tools registered into this registry as
104
+ * `mcp`-origin capabilities — the bridge-agnostic path
105
+ * that works on every driver. When omitted, the legacy
106
+ * claude-sdk-only path is used (external stdio servers are
107
+ * delegated to the SDK's `mcpServers` query option).
87
108
  * @docLink packages/runner/dev-guide#flow-execution-turn-based-model
88
109
  */
89
110
  export declare function buildAgentResources(projectDir: string, driverType: string, _onLog?: (line: string) => void, watch?: ResourceWatchCallbacks, secretProvider?: unknown, sessionMeta?: {
90
111
  provider?: string;
91
112
  model?: string;
92
113
  sessionId?: string;
93
- }, tokenMediator?: TokenMediator, preMintedSecrets?: PreMintedSecretProvider): Promise<AgentResourcesResult>;
114
+ }, tokenMediator?: TokenMediator, preMintedSecrets?: PreMintedSecretProvider, deferFilesystemMounts?: boolean, capabilityRegistry?: CapabilityRegistry): Promise<AgentResourcesResult>;
94
115
  //# sourceMappingURL=resources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../runner/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAGL,KAAK,oBAAoB,EAMzB,KAAK,uBAAuB,EAE5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAejC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,+FAA+F;IAC/F,eAAe,EAAE,GAAG,GAAG,IAAI,CAAC;IAC5B,sFAAsF;IACtF,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAChD;;;;;OAKG;IACH,aAAa,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C,wEAAwE;IACxE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG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AAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA4jExE"}
@@ -22,6 +22,7 @@ import type { AgentDriver, BridgeCapabilityHooks } from "@skaile/workspaces/brid
22
22
  import type { AgentManifest, RuntimeAssetsResult, SkWorkspaceConfig } from "@skaile/workspaces/core";
23
23
  import type { TelemetryProvider, Trace } from "@skaile/workspaces/telemetry";
24
24
  import type { SystemPromptSection } from "@skaile/workspaces/types";
25
+ import type { CapabilityRegistry } from "./capability-registry.js";
25
26
  import { type ResolvedComposition } from "./composition/bootstrap.js";
26
27
  import { type ResourceWatchCallbacks } from "./resources.js";
27
28
  export type { ResourceWatchCallbacks };
@@ -72,6 +73,13 @@ export interface AgentSessionConfig {
72
73
  effort?: "low" | "medium" | "high" | "max";
73
74
  /** Watch callbacks for filesystem/sync events (serve mode only). */
74
75
  watch?: ResourceWatchCallbacks;
76
+ /**
77
+ * When true, rclone-backed filesystem-face connectors are mounted in the
78
+ * background instead of awaited, so a slow remote can't delay session
79
+ * bootstrap (notably the platform's `session_init_ack` deadline). Serve mode
80
+ * sets this; CLI/flow/REPL paths leave it unset (mount eagerly).
81
+ */
82
+ deferFilesystemMounts?: boolean;
75
83
  /** Secret provider for connector credential resolution. */
76
84
  secretProvider?: unknown;
77
85
  /**
@@ -144,6 +152,17 @@ export interface AgentSessionConfig {
144
152
  * @since 2.0.0
145
153
  */
146
154
  capabilities?: BridgeCapabilityHooks;
155
+ /**
156
+ * The session's Protocol v2 capability registry. When supplied, external
157
+ * (declarative / recipe-backed) MCP servers are spawned and connected BY THE
158
+ * RUNNER during `buildAgentResources`, with each tool registered into this
159
+ * registry as an `mcp`-origin capability — the bridge-agnostic surface every
160
+ * driver consumes. Omit (CLI / flow) to fall back to the legacy
161
+ * claude-sdk-only SDK delegation for external stdio servers.
162
+ *
163
+ * @since 3.5.0
164
+ */
165
+ capabilityRegistry?: CapabilityRegistry;
147
166
  }
148
167
  /**
149
168
  * A configured agent session returned by {@link createAgentSession}.
@@ -1 +1 @@
1
- {"version":3,"file":"session-builder.d.ts","sourceRoot":"","sources":["../../../runner/src/session-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI/F,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAElF,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAMvC;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH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AU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wEAAwE;IACxE,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,kFAAkF;IAClF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,oEAAoE;IACpE,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B;;;;;;;;;OASG;IACH,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;CAC7C;AAMD;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CAkO1F"}
@@ -1,12 +1,12 @@
1
- export { AssetManager, parseCanonicalLockKey } from '../chunk-BTAC2VYT.js';
2
- export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-2RFOFHSM.js';
3
- import '../chunk-Z3M5K67G.js';
1
+ export { AssetManager, parseCanonicalLockKey } from '../chunk-B4ZXBH57.js';
2
+ export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-QXC62DOF.js';
3
+ import '../chunk-XVL22AWE.js';
4
4
  import '../chunk-K5GBV4SA.js';
5
5
  import '../chunk-KLNL7QHN.js';
6
- import '../chunk-5ESCS2OS.js';
7
- import '../chunk-542K7SR6.js';
8
- import '../chunk-DH4N5AW4.js';
9
- import '../chunk-YX3UWPJ5.js';
6
+ import '../chunk-UD4ZLXGS.js';
7
+ import '../chunk-3QTZWPGH.js';
8
+ import '../chunk-GL45UNVS.js';
9
+ import '../chunk-WIAHJOMG.js';
10
10
  import '../chunk-JKNWJ64A.js';
11
11
  import '../chunk-O4JH3KUE.js';
12
12
  import '../chunk-24UIWON4.js';
package/dist/sdk/core.js CHANGED
@@ -1,10 +1,10 @@
1
- export { ALL_PROVIDERS, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-Z3M5K67G.js';
1
+ export { ALL_PROVIDERS, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-XVL22AWE.js';
2
2
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
3
3
  export { detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-KLNL7QHN.js';
4
- export { BASE_ASSETS_REPO_NAME, resolveBaseAssetsRoot, resolveRuntimeAssets } from '../chunk-5ESCS2OS.js';
5
- export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, decodeSkaileYaml, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, scanRepo, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-542K7SR6.js';
6
- export { bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-DH4N5AW4.js';
7
- export { ASSET_KINDS, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-YX3UWPJ5.js';
4
+ export { BASE_ASSETS_REPO_NAME, resolveBaseAssetsRoot, resolveRuntimeAssets } from '../chunk-UD4ZLXGS.js';
5
+ export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, decodeSkaileYaml, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, scanRepo, stageMaterializedSkills, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-3QTZWPGH.js';
6
+ export { bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-GL45UNVS.js';
7
+ export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-WIAHJOMG.js';
8
8
  export { deployedBase, deployedDir, isDeployed } from '../chunk-JKNWJ64A.js';
9
9
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
10
10
  export { LogStore, LogStoreDisabledError, NoOpSink, OnLogBridgeSink, SqliteSink, StdoutSink, WsLogSink, createLogStoreFromConfig, createLogger, getLogStore, normalizeError, openSqlite, registerLogStore, resetLogStore, resolveLogStoreConfig, sanitizeData } from '../chunk-24UIWON4.js';
package/dist/sdk/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AgentClient } from '../chunk-SZ3SIVZQ.js';
2
- import { startAgentServer } from '../chunk-DZCFFTAX.js';
3
- import '../chunk-OVQZ5OKL.js';
2
+ import { startAgentServer } from '../chunk-BJWUSHC4.js';
3
+ import '../chunk-4QVFQEY2.js';
4
4
  import '../chunk-X5YPJV4N.js';
5
5
  import '../chunk-O7SG5PC2.js';
6
6
  import '../chunk-7QBNJTTQ.js';
@@ -15,21 +15,21 @@ import '../chunk-KOVLSBXK.js';
15
15
  import '../chunk-RRVQAE5D.js';
16
16
  import '../chunk-6VTG73UY.js';
17
17
  import '../chunk-LV2HPH3C.js';
18
- import '../chunk-E4UJ7CVK.js';
19
- import '../chunk-ODPII24X.js';
18
+ import '../chunk-XMP6XTMF.js';
19
+ import '../chunk-SETTLPBD.js';
20
20
  import '../chunk-QMONOHXT.js';
21
21
  import '../chunk-QAVZOJCV.js';
22
22
  import '../chunk-6E6PKKAD.js';
23
23
  import '../chunk-ICS76R4T.js';
24
24
  import '../chunk-GZWJGNNN.js';
25
25
  import '../chunk-FVTV7M76.js';
26
- import '../chunk-Z3M5K67G.js';
26
+ import '../chunk-XVL22AWE.js';
27
27
  import '../chunk-K5GBV4SA.js';
28
28
  import '../chunk-KLNL7QHN.js';
29
- import '../chunk-5ESCS2OS.js';
30
- import '../chunk-542K7SR6.js';
31
- import '../chunk-DH4N5AW4.js';
32
- import '../chunk-YX3UWPJ5.js';
29
+ import '../chunk-UD4ZLXGS.js';
30
+ import '../chunk-3QTZWPGH.js';
31
+ import '../chunk-GL45UNVS.js';
32
+ import '../chunk-WIAHJOMG.js';
33
33
  import '../chunk-JKNWJ64A.js';
34
34
  import '../chunk-O4JH3KUE.js';
35
35
  import '../chunk-24UIWON4.js';
@@ -1,5 +1,5 @@
1
- export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-DZCFFTAX.js';
2
- import '../chunk-OVQZ5OKL.js';
1
+ export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-BJWUSHC4.js';
2
+ import '../chunk-4QVFQEY2.js';
3
3
  import '../chunk-X5YPJV4N.js';
4
4
  import '../chunk-O7SG5PC2.js';
5
5
  import '../chunk-7QBNJTTQ.js';
@@ -14,21 +14,21 @@ import '../chunk-KOVLSBXK.js';
14
14
  import '../chunk-RRVQAE5D.js';
15
15
  import '../chunk-6VTG73UY.js';
16
16
  import '../chunk-LV2HPH3C.js';
17
- import '../chunk-E4UJ7CVK.js';
18
- import '../chunk-ODPII24X.js';
17
+ import '../chunk-XMP6XTMF.js';
18
+ import '../chunk-SETTLPBD.js';
19
19
  import '../chunk-QMONOHXT.js';
20
20
  import '../chunk-QAVZOJCV.js';
21
21
  import '../chunk-6E6PKKAD.js';
22
22
  import '../chunk-ICS76R4T.js';
23
23
  import '../chunk-GZWJGNNN.js';
24
24
  import '../chunk-FVTV7M76.js';
25
- export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-Z3M5K67G.js';
25
+ export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-XVL22AWE.js';
26
26
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
27
27
  import '../chunk-KLNL7QHN.js';
28
- import '../chunk-5ESCS2OS.js';
29
- import '../chunk-542K7SR6.js';
30
- import '../chunk-DH4N5AW4.js';
31
- import '../chunk-YX3UWPJ5.js';
28
+ import '../chunk-UD4ZLXGS.js';
29
+ import '../chunk-3QTZWPGH.js';
30
+ import '../chunk-GL45UNVS.js';
31
+ import '../chunk-WIAHJOMG.js';
32
32
  import '../chunk-JKNWJ64A.js';
33
33
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
34
34
  import '../chunk-24UIWON4.js';
@@ -4,13 +4,13 @@ import { getModels } from './chunk-KOVLSBXK.js';
4
4
  import './chunk-RRVQAE5D.js';
5
5
  import './chunk-6VTG73UY.js';
6
6
  import './chunk-6E6PKKAD.js';
7
- import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, providerEnvKey, projectSettingsPath, loadSettings, WorkspaceYamlEditor, saveSettings } from './chunk-Z3M5K67G.js';
7
+ import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, providerEnvKey, projectSettingsPath, loadSettings, WorkspaceYamlEditor, saveSettings } from './chunk-XVL22AWE.js';
8
8
  import './chunk-K5GBV4SA.js';
9
9
  import './chunk-KLNL7QHN.js';
10
- import './chunk-5ESCS2OS.js';
11
- import './chunk-542K7SR6.js';
12
- import './chunk-DH4N5AW4.js';
13
- import './chunk-YX3UWPJ5.js';
10
+ import './chunk-UD4ZLXGS.js';
11
+ import './chunk-3QTZWPGH.js';
12
+ import './chunk-GL45UNVS.js';
13
+ import './chunk-WIAHJOMG.js';
14
14
  import './chunk-JKNWJ64A.js';
15
15
  import './chunk-O4JH3KUE.js';
16
16
  import './chunk-24UIWON4.js';
@@ -485,5 +485,5 @@ async function cmdSetup(_args, opts) {
485
485
  }
486
486
 
487
487
  export { cmdSetup };
488
- //# sourceMappingURL=setup-J7CYEQOF.js.map
489
- //# sourceMappingURL=setup-J7CYEQOF.js.map
488
+ //# sourceMappingURL=setup-SRPBQOHY.js.map
489
+ //# sourceMappingURL=setup-SRPBQOHY.js.map