@skaile/workspaces 1.3.0 → 1.4.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 (185) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/README.md +1 -1
  3. package/dist/app-sdk/index.d.ts +2 -0
  4. package/dist/app-sdk/index.js +295 -0
  5. package/dist/app-sdk/index.js.map +1 -0
  6. package/dist/app-sdk/src/app.d.ts +101 -0
  7. package/dist/app-sdk/src/app.d.ts.map +1 -0
  8. package/dist/app-sdk/src/define-app-capability.d.ts +139 -0
  9. package/dist/app-sdk/src/define-app-capability.d.ts.map +1 -0
  10. package/dist/app-sdk/src/index.d.ts +16 -0
  11. package/dist/app-sdk/src/index.d.ts.map +1 -0
  12. package/dist/app-sdk/src/logger.d.ts +26 -0
  13. package/dist/app-sdk/src/logger.d.ts.map +1 -0
  14. package/dist/app-sdk/src/transport.d.ts +84 -0
  15. package/dist/app-sdk/src/transport.d.ts.map +1 -0
  16. package/dist/app-sdk/src/ws-transport.d.ts +63 -0
  17. package/dist/app-sdk/src/ws-transport.d.ts.map +1 -0
  18. package/dist/{asset-feeds-NEZKG6YS.js → asset-feeds-NG5TKB3V.js} +8 -8
  19. package/dist/{asset-feeds-NEZKG6YS.js.map → asset-feeds-NG5TKB3V.js.map} +1 -1
  20. package/dist/asset-manager/index.js +7 -7
  21. package/dist/asset-manager/installer.js +6 -6
  22. package/dist/asset-manager/renderers.js +2 -2
  23. package/dist/asset-manager/src/index.d.ts +42 -6
  24. package/dist/asset-manager/src/index.d.ts.map +1 -1
  25. package/dist/bridge/drivers/claude-sdk.js +2 -2
  26. package/dist/bridge/drivers/codex.js +1 -1
  27. package/dist/bridge/drivers/continue.js +2 -2
  28. package/dist/bridge/drivers/echo.js +1 -1
  29. package/dist/bridge/drivers/gemini.js +3 -3
  30. package/dist/bridge/drivers/goose.js +2 -2
  31. package/dist/bridge/drivers/omp.js +1 -1
  32. package/dist/bridge/drivers/opencode.js +2 -2
  33. package/dist/bridge/drivers/qwen.js +3 -3
  34. package/dist/bridge/index.js +3 -3
  35. package/dist/{chunk-AZAS3FKN.js → chunk-26YCXWCU.js} +48 -2
  36. package/dist/chunk-26YCXWCU.js.map +1 -0
  37. package/dist/{chunk-SKADPHAM.js → chunk-4N5XR5DQ.js} +2 -2
  38. package/dist/chunk-4N5XR5DQ.js.map +1 -0
  39. package/dist/{chunk-RHMQPLIK.js → chunk-77OXU44H.js} +6 -6
  40. package/dist/{chunk-RHMQPLIK.js.map → chunk-77OXU44H.js.map} +1 -1
  41. package/dist/{chunk-7CNIRF42.js → chunk-AAGD2J4H.js} +20 -11
  42. package/dist/chunk-AAGD2J4H.js.map +1 -0
  43. package/dist/{chunk-BZMTR5WW.js → chunk-B6SSXVF2.js} +4 -4
  44. package/dist/chunk-B6SSXVF2.js.map +1 -0
  45. package/dist/{chunk-YOPSHV7V.js → chunk-BE5KTS2L.js} +3 -3
  46. package/dist/{chunk-YOPSHV7V.js.map → chunk-BE5KTS2L.js.map} +1 -1
  47. package/dist/{chunk-JQMIG7D3.js → chunk-BJHZHNKR.js} +3 -3
  48. package/dist/{chunk-JQMIG7D3.js.map → chunk-BJHZHNKR.js.map} +1 -1
  49. package/dist/{chunk-5XS3BFJS.js → chunk-DNFIKRO6.js} +3 -3
  50. package/dist/{chunk-5XS3BFJS.js.map → chunk-DNFIKRO6.js.map} +1 -1
  51. package/dist/{chunk-PSMW5HLX.js → chunk-GWDZW44L.js} +4 -4
  52. package/dist/{chunk-PSMW5HLX.js.map → chunk-GWDZW44L.js.map} +1 -1
  53. package/dist/{chunk-K5SD7FSF.js → chunk-HKX5VSWQ.js} +3 -3
  54. package/dist/{chunk-K5SD7FSF.js.map → chunk-HKX5VSWQ.js.map} +1 -1
  55. package/dist/{chunk-P3MJYPZE.js → chunk-HWTQ6HPO.js} +4 -4
  56. package/dist/{chunk-P3MJYPZE.js.map → chunk-HWTQ6HPO.js.map} +1 -1
  57. package/dist/{chunk-XKARS6EE.js → chunk-IEX5YV4R.js} +3 -3
  58. package/dist/{chunk-XKARS6EE.js.map → chunk-IEX5YV4R.js.map} +1 -1
  59. package/dist/{chunk-GB4SEEK4.js → chunk-IRORTHGA.js} +10 -4
  60. package/dist/chunk-IRORTHGA.js.map +1 -0
  61. package/dist/{chunk-YXEPZ7LP.js → chunk-JZPEEMIM.js} +5 -5
  62. package/dist/{chunk-YXEPZ7LP.js.map → chunk-JZPEEMIM.js.map} +1 -1
  63. package/dist/{chunk-WFEPI5LA.js → chunk-LCTRCWBK.js} +5 -5
  64. package/dist/{chunk-WFEPI5LA.js.map → chunk-LCTRCWBK.js.map} +1 -1
  65. package/dist/{chunk-QK5JDAFF.js → chunk-NKTFEV7Q.js} +4 -4
  66. package/dist/{chunk-QK5JDAFF.js.map → chunk-NKTFEV7Q.js.map} +1 -1
  67. package/dist/{chunk-ETYDLXI5.js → chunk-OSCJRUKM.js} +2 -2
  68. package/dist/{chunk-ETYDLXI5.js.map → chunk-OSCJRUKM.js.map} +1 -1
  69. package/dist/{chunk-EVZKWY5J.js → chunk-PK7Q7MC7.js} +5 -4
  70. package/dist/chunk-PK7Q7MC7.js.map +1 -0
  71. package/dist/{chunk-RYRJEVQ4.js → chunk-QM2TT2PJ.js} +19 -11
  72. package/dist/chunk-QM2TT2PJ.js.map +1 -0
  73. package/dist/{chunk-SUOGVHGJ.js → chunk-TNSCHS4I.js} +2 -2
  74. package/dist/{chunk-SUOGVHGJ.js.map → chunk-TNSCHS4I.js.map} +1 -1
  75. package/dist/{chunk-Z5Z3MYDL.js → chunk-UPZGQZEJ.js} +3 -3
  76. package/dist/{chunk-Z5Z3MYDL.js.map → chunk-UPZGQZEJ.js.map} +1 -1
  77. package/dist/{chunk-RJ3HUSBC.js → chunk-UQ5FK2AB.js} +3 -3
  78. package/dist/{chunk-RJ3HUSBC.js.map → chunk-UQ5FK2AB.js.map} +1 -1
  79. package/dist/{chunk-OBSSORCE.js → chunk-X57AMTAH.js} +72 -9
  80. package/dist/chunk-X57AMTAH.js.map +1 -0
  81. package/dist/cli/index.js +766 -185
  82. package/dist/cli/index.js.map +1 -1
  83. package/dist/cli/src/commands/preset-apply.d.ts +59 -0
  84. package/dist/cli/src/commands/preset-apply.d.ts.map +1 -0
  85. package/dist/cli/src/commands/preset-cmd.d.ts +2 -2
  86. package/dist/cli/src/commands/preset-cmd.d.ts.map +1 -1
  87. package/dist/cli/src/commands/preset-export.d.ts +93 -0
  88. package/dist/cli/src/commands/preset-export.d.ts.map +1 -0
  89. package/dist/cli/src/commands/source.d.ts.map +1 -1
  90. package/dist/cli/src/commands/why.d.ts +18 -0
  91. package/dist/cli/src/commands/why.d.ts.map +1 -1
  92. package/dist/connectors/config.js +2 -2
  93. package/dist/connectors/index.js +4 -4
  94. package/dist/core/index.js +2 -2
  95. package/dist/core/src/workspace-yaml-editor.d.ts +14 -1
  96. package/dist/core/src/workspace-yaml-editor.d.ts.map +1 -1
  97. package/dist/deploy/index.js +2 -2
  98. package/dist/discovery/index.js +2 -2
  99. package/dist/{ensure-sources-4BAJGJRK.js → ensure-sources-CHC7X7AJ.js} +10 -10
  100. package/dist/{ensure-sources-4BAJGJRK.js.map → ensure-sources-CHC7X7AJ.js.map} +1 -1
  101. package/dist/factory-assets/connectors/box.js +4 -4
  102. package/dist/factory-assets/connectors/deploy.js +4 -4
  103. package/dist/factory-assets/connectors/devserver.js +4 -4
  104. package/dist/factory-assets/connectors/flow/adapter.js +4 -4
  105. package/dist/factory-assets/connectors/flow/engine/engine.d.ts +4 -1
  106. package/dist/factory-assets/connectors/flow/engine/engine.d.ts.map +1 -1
  107. package/dist/factory-assets/connectors/flow/engine/types.d.ts +41 -6
  108. package/dist/factory-assets/connectors/flow/engine/types.d.ts.map +1 -1
  109. package/dist/factory-assets/connectors/flow/engine.js +3 -3
  110. package/dist/factory-assets/connectors/flow/run-flow.js +5 -5
  111. package/dist/factory-assets/connectors/flow.js +4 -4
  112. package/dist/factory-assets/connectors/git.js +4 -4
  113. package/dist/factory-assets/connectors/gmail.js +4 -4
  114. package/dist/factory-assets/connectors/googledrive.js +4 -4
  115. package/dist/factory-assets/connectors/local.js +4 -4
  116. package/dist/factory-assets/connectors/mattermost.js +4 -4
  117. package/dist/factory-assets/connectors/memory.js +4 -4
  118. package/dist/factory-assets/connectors/minio.js +4 -4
  119. package/dist/factory-assets/connectors/postgres.js +4 -4
  120. package/dist/factory-assets/connectors/s3.js +4 -4
  121. package/dist/factory-assets/connectors/sharepoint.js +4 -4
  122. package/dist/factory-assets/connectors/sqlite.js +4 -4
  123. package/dist/factory-assets/connectors/static-server.js +4 -4
  124. package/dist/factory-assets/connectors/tunnel.js +4 -4
  125. package/dist/factory-assets/connectors/webdav.js +4 -4
  126. package/dist/factory-assets/connectors/xstate-store.js +4 -4
  127. package/dist/factory-assets/connectors/xstate.js +4 -4
  128. package/dist/factory-assets/skills/skaile-author-asset/SKILL.md +1 -1
  129. package/dist/factory-assets/skills/skaile-manage-workspace/SKILL.md +1 -1
  130. package/dist/{flows-UFCOGAAM.js → flows-CGOCUNO6.js} +4 -4
  131. package/dist/{flows-UFCOGAAM.js.map → flows-CGOCUNO6.js.map} +1 -1
  132. package/dist/{helpers-2OL4FRFB.js → helpers-GWG4CYYC.js} +10 -10
  133. package/dist/{helpers-2OL4FRFB.js.map → helpers-GWG4CYYC.js.map} +1 -1
  134. package/dist/library/index.js +6 -6
  135. package/dist/library/install.js +2 -2
  136. package/dist/{open-library-RPV2LIKL.js → open-library-37PXN6MK.js} +15 -15
  137. package/dist/{open-library-RPV2LIKL.js.map → open-library-37PXN6MK.js.map} +1 -1
  138. package/dist/{paths-ML33B5SB.js → paths-UVOHWUPY.js} +4 -4
  139. package/dist/{paths-ML33B5SB.js.map → paths-UVOHWUPY.js.map} +1 -1
  140. package/dist/{plugin-store-G4HKWCTU.js → plugin-store-EIMVEH3O.js} +4 -4
  141. package/dist/{plugin-store-G4HKWCTU.js.map → plugin-store-EIMVEH3O.js.map} +1 -1
  142. package/dist/runner/index.js +10 -10
  143. package/dist/runner/src/capability-registry.d.ts +15 -4
  144. package/dist/runner/src/capability-registry.d.ts.map +1 -1
  145. package/dist/sdk/asset-manager.js +7 -7
  146. package/dist/sdk/bridge.js +3 -3
  147. package/dist/sdk/core.js +2 -2
  148. package/dist/sdk/flow.js +3 -3
  149. package/dist/sdk/index.js +10 -10
  150. package/dist/sdk/runner.js +10 -10
  151. package/dist/sdk/session.js +2 -2
  152. package/dist/sdk/types.js +1 -1
  153. package/dist/session/index.js +2 -2
  154. package/dist/{setup-WS6PF6JQ.js → setup-DINVR6ZQ.js} +7 -7
  155. package/dist/{setup-WS6PF6JQ.js.map → setup-DINVR6ZQ.js.map} +1 -1
  156. package/dist/{source-22U5NOY4.js → source-RXAHIGMD.js} +16 -16
  157. package/dist/{source-22U5NOY4.js.map → source-RXAHIGMD.js.map} +1 -1
  158. package/dist/{store-client-YLMBH5MF.js → store-client-T3F663YG.js} +5 -5
  159. package/dist/{store-client-YLMBH5MF.js.map → store-client-T3F663YG.js.map} +1 -1
  160. package/dist/tui/index.js +10 -10
  161. package/dist/types/index.js +1 -1
  162. package/dist/types/manifests.js +1 -1
  163. package/dist/types/src/capabilities.d.ts +8 -2
  164. package/dist/types/src/capabilities.d.ts.map +1 -1
  165. package/dist/types/src/logging.d.ts +3 -2
  166. package/dist/types/src/logging.d.ts.map +1 -1
  167. package/dist/types/src/manifests/_shared.d.ts +4 -4
  168. package/dist/types/src/manifests/index.d.ts +2 -2
  169. package/dist/types/src/manifests/index.d.ts.map +1 -1
  170. package/dist/types/src/manifests/preset.d.ts +10 -0
  171. package/dist/types/src/manifests/preset.d.ts.map +1 -1
  172. package/dist/types/src/version.d.ts +11 -1
  173. package/dist/types/src/version.d.ts.map +1 -1
  174. package/dist/workspace-plugin/adapters/mcp.js +2 -2
  175. package/dist/workspace-plugin/adapters/omp.js +3 -3
  176. package/dist/workspace-plugin/index.js +1 -1
  177. package/package.json +7 -1
  178. package/dist/chunk-7CNIRF42.js.map +0 -1
  179. package/dist/chunk-AZAS3FKN.js.map +0 -1
  180. package/dist/chunk-BZMTR5WW.js.map +0 -1
  181. package/dist/chunk-EVZKWY5J.js.map +0 -1
  182. package/dist/chunk-GB4SEEK4.js.map +0 -1
  183. package/dist/chunk-OBSSORCE.js.map +0 -1
  184. package/dist/chunk-RYRJEVQ4.js.map +0 -1
  185. package/dist/chunk-SKADPHAM.js.map +0 -1
@@ -1,14 +1,16 @@
1
- export { openCatalogSource, openLibrary, openLibraryManager, resolveCatalogSource } from './chunk-RHMQPLIK.js';
2
- import './chunk-5XS3BFJS.js';
3
- import './chunk-P3MJYPZE.js';
4
- import './chunk-BZMTR5WW.js';
1
+ export { openCatalogSource, openLibrary, openLibraryManager, resolveCatalogSource } from './chunk-77OXU44H.js';
2
+ import './chunk-DNFIKRO6.js';
3
+ import './chunk-HWTQ6HPO.js';
4
+ import './chunk-B6SSXVF2.js';
5
+ import './chunk-JXT46QFC.js';
5
6
  import './chunk-UKJMQZV6.js';
6
7
  import './chunk-R7FOF242.js';
7
- import './chunk-JXT46QFC.js';
8
- import './chunk-SKADPHAM.js';
9
- import './chunk-OBSSORCE.js';
10
- import './chunk-WFEPI5LA.js';
11
- import './chunk-AZAS3FKN.js';
8
+ import './chunk-4N5XR5DQ.js';
9
+ import './chunk-X57AMTAH.js';
10
+ import './chunk-LCTRCWBK.js';
11
+ import './chunk-CGYEHQOX.js';
12
+ import './chunk-26YCXWCU.js';
13
+ import './chunk-ZAP2BDHG.js';
12
14
  import './chunk-TJRWGMD2.js';
13
15
  import './chunk-OUWNTFDG.js';
14
16
  import './chunk-DZCK7GRW.js';
@@ -17,13 +19,11 @@ import './chunk-GEEW6SY2.js';
17
19
  import './chunk-F3HNW354.js';
18
20
  import './chunk-MENCWIHW.js';
19
21
  import './chunk-K5GBV4SA.js';
20
- import './chunk-ZAP2BDHG.js';
21
22
  import './chunk-JB35MVBN.js';
22
23
  import './chunk-KTBKW2FI.js';
23
24
  import './chunk-UQ6LFBPZ.js';
24
- import './chunk-XKARS6EE.js';
25
- import './chunk-GB4SEEK4.js';
26
- import './chunk-CGYEHQOX.js';
25
+ import './chunk-IEX5YV4R.js';
26
+ import './chunk-IRORTHGA.js';
27
27
  import './chunk-NSBPE2FW.js';
28
- //# sourceMappingURL=open-library-RPV2LIKL.js.map
29
- //# sourceMappingURL=open-library-RPV2LIKL.js.map
28
+ //# sourceMappingURL=open-library-37PXN6MK.js.map
29
+ //# sourceMappingURL=open-library-37PXN6MK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-RPV2LIKL.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-37PXN6MK.js"}
@@ -1,5 +1,6 @@
1
1
  export { AI_RESOURCES, MONOREPO_ROOT, aiResourceRoots } from './chunk-XBG2YDQQ.js';
2
- import './chunk-AZAS3FKN.js';
2
+ import './chunk-26YCXWCU.js';
3
+ import './chunk-ZAP2BDHG.js';
3
4
  import './chunk-TJRWGMD2.js';
4
5
  import './chunk-OUWNTFDG.js';
5
6
  import './chunk-DZCK7GRW.js';
@@ -8,8 +9,7 @@ import './chunk-GEEW6SY2.js';
8
9
  import './chunk-F3HNW354.js';
9
10
  import './chunk-MENCWIHW.js';
10
11
  import './chunk-K5GBV4SA.js';
11
- import './chunk-ZAP2BDHG.js';
12
12
  import './chunk-JB35MVBN.js';
13
13
  import './chunk-NSBPE2FW.js';
14
- //# sourceMappingURL=paths-ML33B5SB.js.map
15
- //# sourceMappingURL=paths-ML33B5SB.js.map
14
+ //# sourceMappingURL=paths-UVOHWUPY.js.map
15
+ //# sourceMappingURL=paths-UVOHWUPY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"paths-ML33B5SB.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"paths-UVOHWUPY.js"}
@@ -1,5 +1,6 @@
1
1
  import { pluginRegistry } from './chunk-6E6PKKAD.js';
2
- import { readPluginsLockSlice } from './chunk-AZAS3FKN.js';
2
+ import { readPluginsLockSlice } from './chunk-26YCXWCU.js';
3
+ import './chunk-ZAP2BDHG.js';
3
4
  import './chunk-TJRWGMD2.js';
4
5
  import './chunk-OUWNTFDG.js';
5
6
  import './chunk-DZCK7GRW.js';
@@ -8,7 +9,6 @@ import './chunk-GEEW6SY2.js';
8
9
  import './chunk-F3HNW354.js';
9
10
  import './chunk-MENCWIHW.js';
10
11
  import './chunk-K5GBV4SA.js';
11
- import './chunk-ZAP2BDHG.js';
12
12
  import './chunk-JB35MVBN.js';
13
13
  import './chunk-NSBPE2FW.js';
14
14
  import { pathToFileURL } from 'url';
@@ -138,5 +138,5 @@ async function ensurePluginsLoaded(projectDir, plugins, registry = pluginRegistr
138
138
  }
139
139
 
140
140
  export { ensurePluginsLoaded, loadPlugins, reconcilePlugins, specName };
141
- //# sourceMappingURL=plugin-store-G4HKWCTU.js.map
142
- //# sourceMappingURL=plugin-store-G4HKWCTU.js.map
141
+ //# sourceMappingURL=plugin-store-EIMVEH3O.js.map
142
+ //# sourceMappingURL=plugin-store-EIMVEH3O.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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;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-G4HKWCTU.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,E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AAA,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;;;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-EIMVEH3O.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,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, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-7CNIRF42.js';
2
- import '../chunk-ETYDLXI5.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, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-AAGD2J4H.js';
2
+ import '../chunk-OSCJRUKM.js';
3
3
  import '../chunk-X5YPJV4N.js';
4
4
  import '../chunk-O7SG5PC2.js';
5
5
  import '../chunk-7QBNJTTQ.js';
@@ -7,21 +7,22 @@ import '../chunk-GTS2FODO.js';
7
7
  import '../chunk-WQ7DE5UC.js';
8
8
  import '../chunk-32NA4TVC.js';
9
9
  export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
10
- import '../chunk-EVZKWY5J.js';
11
- import '../chunk-K5SD7FSF.js';
10
+ import '../chunk-HKX5VSWQ.js';
12
11
  import '../chunk-ISQWMBKD.js';
12
+ import '../chunk-RRVQAE5D.js';
13
13
  import '../chunk-BMQKMOQY.js';
14
14
  import '../chunk-GAH4YRCI.js';
15
- import '../chunk-RRVQAE5D.js';
16
- import '../chunk-SUOGVHGJ.js';
15
+ import '../chunk-TNSCHS4I.js';
17
16
  import '../chunk-LV2HPH3C.js';
18
- import '../chunk-PSMW5HLX.js';
17
+ import '../chunk-GWDZW44L.js';
19
18
  import '../chunk-BDUANIAR.js';
20
19
  import '../chunk-6E6PKKAD.js';
21
- import '../chunk-SKADPHAM.js';
20
+ import '../chunk-4N5XR5DQ.js';
22
21
  import '../chunk-DEYYRFQU.js';
23
22
  import '../chunk-IFGTRL2I.js';
24
- export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-AZAS3FKN.js';
23
+ import '../chunk-PK7Q7MC7.js';
24
+ export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-26YCXWCU.js';
25
+ import '../chunk-ZAP2BDHG.js';
25
26
  import '../chunk-TJRWGMD2.js';
26
27
  import '../chunk-OUWNTFDG.js';
27
28
  import '../chunk-DZCK7GRW.js';
@@ -30,7 +31,6 @@ import '../chunk-GEEW6SY2.js';
30
31
  import '../chunk-F3HNW354.js';
31
32
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-MENCWIHW.js';
32
33
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
33
- import '../chunk-ZAP2BDHG.js';
34
34
  import '../chunk-JB35MVBN.js';
35
35
  import '../chunk-NSBPE2FW.js';
36
36
  //# sourceMappingURL=index.js.map
@@ -48,21 +48,30 @@ export type LLMTool = {
48
48
  * @docLink packages/runner/capabilities#registry-surface
49
49
  */
50
50
  export type CapabilityListFilter = {
51
- side?: "client" | "agent";
51
+ side?: "client" | "agent" | "app";
52
52
  origin?: CapabilityOrigin["kind"];
53
53
  scope?: "session" | "turn";
54
54
  };
55
55
  /**
56
56
  * Side-tag declaring who is registering a capability. The registry uses
57
57
  * this to enforce origin trust — a client cannot register an `agent`-side
58
- * origin, and the agent cannot register `client` / external-origin
59
- * capabilities.
58
+ * origin, the agent cannot register `client` / `app` origins, and an
59
+ * embedded app may register only its own `app` origin.
60
+ *
61
+ * The `app` source carries the registering connection's `appId` so the
62
+ * registry can assert that an `app`-origin capability is declared for the
63
+ * connection it actually arrived on (a compromised source cannot register
64
+ * `app.delete_everything` under someone else's `appId`). Bare-string
65
+ * `client` / `agent` sources are unchanged.
60
66
  *
61
67
  * @category Runtime
62
68
  * @since 2.0.0
63
69
  * @docLink packages/runner/capabilities#registry-surface
64
70
  */
65
- export type RegisterSource = "client" | "agent";
71
+ export type RegisterSource = "client" | "agent" | {
72
+ kind: "app";
73
+ appId: string;
74
+ };
66
75
  /**
67
76
  * Per-session registry of capabilities. Construct one per
68
77
  * `startAgentServer` invocation; the runner threads it through serve mode's
@@ -110,6 +119,8 @@ export declare class CapabilityRegistry {
110
119
  * Allowed combinations:
111
120
  * - source `'agent'`: origins `framework | agent | flow | skill | mcp | connector | mount`
112
121
  * - source `'client'`: origin `client` only
122
+ * - source `{ kind: 'app', appId }`: origin `app` only, and the origin's
123
+ * `appId` must match the source `appId`
113
124
  *
114
125
  * @param cap - capability to register (typically built via {@link defineCapability})
115
126
  * @param source - which side is doing the registration
@@ -1 +1 @@
1
- {"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../../runner/src/capability-registry.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EACV,UAAU,EAEV,gBAAgB,EAChB,MAAM,EACP,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAiBhF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,uBAAuB,GAAG,CACpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,SAAS,CAAC,EAAE,MAAM,KACf,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAahD;;;;;;;;GAQG;AACH,qBAAa,kBAAkB;IAC7B,OAA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SSORCE.js';
2
- export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-WFEPI5LA.js';
3
- import '../chunk-AZAS3FKN.js';
1
+ export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, softDepName } from '../chunk-X57AMTAH.js';
2
+ export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-LCTRCWBK.js';
3
+ export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-CGYEHQOX.js';
4
+ import '../chunk-26YCXWCU.js';
5
+ import '../chunk-ZAP2BDHG.js';
4
6
  import '../chunk-TJRWGMD2.js';
5
7
  import '../chunk-OUWNTFDG.js';
6
8
  import '../chunk-DZCK7GRW.js';
@@ -9,13 +11,11 @@ import '../chunk-GEEW6SY2.js';
9
11
  import '../chunk-F3HNW354.js';
10
12
  import '../chunk-MENCWIHW.js';
11
13
  import '../chunk-K5GBV4SA.js';
12
- import '../chunk-ZAP2BDHG.js';
13
14
  import '../chunk-JB35MVBN.js';
14
15
  export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
15
16
  import '../chunk-UQ6LFBPZ.js';
16
- export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-XKARS6EE.js';
17
- import '../chunk-GB4SEEK4.js';
18
- export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-CGYEHQOX.js';
17
+ export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-IEX5YV4R.js';
18
+ import '../chunk-IRORTHGA.js';
19
19
  import '../chunk-NSBPE2FW.js';
20
20
  //# sourceMappingURL=asset-manager.js.map
21
21
  //# sourceMappingURL=asset-manager.js.map
@@ -1,9 +1,9 @@
1
- export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-K5SD7FSF.js';
1
+ export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-HKX5VSWQ.js';
2
2
  export { CLOUD_SECRET_ENV_KEYS, SUPPORTED_CLOUDS, buildClaudeCloudEnv } from '../chunk-ISQWMBKD.js';
3
+ export { dispatchCapability, filterRenderCapabilities, renderFallback } from '../chunk-RRVQAE5D.js';
3
4
  export { STATIC_MODELS, fetchProviderModels, getModels, getStaticModels } from '../chunk-BMQKMOQY.js';
4
5
  export { AccountUnavailableError, AuthError, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable } from '../chunk-GAH4YRCI.js';
5
- export { dispatchCapability, filterRenderCapabilities, renderFallback } from '../chunk-RRVQAE5D.js';
6
- export { AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, createDriver, getBridgeLogger, listDrivers, listModelsForDriver, registerBuiltinDrivers } from '../chunk-SUOGVHGJ.js';
6
+ export { AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, createDriver, getBridgeLogger, listDrivers, listModelsForDriver, registerBuiltinDrivers } from '../chunk-TNSCHS4I.js';
7
7
  import '../chunk-6E6PKKAD.js';
8
8
  import '../chunk-JB35MVBN.js';
9
9
  import '../chunk-NSBPE2FW.js';
package/dist/sdk/core.js CHANGED
@@ -1,4 +1,5 @@
1
- export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, checkAgentSkillConformance, 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-AZAS3FKN.js';
1
+ export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, checkAgentSkillConformance, 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-26YCXWCU.js';
2
+ export { ASSET_KIND_DIRS, assetSearchDirs, detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-ZAP2BDHG.js';
2
3
  export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-TJRWGMD2.js';
3
4
  export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, __resetCacheMigrationMemo, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, cloudConfigFromProfile, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, globalCacheRoot, globalSkaileDir, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeLegacyEntriesInto, mergeSkWorkspaceConfigs, migrateLegacyDir, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-OUWNTFDG.js';
4
5
  export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest, saveSkPublishManifest } from '../chunk-DZCK7GRW.js';
@@ -7,7 +8,6 @@ export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRef
7
8
  export { deployedBase, deployedDir, isDeployed } from '../chunk-F3HNW354.js';
8
9
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, globalBackendRoot } from '../chunk-MENCWIHW.js';
9
10
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
10
- export { ASSET_KIND_DIRS, assetSearchDirs, detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-ZAP2BDHG.js';
11
11
  export { LogStore, LogStoreDisabledError, NoOpSink, OnLogBridgeSink, SqliteSink, StdoutSink, WsLogSink, createLogStoreFromConfig, createLogger, getLogStore, normalizeError, openSqlite, registerLogStore, resetLogStore, resolveLogStoreConfig, sanitizeData } from '../chunk-JB35MVBN.js';
12
12
  import '../chunk-NSBPE2FW.js';
13
13
  //# sourceMappingURL=core.js.map
package/dist/sdk/flow.js CHANGED
@@ -1,5 +1,6 @@
1
- export { FlowManifestSchema, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, flowKindProvider, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, resolveNextNodes, validateFlow } from '../chunk-SKADPHAM.js';
2
- import '../chunk-AZAS3FKN.js';
1
+ export { FlowManifestSchema, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, flowKindProvider, isBlocking, loadAllFlows, loadFlow, loadFlowsFromDir, resolveNextNodes, validateFlow } from '../chunk-4N5XR5DQ.js';
2
+ import '../chunk-26YCXWCU.js';
3
+ import '../chunk-ZAP2BDHG.js';
3
4
  import '../chunk-TJRWGMD2.js';
4
5
  import '../chunk-OUWNTFDG.js';
5
6
  import '../chunk-DZCK7GRW.js';
@@ -8,7 +9,6 @@ import '../chunk-GEEW6SY2.js';
8
9
  import '../chunk-F3HNW354.js';
9
10
  import '../chunk-MENCWIHW.js';
10
11
  import '../chunk-K5GBV4SA.js';
11
- import '../chunk-ZAP2BDHG.js';
12
12
  import '../chunk-JB35MVBN.js';
13
13
  import '../chunk-NSBPE2FW.js';
14
14
  //# sourceMappingURL=flow.js.map
package/dist/sdk/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AgentClient } from '../chunk-SZ3SIVZQ.js';
2
- import { startAgentServer } from '../chunk-7CNIRF42.js';
3
- import '../chunk-ETYDLXI5.js';
2
+ import { startAgentServer } from '../chunk-AAGD2J4H.js';
3
+ import '../chunk-OSCJRUKM.js';
4
4
  import '../chunk-X5YPJV4N.js';
5
5
  import '../chunk-O7SG5PC2.js';
6
6
  import '../chunk-7QBNJTTQ.js';
@@ -8,21 +8,22 @@ import { WebSocketClientTransport } from '../chunk-GTS2FODO.js';
8
8
  import '../chunk-WQ7DE5UC.js';
9
9
  import '../chunk-32NA4TVC.js';
10
10
  import '../chunk-W3UDISS2.js';
11
- import '../chunk-EVZKWY5J.js';
12
- import '../chunk-K5SD7FSF.js';
11
+ import '../chunk-HKX5VSWQ.js';
13
12
  import '../chunk-ISQWMBKD.js';
13
+ import '../chunk-RRVQAE5D.js';
14
14
  import '../chunk-BMQKMOQY.js';
15
15
  import '../chunk-GAH4YRCI.js';
16
- import '../chunk-RRVQAE5D.js';
17
- import '../chunk-SUOGVHGJ.js';
16
+ import '../chunk-TNSCHS4I.js';
18
17
  import '../chunk-LV2HPH3C.js';
19
- import '../chunk-PSMW5HLX.js';
18
+ import '../chunk-GWDZW44L.js';
20
19
  import '../chunk-BDUANIAR.js';
21
20
  import '../chunk-6E6PKKAD.js';
22
- import '../chunk-SKADPHAM.js';
21
+ import '../chunk-4N5XR5DQ.js';
23
22
  import '../chunk-DEYYRFQU.js';
24
23
  import '../chunk-IFGTRL2I.js';
25
- import '../chunk-AZAS3FKN.js';
24
+ import '../chunk-PK7Q7MC7.js';
25
+ import '../chunk-26YCXWCU.js';
26
+ import '../chunk-ZAP2BDHG.js';
26
27
  import '../chunk-TJRWGMD2.js';
27
28
  import '../chunk-OUWNTFDG.js';
28
29
  import '../chunk-DZCK7GRW.js';
@@ -31,7 +32,6 @@ import '../chunk-GEEW6SY2.js';
31
32
  import '../chunk-F3HNW354.js';
32
33
  import '../chunk-MENCWIHW.js';
33
34
  import '../chunk-K5GBV4SA.js';
34
- import '../chunk-ZAP2BDHG.js';
35
35
  import '../chunk-JB35MVBN.js';
36
36
  import '../chunk-NSBPE2FW.js';
37
37
  import { mkdirSync, mkdtempSync, rmSync, existsSync, writeFileSync } from 'fs';
@@ -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, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-7CNIRF42.js';
2
- import '../chunk-ETYDLXI5.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, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-AAGD2J4H.js';
2
+ import '../chunk-OSCJRUKM.js';
3
3
  import '../chunk-X5YPJV4N.js';
4
4
  import '../chunk-O7SG5PC2.js';
5
5
  import '../chunk-7QBNJTTQ.js';
@@ -7,21 +7,22 @@ import '../chunk-GTS2FODO.js';
7
7
  import '../chunk-WQ7DE5UC.js';
8
8
  import '../chunk-32NA4TVC.js';
9
9
  export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
10
- import '../chunk-EVZKWY5J.js';
11
- import '../chunk-K5SD7FSF.js';
10
+ import '../chunk-HKX5VSWQ.js';
12
11
  import '../chunk-ISQWMBKD.js';
12
+ import '../chunk-RRVQAE5D.js';
13
13
  import '../chunk-BMQKMOQY.js';
14
14
  import '../chunk-GAH4YRCI.js';
15
- import '../chunk-RRVQAE5D.js';
16
- import '../chunk-SUOGVHGJ.js';
15
+ import '../chunk-TNSCHS4I.js';
17
16
  import '../chunk-LV2HPH3C.js';
18
- import '../chunk-PSMW5HLX.js';
17
+ import '../chunk-GWDZW44L.js';
19
18
  import '../chunk-BDUANIAR.js';
20
19
  import '../chunk-6E6PKKAD.js';
21
- import '../chunk-SKADPHAM.js';
20
+ import '../chunk-4N5XR5DQ.js';
22
21
  import '../chunk-DEYYRFQU.js';
23
22
  import '../chunk-IFGTRL2I.js';
24
- export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-AZAS3FKN.js';
23
+ import '../chunk-PK7Q7MC7.js';
24
+ export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-26YCXWCU.js';
25
+ import '../chunk-ZAP2BDHG.js';
25
26
  import '../chunk-TJRWGMD2.js';
26
27
  import '../chunk-OUWNTFDG.js';
27
28
  import '../chunk-DZCK7GRW.js';
@@ -30,7 +31,6 @@ import '../chunk-GEEW6SY2.js';
30
31
  import '../chunk-F3HNW354.js';
31
32
  export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-MENCWIHW.js';
32
33
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
33
- import '../chunk-ZAP2BDHG.js';
34
34
  import '../chunk-JB35MVBN.js';
35
35
  import '../chunk-NSBPE2FW.js';
36
36
  //# sourceMappingURL=runner.js.map
@@ -1,5 +1,5 @@
1
- export { SessionDispatcher, isAddressedByKind, isAgentAddressed, isMentioned, parseMentions } from '../chunk-Z5Z3MYDL.js';
2
- import '../chunk-EVZKWY5J.js';
1
+ export { SessionDispatcher, isAddressedByKind, isAgentAddressed, isMentioned, parseMentions } from '../chunk-UPZGQZEJ.js';
2
+ import '../chunk-PK7Q7MC7.js';
3
3
  import '../chunk-NSBPE2FW.js';
4
4
  //# sourceMappingURL=session.js.map
5
5
  //# sourceMappingURL=session.js.map
package/dist/sdk/types.js CHANGED
@@ -1,4 +1,4 @@
1
- export { MENTION_GROUPS, PROTOCOL_VERSION, PROTOCOL_VERSION_STRING, QUICK_REACTIONS, formatVersion, isRenderCapability, isUserInvokable, parseVersion } from '../chunk-EVZKWY5J.js';
1
+ export { MENTION_GROUPS, PROTOCOL_VERSION, PROTOCOL_VERSION_STRING, QUICK_REACTIONS, formatVersion, isRenderCapability, isUserInvokable, parseVersion } from '../chunk-PK7Q7MC7.js';
2
2
  import '../chunk-NSBPE2FW.js';
3
3
  //# sourceMappingURL=types.js.map
4
4
  //# sourceMappingURL=types.js.map
@@ -1,5 +1,5 @@
1
- export { SessionDispatcher, isAddressedByKind, isAgentAddressed, isMentioned, parseMentions } from '../chunk-Z5Z3MYDL.js';
2
- import '../chunk-EVZKWY5J.js';
1
+ export { SessionDispatcher, isAddressedByKind, isAgentAddressed, isMentioned, parseMentions } from '../chunk-UPZGQZEJ.js';
2
+ import '../chunk-PK7Q7MC7.js';
3
3
  import '../chunk-NSBPE2FW.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,12 @@
1
- import { validateApiKey } from './chunk-K5SD7FSF.js';
1
+ import { validateApiKey } from './chunk-HKX5VSWQ.js';
2
2
  import './chunk-ISQWMBKD.js';
3
+ import './chunk-RRVQAE5D.js';
3
4
  import { getModels } from './chunk-BMQKMOQY.js';
4
5
  import './chunk-GAH4YRCI.js';
5
- import './chunk-RRVQAE5D.js';
6
- import './chunk-SUOGVHGJ.js';
6
+ import './chunk-TNSCHS4I.js';
7
7
  import './chunk-6E6PKKAD.js';
8
- import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, projectSettingsPath, loadSettings, saveSettings, WorkspaceYamlEditor, providerEnvKey } from './chunk-AZAS3FKN.js';
8
+ import { ALL_PROVIDERS, detectEnvApiKeys, resolveSettings, maskApiKey, projectSettingsPath, loadSettings, saveSettings, WorkspaceYamlEditor, providerEnvKey } from './chunk-26YCXWCU.js';
9
+ import './chunk-ZAP2BDHG.js';
9
10
  import './chunk-TJRWGMD2.js';
10
11
  import './chunk-OUWNTFDG.js';
11
12
  import './chunk-DZCK7GRW.js';
@@ -14,7 +15,6 @@ import './chunk-GEEW6SY2.js';
14
15
  import './chunk-F3HNW354.js';
15
16
  import './chunk-MENCWIHW.js';
16
17
  import './chunk-K5GBV4SA.js';
17
- import './chunk-ZAP2BDHG.js';
18
18
  import './chunk-JB35MVBN.js';
19
19
  import './chunk-NSBPE2FW.js';
20
20
  import fs from 'fs';
@@ -510,5 +510,5 @@ async function cmdSetup(_args, opts) {
510
510
  }
511
511
 
512
512
  export { cmdSetup };
513
- //# sourceMappingURL=setup-WS6PF6JQ.js.map
514
- //# sourceMappingURL=setup-WS6PF6JQ.js.map
513
+ //# sourceMappingURL=setup-DINVR6ZQ.js.map
514
+ //# sourceMappingURL=setup-DINVR6ZQ.js.map