@agentxm/client-core 0.11.0 → 0.11.1

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 (246) hide show
  1. package/dist/src/unstable/agent-capabilities/catalog.generated.d.ts +429 -0
  2. package/dist/src/unstable/agent-capabilities/catalog.generated.d.ts.map +1 -0
  3. package/dist/src/unstable/agent-capabilities/catalog.generated.js +474 -0
  4. package/dist/src/unstable/agent-capabilities/catalog.generated.js.map +1 -0
  5. package/dist/src/unstable/agent-capabilities/derive.d.ts +121 -0
  6. package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -0
  7. package/dist/src/unstable/agent-capabilities/derive.js +72 -0
  8. package/dist/src/unstable/agent-capabilities/derive.js.map +1 -0
  9. package/dist/src/unstable/agent-capabilities/index.d.ts +13 -0
  10. package/dist/src/unstable/agent-capabilities/index.d.ts.map +1 -0
  11. package/dist/src/unstable/agent-capabilities/index.js +13 -0
  12. package/dist/src/unstable/agent-capabilities/index.js.map +1 -0
  13. package/dist/src/unstable/agent-capabilities/lookup.d.ts +10 -0
  14. package/dist/src/unstable/agent-capabilities/lookup.d.ts.map +1 -0
  15. package/dist/src/unstable/agent-capabilities/lookup.js +9 -0
  16. package/dist/src/unstable/agent-capabilities/lookup.js.map +1 -0
  17. package/dist/src/unstable/agent-capabilities/schema.d.ts +254 -0
  18. package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -0
  19. package/dist/src/unstable/agent-capabilities/schema.js +178 -0
  20. package/dist/src/unstable/agent-capabilities/schema.js.map +1 -0
  21. package/dist/src/unstable/agent-capabilities/standards.d.ts +24 -0
  22. package/dist/src/unstable/agent-capabilities/standards.d.ts.map +1 -0
  23. package/dist/src/unstable/agent-capabilities/standards.js +24 -0
  24. package/dist/src/unstable/agent-capabilities/standards.js.map +1 -0
  25. package/dist/src/unstable/agent-capabilities/validate.d.ts +19 -0
  26. package/dist/src/unstable/agent-capabilities/validate.d.ts.map +1 -0
  27. package/dist/src/unstable/agent-capabilities/validate.js +107 -0
  28. package/dist/src/unstable/agent-capabilities/validate.js.map +1 -0
  29. package/dist/src/unstable/agents/detection.d.ts +4 -4
  30. package/dist/src/unstable/auth/credential-store.d.ts +1 -1
  31. package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
  32. package/dist/src/unstable/commands/manager.d.ts +3 -2
  33. package/dist/src/unstable/commands/manager.d.ts.map +1 -1
  34. package/dist/src/unstable/commands/manager.js +34 -19
  35. package/dist/src/unstable/commands/manager.js.map +1 -1
  36. package/dist/src/unstable/commands/operations/disable.d.ts.map +1 -1
  37. package/dist/src/unstable/commands/operations/disable.js +4 -1
  38. package/dist/src/unstable/commands/operations/disable.js.map +1 -1
  39. package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
  40. package/dist/src/unstable/commands/operations/install.js +12 -2
  41. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  42. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +5 -5
  43. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  44. package/dist/src/unstable/commands/operations/shared-command-helpers.js +14 -1
  45. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  46. package/dist/src/unstable/commands/operations/uninstall.d.ts.map +1 -1
  47. package/dist/src/unstable/commands/operations/uninstall.js +3 -1
  48. package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
  49. package/dist/src/unstable/commands/paths.d.ts +4 -3
  50. package/dist/src/unstable/commands/paths.d.ts.map +1 -1
  51. package/dist/src/unstable/commands/paths.js +10 -3
  52. package/dist/src/unstable/commands/paths.js.map +1 -1
  53. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
  54. package/dist/src/unstable/commands/renderers/render-markdown-only.js +8 -1
  55. package/dist/src/unstable/commands/renderers/render-markdown-only.js.map +1 -1
  56. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts.map +1 -1
  57. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js +8 -1
  58. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js.map +1 -1
  59. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts.map +1 -1
  60. package/dist/src/unstable/commands/renderers/render-plain-text.js +8 -1
  61. package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
  62. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
  63. package/dist/src/unstable/commands/renderers/render-prompt-md.js +8 -1
  64. package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
  65. package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
  66. package/dist/src/unstable/commands/renderers/render-toml.js +2 -1
  67. package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
  68. package/dist/src/unstable/commands/renderers/types.d.ts +2 -1
  69. package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
  70. package/dist/src/unstable/commands/renderers/types.js.map +1 -1
  71. package/dist/src/unstable/discover/discover.d.ts +1 -1
  72. package/dist/src/unstable/extensions/rendered-files.d.ts +6 -3
  73. package/dist/src/unstable/extensions/rendered-files.d.ts.map +1 -1
  74. package/dist/src/unstable/extensions/rendered-files.js +6 -2
  75. package/dist/src/unstable/extensions/rendered-files.js.map +1 -1
  76. package/dist/src/unstable/install-meta/install-meta.d.ts +4 -4
  77. package/dist/src/unstable/install-method/install-method.d.ts +3 -3
  78. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts.map +1 -1
  79. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +4 -3
  80. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js.map +1 -1
  81. package/dist/src/unstable/lockfile/lockfile.d.ts +1 -1
  82. package/dist/src/unstable/lockfile/schema.d.ts +63 -63
  83. package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
  84. package/dist/src/unstable/lockfile/schema.js +7 -1
  85. package/dist/src/unstable/lockfile/schema.js.map +1 -1
  86. package/dist/src/unstable/mcp-servers/manager.d.ts +1 -1
  87. package/dist/src/unstable/package-urls/companion-package.d.ts.map +1 -1
  88. package/dist/src/unstable/package-urls/companion-package.js +7 -4
  89. package/dist/src/unstable/package-urls/companion-package.js.map +1 -1
  90. package/dist/src/unstable/package-urls/companion-package.spec.js +39 -0
  91. package/dist/src/unstable/package-urls/companion-package.spec.js.map +1 -1
  92. package/dist/src/unstable/package-urls/internal.d.ts.map +1 -1
  93. package/dist/src/unstable/package-urls/internal.js +6 -3
  94. package/dist/src/unstable/package-urls/internal.js.map +1 -1
  95. package/dist/src/unstable/package-urls/vers-range.d.ts +2 -0
  96. package/dist/src/unstable/package-urls/vers-range.d.ts.map +1 -1
  97. package/dist/src/unstable/package-urls/vers-range.js +2 -2
  98. package/dist/src/unstable/package-urls/vers-range.js.map +1 -1
  99. package/dist/src/unstable/packaging/detect.d.ts +1 -1
  100. package/dist/src/unstable/packaging/jsr.d.ts +1 -1
  101. package/dist/src/unstable/packaging/jsr.d.ts.map +1 -1
  102. package/dist/src/unstable/packaging/jsr.js +4 -11
  103. package/dist/src/unstable/packaging/jsr.js.map +1 -1
  104. package/dist/src/unstable/packaging/mojo.d.ts +1 -1
  105. package/dist/src/unstable/packaging/mojo.js +4 -4
  106. package/dist/src/unstable/packaging/mojo.js.map +1 -1
  107. package/dist/src/unstable/packaging/read.d.ts +1 -1
  108. package/dist/src/unstable/packaging/zig.d.ts +1 -1
  109. package/dist/src/unstable/packaging/zig.js +3 -3
  110. package/dist/src/unstable/packaging/zig.js.map +1 -1
  111. package/dist/src/unstable/packs/manager.d.ts +1 -1
  112. package/dist/src/unstable/packs/paths.d.ts +2 -1
  113. package/dist/src/unstable/packs/paths.d.ts.map +1 -1
  114. package/dist/src/unstable/packs/paths.js +2 -1
  115. package/dist/src/unstable/packs/paths.js.map +1 -1
  116. package/dist/src/unstable/plan/resolve-plan.d.ts +1 -1
  117. package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
  118. package/dist/src/unstable/plan/resolve-plan.js +4 -3
  119. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  120. package/dist/src/unstable/registry/client.d.ts +1 -1
  121. package/dist/src/unstable/registry/utils.d.ts +1 -1
  122. package/dist/src/unstable/settings/settings.d.ts +1 -1
  123. package/dist/src/unstable/skills/manager.d.ts +1 -1
  124. package/dist/src/unstable/skills/manager.d.ts.map +1 -1
  125. package/dist/src/unstable/skills/manager.js +32 -21
  126. package/dist/src/unstable/skills/manager.js.map +1 -1
  127. package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
  128. package/dist/src/unstable/skills/operations/disable.js +3 -1
  129. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  130. package/dist/src/unstable/skills/operations/install.d.ts +1 -1
  131. package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
  132. package/dist/src/unstable/skills/operations/install.js +16 -4
  133. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  134. package/dist/src/unstable/skills/operations/source-hash.d.ts +1 -1
  135. package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
  136. package/dist/src/unstable/skills/operations/uninstall.js +3 -1
  137. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  138. package/dist/src/unstable/skills/paths.d.ts +3 -2
  139. package/dist/src/unstable/skills/paths.d.ts.map +1 -1
  140. package/dist/src/unstable/skills/paths.js +9 -2
  141. package/dist/src/unstable/skills/paths.js.map +1 -1
  142. package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts +4 -4
  143. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +1 -1
  144. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +1 -1
  145. package/dist/src/unstable/source-resolution/resolve-source.d.ts +1 -1
  146. package/dist/src/unstable/source-resolution/service.d.ts +2 -2
  147. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +2 -0
  148. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
  149. package/dist/src/unstable/sources/lock-entry-to-ref.js +21 -12
  150. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  151. package/dist/src/unstable/sources/source-to-lock-entry.d.ts +2 -0
  152. package/dist/src/unstable/sources/source-to-lock-entry.d.ts.map +1 -1
  153. package/dist/src/unstable/sources/source-to-lock-entry.js +2 -1
  154. package/dist/src/unstable/sources/source-to-lock-entry.js.map +1 -1
  155. package/dist/src/unstable/subagents/lock-entry-builder.d.ts +2 -1
  156. package/dist/src/unstable/subagents/lock-entry-builder.d.ts.map +1 -1
  157. package/dist/src/unstable/subagents/lock-entry-builder.js +3 -2
  158. package/dist/src/unstable/subagents/lock-entry-builder.js.map +1 -1
  159. package/dist/src/unstable/subagents/manager.d.ts +1 -1
  160. package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
  161. package/dist/src/unstable/subagents/manager.js +29 -15
  162. package/dist/src/unstable/subagents/manager.js.map +1 -1
  163. package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
  164. package/dist/src/unstable/subagents/operations/enable.js +16 -6
  165. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  166. package/dist/src/unstable/subagents/paths.d.ts +4 -3
  167. package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
  168. package/dist/src/unstable/subagents/paths.js +10 -3
  169. package/dist/src/unstable/subagents/paths.js.map +1 -1
  170. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
  171. package/dist/src/unstable/subagents/rendering/adapters/json.js +2 -3
  172. package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
  173. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts.map +1 -1
  174. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js +2 -3
  175. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
  176. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
  177. package/dist/src/unstable/subagents/rendering/adapters/toml.js +2 -3
  178. package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
  179. package/dist/src/unstable/subagents/rendering/types.d.ts +2 -2
  180. package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
  181. package/dist/src/unstable/update-check/update-check.d.ts +3 -3
  182. package/dist/src/unstable/utils/build-zip-archive.d.ts +1 -1
  183. package/dist/src/unstable/utils/create-symlink.d.ts +1 -1
  184. package/dist/src/unstable/utils/index.d.ts +2 -1
  185. package/dist/src/unstable/utils/index.d.ts.map +1 -1
  186. package/dist/src/unstable/utils/index.js +2 -1
  187. package/dist/src/unstable/utils/index.js.map +1 -1
  188. package/dist/src/unstable/utils/path-safety.d.ts +12 -0
  189. package/dist/src/unstable/utils/path-safety.d.ts.map +1 -1
  190. package/dist/src/unstable/utils/path-safety.js +18 -0
  191. package/dist/src/unstable/utils/path-safety.js.map +1 -1
  192. package/dist/src/unstable/utils/path-types.d.ts +22 -0
  193. package/dist/src/unstable/utils/path-types.d.ts.map +1 -0
  194. package/dist/src/unstable/utils/path-types.js +48 -0
  195. package/dist/src/unstable/utils/path-types.js.map +1 -0
  196. package/dist/src/unstable/workflows/install-command/workflow.d.ts +1 -1
  197. package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts +1 -1
  198. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +5 -5
  199. package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
  200. package/dist/src/unstable/workspace/initialization.d.ts +28 -28
  201. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  202. package/dist/src/unstable/workspace/initialization.js +7 -10
  203. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  204. package/dist/src/unstable/workspace/paths.d.ts +6 -5
  205. package/dist/src/unstable/workspace/paths.d.ts.map +1 -1
  206. package/dist/src/unstable/workspace/paths.js +4 -3
  207. package/dist/src/unstable/workspace/paths.js.map +1 -1
  208. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
  209. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +13 -8
  210. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
  211. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.d.ts.map +1 -1
  212. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js +4 -3
  213. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js.map +1 -1
  214. package/dist/src/unstable/workspace/read-model/discovery/subagents.d.ts +2 -2
  215. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.d.ts.map +1 -1
  216. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +7 -4
  217. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
  218. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.d.ts.map +1 -1
  219. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js +2 -1
  220. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js.map +1 -1
  221. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.d.ts.map +1 -1
  222. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +4 -2
  223. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
  224. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.d.ts.map +1 -1
  225. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js +5 -2
  226. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js.map +1 -1
  227. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +8 -7
  228. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts.map +1 -1
  229. package/dist/src/unstable/workspace/read-model/scanners/types.js.map +1 -1
  230. package/dist/src/unstable/workspace/read-model/service.d.ts +4 -3
  231. package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
  232. package/dist/src/unstable/workspace/read-model/service.js +3 -2
  233. package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
  234. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
  235. package/dist/src/unstable/workspace/service.d.ts +65 -65
  236. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  237. package/dist/src/unstable/workspace/service.js +4 -3
  238. package/dist/src/unstable/workspace/service.js.map +1 -1
  239. package/dist/src/unstable/workspace/skill-snapshot.d.ts +3 -3
  240. package/dist/src/unstable/workspace/skill-snapshot.d.ts.map +1 -1
  241. package/dist/src/unstable/workspace/skill-snapshot.js +4 -3
  242. package/dist/src/unstable/workspace/skill-snapshot.js.map +1 -1
  243. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  244. package/dist/src/unstable/workspace/test-stubs.js +2 -1
  245. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  246. package/package.json +6 -2
@@ -7,10 +7,9 @@
7
7
  *
8
8
  * @experimental This API is unstable and may change without notice.
9
9
  */
10
- import * as Schema from "effect/Schema";
10
+ import { decodeRelativePathSync } from "../../../utils/path-types.js";
11
11
  import { applyOverrides } from "../overrides.js";
12
12
  import { rendered } from "../types.js";
13
- const decodeRenderedFilePath = Schema.decodeUnknownSync(Schema.String.pipe(Schema.brand("RenderedFilePath")));
14
13
  /**
15
14
  * Render a subagent as JSON for Kiro CLI.
16
15
  *
@@ -20,7 +19,7 @@ export const renderJson = (input) => {
20
19
  const base = { ...input.frontmatter, prompt: input.body };
21
20
  const merged = applyOverrides(base, input.agentOverrides);
22
21
  const content = JSON.stringify(merged, null, 2);
23
- const path = decodeRenderedFilePath(`.kiro/agents/${input.name}.json`);
22
+ const path = decodeRelativePathSync(`.kiro/agents/${input.name}.json`);
24
23
  return rendered([{ content, path }], []);
25
24
  };
26
25
  //# sourceMappingURL=json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/json.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAA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AC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,sBAAsB,CAAC,gBAAgB,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC;IAEvE,OAAO,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-yaml.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/markdown-yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAoB7F;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,mBAAmB,KAAG,qBAa/D,CAAC"}
1
+ {"version":3,"file":"markdown-yaml.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/markdown-yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAgB7F;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,mBAAmB,KAAG,qBAa/D,CAAC"}
@@ -9,11 +9,10 @@
9
9
  *
10
10
  * @experimental This API is unstable and may change without notice.
11
11
  */
12
- import * as Schema from "effect/Schema";
13
12
  import YAML from "yaml";
13
+ import { decodeRelativePathSync } from "../../../utils/path-types.js";
14
14
  import { applyOverrides } from "../overrides.js";
15
15
  import { rendered } from "../types.js";
16
- const decodeRenderedFilePath = Schema.decodeUnknownSync(Schema.String.pipe(Schema.brand("RenderedFilePath")));
17
16
  const AGENT_DIRS = {
18
17
  "claude-code": ".claude/agents",
19
18
  "github-copilot": ".github/agents",
@@ -38,7 +37,7 @@ export const renderMarkdownYaml = (input) => {
38
37
  if (input.body.length > 0) {
39
38
  parts.push(input.body);
40
39
  }
41
- const path = decodeRenderedFilePath(`${resolveAgentsDir(input.agentId)}/${input.name}.md`);
40
+ const path = decodeRelativePathSync(`${resolveAgentsDir(input.agentId)}/${input.name}.md`);
42
41
  return rendered([{ content: parts.join("\n"), path }], []);
43
42
  };
44
43
  //# sourceMappingURL=markdown-yaml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-yaml.js","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/markdown-yaml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAwD,MAAM,aAAa,CAAC;AAE7F,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,CACrD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CACrD,CAAC;AAEF,MAAM,UAAU,GAAqC;IACnD,aAAa,EAAE,gBAAgB;IAC/B,gBAAgB,EAAE,gBAAgB;IAClC,MAAM,EAAE,gBAAgB;IACxB,YAAY,EAAE,gBAAgB;IAC9B,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,iBAAiB;IAC1B,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,cAAc;CACrB,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,SAAS,CAAC;AAElG;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA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G,qBAWvD,CAAC"}
1
+ {"version":3,"file":"toml.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/toml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAoB7F;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,KAAG,qBAWvD,CAAC"}
@@ -8,10 +8,9 @@
8
8
  *
9
9
  * @experimental This API is unstable and may change without notice.
10
10
  */
11
- import * as Schema from "effect/Schema";
11
+ import { decodeRelativePathSync } from "../../../utils/path-types.js";
12
12
  import { applyOverrides } from "../overrides.js";
13
13
  import { rendered } from "../types.js";
14
- const decodeRenderedFilePath = Schema.decodeUnknownSync(Schema.String.pipe(Schema.brand("RenderedFilePath")));
15
14
  /**
16
15
  * Serialize a single value to a TOML right-hand side.
17
16
  *
@@ -41,7 +40,7 @@ export const renderToml = (input) => {
41
40
  };
42
41
  const merged = applyOverrides(base, input.agentOverrides);
43
42
  const lines = Object.entries(merged).map(([key, value]) => `${key} = ${tomlValue(value)}`);
44
- const path = decodeRenderedFilePath(`.codex/agents/${input.name}.toml`);
43
+ const path = decodeRelativePathSync(`.codex/agents/${input.name}.toml`);
45
44
  return rendered([{ content: lines.join("\n"), path }], []);
46
45
  };
47
46
  //# sourceMappingURL=toml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toml.js","sourceRoot":"","sources":["../../../../../../src/unstable/subagents/rendering/adapters/toml.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAwD,MAAM,aAAa,CAAC;AAE7F,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,CACrD,MAAM,CAAC,MAAM,CAAC,IAAI,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,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE3F,MAAM,IAAI,GAAG,sBAAsB,CAAC,iBAAiB,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC;IAExE,OAAO,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC,CAAC"}
@@ -8,7 +8,7 @@
8
8
  * @experimental This API is unstable and may change without notice.
9
9
  */
10
10
  import type { LossyRenderingWarning } from "../../commands/rendering-warnings.js";
11
- import type { RenderedFilePath } from "../../extensions/rendered-files.js";
11
+ import type { RelativePath } from "../../utils/path-types.js";
12
12
  /**
13
13
  * Per-agent override map applied as an RFC 7396 JSON Merge Patch on top of
14
14
  * the user's frontmatter for the target agent.
@@ -42,7 +42,7 @@ export interface SubagentRenderOutput {
42
42
  /** The rendered file content. */
43
43
  readonly content: string;
44
44
  /** The relative path for the rendered file (e.g., ".claude/agents/my-agent.md"). */
45
- readonly path: RenderedFilePath;
45
+ readonly path: RelativePath;
46
46
  }
47
47
  /**
48
48
  * Tagged union for render outcomes.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/subagents/rendering/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,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AAC,OAAO,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACtD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACzD;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,aAAa,CAAC,oBAAoB,CAAC,EAC5C,WAAU,aAAa,CAAC,qBAAqB,CAAM,KAClD,gBAID,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,eAGvC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,mBAAmB,KAAK,qBAAqB,CAAC"}
@@ -79,7 +79,7 @@ export declare const readCacheFromPath: (cachePath: string) => Effect.Effect<Opt
79
79
  /**
80
80
  * Write the cache file with the given version and current timestamp.
81
81
  */
82
- export declare const writeCacheToPath: (cachePath: string, latestVersion: string) => Effect.Effect<void, never, FileSystem.FileSystem | Path.Path>;
82
+ export declare const writeCacheToPath: (cachePath: string, latestVersion: string) => Effect.Effect<void, never, Path.Path | FileSystem.FileSystem>;
83
83
  /**
84
84
  * Check if an update is available by reading the cache and comparing versions.
85
85
  */
@@ -90,10 +90,10 @@ export declare const isUpdateAvailableFromPath: (cachePath: string, localVersion
90
90
  readonly current: string;
91
91
  readonly latest: string;
92
92
  }>, never, FileSystem.FileSystem>;
93
- export declare const UpdateCheckLive: Layer.Layer<UpdateCheck, never, FileSystem.FileSystem | Path.Path>;
93
+ export declare const UpdateCheckLive: Layer.Layer<UpdateCheck, never, Path.Path | FileSystem.FileSystem>;
94
94
  /**
95
95
  * Create an UpdateCheck layer for testing with a configurable cache path.
96
96
  */
97
- export declare const UpdateCheckTest: (cachePath: string) => Layer.Layer<UpdateCheck, never, FileSystem.FileSystem | Path.Path>;
97
+ export declare const UpdateCheckTest: (cachePath: string) => Layer.Layer<UpdateCheck, never, Path.Path | FileSystem.FileSystem>;
98
98
  export {};
99
99
  //# sourceMappingURL=update-check.d.ts.map
@@ -16,5 +16,5 @@ import * as Path from "effect/Path";
16
16
  * Files are stored at the root of the zip (no enclosing directory).
17
17
  * Directory entries are not emitted.
18
18
  */
19
- export declare const buildZipArchive: (dir: string) => Effect.Effect<Uint8Array<ArrayBufferLike>, import("../app-error/app-error.ts").AppError, FileSystem.FileSystem | Path.Path>;
19
+ export declare const buildZipArchive: (dir: string) => Effect.Effect<Uint8Array<ArrayBufferLike>, import("../app-error/app-error.ts").AppError, Path.Path | FileSystem.FileSystem>;
20
20
  //# sourceMappingURL=build-zip-archive.d.ts.map
@@ -21,5 +21,5 @@ export type SymlinkResult = "created" | "replaced" | "no-op" | "skipped";
21
21
  export declare const createSymlink: (opts: {
22
22
  readonly target: string;
23
23
  readonly link: string;
24
- }) => Effect.Effect<"created" | "replaced" | "no-op" | "skipped", import("../app-error/app-error.ts").AppError, FileSystem.FileSystem | Path.Path>;
24
+ }) => Effect.Effect<"created" | "replaced" | "no-op" | "skipped", import("../app-error/app-error.ts").AppError, Path.Path | FileSystem.FileSystem>;
25
25
  //# sourceMappingURL=create-symlink.d.ts.map
@@ -1,7 +1,8 @@
1
1
  export { buildZipArchive } from "./build-zip-archive.js";
2
2
  export { removeIfExists, removeFromAllCanonicalLocations, stripFileProtocol, } from "./fs-helpers.js";
3
3
  export { computeIntegrity } from "./integrity.js";
4
- export { isPathSafe } from "./path-safety.js";
4
+ export { isPathSafe, safeChildPath, safeChildPathSync } from "./path-safety.js";
5
+ export { AbsolutePathSchema, RelativePathSchema, decodeAbsolutePathSync, decodeRelativePathSync, makeAbsolutePath, makeRelativePath, makeWorkspaceRelativePath, makeWorkspaceRelativeSourcePath, type AbsolutePath, type RelativePath, } from "./path-types.js";
5
6
  export { resolveParentSymlinks } from "./resolve-parent-symlinks.js";
6
7
  export { createSymlink, type SymlinkResult } from "./create-symlink.js";
7
8
  export { envOption, envWithDefault, isContainer, isRoot, isSSH, isWSL, resolveAxmDataDir, resolveAxmDataDirPure, } from "./environment.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,+BAA+B,EAC/B,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,7 +1,8 @@
1
1
  export { buildZipArchive } from "./build-zip-archive.js";
2
2
  export { removeIfExists, removeFromAllCanonicalLocations, stripFileProtocol, } from "./fs-helpers.js";
3
3
  export { computeIntegrity } from "./integrity.js";
4
- export { isPathSafe } from "./path-safety.js";
4
+ export { isPathSafe, safeChildPath, safeChildPathSync } from "./path-safety.js";
5
+ export { AbsolutePathSchema, RelativePathSchema, decodeAbsolutePathSync, decodeRelativePathSync, makeAbsolutePath, makeRelativePath, makeWorkspaceRelativePath, makeWorkspaceRelativeSourcePath, } from "./path-types.js";
5
6
  export { resolveParentSymlinks } from "./resolve-parent-symlinks.js";
6
7
  export { createSymlink } from "./create-symlink.js";
7
8
  export { envOption, envWithDefault, isContainer, isRoot, isSSH, isWSL, resolveAxmDataDir, resolveAxmDataDirPure, } from "./environment.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,+BAA+B,GAGhC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAsB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +1,18 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import * as Path from "effect/Path";
4
+ import { type AbsolutePath } from "./path-types.js";
1
5
  /**
2
6
  * Validates that a resolved target path stays within a base directory.
3
7
  * Uses path separator boundary check to prevent prefix false positives.
4
8
  */
5
9
  export declare function isPathSafe(base: string, target: string): boolean;
10
+ /**
11
+ * Resolve `target` and return it only when it stays inside `base`.
12
+ */
13
+ export declare const safeChildPath: (base: AbsolutePath, target: string) => Effect.Effect<Option.Option<AbsolutePath>, never, Path.Path>;
14
+ /**
15
+ * Synchronous variant for non-Effect call sites.
16
+ */
17
+ export declare const safeChildPathSync: (base: AbsolutePath, target: string) => Option.Option<AbsolutePath>;
6
18
  //# sourceMappingURL=path-safety.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"path-safety.d.ts","sourceRoot":"","sources":["../../../../src/unstable/utils/path-safety.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAShE"}
1
+ {"version":3,"file":"path-safety.d.ts","sourceRoot":"","sources":["../../../../src/unstable/utils/path-safety.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAShE;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,YAAY,EAClB,QAAQ,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAU1D,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,YAAY,EAClB,QAAQ,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,YAAY,CACyD,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import * as NodeServices from "@effect/platform-node/NodeServices";
2
2
  import * as Effect from "effect/Effect";
3
+ import * as Option from "effect/Option";
3
4
  import * as Path from "effect/Path";
5
+ import { makeAbsolutePath } from "./path-types.js";
4
6
  /**
5
7
  * Validates that a resolved target path stays within a base directory.
6
8
  * Uses path separator boundary check to prevent prefix false positives.
@@ -13,4 +15,20 @@ export function isPathSafe(base, target) {
13
15
  return resolvedTarget === resolvedBase || resolvedTarget.startsWith(resolvedBase + path.sep);
14
16
  }).pipe(Effect.provide(NodeServices.layer)));
15
17
  }
18
+ /**
19
+ * Resolve `target` and return it only when it stays inside `base`.
20
+ */
21
+ export const safeChildPath = (base, target) => Effect.gen(function* () {
22
+ const path = yield* Path.Path;
23
+ const resolvedBase = path.resolve(base);
24
+ const resolvedTarget = path.isAbsolute(target)
25
+ ? path.resolve(target)
26
+ : path.resolve(resolvedBase, target);
27
+ const safe = resolvedTarget === resolvedBase || resolvedTarget.startsWith(resolvedBase + path.sep);
28
+ return safe ? Option.some(makeAbsolutePath(path, resolvedTarget)) : Option.none();
29
+ });
30
+ /**
31
+ * Synchronous variant for non-Effect call sites.
32
+ */
33
+ export const safeChildPathSync = (base, target) => Effect.runSync(safeChildPath(base, target).pipe(Effect.provide(NodeServices.layer)));
16
34
  //# sourceMappingURL=path-safety.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"path-safety.js","sourceRoot":"","sources":["../../../../src/unstable/utils/path-safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,oCAAoC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K,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Nominal path string types.
3
+ *
4
+ * Use these at module boundaries after a path has been normalized by the
5
+ * Effect `Path` service. Keep raw strings at external input boundaries.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ import * as Option from "effect/Option";
10
+ import type * as Path from "effect/Path";
11
+ import * as Schema from "effect/Schema";
12
+ export declare const AbsolutePathSchema: Schema.brand<Schema.String, "AbsolutePath">;
13
+ export type AbsolutePath = Schema.Schema.Type<typeof AbsolutePathSchema>;
14
+ export declare const RelativePathSchema: Schema.brand<Schema.String, "RelativePath">;
15
+ export type RelativePath = Schema.Schema.Type<typeof RelativePathSchema>;
16
+ export declare const decodeAbsolutePathSync: (value: string) => AbsolutePath;
17
+ export declare const decodeRelativePathSync: (value: string) => RelativePath;
18
+ export declare const makeAbsolutePath: (path: Path.Path, value: string) => AbsolutePath;
19
+ export declare const makeRelativePath: (path: Path.Path, value: string) => Option.Option<RelativePath>;
20
+ export declare const makeWorkspaceRelativePath: (path: Path.Path, workspaceRoot: AbsolutePath | string, target: string) => Option.Option<RelativePath>;
21
+ export declare const makeWorkspaceRelativeSourcePath: (path: Path.Path, workspaceRoot: AbsolutePath | string, target: string) => Option.Option<string>;
22
+ //# sourceMappingURL=path-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/utils/path-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAQxC,eAAO,MAAM,kBAAkB,6CAO9B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,kBAAkB,6CAS9B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAKzE,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,KAAG,YAAyC,CAAC;AAEjG,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,KAAG,YAAyC,CAAC;AAEjG,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,CAAC,IAAI,EAAE,OAAO,MAAM,KAAG,YACzB,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,CAAC,IAAI,EAAE,OAAO,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAK3F,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,MAAM,IAAI,CAAC,IAAI,EACf,eAAe,YAAY,GAAG,MAAM,EACpC,QAAQ,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,YAAY,CAO5B,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,MAAM,IAAI,CAAC,IAAI,EACf,eAAe,YAAY,GAAG,MAAM,EACpC,QAAQ,MAAM,KACb,MAAM,CAAC,MAAM,CAAC,MAAM,CAQtB,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Nominal path string types.
3
+ *
4
+ * Use these at module boundaries after a path has been normalized by the
5
+ * Effect `Path` service. Keep raw strings at external input boundaries.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ import * as Option from "effect/Option";
10
+ import * as Schema from "effect/Schema";
11
+ const looksAbsolutePath = (value) => value.startsWith("/") || /^[A-Za-z]:[\\/]/.test(value) || value.startsWith("\\\\");
12
+ const looksEscapingRelativePath = (value) => value === "" || value === ".." || value.startsWith("../") || value.startsWith("..\\");
13
+ export const AbsolutePathSchema = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => looksAbsolutePath(value) ? undefined : "Expected an absolute path")), Schema.brand("AbsolutePath"));
14
+ export const RelativePathSchema = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => looksAbsolutePath(value) || looksEscapingRelativePath(value)
15
+ ? "Expected a relative path that stays within its root"
16
+ : undefined)), Schema.brand("RelativePath"));
17
+ const decodeAbsolutePath = Schema.decodeUnknownSync(AbsolutePathSchema);
18
+ const decodeRelativePath = Schema.decodeUnknownSync(RelativePathSchema);
19
+ export const decodeAbsolutePathSync = (value) => decodeAbsolutePath(value);
20
+ export const decodeRelativePathSync = (value) => decodeRelativePath(value);
21
+ export const makeAbsolutePath = (path, value) => decodeAbsolutePath(path.resolve(value));
22
+ export const makeRelativePath = (path, value) => {
23
+ if (path.isAbsolute(value))
24
+ return Option.none();
25
+ const normalized = path.normalize(value);
26
+ if (looksEscapingRelativePath(normalized))
27
+ return Option.none();
28
+ return Option.some(decodeRelativePath(normalized));
29
+ };
30
+ export const makeWorkspaceRelativePath = (path, workspaceRoot, target) => {
31
+ const root = path.resolve(workspaceRoot);
32
+ const resolvedTarget = path.isAbsolute(target)
33
+ ? path.resolve(target)
34
+ : path.resolve(root, target);
35
+ const relative = path.relative(root, resolvedTarget);
36
+ return makeRelativePath(path, relative);
37
+ };
38
+ export const makeWorkspaceRelativeSourcePath = (path, workspaceRoot, target) => {
39
+ const root = path.resolve(workspaceRoot);
40
+ const resolvedTarget = path.isAbsolute(target)
41
+ ? path.resolve(target)
42
+ : path.resolve(root, target);
43
+ const relative = path.relative(root, resolvedTarget);
44
+ if (path.isAbsolute(relative))
45
+ return Option.none();
46
+ return Option.some(path.normalize(relative.length === 0 ? "." : relative));
47
+ };
48
+ //# sourceMappingURL=path-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-types.js","sourceRoot":"","sources":["../../../../src/unstable/utils/path-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,iBAAiB,G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E;IACzB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QAC5C,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;QACtB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IACrD,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACpD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC7E,CAAC,CAAC"}
@@ -46,5 +46,5 @@ export declare const runInstallCommandWorkflow: <Args, Parsed, Req, Ref, Intent>
46
46
  yes: boolean;
47
47
  force: boolean;
48
48
  preview: boolean;
49
- }) => Effect.Effect<PlanResolution, AppError | PromptCancelled, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../../workspace/service-interface.ts").WorkspaceMutations | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("../../cli-flags/verbosity.ts").Verbosity | import("../../cli-renderer/cli-renderer.ts").CliRenderer>;
49
+ }) => Effect.Effect<PlanResolution, AppError | PromptCancelled, import("effect/Path").Path | import("effect/FileSystem").FileSystem | import("../../workspace/service-interface.ts").WorkspaceMutations | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("../../cli-flags/verbosity.ts").Verbosity | import("../../cli-renderer/cli-renderer.ts").CliRenderer>;
50
50
  //# sourceMappingURL=workflow.d.ts.map
@@ -34,5 +34,5 @@ export declare const runUninstallCommandWorkflow: <Args, Parsed, Intent>(args: A
34
34
  yes: boolean;
35
35
  force: boolean;
36
36
  preview: boolean;
37
- }) => Effect.Effect<PlanResolution, AppError | import("../../cli-prompt/prompt-cancelled.ts").PromptCancelled, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../../workspace/service-interface.ts").WorkspaceMutations | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("../../cli-flags/verbosity.ts").Verbosity | import("../../cli-renderer/cli-renderer.ts").CliRenderer>;
37
+ }) => Effect.Effect<PlanResolution, AppError | import("../../cli-prompt/prompt-cancelled.ts").PromptCancelled, import("effect/Path").Path | import("effect/FileSystem").FileSystem | import("../../workspace/service-interface.ts").WorkspaceMutations | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("../../cli-flags/verbosity.ts").Verbosity | import("../../cli-renderer/cli-renderer.ts").CliRenderer>;
38
38
  //# sourceMappingURL=workflow.d.ts.map
@@ -9,21 +9,21 @@ import { WorkspaceMutations } from "../service-interface.js";
9
9
  export declare const resolveConfiguredSkill: (name: string, source: string) => Effect.Effect<{
10
10
  ref: SkillExtensionRef;
11
11
  versionRange: Option.None<string & import("effect/Brand").Brand<"VersionRange">> | Option.Some<string & import("effect/Brand").Brand<"VersionRange">>;
12
- }, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
12
+ }, import("../../app-error/app-error.ts").AppError, import("effect/Path").Path | import("effect/FileSystem").FileSystem | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
13
13
  export declare const resolveConfiguredSubagent: (name: string, source: string) => Effect.Effect<{
14
14
  ref: SubagentExtensionRef;
15
15
  versionRange: Option.None<string & import("effect/Brand").Brand<"VersionRange">> | Option.Some<string & import("effect/Brand").Brand<"VersionRange">>;
16
- }, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
16
+ }, import("../../app-error/app-error.ts").AppError, import("effect/Path").Path | import("effect/FileSystem").FileSystem | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
17
17
  export declare const resolveConfiguredCommand: (name: string, source: string) => Effect.Effect<{
18
18
  ref: CommandExtensionRef;
19
19
  versionRange: Option.Option<string & import("effect/Brand").Brand<"VersionRange">>;
20
- }, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
20
+ }, import("../../app-error/app-error.ts").AppError, import("effect/Path").Path | import("effect/FileSystem").FileSystem | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
21
21
  export declare const resolveConfiguredMcpServer: (name: string, source: string) => Effect.Effect<{
22
22
  ref: McpServerExtensionRef;
23
23
  versionRange: Option.Option<string & import("effect/Brand").Brand<"VersionRange">>;
24
- }, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
24
+ }, import("../../app-error/app-error.ts").AppError, import("effect/Path").Path | import("effect/FileSystem").FileSystem | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
25
25
  export declare const resolveConfiguredPack: (name: string, source: string) => Effect.Effect<{
26
26
  ref: import("../../packs/refs.ts").RegistryPackRef;
27
27
  versionRange: Option.Option<string & import("effect/Brand").Brand<"VersionRange">>;
28
- }, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
28
+ }, import("../../app-error/app-error.ts").AppError, import("effect/Path").Path | import("effect/FileSystem").FileSystem | WorkspaceMutations | import("effect/Scope").Scope | SourceHostProviders>;
29
29
  //# sourceMappingURL=resolve.d.ts.map
@@ -16,7 +16,7 @@ export interface WorkspaceInitializationInteractionService {
16
16
  declare const WorkspaceInitializationInteraction_base: ServiceMap.ServiceClass<WorkspaceInitializationInteraction, "@agentxm/client-core/unstable/workspace/initialization-interaction/WorkspaceInitializationInteraction", WorkspaceInitializationInteractionService>;
17
17
  export declare class WorkspaceInitializationInteraction extends WorkspaceInitializationInteraction_base {
18
18
  }
19
- export declare const WorkspaceInitializationInteractionLive: Layer.Layer<WorkspaceInitializationInteraction, never, FileSystem.FileSystem | Path.Path | Terminal.Terminal>;
19
+ export declare const WorkspaceInitializationInteractionLive: Layer.Layer<WorkspaceInitializationInteraction, never, Path.Path | FileSystem.FileSystem | Terminal.Terminal>;
20
20
  export interface WorkspaceInitializationInteractionTestState {
21
21
  readonly selectAgentsCalls: Array<{
22
22
  readonly allAgents: ReadonlyArray<AgentDescriptor>;
@@ -54,29 +54,29 @@ export declare const initializeProjectWorkspace: (localDir: string, options: Wor
54
54
  readonly [x: string]: "off" | "info" | "warn" | "error";
55
55
  };
56
56
  };
57
- readonly $schema?: string;
58
- readonly telemetry?: boolean | "errors";
59
57
  readonly sources?: readonly ({
60
- readonly url: URL;
61
58
  readonly type: "github";
62
59
  readonly name: string;
63
- } | {
64
60
  readonly url: URL;
61
+ } | {
65
62
  readonly type: "gitlab";
66
63
  readonly name: string;
67
- } | {
68
64
  readonly url: URL;
65
+ } | {
69
66
  readonly type: "bitbucket";
70
67
  readonly name: string;
71
- } | {
72
68
  readonly url: URL;
69
+ } | {
73
70
  readonly type: "azurerepos";
74
71
  readonly name: string;
72
+ readonly url: URL;
75
73
  } | {
76
74
  readonly type: "registry";
77
75
  readonly name: string;
78
76
  readonly location: URL;
79
77
  })[];
78
+ readonly $schema?: string;
79
+ readonly telemetry?: boolean | "errors";
80
80
  readonly agents?: readonly ConfigurableAgentId[];
81
81
  readonly skillsConfig?: {
82
82
  readonly ignore?: readonly string[];
@@ -99,7 +99,7 @@ export declare const initializeProjectWorkspace: (localDir: string, options: Wor
99
99
  readonly mcpServersConfig?: {
100
100
  readonly ignore?: readonly string[];
101
101
  };
102
- }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, FileSystem.FileSystem | Path.Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
102
+ }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, Path.Path | FileSystem.FileSystem | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
103
103
  /**
104
104
  * Ensure user-scope workspace directory has settings.json and axm-lock.yaml.
105
105
  *
@@ -107,7 +107,7 @@ export declare const initializeProjectWorkspace: (localDir: string, options: Wor
107
107
  *
108
108
  * @param globalDir - Path to user-scope .axm directory
109
109
  */
110
- export declare const ensureGlobalWorkspaceInitialized: (globalDir: string) => Effect.Effect<boolean, import("../app-error/app-error.ts").AppError, FileSystem.FileSystem | Path.Path>;
110
+ export declare const ensureGlobalWorkspaceInitialized: (globalDir: string) => Effect.Effect<boolean, import("../app-error/app-error.ts").AppError, Path.Path | FileSystem.FileSystem>;
111
111
  /**
112
112
  * Ensure project workspace is initialized, returning local settings.
113
113
  *
@@ -152,29 +152,29 @@ export declare const ensureProjectWorkspaceInitialized: (localDir: string, optio
152
152
  readonly [x: string]: "off" | "info" | "warn" | "error";
153
153
  };
154
154
  };
155
- readonly $schema?: string;
156
- readonly telemetry?: boolean | "errors";
157
155
  readonly sources?: readonly ({
158
- readonly url: URL;
159
156
  readonly type: "github";
160
157
  readonly name: string;
161
- } | {
162
158
  readonly url: URL;
159
+ } | {
163
160
  readonly type: "gitlab";
164
161
  readonly name: string;
165
- } | {
166
162
  readonly url: URL;
163
+ } | {
167
164
  readonly type: "bitbucket";
168
165
  readonly name: string;
169
- } | {
170
166
  readonly url: URL;
167
+ } | {
171
168
  readonly type: "azurerepos";
172
169
  readonly name: string;
170
+ readonly url: URL;
173
171
  } | {
174
172
  readonly type: "registry";
175
173
  readonly name: string;
176
174
  readonly location: URL;
177
175
  })[];
176
+ readonly $schema?: string;
177
+ readonly telemetry?: boolean | "errors";
178
178
  readonly agents?: readonly ConfigurableAgentId[];
179
179
  readonly skillsConfig?: {
180
180
  readonly ignore?: readonly string[];
@@ -234,29 +234,29 @@ export declare const ensureProjectWorkspaceInitialized: (localDir: string, optio
234
234
  readonly [x: string]: "off" | "info" | "warn" | "error";
235
235
  };
236
236
  };
237
- readonly $schema?: string;
238
- readonly telemetry?: boolean | "errors";
239
237
  readonly sources?: readonly ({
240
- readonly url: URL;
241
238
  readonly type: "github";
242
239
  readonly name: string;
243
- } | {
244
240
  readonly url: URL;
241
+ } | {
245
242
  readonly type: "gitlab";
246
243
  readonly name: string;
247
- } | {
248
244
  readonly url: URL;
245
+ } | {
249
246
  readonly type: "bitbucket";
250
247
  readonly name: string;
251
- } | {
252
248
  readonly url: URL;
249
+ } | {
253
250
  readonly type: "azurerepos";
254
251
  readonly name: string;
252
+ readonly url: URL;
255
253
  } | {
256
254
  readonly type: "registry";
257
255
  readonly name: string;
258
256
  readonly location: URL;
259
257
  })[];
258
+ readonly $schema?: string;
259
+ readonly telemetry?: boolean | "errors";
260
260
  readonly agents?: readonly ConfigurableAgentId[];
261
261
  readonly skillsConfig?: {
262
262
  readonly ignore?: readonly string[];
@@ -281,7 +281,7 @@ export declare const ensureProjectWorkspaceInitialized: (localDir: string, optio
281
281
  };
282
282
  };
283
283
  initialized: false;
284
- }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, FileSystem.FileSystem | Path.Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
284
+ }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, Path.Path | FileSystem.FileSystem | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
285
285
  export declare const bootstrapWorkspace: (options: WorkspaceMutationsOptions) => Effect.Effect<{
286
286
  settings: {
287
287
  readonly skills?: {
@@ -317,29 +317,29 @@ export declare const bootstrapWorkspace: (options: WorkspaceMutationsOptions) =>
317
317
  readonly [x: string]: "off" | "info" | "warn" | "error";
318
318
  };
319
319
  };
320
- readonly $schema?: string;
321
- readonly telemetry?: boolean | "errors";
322
320
  readonly sources?: readonly ({
323
- readonly url: URL;
324
321
  readonly type: "github";
325
322
  readonly name: string;
326
- } | {
327
323
  readonly url: URL;
324
+ } | {
328
325
  readonly type: "gitlab";
329
326
  readonly name: string;
330
- } | {
331
327
  readonly url: URL;
328
+ } | {
332
329
  readonly type: "bitbucket";
333
330
  readonly name: string;
334
- } | {
335
331
  readonly url: URL;
332
+ } | {
336
333
  readonly type: "azurerepos";
337
334
  readonly name: string;
335
+ readonly url: URL;
338
336
  } | {
339
337
  readonly type: "registry";
340
338
  readonly name: string;
341
339
  readonly location: URL;
342
340
  })[];
341
+ readonly $schema?: string;
342
+ readonly telemetry?: boolean | "errors";
343
343
  readonly agents?: readonly ConfigurableAgentId[];
344
344
  readonly skillsConfig?: {
345
345
  readonly ignore?: readonly string[];
@@ -365,5 +365,5 @@ export declare const bootstrapWorkspace: (options: WorkspaceMutationsOptions) =>
365
365
  };
366
366
  location: WorkspaceLocation;
367
367
  initialized: boolean;
368
- }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, FileSystem.FileSystem | Path.Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
368
+ }, import("../app-error/app-error.ts").AppError | import("../cli-prompt/prompt-cancelled.ts").PromptCancelled, Path.Path | FileSystem.FileSystem | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CliRenderer>;
369
369
  //# sourceMappingURL=initialization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initialization.d.ts","sourceRoot":"","sources":["../../../../src/unstable/workspace/initialization.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAIL,KAAK,mBAAm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