@yasaswy.nagavolu/agents 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/README.md +79 -5
  2. package/bin/cli.js +822 -721
  3. package/content/agents/execution-worker-subagent.md +65 -0
  4. package/content/agents/generic-purpose-subagent.md +69 -0
  5. package/content/agents/idea-agent/council_fanout.py +175 -0
  6. package/content/agents/idea-agent/idea-council-subagent.md +83 -0
  7. package/content/agents/orchestrator.md +90 -0
  8. package/content/agents/plan-agent/plan-council-subagent.md +85 -0
  9. package/content/agents/plan-agent/plan_council_fanout.py +152 -0
  10. package/content/agents/review-agent/architecture-diagram-council-subagent.md +81 -0
  11. package/content/agents/review-agent/architecture_diagram_council_fanout.py +170 -0
  12. package/content/agents/review-agent/review-council-subagent.md +107 -0
  13. package/content/agents/review-agent/review_council_fanout.py +197 -0
  14. package/content/agents/review-agent/visual-review-council-subagent.md +109 -0
  15. package/content/agents/review-agent/visual_diagnosis.py +445 -0
  16. package/content/agents/review-agent/visual_review_council_fanout.py +255 -0
  17. package/content/agents/scribe-agent/SKILL.md +125 -0
  18. package/content/agents/scribe-agent/scribe_item_read.py +44 -0
  19. package/content/agents/scribe-agent/scribe_item_write.py +40 -0
  20. package/content/agents/scribe-agent/scribe_runner.py +696 -0
  21. package/content/agents/scribe-agent/test_scribe_runner.py +127 -0
  22. package/content/agents/visual-review-council/test_triage_gate.py +74 -0
  23. package/content/agents/visual-review-council/triage_gate.py +433 -0
  24. package/content/agents/visual-review-council/visual_diagnosis.py +450 -0
  25. package/content/commands/idea.md +14 -0
  26. package/content/commands/plan-council.md +14 -0
  27. package/content/commands/review-council.md +14 -0
  28. package/content/global/CLAUDE.md +64 -0
  29. package/content/global/hooks/large_file_read_guard.py +83 -0
  30. package/content/global/rules/context7.md +10 -0
  31. package/content/global/rules/terraform.md +82 -0
  32. package/content/hooks/conclusion-scribe/README.md +76 -0
  33. package/content/hooks/conclusion-scribe/conclusion-scribe.env.example +18 -0
  34. package/content/hooks/conclusion-scribe/conclusion_scribe_hook.py +572 -0
  35. package/content/hooks/conclusion-scribe/test_conclusion_scribe_hook.py +619 -0
  36. package/content/manifest.json +778 -0
  37. package/content/manifest.schema.json +206 -0
  38. package/content/mcps/mcps.json +98 -0
  39. package/content/packages/cli/templates/litellm-config.yaml +95 -0
  40. package/content/packages/cli/templates/start-litellm.ps1 +47 -0
  41. package/content/packages/cli/templates/start-litellm.sh +51 -0
  42. package/content/proxy/README.md +366 -0
  43. package/content/proxy/agent_dispatch_guard.py +79 -0
  44. package/content/proxy/agent_model_guard.py +443 -0
  45. package/content/proxy/agents_env.py +68 -0
  46. package/content/proxy/artifact_mocker_gate.py +188 -0
  47. package/content/proxy/autostart_hook.py +79 -0
  48. package/content/proxy/capture_proxy.py +59 -0
  49. package/content/proxy/claude_router.py +1050 -0
  50. package/content/proxy/code_is_law_lint_hook.py +45 -0
  51. package/content/proxy/execution_worker_review_gate.py +87 -0
  52. package/content/proxy/handover_ledger_hook.py +418 -0
  53. package/content/proxy/html_mocker_monitor_guard.py +142 -0
  54. package/content/proxy/html_mocker_prompt_nudge.py +120 -0
  55. package/content/proxy/html_mocker_subagent_guard.py +163 -0
  56. package/content/proxy/litellm/config.yaml +113 -0
  57. package/content/proxy/litellm/start.ps1 +273 -0
  58. package/content/proxy/managed_files_guard.py +147 -0
  59. package/content/proxy/memory_first_hook.py +133 -0
  60. package/content/proxy/model_id_leak_guard.py +170 -0
  61. package/content/proxy/no_openrouter_guard.py +135 -0
  62. package/content/proxy/portal/README.md +126 -0
  63. package/content/proxy/portal/aggregator.py +308 -0
  64. package/content/proxy/portal/docker-compose.yml +35 -0
  65. package/content/proxy/portal/portal.html +429 -0
  66. package/content/proxy/portal/start-portal.ps1 +141 -0
  67. package/content/proxy/publish_guard.py +173 -0
  68. package/content/proxy/reddit_intent_hook.py +167 -0
  69. package/content/proxy/register_task.ps1 +101 -0
  70. package/content/proxy/remote_mode.ps1 +56 -0
  71. package/content/proxy/route_lock.py +488 -0
  72. package/content/proxy/serve_launch_detect.py +89 -0
  73. package/content/proxy/start.ps1 +144 -0
  74. package/content/proxy/switch_model.ps1 +47 -0
  75. package/content/proxy/triage_gate_hook.py +251 -0
  76. package/content/proxy/validate_dispatch_tiers.py +72 -0
  77. package/content/proxy/web_search_guard.py +93 -0
  78. package/content/scripts/_imgmetric.py +114 -0
  79. package/content/scripts/_vlm.py +167 -0
  80. package/content/scripts/check_skill_drift.py +176 -0
  81. package/content/scripts/gitlab_api.py +277 -0
  82. package/content/scripts/item.py +1049 -0
  83. package/content/scripts/migrate_v3_to_v4.py +273 -0
  84. package/content/scripts/tests/__init__.py +0 -0
  85. package/content/scripts/tests/test_item_cli.py +610 -0
  86. package/content/scripts/tests/test_item_resolve.py +234 -0
  87. package/content/scripts/tests/test_visual_loop_worker_contract.py +281 -0
  88. package/content/skills/README.md +66 -0
  89. package/content/skills/code-is-law/SKILL.md +28 -0
  90. package/content/skills/code-is-law/lint_skill.py +80 -0
  91. package/content/skills/context7-mcp/SKILL.md +53 -0
  92. package/content/skills/disk-cleanup/SKILL.md +69 -0
  93. package/content/skills/disk-cleanup/classify.ps1 +110 -0
  94. package/content/skills/disk-cleanup/known_patterns.json +31 -0
  95. package/content/skills/disk-cleanup/safe_clean.ps1 +209 -0
  96. package/content/skills/disk-cleanup/scan.ps1 +82 -0
  97. package/content/skills/disk-cleanup/worktree_audit.ps1 +134 -0
  98. package/content/skills/html-mocker/SKILL.md +100 -0
  99. package/content/skills/html-mocker/ack_round.py +72 -0
  100. package/content/skills/html-mocker/annotate.js +529 -0
  101. package/content/skills/html-mocker/audit.js +120 -0
  102. package/content/skills/html-mocker/mocker.py +461 -0
  103. package/content/skills/html-mocker/tests/test_ack_round.py +71 -0
  104. package/content/skills/html-mocker/tests/test_annotate_ui.py +684 -0
  105. package/content/skills/html-mocker/tests/test_audit.py +72 -0
  106. package/content/skills/html-mocker/tests/test_mocker_host_port.py +179 -0
  107. package/content/skills/html-mocker/tests/test_mocker_server.py +345 -0
  108. package/content/skills/html-mocker/tests/test_wait_round.py +106 -0
  109. package/content/skills/html-mocker/wait_round.py +120 -0
  110. package/content/skills/mattpocock-codebase-design/DEEPENING.md +37 -0
  111. package/content/skills/mattpocock-codebase-design/DESIGN-IT-TWICE.md +44 -0
  112. package/content/skills/mattpocock-codebase-design/SKILL.md +114 -0
  113. package/content/skills/mattpocock-codebase-design/agents/openai.yaml +3 -0
  114. package/content/skills/mattpocock-domain-modeling/ADR-FORMAT.md +47 -0
  115. package/content/skills/mattpocock-domain-modeling/CONTEXT-FORMAT.md +60 -0
  116. package/content/skills/mattpocock-domain-modeling/SKILL.md +74 -0
  117. package/content/skills/mattpocock-domain-modeling/agents/openai.yaml +3 -0
  118. package/content/skills/mattpocock-grill-me/SKILL.md +7 -0
  119. package/content/skills/mattpocock-grill-me/agents/openai.yaml +5 -0
  120. package/content/skills/mattpocock-grilling/SKILL.md +12 -0
  121. package/content/skills/mattpocock-grilling/agents/openai.yaml +3 -0
  122. package/content/skills/mattpocock-improve-codebase-architecture/HTML-REPORT.md +123 -0
  123. package/content/skills/mattpocock-improve-codebase-architecture/SKILL.md +71 -0
  124. package/content/skills/mattpocock-improve-codebase-architecture/agents/openai.yaml +5 -0
  125. package/content/skills/mattpocock-research/SKILL.md +12 -0
  126. package/content/skills/mattpocock-research/agents/openai.yaml +3 -0
  127. package/content/skills/mattpocock-tdd/SKILL.md +36 -0
  128. package/content/skills/mattpocock-tdd/agents/openai.yaml +3 -0
  129. package/content/skills/mattpocock-tdd/mocking.md +59 -0
  130. package/content/skills/mattpocock-tdd/tests.md +77 -0
  131. package/content/skills/mattpocock-to-spec/SKILL.md +75 -0
  132. package/content/skills/mattpocock-to-spec/agents/openai.yaml +5 -0
  133. package/content/skills/mattpocock-to-tickets/SKILL.md +105 -0
  134. package/content/skills/mattpocock-to-tickets/agents/openai.yaml +5 -0
  135. package/content/skills/mattpocock-wayfinder/SKILL.md +128 -0
  136. package/content/skills/mattpocock-wayfinder/agents/openai.yaml +5 -0
  137. package/content/skills/mcp-oauth-connector/README.md +71 -0
  138. package/content/skills/mcp-oauth-connector/SKILL.md +27 -0
  139. package/content/skills/mcp-oauth-connector/get-connector-values.ps1 +101 -0
  140. package/content/skills/onebrain-connector/SKILL.md +27 -0
  141. package/content/skills/onebrain-connector/get-connector-values.ps1 +1 -0
  142. package/content/skills/publish-article/SKILL.md +217 -0
  143. package/content/skills/publish-article/arch_component_lint.py +154 -0
  144. package/content/skills/publish-article/architecture_review.py +96 -0
  145. package/content/skills/publish-article/bundle_skill.py +255 -0
  146. package/content/skills/publish-article/companion_repo_checklist.py +164 -0
  147. package/content/skills/publish-article/html_mock_review.py +104 -0
  148. package/content/skills/publish-article/island_theme_lint.py +128 -0
  149. package/content/skills/publish-article/learn_feedback.py +173 -0
  150. package/content/skills/publish-article/lint_article.py +683 -0
  151. package/content/skills/publish-article/publish_article.py +977 -0
  152. package/content/skills/publish-article/repo_locate.py +57 -0
  153. package/content/skills/publish-article/tests/test_architecture_review.py +88 -0
  154. package/content/skills/publish-article/tests/test_bundle_skill.py +63 -0
  155. package/content/skills/publish-article/tests/test_companion_repo_checklist.py +89 -0
  156. package/content/skills/publish-article/tests/test_html_mock_review.py +89 -0
  157. package/content/skills/publish-article/tests/test_learn_feedback.py +64 -0
  158. package/content/skills/publish-article/tests/test_lint_article.py +337 -0
  159. package/content/skills/publish-article/tests/test_lint_markets.py +323 -0
  160. package/content/skills/publish-article/tests/test_publish_article.py +784 -0
  161. package/content/skills/read-reddit-post/SETUP.md +152 -0
  162. package/content/skills/read-reddit-post/SKILL.md +99 -0
  163. package/content/skills/read-reddit-post/browser_transport.py +676 -0
  164. package/content/skills/read-reddit-post/read_reddit.py +1858 -0
  165. package/content/skills/read-reddit-post/session_probe.py +266 -0
  166. package/content/skills/read-reddit-post/tests/test_browser_transport.py +533 -0
  167. package/content/skills/read-reddit-post/tests/test_read_reddit.py +1272 -0
  168. package/content/skills/resume-session/SKILL.md +56 -0
  169. package/content/skills/resume-session/resume_session.ps1 +497 -0
  170. package/content/skills/session-trace/README.md +61 -0
  171. package/content/skills/session-trace/SKILL.md +89 -0
  172. package/content/skills/session-trace/trace.py +484 -0
  173. package/content/skills/ship-the-code/SKILL.md +74 -0
  174. package/content/skills/ship-the-code/ship.py +964 -0
  175. package/content/skills/ship-the-code/tests/test_ship.py +1178 -0
  176. package/content/skills/switch-model/README.md +68 -0
  177. package/content/skills/switch-model/SKILL.md +32 -0
  178. package/content/skills/visual-check/SKILL.md +47 -0
  179. package/content/skills/visual-check/compare.py +157 -0
  180. package/content/skills/web-search/SKILL.md +41 -0
  181. package/content/skills/web-search/search.py +185 -0
  182. package/content/statusline/statusline-command.ps1 +74 -0
  183. package/lib/ansi.js +105 -0
  184. package/lib/fsutil.js +99 -99
  185. package/lib/install.js +229 -188
  186. package/lib/ledger.js +116 -116
  187. package/lib/manifest.js +26 -8
  188. package/lib/menu.js +105 -1
  189. package/lib/prepack.js +98 -0
  190. package/lib/tty-menu.js +106 -21
  191. package/lib/uninstall.js +94 -94
  192. package/lib/update.js +486 -363
  193. package/lib/wiring.js +379 -379
  194. package/package.json +6 -3
package/README.md CHANGED
@@ -19,6 +19,13 @@ any repo file is left unclaimed by a bundle or `internal[]`.
19
19
  npx @yasaswy.nagavolu/agents install
20
20
  ```
21
21
 
22
+ In PowerShell, quote the package name (`@` collides with the splatting
23
+ operator — harmless elsewhere, required here):
24
+
25
+ ```powershell
26
+ npx '@yasaswy.nagavolu/agents' install
27
+ ```
28
+
22
29
  or install the CLI globally:
23
30
 
24
31
  ```bash
@@ -30,11 +37,18 @@ agents-cli install
30
37
 
31
38
  - `agents-cli --version` — print the installed CLI version
32
39
  - `agents-cli install` — in a terminal (TTY), opens the interactive bundle
33
- menu: `↑`/`↓` move, `space` toggles, `a` selects all, `enter` confirms,
34
- `q`/`Ctrl-C` cancels. If raw-mode keypress handling isn't available, it
35
- falls back to a numbered prompt (`1,3,5` / `a` / blank to quit) — same
36
- underlying selection logic either way. Piped/non-interactive (CI) input
37
- instead prints the bundle list and instructs `--bundle` usage; exits 0.
40
+ menu: `↑`/`↓`/`j`/`k` move, `PgUp`/`PgDn` jump 5 rows, `space` toggles, `a`
41
+ selects all, `enter` confirms, `q`/`Ctrl-C` cancels. A live detail pane
42
+ below the list always shows what the highlighted bundle installs — item
43
+ counts by kind, real destination paths, MCP servers it registers,
44
+ component deps, secrets it will prompt for, and an approximate file
45
+ count/size. If raw-mode keypress handling isn't available, it falls back
46
+ to a numbered prompt (`1,3,5` / `a` / blank to quit) — same underlying
47
+ selection logic either way. Piped/non-interactive (CI) input instead
48
+ prints the bundle list and instructs `--bundle` usage; exits 0. Colors and
49
+ the fancy layout are on for a real TTY and off (plain text) when
50
+ `NO_COLOR` is set — see [The interactive menu](#the-interactive-menu)
51
+ below for what it looks like.
38
52
  - `agents-cli install --advanced` — interactive menu over **every** bundle
39
53
  (not just the public/non-advanced basic set), and for each bundle you pick,
40
54
  a second checkbox lets you deselect individual items within it (including
@@ -61,6 +75,59 @@ agents-cli install
61
75
  [Updating](#updating) below.
62
76
  - `agents-cli --help` — show usage
63
77
 
78
+ ### The interactive menu
79
+
80
+ In a color-capable terminal, `agents-cli install` looks roughly like this
81
+ (`✓`/colors omitted from this plain-text README, but selected rows get a
82
+ green check, the cursor row is highlighted, `(needs: ...)` is yellow,
83
+ `(asks: ...)` is cyan, and `[passthrough]` is magenta in the real thing):
84
+
85
+ ```
86
+ @yasaswy.nagavolu/agents v0.9.0
87
+ Select bundles to install
88
+
89
+ [ ] Session Tools — Resume past Claude Code sessions by name and archive session transcripts to markdown
90
+ [ ] Shipping — Ship code changes end-to-end: sync, test, commit, push, and file the GitLab issue update in one skill (asks: GITLAB_TOKEN)
91
+ ❯ [✓] Reddit Reader — Read Reddit posts/threads into Claude Code from a URL, with a deterministic prompt-intent nudge (asks: REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USER_AGENT)
92
+ [ ] Skill Authoring — code-is-law: turn skill/agent-file prose rules into an enforced PostToolUse lint
93
+
94
+ ────────────────────────────────────────────────────────────────
95
+ Reddit Reader — selected
96
+ 1 skill, 2 hooks (8 files, 201.5 KB)
97
+ → ~/.claude/skills/read-reddit-post
98
+ → ~/.claude/proxy/reddit_intent_hook.py
99
+ Asks: REDDIT_CLIENT_ID (optional), REDDIT_CLIENT_SECRET (optional), REDDIT_USER_AGENT (optional)
100
+
101
+
102
+ ────────────────────────────────────────────────────────────────
103
+ ↑/↓/j/k move PgUp/PgDn jump space toggle a all enter confirm q quit
104
+ ```
105
+
106
+ Once you confirm a selection, each bundle installs with a determinate
107
+ progress bar (file counts are known up front from the manifest), then a
108
+ one-line summary:
109
+
110
+ ```
111
+ Installing Visual Review ━━━━━━━━━━━━━━━━╸─────── 42/61 files
112
+ ✓ visual-review — 61 file(s) written, 0 unchanged, 1.2 MB, installed to C:/Users/you/.claude
113
+ ✓ wired 3 hook(s) into C:/Users/you/.claude/settings.json
114
+ ```
115
+
116
+ After every requested bundle finishes, a final summary recaps what landed
117
+ where and what's next:
118
+
119
+ ```
120
+ Summary
121
+ ✓ Reddit Reader — 8 file(s), 201.5 KB, 1 hook(s) wired
122
+
123
+ Installed to C:/Users/you/.claude. Next: agents-cli secrets to fill in any skipped secrets, agents-cli update --yes to refresh later.
124
+ ```
125
+
126
+ `NO_COLOR=1` (or a non-TTY stdout) strips all color from every line above
127
+ but keeps the same layout and information; a terminal that can't do raw-mode
128
+ keypress handling at all falls back further, to the plain numbered prompt
129
+ described above.
130
+
64
131
  ### Bundle dispositions in the menu
65
132
 
66
133
  - **installable** — installs immediately, whether or not the bundle declares
@@ -257,6 +324,13 @@ is:
257
324
  npx @yasaswy.nagavolu/agents@latest update
258
325
  ```
259
326
 
327
+ In PowerShell, quote the package name (`@` collides with the splatting
328
+ operator — harmless elsewhere, required here):
329
+
330
+ ```powershell
331
+ npx '@yasaswy.nagavolu/agents@latest' update
332
+ ```
333
+
260
334
  Every installed file is compared three ways — its hash in the shipped
261
335
  source, its hash in `<target-dir>/agents-ledger.json` (what was last
262
336
  installed), and its actual on-disk hash: