@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.
- package/dist/{IFileSystem-DpaaFdit.d.ts → IFileSystem-BCJBHFwB.d.ts} +3 -1
- package/dist/{IFileSystem-_m7HdoxJ.d.mts → IFileSystem-Bj6fy1cG.d.mts} +3 -1
- package/dist/{IRunner-BiQio8gJ.d.ts → IRunner-C7_SSpzG.d.ts} +614 -77
- package/dist/{IRunner-CxiymkP_.d.mts → IRunner-hWAJC4hg.d.mts} +614 -77
- package/dist/ModeResolver-m1d8Cb-j.d.mts +35 -0
- package/dist/ModeResolver-u5ZhRC8x.d.ts +35 -0
- package/dist/{Task-1Q19y7sZ.d.mts → Task-CxwnCJLi.d.mts} +346 -127
- package/dist/{Task-1Q19y7sZ.d.ts → Task-CxwnCJLi.d.ts} +346 -127
- package/dist/{chunk-UUU46PVQ.mjs → chunk-2IIRSBEQ.mjs} +109 -142
- package/dist/chunk-2IIRSBEQ.mjs.map +1 -0
- package/dist/{chunk-QUARDKVT.mjs → chunk-CH5IGWFS.mjs} +546 -967
- package/dist/chunk-CH5IGWFS.mjs.map +1 -0
- package/dist/chunk-DJAPDO6E.mjs +1358 -0
- package/dist/chunk-DJAPDO6E.mjs.map +1 -0
- package/dist/chunk-DNFT4SQG.mjs +97 -0
- package/dist/chunk-DNFT4SQG.mjs.map +1 -0
- package/dist/index.d.mts +3204 -3926
- package/dist/index.d.ts +3204 -3926
- package/dist/index.js +22283 -16472
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20220 -14690
- package/dist/index.mjs.map +1 -1
- package/dist/parsing.d.mts +55 -3
- package/dist/parsing.d.ts +55 -3
- package/dist/parsing.js +311 -124
- package/dist/parsing.js.map +1 -1
- package/dist/parsing.mjs +86 -6
- package/dist/parsing.mjs.map +1 -1
- package/dist/plan-utils-B6yJdpgi.d.ts +2902 -0
- package/dist/plan-utils-CKXdD1AD.d.mts +2902 -0
- package/dist/plan-utils.d.mts +4 -5
- package/dist/plan-utils.d.ts +4 -5
- package/dist/plan-utils.js +471 -86
- package/dist/plan-utils.js.map +1 -1
- package/dist/plan-utils.mjs +68 -19
- package/dist/testing.d.mts +22 -4
- package/dist/testing.d.ts +22 -4
- package/dist/testing.js +46 -9
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +47 -11
- package/dist/testing.mjs.map +1 -1
- package/package.json +2 -10
- package/skills/tdd/SKILL.md +0 -1
- package/dist/ModeResolver-DE-o2lRF.d.mts +0 -48
- package/dist/ModeResolver-EWlpmVAy.d.ts +0 -48
- package/dist/chunk-2M4X3VB7.mjs +0 -432
- package/dist/chunk-2M4X3VB7.mjs.map +0 -1
- package/dist/chunk-H5O74L77.mjs +0 -185
- package/dist/chunk-H5O74L77.mjs.map +0 -1
- package/dist/chunk-QUARDKVT.mjs.map +0 -1
- package/dist/chunk-UUU46PVQ.mjs.map +0 -1
- package/dist/chunk-V3JHS7AX.mjs +0 -27
- package/dist/chunk-V3JHS7AX.mjs.map +0 -1
- package/dist/order-labels.d.mts +0 -30
- package/dist/order-labels.d.ts +0 -30
- package/dist/order-labels.js +0 -54
- package/dist/order-labels.js.map +0 -1
- package/dist/order-labels.mjs +0 -13
- package/dist/order-labels.mjs.map +0 -1
- package/dist/parsing-CZdp2p_n.d.ts +0 -154
- package/dist/parsing-GgUJoYKs.d.mts +0 -154
- package/dist/plan-utils-6rUr7ZOx.d.ts +0 -1222
- 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 };
|