@azure-id/orc 2.0.2 → 2.1.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 (121) hide show
  1. package/CHANGELOG.md +401 -0
  2. package/README-id.md +52 -23
  3. package/README.md +50 -22
  4. package/bin/build-agents.js +24 -25
  5. package/bin/clear-logs.js +620 -0
  6. package/bin/cli.js +1155 -158
  7. package/bin/fix.js +459 -0
  8. package/bin/gotcha.js +288 -8
  9. package/bin/habit.js +1538 -1453
  10. package/bin/mockrun-catalog.js +3 -0
  11. package/bin/onboarding-content.js +2 -1
  12. package/bin/pricing.json +28 -21
  13. package/bin/trace-write.js +869 -657
  14. package/bin/verify-contracts.js +108 -27
  15. package/bin/verify-package.js +17 -6
  16. package/bin/webui/api.js +125 -6
  17. package/bin/webui/css/panels/hookui.css +79 -0
  18. package/bin/webui/fixtures/behaviour.js +30 -0
  19. package/bin/webui/fixtures/extra.js +9 -9
  20. package/bin/webui/fixtures/flow.js +81 -81
  21. package/bin/webui/fixtures/hookui.js +506 -431
  22. package/bin/webui/fixtures/index.js +32 -3
  23. package/bin/webui/fixtures/knowledge.js +2 -2
  24. package/bin/webui/fixtures/maintenance.js +123 -42
  25. package/bin/webui/fixtures/rules.js +1007 -1002
  26. package/bin/webui/fixtures/settings.js +6 -7
  27. package/bin/webui/fixtures/stats.js +9 -6
  28. package/bin/webui/fixtures/wait.js +98 -97
  29. package/bin/webui/i18n/en/behaviour.json +13 -0
  30. package/bin/webui/i18n/en/hookui.json +290 -194
  31. package/bin/webui/i18n/en/maintenance.json +71 -52
  32. package/bin/webui/i18n/en/settings.json +60 -60
  33. package/bin/webui/i18n/id/behaviour.json +13 -0
  34. package/bin/webui/i18n/id/hookui.json +290 -194
  35. package/bin/webui/i18n/id/maintenance.json +71 -52
  36. package/bin/webui/i18n/id/settings.json +60 -60
  37. package/bin/webui/js/05-banners.js +181 -172
  38. package/bin/webui/js/06-edit.js +193 -183
  39. package/bin/webui/js/panels/behaviour.js +77 -12
  40. package/bin/webui/js/panels/hookui.js +2196 -1691
  41. package/bin/webui/js/panels/maintenance.js +336 -235
  42. package/bin/webui/js/panels/settings.js +726 -719
  43. package/mock-run/INDEX.md +1 -0
  44. package/mock-run/extra-slots.md +1 -1
  45. package/mock-run/habits.md +1 -1
  46. package/mock-run/orc-aftermath.md +392 -392
  47. package/mock-run/orc-budget.md +29 -33
  48. package/mock-run/orc-cli.md +200 -200
  49. package/mock-run/orc-explain.md +86 -86
  50. package/mock-run/orc-extra.md +389 -392
  51. package/mock-run/orc-fix.md +87 -0
  52. package/mock-run/orc-pattern.md +112 -112
  53. package/mock-run/orc.md +157 -157
  54. package/package.json +1 -1
  55. package/templates/agents/MODEL-MAPPING.md +32 -29
  56. package/templates/agents/orc-analyze-mini-sonnet-5-high.md +2 -2
  57. package/templates/agents/{orc-claude-writer-opus-5-med.md → orc-claude-writer-opus-5-low.md} +4 -4
  58. package/templates/agents/orc-executor-haiku-4-5.md +1 -1
  59. package/templates/agents/orc-executor-opus-5-low.md +1 -1
  60. package/templates/agents/orc-executor-sonnet-4-6-high.md +1 -1
  61. package/templates/agents/orc-executor-sonnet-4-6-med.md +1 -1
  62. package/templates/agents/orc-executor-sonnet-5-high.md +2 -2
  63. package/templates/agents/orc-executor-sonnet-5-low.md +155 -0
  64. package/templates/agents/orc-executor-sonnet-5-med.md +155 -0
  65. package/templates/agents/orc-pattern-codifier-sonnet-5-high.md +2 -2
  66. package/templates/agents/orc-planner-mini-sonnet-5-high.md +2 -2
  67. package/templates/agents/orc-retro-sonnet-5-high.md +2 -2
  68. package/templates/agents/{orc-reviewer-opus-5-med.md → orc-reviewer-opus-5-low.md} +4 -4
  69. package/templates/agents/{orc-wiki-scanner-opus-5-med.md → orc-wiki-scanner-opus-5-low.md} +3 -3
  70. package/templates/agents/orc-wiki-scanner-sonnet-5-high.md +2 -2
  71. package/templates/commands/orc-fix.md +18 -0
  72. package/templates/commands/orc-wiki.md +64 -64
  73. package/templates/hooks/README.md +75 -7
  74. package/templates/hooks/orc-session-hook.js +78 -3
  75. package/templates/hooks/orc-statusline-render.js +317 -23
  76. package/templates/hooks/orc-statusline.js +162 -49
  77. package/templates/hooks/orc-subagent-line.js +23 -5
  78. package/templates/hooks/orc-weather-fetch.js +123 -0
  79. package/templates/skills/_shared/extra-dispatch.md +5 -5
  80. package/templates/skills/_shared/gotchas.md +27 -7
  81. package/templates/skills/_shared/habits.md +2 -2
  82. package/templates/skills/_shared/opus5-only.md +14 -14
  83. package/templates/skills/_shared/phases/review.md +2 -2
  84. package/templates/skills/_shared/phases/trace-verbs.md +17 -3
  85. package/templates/skills/_shared/phases/trace.md +136 -136
  86. package/templates/skills/_shared/review-slice.md +28 -1
  87. package/templates/skills/_shared/wait.md +1 -0
  88. package/templates/skills/orc/README.md +2 -2
  89. package/templates/skills/orc/SKILL.md +1 -1
  90. package/templates/skills/orc/config.md +25 -27
  91. package/templates/skills/orc/examples/full-run-mock.md +2 -1
  92. package/templates/skills/orc/references/effort-and-mode.md +17 -17
  93. package/templates/skills/orc/references/preflight-report.md +3 -3
  94. package/templates/skills/orc/references/ultra-mode.md +1 -1
  95. package/templates/skills/orc/schemas/checkpoint.md +122 -122
  96. package/templates/skills/orc/subskills/orc-review-verify/SKILL.md +3 -3
  97. package/templates/skills/orc/subskills/orc-review-verify/core.md +1 -1
  98. package/templates/skills/orc-analyze/SKILL.md +4 -2
  99. package/templates/skills/orc-claude/SKILL.md +14 -14
  100. package/templates/skills/orc-claude/examples/claude-run-mock.md +65 -65
  101. package/templates/skills/orc-diy/SKILL.md +5 -5
  102. package/templates/skills/orc-fast/SKILL.md +8 -6
  103. package/templates/skills/orc-fix/SKILL.md +110 -0
  104. package/templates/skills/orc-mini/SKILL.md +4 -4
  105. package/templates/skills/orc-mini/examples/mini-run-mock.md +4 -2
  106. package/templates/skills/orc-quick/README.md +1 -1
  107. package/templates/skills/orc-quick/SKILL.md +2 -2
  108. package/templates/skills/orc-quick/references/dispatch-gate.md +3 -2
  109. package/templates/skills/orc-quick/references/gh-mode.md +4 -2
  110. package/templates/skills/orc-retro/SKILL.md +1 -1
  111. package/templates/skills/orc-retro/examples/retro-mock.md +16 -16
  112. package/templates/skills/orc-wiki/README.md +325 -325
  113. package/templates/skills/orc-wiki/SKILL.md +195 -195
  114. package/templates/skills/orc-wiki/examples/wiki-run-mock.md +37 -37
  115. package/templates/skills/orc-wiki/references/extra.md +2 -2
  116. package/templates/skills/orc-wiki/references/partial-refresh.md +276 -271
  117. package/templates/skills/orc-wiki/references/phases/phase-0.md +1 -1
  118. package/templates/skills/orc-wiki/references/phases/phase-2.md +3 -3
  119. package/templates/skills/orc-wiki/references/phases/phase-3c.md +3 -2
  120. package/templates/agents/orc-claude-writer-opus-4-8-high.md +0 -48
  121. package/templates/agents/orc-wiki-scanner-opus-4-8-high.md +0 -74
@@ -1,86 +1,86 @@
1
- # Mock run — `/orc-explain`
2
-
3
- > ORC said something you did not understand. Type this and it says it again,
4
- > properly.
5
-
6
- ---
7
-
8
- ## 1. What it does
9
-
10
- It re-explains the **last thing ORC said** (or an earlier one, if you point at
11
- it). It adds the background the message assumed, and defines every ORC-only
12
- word in your project's own terms.
13
-
14
- It is not "make it shorter". A summary of something you did not understand is
15
- the same thing you did not understand.
16
-
17
- Nothing about the run changes: no re-plan, no re-score, no undo, no new
18
- question. When it finishes, you are exactly where you were.
19
-
20
- ---
21
-
22
- ## 2. The run
23
-
24
- ORC has just printed a scoring block. Rina reads it and blinks.
25
-
26
- ```
27
- T1 3·new-surface·stateful·new-tests·fan0/3·low = 6+18+16+8+9 = 57
28
- → orc-executor-sonnet-5-high (keystone)
29
- ```
30
-
31
- ```
32
- > /orc-explain
33
- ```
34
-
35
- ```
36
- The point: task T1 is medium-hard, so I am sending it to Sonnet 5 at high
37
- effort, and it must finish before three other tasks can start.
38
-
39
- The background that line assumed
40
- Before building, I give each task a number from 0 to 100. The number is
41
- arithmetic, not opinion: the planner (which read your files) reports a few
42
- properties of the task, and I add them up with a published formula. The
43
- number then picks the model from a fixed table. That is why you can argue
44
- with it — the inputs are all visible.
45
-
46
- Every word in that line, in this project's terms
47
- facet one property of the task the planner measured
48
- 3 the task touches 3 files (`breadth`)
49
- new-surface api/orders/note_service.ts does not exist yet — this task
50
- creates it (`novelty`)
51
- stateful it holds data between calls, not just if/else (`logic`)
52
- new-tests tests must be written, not just updated (`test_surface`)
53
- fan0/3 it depends on 0 tasks; 3 tasks depend on IT. That is why I
54
- called it a keystone, and why it runs alone in wave 1.
55
- low the planner's own confidence that the task is uncertain
56
- 57 the total. The table maps [55,65) to Sonnet 5 at high effort.
57
- band one row of that table
58
- wave a group of tasks that can run at the same time because no
59
- two of them write the same file
60
-
61
- What this means for you
62
- Nothing to decide. This was me showing my work before dispatching. If you
63
- think 57 is wrong — say so, and I will re-score with your correction.
64
-
65
- Back to the run. Waiting for your "go" on the wave plan.
66
- ```
67
-
68
- ---
69
-
70
- ## 3. What to notice
71
-
72
- - **It explains, it never re-does.** No agent is dispatched, no file is
73
- written, no gate changes.
74
- - **It defines words in *your* project's terms**, using `wiki/orc-orientation.md`
75
- when a wiki exists, so the words match the rest of your docs.
76
- - **The skill itself is deliberately tiny.** A long skill that says "be clear"
77
- makes a wordy model, because the model copies the length it sees.
78
- - **This lane writes no trace on purpose.** It is the only lane that does not,
79
- and `orc stats --help` says so — a stated blind spot, not an oversight.
80
-
81
- ---
82
-
83
- ## 4. Related
84
-
85
- - The words themselves: `orc onboarding lanes`
86
- - The whole walkthrough with no GitHub needed: `orc onboarding`
1
+ # Mock run — `/orc-explain`
2
+
3
+ > ORC said something you did not understand. Type this and it says it again,
4
+ > properly.
5
+
6
+ ---
7
+
8
+ ## 1. What it does
9
+
10
+ It re-explains the **last thing ORC said** (or an earlier one, if you point at
11
+ it). It adds the background the message assumed, and defines every ORC-only
12
+ word in your project's own terms.
13
+
14
+ It is not "make it shorter". A summary of something you did not understand is
15
+ the same thing you did not understand.
16
+
17
+ Nothing about the run changes: no re-plan, no re-score, no undo, no new
18
+ question. When it finishes, you are exactly where you were.
19
+
20
+ ---
21
+
22
+ ## 2. The run
23
+
24
+ ORC has just printed a scoring block. Rina reads it and blinks.
25
+
26
+ ```
27
+ T1 3·new-surface·stateful·new-tests·fan0/3·low = 6+18+16+8+9 = 57
28
+ → orc-executor-opus-5-low (keystone)
29
+ ```
30
+
31
+ ```
32
+ > /orc-explain
33
+ ```
34
+
35
+ ```
36
+ The point: task T1 is medium-hard, so I am sending it to Opus 5.5 at low
37
+ effort, and it must finish before three other tasks can start.
38
+
39
+ The background that line assumed
40
+ Before building, I give each task a number from 0 to 100. The number is
41
+ arithmetic, not opinion: the planner (which read your files) reports a few
42
+ properties of the task, and I add them up with a published formula. The
43
+ number then picks the model from a fixed table. That is why you can argue
44
+ with it — the inputs are all visible.
45
+
46
+ Every word in that line, in this project's terms
47
+ facet one property of the task the planner measured
48
+ 3 the task touches 3 files (`breadth`)
49
+ new-surface api/orders/note_service.ts does not exist yet — this task
50
+ creates it (`novelty`)
51
+ stateful it holds data between calls, not just if/else (`logic`)
52
+ new-tests tests must be written, not just updated (`test_surface`)
53
+ fan0/3 it depends on 0 tasks; 3 tasks depend on IT. That is why I
54
+ called it a keystone, and why it runs alone in wave 1.
55
+ low the planner's own confidence that the task is uncertain
56
+ 57 the total. The table maps [41,90) to Opus 5.5 at low effort.
57
+ band one row of that table
58
+ wave a group of tasks that can run at the same time because no
59
+ two of them write the same file
60
+
61
+ What this means for you
62
+ Nothing to decide. This was me showing my work before dispatching. If you
63
+ think 57 is wrong — say so, and I will re-score with your correction.
64
+
65
+ Back to the run. Waiting for your "go" on the wave plan.
66
+ ```
67
+
68
+ ---
69
+
70
+ ## 3. What to notice
71
+
72
+ - **It explains, it never re-does.** No agent is dispatched, no file is
73
+ written, no gate changes.
74
+ - **It defines words in *your* project's terms**, using `wiki/orc-orientation.md`
75
+ when a wiki exists, so the words match the rest of your docs.
76
+ - **The skill itself is deliberately tiny.** A long skill that says "be clear"
77
+ makes a wordy model, because the model copies the length it sees.
78
+ - **This lane writes no trace on purpose.** It is the only lane that does not,
79
+ and `orc stats --help` says so — a stated blind spot, not an oversight.
80
+
81
+ ---
82
+
83
+ ## 4. Related
84
+
85
+ - The words themselves: `orc onboarding lanes`
86
+ - The whole walkthrough with no GitHub needed: `orc onboarding`