@yasaswy.nagavolu/agents 0.37.0 → 0.38.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 (340) hide show
  1. package/README.md +33 -4
  2. package/bin/cli.js +221 -31
  3. package/content/global/hooks/lib/modeDrift.js +11 -2
  4. package/content/global/hooks/lib/projectHooks.js +22 -1
  5. package/content/hooks/conclusion-scribe/conclusion_scribe_hook.py +1 -1
  6. package/content/hooks/conclusion-scribe/test_conclusion_scribe_hook.py +2 -0
  7. package/content/manifest.json +322 -37
  8. package/content/manifest.schema.json +55 -0
  9. package/content/mcps/chrome_devtools_final_actions.json +2 -2
  10. package/content/packages/cli/templates/litellm-config.yaml +4 -0
  11. package/content/proxy/README.md +17 -0
  12. package/content/proxy/delete_guard.py +2453 -0
  13. package/content/proxy/delete_guard_path.py +69 -0
  14. package/content/proxy/litellm/config.yaml +2 -0
  15. package/content/proxy/shared_worktree_revert_guard.py +77 -1
  16. package/content/proxy/worktree_park.py +512 -0
  17. package/content/scripts/register_spend_compare_task.ps1 +60 -0
  18. package/content/scripts/spend_compare_job.py +215 -0
  19. package/content/skills/README.md +1 -0
  20. package/content/skills/code-is-law/lint_skill.py +19 -0
  21. package/content/skills/disk-cleanup/SKILL.md +1 -1
  22. package/content/skills/disk-cleanup/disk_scan.py +1 -1
  23. package/content/skills/disk-cleanup/space_core.py +52 -0
  24. package/content/skills/disk-cleanup/tests/conftest.py +9 -2
  25. package/content/skills/disk-cleanup/tests/test_disk_scan_mac.py +5 -1
  26. package/content/skills/disk-cleanup/tests/test_make_space_mac.py +22 -6
  27. package/content/skills/gmail-reader/README.md +13 -1
  28. package/content/skills/gmail-reader/SKILL.md +7 -3
  29. package/content/skills/gmail-reader/gmail_reader/__init__.py +3 -2
  30. package/content/skills/gmail-reader/gmail_reader/attachments.py +82 -0
  31. package/content/skills/gmail-reader/gmail_reader/client.py +14 -5
  32. package/content/skills/gmail-reader/gmail_reader/commands.py +27 -1
  33. package/content/skills/gmail-reader/gmail_reader/purchases/__init__.py +2 -2
  34. package/content/skills/gmail-reader/gmail_reader/purchases/parse.py +29 -6
  35. package/content/skills/gmail-reader/gmail_reader/scope.py +11 -3
  36. package/content/skills/gmail-reader/gmail_reader/version.py +1 -1
  37. package/content/skills/gmail-reader/tests/test_amazon_recommendations.py +86 -0
  38. package/content/skills/gmail-reader/tests/test_attachments.py +167 -0
  39. package/content/skills/gmail-reader/tests/test_durable.py +1 -1
  40. package/content/skills/gmail-reader/tests/test_readonly.py +21 -5
  41. package/content/skills/house-sale/CONTRACTS.md +83 -0
  42. package/content/skills/house-sale/README.md +101 -0
  43. package/content/skills/house-sale/SKILL.md +48 -0
  44. package/content/skills/house-sale/config.example.json +43 -0
  45. package/content/skills/house-sale/house_sale/__init__.py +2 -0
  46. package/content/skills/house-sale/house_sale/__main__.py +65 -0
  47. package/content/skills/house-sale/house_sale/api.py +81 -0
  48. package/content/skills/house-sale/house_sale/builder.py +85 -0
  49. package/content/skills/house-sale/house_sale/closing.py +95 -0
  50. package/content/skills/house-sale/house_sale/config.py +156 -0
  51. package/content/skills/house-sale/house_sale/content.py +56 -0
  52. package/content/skills/house-sale/house_sale/db.py +84 -0
  53. package/content/skills/house-sale/house_sale/doctor.py +67 -0
  54. package/content/skills/house-sale/house_sale/estimate.py +90 -0
  55. package/content/skills/house-sale/house_sale/ingest.py +122 -0
  56. package/content/skills/house-sale/house_sale/market.py +62 -0
  57. package/content/skills/house-sale/house_sale/panel.py +183 -0
  58. package/content/skills/house-sale/house_sale/pitch.py +118 -0
  59. package/content/skills/house-sale/house_sale/plan_bridge.py +225 -0
  60. package/content/skills/house-sale/house_sale/poll.py +132 -0
  61. package/content/skills/house-sale/house_sale/rates.py +45 -0
  62. package/content/skills/house-sale/house_sale/redfin.py +160 -0
  63. package/content/skills/house-sale/house_sale/schedule.py +18 -0
  64. package/content/skills/house-sale/house_sale/valuation.py +278 -0
  65. package/content/skills/house-sale/house_sale/view.py +93 -0
  66. package/content/skills/house-sale/settings.example.env +9 -0
  67. package/content/skills/house-sale/talking-points.example.json +156 -0
  68. package/content/skills/house-sale/tasks/_bootstrap.py +18 -0
  69. package/content/skills/house-sale/tasks/poll_task.py +30 -0
  70. package/content/skills/house-sale/tasks/task_items.json +20 -0
  71. package/content/skills/house-sale/tests/conftest.py +23 -0
  72. package/content/skills/house-sale/tests/content_support.py +72 -0
  73. package/content/skills/house-sale/tests/hs_support.py +91 -0
  74. package/content/skills/house-sale/tests/test_builder_prices.py +32 -0
  75. package/content/skills/house-sale/tests/test_closing.py +43 -0
  76. package/content/skills/house-sale/tests/test_content.py +68 -0
  77. package/content/skills/house-sale/tests/test_headless_children.py +77 -0
  78. package/content/skills/house-sale/tests/test_ingest.py +98 -0
  79. package/content/skills/house-sale/tests/test_no_subject_in_repo.py +39 -0
  80. package/content/skills/house-sale/tests/test_panel.py +120 -0
  81. package/content/skills/house-sale/tests/test_pitch.py +39 -0
  82. package/content/skills/house-sale/tests/test_plan_bridge.py +194 -0
  83. package/content/skills/house-sale/tests/test_poll.py +154 -0
  84. package/content/skills/house-sale/tests/test_rates.py +27 -0
  85. package/content/skills/house-sale/tests/test_redfin.py +122 -0
  86. package/content/skills/house-sale/tests/test_valuation.py +156 -0
  87. package/content/skills/house-sale/tests/test_view_api.py +156 -0
  88. package/content/skills/low-ram-advisor/SKILL.md +1 -1
  89. package/content/skills/make-space/SKILL.md +1 -1
  90. package/content/skills/make-space/make_space.py +1 -1
  91. package/content/skills/make-space/tests/conftest.py +11 -3
  92. package/content/skills/publish-article/SKILL.md +1 -1
  93. package/content/skills/resale/CONTRACTS.md +58 -8
  94. package/content/skills/resale/README.md +173 -20
  95. package/content/skills/resale/SKILL.md +13 -5
  96. package/content/skills/resale/container/Dockerfile +1 -0
  97. package/content/skills/resale/container/docker-compose.yml +19 -1
  98. package/content/skills/resale/resale/analysis/bundle.py +47 -16
  99. package/content/skills/resale/resale/analysis/gather.py +10 -3
  100. package/content/skills/resale/resale/analysis/package_terms.py +61 -0
  101. package/content/skills/resale/resale/analysis/paid_check.py +5 -2
  102. package/content/skills/resale/resale/analysis/price_basis.py +45 -0
  103. package/content/skills/resale/resale/analysis/price_guard.py +69 -0
  104. package/content/skills/resale/resale/analysis/runner.py +13 -4
  105. package/content/skills/resale/resale/analysis/stats.py +51 -12
  106. package/content/skills/resale/resale/api_client.py +11 -0
  107. package/content/skills/resale/resale/comps/depreciation.json +22 -1
  108. package/content/skills/resale/resale/comps/depreciation.py +8 -1
  109. package/content/skills/resale/resale/comps/estimate.py +131 -0
  110. package/content/skills/resale/resale/comps/market_value.py +17 -15
  111. package/content/skills/resale/resale/comps/relevance.py +10 -0
  112. package/content/skills/resale/resale/comps/review_runner.py +2 -2
  113. package/content/skills/resale/resale/comps/specs.py +44 -2
  114. package/content/skills/resale/resale/comps/trusted_retailers.json +19 -0
  115. package/content/skills/resale/resale/contracts/__init__.py +11 -1
  116. package/content/skills/resale/resale/contracts/fbgroup_batch.schema.json +67 -0
  117. package/content/skills/resale/resale/contracts/fbgroup_targets.schema.json +44 -0
  118. package/content/skills/resale/resale/db/migrations/0029_fb_groups.sql +37 -0
  119. package/content/skills/resale/resale/db/migrations/0030_estimate_basis.sql +14 -0
  120. package/content/skills/resale/resale/db/migrations/0031_bundle_lots.sql +4 -0
  121. package/content/skills/resale/resale/db/migrations/0032_bundle_total.sql +1 -0
  122. package/content/skills/resale/resale/db/migrations/0033_floor_variant.sql +2 -0
  123. package/content/skills/resale/resale/db/migrations/0034_price_drop.sql +1 -0
  124. package/content/skills/resale/resale/db/migrations/0035_cap_off.sql +2 -0
  125. package/content/skills/resale/resale/db/migrations/0036_package_price.sql +2 -0
  126. package/content/skills/resale/resale/db/migrations/0037_open_places.sql +5 -0
  127. package/content/skills/resale/resale/inquiries/commands.py +18 -3
  128. package/content/skills/resale/resale/inquiries/fbinbox.py +211 -0
  129. package/content/skills/resale/resale/inquiries/match.py +1 -1
  130. package/content/skills/resale/resale/inquiries/queries.py +32 -3
  131. package/content/skills/resale/resale/inquiries/rules.py +10 -1
  132. package/content/skills/resale/resale/inquiries/scan.py +4 -4
  133. package/content/skills/resale/resale/inventory/bundles.py +6 -0
  134. package/content/skills/resale/resale/inventory/paid.py +13 -2
  135. package/content/skills/resale/resale/inventory/private_sale.py +37 -0
  136. package/content/skills/resale/resale/portal/bundles.py +22 -11
  137. package/content/skills/resale/resale/portal/layout.py +75 -25
  138. package/content/skills/resale/resale/portal/market_cells.py +3 -3
  139. package/content/skills/resale/resale/portal/panel.py +14 -3
  140. package/content/skills/resale/resale/portal/pieces.py +97 -0
  141. package/content/skills/resale/resale/portal/posted.py +73 -0
  142. package/content/skills/resale/resale/portal/views_analysis.py +44 -6
  143. package/content/skills/resale/resale/portal/views_house.py +444 -0
  144. package/content/skills/resale/resale/portal/views_inquiries.py +22 -6
  145. package/content/skills/resale/resale/portal/views_items.py +54 -18
  146. package/content/skills/resale/resale/portal/views_postkit.py +56 -15
  147. package/content/skills/resale/resale/portal/views_selling.py +124 -26
  148. package/content/skills/resale/resale/poster/adapters.py +55 -5
  149. package/content/skills/resale/resale/poster/commands.py +33 -8
  150. package/content/skills/resale/resale/poster/confirm_step.py +76 -0
  151. package/content/skills/resale/resale/poster/driver.py +177 -12
  152. package/content/skills/resale/resale/poster/edit_verify.py +95 -0
  153. package/content/skills/resale/resale/poster/own_tabs.py +50 -0
  154. package/content/skills/resale/resale/poster/preflight.py +5 -0
  155. package/content/skills/resale/resale/poster/review_window.py +24 -4
  156. package/content/skills/resale/resale/poster/runner.py +200 -25
  157. package/content/skills/resale/resale/poster/tabs.py +98 -3
  158. package/content/skills/resale/resale/postkit/drafts.py +145 -41
  159. package/content/skills/resale/resale/postkit/fill.py +18 -1
  160. package/content/skills/resale/resale/postkit/groups.py +18 -6
  161. package/content/skills/resale/resale/postkit/health.py +7 -6
  162. package/content/skills/resale/resale/postkit/lint.py +18 -9
  163. package/content/skills/resale/resale/postkit/lot_sale.py +130 -0
  164. package/content/skills/resale/resale/postkit/lots.py +254 -0
  165. package/content/skills/resale/resale/postkit/open_places.py +135 -0
  166. package/content/skills/resale/resale/postkit/platforms.py +10 -0
  167. package/content/skills/resale/resale/postkit/post_edit.py +75 -0
  168. package/content/skills/resale/resale/postkit/posting.py +13 -2
  169. package/content/skills/resale/resale/postkit/price_drop.py +61 -0
  170. package/content/skills/resale/resale/postkit/pricing.py +24 -8
  171. package/content/skills/resale/resale/postkit/selling.py +67 -18
  172. package/content/skills/resale/resale/postkit/text.py +77 -14
  173. package/content/skills/resale/resale/price_rule.py +16 -9
  174. package/content/skills/resale/resale/publisher/pricing.py +5 -0
  175. package/content/skills/resale/resale/receipts/amazon_history.py +1 -1
  176. package/content/skills/resale/resale/receipts/charges.py +8 -4
  177. package/content/skills/resale/resale/receipts/commands.py +3 -2
  178. package/content/skills/resale/resale/receipts/intake.py +2 -0
  179. package/content/skills/resale/resale/receipts/store.py +42 -8
  180. package/content/skills/resale/resale/sales/__init__.py +1 -0
  181. package/content/skills/resale/resale/sales/assets.py +87 -0
  182. package/content/skills/resale/resale/sales/aws.py +60 -0
  183. package/content/skills/resale/resale/sales/build.py +88 -0
  184. package/content/skills/resale/resale/sales/card.py +69 -0
  185. package/content/skills/resale/resale/sales/commands.py +83 -0
  186. package/content/skills/resale/resale/sales/feed.py +155 -0
  187. package/content/skills/resale/resale/sales/lint.py +112 -0
  188. package/content/skills/resale/resale/sales/photos.py +100 -0
  189. package/content/skills/resale/resale/sales/publish.py +118 -0
  190. package/content/skills/resale/resale/sales/render.py +177 -0
  191. package/content/skills/resale/resale/sales/routes.py +92 -0
  192. package/content/skills/resale/resale/sales/rules.py +109 -0
  193. package/content/skills/resale/resale/sales/state.py +79 -0
  194. package/content/skills/resale/resale/sales/view.py +82 -0
  195. package/content/skills/resale/resale/service/cap_refresh.py +11 -0
  196. package/content/skills/resale/resale/service/commands.py +91 -4
  197. package/content/skills/resale/resale/service/comps_review.py +2 -1
  198. package/content/skills/resale/resale/service/comps_service.py +8 -2
  199. package/content/skills/resale/resale/service/drafts.py +5 -2
  200. package/content/skills/resale/resale/service/fb_groups.py +157 -0
  201. package/content/skills/resale/resale/service/inventory_ops.py +56 -5
  202. package/content/skills/resale/resale/service/item_specs_plan.py +65 -0
  203. package/content/skills/resale/resale/service/market.py +55 -16
  204. package/content/skills/resale/resale/service/new_price_plan.py +82 -0
  205. package/content/skills/resale/resale/service/package_terms_plan.py +31 -0
  206. package/content/skills/resale/resale/service/round_prices.py +7 -3
  207. package/content/skills/resale/resale/service/scheduler.py +2 -1
  208. package/content/skills/resale/resale/service/server.py +132 -11
  209. package/content/skills/resale/resale/service/store.py +1 -0
  210. package/content/skills/resale/resale/settings.py +26 -0
  211. package/content/skills/resale/resale/sources/__init__.py +8 -0
  212. package/content/skills/resale/resale/sources/client.py +45 -0
  213. package/content/skills/resale/resale/sources/commands.py +2 -1
  214. package/content/skills/resale/resale/sources/fbgroup_commands.py +94 -0
  215. package/content/skills/resale/resale/sources/fbgroup_parse.py +449 -0
  216. package/content/skills/resale/resale/sources/fbgroup_reader.py +346 -0
  217. package/content/skills/resale/resale/sources/notify.py +24 -1
  218. package/content/skills/resale/settings.example.env +13 -0
  219. package/content/skills/resale/tasks/reader_task.py +8 -0
  220. package/content/skills/resale/tests/conftest.py +4 -0
  221. package/content/skills/resale/tests/fixtures/reader/fbgroup_joins.html +7 -0
  222. package/content/skills/resale/tests/fixtures/reader/fbgroup_post.html +6 -0
  223. package/content/skills/resale/tests/fixtures/reader/fbgroup_post_page.html +7 -0
  224. package/content/skills/resale/tests/fixtures/reader/fbgroup_private.html +3 -0
  225. package/content/skills/resale/tests/fixtures/reader/fbgroup_search.html +29 -0
  226. package/content/skills/resale/tests/fixtures/reader/fbgroup_story_search.html +5 -0
  227. package/content/skills/resale/tests/house_support.py +73 -0
  228. package/content/skills/resale/tests/inquiry_fixtures.py +31 -1
  229. package/content/skills/resale/tests/postkit_support.py +1 -0
  230. package/content/skills/resale/tests/pricing_support.py +4 -0
  231. package/content/skills/resale/tests/sales_support.py +164 -0
  232. package/content/skills/resale/tests/test_analysis_stats.py +2 -2
  233. package/content/skills/resale/tests/test_browser_marker.py +32 -0
  234. package/content/skills/resale/tests/test_bundle.py +30 -4
  235. package/content/skills/resale/tests/test_bundle_full_list.py +85 -0
  236. package/content/skills/resale/tests/test_bundle_offer.py +470 -0
  237. package/content/skills/resale/tests/test_cap_off.py +114 -0
  238. package/content/skills/resale/tests/test_comps_review_task.py +10 -0
  239. package/content/skills/resale/tests/test_condition_refresh.py +14 -0
  240. package/content/skills/resale/tests/test_fbgroup_parse.py +157 -0
  241. package/content/skills/resale/tests/test_fbgroup_reader.py +202 -0
  242. package/content/skills/resale/tests/test_fbgroups_service.py +191 -0
  243. package/content/skills/resale/tests/test_inquiries_fbinbox.py +197 -0
  244. package/content/skills/resale/tests/test_inquiries_forwarded.py +86 -0
  245. package/content/skills/resale/tests/test_inquiries_scan.py +2 -1
  246. package/content/skills/resale/tests/test_inquiries_service.py +2 -2
  247. package/content/skills/resale/tests/test_market_service.py +4 -4
  248. package/content/skills/resale/tests/test_market_value.py +1 -1
  249. package/content/skills/resale/tests/test_open_places.py +301 -0
  250. package/content/skills/resale/tests/test_package_price.py +47 -0
  251. package/content/skills/resale/tests/test_paid_incl_tax_views.py +3 -3
  252. package/content/skills/resale/tests/test_portal_bundle_fold.py +1 -1
  253. package/content/skills/resale/tests/test_portal_bundle_offer.py +51 -0
  254. package/content/skills/resale/tests/test_portal_bundle_pieces_browser.py +122 -0
  255. package/content/skills/resale/tests/test_portal_bundles.py +1 -1
  256. package/content/skills/resale/tests/test_portal_collapse_browser.py +181 -0
  257. package/content/skills/resale/tests/test_portal_house.py +249 -0
  258. package/content/skills/resale/tests/test_portal_house_browser.py +42 -0
  259. package/content/skills/resale/tests/test_portal_layout.py +1 -0
  260. package/content/skills/resale/tests/test_portal_market.py +1 -1
  261. package/content/skills/resale/tests/test_portal_posted_pill.py +164 -0
  262. package/content/skills/resale/tests/test_portal_postkit.py +1 -1
  263. package/content/skills/resale/tests/test_portal_split.py +7 -5
  264. package/content/skills/resale/tests/test_portal_text_audit.py +78 -0
  265. package/content/skills/resale/tests/test_poster.py +405 -26
  266. package/content/skills/resale/tests/test_poster_confirm_step.py +176 -0
  267. package/content/skills/resale/tests/test_poster_contract.py +262 -0
  268. package/content/skills/resale/tests/test_poster_own_tabs.py +348 -0
  269. package/content/skills/resale/tests/test_poster_review_window.py +35 -5
  270. package/content/skills/resale/tests/test_poster_tabs.py +350 -5
  271. package/content/skills/resale/tests/test_postkit.py +14 -12
  272. package/content/skills/resale/tests/test_postkit_fill.py +31 -0
  273. package/content/skills/resale/tests/test_postkit_post_edit.py +147 -0
  274. package/content/skills/resale/tests/test_price_drop.py +128 -0
  275. package/content/skills/resale/tests/test_pricing_estimate.py +328 -0
  276. package/content/skills/resale/tests/test_pricing_rules.py +273 -0
  277. package/content/skills/resale/tests/test_private_sale_tax.py +124 -0
  278. package/content/skills/resale/tests/test_publisher_api.py +2 -0
  279. package/content/skills/resale/tests/test_publisher_commands.py +2 -0
  280. package/content/skills/resale/tests/test_publisher_pricing.py +2 -0
  281. package/content/skills/resale/tests/test_publisher_proposals.py +2 -2
  282. package/content/skills/resale/tests/test_receipts_intake.py +2 -2
  283. package/content/skills/resale/tests/test_receipts_recommendations.py +117 -0
  284. package/content/skills/resale/tests/test_round_prices.py +33 -10
  285. package/content/skills/resale/tests/test_sales_browser.py +164 -0
  286. package/content/skills/resale/tests/test_sales_build.py +473 -0
  287. package/content/skills/resale/tests/test_sales_commands.py +92 -0
  288. package/content/skills/resale/tests/test_sales_feed.py +203 -0
  289. package/content/skills/resale/tests/test_sales_http.py +157 -0
  290. package/content/skills/resale/tests/test_sales_real_data.py +44 -0
  291. package/content/skills/resale/tests/test_selling.py +12 -11
  292. package/content/skills/resale/tests/test_selling_notes.py +1 -1
  293. package/content/skills/ship-the-code/SKILL.md +40 -5
  294. package/content/skills/ship-the-code/deploy_lock.py +90 -0
  295. package/content/skills/ship-the-code/ship.py +399 -81
  296. package/content/skills/ship-the-code/ship_queue.py +773 -0
  297. package/content/skills/ship-the-code/tests/test_ship.py +88 -8
  298. package/content/skills/ship-the-code/tests/test_ship_args.py +163 -0
  299. package/content/skills/ship-the-code/tests/test_ship_containers.py +1 -1
  300. package/content/skills/ship-the-code/tests/test_ship_deploy_lock.py +179 -0
  301. package/content/skills/ship-the-code/tests/test_ship_order.py +136 -5
  302. package/content/skills/ship-the-code/tests/test_ship_poster_contract.py +79 -0
  303. package/content/skills/ship-the-code/tests/test_ship_queue.py +676 -0
  304. package/content/skills/ship-the-code/tests/test_ship_queue_hold.py +281 -0
  305. package/content/skills/ship-the-code/tests/test_ship_race.py +170 -3
  306. package/content/skills/ship-the-code/tests/test_ship_worktree_push.py +1 -1
  307. package/lib/bootstrap/index.js +70 -16
  308. package/lib/bootstrap/probe.js +1 -1
  309. package/lib/bootstrap/tools.js +9 -4
  310. package/lib/bundleConfigFile.js +57 -0
  311. package/lib/bundleRepoSetup.js +444 -0
  312. package/lib/bundleRuntime.js +87 -20
  313. package/lib/bundleRuntimeStep.js +3 -2
  314. package/lib/bypassOnly.js +81 -5
  315. package/lib/codeMode.js +2 -2
  316. package/lib/codex-lifecycle.js +3 -2
  317. package/lib/codex-toml.js +18 -2
  318. package/lib/deployment.js +4 -2
  319. package/lib/doctor.js +14 -2
  320. package/lib/gitleaksCheck.js +30 -0
  321. package/lib/installOutcome.js +104 -0
  322. package/lib/ledger.js +2 -0
  323. package/lib/manifest.js +31 -0
  324. package/lib/mcpRecord.js +48 -0
  325. package/lib/mcpWiring.js +14 -10
  326. package/lib/menu.js +9 -3
  327. package/lib/migrate/installSet.js +7 -0
  328. package/lib/migrate/repoScan.js +11 -1
  329. package/lib/nodePath.js +61 -0
  330. package/lib/pyDeps.js +6 -5
  331. package/lib/pyenv.lock.txt +1 -1
  332. package/lib/repoSetupNeeds.js +102 -0
  333. package/lib/runner/cap.js +6 -2
  334. package/lib/secretsSet.js +31 -3
  335. package/lib/selfProfile.js +17 -3
  336. package/lib/shellProfile.js +12 -2
  337. package/lib/wiring.js +37 -3
  338. package/lib/worktreePark.js +39 -0
  339. package/package.json +1 -1
  340. package/templates/litellm-config.yaml +4 -0
package/README.md CHANGED
@@ -120,6 +120,8 @@ agents-cli install
120
120
  token. Exit codes: 0 ok, 1 a step failed, 2 usage error.
121
121
  - `agents-cli models usage [--days N] [--json] [--target-dir <path>]` — read-only report of dispatch counts and share per role, from the guard's dispatch log (`logs/agent_dispatch.jsonl`, which records `model` and `role` per dispatch); a missing or empty log prints a note and exits 0.
122
122
  - `agents-cli models apply [--dry-run] [--target-dir <path>]` — stamp `models.json` into the static consumers: the `model:` of every deployed agent file carrying a `role:` key, each `settingsStamp` entry (default `env.CLAUDE_CODE_SUBAGENT_MODEL`) in `settings.json`, and the `Current:` text between the `<!--models-->` markers of `CLAUDE.md`. `models apply --source <repo>` restamps `global/CLAUDE.md` of a repo checkout from its `config/models.json`. `models.json` itself ships as a normal bundle file (a local edit survives `update` unless `--theirs`); `install` and `update` run the same step automatically. `--dry-run` prints the diff and writes nothing; the settings `model` key and any key outside `settingsStamp` are never touched. To roll a model back, change that role's id in `~/.claude/models.json` and run it.
123
+ - `agents-cli settings --bundle <key> [--set NAME=VALUE]` — show the per-user settings file of a bundle and the required
124
+ values still missing, or write one value into it (other lines are kept; the name must be a key of the bundle's example).
123
125
  - `agents-cli doctor [--fix] [--scan-root <dir>] [--json]` — report orphaned, missing and drifted
124
126
  files under the install target, plus project hooks in the repo's `.claude/settings.json` and
125
127
  `settings.local.json` whose script file is missing or that are bare `python <repo>/.claude/hooks/x.py`
@@ -152,7 +154,7 @@ agents-cli install
152
154
  (for example `dontAsk` under a global `bypassPermissions`); `--fix` removes it from `settings.local.json`
153
155
  only, a committed `settings.json` is reported and never edited. The `permission_mode_enforce.js` hook
154
156
  (harness-hygiene) does the same repair at SessionStart/UserPromptSubmit and auto-allows permission prompts
155
- while the global default is `bypassPermissions`. A live session already on the weaker mode is switched with
157
+ while the global default is `bypassPermissions`, except that a headless `-p`/SDK session started with `dontAsk` keeps its allow list. A live session already on the weaker mode is switched with
156
158
  `claude --resume <session-id> --permission-mode bypassPermissions` (`ctrl+x m` is swallowed by the VS Code terminal).
157
159
  It also runs `claude plugin validate <mod> --strict` on each installed mod and prints claude's text on a failure (exit 1);
158
160
  a missing or older `claude` is skipped, not a failure. A `Memory index` section lists each `~/.claude/projects/*/memory/MEMORY.md`
@@ -163,8 +165,9 @@ agents-cli install
163
165
  dropped, a committed `settings.json` is reported and never edited, bare `Write`/`NotebookEdit` are left alone.
164
166
  - `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.
165
167
  - `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".
166
169
  - `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).
167
- - `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, 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).
170
+ - `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).
168
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).
169
172
  - `agents-cli --help` — show usage
170
173
 
@@ -419,7 +422,10 @@ other content under `path`).
419
422
  partial `.venv` — nothing else in the bundle is affected. A `missing-uv`
420
423
  or `failed` sync is surfaced again at the very end of the install/update
421
424
  run (a "Python environments needing attention" block), not just among
422
- the per-bundle bullets — easy to miss otherwise.
425
+ the per-bundle bullets — easy to miss otherwise. A `missing-uv` result
426
+ (also the managed `pyenv` build when the system Python cannot create a
427
+ venv, for example Debian without `python3-venv`) is one `Needs you` tool
428
+ step and the run exits 0; a `failed` sync exits 1.
423
429
  5. **Uninstall** removes the item's deployed `.venv` along with its files.
424
430
 
425
431
  ## Secrets
@@ -446,6 +452,15 @@ hooks wired:
446
452
  missing across every installed bundle (or `agents-cli secrets --bundle
447
453
  <key>` for one bundle). `agents-cli secrets --list` shows which secret
448
454
  *names* are set vs. missing — it never prints a value.
455
+ - **One secret, from a pipe.** `agents-cli secrets --set <NAME>` stores one
456
+ value from a pipe or a masked prompt. `GITLAB_TOKEN` and `GITLAB_RUNNER_PAT`
457
+ must look like a GitLab token: `glpat-`, `glrt-` or `glrtr-` followed by the
458
+ token body, including the current dotted form
459
+ (`glpat-<chars>.<chars>.<chars>`, about 60 characters), or a bare
460
+ 20-character legacy token. `agents-cli secrets --help` prints the usage. After a LiteLLM key
461
+ (`LITELLM_MASTER_KEY` or a provider key) is stored, the command prints the exact restart command
462
+ (`node ~/.claude/hooks/pyrun.js ~/.claude/skills/launch-litellm/launch_litellm.py --restart`), because LiteLLM reads
463
+ its keys only when it starts.
449
464
 
450
465
  **Where secrets live: `<target-dir>/agents.env` (default
451
466
  `~/.claude/agents.env`) — never `settings.json`, and never committed or
@@ -469,7 +484,7 @@ works with no `agents.env` file at all.
469
484
  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`.
470
485
 
471
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.
472
- - **one-brain recall hook.** The `self-skills` bundle wires `recall_hook.py` from the separate one-brain repo on `UserPromptSubmit` and `PreCompact`. `~/dev` in a wiring command resolves to the dev root at install time (`MY_AGENTS_DEV_ROOT`, else the `dev` folder on the system drive on Windows, `~/dev` elsewhere), and the hook runs through `pyrun.js`. `wiring.requires` names a file that must exist first, so a Mac without the clone gets no hook that fails on every prompt; `doctor` says `one-brain is not cloned ... clone it, then run agents-cli update`, and `update` wires the hook once the clone is there. An existing hand-made entry with the same command (or the same script through a bare `python`) is adopted in place, never duplicated. `doctor` fails when a wired hook's script has disappeared.
487
+ - **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.
473
488
  - **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.
474
489
  - **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`.
475
490
 
@@ -514,6 +529,20 @@ the PC's IANA time zone as `AGENTS_HOST_TZ`. `doctor` reports a finding when the
514
529
  `"heartbeat": {"label", "file", "maxAgeHours"}` (`file` relative to the install base). `doctor` reports a finding when
515
530
  the file is missing, older than `maxAgeHours`, or its `last_status` is `failed` (with `last_error`).
516
531
 
532
+ **Config file.** A bundle whose tasks need a file only the founder can write declares
533
+ `"configFile": {"example", "target", "pathSetting"?}` (`target` relative to the install base; `pathSetting` is a key in
534
+ the bundle's settings file that moves it). Until the file exists, install does not register the bundle's tasks (so no
535
+ LaunchAgent runs and exits on every tick); it lists the fields of the example and the exact `mkdir -p ... && cp ...`
536
+ command. `doctor` prints `waiting for config` and counts it as healthy, not as a failure. house-sale uses it for
537
+ `~/.claude/house-sale/config.json`.
538
+
539
+ **Install result.** `install` ends with a `Needs you` block when a required setting, a required secret or a config file is
540
+ still missing: each item with its file and the exact command (`agents-cli settings --bundle <key> --set NAME=<value>`,
541
+ `agents-cli secrets --set NAME`). Waiting on the founder exits 0, so a loop over bundles keeps going. A step that really
542
+ failed (a component, task, container, backup folder, Python environment or settings file) is listed under `Failed` and
543
+ makes the run exit 1. `doctor --fix` does not try to fix these founder-only items: it lists them under `Needs you`
544
+ (missing required settings and secrets, config files, repos that are not cloned) and still exits 1 while they are open.
545
+
517
546
  **Switches.** `--no-containers` (or `AGENTS_CLI_NO_CONTAINERS=1`) and
518
547
  `--no-scheduled-tasks` (or `AGENTS_CLI_NO_SCHEDULED_TASKS=1`). Containers and
519
548
  tasks are machine-wide, so they are only managed for the default `~/.claude`