@ordewell/core 0.9.0 → 0.10.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 (63) hide show
  1. package/dist/{IFileSystem-DpaaFdit.d.ts → IFileSystem-BCJBHFwB.d.ts} +3 -1
  2. package/dist/{IFileSystem-_m7HdoxJ.d.mts → IFileSystem-Bj6fy1cG.d.mts} +3 -1
  3. package/dist/{IRunner-BiQio8gJ.d.ts → IRunner-C7_SSpzG.d.ts} +614 -77
  4. package/dist/{IRunner-CxiymkP_.d.mts → IRunner-hWAJC4hg.d.mts} +614 -77
  5. package/dist/ModeResolver-m1d8Cb-j.d.mts +35 -0
  6. package/dist/ModeResolver-u5ZhRC8x.d.ts +35 -0
  7. package/dist/{Task-1Q19y7sZ.d.mts → Task-CxwnCJLi.d.mts} +346 -127
  8. package/dist/{Task-1Q19y7sZ.d.ts → Task-CxwnCJLi.d.ts} +346 -127
  9. package/dist/{chunk-UUU46PVQ.mjs → chunk-2IIRSBEQ.mjs} +109 -142
  10. package/dist/chunk-2IIRSBEQ.mjs.map +1 -0
  11. package/dist/{chunk-QUARDKVT.mjs → chunk-CH5IGWFS.mjs} +546 -967
  12. package/dist/chunk-CH5IGWFS.mjs.map +1 -0
  13. package/dist/chunk-DJAPDO6E.mjs +1358 -0
  14. package/dist/chunk-DJAPDO6E.mjs.map +1 -0
  15. package/dist/chunk-DNFT4SQG.mjs +97 -0
  16. package/dist/chunk-DNFT4SQG.mjs.map +1 -0
  17. package/dist/index.d.mts +3204 -3926
  18. package/dist/index.d.ts +3204 -3926
  19. package/dist/index.js +22283 -16472
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +20220 -14690
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/parsing.d.mts +55 -3
  24. package/dist/parsing.d.ts +55 -3
  25. package/dist/parsing.js +311 -124
  26. package/dist/parsing.js.map +1 -1
  27. package/dist/parsing.mjs +86 -6
  28. package/dist/parsing.mjs.map +1 -1
  29. package/dist/plan-utils-B6yJdpgi.d.ts +2902 -0
  30. package/dist/plan-utils-CKXdD1AD.d.mts +2902 -0
  31. package/dist/plan-utils.d.mts +4 -5
  32. package/dist/plan-utils.d.ts +4 -5
  33. package/dist/plan-utils.js +471 -86
  34. package/dist/plan-utils.js.map +1 -1
  35. package/dist/plan-utils.mjs +68 -19
  36. package/dist/testing.d.mts +22 -4
  37. package/dist/testing.d.ts +22 -4
  38. package/dist/testing.js +46 -9
  39. package/dist/testing.js.map +1 -1
  40. package/dist/testing.mjs +47 -11
  41. package/dist/testing.mjs.map +1 -1
  42. package/package.json +2 -10
  43. package/skills/tdd/SKILL.md +0 -1
  44. package/dist/ModeResolver-DE-o2lRF.d.mts +0 -48
  45. package/dist/ModeResolver-EWlpmVAy.d.ts +0 -48
  46. package/dist/chunk-2M4X3VB7.mjs +0 -432
  47. package/dist/chunk-2M4X3VB7.mjs.map +0 -1
  48. package/dist/chunk-H5O74L77.mjs +0 -185
  49. package/dist/chunk-H5O74L77.mjs.map +0 -1
  50. package/dist/chunk-QUARDKVT.mjs.map +0 -1
  51. package/dist/chunk-UUU46PVQ.mjs.map +0 -1
  52. package/dist/chunk-V3JHS7AX.mjs +0 -27
  53. package/dist/chunk-V3JHS7AX.mjs.map +0 -1
  54. package/dist/order-labels.d.mts +0 -30
  55. package/dist/order-labels.d.ts +0 -30
  56. package/dist/order-labels.js +0 -54
  57. package/dist/order-labels.js.map +0 -1
  58. package/dist/order-labels.mjs +0 -13
  59. package/dist/order-labels.mjs.map +0 -1
  60. package/dist/parsing-CZdp2p_n.d.ts +0 -154
  61. package/dist/parsing-GgUJoYKs.d.mts +0 -154
  62. package/dist/plan-utils-6rUr7ZOx.d.ts +0 -1222
  63. package/dist/plan-utils-P3PIEwNa.d.mts +0 -1222
@@ -0,0 +1,35 @@
1
+ import { $ as RunnerId } from './Task-CxwnCJLi.mjs';
2
+
3
+ interface RunnerModeInfo {
4
+ id: string;
5
+ label: string;
6
+ description: string;
7
+ autonomous?: boolean;
8
+ safe?: boolean;
9
+ readOnly?: boolean;
10
+ sandboxed?: boolean;
11
+ /** Why this mode cannot be used on this host (a failed probe); such a mode is shown, never assigned. */
12
+ unavailable?: string;
13
+ }
14
+ /** The slice of RunnerRegistry this module needs — structural, so nothing here depends on the manifest layer. */
15
+ interface ManifestLookup {
16
+ getManifest(runner: RunnerId): {
17
+ modes?: RunnerModeInfo[];
18
+ } | undefined;
19
+ }
20
+ /**
21
+ * A runner's modes are declared only in its manifest, never through a service,
22
+ * so every caller that needs them fuses registry and runner list by hand. This
23
+ * is that fusion, in one place: the planner prompt, the mode pickers on each
24
+ * surface, and the runner-change retarget all read modes the same way.
25
+ *
26
+ * A runner with no modes maps to `[]` rather than being dropped — callers
27
+ * distinguish "declares no modes" from "not asked about".
28
+ */
29
+ declare function runnerModesFrom(registry: ManifestLookup, runners: RunnerId[]): Record<RunnerId, RunnerModeInfo[]>;
30
+ /** The user-facing name of the `autonomousMode` boolean's two states. */
31
+ declare function autonomyLevelLabel(autonomous: boolean): 'Full' | 'Guarded';
32
+ /** `full`/`guarded` name the levels; `on`/`off` and `auto` are older words for them. Null for anything else. */
33
+ declare function parseAutonomyLevel(arg: string | undefined): boolean | null;
34
+
35
+ export { type RunnerModeInfo as R, autonomyLevelLabel as a, parseAutonomyLevel as p, runnerModesFrom as r };
@@ -0,0 +1,35 @@
1
+ import { $ as RunnerId } from './Task-CxwnCJLi.js';
2
+
3
+ interface RunnerModeInfo {
4
+ id: string;
5
+ label: string;
6
+ description: string;
7
+ autonomous?: boolean;
8
+ safe?: boolean;
9
+ readOnly?: boolean;
10
+ sandboxed?: boolean;
11
+ /** Why this mode cannot be used on this host (a failed probe); such a mode is shown, never assigned. */
12
+ unavailable?: string;
13
+ }
14
+ /** The slice of RunnerRegistry this module needs — structural, so nothing here depends on the manifest layer. */
15
+ interface ManifestLookup {
16
+ getManifest(runner: RunnerId): {
17
+ modes?: RunnerModeInfo[];
18
+ } | undefined;
19
+ }
20
+ /**
21
+ * A runner's modes are declared only in its manifest, never through a service,
22
+ * so every caller that needs them fuses registry and runner list by hand. This
23
+ * is that fusion, in one place: the planner prompt, the mode pickers on each
24
+ * surface, and the runner-change retarget all read modes the same way.
25
+ *
26
+ * A runner with no modes maps to `[]` rather than being dropped — callers
27
+ * distinguish "declares no modes" from "not asked about".
28
+ */
29
+ declare function runnerModesFrom(registry: ManifestLookup, runners: RunnerId[]): Record<RunnerId, RunnerModeInfo[]>;
30
+ /** The user-facing name of the `autonomousMode` boolean's two states. */
31
+ declare function autonomyLevelLabel(autonomous: boolean): 'Full' | 'Guarded';
32
+ /** `full`/`guarded` name the levels; `on`/`off` and `auto` are older words for them. Null for anything else. */
33
+ declare function parseAutonomyLevel(arg: string | undefined): boolean | null;
34
+
35
+ export { type RunnerModeInfo as R, autonomyLevelLabel as a, parseAutonomyLevel as p, runnerModesFrom as r };