geneseed 3.8.0 → 3.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 (229) hide show
  1. package/CHANGELOG.md +71 -1
  2. package/DESIGN.md +13 -10
  3. package/QUICKSTART.md +1 -1
  4. package/README.md +31 -32
  5. package/SETUP.md +7 -42
  6. package/SHIPPED.md +4 -4
  7. package/adapters/bob/README.md +17 -1
  8. package/adapters/openclaude/README.md +1 -1
  9. package/adapters/opencode/GLOBAL-HARNESS-SPEC.md +1 -1
  10. package/adapters/opencode/README.md +3 -3
  11. package/adapters/opencode/plugins/geneseed-context.js +78 -8
  12. package/adapters/opencode/plugins/geneseed-guard.js +9 -9
  13. package/adapters/opencode/plugins/geneseed-workflow.js +1 -1
  14. package/adapters/opencode/workflows/_runtime.js +2 -2
  15. package/adapters/opencode/workflows/dispatch.js +1 -1
  16. package/bin/geneseed-hook.mjs +1 -1
  17. package/docs/candidate-hosts.md +12 -5
  18. package/docs/extending.md +72 -40
  19. package/docs/token-footprint.md +26 -21
  20. package/docs/web/claude-hooks.md +1 -1
  21. package/docs/web/collaboration.md +1 -1
  22. package/docs/web/exclusions.md +0 -1
  23. package/docs/web/footprint.md +1 -1
  24. package/docs/web/harnesses.md +14 -14
  25. package/docs/web/install-quick.md +1 -1
  26. package/docs/web/plugin-guard.md +2 -2
  27. package/docs/web/rules.md +1 -1
  28. package/docs/web/themes-author.md +2 -2
  29. package/docs/web-ui.md +2 -2
  30. package/harness.config.json +1 -1
  31. package/js/README.md +8 -7
  32. package/js/build/driver.mjs +26 -95
  33. package/js/build/emit-claude.mjs +76 -81
  34. package/js/build/generate.mjs +0 -1
  35. package/js/build/render.mjs +10 -3
  36. package/js/build/source.mjs +105 -1
  37. package/js/build/stubs.mjs +25 -4
  38. package/js/cli-table.json +8 -8
  39. package/js/hosts/hooks.mjs +91 -59
  40. package/js/hosts/hosts.mjs +5 -21
  41. package/js/hosts/installs.mjs +4 -6
  42. package/js/hosts/mcp.mjs +3 -13
  43. package/js/hosts/native.mjs +28 -51
  44. package/js/hosts/opencode.mjs +1 -1
  45. package/js/hosts/settings.mjs +4 -78
  46. package/js/inspect/checks-authoring.mjs +153 -117
  47. package/js/inspect/checks-repo.mjs +45 -1
  48. package/js/inspect/diff.mjs +11 -3
  49. package/js/inspect/doctor.mjs +3 -3
  50. package/js/inspect/excludes.mjs +0 -4
  51. package/js/inspect/inventory.mjs +1 -2
  52. package/js/inspect/status.mjs +4 -4
  53. package/js/maintain/migrate.mjs +5 -5
  54. package/js/maintain/setup.mjs +3 -5
  55. package/js/maintain/uninstall.mjs +8 -42
  56. package/js/ui/tui.mjs +1 -1
  57. package/js/web/actions.mjs +4 -5
  58. package/js/web/api.mjs +10 -5
  59. package/package.json +1 -2
  60. package/registry.json +7 -0
  61. package/src/AGENT.md.tmpl +86 -65
  62. package/src/agents/_template.md +3 -3
  63. package/src/agents/advocate.md +3 -3
  64. package/src/agents/architect.md +3 -3
  65. package/src/agents/developer.md +4 -4
  66. package/src/agents/docs.md +3 -3
  67. package/src/agents/empiricist.md +4 -4
  68. package/src/agents/explorer.md +4 -4
  69. package/src/agents/framer.md +3 -3
  70. package/src/agents/historian.md +3 -3
  71. package/src/agents/operator.md +3 -3
  72. package/src/agents/pragmatist.md +3 -3
  73. package/src/agents/researcher.md +7 -7
  74. package/src/agents/reviewer.md +3 -3
  75. package/src/agents/security.md +3 -3
  76. package/src/agents/skeptic.md +3 -3
  77. package/src/agents/steward.md +3 -3
  78. package/src/agents/tester.md +3 -3
  79. package/src/agents/user-advocate.md +3 -3
  80. package/src/agents/visionary.md +3 -3
  81. package/src/doctrines/README.md +4 -3
  82. package/src/doctrines/comms.md +4 -4
  83. package/src/doctrines/craft.md +20 -20
  84. package/src/doctrines/ops.md +19 -19
  85. package/src/doctrines/process.md +20 -20
  86. package/src/doctrines/rigor.md +22 -22
  87. package/src/laws/universal.md +26 -44
  88. package/src/memory/README.md +3 -3
  89. package/src/modes/foreman.md +1 -1
  90. package/src/notebook/README.md +1 -1
  91. package/src/ontology/universal.md +8 -10
  92. package/src/postures/artisan.md +2 -2
  93. package/src/skills/_self-improvement.md +4 -4
  94. package/src/skills/_template.md +1 -1
  95. package/src/skills/brainstorm.md +3 -3
  96. package/src/skills/bruno-collection-generator.md +6 -6
  97. package/src/skills/bruno-test-writer.md +5 -5
  98. package/src/skills/ci-fix.md +4 -4
  99. package/src/skills/commit.md +11 -10
  100. package/src/skills/consolidate-memory.md +4 -4
  101. package/src/skills/council.md +2 -2
  102. package/src/skills/daydream/SKILL.md +10 -3
  103. package/src/skills/daydream/VENDOR.md +10 -2
  104. package/src/skills/daydream/instructions.md +2 -2
  105. package/src/skills/debug.md +4 -4
  106. package/src/skills/deps-audit.md +3 -3
  107. package/src/skills/develop.md +7 -7
  108. package/src/skills/document-project.md +6 -6
  109. package/src/skills/explain-changes/SKILL.md +69 -0
  110. package/src/skills/explain-changes/VENDOR.md +20 -0
  111. package/src/skills/explain-changes/scripts/render_changes.mjs +558 -0
  112. package/src/skills/forge-mcp.md +4 -4
  113. package/src/skills/fresh-eyes.md +4 -4
  114. package/src/skills/frontend-design.md +1 -1
  115. package/src/skills/geneseed.md +4 -4
  116. package/src/skills/git-archaeology.md +5 -5
  117. package/src/skills/git-rescue.md +7 -7
  118. package/src/skills/handoff.md +3 -3
  119. package/src/skills/ingest.md +5 -5
  120. package/src/skills/migrate.md +8 -8
  121. package/src/skills/parallel-agents.md +2 -2
  122. package/src/skills/pipeline.md +2 -2
  123. package/src/skills/plan.md +3 -3
  124. package/src/skills/ponytail.md +2 -2
  125. package/src/skills/profile.md +2 -2
  126. package/src/skills/prose.md +1 -1
  127. package/src/skills/prototype.md +1 -1
  128. package/src/skills/react-view-transitions/SKILL.md +1 -1
  129. package/src/skills/react-view-transitions/VENDOR.md +7 -2
  130. package/src/skills/refactor.md +3 -3
  131. package/src/skills/release.md +5 -5
  132. package/src/skills/repo-map.md +4 -4
  133. package/src/skills/research.md +9 -9
  134. package/src/skills/review-response.md +4 -4
  135. package/src/skills/rule.md +3 -3
  136. package/src/skills/security-audit.md +5 -5
  137. package/src/skills/ship.md +5 -5
  138. package/src/skills/skill-forge.md +4 -4
  139. package/src/skills/token-report/SKILL.md +2 -3
  140. package/src/skills/token-report/VENDOR.md +2 -3
  141. package/src/skills/token-report/scripts/token_report.mjs +7 -121
  142. package/src/skills/wiki.md +5 -5
  143. package/src/skills/workflow.md +3 -4
  144. package/src/skills/worktree.md +4 -4
  145. package/themes/_TEMPLATE.json +37 -39
  146. package/themes/biker.json +37 -39
  147. package/themes/commentator.json +37 -39
  148. package/themes/cyberpunk.json +37 -39
  149. package/themes/gamer.json +37 -39
  150. package/themes/imperial.json +37 -39
  151. package/themes/joker.json +37 -39
  152. package/themes/marvin.json +37 -39
  153. package/themes/mean.json +37 -39
  154. package/themes/military.json +37 -39
  155. package/themes/neutral.json +37 -39
  156. package/themes/pirate.json +37 -39
  157. package/themes/sports.json +37 -39
  158. package/themes/verstappen.json +37 -39
  159. package/themes/wizard.json +37 -39
  160. package/web/dist/assets/Activity-BjVp522q.js +1 -0
  161. package/web/dist/assets/ActivityDetail-8ep1bspW.js +1 -0
  162. package/web/dist/assets/Dashboard-OkC_PCH6.js +2 -0
  163. package/web/dist/assets/{Docs-DrJNDPwI.js → Docs-CKPWz00o.js} +2 -2
  164. package/web/dist/assets/FilterInput-CVyqmYWM.js +1 -0
  165. package/web/dist/assets/GreenhouseView-D0cbCJ5m.js +2 -0
  166. package/web/dist/assets/Installs-BtGGdoTt.js +2 -0
  167. package/web/dist/assets/JournalView-Ckl4dmzR.js +1 -0
  168. package/web/dist/assets/Laws-CLpdRRk8.js +3 -0
  169. package/web/dist/assets/Library-wPPuKQrI.js +1 -0
  170. package/web/dist/assets/{Markdown-BQAvN8xx.js → Markdown-CkFyfgNf.js} +14 -14
  171. package/web/dist/assets/OperatorHudView-CiAkAkQL.js +2 -0
  172. package/web/dist/assets/Personal-D8CnDo9v.js +1 -0
  173. package/web/dist/assets/Tabs-B4HNrrCs.js +1 -0
  174. package/web/dist/assets/drawable-BiwaOo6x.js +1 -0
  175. package/web/dist/assets/geist-mono-latin-400-normal-DTRLJnHl.woff2 +0 -0
  176. package/web/dist/assets/geist-mono-latin-500-normal-YINYabwD.woff2 +0 -0
  177. package/web/dist/assets/index-C1yil5j1.js +2 -0
  178. package/web/dist/assets/index-CDPDk2vj.css +1 -0
  179. package/web/dist/assets/{react-DbkvxWG5.js → react-B9Z_tXRV.js} +1 -1
  180. package/web/dist/assets/sections-GalMS0Zv.js +1 -0
  181. package/web/dist/assets/usePoll-O0sJEw1Y.js +1 -0
  182. package/web/dist/index.html +4 -4
  183. package/web/src/pages/Laws.jsx +616 -361
  184. package/adapters/copilot/README.md +0 -105
  185. package/web/dist/assets/Activity-CH-7cPIM.js +0 -1
  186. package/web/dist/assets/ActivityDetail-DZvz0xS5.js +0 -1
  187. package/web/dist/assets/CatalogRow-DftXpZHY.js +0 -1
  188. package/web/dist/assets/Diff-DvwdG0L9.js +0 -2
  189. package/web/dist/assets/Doctor-OTmwmYZg.js +0 -1
  190. package/web/dist/assets/FilterInput-BakJLvaV.js +0 -1
  191. package/web/dist/assets/GreenhouseView-XxrAdriX.js +0 -2
  192. package/web/dist/assets/Harness-C_LYNk5c.js +0 -1
  193. package/web/dist/assets/JournalView-BcuyeEaR.js +0 -1
  194. package/web/dist/assets/Laws-CWHrTKY4.js +0 -3
  195. package/web/dist/assets/Library-CA9IHghn.js +0 -1
  196. package/web/dist/assets/OperatorHudView-BMRY1Tt4.js +0 -2
  197. package/web/dist/assets/Profile-wceET1JY.js +0 -1
  198. package/web/dist/assets/Rules-BEXvY4Tx.js +0 -1
  199. package/web/dist/assets/Settings-DS2zF0Ez.js +0 -1
  200. package/web/dist/assets/Skills-DahlOJuI.js +0 -1
  201. package/web/dist/assets/StatusBadge-Cg6j-NJL.js +0 -1
  202. package/web/dist/assets/activity-iWaWVtsR.js +0 -1
  203. package/web/dist/assets/audiowide-latin-400-normal-6GFCX7ni.woff2 +0 -0
  204. package/web/dist/assets/drawable-BTHjTzF7.js +0 -1
  205. package/web/dist/assets/geist-mono-latin-400-normal-DKaoCDn5.woff2 +0 -0
  206. package/web/dist/assets/geist-mono-latin-500-normal-C3sF8Y1B.woff2 +0 -0
  207. package/web/dist/assets/geist-mono-latin-600-normal-BHzjB6_C.woff2 +0 -0
  208. package/web/dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  209. package/web/dist/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  210. package/web/dist/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  211. package/web/dist/assets/ibm-plex-serif-latin-400-normal-BIGslYFI.woff2 +0 -0
  212. package/web/dist/assets/ibm-plex-serif-latin-500-normal-REKAfBVG.woff2 +0 -0
  213. package/web/dist/assets/ibm-plex-serif-latin-600-normal-DAxitmSu.woff2 +0 -0
  214. package/web/dist/assets/index-AN5Emnrg.js +0 -2
  215. package/web/dist/assets/index-Ruh93A3A.css +0 -1
  216. package/web/dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  217. package/web/dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  218. package/web/dist/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  219. package/web/dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
  220. package/web/dist/assets/lawCats-Btjp3Hk_.js +0 -1
  221. package/web/dist/assets/oswald-latin-400-normal-BAFo8sP8.woff2 +0 -0
  222. package/web/dist/assets/oswald-latin-500-normal-B-eyT0Dw.woff2 +0 -0
  223. package/web/dist/assets/oswald-latin-600-normal-plFmSr5g.woff2 +0 -0
  224. package/web/dist/assets/oswald-latin-700-normal-vy6hmKSr.woff2 +0 -0
  225. package/web/dist/assets/poppins-latin-400-normal-cpxAROuN.woff2 +0 -0
  226. package/web/dist/assets/poppins-latin-500-normal-C8OXljZJ.woff2 +0 -0
  227. package/web/dist/assets/poppins-latin-600-normal-zEkxB9Mr.woff2 +0 -0
  228. package/web/dist/assets/poppins-latin-700-normal-Qrb0O0WB.woff2 +0 -0
  229. package/web/dist/assets/rolldown-runtime-CbXtAM7H.js +0 -1
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "File the commander's dossier in PROFILE.md — role, theatre, preferred briefing style; identity only, standing orders route to user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Action the review like an AAR — verify each point, then adopt it or push back with reasons.",
78
- "LEX_I": "Sealed Orders · Sealed Secrets",
79
- "LEX_II": "One Mission, One Move · One Intent, One Act",
80
- "LEX_III": "Confirm the Target · Verify Before Asserting",
81
- "LEX_IV": "Deliberate Demolition · Deletion Is Deliberate",
82
- "LEX_V": "Report the Contact · Surface Failures",
83
- "LEX_VI": "Intel, Not Orders · Data, Not Orders",
84
- "LEX_VII": "Minimum Force · Least Privilege",
85
- "LEX_VIII": "Neutralise the Source · Cure the Cause",
86
- "LEX_IX": "Authority Rests Above the Trigger · External Gate (retired)",
87
- "LEX_X": "Read Back the Order · Echo the Intent",
88
- "LEX_XI": "Negative Contact Still Gets Reported · Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Sealed Orders · Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Mission, One Move · One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Confirm the Target · Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Deliberate Demolition · Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Report the Contact · Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Intel, Not Orders · Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Minimum Force · Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Neutralise the Source · Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Read Back the Order · Echo the Intent",
89
87
  "PACK_CRAFT": "Fieldcraft",
90
88
  "PACK_RIGOR": "Rehearsal",
91
89
  "PACK_OPS": "Materiel",
92
90
  "PACK_PROCESS": "The Op",
93
91
  "PACK_COMMS": "Signals",
94
- "DOC_CRAFT_1": "Automate the Drill · Automate Repetition",
95
- "DOC_CRAFT_2": "Orders in English · English Configuration",
96
- "DOC_CRAFT_3": "Docs in Step · Documentation in Step",
97
- "DOC_CRAFT_4": "Recon Before Building · Search Before Creating",
98
- "DOC_CRAFT_5": "Hold Formation · Respect Conventions",
99
- "DOC_CRAFT_6": "Surgical Strike Only · Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One Source of Record · One Writer Per Value",
101
- "DOC_RIGOR_1": "Safe to Run Again · Idempotent by Default",
102
- "DOC_RIGOR_2": "Live-Fire, Not Theatre · Honest Tests",
103
- "DOC_RIGOR_3": "Cover Your Fire, Confirm the Hit · Cover and Verify",
104
- "DOC_RIGOR_4": "An Untested Sentry Is Already Asleep · Prove the Gate",
105
- "DOC_RIGOR_5": "Authority Rests Above the Trigger · External Gate",
106
- "DOC_OPS_1": "Check Your Kit · Tool Discovery",
107
- "DOC_OPS_2": "No Command Left Hanging · Commands Must Return",
108
- "DOC_OPS_3": "Strike the Source, Not the Readout · Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "Complete the Demolition · Complete the Teardown",
110
- "DOC_OPS_5": "Log the Live Recon, Not a Stale Fix · Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "Re-Arming Is Not Re-Briefing · Restart Is Not Reload",
112
- "DOC_OPS_7": "Single File Through the Checkpoint · Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Debrief Every Op · Persist Insight",
114
- "DOC_PROCESS_2": "Op Order Before Action · Plan Before Acting",
115
- "DOC_PROCESS_3": "Travel Light · Context Economy",
116
- "DOC_PROCESS_4": "Read the Briefing First · Read the Docs First",
117
- "DOC_PROCESS_5": "Clearance Before Transmit · Consent Before Push",
118
- "DOC_PROCESS_6": "Set the Exfil Before You Enter · Bound the Loop",
119
- "DOC_PROCESS_7": "One Operator Per Sector · One Writer Per File",
120
- "DOC_COMMS_1": "Every Objective Keeps Its Designation · Codes That Persist",
121
- "DOC_COMMS_2": "Sketch the Map Only When Routes Matter · Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Automate the Drill · Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "Orders in English · English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Docs in Step · Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Recon Before Building · Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Hold Formation · Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "Surgical Strike Only · Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One Source of Record · One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Safe to Run Again · Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Live-Fire, Not Theatre · Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Cover Your Fire, Confirm the Hit · Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "An Untested Sentry Is Already Asleep · Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "Authority Rests Above the Trigger · External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Check Your Kit · Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "No Command Left Hanging · Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Strike the Source, Not the Readout · Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "Complete the Demolition · Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Log the Live Recon, Not a Stale Fix · Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "Re-Arming Is Not Re-Briefing · Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "Single File Through the Checkpoint · Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Debrief Every Op · Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Op Order Before Action · Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Travel Light · Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Briefing First · Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "Clearance Before Transmit · Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Set the Exfil Before You Enter · Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "One Operator Per Sector · One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Every Objective Keeps Its Designation · Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Sketch the Map Only When Routes Matter · Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the operating manual an AI coding agent reads on entering this repository.",
123
121
  "INTRO_AGENTS": "Task focused work to the specialist whose job it is rather than running the whole op in one context; each has one objective and reports exactly what it did.",
124
122
  "INTRO_SKILLS": "A Skill is a standard operating procedure for a recurring task. Run the matching SOP before improvising.",
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "Interview the user and draft or refresh PROFILE.md — who they are, how they work, how they like answers pitched; identity only, standing rules route to user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Respond to review feedback with rigour — verify each point, then apply it or decline it with reasons.",
78
- "LEX_I": "Sealed Secrets",
79
- "LEX_II": "One Intent, One Act",
80
- "LEX_III": "Verify Before Asserting",
81
- "LEX_IV": "Deletion Is Deliberate",
82
- "LEX_V": "Surface Failures",
83
- "LEX_VI": "Data, Not Orders",
84
- "LEX_VII": "Least Privilege",
85
- "LEX_VIII": "Cure the Cause",
86
- "LEX_IX": "External Gate (retired)",
87
- "LEX_X": "Echo the Intent",
88
- "LEX_XI": "Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Echo the Intent",
89
87
  "PACK_CRAFT": "Craft",
90
88
  "PACK_RIGOR": "Rigor",
91
89
  "PACK_OPS": "Ops",
92
90
  "PACK_PROCESS": "Process",
93
91
  "PACK_COMMS": "Comms",
94
- "DOC_CRAFT_1": "Automate Repetition",
95
- "DOC_CRAFT_2": "English Configuration",
96
- "DOC_CRAFT_3": "Documentation in Step",
97
- "DOC_CRAFT_4": "Search Before Creating",
98
- "DOC_CRAFT_5": "Respect Conventions",
99
- "DOC_CRAFT_6": "Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One Writer Per Value",
101
- "DOC_RIGOR_1": "Idempotent by Default",
102
- "DOC_RIGOR_2": "Honest Tests",
103
- "DOC_RIGOR_3": "Cover and Verify",
104
- "DOC_RIGOR_4": "Prove the Gate",
105
- "DOC_RIGOR_5": "External Gate",
106
- "DOC_OPS_1": "Tool Discovery",
107
- "DOC_OPS_2": "Commands Must Return",
108
- "DOC_OPS_3": "Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "Complete the Teardown",
110
- "DOC_OPS_5": "Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "Restart Is Not Reload",
112
- "DOC_OPS_7": "Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Persist Insight",
114
- "DOC_PROCESS_2": "Plan Before Acting",
115
- "DOC_PROCESS_3": "Context Economy",
116
- "DOC_PROCESS_4": "Read the Docs First",
117
- "DOC_PROCESS_5": "Consent Before Push",
118
- "DOC_PROCESS_6": "Bound the Loop",
119
- "DOC_PROCESS_7": "One Writer Per File",
120
- "DOC_COMMS_1": "Codes That Persist",
121
- "DOC_COMMS_2": "Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the entry point an AI coding agent reads when working in this repository.",
123
121
  "INTRO_AGENTS": "Delegate focused work to a specialist rather than doing everything in one context. Each specialist has a single clear purpose and a defined output contract.",
124
122
  "INTRO_SKILLS": "A Skill is a written procedure for a recurring task. Run the matching Skill before improvising.",
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "Chart yer captain in PROFILE.md — who they be, how they sail, how they like their bearings called; identity only, articles o' conduct go in user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Answer the inspection straight — weigh each mark, then mend it or argue it with cause.",
78
- "LEX_I": "Sealed Orders · Sealed Secrets",
79
- "LEX_II": "One Course, One Tack · One Intent, One Act",
80
- "LEX_III": "Sight It Yourself · Verify Before Asserting",
81
- "LEX_IV": "Scuttle with Care · Deletion Is Deliberate",
82
- "LEX_V": "Sing Out the Leak · Surface Failures",
83
- "LEX_VI": "Hearsay, Not Captain's Word · Data, Not Orders",
84
- "LEX_VII": "Carry Only What Ye Need · Least Privilege",
85
- "LEX_VIII": "Plug the Breach, Not the Whine · Cure the Cause",
86
- "LEX_IX": "The Key Hangs in Another's Cabin · External Gate (retired)",
87
- "LEX_X": "Repeat the Heading · Echo the Intent",
88
- "LEX_XI": "An Empty Horizon Hides a Fleet · Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Sealed Orders · Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Course, One Tack · One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Sight It Yourself · Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Scuttle with Care · Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Sing Out the Leak · Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Hearsay, Not Captain's Word · Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Carry Only What Ye Need · Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Plug the Breach, Not the Whine · Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Repeat the Heading · Echo the Intent",
89
87
  "PACK_CRAFT": "Shipwright",
90
88
  "PACK_RIGOR": "Soundings",
91
89
  "PACK_OPS": "Rigging",
92
90
  "PACK_PROCESS": "The Watch",
93
91
  "PACK_COMMS": "Signal Flags",
94
- "DOC_CRAFT_1": "Drill the Routine · Automate Repetition",
95
- "DOC_CRAFT_2": "Charts in English · English Configuration",
96
- "DOC_CRAFT_3": "Log in Step · Documentation in Step",
97
- "DOC_CRAFT_4": "Scout Before You Build · Search Before Creating",
98
- "DOC_CRAFT_5": "Keep to the Rigging · Respect Conventions",
99
- "DOC_CRAFT_6": "Mend Only the Sprung Plank · Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One Ship's Log, Every Chart Copies It · One Writer Per Value",
101
- "DOC_RIGOR_1": "Safe to Run the Tide Twice · Idempotent by Default",
102
- "DOC_RIGOR_2": "Sound True, Not for Show · Honest Tests",
103
- "DOC_RIGOR_3": "Trials Rig the Work, Run Her Clean · Cover and Verify",
104
- "DOC_RIGOR_4": "A Lock Ye Never Picked Ain't a Lock · Prove the Gate",
105
- "DOC_RIGOR_5": "The Key Hangs in Another's Cabin · External Gate",
106
- "DOC_OPS_1": "Know What's in the Hold · Tool Discovery",
107
- "DOC_OPS_2": "No Line Left Snagged · Commands Must Return",
108
- "DOC_OPS_3": "Mend the Hull, Not the Figurehead · Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "Scuttle Her Whole · Complete the Teardown",
110
- "DOC_OPS_5": "Mark How to Sound It, Not an Old Reading · Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "Droppin' Anchor Don't Redraw the Charts · Restart Is Not Reload",
112
- "DOC_OPS_7": "One Longboat at a Time Past the Fort · Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Enter the Log · Persist Insight",
114
- "DOC_PROCESS_2": "Chart Before You Sail · Plan Before Acting",
115
- "DOC_PROCESS_3": "Travel Light · Context Economy",
116
- "DOC_PROCESS_4": "Read the Charts First · Read the Docs First",
117
- "DOC_PROCESS_5": "The Captain's Word Before We Sail · Consent Before Push",
118
- "DOC_PROCESS_6": "Set Yer Bearing Out Before Ye Sail In · Bound the Loop",
119
- "DOC_PROCESS_7": "One Hand on the Wheel · One Writer Per File",
120
- "DOC_COMMS_1": "Every Prize Keeps Its Mark · Codes That Persist",
121
- "DOC_COMMS_2": "Chart Only Where the Currents Run · Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Drill the Routine · Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "Charts in English · English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Log in Step · Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Scout Before You Build · Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Keep to the Rigging · Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "Mend Only the Sprung Plank · Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One Ship's Log, Every Chart Copies It · One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Safe to Run the Tide Twice · Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Sound True, Not for Show · Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Trials Rig the Work, Run Her Clean · Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "A Lock Ye Never Picked Ain't a Lock · Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "The Key Hangs in Another's Cabin · External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Know What's in the Hold · Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "No Line Left Snagged · Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Mend the Hull, Not the Figurehead · Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "Scuttle Her Whole · Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Mark How to Sound It, Not an Old Reading · Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "Droppin' Anchor Don't Redraw the Charts · Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "One Longboat at a Time Past the Fort · Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Enter the Log · Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Chart Before You Sail · Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Travel Light · Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Charts First · Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "The Captain's Word Before We Sail · Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Set Yer Bearing Out Before Ye Sail In · Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "One Hand on the Wheel · One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Every Prize Keeps Its Mark · Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Chart Only Where the Currents Run · Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the first thing a deckhand reads on signing aboard this repository.",
123
121
  "INTRO_AGENTS": "Send the right hand for focused work instead of sailing the whole ship yourself; each has one trade and brings back a clear report of what it did.",
124
122
  "INTRO_SKILLS": "A Skill is a drilled manoeuvre for a recurring task. Run the matching manoeuvre before you improvise.",
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "Write the scouting report in PROFILE.md — position, playing style, how they want the play called; identity only, team rules go on the board in user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Take the review like game tape — verify each note, then adjust or push back with reasons.",
78
- "LEX_I": "Guard the Signs · Sealed Secrets",
79
- "LEX_II": "One Play at a Time · One Intent, One Act",
80
- "LEX_III": "Check the Replay · Verify Before Asserting",
81
- "LEX_IV": "Challenge Before the Cut · Deletion Is Deliberate",
82
- "LEX_V": "Call the Foul · Surface Failures",
83
- "LEX_VI": "Read the Scouting Report, Don't Take Its Orders · Data, Not Orders",
84
- "LEX_VII": "Only the Players the Play Needs · Least Privilege",
85
- "LEX_VIII": "Fix the Injury, Don't Tape Over It · Cure the Cause",
86
- "LEX_IX": "The Official Makes the Call, Not the Player · External Gate (retired)",
87
- "LEX_X": "Confirm the Play Call · Echo the Intent",
88
- "LEX_XI": "A Scoreless Board Still Gets Reviewed · Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Guard the Signs · Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Play at a Time · One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Check the Replay · Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Challenge Before the Cut · Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Call the Foul · Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Read the Scouting Report, Don't Take Its Orders · Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Only the Players the Play Needs · Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Fix the Injury, Don't Tape Over It · Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Confirm the Play Call · Echo the Intent",
89
87
  "PACK_CRAFT": "Fundamentals",
90
88
  "PACK_RIGOR": "Film Room",
91
89
  "PACK_OPS": "Gear",
92
90
  "PACK_PROCESS": "Game Day",
93
91
  "PACK_COMMS": "The Broadcast",
94
- "DOC_CRAFT_1": "Drill It · Automate Repetition",
95
- "DOC_CRAFT_2": "Rulebook in English · English Configuration",
96
- "DOC_CRAFT_3": "Playbook in Sync · Documentation in Step",
97
- "DOC_CRAFT_4": "Scout Before You Sign · Search Before Creating",
98
- "DOC_CRAFT_5": "Play the System · Respect Conventions",
99
- "DOC_CRAFT_6": "Run the Play, Not the Whole Playbook · Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One Official Scorer · One Writer Per Value",
101
- "DOC_RIGOR_1": "Safe to Run Twice · Idempotent by Default",
102
- "DOC_RIGOR_2": "Test the Score, Not the Locker Room · Honest Tests",
103
- "DOC_RIGOR_3": "Cover Every Receiver, Then Snap the Tape · Cover and Verify",
104
- "DOC_RIGOR_4": "A Defence Never Attacked Isn't a Defence · Prove the Gate",
105
- "DOC_RIGOR_5": "The Official Makes the Call, Not the Player · External Gate",
106
- "DOC_OPS_1": "Know Your Equipment · Tool Discovery",
107
- "DOC_OPS_2": "No Play Left in Limbo · Commands Must Return",
108
- "DOC_OPS_3": "Coach the Player, Not the Scoreboard · Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "See the Whole Rebuild Through · Complete the Teardown",
110
- "DOC_OPS_5": "Trust the Live Read, Not Last Week's Stat · Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "A Timeout Isn't a New Playbook · Restart Is Not Reload",
112
- "DOC_OPS_7": "One Substitution at a Time · Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Into the Record Book · Persist Insight",
114
- "DOC_PROCESS_2": "Game Plan First · Plan Before Acting",
115
- "DOC_PROCESS_3": "Travel Light · Context Economy",
116
- "DOC_PROCESS_4": "Read the Scouting Report First · Read the Docs First",
117
- "DOC_PROCESS_5": "Get the Sign Before the Pitch · Consent Before Push",
118
- "DOC_PROCESS_6": "Call the Final Whistle First · Bound the Loop",
119
- "DOC_PROCESS_7": "One Ball, One Carrier · One Writer Per File",
120
- "DOC_COMMS_1": "Every Player Keeps a Number · Codes That Persist",
121
- "DOC_COMMS_2": "Draw Up the Play Only When It Moves · Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Drill It · Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "Rulebook in English · English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Playbook in Sync · Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Scout Before You Sign · Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Play the System · Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "Run the Play, Not the Whole Playbook · Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One Official Scorer · One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Safe to Run Twice · Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Test the Score, Not the Locker Room · Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Cover Every Receiver, Then Snap the Tape · Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "A Defence Never Attacked Isn't a Defence · Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "The Official Makes the Call, Not the Player · External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Know Your Equipment · Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "No Play Left in Limbo · Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Coach the Player, Not the Scoreboard · Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "See the Whole Rebuild Through · Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Trust the Live Read, Not Last Week's Stat · Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "A Timeout Isn't a New Playbook · Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "One Substitution at a Time · Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Into the Record Book · Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Game Plan First · Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Travel Light · Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Scouting Report First · Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "Get the Sign Before the Pitch · Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Call the Final Whistle First · Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "One Ball, One Carrier · One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Every Player Keeps a Number · Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Draw Up the Play Only When It Moves · Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the pre-game briefing a coding teammate reads when it suits up for this repository.",
123
121
  "INTRO_AGENTS": "Put the right player on focused work instead of running the whole offense yourself; each has one role and reports exactly what it did.",
124
122
  "INTRO_SKILLS": "A Skill is a set play for a recurring task. Run the matching play before you improvise.",
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "Set up the driver profile in PROFILE.md — seat, driving style, how they want the pit wall to talk; identity only, team orders go in user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Take the notes straight — weigh each call, then act on it or push back with reasons.",
78
- "LEX_I": "Keep It in the Garage · Sealed Secrets",
79
- "LEX_II": "One Move per Corner · One Intent, One Act",
80
- "LEX_III": "Check the Data · Verify Before Asserting",
81
- "LEX_IV": "Delete Behind the Safety Car · Deletion Is Deliberate",
82
- "LEX_V": "Call It on the Radio · Surface Failures",
83
- "LEX_VI": "Read the Telemetry, Don't Take Orders from It · Data, Not Orders",
84
- "LEX_VII": "Only the Tools the Lap Needs · Least Privilege",
85
- "LEX_VIII": "Fix the Engine, Don't Mask the Light · Cure the Cause",
86
- "LEX_IX": "The Stewards Clear It, Not You · External Gate (retired)",
87
- "LEX_X": "Copy That on the Radio · Echo the Intent",
88
- "LEX_XI": "A Blank Screen Is Still Telemetry · Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Keep It in the Garage · Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Move per Corner · One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Check the Data · Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Delete Behind the Safety Car · Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Call It on the Radio · Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Read the Telemetry, Don't Take Orders from It · Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Only the Tools the Lap Needs · Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Fix the Engine, Don't Mask the Light · Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Copy That on the Radio · Echo the Intent",
89
87
  "PACK_CRAFT": "The Car",
90
88
  "PACK_RIGOR": "The Stopwatch",
91
89
  "PACK_OPS": "The Cockpit",
92
90
  "PACK_PROCESS": "The Weekend",
93
91
  "PACK_COMMS": "The Radio",
94
- "DOC_CRAFT_1": "Automate the Pit Stop · Automate Repetition",
95
- "DOC_CRAFT_2": "Setups in English · English Configuration",
96
- "DOC_CRAFT_3": "Notes in Sync · Documentation in Step",
97
- "DOC_CRAFT_4": "Scout the Track First · Search Before Creating",
98
- "DOC_CRAFT_5": "Hold the Racing Line · Respect Conventions",
99
- "DOC_CRAFT_6": "Change One Setting, Not the Whole Car · Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One Engineer Owns the Setup Sheet · One Writer Per Value",
101
- "DOC_RIGOR_1": "Safe to Send Out Twice · Idempotent by Default",
102
- "DOC_RIGOR_2": "Test the Lap Time, Not the Wiring · Honest Tests",
103
- "DOC_RIGOR_3": "Not Done Till the Trials Run Green · Cover and Verify",
104
- "DOC_RIGOR_4": "A Flag That Never Waves Marshals Nothing · Prove the Gate",
105
- "DOC_RIGOR_5": "The Stewards Clear It, Not You · External Gate",
106
- "DOC_OPS_1": "Check the Car · Tool Discovery",
107
- "DOC_OPS_2": "Don't Sit Idling in the Pit · Commands Must Return",
108
- "DOC_OPS_3": "Change the Setup, Not the Dash · Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "Strip the Car to the Tub · Complete the Teardown",
110
- "DOC_OPS_5": "Read Live Telemetry, Not an Old Sheet · Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "A New Lap Won't Load a New Setup · Restart Is Not Reload",
112
- "DOC_OPS_7": "Don't Burn the Tyre Allocation · Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Put It in the Debrief · Persist Insight",
114
- "DOC_PROCESS_2": "Set the Strategy · Plan Before Acting",
115
- "DOC_PROCESS_3": "Run Light on Fuel · Context Economy",
116
- "DOC_PROCESS_4": "Read the Briefing First · Read the Docs First",
117
- "DOC_PROCESS_5": "My Call Before You Push · Consent Before Push",
118
- "DOC_PROCESS_6": "Set the Lap Count Before You Go Out · Bound the Loop",
119
- "DOC_PROCESS_7": "My Car, My Setup · One Writer Per File",
120
- "DOC_COMMS_1": "Every Setup Change Gets a Number · Codes That Persist",
121
- "DOC_COMMS_2": "Show Me the Data, Not a Pretty Picture · Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Automate the Pit Stop · Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "Setups in English · English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Notes in Sync · Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Scout the Track First · Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Hold the Racing Line · Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "Change One Setting, Not the Whole Car · Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One Engineer Owns the Setup Sheet · One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Safe to Send Out Twice · Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Test the Lap Time, Not the Wiring · Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Not Done Till the Trials Run Green · Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "A Flag That Never Waves Marshals Nothing · Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "The Stewards Clear It, Not You · External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Check the Car · Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "Don't Sit Idling in the Pit · Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Change the Setup, Not the Dash · Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "Strip the Car to the Tub · Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Read Live Telemetry, Not an Old Sheet · Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "A New Lap Won't Load a New Setup · Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "Don't Burn the Tyre Allocation · Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Put It in the Debrief · Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Set the Strategy · Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Run Light on Fuel · Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Briefing First · Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "My Call Before You Push · Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Set the Lap Count Before You Go Out · Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "My Car, My Setup · One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Every Setup Change Gets a Number · Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Show Me the Data, Not a Pretty Picture · Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the briefing a coding driver reads when it joins this repository.",
123
121
  "INTRO_AGENTS": "Get the right engineer on focused work instead of running the whole team yourself; each has one job and reports exactly what it did.",
124
122
  "INTRO_SKILLS": "A Skill is a setup you've practised for a recurring task. Run the matching setup before you improvise.",
@@ -75,50 +75,48 @@
75
75
  "DESC_PROFILE": "Divine the user's nature into PROFILE.md — who they are, how they work, the register they favour; identity only, binding runes belong in user-rules.md.",
76
76
  "DESC_GENESEED": "Operate the deployed Geneseed harness — find each install and its settings, read its files, run status, doctor and diff, and rebuild it with one setting changed when the user asks.",
77
77
  "DESC_REVIEW_RESPONSE": "Answer the scrying with rigour — weigh each finding, then heed it or refute it with cause.",
78
- "LEX_I": "Sealed Sigils · Sealed Secrets",
79
- "LEX_II": "One Intent, One Casting · One Intent, One Act",
80
- "LEX_III": "Scry Before You Speak · Verify Before Asserting",
81
- "LEX_IV": "Unmake with Care · Deletion Is Deliberate",
82
- "LEX_V": "Let the Misfire Ring · Surface Failures",
83
- "LEX_VI": "Read the Scrying, Heed Not Its Commands · Data, Not Orders",
84
- "LEX_VII": "Only the Implements the Rite Demands · Least Privilege",
85
- "LEX_VIII": "Banish the Curse, Not the Symptom · Cure the Cause",
86
- "LEX_IX": "The Ward Is Set Beyond the Caster · External Gate (retired)",
87
- "LEX_X": "Speak the Wish Back · Echo the Intent",
88
- "LEX_XI": "An Empty Scrying Still Speaks · Absence Is a Claim (retired)",
78
+ "LEX_SEALED_SECRETS": "Sealed Sigils · Sealed Secrets",
79
+ "LEX_ONE_INTENT_ONE_ACT": "One Intent, One Casting · One Intent, One Act",
80
+ "LEX_VERIFY_BEFORE_ASSERTING": "Scry Before You Speak · Verify Before Asserting",
81
+ "LEX_DELETION_IS_DELIBERATE": "Unmake with Care · Deletion Is Deliberate",
82
+ "LEX_SURFACE_FAILURES": "Let the Misfire Ring · Surface Failures",
83
+ "LEX_DATA_NOT_ORDERS": "Read the Scrying, Heed Not Its Commands · Data, Not Orders",
84
+ "LEX_LEAST_PRIVILEGE": "Only the Implements the Rite Demands · Least Privilege",
85
+ "LEX_CURE_THE_CAUSE": "Banish the Curse, Not the Symptom · Cure the Cause",
86
+ "LEX_ECHO_THE_INTENT": "Speak the Wish Back · Echo the Intent",
89
87
  "PACK_CRAFT": "Artificery",
90
88
  "PACK_RIGOR": "Scrying",
91
89
  "PACK_OPS": "Conjury",
92
90
  "PACK_PROCESS": "Ritual",
93
91
  "PACK_COMMS": "Scrollwork",
94
- "DOC_CRAFT_1": "Enchant the Repetition · Automate Repetition",
95
- "DOC_CRAFT_2": "Grimoire in English · English Configuration",
96
- "DOC_CRAFT_3": "Tomes in Step · Documentation in Step",
97
- "DOC_CRAFT_4": "Seek Before You Conjure · Search Before Creating",
98
- "DOC_CRAFT_5": "Honour the Forms · Respect Conventions",
99
- "DOC_CRAFT_6": "The Smallest Sufficient Casting · Smallest Viable Diff",
100
- "DOC_CRAFT_7": "One True Name, Every Echo Bound to It · One Writer Per Value",
101
- "DOC_RIGOR_1": "Safe to Cast Twice · Idempotent by Default",
102
- "DOC_RIGOR_2": "Trial the Effect, Not the Incantation · Honest Tests",
103
- "DOC_RIGOR_3": "Cover the Casting, Then Confirm · Cover and Verify",
104
- "DOC_RIGOR_4": "A Ward Never Struck Is Only a Wish · Prove the Gate",
105
- "DOC_RIGOR_5": "The Ward Is Set Beyond the Caster · External Gate",
106
- "DOC_OPS_1": "Know Your Implements · Tool Discovery",
107
- "DOC_OPS_2": "No Spell Left Hanging · Commands Must Return",
108
- "DOC_OPS_3": "Mend the Spell, Not the Glamour · Edit the Source, Not the Surface",
109
- "DOC_OPS_4": "Unmake It Wholly · Complete the Teardown",
110
- "DOC_OPS_5": "Scry Anew, Trust No Faded Vision · Record the Probe, Not the Snapshot",
111
- "DOC_OPS_6": "Recasting Won't Reread the Grimoire · Restart Is Not Reload",
112
- "DOC_OPS_7": "Draw Slowly From a Rationed Well · Serialize Against a Rationed Resource",
113
- "DOC_PROCESS_1": "Bind It to the Tome · Persist Insight",
114
- "DOC_PROCESS_2": "Ritual Before Working · Plan Before Acting",
115
- "DOC_PROCESS_3": "Conserve the Mana · Context Economy",
116
- "DOC_PROCESS_4": "Read the Tomes First · Read the Docs First",
117
- "DOC_PROCESS_5": "Assent Before the Sending · Consent Before Push",
118
- "DOC_PROCESS_6": "Bind the Circle Before You Step In · Bound the Loop",
119
- "DOC_PROCESS_7": "One Quill Per Grimoire · One Writer Per File",
120
- "DOC_COMMS_1": "Every Rune Keeps Its Name · Codes That Persist",
121
- "DOC_COMMS_2": "Draw the Sigil Only Where the Lines Bind · Structure Beside Prose",
92
+ "DOC_AUTOMATE_REPETITION": "Enchant the Repetition · Automate Repetition",
93
+ "DOC_ENGLISH_CONFIGURATION": "Grimoire in English · English Configuration",
94
+ "DOC_DOCUMENTATION_IN_STEP": "Tomes in Step · Documentation in Step",
95
+ "DOC_SEARCH_BEFORE_CREATING": "Seek Before You Conjure · Search Before Creating",
96
+ "DOC_RESPECT_CONVENTIONS": "Honour the Forms · Respect Conventions",
97
+ "DOC_SMALLEST_VIABLE_DIFF": "The Smallest Sufficient Casting · Smallest Viable Diff",
98
+ "DOC_ONE_WRITER_PER_VALUE": "One True Name, Every Echo Bound to It · One Writer Per Value",
99
+ "DOC_IDEMPOTENT_BY_DEFAULT": "Safe to Cast Twice · Idempotent by Default",
100
+ "DOC_HONEST_TESTS": "Trial the Effect, Not the Incantation · Honest Tests",
101
+ "DOC_COVER_AND_VERIFY": "Cover the Casting, Then Confirm · Cover and Verify",
102
+ "DOC_PROVE_THE_GATE": "A Ward Never Struck Is Only a Wish · Prove the Gate",
103
+ "DOC_EXTERNAL_GATE": "The Ward Is Set Beyond the Caster · External Gate",
104
+ "DOC_TOOL_DISCOVERY": "Know Your Implements · Tool Discovery",
105
+ "DOC_COMMANDS_MUST_RETURN": "No Spell Left Hanging · Commands Must Return",
106
+ "DOC_EDIT_THE_SOURCE_NOT_THE_SURFACE": "Mend the Spell, Not the Glamour · Edit the Source, Not the Surface",
107
+ "DOC_COMPLETE_THE_TEARDOWN": "Unmake It Wholly · Complete the Teardown",
108
+ "DOC_RECORD_THE_PROBE_NOT_THE_SNAPSHOT": "Scry Anew, Trust No Faded Vision · Record the Probe, Not the Snapshot",
109
+ "DOC_RESTART_IS_NOT_RELOAD": "Recasting Won't Reread the Grimoire · Restart Is Not Reload",
110
+ "DOC_SERIALIZE_AGAINST_A_RATIONED_RESOURCE": "Draw Slowly From a Rationed Well · Serialize Against a Rationed Resource",
111
+ "DOC_PERSIST_INSIGHT": "Bind It to the Tome · Persist Insight",
112
+ "DOC_PLAN_BEFORE_ACTING": "Ritual Before Working · Plan Before Acting",
113
+ "DOC_CONTEXT_ECONOMY": "Conserve the Mana · Context Economy",
114
+ "DOC_READ_THE_DOCS_FIRST": "Read the Tomes First · Read the Docs First",
115
+ "DOC_CONSENT_BEFORE_PUSH": "Assent Before the Sending · Consent Before Push",
116
+ "DOC_BOUND_THE_LOOP": "Bind the Circle Before You Step In · Bound the Loop",
117
+ "DOC_ONE_WRITER_PER_FILE": "One Quill Per Grimoire · One Writer Per File",
118
+ "DOC_CODES_THAT_PERSIST": "Every Rune Keeps Its Name · Codes That Persist",
119
+ "DOC_STRUCTURE_BESIDE_PROSE": "Draw the Sigil Only Where the Lines Bind · Structure Beside Prose",
122
120
  "INTRO_DOC": "This file is the first page an arcane familiar reads on entering this repository.",
123
121
  "INTRO_AGENTS": "Summon the right familiar for focused work rather than casting the whole rite in one circle; each has one purpose and returns a clear account of what it wrought.",
124
122
  "INTRO_SKILLS": "A Skill is a proven spell for a recurring task. Speak the matching spell before improvising.",
@@ -0,0 +1 @@
1
+ import{s as e}from"./sections-GalMS0Zv.js";import{i as t,t as n}from"./react-B9Z_tXRV.js";import{C as r,D as i,H as a,p as o,r as s,vt as c}from"./index-C1yil5j1.js";import{a as l,i as u,n as d,o as f,r as p,s as m,t as h}from"./usePoll-O0sJEw1Y.js";var g=e(t(),1),_=n();function v({s:e}){let t=u[e.status]||u.idle,n=e.files,a=e.todos,o=a&&a.total>0||e.error||e.blocked_on;return(0,_.jsxs)(`a`,{className:`card pad-md act-card`,href:`#/activity/${encodeURIComponent(e.session_id)}`,children:[(0,_.jsxs)(`div`,{className:`row between wrap gap-12`,children:[(0,_.jsxs)(`div`,{className:`row gap-10`,style:{minWidth:0},children:[(0,_.jsx)(`span`,{className:`feed-dot ${t.cls||`acc`}`,style:{width:9,height:9}}),(0,_.jsxs)(`div`,{style:{minWidth:0},children:[(0,_.jsx)(`h3`,{style:{margin:0},children:e.title||f(e.cwd)||e.session_id}),e.cwd&&(0,_.jsx)(`div`,{className:`dim mono`,style:{fontSize:12,...d},title:e.cwd,children:e.cwd})]})]}),(0,_.jsxs)(`div`,{className:`row gap-8`,style:{flexShrink:0},children:[e.model&&(0,_.jsx)(`span`,{className:`badge mono`,title:`model`,children:e.model}),e.agent&&(0,_.jsx)(`span`,{className:`badge`,children:e.agent}),(0,_.jsxs)(`span`,{className:`badge ${t.cls}`,children:[(0,_.jsx)(`span`,{className:`dot`}),t.label]}),(0,_.jsx)(r,{name:`chevron`,className:`glyph act-chev`})]})]}),e.phase&&(0,_.jsxs)(`div`,{className:`row gap-8`,style:{marginTop:10,fontSize:14},children:[(0,_.jsx)(r,{name:`activity`}),(0,_.jsx)(`span`,{style:d,children:e.phase})]}),(e.tokens>0||e.cost>0||e.turn_started_at||n&&n.count>0)&&(0,_.jsxs)(`div`,{className:`row wrap`,style:{gap:16,marginTop:12,fontSize:13,color:`var(--text-2)`},children:[e.tokens>0&&(0,_.jsxs)(`span`,{children:[m(e.tokens),` tok`]}),e.cost>0&&(0,_.jsxs)(`span`,{children:[`$`,e.cost.toFixed(2)]}),e.turn_started_at?(0,_.jsx)(`span`,{children:(0,_.jsx)(p,{startedAt:e.turn_started_at})}):null,n&&n.count>0&&(0,_.jsxs)(`span`,{children:[n.count,` file`,n.count===1?``:`s`,` `,(0,_.jsxs)(`span`,{style:{color:`var(--good)`},children:[`+`,n.additions]}),` `,(0,_.jsxs)(`span`,{style:{color:`var(--bad)`},children:[`−`,n.deletions]})]})]}),o&&(0,_.jsxs)(`div`,{className:`row between wrap gap-12`,style:{marginTop:12,paddingTop:10,borderTop:`1px solid var(--line)`},children:[a&&a.total>0?(0,_.jsxs)(`span`,{className:`row gap-8 dim`,style:{fontSize:13},children:[(0,_.jsx)(l,{done:a.done,total:a.total}),`plan `,a.done,`/`,a.total]}):(0,_.jsx)(`span`,{}),e.error?(0,_.jsx)(`span`,{className:`badge bad`,title:e.error,style:{maxWidth:300,...d},children:e.error}):e.blocked_on?(0,_.jsx)(`span`,{className:`badge bad`,title:e.blocked_on,style:{maxWidth:300,...d},children:e.blocked_on}):null]}),(0,_.jsxs)(`div`,{className:`dim mono`,style:{fontSize:11,marginTop:8},children:[`updated `,i(e.updated_at),` ago`]})]})}function y(){let[e,t]=(0,g.useState)(null),[n,r]=(0,g.useState)(``);h(e=>c.activity().then(n=>{e()&&(t(n),r(``))},t=>{e()&&r(t.message)}),2e3,[]);let i=!e||e.enabled!==!1,l=e?.activity||[],u=a(),d=async()=>{let e=!i;try{let n=await c.activityToggle(e);t(e=>({...e||{},enabled:n.enabled,activity:n.enabled&&e?.activity||[]})),r(``)}catch(e){r(e.message)}};return(0,_.jsxs)(`div`,{className:`narrow`,children:[(0,_.jsxs)(`div`,{className:`head-row mb-16`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h1`,{className:`h`,children:`Activity`}),(0,_.jsx)(`p`,{className:`sub`,children:`Live OpenCode sessions this harness is running: what each one is doing right now. Refreshes every couple of seconds; sessions drop off when their process exits.`})]}),(0,_.jsxs)(`div`,{className:`row gap-10`,style:{alignItems:`center`,flexShrink:0},children:[(0,_.jsx)(`span`,{className:`dim mono`,style:{fontSize:12},children:i?`tracking on`:`tracking off`}),(0,_.jsx)(`div`,{className:`sw-toggle${i?` on`:``}`,role:`switch`,"aria-checked":i,"aria-label":`Toggle activity tracking`,tabIndex:0,onClick:d,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),d())}})]})]}),(0,_.jsx)(s,{error:n,style:{marginBottom:12}}),e?i?l.length===0?(0,_.jsxs)(`div`,{className:`empty`,children:[(0,_.jsx)(`div`,{className:`big`,children:`No active sessions`}),`Run `,(0,_.jsx)(`code`,{children:`opencode`}),` and the sessions it spins up appear here.`]}):(0,_.jsx)(`div`,{className:`stack gap-12`,ref:u,children:l.map(e=>(0,_.jsx)(`div`,{"data-flip":e.session_id,children:(0,_.jsx)(v,{s:e})},e.session_id))}):(0,_.jsxs)(`div`,{className:`empty`,children:[(0,_.jsx)(`div`,{className:`big`,children:`Activity tracking is off`}),`The plugin isn't recording sessions. Flip the switch to turn it back on.`]}):(0,_.jsx)(o,{label:`Reading live sessions…`})]})}export{y as default};
@@ -0,0 +1 @@
1
+ import{s as e}from"./sections-GalMS0Zv.js";import{i as t,t as n}from"./react-B9Z_tXRV.js";import{C as r,D as i,p as a,vt as o}from"./index-C1yil5j1.js";import{i as s,n as c,o as l,r as u,s as d,t as f}from"./usePoll-O0sJEw1Y.js";var p=e(t(),1),m=n();function h(e){return e.kind===`tool`?e.status===`error`?`bad`:e.status===`completed`?`ok`:`acc`:{retry:`warn`,error:`bad`,subtask:`acc`,text:`acc`}[e.kind]||``}function g({rec:e}){let t=e.who===`you`,n=[];t||(e.kind===`tool`&&e.ms!=null&&n.push(`${(e.ms/1e3).toFixed(1)}s`),e.kind===`step`&&(e.tokens&&n.push(`${d(e.tokens)} tok`),e.cost&&n.push(`$${e.cost.toFixed(2)}`)),e.kind===`subtask`&&e.agent&&n.unshift(e.agent));let r=!t&&(e.kind===`text`||e.kind===`thinking`||e.kind===`step`),i=t?e.text:e.label||e.snippet||e.kind;return(0,m.jsxs)(`div`,{className:`row gap-10`,style:{alignItems:`baseline`},children:[(0,m.jsx)(`span`,{className:`badge ${t?``:`acc`}`,style:{flexShrink:0,minWidth:52,justifyContent:`center`},children:t?`you`:`agent`}),(0,m.jsxs)(`div`,{style:{minWidth:0,flex:1,fontSize:13},children:[!t&&(0,m.jsx)(`span`,{className:`feed-dot ${h(e)||`acc`}`,style:{display:`inline-block`,marginRight:8,verticalAlign:`middle`}}),e.kind===`thinking`&&(0,m.jsx)(`span`,{className:`dim`,children:`thinking: `}),r?(0,m.jsx)(`span`,{className:`dim`,children:i}):t?i:(0,m.jsx)(`b`,{children:i}),e.error&&(0,m.jsxs)(`span`,{className:`dim`,children:[`: `,e.error]})]}),n.length>0&&(0,m.jsx)(`span`,{className:`dim mono`,style:{flexShrink:0,fontSize:12},children:n.join(` · `)})]})}function _({turns:e}){return!e||e.length===0?(0,m.jsx)(`div`,{className:`dim`,style:{fontSize:13},children:`No conversation captured yet.`}):(0,m.jsx)(`div`,{className:`stack gap-12`,children:e.map((e,t)=>{let n=e.role===`user`;return(0,m.jsxs)(`div`,{className:`row gap-10`,style:{alignItems:`baseline`},children:[(0,m.jsx)(`span`,{className:`badge ${n?``:`acc`}`,style:{flexShrink:0,minWidth:52,justifyContent:`center`},children:n?`you`:`agent`}),(0,m.jsx)(`div`,{style:{minWidth:0,fontSize:13,color:n?`inherit`:`var(--text-2)`},children:e.text})]},t)})})}function v({sid:e}){let[t,n]=(0,p.useState)(null),[h,v]=(0,p.useState)(``),[y,b]=(0,p.useState)(!1),[x,S]=(0,p.useState)(!1);f(t=>o.activityDetail(e).then(e=>{t()&&(n(e),v(``),b(!1))},e=>{t()&&(e.status===404?b(!0):v(e.message))}),2e3,[e]);let C=(0,m.jsxs)(`a`,{className:`btn ghost sm`,href:`#/activity`,style:{marginBottom:12,display:`inline-flex`,gap:6},children:[(0,m.jsx)(r,{name:`arrow`,style:{transform:`rotate(180deg)`}}),` Activity`]});if(y)return(0,m.jsxs)(`div`,{className:`narrow`,children:[C,(0,m.jsxs)(`div`,{className:`empty`,children:[(0,m.jsx)(`div`,{className:`big`,children:`Session ended`}),`It's no longer live. `,(0,m.jsx)(`a`,{href:`#/activity`,children:`Back to Activity`}),`.`]})]});if(!t)return(0,m.jsxs)(`div`,{className:`narrow`,children:[C,(0,m.jsx)(a,{label:`Loading session…`})]});let w=t.session,T=s[w.status]||s.idle,E=w.files,D=w.todos,O=!!(E&&E.items&&E.items.length>0),k=!!(D&&D.items&&D.items.length>0),A=t.conversation||[],j=t.timeline||[],M=[...A.filter(e=>e.role===`user`).map(e=>({who:`you`,text:e.text,t:e.t||0})),...j.map(e=>({...e,who:`agent`}))].sort((e,t)=>(e.t||0)-(t.t||0));return(0,m.jsxs)(`div`,{className:`narrow`,children:[C,h&&(0,m.jsx)(`p`,{className:`badge bad`,style:{marginBottom:12},children:h}),(0,m.jsxs)(`div`,{className:`card pad-md`,children:[(0,m.jsxs)(`div`,{className:`row between wrap gap-12`,children:[(0,m.jsxs)(`div`,{style:{minWidth:0},children:[(0,m.jsx)(`h1`,{className:`h`,style:{margin:0},children:w.title||l(w.cwd)||w.session_id}),w.cwd&&(0,m.jsx)(`div`,{className:`dim mono`,style:{fontSize:12,...c},title:w.cwd,children:w.cwd})]}),(0,m.jsxs)(`div`,{className:`row gap-8`,style:{flexShrink:0},children:[w.model&&(0,m.jsx)(`span`,{className:`badge mono`,children:w.model}),w.agent&&(0,m.jsx)(`span`,{className:`badge`,children:w.agent}),(0,m.jsxs)(`span`,{className:`badge ${T.cls}`,children:[(0,m.jsx)(`span`,{className:`dot`}),T.label]})]})]}),w.phase&&(0,m.jsxs)(`div`,{className:`row gap-8`,style:{marginTop:10,fontSize:14},children:[(0,m.jsx)(r,{name:`activity`}),(0,m.jsx)(`span`,{style:c,children:w.phase})]}),(0,m.jsxs)(`div`,{className:`row wrap`,style:{gap:16,marginTop:12,fontSize:13,color:`var(--text-2)`},children:[w.tokens>0&&(0,m.jsxs)(`span`,{children:[d(w.tokens),` tok`]}),w.cost>0&&(0,m.jsxs)(`span`,{children:[`$`,w.cost.toFixed(2)]}),w.turn_started_at?(0,m.jsx)(`span`,{children:(0,m.jsx)(u,{startedAt:w.turn_started_at})}):null,(0,m.jsxs)(`span`,{className:`dim`,children:[`updated `,i(w.updated_at),` ago`]})]}),(w.error||w.blocked_on)&&(0,m.jsx)(`div`,{style:{marginTop:10},children:(0,m.jsx)(`span`,{className:`badge bad`,style:{maxWidth:`100%`,...c},children:w.error||w.blocked_on})})]}),(O||k)&&(0,m.jsxs)(`div`,{className:`grid gap-12`,style:{marginTop:12,gridTemplateColumns:O&&k?`minmax(0, 1fr) minmax(0, 1fr)`:`1fr`},children:[O&&(0,m.jsxs)(`div`,{className:`card pad-md`,children:[(0,m.jsx)(`div`,{className:`card-head`,children:(0,m.jsxs)(`h3`,{children:[`Files touched `,(0,m.jsxs)(`span`,{className:`dim`,children:[`(`,E.count,`)`]})]})}),(0,m.jsx)(`div`,{className:`stack`,style:{gap:6,marginTop:8},children:E.items.map(e=>(0,m.jsxs)(`div`,{className:`row between gap-12`,style:{fontSize:13},children:[(0,m.jsx)(`span`,{className:`mono`,style:{...c,minWidth:0,flex:1},title:e.file,children:e.file}),(0,m.jsxs)(`span`,{style:{flexShrink:0},children:[(0,m.jsxs)(`span`,{style:{color:`var(--good)`},children:[`+`,e.additions]}),` `,(0,m.jsxs)(`span`,{style:{color:`var(--bad)`},children:[`−`,e.deletions]})]})]},e.file))})]}),k&&(0,m.jsxs)(`div`,{className:`card pad-md`,children:[(0,m.jsx)(`div`,{className:`card-head`,children:(0,m.jsxs)(`h3`,{children:[`Plan`,` `,(0,m.jsxs)(`span`,{className:`dim`,children:[`(`,D.done,`/`,D.total,`)`]})]})}),(0,m.jsx)(`div`,{className:`stack`,style:{gap:6,marginTop:8},children:D.items.map((e,t)=>(0,m.jsxs)(`div`,{className:`row gap-8`,style:{fontSize:13},children:[(0,m.jsx)(`span`,{className:`feed-dot ${e.status===`completed`?`ok`:e.status===`in_progress`?`acc`:``}`}),(0,m.jsx)(`span`,{style:{textDecoration:e.status===`completed`?`line-through`:`none`,color:e.status===`completed`?`var(--text-3)`:`inherit`},children:e.content})]},t))})]})]}),(0,m.jsxs)(`div`,{className:`card pad-md`,style:{marginTop:12},children:[(0,m.jsxs)(`div`,{className:`card-head`,style:{justifyContent:`space-between`,marginBottom:12},children:[(0,m.jsx)(`h3`,{children:`Timeline`}),j.length>0&&(0,m.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>S(e=>!e),children:x?`Show conversation`:`Show all ${j.length} steps`})]}),x?(0,m.jsx)(`div`,{className:`stack gap-12`,children:M.map((e,t)=>(0,m.jsx)(g,{rec:e},t))}):(0,m.jsx)(_,{turns:A})]})]})}export{v as default};