@openrig/cli 0.3.1 → 0.3.2
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/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +2 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +36 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +66 -0
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/db/migrations/037_mission_control_actions.d.ts +5 -1
- package/daemon/dist/db/migrations/037_mission_control_actions.d.ts.map +1 -1
- package/daemon/dist/db/migrations/037_mission_control_actions.js +5 -1
- package/daemon/dist/db/migrations/037_mission_control_actions.js.map +1 -1
- package/daemon/dist/db/migrations/041_rig_policy.d.ts +32 -0
- package/daemon/dist/db/migrations/041_rig_policy.d.ts.map +1 -0
- package/daemon/dist/db/migrations/041_rig_policy.js +47 -0
- package/daemon/dist/db/migrations/041_rig_policy.js.map +1 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/agent-images/snapshot-capturer.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/snapshot-capturer.js +2 -1
- package/daemon/dist/domain/agent-images/snapshot-capturer.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +27 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +86 -6
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-agent-images-router.d.ts +95 -0
- package/daemon/dist/domain/bundle-agent-images-router.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-agent-images-router.js +140 -0
- package/daemon/dist/domain/bundle-agent-images-router.js.map +1 -0
- package/daemon/dist/domain/bundle-assembler.d.ts +18 -1
- package/daemon/dist/domain/bundle-assembler.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-assembler.js +11 -1
- package/daemon/dist/domain/bundle-assembler.js.map +1 -1
- package/daemon/dist/domain/bundle-audit.d.ts +89 -0
- package/daemon/dist/domain/bundle-audit.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-audit.js +87 -0
- package/daemon/dist/domain/bundle-audit.js.map +1 -0
- package/daemon/dist/domain/bundle-conflict-detector.d.ts +57 -0
- package/daemon/dist/domain/bundle-conflict-detector.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-conflict-detector.js +49 -0
- package/daemon/dist/domain/bundle-conflict-detector.js.map +1 -0
- package/daemon/dist/domain/bundle-context-packs-router.d.ts +100 -0
- package/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-context-packs-router.js +158 -0
- package/daemon/dist/domain/bundle-context-packs-router.js.map +1 -0
- package/daemon/dist/domain/bundle-plugins-router.d.ts +69 -0
- package/daemon/dist/domain/bundle-plugins-router.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-plugins-router.js +87 -0
- package/daemon/dist/domain/bundle-plugins-router.js.map +1 -0
- package/daemon/dist/domain/bundle-skills-router.d.ts +62 -0
- package/daemon/dist/domain/bundle-skills-router.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-skills-router.js +90 -0
- package/daemon/dist/domain/bundle-skills-router.js.map +1 -0
- package/daemon/dist/domain/bundle-types.d.ts +106 -0
- package/daemon/dist/domain/bundle-types.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-types.js +375 -0
- package/daemon/dist/domain/bundle-types.js.map +1 -1
- package/daemon/dist/domain/bundle-workflow-specs-router.d.ts +94 -0
- package/daemon/dist/domain/bundle-workflow-specs-router.d.ts.map +1 -0
- package/daemon/dist/domain/bundle-workflow-specs-router.js +144 -0
- package/daemon/dist/domain/bundle-workflow-specs-router.js.map +1 -0
- package/daemon/dist/domain/context-monitor.d.ts +5 -1
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +28 -15
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/graph-projection.d.ts +6 -0
- package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +6 -0
- package/daemon/dist/domain/graph-projection.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +7 -7
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +18 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +98 -0
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +12 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +25 -1
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.d.ts +16 -1
- package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
- package/daemon/dist/domain/pod-bundle-assembler.js +11 -1
- package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +10 -0
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +4 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +22 -0
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +57 -0
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +37 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +99 -2
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +4 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +16 -7
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/rig-policy/rig-policy-defaults.d.ts +48 -0
- package/daemon/dist/domain/rig-policy/rig-policy-defaults.d.ts.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-defaults.js +96 -0
- package/daemon/dist/domain/rig-policy/rig-policy-defaults.js.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-store.d.ts +46 -0
- package/daemon/dist/domain/rig-policy/rig-policy-store.d.ts.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-store.js +171 -0
- package/daemon/dist/domain/rig-policy/rig-policy-store.js.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-types.d.ts +145 -0
- package/daemon/dist/domain/rig-policy/rig-policy-types.d.ts.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-types.js +52 -0
- package/daemon/dist/domain/rig-policy/rig-policy-types.js.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-validator.d.ts +58 -0
- package/daemon/dist/domain/rig-policy/rig-policy-validator.d.ts.map +1 -0
- package/daemon/dist/domain/rig-policy/rig-policy-validator.js +211 -0
- package/daemon/dist/domain/rig-policy/rig-policy-validator.js.map +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +109 -18
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +79 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-activity-service.js +123 -0
- package/daemon/dist/domain/seat-activity-service.js.map +1 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts +12 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +23 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/spec-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-service.js +19 -0
- package/daemon/dist/domain/spec-library-service.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +79 -3
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +22 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +37 -0
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -0
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +156 -3
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/domain/workspace/workspace-doctor.d.ts +197 -0
- package/daemon/dist/domain/workspace/workspace-doctor.d.ts.map +1 -0
- package/daemon/dist/domain/workspace/workspace-doctor.js +448 -0
- package/daemon/dist/domain/workspace/workspace-doctor.js.map +1 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +11 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/bundles.d.ts.map +1 -1
- package/daemon/dist/routes/bundles.js +966 -7
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/config.d.ts.map +1 -1
- package/daemon/dist/routes/config.js +19 -2
- package/daemon/dist/routes/config.js.map +1 -1
- package/daemon/dist/routes/info.d.ts +3 -0
- package/daemon/dist/routes/info.d.ts.map +1 -0
- package/daemon/dist/routes/info.js +20 -0
- package/daemon/dist/routes/info.js.map +1 -0
- package/daemon/dist/routes/queue.d.ts +18 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +97 -5
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rig-policy.d.ts +9 -0
- package/daemon/dist/routes/rig-policy.d.ts.map +1 -0
- package/daemon/dist/routes/rig-policy.js +174 -0
- package/daemon/dist/routes/rig-policy.js.map +1 -0
- package/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/daemon/dist/routes/rigs.js +10 -2
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +26 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/up.d.ts +25 -0
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +70 -3
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workspace.d.ts.map +1 -1
- package/daemon/dist/routes/workspace.js +80 -1
- package/daemon/dist/routes/workspace.js.map +1 -1
- package/daemon/dist/server.d.ts +10 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +11 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +45 -4
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/specs/agents/orchestration/orchestrator/guidance/role.md +28 -4
- package/daemon/specs/agents/shared/skills/core/openrig-user/SKILL.md +285 -8
- package/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md +2 -2
- package/daemon/specs/rigs/launch/conveyor/rig.yaml +1 -1
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/bundle.d.ts.map +1 -1
- package/dist/commands/bundle.js +123 -2
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +40 -5
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +51 -8
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +6 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +103 -5
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig-policy.d.ts +48 -0
- package/dist/commands/rig-policy.d.ts.map +1 -0
- package/dist/commands/rig-policy.js +429 -0
- package/dist/commands/rig-policy.js.map +1 -0
- package/dist/commands/scope.d.ts +6 -0
- package/dist/commands/scope.d.ts.map +1 -0
- package/dist/commands/scope.js +659 -0
- package/dist/commands/scope.js.map +1 -0
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +47 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow.d.ts +9 -0
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +139 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/commands/workspace.d.ts +20 -0
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +138 -7
- package/dist/commands/workspace.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +25 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +33 -2
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/scope/dot-id.d.ts +43 -0
- package/dist/lib/scope/dot-id.d.ts.map +1 -0
- package/dist/lib/scope/dot-id.js +165 -0
- package/dist/lib/scope/dot-id.js.map +1 -0
- package/dist/lib/scope/scope-fs.d.ts +79 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -0
- package/dist/lib/scope/scope-fs.js +468 -0
- package/dist/lib/scope/scope-fs.js.map +1 -0
- package/dist/lib/scope/templates.d.ts +38 -0
- package/dist/lib/scope/templates.d.ts.map +1 -0
- package/dist/lib/scope/templates.js +109 -0
- package/dist/lib/scope/templates.js.map +1 -0
- package/dist/lib/scope/types.d.ts +61 -0
- package/dist/lib/scope/types.d.ts.map +1 -0
- package/dist/lib/scope/types.js +38 -0
- package/dist/lib/scope/types.js.map +1 -0
- package/dist/lib/scope-templates/backlog-deprecation.md +26 -0
- package/dist/lib/scope-templates/backlog-tech-debt.md +22 -0
- package/dist/lib/scope-templates/bug-fix.md +30 -0
- package/dist/lib/scope-templates/mission-notes.md +97 -0
- package/dist/lib/scope-templates/mission-placeholder.md +20 -0
- package/dist/lib/scope-templates/mission-release.md +25 -0
- package/dist/lib/scope-templates/placeholder.md +30 -0
- package/dist/lib/scope-templates/release-feature.md +26 -0
- package/dist/lib/scope-templates/research.md +22 -0
- package/package.json +2 -2
- package/ui/dist/assets/index-GjTxfi9S.js +547 -0
- package/ui/dist/index.html +1 -1
- package/ui/dist/assets/index-Rl3ZBrUg.js +0 -547
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** Scope tiers. v0 ships `mission` + `slice`; `project` and `sub-slice`
|
|
2
|
+
* exist in the grammar but have no CLI verbs yet. */
|
|
3
|
+
export type ScopeTier = "project" | "mission" | "slice" | "sub-slice";
|
|
4
|
+
/** Stable reference ID parts. `OPR.0.3.2.12` → project="OPR",
|
|
5
|
+
* version="0.3.2", n=12. Escape-band non-release missions look like
|
|
6
|
+
* `OPR.99.0.1` → version="99.0.1", n=undefined. */
|
|
7
|
+
export interface DotId {
|
|
8
|
+
project: string;
|
|
9
|
+
version: string;
|
|
10
|
+
n?: number;
|
|
11
|
+
m?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface MissionInfo {
|
|
14
|
+
/** Mission folder name (e.g., "release-0.3.2", "backlog"). */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Absolute path to the mission folder. */
|
|
17
|
+
absPath: string;
|
|
18
|
+
/** Path to the mission's README.md, if present. */
|
|
19
|
+
readmePath: string | null;
|
|
20
|
+
/** Parsed frontmatter from the README. */
|
|
21
|
+
frontmatter: Record<string, unknown>;
|
|
22
|
+
/** Minted dot-ID for this mission (read from frontmatter if present,
|
|
23
|
+
* otherwise inferred from the folder name pattern). */
|
|
24
|
+
id: string | null;
|
|
25
|
+
activeSliceCount: number;
|
|
26
|
+
closedSliceCount: number;
|
|
27
|
+
}
|
|
28
|
+
export interface SliceInfo {
|
|
29
|
+
name: string;
|
|
30
|
+
absPath: string;
|
|
31
|
+
readmePath: string | null;
|
|
32
|
+
frontmatter: Record<string, unknown>;
|
|
33
|
+
/** "NN-slug" → NN. */
|
|
34
|
+
nn: number | null;
|
|
35
|
+
/** "NN-slug" → slug. */
|
|
36
|
+
slug: string | null;
|
|
37
|
+
missionName: string;
|
|
38
|
+
/** Minted dot-ID, parent.NN form. */
|
|
39
|
+
id: string | null;
|
|
40
|
+
/** Frontmatter `status` field, lowercased. */
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
43
|
+
/** 3-part error shape per `building-agent-software` skill §3.6. */
|
|
44
|
+
export declare class ScopeCliError extends Error {
|
|
45
|
+
readonly fact: string;
|
|
46
|
+
readonly consequence: string;
|
|
47
|
+
readonly action: string;
|
|
48
|
+
constructor(opts: {
|
|
49
|
+
fact: string;
|
|
50
|
+
consequence: string;
|
|
51
|
+
action: string;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export type SliceState = "active" | "closed" | "shipped" | "all";
|
|
55
|
+
export type SliceTemplateKind = "placeholder" | "bug-fix" | "backlog-deprecation" | "backlog-tech-debt" | "release-feature" | "research";
|
|
56
|
+
export declare const SLICE_TEMPLATE_KINDS: ReadonlyArray<SliceTemplateKind>;
|
|
57
|
+
export type MissionTemplateKind = "placeholder" | "release";
|
|
58
|
+
export declare const MISSION_TEMPLATE_KINDS: ReadonlyArray<MissionTemplateKind>;
|
|
59
|
+
export type CloseReason = "wontfix" | "deferred" | "superseded" | "stale";
|
|
60
|
+
export declare const CLOSE_REASONS: ReadonlyArray<CloseReason>;
|
|
61
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/scope/types.ts"],"names":[],"mappings":"AAOA;sDACsD;AACtD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;AAEtE;;oDAEoD;AACpD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;4DACwD;IACxD,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,sBAAsB;IACtB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,wBAAwB;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,8CAA8C;IAC9C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,mEAAmE;AACnE,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CAOxE;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;AACjE,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,mBAAmB,GACnB,iBAAiB,GACjB,UAAU,CAAC;AACf,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,iBAAiB,CAOjE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,SAAS,CAAC;AAC5D,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,mBAAmB,CAGrE,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAC;AAC1E,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,WAAW,CAKpD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// release-0.3.2 slice 12 — scope CLI primitive types.
|
|
2
|
+
//
|
|
3
|
+
// Aligned with the substrate convention at
|
|
4
|
+
// `openrig-work/conventions/scope-and-versioning/README.md` (stage:
|
|
5
|
+
// provisional, authored 2026-05-15). The CLI mints stable dot-IDs
|
|
6
|
+
// into created mission/slice frontmatter per §1 of that convention.
|
|
7
|
+
/** 3-part error shape per `building-agent-software` skill §3.6. */
|
|
8
|
+
export class ScopeCliError extends Error {
|
|
9
|
+
fact;
|
|
10
|
+
consequence;
|
|
11
|
+
action;
|
|
12
|
+
constructor(opts) {
|
|
13
|
+
super(`${opts.fact}\n${opts.consequence}\n${opts.action}`);
|
|
14
|
+
this.name = "ScopeCliError";
|
|
15
|
+
this.fact = opts.fact;
|
|
16
|
+
this.consequence = opts.consequence;
|
|
17
|
+
this.action = opts.action;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export const SLICE_TEMPLATE_KINDS = [
|
|
21
|
+
"placeholder",
|
|
22
|
+
"bug-fix",
|
|
23
|
+
"backlog-deprecation",
|
|
24
|
+
"backlog-tech-debt",
|
|
25
|
+
"release-feature",
|
|
26
|
+
"research",
|
|
27
|
+
];
|
|
28
|
+
export const MISSION_TEMPLATE_KINDS = [
|
|
29
|
+
"placeholder",
|
|
30
|
+
"release",
|
|
31
|
+
];
|
|
32
|
+
export const CLOSE_REASONS = [
|
|
33
|
+
"wontfix",
|
|
34
|
+
"deferred",
|
|
35
|
+
"superseded",
|
|
36
|
+
"stale",
|
|
37
|
+
];
|
|
38
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/scope/types.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,EAAE;AACF,2CAA2C;AAC3C,oEAAoE;AACpE,kEAAkE;AAClE,oEAAoE;AAgDpE,mEAAmE;AACnE,MAAM,OAAO,aAAc,SAAQ,KAAK;IAC7B,IAAI,CAAS;IACb,WAAW,CAAS;IACpB,MAAM,CAAS;IACxB,YAAY,IAA2D;QACrE,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,CAAC;CACF;AAUD,MAAM,CAAC,MAAM,oBAAoB,GAAqC;IACpE,aAAa;IACb,SAAS;IACT,qBAAqB;IACrB,mBAAmB;IACnB,iBAAiB;IACjB,UAAU;CACX,CAAC;AAGF,MAAM,CAAC,MAAM,sBAAsB,GAAuC;IACxE,aAAa;IACb,SAAS;CACV,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAA+B;IACvD,SAAS;IACT,UAAU;IACV,YAAY;IACZ,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Target
|
|
13
|
+
|
|
14
|
+
[What is being deprecated]
|
|
15
|
+
|
|
16
|
+
## Current state
|
|
17
|
+
|
|
18
|
+
[How it works today; what depends on it]
|
|
19
|
+
|
|
20
|
+
## Migration
|
|
21
|
+
|
|
22
|
+
[Path off the deprecated thing]
|
|
23
|
+
|
|
24
|
+
## Removal
|
|
25
|
+
|
|
26
|
+
[When/how the deprecated thing gets deleted]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Current state
|
|
13
|
+
|
|
14
|
+
[How the code/system looks today]
|
|
15
|
+
|
|
16
|
+
## Cost
|
|
17
|
+
|
|
18
|
+
[What this debt costs us — surface friction, bug class, perf, etc]
|
|
19
|
+
|
|
20
|
+
## Proposal
|
|
21
|
+
|
|
22
|
+
[How to pay it down]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Repro
|
|
13
|
+
|
|
14
|
+
[Steps to reproduce]
|
|
15
|
+
|
|
16
|
+
## Expected
|
|
17
|
+
|
|
18
|
+
[Expected behavior]
|
|
19
|
+
|
|
20
|
+
## Actual
|
|
21
|
+
|
|
22
|
+
[Actual behavior]
|
|
23
|
+
|
|
24
|
+
## Impact
|
|
25
|
+
|
|
26
|
+
[Who is affected; severity]
|
|
27
|
+
|
|
28
|
+
## Fix proposal
|
|
29
|
+
|
|
30
|
+
[Optional: thinking on the fix]
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
mission: {{mission_id}}
|
|
3
|
+
name: {{mission_name}}
|
|
4
|
+
status: active
|
|
5
|
+
authored: {{created_date}}
|
|
6
|
+
last-updated: {{created_date}}
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Mission Notes — {{mission_name}}
|
|
10
|
+
|
|
11
|
+
> Read the frontmatter `last-updated` first. If stale relative to runtime,
|
|
12
|
+
> treat this file as `provisional` and re-verify before relying on it.
|
|
13
|
+
> Pointer-first by design — index durable canonical artifacts; don't duplicate
|
|
14
|
+
> them (duplication is the stale-breadcrumb failure mode this convention
|
|
15
|
+
> exists to kill).
|
|
16
|
+
|
|
17
|
+
## §1. Top-of-mind context
|
|
18
|
+
|
|
19
|
+
(Current most-load-bearing state — gates, open scope-decisions, in-flight
|
|
20
|
+
surprises. Updated by anyone when material changes. Keep to 5-15 lines.)
|
|
21
|
+
|
|
22
|
+
## §2. Active workstreams + drivers + tips
|
|
23
|
+
|
|
24
|
+
(Per-workstream rows. THIS SECTION IS THE MISSION CODEMAP. Each row:
|
|
25
|
+
state / driver / branch+tip-SHA / latest blocker or ACK.)
|
|
26
|
+
|
|
27
|
+
- (workstream-id) — state — driver — tip-SHA — blocker/ACK
|
|
28
|
+
|
|
29
|
+
## §3. Open scope-decisions
|
|
30
|
+
|
|
31
|
+
(Labeled gates the operator owns. Per gate: where the gate is, what's needed,
|
|
32
|
+
who routed.)
|
|
33
|
+
|
|
34
|
+
- OQ-1: (decision needed) — gate at <artifact-path> — surfaced by <seat>
|
|
35
|
+
|
|
36
|
+
## §4. Slice inventory
|
|
37
|
+
|
|
38
|
+
(Full table of slices on this mission.)
|
|
39
|
+
|
|
40
|
+
| # | slice | state | driver | blocker |
|
|
41
|
+
|---|---|---|---|---|
|
|
42
|
+
|
|
43
|
+
## §5. Pending dispatches
|
|
44
|
+
|
|
45
|
+
(Next-go items waiting on driver availability or convergence. Immediately-ready
|
|
46
|
+
set, not full backlog.)
|
|
47
|
+
|
|
48
|
+
## §6. Ledgers
|
|
49
|
+
|
|
50
|
+
(Mission-specific shared ledgers: release version + tag, SC counts, cumulative
|
|
51
|
+
deltas, etc.)
|
|
52
|
+
|
|
53
|
+
## §7. Banked memories that apply here
|
|
54
|
+
|
|
55
|
+
(Bulleted: banked-feedback / banked-project memories load-bearing on restore
|
|
56
|
+
for this mission. Ones learned during this mission go into the same list.)
|
|
57
|
+
|
|
58
|
+
## §8. Convention pointers
|
|
59
|
+
|
|
60
|
+
(Which banked conventions this mission inherits. Cross-reference each by path.
|
|
61
|
+
This section is the principles/conventions inheritance surface for the mission.)
|
|
62
|
+
|
|
63
|
+
- `conventions/mission-notes/README.md` — this convention (apply on every restore)
|
|
64
|
+
|
|
65
|
+
## §9. Reconstruction protocol
|
|
66
|
+
|
|
67
|
+
(Commands to run after compaction or for onboarding. Refresh as the mission's
|
|
68
|
+
restore-needs evolve.)
|
|
69
|
+
|
|
70
|
+
1. `rig whoami --json` — confirm seat identity
|
|
71
|
+
2. Read this file's §1 + your §A-§X section + this §9
|
|
72
|
+
3. Read `missions/{{mission_id}}/README.md` for mission scope
|
|
73
|
+
4. Read `missions/{{mission_id}}/PROGRESS.md` for delivery state
|
|
74
|
+
5. `rig queue list --destination <your-session>` — your durable inbox
|
|
75
|
+
6. State "restored from {{mission_id}}; resumed at <action>" before acting
|
|
76
|
+
|
|
77
|
+
## §10. What NOT to reconstruct
|
|
78
|
+
|
|
79
|
+
(Explicit pruning — completed slices / merged commits / closed ACK packets are
|
|
80
|
+
recoverable on demand and don't need to be in working memory. Name them to
|
|
81
|
+
free attention.)
|
|
82
|
+
|
|
83
|
+
## §A. <first-seat>@<rig> notes
|
|
84
|
+
|
|
85
|
+
(First seat's notes. Pattern: append cont.N entries with date + state of the
|
|
86
|
+
world from this seat's perspective. Latest = truth. Other seats READ but
|
|
87
|
+
don't modify.)
|
|
88
|
+
|
|
89
|
+
DONE {{created_date}} (cont.0 — mission scaffolded):
|
|
90
|
+
- Mission scaffolded via `rig scope mission create`. Template applied; this
|
|
91
|
+
file is the seed state. First substantive cont.1 entry follows when work
|
|
92
|
+
begins.
|
|
93
|
+
|
|
94
|
+
## §B / §C / ... — per-seat sections
|
|
95
|
+
|
|
96
|
+
(Each additional seat adds an h2 ## §X section under their own header as they
|
|
97
|
+
join. Section pattern matches §A.)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
mission: {{mission}}
|
|
4
|
+
stage: wip
|
|
5
|
+
created: {{created_date}}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Mission — {{title}}
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
[Why this mission exists and what success looks like]
|
|
13
|
+
|
|
14
|
+
## Slices
|
|
15
|
+
|
|
16
|
+
[List notable slices and their state]
|
|
17
|
+
|
|
18
|
+
## Status
|
|
19
|
+
|
|
20
|
+
[Where the mission is right now]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
mission: {{mission}}
|
|
4
|
+
release: {{release_version}}
|
|
5
|
+
stage: wip
|
|
6
|
+
created: {{created_date}}
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Release {{release_version}} — {{title}}
|
|
10
|
+
|
|
11
|
+
## Theme
|
|
12
|
+
|
|
13
|
+
[What this release is about — the coherent bet]
|
|
14
|
+
|
|
15
|
+
## Scope
|
|
16
|
+
|
|
17
|
+
[What ships in v{{release_version}} vs what waits]
|
|
18
|
+
|
|
19
|
+
## Slices
|
|
20
|
+
|
|
21
|
+
[Ordering + dependencies; PROGRESS.md tracks state]
|
|
22
|
+
|
|
23
|
+
## Acceptance
|
|
24
|
+
|
|
25
|
+
[Release-level done definition]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
[1-2 sentence goal.]
|
|
15
|
+
|
|
16
|
+
## Source material
|
|
17
|
+
|
|
18
|
+
- [Paths or refs]
|
|
19
|
+
|
|
20
|
+
## Status
|
|
21
|
+
|
|
22
|
+
- TODO: [next steps]
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- [Cross-slice / cross-release]
|
|
27
|
+
|
|
28
|
+
## Acceptance
|
|
29
|
+
|
|
30
|
+
- [3-5 bullets]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
[What this feature ships and why now]
|
|
15
|
+
|
|
16
|
+
## Scope
|
|
17
|
+
|
|
18
|
+
[In / out for v0]
|
|
19
|
+
|
|
20
|
+
## Acceptance
|
|
21
|
+
|
|
22
|
+
- [3-5 bullets]
|
|
23
|
+
|
|
24
|
+
## Risks
|
|
25
|
+
|
|
26
|
+
[Known unknowns]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
slice: {{slice_number}}-{{slug}}
|
|
4
|
+
mission: {{mission}}
|
|
5
|
+
status: placeholder
|
|
6
|
+
stage: wip
|
|
7
|
+
created: {{created_date}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Slice {{slice_number}} — {{title}}
|
|
11
|
+
|
|
12
|
+
## Question
|
|
13
|
+
|
|
14
|
+
[The thing we are trying to learn]
|
|
15
|
+
|
|
16
|
+
## Source
|
|
17
|
+
|
|
18
|
+
[Where the answer is most likely to come from]
|
|
19
|
+
|
|
20
|
+
## Findings
|
|
21
|
+
|
|
22
|
+
[Captured as work progresses]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrig/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local control plane for multi-agent coding topologies",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "tsc && chmod +x dist/bin-wrapper.js && mkdir -p dist/schemas && cp src/schemas/*.json dist/schemas/",
|
|
38
|
+
"build": "tsc && chmod +x dist/bin-wrapper.js && mkdir -p dist/schemas && cp src/schemas/*.json dist/schemas/ && mkdir -p dist/lib/scope-templates && cp src/lib/scope-templates/*.md dist/lib/scope-templates/",
|
|
39
39
|
"postinstall": "node scripts/check-abi.mjs",
|
|
40
40
|
"prepublishOnly": "bash ../../scripts/build-package.sh",
|
|
41
41
|
"test": "vitest run",
|