@azure-id/orc 1.2.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2907 -2663
- package/README-id.md +44 -0
- package/README.md +631 -665
- package/bin/cli.js +36866 -34355
- package/bin/verify-contracts.js +35 -1
- package/bin/verify-package.js +15 -0
- package/bin/webui/api.js +1283 -1201
- package/bin/webui/app.html +213 -210
- package/bin/webui/css/04-motion.css +43 -0
- package/bin/webui/css/06-responsive.css +42 -0
- package/bin/webui/css/panels/hookui.css +595 -0
- package/bin/webui/fixtures/hookui.js +431 -0
- package/bin/webui/fixtures/index.js +17 -0
- package/bin/webui/i18n/en/hookui.json +180 -0
- package/bin/webui/i18n/en/nav.json +22 -21
- package/bin/webui/i18n/en/overview.json +4 -1
- package/bin/webui/i18n/en/tour.json +3 -1
- package/bin/webui/i18n/id/hookui.json +180 -0
- package/bin/webui/i18n/id/nav.json +22 -21
- package/bin/webui/i18n/id/overview.json +4 -1
- package/bin/webui/i18n/id/tour.json +3 -1
- package/bin/webui/js/01-i18n.js +152 -151
- package/bin/webui/js/90-tour.js +6 -0
- package/bin/webui/js/panels/hookui.js +1313 -0
- package/bin/webui/js/panels/overview.js +7 -0
- package/package.json +1 -1
- package/templates/hooks/README.md +80 -2
- package/templates/hooks/orc-statusline-render.js +921 -0
- package/templates/hooks/orc-statusline.js +715 -68
- package/templates/hooks/orc-subagent-line.js +219 -0
package/bin/verify-contracts.js
CHANGED
|
@@ -837,6 +837,26 @@ const CONTRACTS = [
|
|
|
837
837
|
"skills/_shared/phases/preflight.md",
|
|
838
838
|
],
|
|
839
839
|
},
|
|
840
|
+
{
|
|
841
|
+
// v1.3.0 W1 — the CLI Hook Interface. The compiled program is the ONE thing
|
|
842
|
+
// that crosses the wall between the CLI and the hook, so both halves have
|
|
843
|
+
// to name the same file. The AUTHORED layout is deliberately NOT registered
|
|
844
|
+
// here: the hook must never name it, because it must never read it.
|
|
845
|
+
name: "the compiled status-line program (the CLI compiles, the hook renders)",
|
|
846
|
+
token: "statusline-compiled.json",
|
|
847
|
+
binFiles: ["bin/cli.js"],
|
|
848
|
+
files: ["hooks/orc-statusline.js", "hooks/orc-statusline-render.js", "hooks/README.md"],
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
// The board rule, stated ONCE so the CLI, the hook and the panel all cite
|
|
852
|
+
// the same sentence. It is the thing a user most needs to understand about
|
|
853
|
+
// the board and the thing most likely to be paraphrased into three
|
|
854
|
+
// different half-truths.
|
|
855
|
+
name: "the dense-prefix invariant (the status-line board)",
|
|
856
|
+
token: "A line may hold a component only if every line above it holds at least one.",
|
|
857
|
+
binFiles: ["bin/cli.js"],
|
|
858
|
+
files: ["hooks/README.md", "hooks/orc-statusline.js"],
|
|
859
|
+
},
|
|
840
860
|
{
|
|
841
861
|
name: "behavior-trace run pointer (every ORC entry point writes .current)",
|
|
842
862
|
token: ".current",
|
|
@@ -1371,7 +1391,11 @@ const CONTRACTS = [
|
|
|
1371
1391
|
// wiki-meta.json lives under.
|
|
1372
1392
|
name: "the challenge ledger (v0.47.0 — CLI-only writer)",
|
|
1373
1393
|
token: "challenge.json",
|
|
1374
|
-
files: [
|
|
1394
|
+
files: [
|
|
1395
|
+
"skills/orc-challenge/references/cycle-state.md",
|
|
1396
|
+
// the `challenge` component reads it (v1.3.0)
|
|
1397
|
+
"hooks/orc-statusline.js",
|
|
1398
|
+
],
|
|
1375
1399
|
binFiles: ["bin/cli.js"],
|
|
1376
1400
|
},
|
|
1377
1401
|
{
|
|
@@ -1474,6 +1498,8 @@ const CONTRACTS = [
|
|
|
1474
1498
|
token: "RESUME.md",
|
|
1475
1499
|
binFiles: ["bin/cli.js"],
|
|
1476
1500
|
files: [
|
|
1501
|
+
// the `resume` / `open-runs` components read its one byte-stable line (v1.3.0)
|
|
1502
|
+
"hooks/orc-statusline.js",
|
|
1477
1503
|
// v1.0.0 W5 — the demotion's run-scoped record lives BESIDE it, in
|
|
1478
1504
|
// {run_dir}/{slug}/, and is deleted with the run. A move of one is a move
|
|
1479
1505
|
// of the other.
|
|
@@ -1966,6 +1992,8 @@ const CONTRACTS = [
|
|
|
1966
1992
|
token: "orc-crosslink.config.yaml",
|
|
1967
1993
|
binFiles: ["bin/cli.js"],
|
|
1968
1994
|
files: [
|
|
1995
|
+
// the `crosslink` component counts its peers (v1.3.0)
|
|
1996
|
+
"hooks/orc-statusline.js",
|
|
1969
1997
|
"skills/orc-poly/SKILL.md",
|
|
1970
1998
|
"skills/orc-wiki/README.md",
|
|
1971
1999
|
"skills/orc-wiki/SKILL.md",
|
|
@@ -3642,6 +3670,12 @@ for (const b of BUDGETS) {
|
|
|
3642
3670
|
// spine reads `extra_timeout_s`. An empty lanes[] here is an ANSWER.
|
|
3643
3671
|
"wait_hop_minutes",
|
|
3644
3672
|
"wait_max_hops",
|
|
3673
|
+
// v1.3.0 — an operating key of the STATUSLINE HOOK. A hook has no lane and
|
|
3674
|
+
// cannot resolve config, so no spine reads this; the hook reads the raw key
|
|
3675
|
+
// off the file, exactly as it already does for `log_dir` and
|
|
3676
|
+
// `extra_enabled`. An empty lanes[] here is an ANSWER.
|
|
3677
|
+
"statusline_custom",
|
|
3678
|
+
"subagent_line_custom",
|
|
3645
3679
|
]);
|
|
3646
3680
|
for (const e of metaEntries) {
|
|
3647
3681
|
if (!e.lanes) {
|
package/bin/verify-package.js
CHANGED
|
@@ -47,6 +47,7 @@ const required = [
|
|
|
47
47
|
"bin/webui/css/panels/pact.css",
|
|
48
48
|
"bin/webui/css/panels/boundary.css",
|
|
49
49
|
"bin/webui/css/panels/wait.css",
|
|
50
|
+
"bin/webui/css/panels/hookui.css",
|
|
50
51
|
"bin/webui/css/panels/handoff.css",
|
|
51
52
|
"bin/webui/css/panels/challenge.css",
|
|
52
53
|
"bin/webui/css/panels/docs.css",
|
|
@@ -76,6 +77,7 @@ const required = [
|
|
|
76
77
|
"bin/webui/js/panels/pact.js",
|
|
77
78
|
"bin/webui/js/panels/boundary.js",
|
|
78
79
|
"bin/webui/js/panels/wait.js",
|
|
80
|
+
"bin/webui/js/panels/hookui.js",
|
|
79
81
|
"bin/webui/js/panels/handoff.js",
|
|
80
82
|
"bin/webui/js/panels/challenge.js",
|
|
81
83
|
"bin/webui/js/panels/docs.js",
|
|
@@ -95,6 +97,7 @@ const required = [
|
|
|
95
97
|
"bin/webui/fixtures/pact.js",
|
|
96
98
|
"bin/webui/fixtures/boundary.js",
|
|
97
99
|
"bin/webui/fixtures/wait.js",
|
|
100
|
+
"bin/webui/fixtures/hookui.js",
|
|
98
101
|
"bin/webui/fixtures/handoff.js",
|
|
99
102
|
"bin/webui/fixtures/maintenance.js",
|
|
100
103
|
"bin/webui/fixtures/challenge.js",
|
|
@@ -127,6 +130,7 @@ const required = [
|
|
|
127
130
|
"bin/webui/i18n/en/pact.json",
|
|
128
131
|
"bin/webui/i18n/en/boundary.json",
|
|
129
132
|
"bin/webui/i18n/en/wait.json",
|
|
133
|
+
"bin/webui/i18n/en/hookui.json",
|
|
130
134
|
"bin/webui/i18n/en/handoff.json",
|
|
131
135
|
"bin/webui/i18n/en/challenge.json",
|
|
132
136
|
"bin/webui/i18n/en/docs.json",
|
|
@@ -150,6 +154,7 @@ const required = [
|
|
|
150
154
|
"bin/webui/i18n/id/pact.json",
|
|
151
155
|
"bin/webui/i18n/id/boundary.json",
|
|
152
156
|
"bin/webui/i18n/id/wait.json",
|
|
157
|
+
"bin/webui/i18n/id/hookui.json",
|
|
153
158
|
"bin/webui/i18n/id/handoff.json",
|
|
154
159
|
"bin/webui/i18n/id/challenge.json",
|
|
155
160
|
"bin/webui/i18n/id/docs.json",
|
|
@@ -451,6 +456,16 @@ const required = [
|
|
|
451
456
|
"templates/hooks/README.md",
|
|
452
457
|
"templates/hooks/orc-effort-guard.js",
|
|
453
458
|
"templates/hooks/orc-statusline.js",
|
|
459
|
+
// v1.3.0 — THE RENDER ENGINE, and it is required by BOTH halves: the hook
|
|
460
|
+
// requires it as a sibling out of .claude/hooks/, and bin/cli.js requires it
|
|
461
|
+
// out of templates/hooks/ for `orc statusline preview`. That is what makes
|
|
462
|
+
// the panel's preview and the bar's real output byte-identical BY
|
|
463
|
+
// CONSTRUCTION. A missing file here breaks the status line AND the panel.
|
|
464
|
+
"templates/hooks/orc-statusline-render.js",
|
|
465
|
+
// v1.4.0 — the SECOND board, and the per-agent token record that rides with
|
|
466
|
+
// it. Wired even with the board off, because the measurement is handed over
|
|
467
|
+
// either way.
|
|
468
|
+
"templates/hooks/orc-subagent-line.js",
|
|
454
469
|
"templates/hooks/orc-trace.js",
|
|
455
470
|
];
|
|
456
471
|
|