@yasaswy.nagavolu/agents 0.38.0 → 0.40.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 (739) hide show
  1. package/README.md +16 -6
  2. package/bin/cli.js +403 -35
  3. package/content/agents/execution-worker-subagent.md +1 -0
  4. package/content/agents/generic-purpose-subagent.md +1 -0
  5. package/content/agents/idea-agent/council_fanout.py +3 -3
  6. package/content/agents/lib/council_common.py +6 -6
  7. package/content/agents/plan-agent/plan_council_fanout.py +2 -2
  8. package/content/agents/review-agent/architecture-diagram-council-subagent.md +8 -0
  9. package/content/agents/review-agent/review_council_fanout.py +3 -3
  10. package/content/agents/review-agent/visual_diagnosis.py +2 -2
  11. package/content/agents/review-agent/visual_review_council_fanout.py +2 -2
  12. package/content/agents/reviewer-subagent-user.md +95 -0
  13. package/content/agents/reviewer-subagent.md +95 -0
  14. package/content/agents/scribe-agent/scribe_runner.py +2 -2
  15. package/content/agents/visual-review-council/visual_diagnosis.py +2 -2
  16. package/content/global/CLAUDE.md +5 -5
  17. package/content/global/githooks/_lib.sh +549 -0
  18. package/content/global/githooks/applypatch-msg +3 -0
  19. package/content/global/githooks/commit-msg +3 -0
  20. package/content/global/githooks/fsmonitor-watchman +3 -0
  21. package/content/global/githooks/p4-changelist +3 -0
  22. package/content/global/githooks/p4-post-changelist +3 -0
  23. package/content/global/githooks/p4-pre-submit +3 -0
  24. package/content/global/githooks/p4-prepare-changelist +3 -0
  25. package/content/global/githooks/post-applypatch +3 -0
  26. package/content/global/githooks/post-checkout +3 -0
  27. package/content/global/githooks/post-commit +3 -0
  28. package/content/global/githooks/post-index-change +3 -0
  29. package/content/global/githooks/post-merge +3 -0
  30. package/content/global/githooks/post-receive +3 -0
  31. package/content/global/githooks/post-rewrite +3 -0
  32. package/content/global/githooks/post-update +3 -0
  33. package/content/global/githooks/pre-applypatch +3 -0
  34. package/content/global/githooks/pre-auto-gc +3 -0
  35. package/content/global/githooks/pre-commit +3 -0
  36. package/content/global/githooks/pre-merge-commit +3 -0
  37. package/content/global/githooks/pre-push +22 -0
  38. package/content/global/githooks/pre-rebase +3 -0
  39. package/content/global/githooks/pre-receive +3 -0
  40. package/content/global/githooks/prepare-commit-msg +3 -0
  41. package/content/global/githooks/proc-receive +3 -0
  42. package/content/global/githooks/push-to-checkout +3 -0
  43. package/content/global/githooks/reference-transaction +49 -0
  44. package/content/global/githooks/sendemail-validate +3 -0
  45. package/content/global/githooks/update +3 -0
  46. package/content/global/hooks/lib/founderCmd.js +61 -0
  47. package/content/global/hooks/lib/modeDrift.js +2 -1
  48. package/content/global/hooks/lib/permissionRules.js +2 -1
  49. package/content/global/hooks/lib/projectHooks.js +7 -5
  50. package/content/global/hooks/pyrun.js +64 -9
  51. package/content/global/hooks/wiring_required.json +24 -0
  52. package/content/global/hooks/wiring_selfheal.js +250 -0
  53. package/content/manifest.json +1182 -35
  54. package/content/manifest.schema.json +19 -1
  55. package/content/mcps/chrome_devtools_gate.js +5 -3
  56. package/content/mcps/mcps.json +1 -7
  57. package/content/mods/handoff/HINT-PEEK.md +1 -1
  58. package/content/mods/handoff/README.md +15 -15
  59. package/content/mods/handoff/hooks/register.js +22 -8
  60. package/content/mods/handoff/lib/band.mjs +13 -5
  61. package/content/mods/handoff/lib/hint.mjs +1 -1
  62. package/content/mods/handoff/lib/prep.mjs +6 -3
  63. package/content/mods/handoff/prompts/handoff-prep.md +1 -1
  64. package/content/mods/handoff/tests/band.test.mjs +1 -1
  65. package/content/mods/handoff/tests/e2e/tui_keys_e2e.py +236 -0
  66. package/content/mods/handoff/tests/gitgate.test.mjs +7 -0
  67. package/content/mods/handoff/tests/hint.test.mjs +2 -2
  68. package/content/mods/handoff/tests/register-hint-peek.test.mjs +2 -2
  69. package/content/mods/handoff/tests/register.test.mjs +84 -4
  70. package/content/mods/handoff/tests/template.test.mjs +1 -1
  71. package/content/packages/cli/templates/start-litellm.ps1 +2 -1
  72. package/content/packages/cli/templates/start-litellm.sh +2 -1
  73. package/content/proxy/README.md +23 -41
  74. package/content/proxy/agent_model_guard.py +49 -21
  75. package/content/proxy/chat_ledger.py +2 -0
  76. package/content/proxy/chief_spine.py +263 -0
  77. package/content/proxy/claude_headless.py +109 -0
  78. package/content/proxy/claude_router.py +5 -2
  79. package/content/proxy/clean_litter_hook.py +48 -0
  80. package/content/proxy/credential_mutation_guard.py +83 -0
  81. package/content/proxy/delete_guard.py +110 -25
  82. package/content/proxy/delete_guard_path.py +3 -1
  83. package/content/proxy/founder_cmd.py +70 -0
  84. package/content/proxy/handover_ledger_hook.py +35 -6
  85. package/content/proxy/headless_spawn_guard.py +4 -2
  86. package/content/proxy/litellm/call_log.py +2 -2
  87. package/content/proxy/litellm/docker-compose.yml +3 -3
  88. package/content/proxy/litellm/smoke_test.py +4 -5
  89. package/content/proxy/litellm/start-docker.ps1 +2 -2
  90. package/content/proxy/litellm_url.py +126 -0
  91. package/content/proxy/mac_toast.py +19 -0
  92. package/content/proxy/machine_identity.py +183 -0
  93. package/content/proxy/machine_output_guard.py +194 -0
  94. package/content/proxy/managed_files_guard.py +2 -1
  95. package/content/proxy/portal/portal_service.py +3 -1
  96. package/content/proxy/prd_autobind.py +378 -0
  97. package/content/proxy/prd_binding.py +572 -0
  98. package/content/proxy/prd_home_gate.py +134 -0
  99. package/content/proxy/push_hold.py +13 -1
  100. package/content/proxy/resale_surfaces_hook.py +145 -0
  101. package/content/proxy/review_bypass_guard.py +1034 -0
  102. package/content/proxy/review_gate_store.py +699 -0
  103. package/content/proxy/review_git.py +178 -0
  104. package/content/proxy/review_items.py +139 -0
  105. package/content/proxy/review_judge.py +655 -0
  106. package/content/proxy/review_report.py +111 -0
  107. package/content/proxy/review_run.py +368 -0
  108. package/content/proxy/review_state.py +462 -0
  109. package/content/proxy/route_lock.py +1 -218
  110. package/content/proxy/routing_audit.py +2 -2
  111. package/content/proxy/routing_log.py +34 -8
  112. package/content/proxy/routing_post_hook.py +1 -1
  113. package/content/proxy/session_write_ledger.py +321 -0
  114. package/content/proxy/shared_worktree_revert_guard.py +254 -56
  115. package/content/proxy/shell_parse.py +1 -2
  116. package/content/proxy/subagent_repo_scope.py +476 -0
  117. package/content/proxy/tracking_sweep.py +0 -7
  118. package/content/proxy/worktree_location_guard.py +98 -0
  119. package/content/proxy/worktree_park.py +215 -29
  120. package/content/scripts/_vlm.py +2 -2
  121. package/content/scripts/resale_live_proof.py +148 -0
  122. package/content/scripts/review_pass.py +56 -234
  123. package/content/scripts/spend_compare_job.py +3 -0
  124. package/content/scripts/test_review_pass.py +52 -238
  125. package/content/skills/README.md +18 -0
  126. package/content/skills/android-emulator/SKILL.md +6 -5
  127. package/content/skills/android-emulator/emulator_launch.py +61 -4
  128. package/content/skills/android-emulator/tests/test_emulator_launch.py +74 -4
  129. package/content/skills/chief/SKILL.md +37 -0
  130. package/content/skills/chief/chief/__init__.py +1 -0
  131. package/content/skills/chief/chief/cli.py +145 -0
  132. package/content/skills/chief/chief/config.py +71 -0
  133. package/content/skills/chief/chief/deps.py +17 -0
  134. package/content/skills/chief/chief/gates.py +75 -0
  135. package/content/skills/chief/chief/post.py +85 -0
  136. package/content/skills/chief/chief/queue.py +123 -0
  137. package/content/skills/chief/chief/report.py +127 -0
  138. package/content/skills/chief/chief/runner.py +96 -0
  139. package/content/skills/chief/chief/tick.py +51 -0
  140. package/content/skills/chief/chief/when.py +39 -0
  141. package/content/skills/chief/chief/worker.py +100 -0
  142. package/content/skills/chief/chief_cli.py +11 -0
  143. package/content/skills/chief/tasks/tick_task.py +10 -0
  144. package/content/skills/chief/tests/conftest.py +35 -0
  145. package/content/skills/chief/tests/test_cli.py +81 -0
  146. package/content/skills/chief/tests/test_gates.py +110 -0
  147. package/content/skills/chief/tests/test_post.py +62 -0
  148. package/content/skills/chief/tests/test_queue.py +118 -0
  149. package/content/skills/chief/tests/test_report.py +72 -0
  150. package/content/skills/chief/tests/test_runner.py +108 -0
  151. package/content/skills/chief/tests/test_spine.py +86 -0
  152. package/content/skills/chief/tests/test_tick.py +71 -0
  153. package/content/skills/chief/tests/test_worker.py +144 -0
  154. package/content/skills/ci-runner/SKILL.md +7 -0
  155. package/content/skills/ci-runner/ci-runner-pool.md +1 -0
  156. package/content/skills/clean-litter/SKILL.md +62 -0
  157. package/content/skills/clean-litter/clean_litter.py +487 -0
  158. package/content/skills/clean-litter/tests/test_clean_litter.py +419 -0
  159. package/content/skills/deskflow/SKILL.md +86 -0
  160. package/content/skills/deskflow/apply.py +193 -0
  161. package/content/skills/deskflow/collect_mac.py +254 -0
  162. package/content/skills/deskflow/collect_pc.py +274 -0
  163. package/content/skills/deskflow/core_host.py +154 -0
  164. package/content/skills/deskflow/core_install.py +237 -0
  165. package/content/skills/deskflow/core_pins.py +48 -0
  166. package/content/skills/deskflow/deskflow.py +578 -0
  167. package/content/skills/deskflow/deskflow_defaults.py +29 -0
  168. package/content/skills/deskflow/displays.py +205 -0
  169. package/content/skills/deskflow/doctor.py +406 -0
  170. package/content/skills/deskflow/doctor_probes.py +78 -0
  171. package/content/skills/deskflow/firewall_rules.py +191 -0
  172. package/content/skills/deskflow/firewall_scope.py +78 -0
  173. package/content/skills/deskflow/fleet.py +535 -0
  174. package/content/skills/deskflow/fleet_migrate.py +140 -0
  175. package/content/skills/deskflow/fleet_schema.py +278 -0
  176. package/content/skills/deskflow/fleet_sync.py +363 -0
  177. package/content/skills/deskflow/genconfig.py +249 -0
  178. package/content/skills/deskflow/guard.py +80 -0
  179. package/content/skills/deskflow/helper_build.py +107 -0
  180. package/content/skills/deskflow/identify.py +54 -0
  181. package/content/skills/deskflow/index.html +54 -0
  182. package/content/skills/deskflow/layout.py +319 -0
  183. package/content/skills/deskflow/layout_check.py +143 -0
  184. package/content/skills/deskflow/listen.py +179 -0
  185. package/content/skills/deskflow/local.py +64 -0
  186. package/content/skills/deskflow/mac_firewall.py +46 -0
  187. package/content/skills/deskflow/macos-helper/Info.plist +26 -0
  188. package/content/skills/deskflow/macos-helper/main.swift +217 -0
  189. package/content/skills/deskflow/monitors.py +74 -0
  190. package/content/skills/deskflow/netstat.py +106 -0
  191. package/content/skills/deskflow/node.py +717 -0
  192. package/content/skills/deskflow/node_firewall.py +121 -0
  193. package/content/skills/deskflow/node_mac.py +319 -0
  194. package/content/skills/deskflow/node_trust.py +100 -0
  195. package/content/skills/deskflow/node_win.py +121 -0
  196. package/content/skills/deskflow/outcome.py +78 -0
  197. package/content/skills/deskflow/pair.py +77 -0
  198. package/content/skills/deskflow/peer.py +109 -0
  199. package/content/skills/deskflow/portal.css +262 -0
  200. package/content/skills/deskflow/portal.js +242 -0
  201. package/content/skills/deskflow/portal.py +315 -0
  202. package/content/skills/deskflow/portal_displays.js +132 -0
  203. package/content/skills/deskflow/portal_features.js +104 -0
  204. package/content/skills/deskflow/portal_features.py +157 -0
  205. package/content/skills/deskflow/portal_forms.js +314 -0
  206. package/content/skills/deskflow/portal_guard.js +45 -0
  207. package/content/skills/deskflow/render_png.py +119 -0
  208. package/content/skills/deskflow/restart_core.ps1 +36 -0
  209. package/content/skills/deskflow/restart_core.py +168 -0
  210. package/content/skills/deskflow/scroll_calibration.py +252 -0
  211. package/content/skills/deskflow/scroll_helper.py +214 -0
  212. package/content/skills/deskflow/scroll_watch.py +140 -0
  213. package/content/skills/deskflow/store.py +212 -0
  214. package/content/skills/deskflow/tasks.py +140 -0
  215. package/content/skills/deskflow/tests/conftest.py +53 -0
  216. package/content/skills/deskflow/tests/deskflow_fixtures.py +25 -0
  217. package/content/skills/deskflow/tests/node_fakes.py +48 -0
  218. package/content/skills/deskflow/tests/privacy_scan.py +274 -0
  219. package/content/skills/deskflow/tests/test_apply_guard.py +165 -0
  220. package/content/skills/deskflow/tests/test_apply_ux.py +179 -0
  221. package/content/skills/deskflow/tests/test_collectors.py +74 -0
  222. package/content/skills/deskflow/tests/test_core_install.py +364 -0
  223. package/content/skills/deskflow/tests/test_display_wiring.py +324 -0
  224. package/content/skills/deskflow/tests/test_doctor.py +556 -0
  225. package/content/skills/deskflow/tests/test_firewall.py +315 -0
  226. package/content/skills/deskflow/tests/test_fleet.py +381 -0
  227. package/content/skills/deskflow/tests/test_fleet_cli.py +60 -0
  228. package/content/skills/deskflow/tests/test_fleet_empty_report.py +384 -0
  229. package/content/skills/deskflow/tests/test_fleet_owner.py +515 -0
  230. package/content/skills/deskflow/tests/test_fleet_robust.py +388 -0
  231. package/content/skills/deskflow/tests/test_fleet_safety.py +208 -0
  232. package/content/skills/deskflow/tests/test_fleet_sync.py +434 -0
  233. package/content/skills/deskflow/tests/test_genconfig.py +222 -0
  234. package/content/skills/deskflow/tests/test_helper_build.py +159 -0
  235. package/content/skills/deskflow/tests/test_hubs_symmetry.py +290 -0
  236. package/content/skills/deskflow/tests/test_install_roles.py +86 -0
  237. package/content/skills/deskflow/tests/test_layout_check.py +183 -0
  238. package/content/skills/deskflow/tests/test_listen.py +412 -0
  239. package/content/skills/deskflow/tests/test_mac_portability.py +231 -0
  240. package/content/skills/deskflow/tests/test_netstat.py +82 -0
  241. package/content/skills/deskflow/tests/test_node.py +268 -0
  242. package/content/skills/deskflow/tests/test_node_adapters.py +250 -0
  243. package/content/skills/deskflow/tests/test_node_defaults.py +186 -0
  244. package/content/skills/deskflow/tests/test_node_robust.py +340 -0
  245. package/content/skills/deskflow/tests/test_pairing.py +408 -0
  246. package/content/skills/deskflow/tests/test_peer.py +258 -0
  247. package/content/skills/deskflow/tests/test_portal.py +206 -0
  248. package/content/skills/deskflow/tests/test_portal_features.py +448 -0
  249. package/content/skills/deskflow/tests/test_portal_features_http.py +147 -0
  250. package/content/skills/deskflow/tests/test_privacy.py +218 -0
  251. package/content/skills/deskflow/tests/test_restart.py +146 -0
  252. package/content/skills/deskflow/tests/test_scroll.py +434 -0
  253. package/content/skills/deskflow/tests/test_scroll_device.py +153 -0
  254. package/content/skills/deskflow/tests/test_scroll_helper.py +684 -0
  255. package/content/skills/deskflow/tests/test_scroll_readonly.py +283 -0
  256. package/content/skills/deskflow/tests/test_ui_spacing.py +48 -0
  257. package/content/skills/deskflow/tls_cert.py +136 -0
  258. package/content/skills/deskflow/tls_trust.py +89 -0
  259. package/content/skills/dev-bridge/SKILL.md +67 -0
  260. package/content/skills/dev-bridge/dev_bridge.py +1752 -0
  261. package/content/skills/dev-bridge/tests/conftest.py +21 -0
  262. package/content/skills/dev-bridge/tests/test_dev_bridge.py +1594 -0
  263. package/content/skills/disk-cleanup/tests/test_make_space_mac.py +13 -0
  264. package/content/skills/gmail-reader/README.md +13 -3
  265. package/content/skills/gmail-reader/SKILL.md +10 -6
  266. package/content/skills/gmail-reader/gmail_reader/client.py +2 -2
  267. package/content/skills/gmail-reader/gmail_reader/commands.py +24 -9
  268. package/content/skills/gmail-reader/gmail_reader/credentials.py +56 -3
  269. package/content/skills/gmail-reader/gmail_reader/oauth.py +30 -23
  270. package/content/skills/gmail-reader/gmail_reader/version.py +1 -1
  271. package/content/skills/gmail-reader/tests/conftest.py +2 -0
  272. package/content/skills/gmail-reader/tests/test_accounts.py +182 -0
  273. package/content/skills/gmail-reader/tests/test_attachments.py +2 -2
  274. package/content/skills/gmail-reader/tests/test_commands.py +5 -5
  275. package/content/skills/gmail-reader/tests/test_oauth.py +2 -1
  276. package/content/skills/heavy-gate-runner/SKILL.md +1 -1
  277. package/content/skills/house-sale/README.md +2 -0
  278. package/content/skills/house-sale/SKILL.md +1 -0
  279. package/content/skills/house-sale/house_sale/__main__.py +17 -2
  280. package/content/skills/house-sale/house_sale/doctor.py +5 -1
  281. package/content/skills/house-sale/house_sale/restore.py +118 -0
  282. package/content/skills/house-sale/tests/test_restore.py +117 -0
  283. package/content/skills/low-ram-advisor/ram_optimize.py +3 -1
  284. package/content/skills/make-space/make_space.py +6 -3
  285. package/content/skills/ntfy/README.md +17 -0
  286. package/content/skills/ntfy/SKILL.md +64 -0
  287. package/content/skills/ntfy/ntfy/__init__.py +11 -0
  288. package/content/skills/ntfy/ntfy/__main__.py +3 -0
  289. package/content/skills/ntfy/ntfy/channels.py +116 -0
  290. package/content/skills/ntfy/ntfy/commands.py +144 -0
  291. package/content/skills/ntfy/ntfy/digest.py +46 -0
  292. package/content/skills/ntfy/ntfy/message.py +67 -0
  293. package/content/skills/ntfy/ntfy/outbox.py +164 -0
  294. package/content/skills/ntfy/ntfy/reach.py +45 -0
  295. package/content/skills/ntfy/ntfy/secrets.py +73 -0
  296. package/content/skills/ntfy/ntfy/testing.py +60 -0
  297. package/content/skills/ntfy/ntfy/transport.py +72 -0
  298. package/content/skills/ntfy/ntfy/version.py +3 -0
  299. package/content/skills/ntfy/pyproject.toml +16 -0
  300. package/content/skills/ntfy/tests/conftest.py +44 -0
  301. package/content/skills/ntfy/tests/test_ntfy.py +383 -0
  302. package/content/skills/publish-article/SKILL.md +15 -3
  303. package/content/skills/publish-article/build_hero.py +125 -0
  304. package/content/skills/publish-article/diagram_kinds_lint.py +95 -0
  305. package/content/skills/publish-article/illustration_lib.py +154 -0
  306. package/content/skills/publish-article/lint_article.py +52 -0
  307. package/content/skills/publish-article/publish_article.py +24 -6
  308. package/content/skills/publish-article/tests/test_build_hero.py +29 -0
  309. package/content/skills/publish-article/tests/test_card_and_hero_lint.py +62 -0
  310. package/content/skills/publish-article/tests/test_diagram_kinds_lint.py +89 -0
  311. package/content/skills/publish-article/tests/test_illustration_lib.py +127 -0
  312. package/content/skills/publish-article/tests/test_login_if_missing.py +178 -0
  313. package/content/skills/resale/CONTRACTS.md +51 -16
  314. package/content/skills/resale/README.md +241 -41
  315. package/content/skills/resale/SKILL.md +51 -73
  316. package/content/skills/resale/container/Dockerfile +4 -0
  317. package/content/skills/resale/container/docker-compose.yml +15 -1
  318. package/content/skills/resale/resale/__main__.py +12 -1
  319. package/content/skills/resale/resale/analysis/bundle.py +5 -8
  320. package/content/skills/resale/resale/analysis/commands.py +72 -1
  321. package/content/skills/resale/resale/analysis/gather.py +3 -7
  322. package/content/skills/resale/resale/analysis/market_watch.py +199 -0
  323. package/content/skills/resale/resale/analysis/market_watch_run.py +356 -0
  324. package/content/skills/resale/resale/analysis/paid_check.py +3 -44
  325. package/content/skills/resale/resale/analysis/reprice.py +241 -0
  326. package/content/skills/resale/resale/analysis/reprice_apply.py +95 -0
  327. package/content/skills/resale/resale/analysis/reprice_run.py +194 -0
  328. package/content/skills/resale/resale/analysis/runner.py +8 -12
  329. package/content/skills/resale/resale/analysis/stats.py +15 -15
  330. package/content/skills/resale/resale/build.py +10 -0
  331. package/content/skills/resale/resale/comps/accessories.py +99 -0
  332. package/content/skills/resale/resale/comps/estimate.py +4 -4
  333. package/content/skills/resale/resale/comps/market_value.py +15 -28
  334. package/content/skills/resale/resale/comps/review_runner.py +66 -26
  335. package/content/skills/resale/resale/comps/similar.py +153 -0
  336. package/content/skills/resale/resale/comps/specs.py +1 -1
  337. package/content/skills/resale/resale/contracts/event.schema.json +1 -1
  338. package/content/skills/resale/resale/contracts/item_specs.schema.json +30 -1
  339. package/content/skills/resale/resale/contracts/observation_batch.schema.json +2 -1
  340. package/content/skills/resale/resale/contracts/reader_targets.schema.json +5 -0
  341. package/content/skills/resale/resale/db/migrations/0038_post_from_any_state.sql +1 -0
  342. package/content/skills/resale/resale/db/migrations/0039_reprice.sql +62 -0
  343. package/content/skills/resale/resale/db/migrations/0040_quote_review_per_title.sql +1 -0
  344. package/content/skills/resale/resale/db/migrations/0041_included_items.sql +1 -0
  345. package/content/skills/resale/resale/db/migrations/0042_reader_reads.sql +13 -0
  346. package/content/skills/resale/resale/db/migrations/0043_market_watch.sql +69 -0
  347. package/content/skills/resale/resale/db/migrations/0044_lot_drafts.sql +68 -0
  348. package/content/skills/resale/resale/founder_words.py +106 -0
  349. package/content/skills/resale/resale/fresh_read.py +82 -0
  350. package/content/skills/resale/resale/inquiries/fbinbox.py +2 -1
  351. package/content/skills/resale/resale/inquiries/queries.py +1 -0
  352. package/content/skills/resale/resale/inquiries/scan.py +1 -1
  353. package/content/skills/resale/resale/inventory/lifecycle.py +3 -3
  354. package/content/skills/resale/resale/inventory/paid.py +0 -22
  355. package/content/skills/resale/resale/listing/__init__.py +1 -0
  356. package/content/skills/resale/resale/listing/commands.py +68 -0
  357. package/content/skills/resale/resale/listing/flow.py +181 -0
  358. package/content/skills/resale/resale/listing/gate.py +13 -0
  359. package/content/skills/resale/resale/offer/__init__.py +1 -0
  360. package/content/skills/resale/resale/offer/check.py +58 -0
  361. package/content/skills/resale/resale/offer/commands.py +61 -0
  362. package/content/skills/resale/resale/offer/evidence.py +139 -0
  363. package/content/skills/resale/resale/offer/render.py +50 -0
  364. package/content/skills/resale/resale/offer/routes.py +24 -0
  365. package/content/skills/resale/resale/offer/verdict.py +42 -0
  366. package/content/skills/resale/resale/portal/layout.py +69 -17
  367. package/content/skills/resale/resale/portal/market_cells.py +1 -1
  368. package/content/skills/resale/resale/portal/paid_cells.py +3 -19
  369. package/content/skills/resale/resale/portal/pieces.py +29 -8
  370. package/content/skills/resale/resale/portal/views_analysis.py +73 -46
  371. package/content/skills/resale/resale/portal/views_conditions.py +9 -3
  372. package/content/skills/resale/resale/portal/views_inquiries.py +22 -20
  373. package/content/skills/resale/resale/portal/views_items.py +65 -31
  374. package/content/skills/resale/resale/portal/views_misc.py +21 -15
  375. package/content/skills/resale/resale/portal/views_postkit.py +51 -35
  376. package/content/skills/resale/resale/portal/views_reprice.py +107 -0
  377. package/content/skills/resale/resale/portal/views_selling.py +20 -17
  378. package/content/skills/resale/resale/portal/views_watch.py +95 -0
  379. package/content/skills/resale/resale/poster/adapters.py +41 -5
  380. package/content/skills/resale/resale/poster/commands.py +99 -43
  381. package/content/skills/resale/resale/poster/driver.py +84 -3
  382. package/content/skills/resale/resale/poster/own_tabs.py +5 -1
  383. package/content/skills/resale/resale/poster/preflight.py +1 -11
  384. package/content/skills/resale/resale/poster/review_window.py +39 -1
  385. package/content/skills/resale/resale/poster/runner.py +62 -66
  386. package/content/skills/resale/resale/poster/unconfirmed.py +113 -0
  387. package/content/skills/resale/resale/postkit/__init__.py +2 -1
  388. package/content/skills/resale/resale/postkit/draft_price.py +22 -0
  389. package/content/skills/resale/resale/postkit/drafts.py +177 -48
  390. package/content/skills/resale/resale/postkit/drift.py +91 -0
  391. package/content/skills/resale/resale/postkit/fill.py +32 -15
  392. package/content/skills/resale/resale/postkit/health.py +20 -7
  393. package/content/skills/resale/resale/postkit/lint.py +1 -3
  394. package/content/skills/resale/resale/postkit/lot_photos.py +64 -0
  395. package/content/skills/resale/resale/postkit/lot_sale.py +16 -0
  396. package/content/skills/resale/resale/postkit/lot_state.py +43 -0
  397. package/content/skills/resale/resale/postkit/lot_titles.py +33 -0
  398. package/content/skills/resale/resale/postkit/lots.py +88 -14
  399. package/content/skills/resale/resale/postkit/open_places.py +10 -2
  400. package/content/skills/resale/resale/postkit/platforms.py +16 -1
  401. package/content/skills/resale/resale/postkit/post_edit.py +24 -4
  402. package/content/skills/resale/resale/postkit/posting.py +3 -1
  403. package/content/skills/resale/resale/postkit/price_drop.py +6 -7
  404. package/content/skills/resale/resale/postkit/pricing.py +5 -7
  405. package/content/skills/resale/resale/postkit/ready.py +390 -0
  406. package/content/skills/resale/resale/postkit/text.py +24 -5
  407. package/content/skills/resale/resale/proxy_lib.py +28 -0
  408. package/content/skills/resale/resale/publisher/adapters/browser.py +2 -1
  409. package/content/skills/resale/resale/publisher/commands.py +8 -2
  410. package/content/skills/resale/resale/publisher/login_watch.py +144 -23
  411. package/content/skills/resale/resale/publisher/pricing.py +6 -5
  412. package/content/skills/resale/resale/publisher/review.py +2 -2
  413. package/content/skills/resale/resale/push/__init__.py +1 -0
  414. package/content/skills/resale/resale/push/commands.py +102 -0
  415. package/content/skills/resale/resale/push/link.py +35 -0
  416. package/content/skills/resale/resale/push/links.py +49 -0
  417. package/content/skills/resale/resale/push/rules.py +309 -0
  418. package/content/skills/resale/resale/push/run.py +228 -0
  419. package/content/skills/resale/resale/push/watchdog.py +50 -0
  420. package/content/skills/resale/resale/receipts/charges.py +83 -5
  421. package/content/skills/resale/resale/receipts/intake.py +2 -2
  422. package/content/skills/resale/resale/receipts/links.py +1 -1
  423. package/content/skills/resale/resale/receipts/reader_link.py +1 -1
  424. package/content/skills/resale/resale/receipts/store.py +2 -2
  425. package/content/skills/resale/resale/sales/aws.py +16 -0
  426. package/content/skills/resale/resale/sales/commands.py +68 -2
  427. package/content/skills/resale/resale/sales/feed.py +13 -12
  428. package/content/skills/resale/resale/sales/publish.py +58 -9
  429. package/content/skills/resale/resale/sales/render.py +1 -3
  430. package/content/skills/resale/resale/sales/routes.py +6 -1
  431. package/content/skills/resale/resale/sales/rules.py +19 -0
  432. package/content/skills/resale/resale/sales/tracker.py +41 -0
  433. package/content/skills/resale/resale/sales/verify.py +165 -0
  434. package/content/skills/resale/resale/sales/view.py +35 -9
  435. package/content/skills/resale/resale/service/app.py +29 -6
  436. package/content/skills/resale/resale/service/cap_refresh.py +4 -5
  437. package/content/skills/resale/resale/service/commands.py +107 -7
  438. package/content/skills/resale/resale/service/comp_gate.py +126 -15
  439. package/content/skills/resale/resale/service/comps_review.py +25 -12
  440. package/content/skills/resale/resale/service/comps_service.py +22 -3
  441. package/content/skills/resale/resale/service/condition_refresh.py +3 -3
  442. package/content/skills/resale/resale/service/draft_sync.py +21 -0
  443. package/content/skills/resale/resale/service/drafts.py +2 -6
  444. package/content/skills/resale/resale/service/ebay_poller.py +28 -7
  445. package/content/skills/resale/resale/service/fb_groups.py +1 -1
  446. package/content/skills/resale/resale/service/fresh_reads.py +61 -0
  447. package/content/skills/resale/resale/service/ingest.py +8 -3
  448. package/content/skills/resale/resale/service/inventory_ops.py +36 -8
  449. package/content/skills/resale/resale/service/item_specs_plan.py +11 -0
  450. package/content/skills/resale/resale/service/market.py +12 -10
  451. package/content/skills/resale/resale/service/market_watch_routes.py +52 -0
  452. package/content/skills/resale/resale/service/photo_folders.py +72 -0
  453. package/content/skills/resale/resale/service/photo_inbox.py +42 -32
  454. package/content/skills/resale/resale/service/push_routes.py +28 -0
  455. package/content/skills/resale/resale/service/queries.py +19 -4
  456. package/content/skills/resale/resale/service/reader_reads.py +40 -0
  457. package/content/skills/resale/resale/service/reprice_routes.py +64 -0
  458. package/content/skills/resale/resale/service/scheduler.py +99 -1
  459. package/content/skills/resale/resale/service/server.py +93 -12
  460. package/content/skills/resale/resale/service/similar_evidence.py +103 -0
  461. package/content/skills/resale/resale/settings.py +20 -0
  462. package/content/skills/resale/resale/sources/browser.py +35 -14
  463. package/content/skills/resale/resale/sources/browser_audit.py +7 -0
  464. package/content/skills/resale/resale/sources/chrome_launch.py +40 -0
  465. package/content/skills/resale/resale/sources/chrome_paths.py +4 -1
  466. package/content/skills/resale/resale/sources/client.py +41 -4
  467. package/content/skills/resale/resale/sources/commands.py +115 -28
  468. package/content/skills/resale/resale/sources/keyboard.py +42 -0
  469. package/content/skills/resale/resale/sources/listing_page.py +2 -1
  470. package/content/skills/resale/resale/sources/login_flow.py +55 -0
  471. package/content/skills/resale/resale/sources/login_window.py +24 -15
  472. package/content/skills/resale/resale/sources/logins.py +49 -5
  473. package/content/skills/resale/resale/sources/market_read.py +70 -0
  474. package/content/skills/resale/resale/sources/model.py +7 -1
  475. package/content/skills/resale/resale/sources/notify.py +55 -20
  476. package/content/skills/resale/resale/sources/own_check.py +6 -3
  477. package/content/skills/resale/resale/sources/own_price.py +81 -0
  478. package/content/skills/resale/resale/sources/profile_guard.py +77 -0
  479. package/content/skills/resale/resale/sources/readonly_lint.py +2 -2
  480. package/content/skills/resale/resale/sources/runner.py +84 -16
  481. package/content/skills/resale/resale/sources/session_cookies.py +22 -0
  482. package/content/skills/resale/resale/sources/window.py +49 -0
  483. package/content/skills/resale/resale/surfaces/__init__.py +0 -0
  484. package/content/skills/resale/resale/surfaces/check.py +134 -0
  485. package/content/skills/resale/resale/surfaces/commands.py +182 -0
  486. package/content/skills/resale/resale/surfaces/gate.py +101 -0
  487. package/content/skills/resale/resale/surfaces/local.py +56 -0
  488. package/content/skills/resale/resale/surfaces/model.py +39 -0
  489. package/content/skills/resale/resale/surfaces/platform.py +112 -0
  490. package/content/skills/resale/resale/surfaces/registry.py +104 -0
  491. package/content/skills/resale/resale/surfaces/sales.py +148 -0
  492. package/content/skills/resale/resale/transfer/__init__.py +1 -0
  493. package/content/skills/resale/resale/transfer/classify.py +64 -0
  494. package/content/skills/resale/resale/transfer/commands.py +25 -0
  495. package/content/skills/resale/resale/transfer/dbgate.py +40 -0
  496. package/content/skills/resale/resale/transfer/importer.py +444 -0
  497. package/content/skills/resale/resale/transfer/manifest.py +82 -0
  498. package/content/skills/resale/resale/transfer/merge.py +95 -0
  499. package/content/skills/resale/resale/visible_window.py +91 -0
  500. package/content/skills/resale/seeds/similar_brands.json +22 -0
  501. package/content/skills/resale/settings.example.env +22 -0
  502. package/content/skills/resale/tasks/reader_task.py +5 -6
  503. package/content/skills/resale/tests/conftest.py +39 -1
  504. package/content/skills/resale/tests/fixtures/capture/craigslist_home.html +5 -0
  505. package/content/skills/resale/tests/fixtures/capture/facebook_profile.html +7 -0
  506. package/content/skills/resale/tests/fixtures/capture/facebook_selling.html +6 -0
  507. package/content/skills/resale/tests/fixtures/capture/offerup_account.html +3 -0
  508. package/content/skills/resale/tests/fixtures/capture/offerup_profile.html +5 -0
  509. package/content/skills/resale/tests/fixtures/poster/cloudynights_blocked.html +4 -0
  510. package/content/skills/resale/tests/fixtures/poster/cloudynights_form.html +13 -0
  511. package/content/skills/resale/tests/fixtures/poster/cloudynights_form_iframe.html +9 -0
  512. package/content/skills/resale/tests/fixtures/poster/cloudynights_index.html +4 -0
  513. package/content/skills/resale/tests/fixtures/poster/cloudynights_signed_out.html +3 -0
  514. package/content/skills/resale/tests/portal_gate.py +271 -0
  515. package/content/skills/resale/tests/resale_home_guard.py +13 -0
  516. package/content/skills/resale/tests/sales_support.py +4 -3
  517. package/content/skills/resale/tests/service_support.py +3 -3
  518. package/content/skills/resale/tests/test_amazon_history.py +110 -0
  519. package/content/skills/resale/tests/test_amazon_reader.py +1 -2
  520. package/content/skills/resale/tests/test_amazon_service_and_login.py +1 -1
  521. package/content/skills/resale/tests/test_browser_cache_env.py +24 -0
  522. package/content/skills/resale/tests/test_bundle.py +3 -3
  523. package/content/skills/resale/tests/test_bundle_offer.py +103 -0
  524. package/content/skills/resale/tests/test_cap_off.py +44 -46
  525. package/content/skills/resale/tests/test_comp_accessories.py +83 -0
  526. package/content/skills/resale/tests/test_comps_review.py +92 -0
  527. package/content/skills/resale/tests/test_comps_review_task.py +106 -14
  528. package/content/skills/resale/tests/test_condition_refresh.py +1 -1
  529. package/content/skills/resale/tests/test_conditions_page.py +4 -4
  530. package/content/skills/resale/tests/test_draft_price.py +96 -0
  531. package/content/skills/resale/tests/test_draft_price_sync.py +161 -0
  532. package/content/skills/resale/tests/test_fbgroups_service.py +2 -2
  533. package/content/skills/resale/tests/test_founder_words.py +166 -0
  534. package/content/skills/resale/tests/test_inquiries_scan.py +1 -0
  535. package/content/skills/resale/tests/test_inquiries_service.py +1 -1
  536. package/content/skills/resale/tests/test_kit_mode.py +150 -0
  537. package/content/skills/resale/tests/test_lifecycle.py +7 -2
  538. package/content/skills/resale/tests/test_list_item.py +417 -0
  539. package/content/skills/resale/tests/test_live_proof.py +82 -0
  540. package/content/skills/resale/tests/test_login_cookie_e2e.py +288 -0
  541. package/content/skills/resale/tests/test_login_keychain.py +222 -0
  542. package/content/skills/resale/tests/test_login_window_autoclose.py +173 -29
  543. package/content/skills/resale/tests/test_lot_posts.py +426 -0
  544. package/content/skills/resale/tests/test_market_read.py +193 -0
  545. package/content/skills/resale/tests/test_market_service.py +3 -3
  546. package/content/skills/resale/tests/test_market_trust.py +32 -32
  547. package/content/skills/resale/tests/test_market_value.py +21 -26
  548. package/content/skills/resale/tests/test_market_watch.py +567 -0
  549. package/content/skills/resale/tests/test_offer_check.py +286 -0
  550. package/content/skills/resale/tests/test_one_profile.py +42 -0
  551. package/content/skills/resale/tests/test_own_check.py +29 -1
  552. package/content/skills/resale/tests/test_own_comps.py +122 -0
  553. package/content/skills/resale/tests/test_package_price.py +17 -0
  554. package/content/skills/resale/tests/test_paid_incl_tax.py +6 -8
  555. package/content/skills/resale/tests/test_paid_incl_tax_views.py +11 -29
  556. package/content/skills/resale/tests/test_photo_folders.py +92 -0
  557. package/content/skills/resale/tests/test_portal_fit_tables.py +54 -0
  558. package/content/skills/resale/tests/test_portal_item_column.py +86 -0
  559. package/content/skills/resale/tests/test_portal_layout.py +2 -2
  560. package/content/skills/resale/tests/test_portal_layout_gate.py +31 -0
  561. package/content/skills/resale/tests/test_portal_posted_pill.py +6 -0
  562. package/content/skills/resale/tests/test_portal_postkit.py +8 -3
  563. package/content/skills/resale/tests/test_portal_split.py +3 -2
  564. package/content/skills/resale/tests/test_portal_text_audit.py +2 -2
  565. package/content/skills/resale/tests/test_post_any_state.py +94 -0
  566. package/content/skills/resale/tests/test_post_ready.py +469 -0
  567. package/content/skills/resale/tests/test_poster.py +96 -46
  568. package/content/skills/resale/tests/test_poster_contract.py +23 -2
  569. package/content/skills/resale/tests/test_poster_own_tabs.py +20 -2
  570. package/content/skills/resale/tests/test_poster_review_window.py +5 -3
  571. package/content/skills/resale/tests/test_poster_tabs.py +89 -34
  572. package/content/skills/resale/tests/test_poster_unconfirmed.py +175 -0
  573. package/content/skills/resale/tests/test_postkit.py +5 -4
  574. package/content/skills/resale/tests/test_postkit_fill.py +50 -0
  575. package/content/skills/resale/tests/test_price_drop.py +65 -18
  576. package/content/skills/resale/tests/test_pricing_estimate.py +10 -11
  577. package/content/skills/resale/tests/test_pricing_rules.py +25 -56
  578. package/content/skills/resale/tests/test_private_sale_tax.py +0 -1
  579. package/content/skills/resale/tests/test_profile_guard.py +75 -0
  580. package/content/skills/resale/tests/test_profile_launch.py +229 -0
  581. package/content/skills/resale/tests/test_publisher_forms.py +3 -3
  582. package/content/skills/resale/tests/test_publisher_pricing.py +10 -1
  583. package/content/skills/resale/tests/test_push.py +315 -0
  584. package/content/skills/resale/tests/test_push_links.py +195 -0
  585. package/content/skills/resale/tests/test_push_proof.py +206 -0
  586. package/content/skills/resale/tests/test_reader_any_state.py +54 -0
  587. package/content/skills/resale/tests/test_reader_notify.py +27 -20
  588. package/content/skills/resale/tests/test_reader_reads.py +84 -0
  589. package/content/skills/resale/tests/test_reader_runner.py +75 -9
  590. package/content/skills/resale/tests/test_reprice_review.py +314 -0
  591. package/content/skills/resale/tests/test_reprice_rules.py +171 -0
  592. package/content/skills/resale/tests/test_sales_browser.py +1 -1
  593. package/content/skills/resale/tests/test_sales_build.py +113 -1
  594. package/content/skills/resale/tests/test_sales_commands.py +5 -2
  595. package/content/skills/resale/tests/test_sales_feed.py +31 -8
  596. package/content/skills/resale/tests/test_sales_http.py +15 -8
  597. package/content/skills/resale/tests/test_sales_no_llm.py +40 -0
  598. package/content/skills/resale/tests/test_sales_sold_republish.py +132 -0
  599. package/content/skills/resale/tests/test_sales_verify.py +147 -0
  600. package/content/skills/resale/tests/test_selling.py +26 -0
  601. package/content/skills/resale/tests/test_service_ebay.py +30 -0
  602. package/content/skills/resale/tests/test_service_http.py +1 -1
  603. package/content/skills/resale/tests/test_similar_comps.py +313 -0
  604. package/content/skills/resale/tests/test_surfaces.py +378 -0
  605. package/content/skills/resale/tests/test_surfaces_no_llm.py +69 -0
  606. package/content/skills/resale/tests/test_transfer_import.py +416 -0
  607. package/content/skills/resale/tests/test_visible_window.py +124 -0
  608. package/content/skills/resale/tests/test_window_never_closed.py +156 -0
  609. package/content/skills/resale/tests/transfer_support.py +191 -0
  610. package/content/skills/ship-the-code/QUEUE.md +57 -0
  611. package/content/skills/ship-the-code/SKILL.md +13 -31
  612. package/content/skills/ship-the-code/affected_tests.py +146 -0
  613. package/content/skills/ship-the-code/closure.py +116 -0
  614. package/content/skills/ship-the-code/pass_cache.py +121 -0
  615. package/content/skills/ship-the-code/prd_items.py +114 -0
  616. package/content/skills/ship-the-code/ship.py +786 -165
  617. package/content/skills/ship-the-code/ship_queue.py +420 -58
  618. package/content/skills/ship-the-code/tests/conftest.py +7 -0
  619. package/content/skills/ship-the-code/tests/test_ship_args.py +12 -0
  620. package/content/skills/ship-the-code/tests/test_ship_closure.py +131 -0
  621. package/content/skills/ship-the-code/tests/test_ship_failure_report.py +137 -0
  622. package/content/skills/ship-the-code/tests/test_ship_live_proof.py +179 -0
  623. package/content/skills/ship-the-code/tests/test_ship_moved_origin.py +202 -0
  624. package/content/skills/ship-the-code/tests/test_ship_prd_items.py +274 -0
  625. package/content/skills/ship-the-code/tests/test_ship_primary.py +144 -0
  626. package/content/skills/ship-the-code/tests/test_ship_queue.py +79 -0
  627. package/content/skills/ship-the-code/tests/test_ship_review_gate.py +267 -0
  628. package/content/skills/ship-the-code/tests/test_ship_sync_installed.py +120 -0
  629. package/content/skills/ship-the-code/tests/test_ship_test_speed.py +418 -0
  630. package/content/skills/ship-the-code/tests/test_ship_tooling.py +158 -0
  631. package/content/skills/ship-the-code/tests/test_ship_train.py +521 -0
  632. package/content/skills/ship-the-code/tests/test_ship_train_queue.py +465 -0
  633. package/content/skills/ship-the-code/tests/test_ship_worktree_push.py +62 -0
  634. package/content/skills/ship-the-code/train.py +644 -0
  635. package/content/skills/visual-check/compare.py +2 -2
  636. package/content/skills/web-search/SKILL.md +2 -0
  637. package/content/skills/web-search/search.py +2 -2
  638. package/content/skills/youtube-link-extractor/SKILL.md +14 -0
  639. package/content/skills/youtube-link-extractor/agents/openai.yaml +3 -0
  640. package/content/skills/youtube-link-extractor/scripts/extract-links.ps1 +154 -0
  641. package/content/skills/youtube-video-download/SKILL.md +18 -0
  642. package/content/skills/youtube-video-download/agents/openai.yaml +3 -0
  643. package/content/skills/youtube-video-download/scripts/download.ps1 +125 -0
  644. package/content/statusline/orchestration-line.ps1 +160 -31
  645. package/content/statusline/orchestration_line.py +174 -45
  646. package/content/statusline/statusline-command.ps1 +17 -4
  647. package/content/statusline/statusline-command.py +79 -4
  648. package/lib/agentsEnv.js +2 -1
  649. package/lib/bootstrap/tools.js +5 -4
  650. package/lib/bundleBackup.js +2 -1
  651. package/lib/bundleHeartbeat.js +3 -2
  652. package/lib/bundleRepoSetup.js +14 -11
  653. package/lib/bundleRuntime.js +69 -25
  654. package/lib/chiefCmd.js +86 -0
  655. package/lib/claudeCli.js +33 -0
  656. package/lib/claudeProfile.js +1 -2
  657. package/lib/claudeVersion.js +2 -12
  658. package/lib/cliLauncher.js +164 -0
  659. package/lib/codex-compatibility.json +0 -1
  660. package/lib/codex-global-config.js +3 -2
  661. package/lib/codex-lifecycle.js +3 -3
  662. package/lib/codex-toml.js +2 -1
  663. package/lib/codex.js +11 -7
  664. package/lib/components.js +4 -1
  665. package/lib/containerItems.js +8 -3
  666. package/lib/deployment.js +4 -3
  667. package/lib/devRootHooks.js +4 -3
  668. package/lib/doctor.js +70 -10
  669. package/lib/dropped.js +23 -0
  670. package/lib/founderCmd.js +25 -0
  671. package/lib/fsutil.js +11 -3
  672. package/lib/gitHooks.js +193 -0
  673. package/lib/gitleaksCheck.js +74 -11
  674. package/lib/globalHooksPath.js +83 -0
  675. package/lib/handoffCheck.js +44 -0
  676. package/lib/homeScope.js +49 -0
  677. package/lib/hostJobs.js +273 -0
  678. package/lib/installOutcome.js +3 -2
  679. package/lib/jobsState.js +85 -0
  680. package/lib/ledger.js +2 -1
  681. package/lib/litellmHealth.js +26 -3
  682. package/lib/litellmReach.js +75 -0
  683. package/lib/litellmUrl.js +84 -0
  684. package/lib/manifest.js +9 -1
  685. package/lib/memSafety.js +12 -7
  686. package/lib/migrate/context.js +5 -2
  687. package/lib/migrate/import.js +6 -1
  688. package/lib/migrate/index.js +35 -5
  689. package/lib/migrate/installSet.js +3 -2
  690. package/lib/migrate/secretScan.js +23 -0
  691. package/lib/migrate/sources.js +8 -23
  692. package/lib/migrate/state.js +242 -0
  693. package/lib/migrate/stateScan.js +67 -0
  694. package/lib/modValidate.js +2 -15
  695. package/lib/portalHealth.js +10 -7
  696. package/lib/prdBinding.js +41 -0
  697. package/lib/prerequisites.js +12 -5
  698. package/lib/pyDeps.js +3 -2
  699. package/lib/pythonHooks.js +2 -1
  700. package/lib/releaseLock.js +7 -2
  701. package/lib/repoSetupNeeds.js +3 -2
  702. package/lib/retired.js +71 -0
  703. package/lib/retiredHooks.js +57 -0
  704. package/lib/reviewGate.js +70 -0
  705. package/lib/routingCheck.js +44 -19
  706. package/lib/runner/args.js +7 -2
  707. package/lib/runner/banner.js +8 -6
  708. package/lib/runner/budget.js +17 -1
  709. package/lib/runner/cap.js +3 -2
  710. package/lib/runner/dockerChecks.js +50 -3
  711. package/lib/runner/gitlab.js +7 -0
  712. package/lib/runner/hints.js +5 -4
  713. package/lib/runner/index.js +81 -25
  714. package/lib/runner/janitorTask.js +5 -4
  715. package/lib/runner/managed.js +4 -3
  716. package/lib/runner/pool.js +3 -2
  717. package/lib/runner/profiles/linuxDocker.js +26 -1
  718. package/lib/runner/profiles/macosShell.js +29 -0
  719. package/lib/runner/project.js +28 -1
  720. package/lib/runner/rotate.js +98 -0
  721. package/lib/runner/single.js +98 -0
  722. package/lib/secretsPrompt.js +3 -2
  723. package/lib/secretsSet.js +4 -3
  724. package/lib/shared-instructions.js +3 -3
  725. package/lib/shellProfile.js +23 -8
  726. package/lib/taskBackend/launchd.js +19 -1
  727. package/lib/taskItems.js +28 -17
  728. package/lib/uninstall.js +2 -0
  729. package/lib/update.js +18 -3
  730. package/lib/version-banner.js +2 -1
  731. package/lib/winShim.js +34 -0
  732. package/lib/wiring.js +54 -22
  733. package/lib/worktreePark.js +3 -2
  734. package/package.json +1 -1
  735. package/templates/start-litellm.ps1 +2 -1
  736. package/templates/start-litellm.sh +2 -1
  737. package/content/proxy/execution_worker_review_gate.py +0 -1042
  738. package/content/scripts/backfill_armed_repos.py +0 -79
  739. package/content/skills/resale/resale/analysis/price_guard.py +0 -69
package/README.md CHANGED
@@ -7,7 +7,7 @@ The install, update, uninstall, and doctor commands target Claude Code and
7
7
  Codex by default. Codex skills live in `~/.agents/skills`; Codex instructions,
8
8
  hooks, agents, MCP servers, and the deployment ledger live under `~/.codex`.
9
9
  Use `--runtime claude` or `--runtime codex` to select one runtime. `--codex-dir`
10
- sets Codex's configuration home (or set `CODEX_HOME`). A custom
10
+ sets Codex's configuration home (or set `CODEX_HOME`; when `HOME` is redirected, a `CODEX_HOME` that lies outside that home is ignored). A custom
11
11
  `--target-dir` keeps the legacy Claude-only behavior; use `--runtime both`
12
12
  with both `--target-dir` and `--codex-dir` to install into isolated homes.
13
13
  Codex receives native agent and skill projections plus compatible hooks. Hooks
@@ -51,9 +51,16 @@ npm install -g @yasaswy.nagavolu/agents
51
51
  agents-cli install
52
52
  ```
53
53
 
54
+ ## The `agents-cli` command
55
+
56
+ `install`, `update` and `doctor --fix` put a launcher at `~/.claude/bin/agents-cli` (`agents-cli.cmd` on Windows) that runs this CLI: the checkout's `bin/cli.js` when run from a my-agents checkout, otherwise `npx`. macOS and Linux: a managed `agents-cli launcher PATH` block in the zsh (or bash) profile adds `~/.claude/bin` to `PATH`. Windows: the folder is added to the user `PATH` in the registry (the type of the existing value is kept). Open a new terminal to use it. `doctor` reports a missing or stale launcher or PATH entry and `doctor --fix` repairs both; every run is idempotent.
57
+
58
+ Every command this package prints for you to paste goes through one helper (`global/hooks/lib/founderCmd.js`, twin `proxy/founder_cmd.py`, `gh_cmd` in the git hooks). It prints `agents-cli ...` when that resolves on `PATH`, else the absolute launcher, else `node <cli.js>` for a checkout, else `npx`, with paths quoted for zsh or pwsh. A test fails when a message hard-codes a command form instead.
59
+
54
60
  ## Commands
55
61
 
56
62
  - `agents-cli --version` — print the installed CLI version
63
+ - `agents-cli <command> --help` (or `-h`) — print the usage and exit 0 without doing anything, for every command and runtime. `install`, `update`, `uninstall` and `doctor` reject an unknown flag with a non-zero exit before either the Claude or the Codex side writes anything.
57
64
  - `agents-cli install` — in a terminal (TTY), opens the interactive bundle
58
65
  menu: `↑`/`↓`/`j`/`k` move, `PgUp`/`PgDn` jump 5 rows, `space` toggles, `a`
59
66
  selects all, `enter` confirms, `q`/`Ctrl-C` cancels. A live detail pane
@@ -123,7 +130,7 @@ agents-cli install
123
130
  - `agents-cli settings --bundle <key> [--set NAME=VALUE]` — show the per-user settings file of a bundle and the required
124
131
  values still missing, or write one value into it (other lines are kept; the name must be a key of the bundle's example).
125
132
  - `agents-cli doctor [--fix] [--scan-root <dir>] [--json]` — report orphaned, missing and drifted
126
- files under the install target, plus project hooks in the repo's `.claude/settings.json` and
133
+ files under the install target (an orphan is a file this package once installed and left on disk because you had edited it, or one an installed bundle ships at that path without a ledger entry; any other unclaimed file in those folders, such as another tool's skills, is listed as left alone and never fails doctor; `claude` is started one way for every check, prerequisites included (lib/claudeCli.js): PATH widened off Windows, through the shell on Windows; any other prerequisite or setup command that resolves to a Windows .cmd or .bat shim (npm, npx, a pip-installed aws) is started through the shell too, and a test fails when a source file spawns `claude` directly; a bundle whose jobs are retired on this machine is not checked for stale task ticks or backups), plus project hooks in the repo's `.claude/settings.json` and
127
134
  `settings.local.json` whose script file is missing or that are bare `python <repo>/.claude/hooks/x.py`
128
135
  commands (they exit 2 and block a PreToolUse call when the file goes missing). `--fix` rewrites the
129
136
  bare ones to `sh ~/.claude/hooks/project_hook.sh .claude/hooks/x.py [args]` (fail-open launcher);
@@ -165,10 +172,11 @@ agents-cli install
165
172
  dropped, a committed `settings.json` is reported and never edited, bare `Write`/`NotebookEdit` are left alone.
166
173
  - `agents-cli update --repair` — also restores files whose source did not change but whose deployed copy differs from the install record (update otherwise keeps those as local edits, even with `--theirs`; Codex update names them and points here). Covers the Claude and Codex targets.
167
174
  - `agents-cli release-lock <status|acquire|phase|release> [--pid N] [--phase P]` — the lock `tools/release.ps1` holds from its first gate to its end (`~/.claude/state/release.lock`: pid, start time, phase). While a live lock exists, `update` into the default `~/.claude` (no `--target-dir`/`--codex-dir`) and `ship.py`'s global sync refuse with exit 3, because the release's dogfood gate fails on any write into the real `~/.claude`. A lock whose pid is dead, or older than 6 hours, is stale and ignored. Skipped under `NODE_ENV=test` unless `AGENTS_CLI_RELEASE_LOCK_CHECK=1`.
168
- - `agents-cli worktree park [path ... | --all] [--dry-run] [--json] [--repo DIR]` — frees local git worktrees while the work stays on origin (runs `proxy/worktree_park.py` from the checkout or `~/.claude/proxy`). Rules and skips: [`CONTRIBUTING.md`](../../CONTRIBUTING.md#worktree-parking). It needs `gitleaks` (`brew install gitleaks`, installed by `bootstrap`); with the `shipping` bundle installed, `doctor` reports a missing one and `doctor --fix` lists it under "Needs you".
175
+ - `agents-cli worktree park [path ... | --all] [--dry-run] [--json] [--repo DIR]` — frees local git worktrees while the work stays on origin (runs `proxy/worktree_park.py` from the checkout or `~/.claude/proxy`). Rules and skips: [`CONTRIBUTING.md`](../../CONTRIBUTING.md#worktree-parking). It needs `gitleaks` (`brew install gitleaks`, installed by `bootstrap`; on Windows `winget install --id Gitleaks.Gitleaks -e`, no elevation); `doctor --fix` installs it with the OS package manager and never skips the scan silently; with the `shipping` bundle installed, `doctor` reports a missing one and `doctor --fix` lists it under "Needs you".
176
+ - `agents-cli litellm <status|use-peer|use-local> [--host <name>] [--ip <lan-ip>] [--target-dir <path>]` — the per-machine LiteLLM base URL (`LITELLM_BASE_URL`, plus `LITELLM_BASE_URL_FALLBACK` for the LAN IP, both in `agents.env`; default `http://127.0.0.1:4000`). The Mac serves LiteLLM on the LAN with the master key required; a peer machine (the retired Windows PC) runs `use-peer`, which reads the Mac's name and IP from dev-bridge `peers.json` unless `--host` and `--ip` are given. `jobs retire` on Windows does it too when no URL is set. `status` probes the URL, the key, and that a call without the key is refused. `doctor` runs the same probe as "LiteLLM reachable from this machine" wherever a LiteLLM client (web-search, councils, `_vlm.py`) is installed and this machine runs no LiteLLM of its own.
169
177
  - `agents-cli sampler <status|register|unregister> [--dry-run] [--target-dir <path>]` — the hidden `ClaudeMemSampler` task of the memory-safety stack (a Windows logon task, a per-user LaunchAgent on macOS). `install` and `update` register or start it on their own when the stack is installed (idempotent, hidden, default `~/.claude` install only, skipped under `NODE_ENV=test`; `--no-scheduled-tasks` or `AGENTS_CLI_NO_SCHEDULED_TASKS=1` skips it). `--dry-run` runs `register_mem_sampler.ps1` with `-WhatIf` and changes nothing. `doctor` adds a "Memory-safety stack" block (task, wired hooks, budget file, newest sample in `logs/mem-samples.jsonl`) and exits 1 on a missing task, an unwired hook, an invalid budget file or a stale sample. See [`docs/memory-safety.md`](../../docs/memory-safety.md).
170
178
  - `agents-cli bootstrap [--check] [--json] [--skip <tool>]` — new-Mac setup, run after Homebrew and Node (the two manual commands). Installs or verifies git, uv, Python 3.12 (through uv), Docker Desktop, ffmpeg, OpenTofu, gitleaks, AWS CLI, Claude Code, Codex and Google Chrome, plus the optional PowerShell 7 and Expo EAS CLI, through Homebrew, npm or uv only (never a piped script), creates the dev folder (`~/dev`, or `MY_AGENTS_DEV_ROOT`) and prints the next commands. Idempotent: a second run installs nothing. A step that needs a click or an Apple ID (Xcode command line tools, Docker Desktop first launch, Android Studio, DaVinci Resolve) is listed as a manual step with one line of instruction; the command opens no window. `--check` changes nothing and lists present, missing and version per tool; on Windows and Linux the command only ever runs `--check`. `--json` prints the same table as JSON. Exit codes: 0 every required tool ready, 1 something required is missing or failed, 2 usage error. The Python packages and the Playwright browser are not bootstrap's job: `install` builds one locked managed environment (`~/.claude/pyenv`) when the Mac's Python does not satisfy the installed bundles, and installs the browser that matches its locked playwright. Runbook: [`docs/mac-setup.md`](../../docs/mac-setup.md).
171
- - `agents-cli migrate plan | export --out <file> | import <file> [--dry-run] [--force]` — carry the secrets, personal data and unpushed repo work that a public package cannot hold to a new machine in one passphrase-encrypted archive; `plan` is read-only. Details and the file list: [`docs/mac-setup.md`](../../docs/mac-setup.md).
179
+ - `agents-cli migrate plan | export --out <file> | import <file> [--dry-run] [--force]` — carry the secrets, personal data and unpushed repo work that a public package cannot hold to a new machine in one passphrase-encrypted archive; `plan` is read-only. `migrate export --scope harness-state --out <folder>` and `migrate import --from <folder>` move only project memory, handoffs and publish-article gate records as one plain, secret-free folder (through `dev-bridge send --inbox --move`); an existing different file is never overwritten, both are kept. Details and the file list: [`docs/mac-setup.md`](../../docs/mac-setup.md).
172
180
  - `agents-cli --help` — show usage
173
181
 
174
182
  ### The interactive menu
@@ -475,7 +483,7 @@ itself.
475
483
  shipped alongside any bundle whose hooks need it). The Node CLI has the same
476
484
  contract in `packages/cli/lib/agentsEnv.js`. Both resolve, in order: (1) a
477
485
  real environment variable of that name, (2) `<base>/agents.env`, where `base`
478
- is the `AGENTS_ENV_DIR` environment variable if set, else `~/.claude`. A real
486
+ is the `AGENTS_ENV_DIR` environment variable if set (ignored when `HOME` is redirected and the variable points outside it), else `~/.claude`. A real
479
487
  environment variable always wins, so exporting a secret in your shell (or CI)
480
488
  works with no `agents.env` file at all.
481
489
 
@@ -483,7 +491,7 @@ works with no `agents.env` file at all.
483
491
 
484
492
  One package state produces the same working setup on both systems. Four pieces are written for the host system at `install`, `update` and `doctor --fix`.
485
493
 
486
- - **Shell profile commands.** On macOS and Linux, `resume` (resume-session skill) and `litellm [start|restart|status|watch]` (launch-litellm skill) are written as marker-guarded blocks (`# --- <name> (BEGIN) ---` ... `(END) ---`) into `~/.zshrc` (macOS default, or when `$SHELL` is zsh; `$ZDOTDIR` honoured) and into `~/.bash_profile` (macOS) or `~/.bashrc` (Linux) when `$SHELL` is bash. A block exists only while its skill is installed: `uninstall` removes it, `doctor` reports a missing, outdated or orphan block, and `doctor --fix` repairs it. A first change to an existing profile keeps a `.bak-<date>` copy; an unknown login shell (cron, CI) writes nothing. Not ported: the PowerShell `claude` launcher, which follows the Windows npm shim to the newest `claude.exe`; npm links `claude` straight into `PATH` on macOS and Linux, so nothing needs following. The Git `PATH` and tmux lines on the Windows PC are hand-made and not package state.
494
+ - **Shell profile commands.** On macOS and Linux, `resume` (resume-session skill) and `litellm [start|restart|status|watch]` (launch-litellm skill) are written as marker-guarded blocks (`# --- <name> (BEGIN) ---` ... `(END) ---`) into `~/.zshrc` (macOS default, or when `$SHELL` is zsh; `$ZDOTDIR` honoured when it lies inside the home being installed into, or that home is the signed-in account's own; a `$ZDOTDIR` of the real account is never written while `HOME` points elsewhere) and into `~/.bash_profile` (macOS) or `~/.bashrc` (Linux) when `$SHELL` is bash. A block exists only while its skill is installed: `uninstall` removes it, `doctor` reports a missing, outdated or orphan block, and `doctor --fix` repairs it. A first change to an existing profile keeps a `.bak-<date>` copy; an unknown login shell (cron, CI) writes nothing. Not ported: the PowerShell `claude` launcher, which follows the Windows npm shim to the newest `claude.exe`; npm links `claude` straight into `PATH` on macOS and Linux, so nothing needs following. The Git `PATH` and tmux lines on the Windows PC are hand-made and not package state.
487
495
  - **one-brain client (`self-one-brain`, core, self profile).** One bundle owns the whole connection to the self-hosted one-brain, installed right after `harness-hygiene` and `self-global`. `install` and `update` clone `git@gitlab.com:ai8314511/one-brain.git` into the dev root over SSH (or `git pull --ff-only`) before hooks are wired; the bundle then reads the token with `aws ssm get-parameter --profile one-brain` (region read from the clone's `infra` folder), else from the stored secret `OB_MCP_BEARER_TOKEN` (`agents-cli secrets --bundle self-one-brain`), and runs the repo's own `scripts/setup-client.sh` (`setup-client.ps1` on Windows) with the token in the child environment only. It never runs that script with an empty token. A missing SSH key, AWS profile or token is a `Needs you` item with the steps for the host OS, never a failed install. The recall hook has one owner: the bundle wires `recall_hook.py` on `UserPromptSubmit` and `PreCompact` through `pyrun.js` (`~/dev` resolves to the dev root; `wiring.requires` keeps the hook unwired until the clone exists); the setup script skips its own hook step when it finds `recall_hook.py` wired, and a duplicate it did add is removed. `doctor` reports the clone, the MCP server, `one-brain/recall.env`, the hook count per event, the `## Memory-First (every session)` block in `CLAUDE.md` (`repoSetup.memoryMarker`; a missing block is a `Needs you` item with the zsh or PowerShell command), a live recall check (it runs the installed recall hook once, headless, with a sample prompt and checks the server answered), the token source (never the value) and the AWS identity of the `one-brain` profile (`aws sts get-caller-identity`; it must be the IAM user `repoSetup.token.aws.user`, and a wrong user is a `Needs you` item that names the user found; the account id is never printed). Step map for one-brain#4: [docs/mac-setup.md](../../docs/mac-setup.md#one-brain4-step-map). Only generic names are in the public package; the server address comes from the clone. Only the `~/.claude` of the signed-in home is touched: another `--target-dir` skips the setup script.
488
496
  - **Operating-system wording in `CLAUDE.md`.** Rules that name a Windows tool carry a macOS variant in `<!--os:name-->windows text<!--os:darwin-->macOS text<!--/os:name-->` fragments inside `global/CLAUDE.md`. Items with `"osStamp": true` are rendered for the host before they are hashed and copied: Windows receives today's text byte for byte, macOS and Linux receive the zsh, `kill -9`/`launchctl` and no-popup wording. The CLI test `osStamp.test.js` fails when a fragment lacks either variant, when one variant names the other system's tools, or when Windows-only or macOS-only wording sits outside a fragment.
489
497
  - **One secret store.** Every packaged consumer of `LITELLM_MASTER_KEY` and `GEMINI_API_KEY` (council fan-outs and visual diagnosis, web search and its guard hook, visual check, the vision helper, the LiteLLM smoke test, the retired router, the scribe runner, visual-gen and graphic-novel image generation) reads it through `proxy/agents_env.py`, so a value that exists only in `~/.claude/agents.env` works. `migrate export` folds the user environment and `settings.json` env secrets into `agents.env`, drops the retired OpenRouter API key (either spelling) and says so in the plan, and `migrate import` never writes a secret-named key into `settings.json`.
@@ -555,6 +563,8 @@ setting to tick) instead of failing with a Docker error.
555
563
 
556
564
  **Where tasks may be registered.** Background tasks (Windows scheduled tasks, macOS LaunchAgents: the memory sampler, a bundle's `task` items, the CI janitor) are machine-wide, so install and update register them only when the target is the signed-in account's own `~/.claude`, resolved from the operating system account and not from `HOME` or `USERPROFILE`. Any other target, or a run whose home is redirected by an environment variable, registers nothing and prints one line. A task that already runs from another install still on disk is reported (task name, current install, requested install) and left alone; `--takeover-tasks` re-points it. `doctor` flags a task whose action names a path that no longer exists.
557
565
 
566
+ **Retiring a job host.** The Mac is the only machine that runs jobs; a retired host must never start them again by itself. `agents-cli jobs retire [--bundle <key>]` writes `<target>/state/jobs-state.json` (local machine state, never in git); while it exists, `install`, `update` and `doctor --fix` start no task, LaunchAgent or container for the machine (or the named bundle) and print one skip line per item. `agents-cli jobs activate [--bundle <key>]` clears it and starts the jobs; `agents-cli jobs status` and `doctor` show the state, and `doctor` flags a job that is still running on a retired host with the command that stops it. Machine-local jobs (the daily `CleanLitter` task, the sampler, the CI janitor and runner pool) run on every machine: `update` installs the bundle that carries one when it is missing (the `clean-litter` bundle on a PC that never had it), and `doctor` reports a machine-local job whose bundle is not installed with `agents-cli install --bundle <key> --yes`; `doctor --fix` installs it. On Windows, `CleanLitter` cannot verify live use without `lsof`, so it keeps every worktree and scratch folder it cannot prove idle and only reports them. The retire list is every bundle task and container item (on any platform, so the PC sees the darwin-only LiteLLM, Postgres and portal too) plus the manifest `hostJobs` list (the PC-only spend task, old router tasks, CI runner pieces; an entry may list `platforms`). A job with `machineLocal: true` (memory sampler, CI runner pool and janitor, clean-litter) always runs on every machine: a retired host leaves it running and still registers it. `doctor --fix` stops and disables the live ones gracefully (`docker update --restart=no` then `docker stop`; `Disable-ScheduledTask` then `Stop-ScheduledTask`; `launchctl disable` then `bootout`; never a kill) and removes litter: `agents-cleanroom-*` containers with no running gate, and disabled tasks the manifest lists as `legacy`. An unreadable state file counts as retired. Without any marker, an explicit stop is also honoured: a Task Scheduler task with `Enabled=false`, a LaunchAgent under `launchctl disable`, and an exited container with a keep-up restart policy (`docker stop`) are left as they are (`left-disabled` / `left-stopped`) and only `jobs activate` starts them, because disabled or stopped is operator intent, while a missing job is still created.
567
+
558
568
  ## Updating
559
569
 
560
570
  ```bash