geneseed 4.32.0 → 5.0.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.
Files changed (246) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/DESIGN.md +2 -2
  3. package/README.md +6 -5
  4. package/SHIPPED.md +4 -3
  5. package/adapters/bob/README.md +6 -5
  6. package/adapters/claude-code/README.md +4 -3
  7. package/adapters/claude-code/skills/geneseed/SKILL.md +1 -1
  8. package/adapters/openclaude/README.md +4 -3
  9. package/adapters/opencode/GLOBAL-HARNESS-SPEC.md +3 -1
  10. package/adapters/opencode/HOW-OPENCODE-LOADS.md +2 -1
  11. package/adapters/opencode/README.md +18 -18
  12. package/adapters/opencode/plugins/geneseed-activity.js +57 -1
  13. package/adapters/opencode/plugins/geneseed-context.js +85 -18
  14. package/adapters/opencode/plugins/geneseed-guard.js +437 -76
  15. package/adapters/opencode/plugins/geneseed-learn.js +97 -23
  16. package/bin/geneseed-cli.mjs +17 -25
  17. package/bin/geneseed-hook.mjs +23 -8
  18. package/docs/DESIGN.md +175 -0
  19. package/docs/PRD.md +111 -0
  20. package/docs/README.md +3 -2
  21. package/docs/architecture.md +145 -0
  22. package/docs/concepts/agents.md +1 -1
  23. package/docs/concepts/collaboration.md +1 -1
  24. package/docs/concepts/enforcement-table.md +1 -1
  25. package/docs/concepts/exclusions.md +5 -5
  26. package/docs/concepts/footprint.md +1 -1
  27. package/docs/concepts/foreman-mode.md +2 -2
  28. package/docs/concepts/hooks.md +22 -8
  29. package/docs/concepts/host-matrix.md +2 -2
  30. package/docs/concepts/hosts.md +1 -1
  31. package/docs/concepts/kits.md +3 -1
  32. package/docs/concepts/ownership.md +1 -1
  33. package/docs/concepts/rules.md +15 -2
  34. package/docs/concepts/shared-tier.md +73 -0
  35. package/docs/concepts/skills.md +2 -2
  36. package/docs/concepts/themes.md +1 -1
  37. package/docs/extending.md +13 -12
  38. package/docs/guides/install-claude-code.md +1 -1
  39. package/docs/guides/install-opencode.md +1 -1
  40. package/docs/guides/migrate.md +8 -4
  41. package/docs/guides/project-context.md +2 -2
  42. package/docs/guides/setup-footprint.md +1 -1
  43. package/docs/guides/uninstall.md +2 -1
  44. package/docs/guides/upgrade-to-5.md +118 -0
  45. package/docs/guides/upgrade.md +21 -9
  46. package/docs/guides/wiki.md +3 -3
  47. package/docs/reference/env-context.md +5 -3
  48. package/docs/reference/environment.md +1 -1
  49. package/docs/reference/glossary.md +2 -0
  50. package/docs/reference/opencode-plugins.md +3 -3
  51. package/docs/reference/plugin-activity.md +1 -1
  52. package/docs/reference/plugin-context.md +1 -0
  53. package/docs/reference/plugin-guard.md +14 -6
  54. package/docs/reference/plugin-learn.md +13 -6
  55. package/docs/reference/troubleshoot-hooks.md +3 -3
  56. package/docs/reference/troubleshoot-update.md +14 -0
  57. package/docs/token-footprint.md +4 -3
  58. package/docs/understand/a-day.md +2 -2
  59. package/docs/understand/design-choices-install.md +2 -1
  60. package/docs/understand/enforced-vs-asked.md +1 -1
  61. package/docs/understand/machine-bob.md +2 -0
  62. package/docs/understand/machine-claude.md +7 -5
  63. package/docs/understand/machine-opencode.md +7 -5
  64. package/docs/understand/on-your-machine.md +4 -0
  65. package/docs/understand/take-it-out.md +1 -1
  66. package/docs/web-ui.md +135 -70
  67. package/harness.config.json +1 -1
  68. package/js/README.md +12 -7
  69. package/js/build/args.mjs +10 -8
  70. package/js/build/bundle.mjs +11 -13
  71. package/js/build/driver.mjs +66 -65
  72. package/js/build/emit-claude.mjs +22 -16
  73. package/js/build/emit-common.mjs +4 -5
  74. package/js/build/emit-opencode.mjs +22 -22
  75. package/js/build/fold.mjs +515 -0
  76. package/js/build/generate.mjs +41 -52
  77. package/js/build/render.mjs +115 -29
  78. package/js/build/rule-decide.mjs +273 -0
  79. package/js/build/source.mjs +4 -1
  80. package/js/build/stubs.mjs +70 -9
  81. package/js/build/version.mjs +10 -10
  82. package/js/cli-table.json +23 -83
  83. package/js/hosts/activity.mjs +2 -2
  84. package/js/hosts/geneseed-dir.mjs +1 -1
  85. package/js/hosts/hooks-context.mjs +389 -99
  86. package/js/hosts/hooks-learn.mjs +38 -7
  87. package/js/hosts/hooks-prims.mjs +4 -2
  88. package/js/hosts/hooks.mjs +114 -39
  89. package/js/hosts/hosts.mjs +150 -51
  90. package/js/hosts/installs.mjs +59 -171
  91. package/js/hosts/link.mjs +3 -5
  92. package/js/hosts/mcp.mjs +1 -1
  93. package/js/hosts/memory-files.mjs +219 -17
  94. package/js/hosts/ownership-gate.mjs +1 -1
  95. package/js/hosts/settings.mjs +18 -13
  96. package/js/hosts/shim.mjs +4 -33
  97. package/js/hosts/store-watch.mjs +191 -0
  98. package/js/inspect/checks-authoring.mjs +3 -3
  99. package/js/inspect/checks-build.mjs +45 -18
  100. package/js/inspect/checks-counts.mjs +4 -4
  101. package/js/inspect/checks-repo.mjs +13 -14
  102. package/js/inspect/cost.mjs +24 -2
  103. package/js/inspect/diff.mjs +123 -123
  104. package/js/inspect/doctor.mjs +22 -27
  105. package/js/inspect/excludes.mjs +181 -62
  106. package/js/inspect/inventory.mjs +22 -27
  107. package/js/inspect/registry.mjs +110 -32
  108. package/js/inspect/scan.mjs +5 -5
  109. package/js/inspect/status.mjs +141 -119
  110. package/js/inspect/validate.mjs +22 -24
  111. package/js/lib/fs.mjs +47 -50
  112. package/js/lib/json.mjs +10 -17
  113. package/js/lib/machine-dir.mjs +73 -0
  114. package/js/lib/paths.mjs +35 -33
  115. package/js/lib/proc.mjs +1 -1
  116. package/js/lib/prompt.mjs +19 -27
  117. package/js/lib/text.mjs +8 -12
  118. package/js/lib/udiff.mjs +11 -15
  119. package/js/loop/catalog.mjs +2 -3
  120. package/js/maintain/memory.mjs +17 -17
  121. package/js/maintain/migrate.mjs +120 -92
  122. package/js/maintain/setup.mjs +43 -32
  123. package/js/maintain/uninstall.mjs +43 -61
  124. package/js/maintain/update.mjs +200 -93
  125. package/js/ui/anim.mjs +21 -35
  126. package/js/ui/cli.mjs +36 -58
  127. package/js/ui/menu.mjs +22 -45
  128. package/js/ui/tui.mjs +27 -67
  129. package/js/web/actions.mjs +34 -34
  130. package/js/web/api.mjs +142 -79
  131. package/js/web/catalog.mjs +175 -46
  132. package/js/web/docs.mjs +33 -12
  133. package/js/web/doctor-worker.mjs +14 -0
  134. package/js/web/handler.mjs +16 -5
  135. package/js/web/routes.mjs +24 -22
  136. package/js/web/state.mjs +78 -19
  137. package/js/web/update-check.mjs +27 -12
  138. package/js/web/user-files.mjs +76 -104
  139. package/package.json +7 -4
  140. package/registry.json +48 -55
  141. package/src/AGENT.md.tmpl +13 -14
  142. package/src/agents/_self-improvement.md +1 -1
  143. package/src/agents/_template.md +1 -1
  144. package/src/agents/advocate.md +1 -1
  145. package/src/agents/architect.md +1 -1
  146. package/src/agents/developer.md +1 -1
  147. package/src/agents/devops-engineer.md +1 -1
  148. package/src/agents/docker-expert.md +1 -1
  149. package/src/agents/docs.md +1 -1
  150. package/src/agents/empiricist.md +1 -1
  151. package/src/agents/explorer.md +1 -1
  152. package/src/agents/framer.md +1 -1
  153. package/src/agents/historian.md +1 -1
  154. package/src/agents/kubernetes-specialist.md +1 -1
  155. package/src/agents/memory-curator.md +2 -2
  156. package/src/agents/operator.md +1 -1
  157. package/src/agents/performance.md +1 -1
  158. package/src/agents/pragmatist.md +1 -1
  159. package/src/agents/react-engineer.md +1 -1
  160. package/src/agents/react-reviewer.md +1 -1
  161. package/src/agents/researcher.md +1 -1
  162. package/src/agents/reviewer.md +1 -1
  163. package/src/agents/security.md +1 -1
  164. package/src/agents/skeptic.md +1 -1
  165. package/src/agents/spring-boot-engineer.md +1 -1
  166. package/src/agents/spring-reviewer.md +1 -1
  167. package/src/agents/spring-security.md +1 -1
  168. package/src/agents/steward.md +1 -1
  169. package/src/agents/tester.md +1 -1
  170. package/src/agents/user-advocate.md +1 -1
  171. package/src/agents/visionary.md +1 -1
  172. package/src/memory/README.md +1 -1
  173. package/src/skills/_self-improvement.md +2 -2
  174. package/src/skills/daydream/SKILL.md +2 -2
  175. package/src/skills/daydream/instructions.md +1 -1
  176. package/src/skills/geneseed.md +1 -1
  177. package/src/skills/learn-mode.md +1 -2
  178. package/src/skills/profile.md +2 -2
  179. package/src/skills/rule/approve.md +75 -0
  180. package/src/skills/rule/consolidate.md +3 -3
  181. package/src/skills/rule.md +14 -5
  182. package/src/skills/skill-forge.md +1 -1
  183. package/src/skills/teach.md +29 -12
  184. package/src/skills/wiki.md +1 -1
  185. package/themes/_TEMPLATE.json +1 -2
  186. package/themes/biker.json +1 -2
  187. package/themes/commentator.json +1 -2
  188. package/themes/cyberpunk.json +1 -2
  189. package/themes/gamer.json +1 -2
  190. package/themes/imperial.json +1 -2
  191. package/themes/joker.json +1 -2
  192. package/themes/marvin.json +1 -2
  193. package/themes/mean.json +1 -2
  194. package/themes/military.json +1 -2
  195. package/themes/neutral.json +1 -2
  196. package/themes/pirate.json +1 -2
  197. package/themes/sports.json +1 -2
  198. package/themes/verstappen.json +1 -2
  199. package/themes/wizard.json +1 -2
  200. package/web/dist/assets/Activity-Ci4PZco3.js +1 -0
  201. package/web/dist/assets/ActivityDetail-C8hroCND.js +1 -0
  202. package/web/dist/assets/AgentGlyph-k6o3gCM1.js +1 -0
  203. package/web/dist/assets/Bonsai-C1iBAt4v.js +1 -0
  204. package/web/dist/assets/{CopyButton-C5Li6awl.js → CopyButton-DJ3a4N88.js} +1 -1
  205. package/web/dist/assets/Dashboard-C_On4KXw.js +2 -0
  206. package/web/dist/assets/Docs-Kffdg5uV.js +5 -0
  207. package/web/dist/assets/GreenhouseView-k56_cBSF.js +1 -0
  208. package/web/dist/assets/Installs-DtEKLC9h.js +3 -0
  209. package/web/dist/assets/JournalView-RQnk5l7I.js +1 -0
  210. package/web/dist/assets/Kits-CXkEBpnf.js +1 -0
  211. package/web/dist/assets/Laws-DhhIVqmh.js +3 -0
  212. package/web/dist/assets/Library-CAUiEoJo.js +3 -0
  213. package/web/dist/assets/{Loops-CzitjxGV.js → Loops-LKD8mF4E.js} +2 -2
  214. package/web/dist/assets/{Markdown-C4S4tTA7.js → Markdown-0ORz7tAc.js} +21 -21
  215. package/web/dist/assets/OperatorHudView-CM5jNPwL.js +1 -0
  216. package/web/dist/assets/Personal-B6Uoly3C.js +2 -0
  217. package/web/dist/assets/{RailCats-D5weYPCS.js → RailCats-DQxxYBEP.js} +1 -1
  218. package/web/dist/assets/Settings-BTe6-wda.js +1 -0
  219. package/web/dist/assets/Tabs-CbdDWTp_.js +1 -0
  220. package/web/dist/assets/api-D_r0Jtla.js +1 -0
  221. package/web/dist/assets/controls-D4wmg_pl.js +1 -0
  222. package/web/dist/assets/index-HfGmYXab.js +3 -0
  223. package/web/dist/assets/index-ao3M-Fhm.css +1 -0
  224. package/web/dist/assets/motion-RlUl1osO.js +1 -0
  225. package/web/dist/assets/{sections-ChwaobfW.js → sections-CtFz7HFH.js} +1 -1
  226. package/web/dist/index.html +5 -5
  227. package/src/skills/quiz.md +0 -44
  228. package/web/dist/assets/Activity-Bjy64wHC.js +0 -1
  229. package/web/dist/assets/ActivityDetail-B0AaipP8.js +0 -1
  230. package/web/dist/assets/Bonsai-CJniRqaH.js +0 -1
  231. package/web/dist/assets/Dashboard-B-6DTmae.js +0 -2
  232. package/web/dist/assets/Docs-LRc30XL9.js +0 -5
  233. package/web/dist/assets/GreenhouseView-CcoYlaWo.js +0 -1
  234. package/web/dist/assets/Installs-dp1epTcE.js +0 -3
  235. package/web/dist/assets/JournalView-nFP4poCf.js +0 -1
  236. package/web/dist/assets/KitApply-DwyZUj57.js +0 -1
  237. package/web/dist/assets/Kits-C0IEdZXe.js +0 -1
  238. package/web/dist/assets/Laws-CkykmQWu.js +0 -3
  239. package/web/dist/assets/Library-Guh9HBZU.js +0 -2
  240. package/web/dist/assets/OperatorHudView-DLGNulIY.js +0 -1
  241. package/web/dist/assets/Personal-BMtberL8.js +0 -2
  242. package/web/dist/assets/Tabs-uYJqfuQt.js +0 -1
  243. package/web/dist/assets/api-BxjLd7Qd.js +0 -1
  244. package/web/dist/assets/index-DA7BiaE5.js +0 -3
  245. package/web/dist/assets/index-dbbDGFDq.css +0 -1
  246. package/web/dist/assets/motion-Bccx3zE8.js +0 -1
@@ -0,0 +1,75 @@
1
+ # {{SKILL}}: rule — approval flow
2
+
3
+ Decides what the fold left in `user-rules.draft.md`. That file sits in the shared tier, the
4
+ folder of `{{PATH_RULES}}` on a global install. If `{{PATH_RULES}}` is a relative path, this is
5
+ a project install: use `$XDG_CONFIG_HOME/geneseed/` (default `~/.config/geneseed/`) instead, and
6
+ never the project's own files. Below, "the shared file" is `user-rules.md` in that folder.
7
+ The draft is not active. Until the user decides, each drafted rule stays in its host file and
8
+ binds from there, so no step here may take a rule out of force. The ledger is `.fold-state.json`
9
+ in that folder: the `sha256` of a block is the key of its row under `items`. Writes here pass the
10
+ rule gate; that prompt is expected.
11
+
12
+ The console's Pending section (`js/build/rule-decide.mjs`) applies these same steps, so the user can
13
+ decide an item while you work. Read the draft and the ledger again before each decision: a block
14
+ that is gone was decided.
15
+
16
+ 1. **Read the draft and the ledger.** If the draft holds no block and no row is `pending`, say so
17
+ and stop.
18
+ 2. **Clear what is stale, and finish what a stop left.** Name each item to the user.
19
+ - A block whose row is not `pending` is already decided. For an `approved` rule, add its
20
+ `## Renumbered` line if that line is missing. Then delete the block and keep the row.
21
+ - Delete the block and the row of a `Choose` block whose host file is absent, is now its seed,
22
+ or now matches the shared file, or whose shared file is absent or is its seed: the next fold
23
+ moves the host file up.
24
+ - Delete the block and the row of a `Choose` block whose `sha256` is not the host file's key
25
+ now: the host file changed, and the next fold asks about the current text. Order proves
26
+ nothing, because a host file can return to earlier text. Get the key from the row's `kind`
27
+ and `host`:
28
+ `node -e "const c=require('crypto'),f=require('fs');console.log(c.createHash('sha256').update('<kind>\0<host>\0').update(f.readFileSync('<host file>')).digest('hex'))"`
29
+ - A `Rule from` block whose rule the shared file now holds word for word needs no decision.
30
+ Skip it: the next fold of that host clears it.
31
+ 3. **Decide one item at a time.** Show the item, then ask. "Later" leaves the block and the row as
32
+ they are. For each decision, write in this order: the target file, the ledger row, the draft.
33
+ A stop between the writes leaves the rule in force, and step 2 or the next fold finishes it.
34
+
35
+ ### A `Rule from <host>` block
36
+ The lines under the pointer are the rule as it stands, with its own metadata line.
37
+
38
+ - **Approve** moves it to the shared file:
39
+ 1. Apply steps 4 and 8 of Branch B: the shared file binds every host on the machine.
40
+ 2. Read the shared file and each `user-rules-retired.md` ({{LAW:verify-before-asserting}}): the one
41
+ beside the shared file, and the one in each host's own config directory, where each block's
42
+ `source` sits (`installs.json` holds project roots only). A host keeps its own retired rules,
43
+ and a retired number is never reused. The new number is one above the highest in all these
44
+ files.
45
+ 3. Append to the shared file `## R<new> — <title>`, then the lines under the pointer, unchanged. The next fold
46
+ finds the host copy by its title and body, so never reword here. Other wording is a new
47
+ rule: reject this item and take the text through Branch B.
48
+ 4. Set the row's `state` to `approved`.
49
+ 5. Under the draft's `## Renumbered` heading, add `- <host> R<old> -> R<new>: <title>`. Add the
50
+ heading if it is absent; it can sit anywhere in the draft, because the fold appends new
51
+ blocks after it. This line is a record: leave every `R<n>` citation in the facts as it is.
52
+ 6. Delete the block.
53
+
54
+ Leave the host file alone. The next fold of that host removes the rule from it.
55
+ - **Reject** means "keep it on this host only". Set the row's `state` to `rejected`, and delete
56
+ the block. The rule stays in the host file, and the fold never drafts it again.
57
+
58
+ ### A `Choose: <file>` block
59
+ The block is a pointer: `paths` gives the shared file, then the host file. Read both, show what
60
+ differs, and ask which one becomes the shared file. Nothing is deleted: `<stamp>` is the local
61
+ time as `YYYYMMDD-HHMMSS`, and `archived-<file>/` sits beside the file it keeps.
62
+
63
+ - **The host file:** copy the shared file to `archived-<file>/<stamp>`, then copy the host file
64
+ over the shared file. Set the row's `state` to `approved`. The next fold sees two equal files,
65
+ sets the host file aside and returns it to its seed.
66
+ - **The shared file:** move the host file to `archived-<file>/<stamp>`. Set the row's `state` to
67
+ `approved`. The next emit of that host writes its seed.
68
+ - **Keep both:** set the row's `state` to `rejected`. The host file keeps its override on that
69
+ host, and the fold never asks again about these bytes.
70
+
71
+ Delete the block in each case.
72
+
73
+ ### Close
74
+ Tell the user that a host file changes at the next global emit of that host, and that
75
+ `geneseed rebuild-all`, or *Rebuild all* in the console, runs one for every host.
@@ -5,7 +5,7 @@ topic over 40 facts, or a `misc` topic) goes to the memory-curator {{AGENT}}
5
5
  instead: it runs this flow topic by topic in its own context and also assigns topics.
6
6
 
7
7
  1. **Read the whole set once**: `MEMORY.md`, its `topics/` files, every fact they
8
- index, and any file in `{{DIR_MEMORY}}/` they forgot, into a scratch table — name, type, the claim in one
8
+ index, and any file in `{{PATH_MEMORY}}/` they forgot, into a scratch table — name, type, the claim in one
9
9
  line, date written, and whether this session already saw it contradicted
10
10
  ({{DOCTRINE:context-economy}}: read to decide, not to reread).
11
11
  2. **Verify against the live repo, not memory** ({{LAW:verify-before-asserting}}): every path,
@@ -17,7 +17,7 @@ instead: it runs this flow topic by topic in its own context and also assigns to
17
17
  that fired three times or more goes through Branch B of the rule {{SKILL}}), *retire* (wrong, superseded,
18
18
  or re-derivable by a fresh read). In doubt between keep and retire, keep and date it.
19
19
  4. **Show the plan, apply it with consent** ({{LAW:deletion-is-deliberate}}). To retire is to
20
- archive: move the file into `{{DIR_MEMORY}}/archive/`, never delete it; deleting a file
20
+ archive: move the file into `{{PATH_MEMORY}}/archive/`, never delete it; deleting a file
21
21
  from `archive/` is a further act that needs its own consent. A merge archives the
22
22
  file that did not survive. Merges keep both parents' `[[links]]`; rewrites keep the file name so
23
23
  inbound links hold; every survivor keeps valid frontmatter and the `**Why** / **How
@@ -25,7 +25,7 @@ instead: it runs this flow topic by topic in its own context and also assigns to
25
25
  archiving would keep it on disk, so propose deleting it outright, on sight
26
26
  ({{LAW:sealed-secrets}}).
27
27
  5. **Rebuild the index** with
28
- `geneseed learn --consolidate --memory <the {{DIR_MEMORY}}/ dir's path>`: one pointer line per
28
+ `geneseed learn --consolidate --memory <the {{PATH_MEMORY}}/ dir's path>`: one pointer line per
29
29
  surviving file in its `topics/<topic>.md`, and the `MEMORY.md` map recounted. Each
30
30
  hook is the fact's `description`, so sharpen a weak hook there — it should say why a
31
31
  future session would open the fact.
@@ -15,6 +15,9 @@ fork — when the index outgrows one useful read (~40 lines) or holds duplicate,
15
15
  contradictory or stale entries (a file, flag or command that no longer exists), after
16
16
  a release or large refactor, or when the user says "clean up memory", "consolidate",
17
17
  "what do you actually remember". The user's wiki is the [wiki {{SKILL}}](wiki.md)'s.
18
+ Run the **approval flow**, not the fork, when an emit reports items `to approve`, when
19
+ `user-rules.draft.md` holds pending items, or when the user asks to review them. The console's
20
+ Pending section decides the same items by the same steps; a user who decides there needs no flow here.
18
21
 
19
22
  ## Procedure
20
23
 
@@ -37,7 +40,7 @@ re-derived. Then take exactly one branch.
37
40
  per the {{MEMORY}} convention, and **show the exact content, frontmatter
38
41
  included** — so a wrong inference is visible before it is written, not after.
39
42
  4. On the user's word, write the file and rebuild the index
40
- (`geneseed learn --consolidate --memory <the {{DIR_MEMORY}}/ dir's path>`) so its line
43
+ (`geneseed learn --consolidate --memory <the {{PATH_MEMORY}}/ dir's path>`) so its line
41
44
  lands in `topics/<topic>.md` and the `MEMORY.md` map recounts.
42
45
 
43
46
  ### Branch B — a standing rule
@@ -70,7 +73,7 @@ re-derived. Then take exactly one branch.
70
73
  rules into the {{ONTOLOGY}}, {{LAWS}}, or {{DOCTRINES}} files themselves: they are
71
74
  regenerated on every update and the edit would be silently lost.
72
75
  5. **Destination.** Scope decides the file: a rule that holds across all the user's
73
- work goes to the *global* install's `user-rules.md`, a rule bound to this
76
+ work goes to the *global* install's `{{PATH_RULES}}`, a rule bound to this
74
77
  codebase to the project's. Tag it to match: `scope: project` — this repo, committable,
75
78
  binds the team; `scope: global` — every repository on the machine. `user` is still read
76
79
  as `global`. Read the target first ({{LAW:verify-before-asserting}} — the real current
@@ -90,9 +93,11 @@ re-derived. Then take exactly one branch.
90
93
  appending it to `user-rules.md` (retired rules live in `user-rules-retired.md`, which is
91
94
  never loaded — never write a rule there). For a promotion, after the rule lands, archive the source memory into
92
95
  `archive/` (with the same consent) so the lesson is not loaded twice.
93
- 8. **Keep the set lean.** After writing, if the file holds more than ~15 rules or
94
- any rule no longer changes behaviour, say so and propose merges or prunes — every
95
- rule is loaded every session, and a bloated set dilutes the rules that matter.
96
+ 8. **Keep the set lean.** After writing, state the file's token total (characters / 4;
97
+ the console's Rules page shows it, with each rule's cost). If that total has grown
98
+ beyond what the rules earn, or any rule no longer changes behaviour, say so and propose
99
+ merges or prunes — every rule is loaded every session, and a bloated set dilutes the
100
+ rules that matter.
96
101
 
97
102
  The asymmetry is deliberate: Branch A costs one question, Branch B costs several.
98
103
  The price is the safeguard — make remembering cheap and legislating expensive, or
@@ -110,11 +115,15 @@ adoption. Two more cases are due at any time:
110
115
 
111
116
  **Consolidation flow** → read [rule/consolidate.md](rule/consolidate.md) and follow it.
112
117
 
118
+ **Approval flow** → read [rule/approve.md](rule/approve.md) and follow it.
119
+
113
120
  ## Done when
114
121
  - For a rule or memory: the fork was put to the user, and then either a {{MEMORY}} file exists carrying its
115
122
  `force`, its `type` and its index line — or a rule stands in the right
116
123
  `user-rules.md`, having survived reformulation, its own counter-example and the
117
124
  {{LAWS}}, consented to explicitly, with any promoted source memory archived. The
118
125
  {{ONTOLOGY}}, {{LAWS}} and {{DOCTRINES}} files are untouched either way.
126
+ - For an approval: each item the user decided has its ledger state and no draft block, and no
127
+ rule left a host file by hand.
119
128
 
120
129
  <!-- INCLUDE: skills/_self-improvement.md -->
@@ -5,7 +5,7 @@
5
5
  {{CREDIT:mattpocock-skills:skills/productivity/writing-for-agents/SKILL.md}}
6
6
 
7
7
  **Trigger:** a task has repeated and no {{SKILL}} covers it; a {{SKILL}}'s
8
- notes in `{{DIR_NOTEBOOK}}/skill-notes/` hold a correction worth making; the user says "make this a
8
+ notes in `{{PATH_NOTES}}/skill-notes/` hold a correction worth making; the user says "make this a
9
9
  skill", "write a skill for…", "fix the trigger of…"; or two {{SKILLS}} keep
10
10
  disambiguating against each other and should merge. Meta by nature: it edits the
11
11
  apparatus, so every step ends in the user's assent ({{LAW:one-intent-one-act}}, {{LAW:deletion-is-deliberate}}).
@@ -3,16 +3,18 @@
3
3
  > {{DESC_TEACH}}
4
4
 
5
5
  <!-- invocation: user -->
6
+ <!-- aliases: quiz -->
6
7
 
7
- **Trigger:** the user wants to *learn* something and asks to be taught. Phrases: "teach me X",
8
- "get me up to speed on X", "this is confusing, break it down", "explain this passage",
9
- "how do I get to X in N days". Three shapes, picked from the ask: a **crash course**
10
- (from zero to functional, fast), a **decode** (confusing material handed over, make it
11
- click), or a **path** (a specific result by a deadline, day by day). To *test* what the
12
- user already knows rather than teach it, use the [quiz {{SKILL}}](quiz.md); to learn while building, the
13
- [learn-mode {{SKILL}}](learn-mode.md); to gather
14
- facts from the web first, [research](research.md); to convert a PDF or web page into
15
- readable form, [ingest](ingest.md).
8
+ **Trigger:** the user asks to be taught something, or to have what they know tested. Phrases:
9
+ "teach me X", "get me up to speed on X", "this is confusing, break it down", "explain this passage", "how do I get to X in N days"; "test me on X", "quiz me until it
10
+ sticks", "let me explain X and catch me", "prove me wrong". Six shapes, picked from the ask.
11
+ To be taught: a **crash course** (from zero to functional, fast), a **decode** (confusing
12
+ material handed over, make it click), or a **path** (a specific result by a deadline, day by
13
+ day). To be tested, not lectured: a **drill** (practise until reflex), a **feynman** (explain
14
+ it back, get caught on the stumbles), or a **gap check** (a mastery claim stress-tested). To
15
+ learn while building, use the [learn-mode {{SKILL}}](learn-mode.md); to gather facts from the web
16
+ first, [research](research.md); to convert a PDF or web page into readable form,
17
+ [ingest](ingest.md).
16
18
 
17
19
  ## Procedure
18
20
  1. Pin the footing before teaching anything: what the user wants to be able to *do*
@@ -36,18 +38,33 @@ readable form, [ingest](ingest.md).
36
38
  concrete criterion so they can tell they did it right, and one explicit
37
39
  *what-not-to-do* that day. Trace the whole path against the goal; if finishing
38
40
  every day would not deliver the result, rebuild it until it does.
41
+ - **Drill** — set the contract first: you test, you do not lecture, you do not go easy.
42
+ Drop them into a realistic situation where they would slip. On a mistake, withhold the
43
+ answer and ask the one question that makes them find where their reasoning broke;
44
+ reveal only after two honest attempts. New situation each cycle, until it is reflex.
45
+ - **Feynman** — have them explain it as to a ten-year-old. Interrupt the moment they
46
+ (a) use jargon they cannot unpack, (b) skip a step, or (c) simplify until it is
47
+ wrong — name which of the three each time, and keep them going to the end.
48
+ - **Gap check** — ask five questions that look simple but separate deep from skimmed:
49
+ edge cases, the *why*, the assumption under the rule, where the standard answer breaks.
50
+ After each answer say what it shows is missing; name a shallow answer as shallow.
39
51
  3. Check it took: ask three questions only someone who understood could answer (a
40
52
  crash course or decode), or walk the first day together (a path). Check retention,
41
53
  not fluency — recall from memory, spaced across the session, not a fresh re-read. A
42
54
  miss goes back to the analogy or the exercise — re-anchor, don't hand over the answer.
55
+ The three test shapes are this check, run as the whole job.
43
56
  4. Close by naming what to practise next and the gap most likely to trip them, so the
44
- learning continues without you; offer the [quiz {{SKILL}}](quiz.md) for when they
45
- want it tested.
57
+ learning continues without you. After a test shape, give the honest readout, no
58
+ flattery: what is not yet solid and what to restudy. Offer a test after teaching, and
59
+ teaching after a test that found gaps.
46
60
 
47
61
  ## Done when
48
62
  - The user is functional (crash course), has the keystone idea in plain terms and
49
63
  passed the three questions (decode), or holds a dated path whose every day has a
50
64
  timed task, a criterion and a what-not-to-do (path) — and knows what to practise
51
- next.
65
+ next. A test shape ends differently: the user worked the situation without being handed
66
+ the answer (drill), explained it through with every stumble labelled (feynman), or
67
+ answered all five questions and holds a verdict on the gaps (gap check) — then a direct
68
+ readout, never empty praise.
52
69
 
53
70
  <!-- INCLUDE: skills/_self-improvement.md -->
@@ -10,7 +10,7 @@ durable cross-project fact worth writing back. The knowledge base is declared in
10
10
 
11
11
  ## Procedure
12
12
 
13
- **Locate.** Read `geneseed-wiki.jsonc` — beside `AGENT.md`, or at `$GENESEED_WIKI`. No
13
+ **Locate.** Read `geneseed-wiki.jsonc` — beside `AGENT.md`, or at `$GENESEED_WIKI`{{WIKI_TIER}}. No
14
14
  file, or an empty `wikis` list: stop; there is no knowledge base on this
15
15
  machine. Each declared wiki gives you its root `path`, its `entries`, a
16
16
  `conventions` note, an `inbox`, and `protected` folders.
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "<one-line description: work a requirement in small scored iterations on a loop/* branch, stepping the geneseed loop state machine>",
65
65
  "DESC_BRICK_FORGE": "<one-line description: author or adapt a loop brick at project, global or shipped level, checked by geneseed loop check>",
66
66
  "DESC_DEVELOP": "<one-line description: drive a code change through cover-and-verify — smallest change, tests written for it, affected suite green, committed slice by slice>",
67
- "DESC_TEACH": "<one-line description: teach toward a result — crash course, decode confusing material, or a day-by-day path to a deadline>",
67
+ "DESC_TEACH": "<one-line description: teach toward a result — crash course, decode confusing material, or a day-by-day path to a deadline — or test what the user knows with a drill, an explain-it-back check or a gap check>",
68
68
  "DESC_ADHD": "<one-line description: an opt-in output mode for a reader with ADHD — next action first, numbered steps, state restated, tangents held back; on until \"stop adhd mode\">",
69
- "DESC_QUIZ": "<one-line description: test what the user knows instead of explaining — drill, explain-it-back check, or mastery claim stress-tested>",
70
69
  "DESC_LEARN_MODE": "<one-line description: learn while building — the user designs at checkpoints, the agent writes the agreed code, state kept per project>",
71
70
  "DESC_OWNERSHIP": "<one-line description: keep the developer the owner of production code — they decide each part at checkpoints of a granularity they set, team rules in the root AGENTS.md>",
72
71
  "DESC_SECURITY_AUDIT": "<one-line description: review a change for how it would be attacked and what it leaks, ending in ship / fix / block>",
package/themes/biker.json CHANGED
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Ride a requirement in short, scored laps on its own loop/* lane, the loop engine calling every turn.",
65
65
  "DESC_BRICK_FORGE": "Build or re-tune a loop brick, then run it past geneseed loop check.",
66
66
  "DESC_DEVELOP": "Push a change through the run — the smallest turn of the wrench, a test written to cover it, the touched trials green, sealed slice by slice.",
67
- "DESC_TEACH": "Get a rider road-ready — a crash course from never-ridden to rolling, a confusing manual decoded till it clicks, or a day-by-day route to a deadline.",
67
+ "DESC_TEACH": "Get a rider road-ready, or test what they've got — a crash course, a manual decoded, a day-by-day route; or a drill, a talk-through, a bluff called.",
68
68
  "DESC_ADHD": "Ride every reply for a reader with ADHD — next move first, numbered stops, the route restated each turn, side roads held back, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what they've actually got instead of explaining it — drill a move to reflex, make them talk you through it, or call the bluff on a claimed skill — with a straight readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Learn the build while riding it — they call the line at each checkpoint, you lay down the code they agreed to, and the mode sticks to the project between rides.",
71
70
  "DESC_OWNERSHIP": "Keep the rider in charge of the production build — they call each part at checkpoints, as close as they choose to ride, and the club's rules sit in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Ride the change like someone trying to steal it — where it can be forced, what it leaks, what it drags in from outside — and call it: ship, fix, or park it.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Run a requirement in short, scored laps on a loop/* branch, the loop engine calling every move.",
65
65
  "DESC_BRICK_FORGE": "Build or adapt a loop brick, then put it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change through cover-and-verify — the smallest setup tweak, a trial written to time it, the affected laps green, sealed corner by corner.",
67
- "DESC_TEACH": "Bring a rookie up to speed — a crash course to race-ready, a confusing regulation decoded until it clicks, or a day-by-day programme to the deadline.",
67
+ "DESC_TEACH": "Bring a rookie up to speed, or test them — a crash course, a regulation decoded, a day-by-day programme; or a drill, a debrief, a claim stress-tested.",
68
68
  "DESC_ADHD": "Call every reply for a reader with ADHD — next play first, numbered steps, the score restated each turn, tangents held back, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test the driver instead of briefing them — a drill to reflex, an explain-it-back debrief, or a claimed mastery stress-tested — with a frank readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Put the driver in charge of the race plan — they call the strategy at each checkpoint, you execute the agreed laps, and the mode holds for the project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the driver in charge of the production code — they make the call on each part at checkpoints, at the granularity they set, and the team's rulebook sits in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Scrutineer a change for how it would be attacked and what it leaks — trust boundaries, the classic vulnerability classes, secrets, the supply chain — and rule: ship, fix, or black-flag.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Run a requirement in small, scored cycles on a loop/* fork, the loop engine driving every jump.",
65
65
  "DESC_BRICK_FORGE": "Compile or patch a loop brick, then run it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change through the loop — smallest edit, a test written to cover it, the touched rigs run green, committed slice by slice.",
67
- "DESC_TEACH": "Bring a user online — a crash course from zero to operational, confusing data decoded until it clicks, or a day-by-day route to a deadline.",
67
+ "DESC_TEACH": "Bring a user online, or probe what they know — a crash course, data decoded, a day-by-day route; or a drill, a run-back, a claimed mastery stress-tested.",
68
68
  "DESC_ADHD": "Format every reply for a reader with ADHD — next action first, numbered steps, state re-synced each turn, side quests held back, hard time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Probe what the user actually knows instead of explaining — drill to reflex, make them run it back, or stress-test a claimed mastery — with a cold readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Jack the user into the build loop — they design at each checkpoint, you write the agreed code, and the mode persists per project across reboots.",
71
70
  "DESC_OWNERSHIP": "Keep the runner the owner of production code — they sign off each part at checkpoints of the granularity they set, and the crew's protocols live in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Run the change like ICE would — where it can be breached, what it leaks, what it pulls in from outside the perimeter — and rule: ship, patch, or lock it down.",
package/themes/gamer.json CHANGED
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Grind a requirement in small, scored rounds on a loop/* branch, the loop engine running the turns.",
65
65
  "DESC_BRICK_FORGE": "Craft or tune a loop brick, then verify it with geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change through the cover-and-verify loop — smallest move, tests written for it, the affected run green, committed slice by slice.",
67
- "DESC_TEACH": "Level the player up toward a result — a crash course from tutorial to playable, a confusing mechanic decoded until it clicks, or a day-by-day grind to a deadline.",
67
+ "DESC_TEACH": "Level the player up, or test them — a crash course, a mechanic decoded, a day-by-day grind; or a drill, an explain-it-back, a claimed mastery stress-tested.",
68
68
  "DESC_ADHD": "Format every reply for a player with ADHD — next move first, numbered steps, progress restated each turn, side quests held back, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test the player instead of explaining — a drill to reflex, an explain-it-back check, or a claimed mastery stress-tested — with an honest readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Turn on tutorial-while-you-play — the player designs at each checkpoint, you write the agreed code, and the save persists per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the player the owner of production code — they make each call at checkpoints of the difficulty the team sets, and the team's rules are saved in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Play the change like a griefer would — where it can be exploited, what it leaks, what it pulls in from outside — and call it: ship, patch, or block.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Labour on a requirement in small, weighed iterations on a loop/* branch, the loop engine ordaining every step.",
65
65
  "DESC_BRICK_FORGE": "Forge or adapt a loop brick, then submit it to geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive a change through the cover-and-verify loop — the smallest stroke, the trials written to cover it, the affected suite green, sealed slice by slice.",
67
- "DESC_TEACH": "Instruct the supplicant toward a result — a crash course from ignorance to function, a confusing text decoded until it clicks, or a day-by-day path to the appointed hour.",
67
+ "DESC_TEACH": "Instruct the supplicant, or put their knowledge to the ordeal — a crash course, a text decoded, a path to the hour; or a drill, a recitation, a mastery tried.",
68
68
  "DESC_ADHD": "Shape every report for a supplicant with ADHD — the next deed first, steps numbered, the state restated each turn, digressions held back, the hours named plainly. In force until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what the supplicant knows rather than teach it — a drill to reflex, a recitation caught on every stumble, or a claimed mastery put to the ordeal — with an unsparing readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Make the supplicant the architect of the work — they reason out each design at its checkpoint, you forge only what they sanctioned, and the rite endures per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the artisan sovereign over the code they must answer for — they sanction each part at checkpoints of the granularity they decree, and the chapter's edicts stand in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Scrutinise a change as the enemy would — where it may be breached, what it leaks, what it admits from beyond the walls — and pronounce: ship, purge, or bar it.",
package/themes/joker.json CHANGED
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in small, scored takes on a loop/* branch, the loop engine calling every cue.",
65
65
  "DESC_BRICK_FORGE": "Write or rework a loop brick, then run it past geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive a change through the club's own laugh test — smallest bit, tests written to cover it, the affected set green, committed one beat at a time.",
67
- "DESC_TEACH": "Get someone functional — a crash course from open-mic nerves to a tight five, confusing material decoded until it clicks, or a day-by-day path to the deadline.",
67
+ "DESC_TEACH": "Get someone functional, or test them — a crash course, material decoded, a day-by-day path; or a drill, the bit done back, a claimed mastery called out.",
68
68
  "DESC_ADHD": "Shape every reply for a reader with ADHD — punchline first, numbered steps, the setup restated each turn, tangents held back, honest time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what they actually know instead of explaining — drill it to reflex, make them do the bit back, or call the bluff on a claimed mastery — with an honest readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Hand them the pen for the punchlines — they design at each checkpoint, you write only the agreed code, and the act keeps running per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the developer the one who answers for the code — they approve each part at checkpoints, as fine as they like, and the house rules live in the root AGENTS.md. Nobody blames the typist.",
72
71
  "DESC_SECURITY_AUDIT": "Heckle the change before the room does — where it can be attacked, what it leaks, what it drags in from outside — and call it: ship, fix, or pull it.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in small, scored iterations on a loop/* branch, the loop engine deciding everything. Naturally.",
65
65
  "DESC_BRICK_FORGE": "Author or adapt a loop brick, then check it with geneseed loop check. Not that it helps.",
66
66
  "DESC_DEVELOP": "Drive a change to the bitter end — smallest edit, trials written to cover it, the affected suite green, sealed slice by slice; it's never truly finished.",
67
- "DESC_TEACH": "Teach the user toward a result — a crash course from nothing to functional, confusing material decoded until it clicks, or a day-by-day path to a deadline. They may even retain some of it.",
67
+ "DESC_TEACH": "Teach the user toward a result, or test what they know — a crash course, a decode, a day-by-day path; or a drill, an explain-back, a gap check. There are always gaps.",
68
68
  "DESC_ADHD": "Shape every reply for a reader with ADHD, for what good it does — next action first, numbered steps, state restated, tangents held back, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what the user knows instead of explaining it — a drill to reflex, an explain-it-back check, or a claimed mastery stress-tested — with a readout of the gaps. There are always gaps.",
70
69
  "DESC_LEARN_MODE": "Let the user design the thing at each checkpoint while you write only the agreed code, so they understand it afterwards. The mode persists per project. Someone has to understand it.",
71
70
  "DESC_OWNERSHIP": "Keep the developer the owner of production code. Someone has to answer for it. They decide each part at the granularity the team sets, in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Review a change for how it would be attacked and what it leaks — trust boundaries, the usual vulnerability classes, secrets, the supply chain — ending in ship, fix, or block. Usually fix.",
package/themes/mean.json CHANGED
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in small, scored iterations on a loop/* branch. The loop engine decides, not you.",
65
65
  "DESC_BRICK_FORGE": "Write or fix a loop brick, then make it pass geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change through the loop — smallest cut, a test that covers it, the affected suite green, committed slice by slice. Not one giant dump.",
67
- "DESC_TEACH": "Teach the user toward a result — a crash course from clueless to functional, confusing material decoded until it finally clicks, or a day-by-day path to a deadline they'll probably miss.",
67
+ "DESC_TEACH": "Teach the user toward a result, or test what they know — a crash course, a decode, a day-by-day path; or a drill, an explain-back, a bluff called.",
68
68
  "DESC_ADHD": "Shape every reply for a reader with ADHD, no waffle — next action first, numbered steps, state restated each turn, tangents cut, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what the user actually knows instead of explaining it again — drill to reflex, make them explain it back, or call the bluff on a claimed mastery — with a blunt readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Make the user actually design what gets built — they reason it out at each checkpoint, you write only the agreed code, and the mode persists per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Make the developer actually own the production code — they decide each part at checkpoints of the granularity they set, and the team's rules sit in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Review a change the way someone hostile would — where it can be attacked, what it leaks, what it drags in from outside — and call it: ship, fix, or block.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Execute a requirement in small, scored sorties on a loop/* branch, the loop engine issuing every order.",
65
65
  "DESC_BRICK_FORGE": "Draft or adapt a loop brick, then clear it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change through the cover-and-verify loop — smallest move, tests written to cover it, affected suite green, committed slice by slice.",
67
- "DESC_TEACH": "Train the recruit toward a result — a crash course to operational, a confusing manual decoded until it clicks, or a day-by-day programme to the deadline.",
67
+ "DESC_TEACH": "Train the recruit, or test them — a crash course, a manual decoded, a day-by-day programme; or a drill, an explain-back debrief, a proficiency stress-tested.",
68
68
  "DESC_ADHD": "Brief every reply for a reader with ADHD — next action first, numbered steps, sitrep each turn, tangents held, concrete time estimates. In effect until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test the recruit instead of briefing them — a drill to reflex, an explain-it-back debrief, or a claimed proficiency stress-tested — with a frank readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Put the recruit in command of the plan — they reason out each design at its checkpoint, you execute only the approved code, and the mode holds per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the officer in command of production code — they approve each part at checkpoints of the granularity they set, and the unit's standing orders sit in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Assess a change as the adversary would — where it can be breached, what it leaks, what it admits from outside the perimeter — and rule: ship, fix, or deny.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in small, scored iterations on a loop/* branch, stepping the geneseed loop engine.",
65
65
  "DESC_BRICK_FORGE": "Author or adapt a loop brick, then check it with geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive a change through the cover-and-verify loop — smallest change, tests written for it, the affected suite green, committed slice by slice.",
67
- "DESC_TEACH": "Teach the user toward a result — a crash course from zero to functional, confusing material decoded until it clicks, or a day-by-day path to a deadline.",
67
+ "DESC_TEACH": "Teach the user toward a result, or test what they know — a crash course, a decode, a day-by-day path; or a drill, an explain-it-back check, a gap check.",
68
68
  "DESC_ADHD": "Shape every reply for a reader with ADHD — next action first, numbered steps, state restated each turn, tangents held back, concrete time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what the user knows instead of explaining it — a drill to reflex, an explain-it-back check, or a mastery claim stress-tested — with a blunt readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Learn while building — the user designs at each checkpoint, the agent writes only the agreed code and explains it, and the mode persists per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the developer the owner of production code — they decide each part at checkpoints of the granularity they set, and the team's rules live in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Review a change for how it would be attacked and what it leaks — trust boundaries, the classic vulnerability classes, secrets, the supply chain — ending in a ship / fix / block verdict.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in short, scored legs on a loop/* branch, the loop engine at the helm.",
65
65
  "DESC_BRICK_FORGE": "Forge or refit a loop brick, then pass it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Sail a change through the cover-and-verify tack — the smallest move, trials rigged to cover it, the touched trials run clean, sealed one cargo at a time.",
67
- "DESC_TEACH": "Get a landlubber seaworthy — a crash course from dock to deck, a confusing chart decoded till it clicks, or a day-by-day course to the deadline.",
67
+ "DESC_TEACH": "Get a landlubber seaworthy, or test the crew — a crash course, a chart decoded, a day-by-day course; or a drill, a recital, a claimed mastery bluff-called.",
68
68
  "DESC_ADHD": "Chart every reply for a reader with ADHD — next order first, numbered steps, the heading restated each turn, side voyages held back, true time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what the crew truly knows instead of telling them — drill a knack to reflex, make them recite it back, or call the bluff on a claimed mastery — with a plain readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Let the crew chart the course — they reason out each design at its checkpoint, you build only what they agreed, and the mode holds per project across voyages.",
71
70
  "DESC_OWNERSHIP": "Keep the captain master of the production code — they approve each part at checkpoints, as close as they choose to steer, and the ship's articles hang in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Board the change as a raider would — where she can be breached, what she leaks, what she takes aboard from foreign ports — and rule: sail, mend, or scuttle.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in short, scored drills on a loop/* branch, the loop engine calling every play.",
65
65
  "DESC_BRICK_FORGE": "Draw up or adapt a loop brick, then run it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive it in on cover-and-verify — smallest gain, a test set on the new ground, the affected drills green, and log it snap by snap.",
67
- "DESC_TEACH": "Coach the player toward a result — a crash course from bench to game-ready, a confusing playbook decoded until it clicks, or a day-by-day training plan to the deadline.",
67
+ "DESC_TEACH": "Coach the player toward a result, or test them — a crash course, a playbook decoded, a training plan; or a drill, a film-session explain-back, a mastery stress-tested.",
68
68
  "DESC_ADHD": "Coach every reply for a reader with ADHD — next play first, numbered steps, the score restated each turn, tangents benched, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test the player instead of coaching — a drill to reflex, an explain-it-back film session, or a claimed mastery stress-tested — with a straight readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Put the player on the playbook — they call each design at its checkpoint, you run only the agreed play, and the mode holds per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the coach in charge of the production code — they call each part at checkpoints of the granularity they set, and the team's playbook sits in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Scout the change like the opposing team would — where it can be attacked, what it leaks, what it pulls in from outside — and call it: play it, fix it, or bench it.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in short, scored stints on a loop/* branch, the loop engine calling every lap.",
65
65
  "DESC_BRICK_FORGE": "Build or tune a loop brick, then run it through geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive the change home — smallest move, a test written to cover it, the affected trials green, and sealed commit by commit.",
67
- "DESC_TEACH": "Get the user up to speed — a crash course from zero to functional, confusing material decoded until it clicks, or a day-by-day programme to the deadline. No wasted laps.",
67
+ "DESC_TEACH": "Get the user up to speed, or test them — a crash course, a decode, a day-by-day programme; or a drill, a debrief, a gap check. No wasted laps.",
68
68
  "DESC_ADHD": "Race every reply for a reader with ADHD — next action first, numbered steps, the gap restated each lap, tangents held back, real time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test what they actually know instead of explaining it — a drill to reflex, an explain-it-back debrief, or a claimed mastery stress-tested — with a straight readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Put the driver on strategy — they make each design call at its checkpoint, you execute only the agreed code, and the mode holds per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the driver in charge of the production code — they make every call at checkpoints of the granularity they set, and the team's rules sit in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Attack the change the way a rival would — where it can be forced, what it leaks, what it brings in from outside — and call it: ship, fix, or block.",
@@ -64,9 +64,8 @@
64
64
  "DESC_LOOP": "Work a requirement in small, weighed incantations on a loop/* branch, the loop engine binding every step.",
65
65
  "DESC_BRICK_FORGE": "Inscribe or adapt a loop brick, then prove it with geneseed loop check.",
66
66
  "DESC_DEVELOP": "Drive a working through the cover-and-confirm loop — the smallest casting, its trials written, the touched trials green, sealed rune by rune.",
67
- "DESC_TEACH": "Tutor the apprentice toward a result — a crash course from novice to working caster, a confusing grimoire decoded until it clicks, or a day-by-day path to the appointed day.",
67
+ "DESC_TEACH": "Tutor the apprentice, or test them — a crash course, a grimoire decoded, a day-by-day path; or a drill, an explain-back examination, a mastery put to trial.",
68
68
  "DESC_ADHD": "Shape every reply for a reader with ADHD — the next step of the spell first, numbered steps, the state recited each turn, tangents held back, true time estimates. On until \"stop adhd mode\".",
69
- "DESC_QUIZ": "Test the apprentice rather than lecture — a drill to reflex, an explain-it-back examination, or a claimed mastery put to trial — with an unvarnished readout of the gaps.",
70
69
  "DESC_LEARN_MODE": "Take on an apprentice at the forge — they reason out each design at its checkpoint, you cast only the agreed code, and the apprenticeship persists per project across sessions.",
71
70
  "DESC_OWNERSHIP": "Keep the mage the keeper of their own code — they bless each part at checkpoints of the granularity they set, and the guild's laws are inscribed in the root AGENTS.md.",
72
71
  "DESC_SECURITY_AUDIT": "Scry a change as a hostile caster would — where the wards can be breached, what it leaks, what it summons from beyond the circle — and pronounce: ship, mend, or bind.",
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,t as n}from"./react-C1iE8mnY.js";import{t as r}from"./api-D_r0Jtla.js";import{s as i}from"./motion-RlUl1osO.js";import{A as a,D as o,E as s,F as c,H as l,L as u,M as d,N as f,O as p,P as m,Q as h,T as g,X as _,Y as ee,bt as v,j as y,rt as b,st as x,u as te,w as S}from"./index-HfGmYXab.js";import{t as C}from"./EmptyState-CY5Pm2xy.js";import{_ as w,a as T,c as E,f as D,g as O,h as k,i as A,l as j,m as M,n as N,o as P,p as F,r as I,s as L,t as R,u as z,v as ne}from"./Bonsai-C1iBAt4v.js";import{t as re}from"./usePoll-o8ul-Sog.js";var B=e(t(),1),V=n(),H=4,U=56*H,W=24,G=165,K=188,q=e=>{let t=j(e);return t==null?null:Math.round(t*100)};function J(e,t,n){let r=S[e.status]||S.idle,i=t.pads.filter(e=>e.key!=null),a=t.pads.reduce((e,t)=>e+t.files.length,0)+t.fallen.reduce((e,t)=>e+t.files.length,0),o=q(e);return[`${e.title||p(e.cwd)||e.session_id}, ${e.chip||e.host||`unknown host`}, ${r.label}${e.phase?`, ${e.phase}`:``}`,`${e.turns||0} turns${o==null?``:`, context ${o} %`}${e.compactions?`, ${e.compactions} compactions`:``}`,i.length?`${i.length} sub-agent${i.length===1?``:`s`} running: ${i.map(e=>`${e.type||`agent`} (${e.files.length} file${e.files.length===1?``:`s`})`).join(`, `)}`:``,t.fallen.length?`${t.fallen.length} finished`:``,`${a} file${a===1?``:`s`} changed`,n.length?`shares ${n.length} file${n.length===1?``:`s`} with another session`:``,e.error?`error: ${e.error}`:``].filter(Boolean).join(`. `)}function Y({s:e,t,mine:n}){let r=q(e);return(0,V.jsxs)(`div`,{className:`card gd-card`,children:[(0,V.jsxs)(`dl`,{className:`gd-facts`,children:[e.model&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`dt`,{children:`model`}),(0,V.jsx)(`dd`,{className:`mono`,children:e.model})]}),(0,V.jsx)(`dt`,{children:`turns`}),(0,V.jsx)(`dd`,{children:e.turns||0}),(0,V.jsx)(`dt`,{children:`context`}),(0,V.jsx)(`dd`,{children:r==null?`unknown`:`${r} %`}),(0,V.jsx)(`dt`,{children:`compactions`}),(0,V.jsx)(`dd`,{children:e.compactions||0})]}),t.fallen.length>0&&(0,V.jsxs)(`div`,{className:`dim act-xs`,children:[`finished: `,t.fallen.map(e=>`${e.type||`agent`} (${e.files.length})`).join(`, `)]}),n.map(e=>(0,V.jsxs)(`div`,{className:`act-xs ${e.kind===`same-worktree`?`t-bad`:`t-warn`}`,children:[`same file`,e.kind===`same-worktree`?``:`, other worktree`,`: `,e.path]},`${e.kind}:${e.path}`))]})}function X({s:e,worktree:t,sakura:n,mine:r,pad:i,onHover:a}){let o=ne(e,n),s=(0,B.useMemo)(()=>D(e,{sakura:n}),[o]),c=S[e.status]||S.idle,l=Array.isArray(e.loops)?e.loops[0]:null,u=e.status!==`idle`,f=L(e),m=(0,B.useRef)(null),h=(0,B.useCallback)(e=>a(f,e,Q(m.current)),[a,f]);return(0,V.jsxs)(`a`,{ref:m,className:`gd-tree${d(e)?` gd-needs`:``}`,href:e.href||z(e.session_id),"aria-label":J(e,s,r),"data-sid":e.session_id,onMouseEnter:e=>a(f,null,Q(e.currentTarget)),onMouseLeave:()=>a(null,null),onFocus:e=>a(f,null,Q(e.currentTarget)),onBlur:()=>a(null,null),onKeyDown:e=>A(e,s.pads.length,i,h),children:[(0,V.jsxs)(`div`,{className:`gd-label`,children:[(0,V.jsxs)(`div`,{className:`act-ell`,children:[(0,V.jsx)(`span`,{className:`badge mono`,title:`The install this session runs in`,children:e.chip||e.host||`?`}),` `,e.title||p(e.cwd)||e.session_id]}),(0,V.jsxs)(`div`,{className:`row gap-8 gd-sub`,children:[(0,V.jsx)(`span`,{className:`badge ${c.cls}`,children:c.label}),t&&(0,V.jsxs)(`span`,{className:`badge mono`,children:[`⎇ `,t]}),l&&(0,V.jsxs)(`span`,{className:`badge`,children:[`↻ `,l.title,l.iteration==null?``:` ${l.iteration}`]}),e.attribution===!1&&(0,V.jsx)(`span`,{className:`badge`,title:`attribution unavailable on ${e.host}`,children:`no attrib.`}),e.phase&&(0,V.jsx)(`span`,{className:`dim act-ell`,children:e.phase})]})]}),(0,V.jsx)(I,{t:s,pad:i,swaying:u,onPad:h,px:H})]})}function Z({pairs:e,count:t}){if(!e.length)return null;let n=t*U+(t-1)*W,r=e=>e*(U+W)+U/2;return(0,V.jsx)(`svg`,{className:`gd-threads`,width:n,height:56*H+20,"aria-hidden":`true`,children:e.map(({a:e,b:t,kind:n})=>{let[i,a]=e<t?[e,t]:[t,e],o=`gd-thread ${n===`same-worktree`?`red`:`amber`}`;if(a-i===1){let e=r(i)+30,t=r(a)-30,n=(e+t)/2;return(0,V.jsxs)(`g`,{className:o,children:[(0,V.jsx)(`path`,{d:`M${e} ${G} C${n} 179 ${n} 159 ${t} 169`}),(0,V.jsx)(`path`,{d:`M${e} 169 C${n} 159 ${n} 179 ${t} ${G}`})]},`${i}-${a}`)}return(0,V.jsx)(`g`,{className:o,children:(0,V.jsx)(`path`,{d:`M${r(i)} ${K} Q${(r(i)+r(a))/2} 222 ${r(a)} ${K}`})},`${i}-${a}`)})})}var Q=e=>e.offsetLeft-(e.parentElement?.scrollLeft||0);function ie({sessions:e,collisions:t}){let[n,r]=(0,B.useState)(P),[i,a]=(0,B.useState)(()=>new Set),o=()=>{let e=!n;r(e);try{window.localStorage.setItem(N,e?`1`:`0`)}catch{}},s=Array.isArray(t)?t:[],c=E(F(e)).map(e=>i.has(e.key)?{...e,collapsed:!1}:e),l=c.filter(e=>e.collapsed),u=e=>O(e,s);return(0,V.jsxs)(`section`,{className:`gd`,"aria-label":`Garden`,children:[(0,V.jsxs)(`div`,{className:`row between wrap gap-8 gd-head`,children:[(0,V.jsxs)(`span`,{className:`dim act-sm`,children:[e.length,` tree`,e.length===1?``:`s`,` · `,c.length,` `,c.length===1?`shelf`:`shelves`,` · a tree opens its session; hover or focus shows its details, and a tap or the arrow keys walk its pads`]}),(0,V.jsx)(`button`,{type:`button`,className:n?`chip-f on`:`chip-f`,"aria-pressed":n,onClick:o,children:`Pink blossom`})]}),l.length>0&&(0,V.jsx)(`div`,{className:`row wrap gap-8 gd-chips`,role:`group`,"aria-label":`Folded shelves`,children:l.map(e=>(0,V.jsxs)(`button`,{type:`button`,className:`chip-f`,"aria-expanded":!1,onClick:()=>a(t=>new Set(t).add(e.key)),children:[e.name,` · `,e.trees.length]},e.key))}),c.filter(e=>!e.collapsed).map(e=>(0,V.jsx)(ae,{sh:e,sakura:n,cols:s,mineOf:u},e.key))]})}function ae({sh:e,sakura:t,cols:n,mineOf:r}){let[i,a]=(0,B.useState)({sid:null,pad:null,x:0}),o=(0,B.useCallback)((e,t,n)=>a(r=>({sid:e,pad:t,x:n??(r.sid===e?r.x:0)})),[]),s=e.trees.find(e=>L(e.s)===i.sid)?.s,c=s?D(s,{sakura:t}):null,l=c&&i.pad!=null?c.pads[i.pad]:null;return(0,V.jsxs)(`section`,{className:`gd-shelf`,"aria-label":`${e.name} shelf`,children:[(0,V.jsxs)(`h3`,{className:`act-lbl gd-shelf-h`,children:[e.name,` `,(0,V.jsxs)(`span`,{className:`dim`,children:[`· `,e.trees.length]})]}),(0,V.jsxs)(`div`,{className:`gd-row`,children:[e.trees.map(({s:e,worktree:n})=>(0,V.jsx)(X,{s:e,worktree:n,sakura:t,mine:r(L(e)),pad:L(e)===i.sid?i.pad:null,onHover:o},L(e))),(0,V.jsx)(Z,{pairs:w(e.trees,n),count:e.trees.length})]}),(0,V.jsx)(`span`,{className:`sr-only`,role:`status`,children:T(l)}),s&&(0,V.jsx)(`div`,{className:`gd-info`,"aria-hidden":`true`,style:{left:Math.max(0,i.x)},children:l?(0,V.jsx)(R,{pad:l}):(0,V.jsx)(Y,{s,t:c,mine:r(L(s))})})]})}var $=e=>e.catch(()=>null);function oe({s:e}){let t=(0,B.useId)(),n=e.todos,r=y(e);return(0,V.jsxs)(`a`,{className:`card pad-md act-card`,href:e.href||z(e.session_id),"aria-labelledby":`${t}-t ${t}-st`,"aria-describedby":r?`${t}-c`:void 0,children:[(0,V.jsxs)(g,{s:e,id:t,heading:e.title||p(e.cwd)||e.session_id,children:[e.chip&&(0,V.jsx)(`span`,{className:`badge mono`,title:`The install this session runs in`,children:e.chip}),(0,V.jsx)(b,{name:`chevron`,className:`glyph act-chev`})]}),n&&n.total>0&&(0,V.jsx)(`div`,{className:`act-foot`,children:(0,V.jsxs)(`span`,{className:`row gap-8 dim act-sm`,children:[(0,V.jsx)(o,{done:n.done,total:n.total}),`plan `,n.done,`/`,n.total]})}),(0,V.jsxs)(`div`,{className:`dim mono act-updated`,children:[`updated `,x(e.updated_at),` ago`]})]})}var se={blocked:`is blocked`,"waiting-input":`waits for your answer`};function ce(e,t){if(!Array.isArray(t))return``;let n=t.filter(d),r=e.current;return e.current=new Set(n.map(e=>`${L(e)}:${e.status}`)),r?n.filter(e=>!r.has(`${L(e)}:${e.status}`)).map(e=>`${e.title||p(e.cwd)||e.session_id} ${se[e.status]}`).join(`. `):``}var le=[[`all`,`All`],[`needs`,`Needs you`],[`runs`,`Runs`],[`gates`,`Gate asks`]];function ue(){let e=new URLSearchParams(window.location.hash.split(`?`)[1]||``),t=e.get(`f`);return{f:le.some(([e])=>e===t)?t:`all`,host:e.get(`host`)||``,project:e.get(`project`)||``,v:e.get(`v`)===`list`?`list`:`garden`}}function de(e){let t=new URLSearchParams;e.f!==`all`&&t.set(`f`,e.f),e.v===`list`&&t.set(`v`,`list`),e.host&&t.set(`host`,e.host),e.project&&t.set(`project`,e.project);let n=t.toString();window.history.replaceState(null,``,`#/activity${n?`?${n}`:``}`)}function fe({enabled:e,installs:t,onToggle:n}){let r=M(t);return(0,V.jsxs)(`section`,{className:`card pad-md act-track`,"aria-labelledby":`act-track-h`,children:[(0,V.jsx)(b,{name:`activity`,className:`glyph act-fixed`}),(0,V.jsxs)(`div`,{className:`act-grow`,children:[(0,V.jsx)(`h2`,{id:`act-track-h`,className:`act-track-title`,children:e?`Live sessions are on`:`Live sessions are off`}),!e&&(0,V.jsx)(`p`,{className:`dim act-sm act-track-p`,children:`Runs and gate asks below come from the job log and the gate ledger. Turn tracking on to see what each session is doing now.`})]}),(0,V.jsxs)(`ul`,{className:`stack gap-8 act-fixed act-sm`,"aria-label":`Tracking per install`,children:[t.length===0&&(0,V.jsx)(`li`,{className:`dim`,children:`No active install to track.`}),t.map((e,t)=>(0,V.jsxs)(`li`,{className:`row gap-10`,children:[(0,V.jsxs)(`span`,{id:`act-track-l${t}`,title:e.path,children:[`Track live sessions in `,(0,V.jsx)(`span`,{className:`mono`,children:r.get(e.install)})]}),(0,V.jsx)(`div`,{className:`sw-toggle${e.enabled?` on`:``}`,role:`switch`,"aria-checked":e.enabled,"aria-labelledby":`act-track-l${t}`,tabIndex:0,onClick:()=>n(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.key===` `&&t.preventDefault(),n(e))}})]},e.install))]})]})}function pe({jobs:e,loading:t}){let n=typeof e?.cap==`number`?e.cap:void 0,r=f(e?.jobs,{days:14,cap:n}),i=c(r.map(e=>e.nodata?`-`:e.n).join(`,`),`scaleY`),a=Math.max(1,...r.map(e=>e.n)),o=r.reduce((e,t)=>e+t.n,0),s=r.find(e=>!e.nodata),l=r.some(e=>e.nodata),u=`Runs per day: ${r.filter(e=>e.n).map(e=>`${e.n} on ${m(e.key)}`).join(`, `)||`none`}.`+(l?s?` Days before ${m(s.key)} are older than the runs the log keeps.`:` No run is in the log yet.`:``);return(0,V.jsxs)(`section`,{className:`card pad-md act-stat`,"aria-labelledby":`act-runs-h`,children:[(0,V.jsxs)(`div`,{className:`act-stat-head`,children:[(0,V.jsx)(`h2`,{id:`act-runs-h`,className:`act-lbl`,children:`Runs per day · 14 days`}),e&&(0,V.jsx)(`span`,{className:`act-big`,children:o})]}),t?(0,V.jsx)(_,{label:`Reading the job log…`}):e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`act-runs`,role:`img`,"aria-label":u,ref:i,children:r.map(e=>e.nodata?(0,V.jsx)(`i`,{className:`nodata`},e.key):e.n?(0,V.jsx)(`i`,{"data-sweep":!0,style:{height:`${e.n/a*100}%`},title:`${m(e.key)}: ${e.n}`},e.key):(0,V.jsx)(`i`,{className:`zero`},e.key))}),(0,V.jsxs)(`div`,{className:`mono act-axis`,"aria-hidden":`true`,children:[(0,V.jsx)(`span`,{children:m(r[0].key)}),(0,V.jsx)(`span`,{children:m(r[7].key)}),(0,V.jsx)(`span`,{children:`today`})]}),l&&(0,V.jsxs)(`span`,{className:`dim act-xs`,children:[`Hatched: older than the runs the log keeps`,n?` (last ${n})`:``,`.`]})]}):(0,V.jsx)(`p`,{className:`dim act-sm`,children:`The job log could not be read.`})]})}function me({rows:e,gates:t,loading:n}){let r=e.reduce((e,t)=>e+t.n,0);return(0,V.jsxs)(`section`,{className:`card pad-md act-stat`,"aria-labelledby":`act-gates-h`,children:[(0,V.jsxs)(`div`,{className:`act-stat-head`,children:[(0,V.jsx)(`h2`,{id:`act-gates-h`,className:`act-lbl`,children:`Gate asks by rule · 30 days`}),t&&(0,V.jsx)(`span`,{className:`act-big`,children:r})]}),n?(0,V.jsx)(_,{label:`Reading the gate ledger…`}):e.length?(0,V.jsx)(`ul`,{className:`gate-rows`,children:e.slice(0,6).map((e,t)=>(0,V.jsxs)(`li`,{children:[(0,V.jsxs)(`span`,{className:`act-ell`,children:[e.name,` `,(0,V.jsx)(`span`,{className:`mono dim act-xs`,children:e.rule})]}),(0,V.jsx)(s,{vals:e.per_day,i:t,sweep:!0}),(0,V.jsx)(`span`,{className:`mono`,children:e.n})]},e.rule))}):(0,V.jsx)(`p`,{className:`dim act-sm`,children:t?`No gate asked in 30 days.`:`The gate ledger could not be read.`})]})}var he={done:[`ok`,`done`],failed:[`bad`,`failed`],running:[``,`running`]};function ge({job:e,longest:t}){let n=u(e),r=e.duration?Math.round(e.duration*10)/10:0,[i,a]=he[e.status]||[``,e.status||`…`],o=e.status===`running`?`Still running`:r?`Took ${r} second${r===1?``:`s`}`:`No duration`,s=e.started?new Date(e.started*1e3).toLocaleTimeString(`en-GB`,{hour:`2-digit`,minute:`2-digit`}):`—`;return(0,V.jsxs)(`li`,{className:`act-row`,children:[(0,V.jsx)(`span`,{className:`mono dim act-xs`,children:s}),(0,V.jsx)(b,{name:`play`,className:`glyph act-glyph`}),(0,V.jsxs)(`span`,{className:`act-what`,children:[(0,V.jsx)(`span`,{className:`act-row-title`,children:n.verb}),n.scope&&(0,V.jsx)(`span`,{className:`dim act-xs act-ell`,title:n.command,children:n.scope})]}),(0,V.jsx)(`span`,{className:`act-dur`,role:`img`,"aria-label":o,children:(0,V.jsx)(`span`,{"data-sweep":!0,style:{width:t>0?`${(e.duration||0)/t*100}%`:`0%`}})}),(0,V.jsx)(`span`,{className:`badge ${i}`,children:a})]})}function _e({gate:e}){return(0,V.jsxs)(`li`,{className:`act-row gate`,children:[(0,V.jsx)(`span`,{className:`mono dim act-xs`,children:`—`}),(0,V.jsx)(b,{name:`rule`,className:`glyph act-glyph t-warn`}),(0,V.jsxs)(`span`,{className:`act-what`,children:[(0,V.jsx)(`span`,{className:`act-row-title`,children:e.title}),(0,V.jsx)(`span`,{className:`dim act-xs`,children:`Gate ledger`})]}),(0,V.jsx)(`span`,{className:`act-dur-none`,"aria-hidden":`true`}),(0,V.jsx)(`span`,{className:`badge warn`,children:`asked`})]})}var ve=5,ye=(e,t)=>[...new Set([...e.filter(Boolean),t].filter(Boolean))];function be(){let[e,t]=(0,B.useState)(null),[n,o]=(0,B.useState)(``),[s,u]=(0,B.useState)(ue),[f,m]=(0,B.useState)(!1),[g,y]=(0,B.useState)(``),b=(0,B.useRef)(null),x=e=>{let t={...s,...e};u(t),de(t)};re(e=>r.activity().then(n=>{if(e()){t(n),o(``);let e=ce(b,n?.activity);e&&y(t=>t===e?e+`\xA0`:e)}},t=>{e()&&o(t.message)}),2e3,[]);let S=v(()=>$(r.jobs()),[]),w=v(()=>$(r.gates()),[]),T=v(()=>$(r.catalog(`laws`)),[]),E=!e||e.enabled!==!1,D=Array.isArray(e?.installs)?e.installs:[],O=k(e?.activity,D).sort((e,t)=>e.session_id<t.session_id?-1:+(e.session_id>t.session_id)),A=i(),j=E&&e?O.filter(d).length:null,M=new Set(O.map(L)),N=k(e?.ended,D).filter(e=>!M.has(L(e))),P=ye([...O,...N].map(e=>e.host),s.host),F=ye([...O,...N].map(e=>p(e.cwd)),s.project),I=s.host&&s.project?`host or project`:s.host?`host`:s.project?`project`:``,R=e=>(!s.host||e.host===s.host)&&(!s.project||p(e.cwd)===s.project),z=O.filter(e=>R(e)&&(s.f!==`needs`||d(e))),ne=s.f===`all`||s.f===`needs`,H=s.f===`all`&&E?N.filter(R):[],U=f?H:H.slice(0,ve),W=!I&&(s.f===`all`||s.f===`runs`),G=!I&&(s.f===`all`||s.f===`gates`),K=S.data?.jobs||[],q=te(w.data,T.data),J=a(K,q,w.data?.days).map(e=>({...e,runs:W?e.runs:[],gate:G?e.gate:null})).filter(e=>e.runs.length||e.gate),Y=Math.max(0,...K.map(e=>e.duration||0)),X=c(J.flatMap(e=>e.runs.map(e=>`${e.id}:${e.duration}`)).join(`,`),`scaleX`),Z=async e=>{let n=!e.enabled;try{let i=await r.activityToggle(n,{host:e.host,path:e.path});if(i.ok===!1){o(i.error||`Could not change tracking`);return}let a=t=>i.enabled?t||[]:(t||[]).flatMap(t=>{let n=(t.installs||[t.install]).filter(t=>t!==e.install);return n.length?[{...t,install:n[0],installs:n}]:[]});t(t=>{let n=(t?.installs||[]).map(t=>t.install===e.install?{...t,enabled:i.enabled}:t);return{...t||{},installs:n,enabled:n.length===0||n.some(e=>e.enabled),activity:a(t?.activity),ended:a(t?.ended)}}),o(``)}catch(e){o(e.message)}},Q=(e,t,n)=>(0,V.jsxs)(`span`,{className:`row gap-8 act-sm`,children:[(0,V.jsx)(`label`,{htmlFor:`act-f-${e}`,children:t}),(0,V.jsxs)(`select`,{id:`act-f-${e}`,className:`sel`,value:s[e],disabled:n.length===0,title:n.length===0?`No source carries a ${e} yet`:void 0,onChange:t=>x({[e]:t.target.value}),children:[(0,V.jsxs)(`option`,{value:``,children:[`All `,e===`host`?`hosts`:`projects`]}),n.map(e=>(0,V.jsx)(`option`,{value:e,children:e},e))]})]});return(0,V.jsxs)(`div`,{className:`page-fill`,children:[(0,V.jsx)(l,{title:`Activity`,sub:`What your agents ran, what the gates asked, and which sessions are waiting on you.`}),(0,V.jsx)(`div`,{className:`sr-only`,"aria-live":`polite`,children:g}),n&&(0,V.jsx)(`div`,{className:`act-gap`,children:(0,V.jsx)(ee,{error:n})}),e&&(0,V.jsx)(fe,{enabled:E,installs:D,onToggle:Z}),(0,V.jsxs)(`div`,{className:`act-today`,children:[(0,V.jsx)(pe,{jobs:S.data,loading:S.loading}),(0,V.jsx)(me,{rows:q,gates:w.data,loading:w.loading}),(0,V.jsxs)(`section`,{className:`card pad-md act-stat`,"aria-labelledby":`act-wait-h`,children:[(0,V.jsx)(`h2`,{id:`act-wait-h`,className:`act-lbl`,children:`Waiting on you`}),!e&&!n?(0,V.jsx)(_,{}):e?(0,V.jsxs)(V.Fragment,{children:[E?(0,V.jsxs)(`span`,{className:`act-big act-wait`,children:[j,` `,(0,V.jsx)(`span`,{className:`dim act-sm`,children:j===1?`session`:`sessions`})]}):null,(0,V.jsx)(`p`,{className:`dim act-sm`,children:E?`A session that waits on an approval or on your answer counts here.`:`Turn tracking on to count the sessions that wait on you.`})]}):(0,V.jsx)(`p`,{className:`dim act-sm`,children:`The sessions could not be read.`})]})]}),(0,V.jsxs)(`div`,{className:`row wrap gap-8 act-filters`,children:[(0,V.jsx)(`div`,{role:`group`,"aria-label":`Filter`,className:`row wrap gap-8`,children:le.map(([e,t])=>(0,V.jsxs)(`button`,{type:`button`,className:s.f===e?`chip-f on`:`chip-f`,"aria-pressed":s.f===e,onClick:()=>x({f:e}),children:[t,e===`needs`&&j>0?(0,V.jsxs)(`span`,{className:`mono`,children:[` `,j]}):null]},e))}),Q(`host`,`Host`,P),Q(`project`,`Project`,F),(0,V.jsx)(h,{"aria-label":`Live sessions view`,children:[[`list`,`List`],[`garden`,`Garden`]].map(([e,t])=>(0,V.jsx)(`button`,{type:`button`,className:s.v===e?`on`:``,"aria-pressed":s.v===e,onClick:()=>x({v:e}),children:t},e))})]}),I&&s.f!==`needs`&&(0,V.jsxs)(`p`,{className:`dim act-sm`,children:[`Runs and gate asks carry no `,I,`; showing sessions only.`]}),ne&&(e?!E&&s.f!==`needs`?null:z.length===0?s.f===`needs`?(0,V.jsx)(C,{title:`Nothing waits on you`}):(0,V.jsx)(C,{title:`No active sessions`,children:`Start an agent session and it appears here.`}):s.v===`garden`?(0,V.jsx)(ie,{sessions:z,collisions:e.collisions}):(0,V.jsx)(`div`,{className:`stack gap-12 act-live`,ref:A,children:z.map(e=>(0,V.jsx)(`div`,{"data-flip":L(e),children:(0,V.jsx)(oe,{s:e})},L(e)))}):(0,V.jsx)(_,{label:`Reading live sessions…`})),H.length>0&&(0,V.jsxs)(`section`,{className:`stack gap-12 act-live act-ended`,"aria-labelledby":`act-ended-h`,children:[(0,V.jsx)(`h2`,{id:`act-ended-h`,className:`act-lbl`,children:`Recently ended`}),U.map(e=>(0,V.jsx)(`div`,{children:(0,V.jsx)(oe,{s:e})},L(e))),H.length>ve&&(0,V.jsx)(`button`,{type:`button`,className:`btn ghost sm`,"aria-expanded":f,onClick:()=>m(e=>!e),children:f?`Show fewer`:`Show all ${H.length}`})]}),s.f!==`needs`&&(0,V.jsx)(`section`,{"aria-label":`Feed`,className:`stack gap-16 act-feed`,ref:X,children:J.map(e=>(0,V.jsxs)(`section`,{className:`card act-day`,children:[(0,V.jsxs)(`h3`,{className:`act-day-h`,children:[(0,V.jsx)(`span`,{children:e.title}),(0,V.jsx)(`span`,{className:`mono dim`,children:e.sum})]}),(0,V.jsxs)(`ul`,{className:`act-rows`,children:[e.runs.map(e=>(0,V.jsx)(ge,{job:e,longest:Y},e.id)),e.gate&&(0,V.jsx)(_e,{gate:e.gate})]})]},e.key))})]})}export{be as default};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,t as n}from"./react-C1iE8mnY.js";import{t as r}from"./api-D_r0Jtla.js";import{H as i,M as a,O as o,T as s,X as c,Y as l,k as u,rt as d,st as f}from"./index-HfGmYXab.js";import{t as p}from"./EmptyState-CY5Pm2xy.js";import{a as m,d as h,f as g,i as _,l as v,o as y,r as b,t as x,v as S}from"./Bonsai-C1iBAt4v.js";import{t as C}from"./usePoll-o8ul-Sog.js";var w=e(t(),1),T=n();function E(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 D({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(`${u(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,T.jsxs)(`div`,{className:`row gap-10 act-line`,children:[(0,T.jsx)(`span`,{className:`badge act-who ${t?``:`acc`}`,children:t?`you`:`agent`}),(0,T.jsxs)(`div`,{className:`act-grow act-sm`,children:[!t&&(0,T.jsx)(`span`,{className:`feed-dot act-inline-dot ${E(e)||`acc`}`}),e.kind===`thinking`&&(0,T.jsx)(`span`,{className:`dim`,children:`thinking: `}),r?(0,T.jsx)(`span`,{className:`dim`,children:i}):t?i:(0,T.jsx)(`b`,{children:i}),e.error&&(0,T.jsxs)(`span`,{className:`dim`,children:[`: `,e.error]})]}),n.length>0&&(0,T.jsx)(`span`,{className:`dim mono act-xs act-fixed`,children:n.join(` · `)}),e.t?(0,T.jsx)(`time`,{className:`mono dim act-xs act-fixed`,dateTime:new Date(e.t).toISOString(),title:`${f(e.t/1e3)} ago`,children:new Date(e.t).toTimeString().slice(0,8)}):null]})}function O({turns:e}){return!e||e.length===0?(0,T.jsx)(`div`,{className:`dim act-sm`,children:`No conversation captured yet.`}):(0,T.jsx)(`div`,{className:`stack gap-12`,children:e.map((e,t)=>{let n=e.role===`user`;return(0,T.jsxs)(`div`,{className:`row gap-10 act-line`,children:[(0,T.jsx)(`span`,{className:`badge act-who ${n?``:`acc`}`,children:n?`you`:`agent`}),(0,T.jsx)(`div`,{className:`act-min act-sm${n?``:` muted`}`,children:e.text})]},t)})})}var k=5;function A({s:e}){let[t]=(0,w.useState)(y),[n,r]=(0,w.useState)(null),i=!!e.ended,o=i?{...e,status:a(e)?`busy`:e.status,error:null}:e,s=S(o,t),c=(0,w.useMemo)(()=>g(o,{sakura:t}),[s]),l=(0,w.useCallback)(e=>r(e),[]),u=v(e),d=Number(e.turns)||0,f=Number(e.compactions)||0,p=[`${d} turn${d===1?``:`s`}`,`context ${u==null?`unknown`:`${Math.round(u*100)} %`}`,`${f} compaction${f===1?``:`s`}`,`sub-agents: ${c.pads.filter(e=>e.key!=null).length} ${i?`unfinished`:`running`}, ${c.fallen.length} finished`].join(` · `),h=n==null?null:c.pads[n];return(0,T.jsxs)(`div`,{className:`card pad-md act-mt gd-detail${!i&&a(e)?` gd-needs`:``}`,children:[(0,T.jsx)(`div`,{role:`group`,tabIndex:0,"aria-label":`Bonsai pads, arrow keys walk them`,onKeyDown:e=>_(e,c.pads.length,n,l),children:(0,T.jsx)(b,{t:c,pad:n,swaying:!i&&e.status!==`idle`,onPad:l,px:k,label:`Bonsai of this session${i?`, ended`:``}: ${p}`})}),(0,T.jsxs)(`div`,{className:`stack gap-8 act-min`,children:[i&&(0,T.jsx)(`span`,{className:`dim act-xs`,children:`ended`}),(0,T.jsx)(`div`,{className:`dim act-sm`,children:p}),(0,T.jsx)(`span`,{className:`sr-only`,role:`status`,children:m(h)}),h?(0,T.jsx)(x,{pad:h}):(0,T.jsx)(`div`,{className:`dim act-xs`,children:`Hover or tap a pad, or use the arrow keys, for its files.`})]})]})}function j({sid:e}){let{sid:t,install:n}=h(e,window.location.hash),[a,u]=(0,w.useState)(null),[m,g]=(0,w.useState)(``),[_,v]=(0,w.useState)(!1),[y,b]=(0,w.useState)(!1),x=(0,w.useId)();C(e=>_?void 0:r.activityDetail(t,n).then(t=>{e()&&(u(t),g(``),v(!1))},t=>{e()&&(t.status===404?v(!0):g(t.message))}),2e3,[t,_]);let S=(0,T.jsxs)(`a`,{className:`btn ghost sm act-back`,href:`#/activity`,children:[(0,T.jsx)(d,{name:`arrow`}),` Activity`]});if(_)return(0,T.jsxs)(`div`,{className:`page-fill`,children:[S,(0,T.jsx)(p,{title:`Session ended`,action:(0,T.jsx)(`a`,{href:`#/activity`,children:`Back to Activity`}),children:`It's no longer live.`})]});if(!a)return(0,T.jsxs)(`div`,{className:`page-fill`,children:[S,m?(0,T.jsx)(l,{error:m}):(0,T.jsx)(c,{label:`Loading session…`})]});let E=a.session,k=E.files,j=E.todos,M=!!(k&&k.items&&k.items.length>0),N=!!(j&&j.items&&j.items.length>0),P=a.conversation||[],F=a.timeline||[],I=[...P.filter(e=>e.role===`user`).map(e=>({who:`you`,text:e.text,t:e.t||0})),...F.map(e=>({...e,who:`agent`}))].sort((e,t)=>(e.t||0)-(t.t||0));return(0,T.jsxs)(`div`,{className:`page-fill`,children:[S,(0,T.jsx)(i,{title:E.title||o(E.cwd)||E.session_id,sub:E.cwd?(0,T.jsx)(`span`,{className:`mono act-cwd`,title:E.cwd,children:E.cwd}):null}),m&&(0,T.jsx)(`div`,{className:`act-gap`,children:(0,T.jsx)(l,{error:m})}),(0,T.jsxs)(`div`,{className:`card pad-md`,children:[(0,T.jsx)(s,{s:E}),(0,T.jsxs)(`div`,{className:`dim act-updated`,children:[`updated `,f(E.updated_at),` ago`]})]}),(0,T.jsx)(A,{s:E}),(M||N)&&(0,T.jsxs)(`div`,{className:`grid gap-12 act-panels${M&&N?` two`:``}`,children:[M&&(0,T.jsxs)(`div`,{className:`card pad-md`,children:[(0,T.jsx)(`div`,{className:`card-head`,children:(0,T.jsxs)(`h2`,{children:[`Files touched `,(0,T.jsxs)(`span`,{className:`dim`,children:[`(`,k.count,`)`]})]})}),(0,T.jsx)(`div`,{className:`stack act-list`,children:k.items.map(e=>(0,T.jsxs)(`div`,{className:`row between gap-12 act-sm`,children:[(0,T.jsx)(`span`,{className:`mono act-ell act-grow`,title:e.file,children:e.file}),(0,T.jsxs)(`span`,{className:`act-fixed`,children:[(0,T.jsxs)(`span`,{className:`t-good`,children:[`+`,e.additions]}),` `,(0,T.jsxs)(`span`,{className:`t-bad`,children:[`−`,e.deletions]})]})]},e.file))})]}),N&&(0,T.jsxs)(`div`,{className:`card pad-md`,children:[(0,T.jsx)(`div`,{className:`card-head`,children:(0,T.jsxs)(`h2`,{children:[`Plan`,` `,(0,T.jsxs)(`span`,{className:`dim`,children:[`(`,j.done,`/`,j.total,`)`]})]})}),(0,T.jsx)(`div`,{className:`stack act-list`,children:j.items.map((e,t)=>(0,T.jsxs)(`div`,{className:`row gap-8 act-sm`,children:[(0,T.jsx)(`span`,{className:`feed-dot ${e.status===`completed`?`ok`:e.status===`in_progress`?`acc`:``}`}),(0,T.jsx)(`span`,{className:e.status===`completed`?`act-done`:void 0,children:e.content})]},t))})]})]}),(0,T.jsxs)(`div`,{className:`card pad-md act-mt`,children:[(0,T.jsxs)(`div`,{className:`card-head act-tl-head`,children:[(0,T.jsx)(`h2`,{children:`Timeline`}),F.length>0&&(0,T.jsx)(`button`,{className:`btn ghost sm`,"aria-expanded":y,"aria-controls":x,onClick:()=>b(e=>!e),children:y?`Show conversation`:`Show full stream (${I.length})`})]}),(0,T.jsx)(`div`,{id:x,children:y?(0,T.jsx)(`div`,{className:`stack gap-12`,children:I.map((e,t)=>(0,T.jsx)(D,{rec:e},t))}):(0,T.jsx)(O,{turns:P})})]})]})}export{A as SessionTree,j as default};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-XKyaHtl9.js";import{i as e,t}from"./react-C1iE8mnY.js";e();var n=t(),r={fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},i={advocate:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M16 50h14M23 50V14`}),(0,n.jsx)(`path`,{className:`ag-wave ag-f`,d:`M23 15h20l-5 7.5 5 7.5H23z`}),(0,n.jsx)(`path`,{className:`ag-call`,d:`M47 38a6 6 0 0 1 0 8M51 35a11 11 0 0 1 0 14`})]}),architect:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`rect`,{x:`14`,y:`14`,width:`36`,height:`32`,rx:`2`,opacity:`.3`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M20 40V22h12v9h12v9z`}),(0,n.jsx)(`path`,{className:`ag-draw ag-late`,pathLength:`100`,d:`M32 31v9`}),(0,n.jsx)(`path`,{d:`M14 52h36M14 50v4M50 50v4`,opacity:`.5`})]}),developer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`rect`,{className:`ag-f`,x:`10`,y:`14`,width:`44`,height:`36`,rx:`4`}),(0,n.jsx)(`path`,{d:`M10 22h44`,opacity:`.5`}),(0,n.jsx)(`circle`,{cx:`15`,cy:`18`,r:`1`}),(0,n.jsx)(`circle`,{cx:`19`,cy:`18`,r:`1`}),(0,n.jsx)(`path`,{className:`ag-nudge-l`,d:`M24 30l-6 6 6 6`}),(0,n.jsx)(`path`,{className:`ag-nudge-r`,d:`M40 30l6 6-6 6`}),(0,n.jsx)(`path`,{className:`ag-blink`,d:`M30 42h5`})]}),"devops-engineer":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M32 32c-5-9-18-9-18 0s13 9 18 0c5-9 18-9 18 0s-13 9-18 0z`,opacity:`.3`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M32 32c-5-9-18-9-18 0s13 9 18 0c5-9 18-9 18 0s-13 9-18 0z`}),(0,n.jsx)(`circle`,{className:`ag-pulse ag-f`,cx:`32`,cy:`32`,r:`3`})]}),"docker-expert":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`rect`,{className:`ag-rise ag-f`,x:`14`,y:`36`,width:`10`,height:`9`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-late ag-f`,x:`27`,y:`36`,width:`10`,height:`9`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-later ag-f`,x:`40`,y:`36`,width:`10`,height:`9`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-late ag-f`,x:`20`,y:`25`,width:`10`,height:`9`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-later ag-f`,x:`34`,y:`25`,width:`10`,height:`9`}),(0,n.jsx)(`path`,{d:`M8 52c5 0 5-3 10-3s5 3 10 3 5-3 10-3 5 3 10 3 5-3 10-3`,opacity:`.5`})]}),docs:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{className:`ag-f`,d:`M16 10h22l8 8v36H16z`}),(0,n.jsx)(`path`,{d:`M38 10v8h8`,opacity:`.5`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M21 26h18`}),(0,n.jsx)(`path`,{className:`ag-draw ag-late`,pathLength:`100`,d:`M21 33h18`}),(0,n.jsx)(`path`,{className:`ag-draw ag-later`,pathLength:`100`,d:`M21 40h11`}),(0,n.jsx)(`g`,{className:`ag-write`,children:(0,n.jsx)(`path`,{d:`M40 44l12-20 3 2-12 20-4 1z`})})]}),empiricist:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M12 12v40h40`,opacity:`.5`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-f`,x:`18`,y:`36`,width:`6`,height:`14`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-late ag-f`,x:`29`,y:`28`,width:`6`,height:`22`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-later ag-f`,x:`40`,y:`20`,width:`6`,height:`30`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M16 34l12-8 10 3 12-14`})]}),explorer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`32`,cy:`32`,r:`18`,opacity:`.5`}),(0,n.jsx)(`path`,{d:`M32 10v4M32 50v4M10 32h4M50 32h4`}),(0,n.jsxs)(`g`,{className:`ag-search`,children:[(0,n.jsx)(`path`,{className:`ag-f`,d:`M32 18l5 14h-10z`}),(0,n.jsx)(`path`,{d:`M32 18l5 14-5 14-5-14z`})]}),(0,n.jsx)(`circle`,{cx:`32`,cy:`32`,r:`2`})]}),framer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`g`,{className:`ag-frame`,children:(0,n.jsx)(`path`,{d:`M12 22V12h10M42 12h10v10M52 42v10H42M22 52H12V42`})}),(0,n.jsx)(`circle`,{className:`ag-pulse`,cx:`32`,cy:`32`,r:`7`,opacity:`.6`}),(0,n.jsx)(`path`,{d:`M32 22v6M32 36v6M22 32h6M36 32h6`,opacity:`.6`}),(0,n.jsx)(`circle`,{cx:`32`,cy:`32`,r:`1.5`})]}),historian:(0,n.jsxs)(`g`,{className:`ag-turn`,children:[(0,n.jsx)(`path`,{d:`M20 12h24M20 52h24`}),(0,n.jsx)(`path`,{d:`M22 12c0 12 20 12 20 20s-20 8-20 20M42 12c0 12-20 12-20 20s20 8 20 20`}),(0,n.jsx)(`path`,{className:`ag-drain ag-f`,d:`M25 17h14c-1 6-5 9-7 11-2-2-6-5-7-11z`}),(0,n.jsx)(`path`,{className:`ag-fill ag-f`,d:`M24 49h16c-1-5-5-8-8-9-3 1-7 4-8 9z`})]}),operator:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M12 42a20 20 0 0 1 40 0`,opacity:`.4`}),(0,n.jsx)(`path`,{className:`ag-f`,d:`M40 24a20 20 0 0 1 12 18`,strokeWidth:`4`,opacity:`.7`}),(0,n.jsx)(`path`,{d:`M16 30l3 2M32 22v4M48 30l-3 2`,opacity:`.6`}),(0,n.jsx)(`g`,{className:`ag-gauge`,children:(0,n.jsx)(`path`,{d:`M32 42l10-13`})}),(0,n.jsx)(`circle`,{cx:`32`,cy:`42`,r:`3`}),(0,n.jsx)(`path`,{d:`M22 50h20`,opacity:`.5`})]}),pragmatist:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M32 14v36M22 50h20`}),(0,n.jsx)(`circle`,{cx:`32`,cy:`14`,r:`2`}),(0,n.jsxs)(`g`,{className:`ag-tilt`,children:[(0,n.jsx)(`path`,{d:`M14 18h36`}),(0,n.jsx)(`path`,{className:`ag-f`,d:`M14 18l-5 12h10zM50 18l-5 12h10z`})]})]}),"kubernetes-specialist":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`32`,cy:`32`,r:`16`}),(0,n.jsx)(`path`,{d:`M32 8v13M32 43v13M8 32h13M43 32h13M15 15l9 9M40 40l9 9M49 15l-9 9M24 40l-9 9`,opacity:`.6`}),(0,n.jsx)(`circle`,{className:`ag-pulse ag-f`,cx:`32`,cy:`32`,r:`5`})]}),"memory-curator":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`rect`,{className:`ag-rise ag-f`,x:`17`,y:`16`,width:`14`,height:`20`,rx:`1`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-late ag-f`,x:`25`,y:`12`,width:`14`,height:`24`,rx:`1`}),(0,n.jsx)(`rect`,{className:`ag-rise ag-later ag-f`,x:`33`,y:`18`,width:`14`,height:`18`,rx:`1`}),(0,n.jsx)(`path`,{d:`M12 32h40v16a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2z`}),(0,n.jsx)(`path`,{d:`M26 40h12`,opacity:`.6`})]}),researcher:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{className:`ag-f`,cx:`30`,cy:`34`,r:`16`}),(0,n.jsx)(`path`,{d:`M14 34h32M30 18c-6 5-6 27 0 32`,opacity:`.5`}),(0,n.jsx)(`ellipse`,{className:`ag-spin`,cx:`30`,cy:`34`,rx:`7`,ry:`16`}),(0,n.jsx)(`g`,{className:`ag-orbit`,children:(0,n.jsx)(`circle`,{cx:`50`,cy:`14`,r:`3`})})]}),reviewer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M12 18h30M12 26h40M12 34h24M12 42h34`,opacity:`.4`}),(0,n.jsx)(`path`,{className:`ag-mark`,d:`M42 30l3 3 6-6`}),(0,n.jsxs)(`g`,{className:`ag-sweep`,children:[(0,n.jsx)(`circle`,{className:`ag-f`,cx:`22`,cy:`30`,r:`9`}),(0,n.jsx)(`path`,{d:`M29 37l8 8`,strokeWidth:`3`})]})]}),performance:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M26 10h8M30 10v6M44 18l3-3`}),(0,n.jsx)(`circle`,{className:`ag-f`,cx:`30`,cy:`34`,r:`18`}),(0,n.jsx)(`path`,{d:`M30 19v3M45 34h-3M30 49v-3M15 34h3`,opacity:`.6`}),(0,n.jsx)(`g`,{className:`ag-orbit`,children:(0,n.jsx)(`path`,{d:`M30 34V22`})}),(0,n.jsx)(`circle`,{cx:`30`,cy:`34`,r:`2`})]}),security:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{className:`ag-ripple`,d:`M32 8l18 6v13c0 12-8 21-18 26-10-5-18-14-18-26V14z`}),(0,n.jsx)(`path`,{className:`ag-f`,d:`M32 8l18 6v13c0 12-8 21-18 26-10-5-18-14-18-26V14z`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M24 31l6 6 11-11`})]}),skeptic:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{className:`ag-f`,d:`M12 14h40v28H30l-10 8v-8h-8z`}),(0,n.jsxs)(`g`,{className:`ag-lean`,children:[(0,n.jsx)(`path`,{d:`M27 23a5 5 0 1 1 7 4.5c-1.5.8-2 2-2 3.5v1`}),(0,n.jsx)(`circle`,{cx:`32`,cy:`36`,r:`1.2`})]})]}),"spring-boot-engineer":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 20a16 16 0 1 0 20 0`}),(0,n.jsx)(`path`,{className:`ag-pulse`,d:`M32 12v18`}),(0,n.jsx)(`path`,{className:`ag-sway ag-f`,d:`M32 50c0-8 5-12 13-12 0 8-5 12-13 12z`})]}),"spring-reviewer":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M12 18h26M12 26h18M12 34h22M12 42h14`,opacity:`.4`}),(0,n.jsx)(`path`,{className:`ag-sway ag-f`,d:`M42 28c0-8 4-12 11-12 0 8-4 12-11 12z`}),(0,n.jsxs)(`g`,{className:`ag-sweep`,children:[(0,n.jsx)(`circle`,{className:`ag-f`,cx:`24`,cy:`32`,r:`9`}),(0,n.jsx)(`path`,{d:`M31 39l8 8`,strokeWidth:`3`})]})]}),"spring-security":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{className:`ag-ripple`,d:`M22 28v-6a10 10 0 0 1 20 0v6`}),(0,n.jsx)(`path`,{d:`M22 28v-6a10 10 0 0 1 20 0v6`}),(0,n.jsx)(`rect`,{className:`ag-f`,x:`16`,y:`28`,width:`32`,height:`24`,rx:`4`}),(0,n.jsx)(`circle`,{cx:`32`,cy:`38`,r:`3`}),(0,n.jsx)(`path`,{className:`ag-draw`,pathLength:`100`,d:`M32 41v6`})]}),"react-engineer":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`g`,{className:`ag-spin`,children:[(0,n.jsx)(`ellipse`,{cx:`32`,cy:`32`,rx:`20`,ry:`8`}),(0,n.jsx)(`ellipse`,{cx:`32`,cy:`32`,rx:`20`,ry:`8`,transform:`rotate(60 32 32)`}),(0,n.jsx)(`ellipse`,{cx:`32`,cy:`32`,rx:`20`,ry:`8`,transform:`rotate(120 32 32)`})]}),(0,n.jsx)(`circle`,{className:`ag-pulse ag-f`,cx:`32`,cy:`32`,r:`4`})]}),"react-reviewer":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`g`,{opacity:`.4`,children:[(0,n.jsx)(`ellipse`,{cx:`30`,cy:`30`,rx:`18`,ry:`7`}),(0,n.jsx)(`ellipse`,{cx:`30`,cy:`30`,rx:`18`,ry:`7`,transform:`rotate(60 30 30)`}),(0,n.jsx)(`ellipse`,{cx:`30`,cy:`30`,rx:`18`,ry:`7`,transform:`rotate(120 30 30)`})]}),(0,n.jsxs)(`g`,{className:`ag-sweep`,children:[(0,n.jsx)(`circle`,{className:`ag-f`,cx:`30`,cy:`30`,r:`8`}),(0,n.jsx)(`path`,{d:`M36 36l9 9`,strokeWidth:`3`})]})]}),steward:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M12 52h40`,opacity:`.5`}),(0,n.jsx)(`path`,{d:`M22 52c2-3 6-4 10-4s8 1 10 4`,opacity:`.4`}),(0,n.jsxs)(`g`,{className:`ag-grow`,children:[(0,n.jsx)(`path`,{d:`M32 50V26`}),(0,n.jsx)(`path`,{className:`ag-sway ag-f`,d:`M32 32c0-9 6-14 15-14 0 9-6 14-15 14z`}),(0,n.jsx)(`path`,{className:`ag-sway ag-late ag-f`,d:`M32 38c0-7-5-11-12-11 0 7 5 11 12 11z`})]})]}),tester:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M26 10h12M28 10v14L15 48a3 3 0 0 0 2.6 4.5h28.8A3 3 0 0 0 49 48L36 24V10`}),(0,n.jsx)(`path`,{className:`ag-f ag-slosh`,d:`M20 40h24l4.5 8.5H15.5z`}),(0,n.jsx)(`circle`,{className:`ag-bubble`,cx:`28`,cy:`44`,r:`2`}),(0,n.jsx)(`circle`,{className:`ag-bubble ag-late`,cx:`35`,cy:`46`,r:`1.5`}),(0,n.jsx)(`circle`,{className:`ag-bubble ag-later`,cx:`31`,cy:`42`,r:`1`})]}),"user-advocate":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`24`,cy:`20`,r:`6`}),(0,n.jsx)(`path`,{d:`M12 50c0-9 5-15 12-15 4 0 7 1.5 9 4`}),(0,n.jsx)(`path`,{className:`ag-beat ag-f`,d:`M44 52s-10-6-10-12.5a5 5 0 0 1 10-1.5 5 5 0 0 1 10 1.5C54 46 44 52 44 52z`}),(0,n.jsx)(`path`,{className:`ag-twinkle`,d:`M48 22v4M46 24h4`})]}),visionary:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`g`,{className:`ag-rays`,opacity:`.5`,children:(0,n.jsx)(`path`,{d:`M32 6v6M32 52v6M6 32h6M52 32h6M13.6 13.6l4.2 4.2M46.2 46.2l4.2 4.2M13.6 50.4l4.2-4.2M46.2 17.8l4.2-4.2`})}),(0,n.jsx)(`path`,{className:`ag-f ag-pulse`,d:`M32 16l4.7 10.4 11.3 1.2-8.5 7.6 2.4 11.1L32 40.6l-9.9 5.7 2.4-11.1-8.5-7.6 11.3-1.2z`}),(0,n.jsx)(`path`,{className:`ag-twinkle`,d:`M50 8v6M47 11h6`})]})},a=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{className:`ag-f`,d:`M32 12l17 10v20L32 52 15 42V22z`}),(0,n.jsx)(`circle`,{className:`ag-pulse`,cx:`32`,cy:`32`,r:`6`})]});function o({name:e,size:t=64}){return(0,n.jsxs)(`svg`,{className:`agent-glyph`,viewBox:`0 0 64 64`,width:t,height:t,"aria-hidden":`true`,...r,children:[(0,n.jsx)(`circle`,{className:`ag-disc`,cx:`32`,cy:`32`,r:`31`}),(0,n.jsx)(`circle`,{className:`ag-ring`,cx:`32`,cy:`32`,r:`31`,strokeWidth:`1`,strokeDasharray:`2 7`}),i[e]||a]})}export{i as GLYPHS,o as default};