@skaile/workspaces 3.2.1 → 3.3.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 (113) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/{asset-feeds-SEYSNNEM.js → asset-feeds-AGAH5OHC.js} +4 -4
  3. package/dist/{asset-feeds-SEYSNNEM.js.map → asset-feeds-AGAH5OHC.js.map} +1 -1
  4. package/dist/asset-manager/index.js +1 -1
  5. package/dist/{chunk-PTAUN5CY.js → chunk-33GWB3RB.js} +2 -2
  6. package/dist/{chunk-PTAUN5CY.js.map → chunk-33GWB3RB.js.map} +1 -1
  7. package/dist/{chunk-XVIFPGYH.js → chunk-3KEJ2HJY.js} +3 -3
  8. package/dist/{chunk-XVIFPGYH.js.map → chunk-3KEJ2HJY.js.map} +1 -1
  9. package/dist/{chunk-HWEW3VII.js → chunk-4GJLRYMB.js} +2 -2
  10. package/dist/{chunk-HWEW3VII.js.map → chunk-4GJLRYMB.js.map} +1 -1
  11. package/dist/{chunk-I7S6DFRU.js → chunk-5FLEP4X6.js} +3 -3
  12. package/dist/{chunk-I7S6DFRU.js.map → chunk-5FLEP4X6.js.map} +1 -1
  13. package/dist/{chunk-57RFYEVM.js → chunk-6OMKIPIE.js} +18 -5
  14. package/dist/chunk-6OMKIPIE.js.map +1 -0
  15. package/dist/{chunk-BKUANJB7.js → chunk-BOH6AG6Q.js} +7 -31
  16. package/dist/chunk-BOH6AG6Q.js.map +1 -0
  17. package/dist/{chunk-BEA7RXI3.js → chunk-E5S2WGTS.js} +130 -11
  18. package/dist/chunk-E5S2WGTS.js.map +1 -0
  19. package/dist/{chunk-F5VREBV2.js → chunk-ELPR5XBG.js} +40 -3
  20. package/dist/chunk-ELPR5XBG.js.map +1 -0
  21. package/dist/{chunk-IAIHZRG7.js → chunk-EP7VBFMN.js} +6 -6
  22. package/dist/{chunk-IAIHZRG7.js.map → chunk-EP7VBFMN.js.map} +1 -1
  23. package/dist/{chunk-FLBDLF3I.js → chunk-HGFKNJA5.js} +6 -4
  24. package/dist/chunk-HGFKNJA5.js.map +1 -0
  25. package/dist/{chunk-CH3UTJBT.js → chunk-MJ77WSJC.js} +4 -4
  26. package/dist/{chunk-CH3UTJBT.js.map → chunk-MJ77WSJC.js.map} +1 -1
  27. package/dist/{chunk-HCNVX34E.js → chunk-OD3ABXUO.js} +2 -2
  28. package/dist/{chunk-HCNVX34E.js.map → chunk-OD3ABXUO.js.map} +1 -1
  29. package/dist/{chunk-DNYE3SSL.js → chunk-PRKLFKNC.js} +3 -3
  30. package/dist/{chunk-DNYE3SSL.js.map → chunk-PRKLFKNC.js.map} +1 -1
  31. package/dist/{chunk-NWFZUQPF.js → chunk-RRCNMURJ.js} +7 -7
  32. package/dist/{chunk-NWFZUQPF.js.map → chunk-RRCNMURJ.js.map} +1 -1
  33. package/dist/{chunk-NLZYBWVH.js → chunk-S6GKHEMN.js} +6 -6
  34. package/dist/{chunk-NLZYBWVH.js.map → chunk-S6GKHEMN.js.map} +1 -1
  35. package/dist/cli/index.js +295 -283
  36. package/dist/cli/index.js.map +1 -1
  37. package/dist/cli/src/commands/complete-resolvers.d.ts +4 -0
  38. package/dist/cli/src/commands/complete-resolvers.d.ts.map +1 -1
  39. package/dist/cli/src/commands/flow.d.ts +8 -4
  40. package/dist/cli/src/commands/flow.d.ts.map +1 -1
  41. package/dist/cli/src/commands/run.d.ts.map +1 -1
  42. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  43. package/dist/cli/src/flow-discovery.d.ts +26 -10
  44. package/dist/cli/src/flow-discovery.d.ts.map +1 -1
  45. package/dist/cli/src/paths.d.ts +21 -7
  46. package/dist/cli/src/paths.d.ts.map +1 -1
  47. package/dist/connectors/index.js +4 -4
  48. package/dist/{ensure-sources-IM3JMW2L.js → ensure-sources-L2276FYP.js} +4 -4
  49. package/dist/{ensure-sources-IM3JMW2L.js.map → ensure-sources-L2276FYP.js.map} +1 -1
  50. package/dist/factory-assets/connectors/box.js +4 -4
  51. package/dist/factory-assets/connectors/deploy.js +4 -4
  52. package/dist/factory-assets/connectors/devserver.js +4 -4
  53. package/dist/factory-assets/connectors/flow/CONNECTOR.md +20 -7
  54. package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
  55. package/dist/factory-assets/connectors/flow/adapter.js +4 -4
  56. package/dist/factory-assets/connectors/flow/engine/index.d.ts +1 -0
  57. package/dist/factory-assets/connectors/flow/engine/index.d.ts.map +1 -1
  58. package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts +56 -0
  59. package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts.map +1 -1
  60. package/dist/factory-assets/connectors/flow/engine.js +2 -2
  61. package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts +4 -0
  62. package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts.map +1 -1
  63. package/dist/factory-assets/connectors/flow/prompt-fragments.js +2 -2
  64. package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
  65. package/dist/factory-assets/connectors/flow/run-flow.js +5 -5
  66. package/dist/factory-assets/connectors/flow.js +4 -4
  67. package/dist/factory-assets/connectors/git.js +4 -4
  68. package/dist/factory-assets/connectors/gmail.js +4 -4
  69. package/dist/factory-assets/connectors/googledrive.js +4 -4
  70. package/dist/factory-assets/connectors/local.js +4 -4
  71. package/dist/factory-assets/connectors/mattermost.js +4 -4
  72. package/dist/factory-assets/connectors/memory.js +4 -4
  73. package/dist/factory-assets/connectors/minio.js +4 -4
  74. package/dist/factory-assets/connectors/postgres.js +4 -4
  75. package/dist/factory-assets/connectors/s3.js +4 -4
  76. package/dist/factory-assets/connectors/sharepoint.js +4 -4
  77. package/dist/factory-assets/connectors/sqlite.js +4 -4
  78. package/dist/factory-assets/connectors/static-server.js +4 -4
  79. package/dist/factory-assets/connectors/tunnel.js +4 -4
  80. package/dist/factory-assets/connectors/webdav.js +4 -4
  81. package/dist/factory-assets/connectors/xstate-store.js +4 -4
  82. package/dist/factory-assets/connectors/xstate.js +4 -4
  83. package/dist/{flows-PBNW6BEH.js → flows-7CZKSC64.js} +3 -3
  84. package/dist/{flows-PBNW6BEH.js.map → flows-7CZKSC64.js.map} +1 -1
  85. package/dist/{helpers-LJFOH4RB.js → helpers-ZWHB5JHQ.js} +4 -4
  86. package/dist/{helpers-LJFOH4RB.js.map → helpers-ZWHB5JHQ.js.map} +1 -1
  87. package/dist/{library-publish-BEFA7OCS.js → library-publish-CVYFMVGR.js} +8 -8
  88. package/dist/{library-publish-BEFA7OCS.js.map → library-publish-CVYFMVGR.js.map} +1 -1
  89. package/dist/{open-library-WJ7P7B4N.js → open-library-XB65LU3M.js} +7 -7
  90. package/dist/{open-library-WJ7P7B4N.js.map → open-library-XB65LU3M.js.map} +1 -1
  91. package/dist/{paths-2ZZMB7HU.js → paths-B52KTS7N.js} +3 -3
  92. package/dist/{paths-2ZZMB7HU.js.map → paths-B52KTS7N.js.map} +1 -1
  93. package/dist/{project-6RXDBSRV.js → project-E5LKCE7R.js} +5 -5
  94. package/dist/{project-6RXDBSRV.js.map → project-E5LKCE7R.js.map} +1 -1
  95. package/dist/runner/index.js +7 -7
  96. package/dist/sdk/asset-manager.js +1 -1
  97. package/dist/sdk/flow.js +2 -2
  98. package/dist/sdk/index.js +7 -7
  99. package/dist/sdk/runner.js +7 -7
  100. package/dist/{source-TJ457ZRQ.js → source-7BNREKGK.js} +8 -8
  101. package/dist/{source-TJ457ZRQ.js.map → source-7BNREKGK.js.map} +1 -1
  102. package/dist/{source-manifest-publish-R3Q4MT5W.js → source-manifest-publish-JGMHNADH.js} +9 -9
  103. package/dist/{source-manifest-publish-R3Q4MT5W.js.map → source-manifest-publish-JGMHNADH.js.map} +1 -1
  104. package/dist/tui/index.js +7 -7
  105. package/dist/workspace-plugin/adapters/mcp.js +1 -1
  106. package/dist/workspace-plugin/adapters/omp.js +3 -3
  107. package/dist/workspace-plugin/index.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/chunk-57RFYEVM.js.map +0 -1
  110. package/dist/chunk-BEA7RXI3.js.map +0 -1
  111. package/dist/chunk-BKUANJB7.js.map +0 -1
  112. package/dist/chunk-F5VREBV2.js.map +0 -1
  113. package/dist/chunk-FLBDLF3I.js.map +0 -1
@@ -13,6 +13,10 @@ export declare function resolveDomains(): string[];
13
13
  /**
14
14
  * Return flow IDs for tab-completion of `skaile run <TAB>` and `skaile flow show <TAB>`.
15
15
  *
16
+ * Always resolves against the cwd project — `resolveDynamic` dispatches on
17
+ * argv position, so it only fires when the flow id is the first argument and
18
+ * never sees a `--project-dir`. The command itself still honours that flag.
19
+ *
16
20
  * @docLink cli/dev-guide#completion
17
21
  */
18
22
  export declare function resolveFlowIds(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"complete-resolvers.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/complete-resolvers.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CASzC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAMzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAW9D;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAuE,CAAC"}
1
+ {"version":3,"file":"complete-resolvers.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/complete-resolvers.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CASzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAMzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAW9D;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAuE,CAAC"}
@@ -3,10 +3,14 @@ import { Command } from "commander";
3
3
  * Create the `skaile flow` command group.
4
4
  *
5
5
  * Browses flows discovered across every content root via {@link discoverFlows}
6
- * (bundled factory-assets when installed, the monorepo tree in dev, plus user
7
- * libraries). Subcommands: `list` (print all available flows with
8
- * their IDs, names, and descriptions) and `show <id>` (print the flow's
9
- * metadata and its skill nodes in execution order, marking optional nodes).
6
+ * (the project's `.skaile/` install root, bundled factory-assets when installed /
7
+ * the monorepo tree in dev, user libraries, and the global `~/.skaile/` install
8
+ * root). Subcommands: `list` (print all available flows with their IDs, names,
9
+ * and descriptions) and `show <id>` (print the flow's metadata and its skill
10
+ * nodes in execution order, marking optional nodes).
11
+ *
12
+ * Both take `--project-dir` and forward it to discovery, so they list exactly the
13
+ * flows `skaile run --project-dir <same>` can start.
10
14
  *
11
15
  * @returns Configured {@link Command} ready for `program.addCommand()`.
12
16
  * @docLink cli/commands/flow#make-flow-command
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAmDzC"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/flow.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAkEzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/run.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiDpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAyIxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAqC3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAoC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAS1C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAyEzC"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/run.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiDpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,OAAO,CA0IxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAqC3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAoC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAS1C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAyEzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/validate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+mBpC;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CA6F7C"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/validate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAkBH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6nBpC;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CA6F7C"}
@@ -1,20 +1,32 @@
1
1
  /**
2
2
  * flow-discovery.ts — multi-root flow discovery for the CLI.
3
3
  *
4
- * Walks every {@link aiResourceRoots} root (bundled factory-assets when
5
- * installed, the monorepo `ai-assets/` in dev, plus `~/.skaile/libraries/`)
6
- * through the layout-tolerant `loadAllFlowEntries`, so built-in flows are
7
- * discovered after `npm i` exactly as they are in the monorepo. De-duplicated by
8
- * flow id (first root wins).
4
+ * Walks every {@link aiResourceRoots} root (the project's own `.skaile/` install
5
+ * root, bundled factory-assets when installed / the monorepo `ai-assets/` in dev,
6
+ * `~/.skaile/libraries/`, and the global `~/.skaile/` install root) through the
7
+ * layout-tolerant `loadAllFlowEntries`, so an installed flow and a built-in flow
8
+ * are discovered the same way. De-duplicated by flow id (first root wins).
9
9
  *
10
10
  * A flow's identity is its declared `id` — never its filename. Listing and
11
- * resolution therefore run over the same enumeration, so what `flow list` prints
12
- * is exactly what `run` can start.
11
+ * resolution therefore run over the same enumeration, so on the shared roots what
12
+ * `flow list` prints is exactly what `run` can start. Both entry points take the
13
+ * same optional `projectDir`: pass the *same* value to both, or a `--project-dir`
14
+ * run can start a flow the matching list never showed.
15
+ *
16
+ * One gap predates this: `run` prepends the project's `ai-assets/` tree as a
17
+ * `priorityRoots` entry that `discoverFlows` never sees, so a flow living only
18
+ * there is runnable but unlisted. Closing it means teaching listing about the
19
+ * same upward walk — tracked separately, not papered over here.
13
20
  */
14
21
  import { loadAllFlowEntries } from "@skaile/workspaces/factory-assets/connectors/flow/engine";
15
22
  type FlowDefinition = ReturnType<typeof loadAllFlowEntries>[number]["flow"];
16
- /** All flows across every content root, de-duplicated by id. */
17
- export declare function discoverFlows(): FlowDefinition[];
23
+ /**
24
+ * All flows across every content root, de-duplicated by id.
25
+ *
26
+ * @param projectDir - Project whose `.skaile/` install root to include
27
+ * (default: `process.cwd()`).
28
+ */
29
+ export declare function discoverFlows(projectDir?: string): FlowDefinition[];
18
30
  /**
19
31
  * Locate the on-disk file of the flow **whose declared `id`** is `flowId`,
20
32
  * across every content root, both content-root layouts (`<root>/flows/` and
@@ -28,7 +40,11 @@ export declare function discoverFlows(): FlowDefinition[];
28
40
  *
29
41
  * `priorityRoots` are searched before the standard {@link aiResourceRoots} so a
30
42
  * project-local `ai-assets/` tree can override a built-in flow.
43
+ *
44
+ * @param projectDir - Project whose `.skaile/` install root to include
45
+ * (default: `process.cwd()`). Must match the one passed to
46
+ * {@link discoverFlows} for "listed" and "runnable" to stay the same set.
31
47
  */
32
- export declare function findFlowFile(flowId: string, priorityRoots?: string[]): string | undefined;
48
+ export declare function findFlowFile(flowId: string, priorityRoots?: string[], projectDir?: string): string | undefined;
33
49
  export {};
34
50
  //# sourceMappingURL=flow-discovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-discovery.d.ts","sourceRoot":"","sources":["../../../cli/src/flow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAEL,kBAAkB,EAEnB,MAAM,0DAA0D,CAAC;AAIlE,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,gEAAgE;AAChE,wBAAgB,aAAa,IAAI,cAAc,EAAE,CAQhD;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,GAAE,MAAM,EAAO,GAAG,MAAM,GAAG,SAAS,CAW7F"}
1
+ {"version":3,"file":"flow-discovery.d.ts","sourceRoot":"","sources":["../../../cli/src/flow-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAEL,kBAAkB,EAEnB,MAAM,0DAA0D,CAAC;AAIlE,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAQnE;AAWD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,aAAa,GAAE,MAAM,EAAO,EAC5B,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAWpB"}
@@ -26,19 +26,33 @@ export declare const AI_RESOURCES: string;
26
26
  * All content roots that skill / flow discovery should walk, in priority order,
27
27
  * filtered to those that exist on disk and de-duplicated.
28
28
  *
29
- * - The first-party `factory-assets/` roots from the shared `factoryAssetRoots()`
30
- * helper the `SKAILE_FACTORY_ASSETS_DIR` override layer (when set) ahead of
31
- * the bundled tree (in-repo source in dev, `dist/factory-assets/` after
32
- * install). No monorepo special-case.
33
- * - The user-library dir `~/.skaile/libraries/`.
29
+ * Four layers, in this order:
30
+ * 1. The project-local install root `<projectDir>/.skaile/`, where
31
+ * `skaile install` / `skaile add` deploy flows.
32
+ * 2. The first-party `factory-assets/` roots from the shared `factoryAssetRoots()`
33
+ * helper the `SKAILE_FACTORY_ASSETS_DIR` override layer (when set) ahead of
34
+ * the bundled tree (in-repo source in dev, `dist/factory-assets/` after
35
+ * install). No monorepo special-case.
36
+ * 3. The user-library dir `~/.skaile/libraries/`.
37
+ * 4. The user-global install root `~/.skaile/`.
34
38
  *
35
39
  * Order is significant: `findSkills` / flow discovery dedupe first-root-wins, so
36
- * the env override shadows the bundled tree on a name clash.
40
+ * the env override shadows the bundled tree on a name clash. The project-local
41
+ * install root leads because `deployAll` applies `patches:` to the deployed copy
42
+ * — that copy, not the factory original, is the project's effective flow.
43
+ *
44
+ * Only `flow` installs into skaile's own `.skaile/` tree; every other asset kind
45
+ * installs into the driver's directory (`.claude/`, `.omp/`, `.codex/`), which
46
+ * the driver reads natively and skaile deliberately does not enumerate. So the
47
+ * roots below are exactly the skaile-owned ones — an invariant asserted by
48
+ * `tests/installed-asset-roots.test.ts`.
37
49
  *
38
50
  * This is the discovery surface used by `findSkills`, flow discovery, and the
39
51
  * completion resolvers.
40
52
  *
53
+ * @param projectDir - Project directory whose local install root to include
54
+ * (default: `process.cwd()`).
41
55
  * @docLink cli/dev-guide#paths
42
56
  */
43
- export declare function aiResourceRoots(): string[];
57
+ export declare function aiResourceRoots(projectDir?: string): string[];
44
58
  //# sourceMappingURL=paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../cli/src/paths.ts"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAiC,CAAC;AAEvE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,MACgD,CAAC;AAE5E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAM1C"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../cli/src/paths.ts"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,IAAiC,CAAC;AAEvE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,MACgD,CAAC;AAiB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAAC,UAAU,GAAE,MAAsB,GAAG,MAAM,EAAE,CAU5E"}
@@ -1,4 +1,4 @@
1
- export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-BEA7RXI3.js';
1
+ export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-E5S2WGTS.js';
2
2
  export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-ZNIHTT22.js';
3
3
  import '../chunk-KPZZI2KG.js';
4
4
  import '../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../chunk-GAH4YRCI.js';
8
8
  import '../chunk-VT6HDD2L.js';
9
9
  import '../chunk-6E6PKKAD.js';
10
10
  import '../chunk-IFGTRL2I.js';
11
- import '../chunk-I7S6DFRU.js';
11
+ import '../chunk-5FLEP4X6.js';
12
12
  import '../chunk-B4J6TV4G.js';
13
- import '../chunk-FLBDLF3I.js';
14
- import '../chunk-F5VREBV2.js';
13
+ import '../chunk-HGFKNJA5.js';
14
+ import '../chunk-ELPR5XBG.js';
15
15
  import '../chunk-P43HBWKK.js';
16
16
  import '../chunk-F3HNW354.js';
17
17
  import '../chunk-K5GBV4SA.js';
@@ -1,5 +1,5 @@
1
- import { logErr, logOk, logInfo } from './chunk-XVIFPGYH.js';
2
- import './chunk-HCNVX34E.js';
1
+ import { logErr, logOk, logInfo } from './chunk-3KEJ2HJY.js';
2
+ import './chunk-OD3ABXUO.js';
3
3
  import './chunk-3HVASHBF.js';
4
4
  import './chunk-NU4E7C5I.js';
5
5
  import './chunk-UKJMQZV6.js';
@@ -86,5 +86,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
86
86
  }
87
87
 
88
88
  export { ensureSourcesCloned };
89
- //# sourceMappingURL=ensure-sources-IM3JMW2L.js.map
90
- //# sourceMappingURL=ensure-sources-IM3JMW2L.js.map
89
+ //# sourceMappingURL=ensure-sources-L2276FYP.js.map
90
+ //# sourceMappingURL=ensure-sources-L2276FYP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAMA,SAAS,kBAAA,CAAmB,KAAA,EAAoB,KAAA,EAAgB,MAAA,EAA4B;AAC1F,EAAA,MAAM,GAAA,GAAM,cAAA,CAAe,KAAA,CAAM,GAAG,CAAA;AACpC,EAAA,MAAM,IAAA,GAAO,eAAA,CAAgB,KAAA,CAAM,GAAG,CAAA;AACtC,EAAA,MAAM,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A4B,EAAC,EACf;AACd,EAAA,MAAM,MAAA,GAAuB,EAAE,MAAA,EAAQ,EAAC,EAAG,QAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAClE,EAAA,MAAM,QAAA,GAAgB,IAAA,CAAA,IAAA,CAAK,UAAA,EAAY,aAAa,CAAA;AACpD,EAAA,IAAI,CAAC,UAAA,CAAW,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-IM3JMW2L.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
1
+ {"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAMA,SAAS,kBAAA,CAAmB,KAAA,EAAoB,KAAA,EAAgB,MAAA,EAA4B;AAC1F,EAAA,MAAM,GAAA,GAAM,cAAA,CAAe,KAAA,CAAM,GAAG,CAAA;AACpC,EAAA,MAAM,IAAA,GAAO,eAAA,CAAgB,KAAA,CAAM,GAAG,CAAA;AACtC,EAAA,MAAM,IAAA,GAAO,gBAAgB,GAAG,CAAA;AAChC,EAAA,IAAI,UAAA,CAAW,IAAI,CAAA,EAAG;AACpB,IAAA,MAAA,CAAO,MAAA,CAAO,KAAK,IAAI,CAAA;AACvB,IAAA;AAAA,EACF;AACA,EAAA,SAAA,CAAe,aAAQ,IAAI,CAAA,EAAG,EAAE,S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IAAI,CAAC,UAAA,CAAW,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-L2276FYP.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
@@ -1,4 +1,4 @@
1
- export { BoxConnector, createConnector4 as createConnector } from '../../chunk-BEA7RXI3.js';
1
+ export { BoxConnector, createConnector4 as createConnector } from '../../chunk-E5S2WGTS.js';
2
2
  import '../../chunk-ZNIHTT22.js';
3
3
  import '../../chunk-KPZZI2KG.js';
4
4
  import '../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../chunk-GAH4YRCI.js';
8
8
  import '../../chunk-VT6HDD2L.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
10
  import '../../chunk-IFGTRL2I.js';
11
- import '../../chunk-I7S6DFRU.js';
11
+ import '../../chunk-5FLEP4X6.js';
12
12
  import '../../chunk-B4J6TV4G.js';
13
- import '../../chunk-FLBDLF3I.js';
14
- import '../../chunk-F5VREBV2.js';
13
+ import '../../chunk-HGFKNJA5.js';
14
+ import '../../chunk-ELPR5XBG.js';
15
15
  import '../../chunk-P43HBWKK.js';
16
16
  import '../../chunk-F3HNW354.js';
17
17
  import '../../chunk-K5GBV4SA.js';
@@ -1,4 +1,4 @@
1
- export { DeployConnector, createConnector2 as createConnector } from '../../chunk-BEA7RXI3.js';
1
+ export { DeployConnector, createConnector2 as createConnector } from '../../chunk-E5S2WGTS.js';
2
2
  import '../../chunk-ZNIHTT22.js';
3
3
  import '../../chunk-KPZZI2KG.js';
4
4
  import '../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../chunk-GAH4YRCI.js';
8
8
  import '../../chunk-VT6HDD2L.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
10
  import '../../chunk-IFGTRL2I.js';
11
- import '../../chunk-I7S6DFRU.js';
11
+ import '../../chunk-5FLEP4X6.js';
12
12
  import '../../chunk-B4J6TV4G.js';
13
- import '../../chunk-FLBDLF3I.js';
14
- import '../../chunk-F5VREBV2.js';
13
+ import '../../chunk-HGFKNJA5.js';
14
+ import '../../chunk-ELPR5XBG.js';
15
15
  import '../../chunk-P43HBWKK.js';
16
16
  import '../../chunk-F3HNW354.js';
17
17
  import '../../chunk-K5GBV4SA.js';
@@ -1,4 +1,4 @@
1
- export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-BEA7RXI3.js';
1
+ export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-E5S2WGTS.js';
2
2
  import '../../chunk-ZNIHTT22.js';
3
3
  import '../../chunk-KPZZI2KG.js';
4
4
  import '../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../chunk-GAH4YRCI.js';
8
8
  import '../../chunk-VT6HDD2L.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
10
  import '../../chunk-IFGTRL2I.js';
11
- import '../../chunk-I7S6DFRU.js';
11
+ import '../../chunk-5FLEP4X6.js';
12
12
  import '../../chunk-B4J6TV4G.js';
13
- import '../../chunk-FLBDLF3I.js';
14
- import '../../chunk-F5VREBV2.js';
13
+ import '../../chunk-HGFKNJA5.js';
14
+ import '../../chunk-ELPR5XBG.js';
15
15
  import '../../chunk-P43HBWKK.js';
16
16
  import '../../chunk-F3HNW354.js';
17
17
  import '../../chunk-K5GBV4SA.js';
@@ -109,13 +109,26 @@ built-in tier. `default` and an absent tier fall back to the session model;
109
109
  cost or quality request is never silently served by a different model. With no declared output contract the response is
110
110
  prose, carried verbatim as the summary; with one declared, the response is
111
111
  additionally parsed as JSON into `fields` and validated through the same
112
- `validateConsumedNodeOutput` seam every other kind uses. The reply stays in
113
- `summary` either way `fields` is reachable only through an expression
114
- binding, while `build_handoff` shows a downstream agent a predecessor's
115
- summary/artifacts/concerns and never its `fields`, so replacing the summary
116
- would make a declared output invisible to any consumer that reads it as
117
- context rather than binding it. There is no
118
- corrective reprompt a subprompt has no conversation to reprompt in so a
112
+ `validateConsumedNodeOutput` seam every other kind uses. The parsed payload is
113
+ the whole reply (a code fence around all of it is stripped) or, when that does
114
+ not parse, the reply's sole bracket structure so a narrated
115
+ `Here's the classification:\n{…}` still lands in `fields`. Extraction is
116
+ fail-closed and never repairs: two candidate values, a stray or unbalanced
117
+ bracket, an unterminated structure, a candidate embedded mid-sentence, or a
118
+ candidate that does not itself parse all keep the loud node failure rather than
119
+ guessing, since a misparse is worse than a clean failure. That guarantee is
120
+ **structural, not semantic** — a refusal whose shape is one JSON value with
121
+ prose around it (a model that answers "I need more information" and prints the
122
+ schema on its own line) is still accepted, because telling it from a real answer
123
+ needs the prose read, which this deliberately does not do; a declared contract's
124
+ validation is the layer that catches it. The reply stays in
125
+ `summary` either way — `build_handoff` does render a predecessor's fields, but
126
+ only the ones its `contract.output.fields` declares, capped at 500 characters
127
+ per value and 20 fields per predecessor, and a contract without `properties`
128
+ publishes none at all. A boilerplate summary would leave every one of those
129
+ cases with a completed node and no answer for a consumer that reads it as
130
+ context rather than binding it.
131
+ There is no corrective reprompt — a subprompt has no conversation to reprompt in — so a
119
132
  parse or validation failure is an ordinary node failure that consumes
120
133
  `control.retries`, never fabricated output. `control.optional`,
121
134
  `control.retries`, and `control.timeoutSec` reuse the identical
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAKpB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAIV,aAAa,EAUd,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAKL,KAAK,cAAc,EAKnB,UAAU,EAKX,MAAM,mBAAmB,CAAC;AA2B3B,OAAO,KAAK,EAAyB,YAAY,EAAsB,MAAM,oBAAoB,CAAC;AAClG,OAAO,KAAK,EACV,4BAA4B,EAE5B,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAGL,K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AAC;IAIxE;;;;;;OAMG;IACG,6BAA6B,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;YAItE,0BAA0B;IAomBxC,8FAA8F;IAC9F,OAAO,CAAC,sBAAsB;IAgH9B,OAAO,CAAC,CAAC;IAIT;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAgDd;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAkEjB,OAAO,CAAC,cAAc;IAOtB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,kBAAkB;IAK1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,cAAc;IA+BtB;;;;;;;;;OASG;YACW,0BAA0B;IAsCxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,kBAAkB;IA4C1B;;OAEG;IACH,OAAO,CAAC,YAAY;CA+ErB;AAmYD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAE7C"}
@@ -1,4 +1,4 @@
1
- export { FlowAdapter, createConnector } from '../../../chunk-BEA7RXI3.js';
1
+ export { FlowAdapter, createConnector } from '../../../chunk-E5S2WGTS.js';
2
2
  import '../../../chunk-ZNIHTT22.js';
3
3
  import '../../../chunk-KPZZI2KG.js';
4
4
  import '../../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../../chunk-GAH4YRCI.js';
8
8
  import '../../../chunk-VT6HDD2L.js';
9
9
  import '../../../chunk-6E6PKKAD.js';
10
10
  import '../../../chunk-IFGTRL2I.js';
11
- export { isBlocking } from '../../../chunk-I7S6DFRU.js';
11
+ export { isBlocking } from '../../../chunk-5FLEP4X6.js';
12
12
  import '../../../chunk-B4J6TV4G.js';
13
- import '../../../chunk-FLBDLF3I.js';
14
- import '../../../chunk-F5VREBV2.js';
13
+ import '../../../chunk-HGFKNJA5.js';
14
+ import '../../../chunk-ELPR5XBG.js';
15
15
  import '../../../chunk-P43HBWKK.js';
16
16
  import '../../../chunk-F3HNW354.js';
17
17
  import '../../../chunk-K5GBV4SA.js';
@@ -9,5 +9,6 @@ export { flowKindProvider } from "./flow-kind-provider.js";
9
9
  export type { FlowManifest, ManifestValidationResult as FlowManifestValidationResult, } from "./flow-manifest.js";
10
10
  export { FlowManifestSchema, validateFlow, } from "./flow-manifest.js";
11
11
  export * from "./loader.js";
12
+ export * from "./node-shape.js";
12
13
  export * from "./types.js";
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,wBAAwB,IAAI,4BAA4B,GACzD,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EACV,YAAY,EACZ,wBAAwB,IAAI,4BAA4B,GACzD,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { FlowVersionNode } from "@skaile/workspaces/resolver";
1
2
  import type { FlowDefinition, FlowNode } from "./types.js";
2
3
  /** Returns whether a node is executable by the currently active agent-turn runtime. */
3
4
  export declare function isAgentNode(node: FlowNode): boolean;
@@ -53,6 +54,61 @@ export declare function nodeSkillId(node: FlowNode): string;
53
54
  export declare function nodeLabel(node: FlowNode): string;
54
55
  /** Returns strict v2 run assets or the equivalent legacy declarations. */
55
56
  export declare function nodeAssets(node: FlowNode): string[];
57
+ /**
58
+ * Returns what executes the node, for display and grouping.
59
+ *
60
+ * Strict v2 `run.kind` wins, and every node reaching this through `loadFlow` has
61
+ * one — normalization erases `type`. The legacy fallback only fires for a node
62
+ * handed over un-normalized, so the result is not restricted to the strict v2
63
+ * kind union. Never empty, so it is safe to render directly.
64
+ *
65
+ * A normalized legacy node reports the placeholder kind it became, not the kind
66
+ * it was authored as; pair with {@link nodeIsInert} before showing it to a human.
67
+ */
68
+ export declare function nodeRunKind(node: FlowNode): string;
69
+ /**
70
+ * Returns whether the node is a permanently-blocked placeholder rather than a
71
+ * step that can ever run.
72
+ *
73
+ * `normalizeV1` rewrites every non-executable legacy node — canvas `group`
74
+ * containers, authored `gate`s, unknown kinds — into a router carrying
75
+ * `contract.requires: [{ expr: "false" }]` and `control.optional: true`. Both are
76
+ * normalization artifacts: the row is neither a routing step the author wrote nor
77
+ * a step they marked skippable, so rendering either verbatim states something the
78
+ * flow does not say. The false precondition is the surviving signal, and
79
+ * permanent blocking is already its engine semantics.
80
+ */
81
+ export declare function nodeIsInert(node: FlowNode): boolean;
82
+ /**
83
+ * Returns the node's first `skill:` asset reference, `#`-range included, or
84
+ * `undefined` when the node requires no skill.
85
+ *
86
+ * Reads through {@link nodeAssets}, so a legacy `type: "skill"` node yields a
87
+ * bare `skill:<id>` — the legacy pin lives in `data.version`, never in the ref.
88
+ * Use {@link nodeSkillVersionPins} to read the pin itself.
89
+ */
90
+ export declare function nodeSkillAsset(node: FlowNode): string | undefined;
91
+ /**
92
+ * Returns every skill-version pin the node declares, ready for `validateFlowVersions`.
93
+ *
94
+ * Strict v2 pins ride in `run.assets` as `skill:<identity>#<range>`; the legacy
95
+ * `type: "skill"` + `data.version` shape is only consulted when no asset pin is
96
+ * present. A skill requirement without a range is *not* a version claim and
97
+ * yields nothing — returning it would make every unpinned node fail the check.
98
+ *
99
+ * Gotcha: refs are parsed by hand, not through `parseAssetRef`, which throws on
100
+ * an unscoped ref like `skill:analyze#^9.0.0`. `skillId` is the segment after the
101
+ * last `/`, so a scoped `skill:@pub/name#range` pins `name`.
102
+ *
103
+ * The legacy branch is unreachable for anything loaded through `loadFlow`, which
104
+ * normalizes `type`/`data` away. `normalizeV1` can only rebuild a `skill:` ref
105
+ * when the node names a skill, so a legacy node pinning `data.version` with no
106
+ * `data.skill` declares no pin at all once normalized — the same thing `skaile
107
+ * run` has always concluded for it.
108
+ */
109
+ export declare function nodeSkillVersionPins(node: FlowNode): FlowVersionNode[];
110
+ /** Every skill-version pin declared across a flow, in node-definition order. */
111
+ export declare function flowSkillVersionPins(flow: FlowDefinition): FlowVersionNode[];
56
112
  /** Returns the binding values already supplied at the node boundary. */
57
113
  export declare function nodeBindings(node: FlowNode): Record<string, unknown>;
58
114
  /** Returns the first-class instruction for a strict v2 agent or subprompt node. */
@@ -1 +1 @@
1
- {"version":3,"file":"node-shape.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/engine/node-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3D,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEnD;AAED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;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,GAAG,eAAe,EAAE,CAuBtE;AAED,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,eAAe,EAAE,CAE5E;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGpE;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAIlE;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1E"}
@@ -1,6 +1,6 @@
1
- export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, flowFileCandidates, flowKindProvider, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-I7S6DFRU.js';
1
+ export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, flowFileCandidates, flowKindProvider, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-5FLEP4X6.js';
2
2
  import '../../../chunk-B4J6TV4G.js';
3
- import '../../../chunk-F5VREBV2.js';
3
+ export { deterministicNodeKindLabel, flowDefaults, flowSkillVersionPins, isActiveRuntimeNode, isAgentNode, isCheckNode, isExecutableNode, isFunctionNode, isGateNode, isRouterNode, isSubFlowNode, isSubpromptNode, nodeAssets, nodeBindings, nodeInstruction, nodeIsInert, nodeIsOptional, nodeLabel, nodeRequiresApproval, nodeRunKind, nodeSkillAsset, nodeSkillId, nodeSkillVersionPins } from '../../../chunk-ELPR5XBG.js';
4
4
  import '../../../chunk-P43HBWKK.js';
5
5
  import '../../../chunk-F3HNW354.js';
6
6
  import '../../../chunk-K5GBV4SA.js';
@@ -95,6 +95,10 @@ export declare function buildOrchestratorPrompt(flowDef: FlowDefinition, state:
95
95
  * for getting parseable JSON back; a malformed or non-conforming reply is an
96
96
  * ordinary node failure handled by the caller, never retried in-band here.
97
97
  *
98
+ * The object-only constraint is therefore stated twice, before and after the
99
+ * schema: the serialized schema is a large blob, so a directive placed only
100
+ * ahead of it is not the last thing the model reads.
101
+ *
98
102
  * @docLink packages/factory-assets/flow#render-subprompt-prompt
99
103
  */
100
104
  export declare function renderSubpromptPrompt(instruction: string, outputSchema: Record<string, unknown> | undefined): string;
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-fragments.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/prompt-fragments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAUxD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IACE,IAAI,EAAE,mBAAmB,CAA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,GAAG,SAAS,GAChD,MAAM,CAGR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAmB/D"}
@@ -1,5 +1,5 @@
1
- export { buildOrchestratorPrompt, describeStimulus, renderStimulusPrompt, renderSubpromptPrompt } from '../../../chunk-FLBDLF3I.js';
2
- import '../../../chunk-F5VREBV2.js';
1
+ export { buildOrchestratorPrompt, describeStimulus, renderStimulusPrompt, renderSubpromptPrompt } from '../../../chunk-HGFKNJA5.js';
2
+ import '../../../chunk-ELPR5XBG.js';
3
3
  import '../../../chunk-NSBPE2FW.js';
4
4
  //# sourceMappingURL=prompt-fragments.js.map
5
5
  //# sourceMappingURL=prompt-fragments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-flow.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/run-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AA6C5D,oFAAoF;AACpF,MAAM,MAAM,YAAY,GAAG,OAAO,2BAA2B,EAAE,YAAY,CAAC;AAmB5E;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+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;GAUG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA+W7D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDnE;AA0CD,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAuC1E"}
@@ -1,7 +1,7 @@
1
- export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-BKUANJB7.js';
1
+ export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-BOH6AG6Q.js';
2
2
  import '../../../chunk-4R6DROGN.js';
3
3
  import '../../../chunk-CZZRDYT4.js';
4
- import '../../../chunk-BEA7RXI3.js';
4
+ import '../../../chunk-E5S2WGTS.js';
5
5
  import '../../../chunk-ZNIHTT22.js';
6
6
  import '../../../chunk-KPZZI2KG.js';
7
7
  import '../../../chunk-46LE3GNY.js';
@@ -11,10 +11,10 @@ import '../../../chunk-GAH4YRCI.js';
11
11
  import '../../../chunk-VT6HDD2L.js';
12
12
  import '../../../chunk-6E6PKKAD.js';
13
13
  import '../../../chunk-IFGTRL2I.js';
14
- import '../../../chunk-I7S6DFRU.js';
14
+ import '../../../chunk-5FLEP4X6.js';
15
15
  import '../../../chunk-B4J6TV4G.js';
16
- import '../../../chunk-FLBDLF3I.js';
17
- import '../../../chunk-F5VREBV2.js';
16
+ import '../../../chunk-HGFKNJA5.js';
17
+ import '../../../chunk-ELPR5XBG.js';
18
18
  import '../../../chunk-P43HBWKK.js';
19
19
  import '../../../chunk-F3HNW354.js';
20
20
  import '../../../chunk-K5GBV4SA.js';
@@ -1,4 +1,4 @@
1
- export { FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, createConnector } from '../../chunk-BEA7RXI3.js';
1
+ export { FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, createConnector } from '../../chunk-E5S2WGTS.js';
2
2
  import '../../chunk-ZNIHTT22.js';
3
3
  import '../../chunk-KPZZI2KG.js';
4
4
  import '../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../chunk-GAH4YRCI.js';
8
8
  import '../../chunk-VT6HDD2L.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
10
  import '../../chunk-IFGTRL2I.js';
11
- import '../../chunk-I7S6DFRU.js';
11
+ import '../../chunk-5FLEP4X6.js';
12
12
  import '../../chunk-B4J6TV4G.js';
13
- import '../../chunk-FLBDLF3I.js';
14
- import '../../chunk-F5VREBV2.js';
13
+ import '../../chunk-HGFKNJA5.js';
14
+ import '../../chunk-ELPR5XBG.js';
15
15
  import '../../chunk-P43HBWKK.js';
16
16
  import '../../chunk-F3HNW354.js';
17
17
  import '../../chunk-K5GBV4SA.js';
@@ -1,4 +1,4 @@
1
- export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-BEA7RXI3.js';
1
+ export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-E5S2WGTS.js';
2
2
  import '../../chunk-ZNIHTT22.js';
3
3
  import '../../chunk-KPZZI2KG.js';
4
4
  import '../../chunk-46LE3GNY.js';
@@ -8,10 +8,10 @@ import '../../chunk-GAH4YRCI.js';
8
8
  import '../../chunk-VT6HDD2L.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
10
  import '../../chunk-IFGTRL2I.js';
11
- import '../../chunk-I7S6DFRU.js';
11
+ import '../../chunk-5FLEP4X6.js';
12
12
  import '../../chunk-B4J6TV4G.js';
13
- import '../../chunk-FLBDLF3I.js';
14
- import '../../chunk-F5VREBV2.js';
13
+ import '../../chunk-HGFKNJA5.js';
14
+ import '../../chunk-ELPR5XBG.js';
15
15
  import '../../chunk-P43HBWKK.js';
16
16
  import '../../chunk-F3HNW354.js';
17
17
  import '../../chunk-K5GBV4SA.js';