@yasaswy.nagavolu/agents 0.40.0 → 0.41.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.
- package/README.md +121 -51
- package/bin/cli.js +97 -25
- package/content/agents/scribe-agent/scribe_runner.py +3 -3
- package/content/global/githooks/_lib.sh +3 -1
- package/content/global/hooks/cloudshell_guard.py +225 -9
- package/content/global/hooks/lib/founderCmd.js +19 -4
- package/content/global/hooks/pyrun.js +3 -0
- package/content/global/hooks/wiring_required.json +124 -17
- package/content/global/hooks/wiring_selfheal.js +4 -2
- package/content/manifest.json +311 -2695
- package/content/manifest.schema.json +5 -1
- package/content/mcps/mcps.json +2 -2
- package/content/mods/handoff/.claude-plugin/plugin.json +1 -1
- package/content/mods/model-routing/.claude-plugin/plugin.json +1 -1
- package/content/packages/cli/templates/litellm-config.yaml +1 -1
- package/content/packages/cli/templates/start-litellm.ps1 +2 -2
- package/content/packages/cli/templates/start-litellm.sh +2 -2
- package/content/proxy/agent_model_guard.py +28 -4
- package/content/proxy/founder_cmd.py +21 -2
- package/content/proxy/prd_autobind.py +17 -3
- package/content/proxy/prd_binding.py +120 -7
- package/content/proxy/prd_chief.py +110 -0
- package/content/proxy/prd_discipline.py +431 -0
- package/content/proxy/prd_home_gate.py +41 -4
- package/content/proxy/register_mem_sampler.ps1 +8 -0
- package/content/scripts/gitlab_api.py +34 -10
- package/content/skills/android-emulator/SKILL.md +1 -1
- package/content/skills/ci-runner/SKILL.md +2 -0
- package/content/skills/ci-runner/ci-runner-pool.md +14 -0
- package/content/skills/gmail-reader/tests/test_proof.py +2 -2
- package/content/skills/gmail-reader/tests/test_recall.py +1 -1
- package/content/skills/gmail-reader/tests/test_zero_prices.py +1 -1
- package/content/skills/ntfy/SKILL.md +1 -0
- package/content/skills/ntfy/tests/test_ntfy.py +3 -3
- package/content/skills/ship-the-code/ship.py +1 -1
- package/content/skills/ship-the-code/tests/test_ship.py +7 -7
- package/content/statusline/chief_watch.py +200 -0
- package/content/statusline/chief_watchdog.py +137 -0
- package/content/statusline/orchestration-line.ps1 +153 -19
- package/content/statusline/orchestration_line.py +38 -22
- package/lib/bootstrap/index.js +145 -37
- package/lib/bootstrap/probe.js +1 -1
- package/lib/bootstrap/tools.js +91 -50
- package/lib/bypassOnly.js +43 -8
- package/lib/chiefCmd.js +51 -8
- package/lib/codex-compatibility.json +2 -2
- package/lib/codex.js +4 -3
- package/lib/deployment.js +1 -1
- package/lib/downgradeGuard.js +64 -10
- package/lib/founderCmd.js +3 -2
- package/lib/hostJobs.js +9 -2
- package/lib/install.js +2 -0
- package/lib/ledger.js +2 -0
- package/lib/migrate/installSet.js +2 -1
- package/lib/packageName.js +10 -0
- package/lib/prdBinding.js +1 -1
- package/lib/prepack.js +32 -7
- package/lib/pyDeps.js +16 -10
- package/lib/runner/args.js +13 -4
- package/lib/runner/budget.js +20 -7
- package/lib/runner/gitlab.js +40 -1
- package/lib/runner/hostSizing.js +171 -0
- package/lib/runner/hosts.js +262 -0
- package/lib/runner/index.js +101 -7
- package/lib/runner/janitor.js +5 -1
- package/lib/runner/pool.js +1 -1
- package/lib/runner/profiles/linuxDocker.js +1 -1
- package/lib/taskBackend/launchd.js +2 -0
- package/lib/taskItems.js +10 -3
- package/lib/update.js +6 -2
- package/package.json +2 -2
- package/templates/litellm-config.yaml +1 -1
- package/templates/start-litellm.ps1 +2 -2
- package/templates/start-litellm.sh +2 -2
- package/content/agents/adversarial-story-reviewer.md +0 -48
- package/content/agents/picture-beat-reviewer.md +0 -47
- package/content/agents/synth-auditor.md +0 -59
- package/content/agents/visual-review-council/test_triage_gate.py +0 -74
- package/content/agents/visual-review-council/test_visual_diagnosis_vrc.py +0 -133
- package/content/agents/visual-review-council/triage_gate.py +0 -428
- package/content/agents/visual-review-council/visual_diagnosis.py +0 -472
- package/content/global/CLAUDE.md +0 -79
- package/content/global/code-mode/README.md +0 -10
- package/content/global/keybindings.json +0 -15
- package/content/hooks/conclusion-scribe/README.md +0 -88
- package/content/hooks/conclusion-scribe/conclusion-scribe.env.example +0 -21
- package/content/hooks/conclusion-scribe/conclusion_scribe_hook.py +0 -1156
- package/content/hooks/conclusion-scribe/test_conclusion_scribe_hook.py +0 -1247
- package/content/hooks/reconcile_landing.py +0 -109
- package/content/hooks/reconcile_session_start.py +0 -47
- package/content/hooks/reconcile_triggers.py +0 -257
- package/content/hooks/task_completion_gate.py +0 -104
- package/content/hooks/tracker_proof_gate.py +0 -327
- package/content/hooks/worktree-registry/README.md +0 -51
- package/content/hooks/worktree-registry/test_worktree_registry.py +0 -343
- package/content/hooks/worktree-registry/worktree_registry.py +0 -322
- package/content/mcps/chrome_devtools_final_actions.json +0 -35
- package/content/mcps/chrome_devtools_gate.js +0 -612
- package/content/mcps/chrome_devtools_policy.js +0 -268
- package/content/mcps/chrome_devtools_rules.json +0 -77
- package/content/proxy/README.md +0 -528
- package/content/proxy/autostart_hook.py +0 -85
- package/content/proxy/capture_proxy.py +0 -59
- package/content/proxy/chief_spine.py +0 -263
- package/content/proxy/chrome_devtools_guard.py +0 -277
- package/content/proxy/chrome_profile_lock.py +0 -178
- package/content/proxy/claude_headless.py +0 -109
- package/content/proxy/claude_router.py +0 -1055
- package/content/proxy/credential_mutation_guard.py +0 -1020
- package/content/proxy/delete_guard.py +0 -2538
- package/content/proxy/delete_guard_path.py +0 -71
- package/content/proxy/gitlab_mutation_guard.py +0 -123
- package/content/proxy/grilling_format_gate.py +0 -276
- package/content/proxy/headless_launch_rules.py +0 -361
- package/content/proxy/headless_scan.py +0 -309
- package/content/proxy/headless_spawn_guard.py +0 -391
- package/content/proxy/litellm/call_feed.ps1 +0 -92
- package/content/proxy/litellm/call_log.py +0 -197
- package/content/proxy/litellm/config.yaml +0 -191
- package/content/proxy/litellm/custom_callbacks.py +0 -125
- package/content/proxy/litellm/docker-compose.yml +0 -49
- package/content/proxy/litellm/litellm_status.ps1 +0 -137
- package/content/proxy/litellm/litellm_watch.ps1 +0 -109
- package/content/proxy/litellm/smoke_test.py +0 -170
- package/content/proxy/litellm/start-docker.ps1 +0 -76
- package/content/proxy/litellm/start.ps1 +0 -453
- package/content/proxy/litellm/state_dir.ps1 +0 -26
- package/content/proxy/litellm/supervise_hidden.vbs +0 -14
- package/content/proxy/litellm/supervise_visible.vbs +0 -25
- package/content/proxy/mac_toast.py +0 -19
- package/content/proxy/managed_files_guard.py +0 -153
- package/content/proxy/memory_first_hook.py +0 -182
- package/content/proxy/model_id_leak_guard.py +0 -178
- package/content/proxy/no_openrouter_guard.py +0 -143
- package/content/proxy/portal/README.md +0 -186
- package/content/proxy/portal/aggregator.py +0 -634
- package/content/proxy/portal/docker-compose.yml +0 -35
- package/content/proxy/portal/portal.html +0 -758
- package/content/proxy/portal/portal_service.py +0 -97
- package/content/proxy/portal/portal_wait.ps1 +0 -42
- package/content/proxy/portal/register-autostart.ps1 +0 -78
- package/content/proxy/portal/start-portal.ps1 +0 -152
- package/content/proxy/portal/supervise_portal_hidden.vbs +0 -23
- package/content/proxy/prd_closing_gate.py +0 -239
- package/content/proxy/publish_guard.py +0 -288
- package/content/proxy/register_task.ps1 +0 -101
- package/content/proxy/remote_mode.ps1 +0 -56
- package/content/proxy/resale_surfaces_hook.py +0 -145
- package/content/proxy/session_write_ledger.py +0 -321
- package/content/proxy/shared_worktree_revert_guard.py +0 -1205
- package/content/proxy/start.ps1 +0 -144
- package/content/proxy/subagent_repo_scope.py +0 -476
- package/content/proxy/switch_model.ps1 +0 -64
- package/content/proxy/validate_dispatch_tiers.py +0 -72
- package/content/scripts/_imgmetric.py +0 -114
- package/content/scripts/_vlm.py +0 -176
- package/content/scripts/check_skill_drift.py +0 -176
- package/content/scripts/item.py +0 -1178
- package/content/scripts/migrate_v3_to_v4.py +0 -273
- package/content/scripts/prd_registry.py +0 -146
- package/content/scripts/reconcile_records.py +0 -539
- package/content/scripts/register_spend_compare_task.ps1 +0 -60
- package/content/scripts/spend_compare_job.py +0 -218
- package/content/scripts/spend_parse.py +0 -163
- package/content/scripts/spend_prices.json +0 -13
- package/content/scripts/spend_report.py +0 -364
- package/content/scripts/test_review_pass.py +0 -76
- package/content/scripts/tests/__init__.py +0 -0
- package/content/scripts/tests/test_gitlab_api_utf8.py +0 -33
- package/content/scripts/tests/test_item_cli.py +0 -676
- package/content/scripts/tests/test_item_resolve.py +0 -234
- package/content/scripts/tests/test_reconcile_records.py +0 -408
- package/content/scripts/tests/test_visual_loop_worker_contract.py +0 -281
- package/content/scripts/validate_violations_schema.py +0 -133
- package/content/skills/README.md +0 -137
- package/content/skills/chief/SKILL.md +0 -37
- package/content/skills/chief/chief/__init__.py +0 -1
- package/content/skills/chief/chief/cli.py +0 -145
- package/content/skills/chief/chief/config.py +0 -71
- package/content/skills/chief/chief/deps.py +0 -17
- package/content/skills/chief/chief/gates.py +0 -75
- package/content/skills/chief/chief/post.py +0 -85
- package/content/skills/chief/chief/queue.py +0 -123
- package/content/skills/chief/chief/report.py +0 -127
- package/content/skills/chief/chief/runner.py +0 -96
- package/content/skills/chief/chief/tick.py +0 -51
- package/content/skills/chief/chief/when.py +0 -39
- package/content/skills/chief/chief/worker.py +0 -100
- package/content/skills/chief/chief_cli.py +0 -11
- package/content/skills/chief/tasks/tick_task.py +0 -10
- package/content/skills/chief/tests/conftest.py +0 -35
- package/content/skills/chief/tests/test_cli.py +0 -81
- package/content/skills/chief/tests/test_gates.py +0 -110
- package/content/skills/chief/tests/test_post.py +0 -62
- package/content/skills/chief/tests/test_queue.py +0 -118
- package/content/skills/chief/tests/test_report.py +0 -72
- package/content/skills/chief/tests/test_runner.py +0 -108
- package/content/skills/chief/tests/test_spine.py +0 -86
- package/content/skills/chief/tests/test_tick.py +0 -71
- package/content/skills/chief/tests/test_worker.py +0 -144
- package/content/skills/deskflow/SKILL.md +0 -86
- package/content/skills/deskflow/apply.py +0 -193
- package/content/skills/deskflow/collect_mac.py +0 -254
- package/content/skills/deskflow/collect_pc.py +0 -274
- package/content/skills/deskflow/core_host.py +0 -154
- package/content/skills/deskflow/core_install.py +0 -237
- package/content/skills/deskflow/core_pins.py +0 -48
- package/content/skills/deskflow/deskflow.py +0 -578
- package/content/skills/deskflow/deskflow_defaults.py +0 -29
- package/content/skills/deskflow/displays.py +0 -205
- package/content/skills/deskflow/doctor.py +0 -406
- package/content/skills/deskflow/doctor_probes.py +0 -78
- package/content/skills/deskflow/firewall_rules.py +0 -191
- package/content/skills/deskflow/firewall_scope.py +0 -78
- package/content/skills/deskflow/fleet.py +0 -535
- package/content/skills/deskflow/fleet_migrate.py +0 -140
- package/content/skills/deskflow/fleet_schema.py +0 -278
- package/content/skills/deskflow/fleet_sync.py +0 -363
- package/content/skills/deskflow/genconfig.py +0 -249
- package/content/skills/deskflow/guard.py +0 -80
- package/content/skills/deskflow/helper_build.py +0 -107
- package/content/skills/deskflow/identify.py +0 -54
- package/content/skills/deskflow/index.html +0 -54
- package/content/skills/deskflow/layout.py +0 -319
- package/content/skills/deskflow/layout_check.py +0 -143
- package/content/skills/deskflow/listen.py +0 -179
- package/content/skills/deskflow/local.py +0 -64
- package/content/skills/deskflow/mac_firewall.py +0 -46
- package/content/skills/deskflow/macos-helper/Info.plist +0 -26
- package/content/skills/deskflow/macos-helper/main.swift +0 -217
- package/content/skills/deskflow/monitors.py +0 -74
- package/content/skills/deskflow/netstat.py +0 -106
- package/content/skills/deskflow/node.py +0 -717
- package/content/skills/deskflow/node_firewall.py +0 -121
- package/content/skills/deskflow/node_mac.py +0 -319
- package/content/skills/deskflow/node_trust.py +0 -100
- package/content/skills/deskflow/node_win.py +0 -121
- package/content/skills/deskflow/outcome.py +0 -78
- package/content/skills/deskflow/pair.py +0 -77
- package/content/skills/deskflow/peer.py +0 -109
- package/content/skills/deskflow/portal.css +0 -262
- package/content/skills/deskflow/portal.js +0 -242
- package/content/skills/deskflow/portal.py +0 -315
- package/content/skills/deskflow/portal_displays.js +0 -132
- package/content/skills/deskflow/portal_features.js +0 -104
- package/content/skills/deskflow/portal_features.py +0 -157
- package/content/skills/deskflow/portal_forms.js +0 -314
- package/content/skills/deskflow/portal_guard.js +0 -45
- package/content/skills/deskflow/render_png.py +0 -119
- package/content/skills/deskflow/restart_core.ps1 +0 -36
- package/content/skills/deskflow/restart_core.py +0 -168
- package/content/skills/deskflow/scroll_calibration.py +0 -252
- package/content/skills/deskflow/scroll_helper.py +0 -214
- package/content/skills/deskflow/scroll_watch.py +0 -140
- package/content/skills/deskflow/store.py +0 -212
- package/content/skills/deskflow/tasks.py +0 -140
- package/content/skills/deskflow/tests/conftest.py +0 -53
- package/content/skills/deskflow/tests/deskflow_fixtures.py +0 -25
- package/content/skills/deskflow/tests/node_fakes.py +0 -48
- package/content/skills/deskflow/tests/privacy_scan.py +0 -274
- package/content/skills/deskflow/tests/test_apply_guard.py +0 -165
- package/content/skills/deskflow/tests/test_apply_ux.py +0 -179
- package/content/skills/deskflow/tests/test_collectors.py +0 -74
- package/content/skills/deskflow/tests/test_core_install.py +0 -364
- package/content/skills/deskflow/tests/test_display_wiring.py +0 -324
- package/content/skills/deskflow/tests/test_doctor.py +0 -556
- package/content/skills/deskflow/tests/test_firewall.py +0 -315
- package/content/skills/deskflow/tests/test_fleet.py +0 -381
- package/content/skills/deskflow/tests/test_fleet_cli.py +0 -60
- package/content/skills/deskflow/tests/test_fleet_empty_report.py +0 -384
- package/content/skills/deskflow/tests/test_fleet_owner.py +0 -515
- package/content/skills/deskflow/tests/test_fleet_robust.py +0 -388
- package/content/skills/deskflow/tests/test_fleet_safety.py +0 -208
- package/content/skills/deskflow/tests/test_fleet_sync.py +0 -434
- package/content/skills/deskflow/tests/test_genconfig.py +0 -222
- package/content/skills/deskflow/tests/test_helper_build.py +0 -159
- package/content/skills/deskflow/tests/test_hubs_symmetry.py +0 -290
- package/content/skills/deskflow/tests/test_install_roles.py +0 -86
- package/content/skills/deskflow/tests/test_layout_check.py +0 -183
- package/content/skills/deskflow/tests/test_listen.py +0 -412
- package/content/skills/deskflow/tests/test_mac_portability.py +0 -231
- package/content/skills/deskflow/tests/test_netstat.py +0 -82
- package/content/skills/deskflow/tests/test_node.py +0 -268
- package/content/skills/deskflow/tests/test_node_adapters.py +0 -250
- package/content/skills/deskflow/tests/test_node_defaults.py +0 -186
- package/content/skills/deskflow/tests/test_node_robust.py +0 -340
- package/content/skills/deskflow/tests/test_pairing.py +0 -408
- package/content/skills/deskflow/tests/test_peer.py +0 -258
- package/content/skills/deskflow/tests/test_portal.py +0 -206
- package/content/skills/deskflow/tests/test_portal_features.py +0 -448
- package/content/skills/deskflow/tests/test_portal_features_http.py +0 -147
- package/content/skills/deskflow/tests/test_privacy.py +0 -218
- package/content/skills/deskflow/tests/test_restart.py +0 -146
- package/content/skills/deskflow/tests/test_scroll.py +0 -434
- package/content/skills/deskflow/tests/test_scroll_device.py +0 -153
- package/content/skills/deskflow/tests/test_scroll_helper.py +0 -684
- package/content/skills/deskflow/tests/test_scroll_readonly.py +0 -283
- package/content/skills/deskflow/tests/test_ui_spacing.py +0 -48
- package/content/skills/deskflow/tls_cert.py +0 -136
- package/content/skills/deskflow/tls_trust.py +0 -89
- package/content/skills/dev-bridge/SKILL.md +0 -67
- package/content/skills/dev-bridge/dev_bridge.py +0 -1752
- package/content/skills/dev-bridge/tests/conftest.py +0 -21
- package/content/skills/dev-bridge/tests/test_dev_bridge.py +0 -1594
- package/content/skills/graphic-novel-pipeline/SKILL.md +0 -99
- package/content/skills/graphic-novel-pipeline/reference.md +0 -246
- package/content/skills/graphic-novel-pipeline/scripts/build_review.py +0 -105
- package/content/skills/graphic-novel-pipeline/scripts/comic_txt.py +0 -1130
- package/content/skills/graphic-novel-pipeline/scripts/comic_txt_html.py +0 -417
- package/content/skills/graphic-novel-pipeline/scripts/compile_prompts.py +0 -428
- package/content/skills/graphic-novel-pipeline/scripts/direction.py +0 -81
- package/content/skills/graphic-novel-pipeline/scripts/framing.py +0 -105
- package/content/skills/graphic-novel-pipeline/scripts/generate_all.py +0 -579
- package/content/skills/graphic-novel-pipeline/scripts/generate_art_gemini.py +0 -131
- package/content/skills/graphic-novel-pipeline/scripts/generate_art_meshy.py +0 -219
- package/content/skills/graphic-novel-pipeline/scripts/gn_common.py +0 -212
- package/content/skills/graphic-novel-pipeline/scripts/ledger_template.md +0 -25
- package/content/skills/graphic-novel-pipeline/scripts/naming.py +0 -75
- package/content/skills/graphic-novel-pipeline/scripts/new_version.py +0 -76
- package/content/skills/graphic-novel-pipeline/scripts/notext.py +0 -93
- package/content/skills/graphic-novel-pipeline/scripts/panel_ids.py +0 -321
- package/content/skills/graphic-novel-pipeline/scripts/picture_review.py +0 -367
- package/content/skills/graphic-novel-pipeline/scripts/pipeline.py +0 -358
- package/content/skills/graphic-novel-pipeline/scripts/post_process.py +0 -199
- package/content/skills/graphic-novel-pipeline/scripts/renumber_panels.py +0 -454
- package/content/skills/graphic-novel-pipeline/scripts/scene_sets.py +0 -115
- package/content/skills/graphic-novel-pipeline/scripts/sheets.py +0 -320
- package/content/skills/graphic-novel-pipeline/scripts/source_trace.py +0 -1076
- package/content/skills/graphic-novel-pipeline/scripts/spend_guard.py +0 -174
- package/content/skills/graphic-novel-pipeline/scripts/synth_audit.py +0 -356
- package/content/skills/graphic-novel-pipeline/scripts/theme.py +0 -229
- package/content/skills/graphic-novel-pipeline/scripts/visualgen_bridge.py +0 -62
- package/content/skills/graphic-novel-pipeline/scripts/workflow.py +0 -739
- package/content/skills/graphic-novel-pipeline/templates/adversarial_review_prompt.md +0 -68
- package/content/skills/graphic-novel-pipeline/templates/comic_txt_FORMAT.md +0 -140
- package/content/skills/graphic-novel-pipeline/templates/continuity.json +0 -66
- package/content/skills/graphic-novel-pipeline/templates/picture_review_prompt.md +0 -53
- package/content/skills/graphic-novel-pipeline/templates/project.json +0 -195
- package/content/skills/graphic-novel-pipeline/templates/theme.json +0 -65
- package/content/skills/graphic-novel-pipeline/templates/workflow.json +0 -192
- package/content/skills/graphic-novel-pipeline/tests/_util.py +0 -28
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/comic_txt/WORLD.md +0 -111
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/comic_txt/_audit/1_duty_audit.md +0 -53
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/comic_txt/ch1_duty.md +0 -849
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/plan/book_arc.json +0 -45
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/plan/cast.json +0 -2227
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/plan/novel_b/ch1_captions_draft.json +0 -105
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/plan/novel_b/ch1_comic_txt_lock.json +0 -24
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/plan/novel_b/ch1_parts.json +0 -1220
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/project.json +0 -308
- package/content/skills/graphic-novel-pipeline/tests/fixtures/comic_txt_ch1/source/synth_txt/1_duty_part.txt +0 -89
- package/content/skills/graphic-novel-pipeline/tests/test_approve.py +0 -86
- package/content/skills/graphic-novel-pipeline/tests/test_comic_txt.py +0 -638
- package/content/skills/graphic-novel-pipeline/tests/test_comic_txt_html.py +0 -219
- package/content/skills/graphic-novel-pipeline/tests/test_direction.py +0 -128
- package/content/skills/graphic-novel-pipeline/tests/test_framing.py +0 -79
- package/content/skills/graphic-novel-pipeline/tests/test_mark_flag.py +0 -82
- package/content/skills/graphic-novel-pipeline/tests/test_naming.py +0 -126
- package/content/skills/graphic-novel-pipeline/tests/test_notext.py +0 -83
- package/content/skills/graphic-novel-pipeline/tests/test_panel_ids.py +0 -323
- package/content/skills/graphic-novel-pipeline/tests/test_panel_refs.py +0 -205
- package/content/skills/graphic-novel-pipeline/tests/test_props_world.py +0 -115
- package/content/skills/graphic-novel-pipeline/tests/test_quantise.py +0 -74
- package/content/skills/graphic-novel-pipeline/tests/test_roles.py +0 -89
- package/content/skills/graphic-novel-pipeline/tests/test_routes.py +0 -287
- package/content/skills/graphic-novel-pipeline/tests/test_saturation_levels.py +0 -40
- package/content/skills/graphic-novel-pipeline/tests/test_scene_pins.py +0 -138
- package/content/skills/graphic-novel-pipeline/tests/test_sheets.py +0 -241
- package/content/skills/graphic-novel-pipeline/tests/test_shot_size.py +0 -89
- package/content/skills/graphic-novel-pipeline/tests/test_source_trace.py +0 -250
- package/content/skills/graphic-novel-pipeline/tests/test_spend_refs.py +0 -401
- package/content/skills/graphic-novel-pipeline/tests/test_synth_audit.py +0 -214
- package/content/skills/graphic-novel-pipeline/tests/test_workflow.py +0 -593
- package/content/skills/graphic-novel-pipeline/tests/test_workflow_chapter.py +0 -284
- package/content/skills/house-sale/CONTRACTS.md +0 -83
- package/content/skills/house-sale/README.md +0 -103
- package/content/skills/house-sale/SKILL.md +0 -49
- package/content/skills/house-sale/config.example.json +0 -43
- package/content/skills/house-sale/house_sale/__init__.py +0 -2
- package/content/skills/house-sale/house_sale/__main__.py +0 -80
- package/content/skills/house-sale/house_sale/api.py +0 -81
- package/content/skills/house-sale/house_sale/builder.py +0 -85
- package/content/skills/house-sale/house_sale/closing.py +0 -95
- package/content/skills/house-sale/house_sale/config.py +0 -156
- package/content/skills/house-sale/house_sale/content.py +0 -56
- package/content/skills/house-sale/house_sale/db.py +0 -84
- package/content/skills/house-sale/house_sale/doctor.py +0 -71
- package/content/skills/house-sale/house_sale/estimate.py +0 -90
- package/content/skills/house-sale/house_sale/ingest.py +0 -122
- package/content/skills/house-sale/house_sale/market.py +0 -62
- package/content/skills/house-sale/house_sale/panel.py +0 -183
- package/content/skills/house-sale/house_sale/pitch.py +0 -118
- package/content/skills/house-sale/house_sale/plan_bridge.py +0 -225
- package/content/skills/house-sale/house_sale/poll.py +0 -132
- package/content/skills/house-sale/house_sale/rates.py +0 -45
- package/content/skills/house-sale/house_sale/redfin.py +0 -160
- package/content/skills/house-sale/house_sale/restore.py +0 -118
- package/content/skills/house-sale/house_sale/schedule.py +0 -18
- package/content/skills/house-sale/house_sale/valuation.py +0 -278
- package/content/skills/house-sale/house_sale/view.py +0 -93
- package/content/skills/house-sale/settings.example.env +0 -9
- package/content/skills/house-sale/talking-points.example.json +0 -156
- package/content/skills/house-sale/tasks/_bootstrap.py +0 -18
- package/content/skills/house-sale/tasks/poll_task.py +0 -30
- package/content/skills/house-sale/tasks/task_items.json +0 -20
- package/content/skills/house-sale/tests/conftest.py +0 -23
- package/content/skills/house-sale/tests/content_support.py +0 -72
- package/content/skills/house-sale/tests/hs_support.py +0 -91
- package/content/skills/house-sale/tests/test_builder_prices.py +0 -32
- package/content/skills/house-sale/tests/test_closing.py +0 -43
- package/content/skills/house-sale/tests/test_content.py +0 -68
- package/content/skills/house-sale/tests/test_headless_children.py +0 -77
- package/content/skills/house-sale/tests/test_ingest.py +0 -98
- package/content/skills/house-sale/tests/test_no_subject_in_repo.py +0 -39
- package/content/skills/house-sale/tests/test_panel.py +0 -120
- package/content/skills/house-sale/tests/test_pitch.py +0 -39
- package/content/skills/house-sale/tests/test_plan_bridge.py +0 -194
- package/content/skills/house-sale/tests/test_poll.py +0 -154
- package/content/skills/house-sale/tests/test_rates.py +0 -27
- package/content/skills/house-sale/tests/test_redfin.py +0 -122
- package/content/skills/house-sale/tests/test_restore.py +0 -117
- package/content/skills/house-sale/tests/test_valuation.py +0 -156
- package/content/skills/house-sale/tests/test_view_api.py +0 -156
- package/content/skills/mattpocock-codebase-design/DEEPENING.md +0 -37
- package/content/skills/mattpocock-codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/content/skills/mattpocock-codebase-design/SKILL.md +0 -114
- package/content/skills/mattpocock-codebase-design/agents/openai.yaml +0 -3
- package/content/skills/mattpocock-domain-modeling/ADR-FORMAT.md +0 -47
- package/content/skills/mattpocock-domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/content/skills/mattpocock-domain-modeling/SKILL.md +0 -74
- package/content/skills/mattpocock-domain-modeling/agents/openai.yaml +0 -3
- package/content/skills/mattpocock-grill-me/SKILL.md +0 -7
- package/content/skills/mattpocock-grill-me/agents/openai.yaml +0 -5
- package/content/skills/mattpocock-grilling/SKILL.md +0 -16
- package/content/skills/mattpocock-grilling/agents/openai.yaml +0 -3
- package/content/skills/mattpocock-improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/content/skills/mattpocock-improve-codebase-architecture/SKILL.md +0 -71
- package/content/skills/mattpocock-improve-codebase-architecture/agents/openai.yaml +0 -5
- package/content/skills/mattpocock-research/SKILL.md +0 -12
- package/content/skills/mattpocock-research/agents/openai.yaml +0 -3
- package/content/skills/mattpocock-tdd/SKILL.md +0 -38
- package/content/skills/mattpocock-tdd/agents/openai.yaml +0 -3
- package/content/skills/mattpocock-tdd/mocking.md +0 -59
- package/content/skills/mattpocock-tdd/tests.md +0 -77
- package/content/skills/mattpocock-to-spec/SKILL.md +0 -75
- package/content/skills/mattpocock-to-spec/agents/openai.yaml +0 -5
- package/content/skills/mattpocock-to-tickets/SKILL.md +0 -107
- package/content/skills/mattpocock-to-tickets/agents/openai.yaml +0 -5
- package/content/skills/mattpocock-to-tickets/gitlab_phase.py +0 -183
- package/content/skills/mattpocock-to-tickets/tests/test_gitlab_phase.py +0 -231
- package/content/skills/mattpocock-wait-what/SKILL.md +0 -7
- package/content/skills/mattpocock-wait-what/agents/openai.yaml +0 -5
- package/content/skills/mattpocock-wayfinder/SKILL.md +0 -128
- package/content/skills/mattpocock-wayfinder/agents/openai.yaml +0 -5
- package/content/skills/mcp-oauth-connector/README.md +0 -71
- package/content/skills/mcp-oauth-connector/SKILL.md +0 -27
- package/content/skills/mcp-oauth-connector/get-connector-values.ps1 +0 -101
- package/content/skills/onebrain-connector/SKILL.md +0 -27
- package/content/skills/onebrain-connector/get-connector-values.ps1 +0 -2
- package/content/skills/publish-article/SKILL.md +0 -277
- package/content/skills/publish-article/arch_component_lint.py +0 -154
- package/content/skills/publish-article/arch_render_check.py +0 -142
- package/content/skills/publish-article/arch_text_floor.py +0 -129
- package/content/skills/publish-article/architecture_review.py +0 -94
- package/content/skills/publish-article/build_hero.py +0 -125
- package/content/skills/publish-article/bundle_skill.py +0 -254
- package/content/skills/publish-article/caption_review.py +0 -124
- package/content/skills/publish-article/companion_repo_checklist.py +0 -164
- package/content/skills/publish-article/diagram_kinds_lint.py +0 -95
- package/content/skills/publish-article/html_mock_review.py +0 -144
- package/content/skills/publish-article/illustration_lib.py +0 -154
- package/content/skills/publish-article/island_theme_lint.py +0 -128
- package/content/skills/publish-article/learn_feedback.py +0 -183
- package/content/skills/publish-article/lint_article.py +0 -882
- package/content/skills/publish-article/publish_article.py +0 -1234
- package/content/skills/publish-article/released_bundles.py +0 -60
- package/content/skills/publish-article/repo_locate.py +0 -70
- package/content/skills/publish-article/review_store.py +0 -115
- package/content/skills/publish-article/skill_drift.py +0 -42
- package/content/skills/publish-article/tests/conftest.py +0 -7
- package/content/skills/publish-article/tests/test_arch_render_check.py +0 -47
- package/content/skills/publish-article/tests/test_arch_text_floor.py +0 -26
- package/content/skills/publish-article/tests/test_architecture_review.py +0 -89
- package/content/skills/publish-article/tests/test_build_hero.py +0 -29
- package/content/skills/publish-article/tests/test_bundle_skill.py +0 -63
- package/content/skills/publish-article/tests/test_caption_review.py +0 -71
- package/content/skills/publish-article/tests/test_card_and_hero_lint.py +0 -62
- package/content/skills/publish-article/tests/test_companion_repo_checklist.py +0 -89
- package/content/skills/publish-article/tests/test_dev_root_defaults.py +0 -37
- package/content/skills/publish-article/tests/test_diagram_kinds_lint.py +0 -89
- package/content/skills/publish-article/tests/test_fresh_worktree_layout.py +0 -205
- package/content/skills/publish-article/tests/test_html_mock_review.py +0 -159
- package/content/skills/publish-article/tests/test_illustration_lib.py +0 -127
- package/content/skills/publish-article/tests/test_learn_feedback.py +0 -64
- package/content/skills/publish-article/tests/test_lint_article.py +0 -467
- package/content/skills/publish-article/tests/test_lint_investing.py +0 -346
- package/content/skills/publish-article/tests/test_login_if_missing.py +0 -178
- package/content/skills/publish-article/tests/test_publish_article.py +0 -1388
- package/content/skills/publish-article/tests/test_review_store.py +0 -69
- package/content/skills/resale/.dockerignore +0 -7
- package/content/skills/resale/CONTRACTS.md +0 -444
- package/content/skills/resale/README.md +0 -942
- package/content/skills/resale/SKILL.md +0 -101
- package/content/skills/resale/container/.gitkeep +0 -0
- package/content/skills/resale/container/Dockerfile +0 -22
- package/content/skills/resale/container/docker-compose.yml +0 -115
- package/content/skills/resale/container/empty.env +0 -1
- package/content/skills/resale/container/no-file/.gitkeep +0 -0
- package/content/skills/resale/prompts/comps_review.md +0 -21
- package/content/skills/resale/resale/__init__.py +0 -3
- package/content/skills/resale/resale/__main__.py +0 -71
- package/content/skills/resale/resale/analysis/__init__.py +0 -4
- package/content/skills/resale/resale/analysis/bundle.py +0 -115
- package/content/skills/resale/resale/analysis/commands.py +0 -190
- package/content/skills/resale/resale/analysis/gather.py +0 -89
- package/content/skills/resale/resale/analysis/market_watch.py +0 -199
- package/content/skills/resale/resale/analysis/market_watch_run.py +0 -356
- package/content/skills/resale/resale/analysis/package_terms.py +0 -61
- package/content/skills/resale/resale/analysis/paid_check.py +0 -9
- package/content/skills/resale/resale/analysis/price_basis.py +0 -45
- package/content/skills/resale/resale/analysis/reprice.py +0 -241
- package/content/skills/resale/resale/analysis/reprice_apply.py +0 -95
- package/content/skills/resale/resale/analysis/reprice_run.py +0 -194
- package/content/skills/resale/resale/analysis/runner.py +0 -84
- package/content/skills/resale/resale/analysis/stats.py +0 -343
- package/content/skills/resale/resale/api_client.py +0 -45
- package/content/skills/resale/resale/build.py +0 -10
- package/content/skills/resale/resale/cadence/__init__.py +0 -8
- package/content/skills/resale/resale/cadence/budget.py +0 -97
- package/content/skills/resale/resale/cadence/schedule.py +0 -64
- package/content/skills/resale/resale/comps/__init__.py +0 -4
- package/content/skills/resale/resale/comps/accessories.py +0 -99
- package/content/skills/resale/resale/comps/commands.py +0 -86
- package/content/skills/resale/resale/comps/depreciation.json +0 -47
- package/content/skills/resale/resale/comps/depreciation.py +0 -71
- package/content/skills/resale/resale/comps/estimate.py +0 -131
- package/content/skills/resale/resale/comps/market_parse.py +0 -184
- package/content/skills/resale/resale/comps/market_value.py +0 -106
- package/content/skills/resale/resale/comps/ranking.py +0 -69
- package/content/skills/resale/resale/comps/relevance.py +0 -95
- package/content/skills/resale/resale/comps/retailers.py +0 -46
- package/content/skills/resale/resale/comps/review_runner.py +0 -247
- package/content/skills/resale/resale/comps/similar.py +0 -153
- package/content/skills/resale/resale/comps/specs.py +0 -200
- package/content/skills/resale/resale/comps/trusted_retailers.json +0 -205
- package/content/skills/resale/resale/conditions.py +0 -139
- package/content/skills/resale/resale/contracts/__init__.py +0 -169
- package/content/skills/resale/resale/contracts/amazon_orders.schema.json +0 -52
- package/content/skills/resale/resale/contracts/comp_decisions.schema.json +0 -22
- package/content/skills/resale/resale/contracts/event.schema.json +0 -19
- package/content/skills/resale/resale/contracts/fbgroup_batch.schema.json +0 -67
- package/content/skills/resale/resale/contracts/fbgroup_targets.schema.json +0 -44
- package/content/skills/resale/resale/contracts/inquiry_batch.schema.json +0 -34
- package/content/skills/resale/resale/contracts/item_specs.schema.json +0 -79
- package/content/skills/resale/resale/contracts/observation_batch.schema.json +0 -51
- package/content/skills/resale/resale/contracts/reader_state.schema.json +0 -40
- package/content/skills/resale/resale/contracts/reader_targets.schema.json +0 -49
- package/content/skills/resale/resale/contracts/review_decisions.schema.json +0 -19
- package/content/skills/resale/resale/credentials.py +0 -80
- package/content/skills/resale/resale/db/__init__.py +0 -6
- package/content/skills/resale/resale/db/migrate.py +0 -72
- package/content/skills/resale/resale/db/migrations/0001_init.sql +0 -188
- package/content/skills/resale/resale/db/migrations/0002_service.sql +0 -37
- package/content/skills/resale/resale/db/migrations/0003_image_url.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0004_own_listings_nextdoor.sql +0 -60
- package/content/skills/resale/resale/db/migrations/0005_item_hidden.sql +0 -2
- package/content/skills/resale/resale/db/migrations/0006_market_snapshots.sql +0 -56
- package/content/skills/resale/resale/db/migrations/0007_item_price_proof.sql +0 -4
- package/content/skills/resale/resale/db/migrations/0008_market_trust.sql +0 -4
- package/content/skills/resale/resale/db/migrations/0009_item_paid_source.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0010_analysis.sql +0 -30
- package/content/skills/resale/resale/db/migrations/0011_item_images.sql +0 -25
- package/content/skills/resale/resale/db/migrations/0012_page_images.sql +0 -6
- package/content/skills/resale/resale/db/migrations/0013_display_name_inbox.sql +0 -9
- package/content/skills/resale/resale/db/migrations/0014_listing_drafts.sql +0 -16
- package/content/skills/resale/resale/db/migrations/0015_post_kit.sql +0 -14
- package/content/skills/resale/resale/db/migrations/0016_comps_review.sql +0 -12
- package/content/skills/resale/resale/db/migrations/0017_search_terms.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0018_unproven_zero_paid.sql +0 -12
- package/content/skills/resale/resale/db/migrations/0019_equivalent_comps.sql +0 -17
- package/content/skills/resale/resale/db/migrations/0020_selling_notes.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0021_paid_incl_tax.sql +0 -5
- package/content/skills/resale/resale/db/migrations/0022_draft_filled.sql +0 -2
- package/content/skills/resale/resale/db/migrations/0023_purchased_source.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0024_buyer_inquiries.sql +0 -44
- package/content/skills/resale/resale/db/migrations/0025_listing_copy.sql +0 -7
- package/content/skills/resale/resale/db/migrations/0026_selling_lifecycle.sql +0 -6
- package/content/skills/resale/resale/db/migrations/0027_own_listing_alias.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0028_site_draft_url.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0029_fb_groups.sql +0 -37
- package/content/skills/resale/resale/db/migrations/0030_estimate_basis.sql +0 -14
- package/content/skills/resale/resale/db/migrations/0031_bundle_lots.sql +0 -4
- package/content/skills/resale/resale/db/migrations/0032_bundle_total.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0033_floor_variant.sql +0 -2
- package/content/skills/resale/resale/db/migrations/0034_price_drop.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0035_cap_off.sql +0 -2
- package/content/skills/resale/resale/db/migrations/0036_package_price.sql +0 -2
- package/content/skills/resale/resale/db/migrations/0037_open_places.sql +0 -5
- package/content/skills/resale/resale/db/migrations/0038_post_from_any_state.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0039_reprice.sql +0 -62
- package/content/skills/resale/resale/db/migrations/0040_quote_review_per_title.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0041_included_items.sql +0 -1
- package/content/skills/resale/resale/db/migrations/0042_reader_reads.sql +0 -13
- package/content/skills/resale/resale/db/migrations/0043_market_watch.sql +0 -69
- package/content/skills/resale/resale/db/migrations/0044_lot_drafts.sql +0 -68
- package/content/skills/resale/resale/db/retention.py +0 -17
- package/content/skills/resale/resale/db/single_writer.py +0 -37
- package/content/skills/resale/resale/founder_words.py +0 -106
- package/content/skills/resale/resale/fresh_read.py +0 -82
- package/content/skills/resale/resale/http_util.py +0 -22
- package/content/skills/resale/resale/inquiries/__init__.py +0 -1
- package/content/skills/resale/resale/inquiries/commands.py +0 -43
- package/content/skills/resale/resale/inquiries/fbinbox.py +0 -212
- package/content/skills/resale/resale/inquiries/match.py +0 -85
- package/content/skills/resale/resale/inquiries/parse.py +0 -156
- package/content/skills/resale/resale/inquiries/queries.py +0 -54
- package/content/skills/resale/resale/inquiries/refs.py +0 -63
- package/content/skills/resale/resale/inquiries/rules.py +0 -93
- package/content/skills/resale/resale/inquiries/scan.py +0 -124
- package/content/skills/resale/resale/inquiries/store.py +0 -90
- package/content/skills/resale/resale/inventory/__init__.py +0 -10
- package/content/skills/resale/resale/inventory/bundles.py +0 -39
- package/content/skills/resale/resale/inventory/lifecycle.py +0 -42
- package/content/skills/resale/resale/inventory/paid.py +0 -54
- package/content/skills/resale/resale/inventory/private_sale.py +0 -37
- package/content/skills/resale/resale/listing/__init__.py +0 -1
- package/content/skills/resale/resale/listing/commands.py +0 -68
- package/content/skills/resale/resale/listing/flow.py +0 -181
- package/content/skills/resale/resale/listing/gate.py +0 -13
- package/content/skills/resale/resale/offer/__init__.py +0 -1
- package/content/skills/resale/resale/offer/check.py +0 -58
- package/content/skills/resale/resale/offer/commands.py +0 -61
- package/content/skills/resale/resale/offer/evidence.py +0 -139
- package/content/skills/resale/resale/offer/render.py +0 -50
- package/content/skills/resale/resale/offer/routes.py +0 -24
- package/content/skills/resale/resale/offer/verdict.py +0 -42
- package/content/skills/resale/resale/portal/__init__.py +0 -1
- package/content/skills/resale/resale/portal/bundles.py +0 -129
- package/content/skills/resale/resale/portal/layout.py +0 -359
- package/content/skills/resale/resale/portal/market_cells.py +0 -120
- package/content/skills/resale/resale/portal/names.py +0 -35
- package/content/skills/resale/resale/portal/paid_cells.py +0 -62
- package/content/skills/resale/resale/portal/panel.py +0 -84
- package/content/skills/resale/resale/portal/photos.py +0 -111
- package/content/skills/resale/resale/portal/pieces.py +0 -118
- package/content/skills/resale/resale/portal/posted.py +0 -73
- package/content/skills/resale/resale/portal/tablesort.py +0 -58
- package/content/skills/resale/resale/portal/views_analysis.py +0 -394
- package/content/skills/resale/resale/portal/views_conditions.py +0 -127
- package/content/skills/resale/resale/portal/views_house.py +0 -444
- package/content/skills/resale/resale/portal/views_inquiries.py +0 -90
- package/content/skills/resale/resale/portal/views_items.py +0 -681
- package/content/skills/resale/resale/portal/views_misc.py +0 -99
- package/content/skills/resale/resale/portal/views_postkit.py +0 -340
- package/content/skills/resale/resale/portal/views_reader.py +0 -59
- package/content/skills/resale/resale/portal/views_reprice.py +0 -107
- package/content/skills/resale/resale/portal/views_search.py +0 -55
- package/content/skills/resale/resale/portal/views_selling.py +0 -233
- package/content/skills/resale/resale/portal/views_watch.py +0 -95
- package/content/skills/resale/resale/poster/__init__.py +0 -1
- package/content/skills/resale/resale/poster/adapters.py +0 -359
- package/content/skills/resale/resale/poster/commands.py +0 -304
- package/content/skills/resale/resale/poster/confirm_step.py +0 -76
- package/content/skills/resale/resale/poster/driver.py +0 -874
- package/content/skills/resale/resale/poster/edit_verify.py +0 -95
- package/content/skills/resale/resale/poster/own_tabs.py +0 -54
- package/content/skills/resale/resale/poster/preflight.py +0 -57
- package/content/skills/resale/resale/poster/review_window.py +0 -343
- package/content/skills/resale/resale/poster/rules.py +0 -121
- package/content/skills/resale/resale/poster/runner.py +0 -585
- package/content/skills/resale/resale/poster/specs.py +0 -31
- package/content/skills/resale/resale/poster/tabs.py +0 -254
- package/content/skills/resale/resale/poster/unconfirmed.py +0 -113
- package/content/skills/resale/resale/postkit/__init__.py +0 -6
- package/content/skills/resale/resale/postkit/draft_price.py +0 -22
- package/content/skills/resale/resale/postkit/drafts.py +0 -571
- package/content/skills/resale/resale/postkit/drift.py +0 -91
- package/content/skills/resale/resale/postkit/fill.py +0 -143
- package/content/skills/resale/resale/postkit/groups.py +0 -57
- package/content/skills/resale/resale/postkit/health.py +0 -85
- package/content/skills/resale/resale/postkit/lint.py +0 -118
- package/content/skills/resale/resale/postkit/lot_photos.py +0 -64
- package/content/skills/resale/resale/postkit/lot_sale.py +0 -146
- package/content/skills/resale/resale/postkit/lot_state.py +0 -43
- package/content/skills/resale/resale/postkit/lot_titles.py +0 -33
- package/content/skills/resale/resale/postkit/lots.py +0 -328
- package/content/skills/resale/resale/postkit/open_places.py +0 -143
- package/content/skills/resale/resale/postkit/platforms.py +0 -163
- package/content/skills/resale/resale/postkit/post_edit.py +0 -95
- package/content/skills/resale/resale/postkit/post_id.py +0 -55
- package/content/skills/resale/resale/postkit/posting.py +0 -81
- package/content/skills/resale/resale/postkit/price_drop.py +0 -60
- package/content/skills/resale/resale/postkit/pricing.py +0 -112
- package/content/skills/resale/resale/postkit/ready.py +0 -390
- package/content/skills/resale/resale/postkit/selling.py +0 -161
- package/content/skills/resale/resale/postkit/specs.py +0 -35
- package/content/skills/resale/resale/postkit/text.py +0 -398
- package/content/skills/resale/resale/price_rule.py +0 -47
- package/content/skills/resale/resale/proxy_lib.py +0 -28
- package/content/skills/resale/resale/publisher/__init__.py +0 -1
- package/content/skills/resale/resale/publisher/adapters/__init__.py +0 -10
- package/content/skills/resale/resale/publisher/adapters/browser.py +0 -71
- package/content/skills/resale/resale/publisher/adapters/draft.py +0 -46
- package/content/skills/resale/resale/publisher/adapters/ebay.py +0 -126
- package/content/skills/resale/resale/publisher/adapters/forms.py +0 -182
- package/content/skills/resale/resale/publisher/allowlist.py +0 -100
- package/content/skills/resale/resale/publisher/api.py +0 -203
- package/content/skills/resale/resale/publisher/apply.py +0 -82
- package/content/skills/resale/resale/publisher/chrome_profile_lock.py +0 -178
- package/content/skills/resale/resale/publisher/client.py +0 -87
- package/content/skills/resale/resale/publisher/commands.py +0 -307
- package/content/skills/resale/resale/publisher/ebay_auth.py +0 -109
- package/content/skills/resale/resale/publisher/login_watch.py +0 -178
- package/content/skills/resale/resale/publisher/pricing.py +0 -119
- package/content/skills/resale/resale/publisher/profile_lock.py +0 -15
- package/content/skills/resale/resale/publisher/proposals.py +0 -174
- package/content/skills/resale/resale/publisher/review.py +0 -227
- package/content/skills/resale/resale/push/__init__.py +0 -1
- package/content/skills/resale/resale/push/commands.py +0 -102
- package/content/skills/resale/resale/push/link.py +0 -35
- package/content/skills/resale/resale/push/links.py +0 -49
- package/content/skills/resale/resale/push/rules.py +0 -309
- package/content/skills/resale/resale/push/run.py +0 -228
- package/content/skills/resale/resale/push/watchdog.py +0 -50
- package/content/skills/resale/resale/receipts/__init__.py +0 -19
- package/content/skills/resale/resale/receipts/amazon_history.py +0 -242
- package/content/skills/resale/resale/receipts/charges.py +0 -274
- package/content/skills/resale/resale/receipts/commands.py +0 -238
- package/content/skills/resale/resale/receipts/intake.py +0 -134
- package/content/skills/resale/resale/receipts/links.py +0 -61
- package/content/skills/resale/resale/receipts/reader_link.py +0 -66
- package/content/skills/resale/resale/receipts/review.py +0 -127
- package/content/skills/resale/resale/receipts/store.py +0 -509
- package/content/skills/resale/resale/sales/__init__.py +0 -1
- package/content/skills/resale/resale/sales/assets.py +0 -87
- package/content/skills/resale/resale/sales/aws.py +0 -76
- package/content/skills/resale/resale/sales/build.py +0 -88
- package/content/skills/resale/resale/sales/card.py +0 -69
- package/content/skills/resale/resale/sales/commands.py +0 -149
- package/content/skills/resale/resale/sales/feed.py +0 -156
- package/content/skills/resale/resale/sales/lint.py +0 -112
- package/content/skills/resale/resale/sales/photos.py +0 -100
- package/content/skills/resale/resale/sales/publish.py +0 -167
- package/content/skills/resale/resale/sales/render.py +0 -175
- package/content/skills/resale/resale/sales/routes.py +0 -97
- package/content/skills/resale/resale/sales/rules.py +0 -128
- package/content/skills/resale/resale/sales/state.py +0 -79
- package/content/skills/resale/resale/sales/tracker.py +0 -41
- package/content/skills/resale/resale/sales/verify.py +0 -165
- package/content/skills/resale/resale/sales/view.py +0 -108
- package/content/skills/resale/resale/service/__init__.py +0 -1
- package/content/skills/resale/resale/service/app.py +0 -115
- package/content/skills/resale/resale/service/backup.py +0 -398
- package/content/skills/resale/resale/service/budget.py +0 -31
- package/content/skills/resale/resale/service/cap_refresh.py +0 -10
- package/content/skills/resale/resale/service/commands.py +0 -423
- package/content/skills/resale/resale/service/comp_gate.py +0 -216
- package/content/skills/resale/resale/service/comps_refresh.py +0 -16
- package/content/skills/resale/resale/service/comps_review.py +0 -210
- package/content/skills/resale/resale/service/comps_sanity.py +0 -31
- package/content/skills/resale/resale/service/comps_service.py +0 -172
- package/content/skills/resale/resale/service/condition_refresh.py +0 -34
- package/content/skills/resale/resale/service/copy_plan.py +0 -92
- package/content/skills/resale/resale/service/display_names.py +0 -69
- package/content/skills/resale/resale/service/draft_sync.py +0 -21
- package/content/skills/resale/resale/service/drafts.py +0 -181
- package/content/skills/resale/resale/service/ebay_follow.py +0 -19
- package/content/skills/resale/resale/service/ebay_poller.py +0 -256
- package/content/skills/resale/resale/service/fb_groups.py +0 -157
- package/content/skills/resale/resale/service/fetch.py +0 -80
- package/content/skills/resale/resale/service/fresh_reads.py +0 -61
- package/content/skills/resale/resale/service/ingest.py +0 -65
- package/content/skills/resale/resale/service/integrations.py +0 -20
- package/content/skills/resale/resale/service/inventory_ops.py +0 -474
- package/content/skills/resale/resale/service/item_specs_plan.py +0 -76
- package/content/skills/resale/resale/service/market.py +0 -357
- package/content/skills/resale/resale/service/market_watch_routes.py +0 -52
- package/content/skills/resale/resale/service/multipart.py +0 -36
- package/content/skills/resale/resale/service/new_price_plan.py +0 -82
- package/content/skills/resale/resale/service/package_terms_plan.py +0 -31
- package/content/skills/resale/resale/service/pageimage.py +0 -83
- package/content/skills/resale/resale/service/photo_folders.py +0 -72
- package/content/skills/resale/resale/service/photo_inbox.py +0 -151
- package/content/skills/resale/resale/service/photos.py +0 -138
- package/content/skills/resale/resale/service/push_routes.py +0 -28
- package/content/skills/resale/resale/service/queries.py +0 -133
- package/content/skills/resale/resale/service/reader_reads.py +0 -40
- package/content/skills/resale/resale/service/reader_state.py +0 -38
- package/content/skills/resale/resale/service/reprice_routes.py +0 -64
- package/content/skills/resale/resale/service/round_prices.py +0 -86
- package/content/skills/resale/resale/service/scheduler.py +0 -355
- package/content/skills/resale/resale/service/search_terms_plan.py +0 -80
- package/content/skills/resale/resale/service/server.py +0 -1099
- package/content/skills/resale/resale/service/similar_evidence.py +0 -103
- package/content/skills/resale/resale/service/stock_photos.py +0 -207
- package/content/skills/resale/resale/service/store.py +0 -112
- package/content/skills/resale/resale/service/websearch.py +0 -91
- package/content/skills/resale/resale/settings.py +0 -299
- package/content/skills/resale/resale/sources/__init__.py +0 -16
- package/content/skills/resale/resale/sources/amazon_orders.py +0 -285
- package/content/skills/resale/resale/sources/amazon_reader.py +0 -278
- package/content/skills/resale/resale/sources/astromart.py +0 -161
- package/content/skills/resale/resale/sources/browser.py +0 -80
- package/content/skills/resale/resale/sources/browser_audit.py +0 -129
- package/content/skills/resale/resale/sources/cards.py +0 -76
- package/content/skills/resale/resale/sources/chrome_launch.py +0 -40
- package/content/skills/resale/resale/sources/chrome_paths.py +0 -21
- package/content/skills/resale/resale/sources/client.py +0 -195
- package/content/skills/resale/resale/sources/cloudynights.py +0 -38
- package/content/skills/resale/resale/sources/commands.py +0 -327
- package/content/skills/resale/resale/sources/completeness.py +0 -17
- package/content/skills/resale/resale/sources/craigslist.py +0 -71
- package/content/skills/resale/resale/sources/ebay.py +0 -172
- package/content/skills/resale/resale/sources/events.py +0 -46
- package/content/skills/resale/resale/sources/facebook.py +0 -40
- package/content/skills/resale/resale/sources/fbgroup_commands.py +0 -94
- package/content/skills/resale/resale/sources/fbgroup_parse.py +0 -449
- package/content/skills/resale/resale/sources/fbgroup_reader.py +0 -346
- package/content/skills/resale/resale/sources/guards.py +0 -37
- package/content/skills/resale/resale/sources/hostlog.py +0 -18
- package/content/skills/resale/resale/sources/htmlparse.py +0 -97
- package/content/skills/resale/resale/sources/httppage.py +0 -59
- package/content/skills/resale/resale/sources/keyboard.py +0 -42
- package/content/skills/resale/resale/sources/listing_page.py +0 -53
- package/content/skills/resale/resale/sources/login_flow.py +0 -55
- package/content/skills/resale/resale/sources/login_window.py +0 -76
- package/content/skills/resale/resale/sources/logins.py +0 -139
- package/content/skills/resale/resale/sources/market_read.py +0 -70
- package/content/skills/resale/resale/sources/model.py +0 -125
- package/content/skills/resale/resale/sources/notify.py +0 -274
- package/content/skills/resale/resale/sources/offerup.py +0 -39
- package/content/skills/resale/resale/sources/own_check.py +0 -73
- package/content/skills/resale/resale/sources/own_price.py +0 -81
- package/content/skills/resale/resale/sources/profile_guard.py +0 -77
- package/content/skills/resale/resale/sources/readonly.py +0 -56
- package/content/skills/resale/resale/sources/readonly_lint.py +0 -86
- package/content/skills/resale/resale/sources/runner.py +0 -531
- package/content/skills/resale/resale/sources/session_cookies.py +0 -22
- package/content/skills/resale/resale/sources/timeparse.py +0 -55
- package/content/skills/resale/resale/sources/transport.py +0 -16
- package/content/skills/resale/resale/sources/window.py +0 -49
- package/content/skills/resale/resale/surfaces/__init__.py +0 -0
- package/content/skills/resale/resale/surfaces/check.py +0 -134
- package/content/skills/resale/resale/surfaces/commands.py +0 -182
- package/content/skills/resale/resale/surfaces/gate.py +0 -101
- package/content/skills/resale/resale/surfaces/local.py +0 -56
- package/content/skills/resale/resale/surfaces/model.py +0 -39
- package/content/skills/resale/resale/surfaces/platform.py +0 -112
- package/content/skills/resale/resale/surfaces/registry.py +0 -104
- package/content/skills/resale/resale/surfaces/sales.py +0 -148
- package/content/skills/resale/resale/transfer/__init__.py +0 -1
- package/content/skills/resale/resale/transfer/classify.py +0 -64
- package/content/skills/resale/resale/transfer/commands.py +0 -25
- package/content/skills/resale/resale/transfer/dbgate.py +0 -40
- package/content/skills/resale/resale/transfer/importer.py +0 -444
- package/content/skills/resale/resale/transfer/manifest.py +0 -82
- package/content/skills/resale/resale/transfer/merge.py +0 -95
- package/content/skills/resale/resale/visible_window.py +0 -91
- package/content/skills/resale/seeds/similar_brands.json +0 -22
- package/content/skills/resale/settings.example.env +0 -119
- package/content/skills/resale/tasks/.gitkeep +0 -0
- package/content/skills/resale/tasks/_bootstrap.py +0 -23
- package/content/skills/resale/tasks/comps_review_task.py +0 -21
- package/content/skills/resale/tasks/notifier_task.py +0 -14
- package/content/skills/resale/tasks/reader_task.py +0 -43
- package/content/skills/resale/tasks/task_items.json +0 -50
- package/content/skills/resale/tests/analysis_support.py +0 -31
- package/content/skills/resale/tests/conftest.py +0 -127
- package/content/skills/resale/tests/fixtures/amazon/captcha.html +0 -2
- package/content/skills/resale/tests/fixtures/amazon/history_2023.html +0 -6
- package/content/skills/resale/tests/fixtures/amazon/history_empty.html +0 -1
- package/content/skills/resale/tests/fixtures/amazon/order_cancelled_returned.html +0 -16
- package/content/skills/resale/tests/fixtures/amazon/order_discount_single.html +0 -10
- package/content/skills/resale/tests/fixtures/amazon/order_new_layout.html +0 -38
- package/content/skills/resale/tests/fixtures/amazon/order_not_found.html +0 -1
- package/content/skills/resale/tests/fixtures/amazon/order_old_layout.html +0 -33
- package/content/skills/resale/tests/fixtures/amazon/order_real_cancelled.html +0 -10
- package/content/skills/resale/tests/fixtures/amazon/order_real_coupon.html +0 -12
- package/content/skills/resale/tests/fixtures/amazon/order_real_layout.html +0 -15
- package/content/skills/resale/tests/fixtures/amazon/signin.html +0 -1
- package/content/skills/resale/tests/fixtures/capture/craigslist_home.html +0 -5
- package/content/skills/resale/tests/fixtures/capture/facebook_profile.html +0 -7
- package/content/skills/resale/tests/fixtures/capture/facebook_selling.html +0 -6
- package/content/skills/resale/tests/fixtures/capture/offerup_account.html +0 -3
- package/content/skills/resale/tests/fixtures/capture/offerup_profile.html +0 -5
- package/content/skills/resale/tests/fixtures/edit_pages/astromart.html +0 -12
- package/content/skills/resale/tests/fixtures/edit_pages/cloudynights.html +0 -12
- package/content/skills/resale/tests/fixtures/edit_pages/craigslist.html +0 -12
- package/content/skills/resale/tests/fixtures/edit_pages/craigslist_step2.html +0 -6
- package/content/skills/resale/tests/fixtures/edit_pages/facebook.html +0 -20
- package/content/skills/resale/tests/fixtures/edit_pages/facebook_insights.html +0 -1
- package/content/skills/resale/tests/fixtures/poster/cloudynights_blocked.html +0 -4
- package/content/skills/resale/tests/fixtures/poster/cloudynights_form.html +0 -13
- package/content/skills/resale/tests/fixtures/poster/cloudynights_form_iframe.html +0 -9
- package/content/skills/resale/tests/fixtures/poster/cloudynights_index.html +0 -4
- package/content/skills/resale/tests/fixtures/poster/cloudynights_signed_out.html +0 -3
- package/content/skills/resale/tests/fixtures/reader/astromart_category.html +0 -74
- package/content/skills/resale/tests/fixtures/reader/astromart_detail_loggedout.html +0 -332
- package/content/skills/resale/tests/fixtures/reader/astromart_empty.html +0 -431
- package/content/skills/resale/tests/fixtures/reader/astromart_paged.html +0 -1492
- package/content/skills/resale/tests/fixtures/reader/astromart_search.html +0 -114
- package/content/skills/resale/tests/fixtures/reader/cloudynights_challenge.html +0 -1
- package/content/skills/resale/tests/fixtures/reader/craigslist_detail.html +0 -290
- package/content/skills/resale/tests/fixtures/reader/craigslist_empty.html +0 -78
- package/content/skills/resale/tests/fixtures/reader/craigslist_search.html +0 -1
- package/content/skills/resale/tests/fixtures/reader/facebook_detail.html +0 -2
- package/content/skills/resale/tests/fixtures/reader/facebook_empty.html +0 -266
- package/content/skills/resale/tests/fixtures/reader/facebook_search.html +0 -1
- package/content/skills/resale/tests/fixtures/reader/fbgroup_joins.html +0 -7
- package/content/skills/resale/tests/fixtures/reader/fbgroup_post.html +0 -6
- package/content/skills/resale/tests/fixtures/reader/fbgroup_post_page.html +0 -7
- package/content/skills/resale/tests/fixtures/reader/fbgroup_private.html +0 -3
- package/content/skills/resale/tests/fixtures/reader/fbgroup_search.html +0 -29
- package/content/skills/resale/tests/fixtures/reader/fbgroup_story_search.html +0 -5
- package/content/skills/resale/tests/fixtures/reader/offerup_detail.html +0 -5
- package/content/skills/resale/tests/fixtures/reader/offerup_empty.html +0 -1
- package/content/skills/resale/tests/fixtures/reader/offerup_results_live.html +0 -1
- package/content/skills/resale/tests/fixtures/reader/offerup_search.html +0 -1
- package/content/skills/resale/tests/house_support.py +0 -73
- package/content/skills/resale/tests/inquiry_fixtures.py +0 -145
- package/content/skills/resale/tests/portal_gate.py +0 -271
- package/content/skills/resale/tests/postkit_support.py +0 -59
- package/content/skills/resale/tests/pricing_support.py +0 -4
- package/content/skills/resale/tests/publisher_helpers.py +0 -143
- package/content/skills/resale/tests/resale_home_guard.py +0 -32
- package/content/skills/resale/tests/sales_support.py +0 -165
- package/content/skills/resale/tests/service_support.py +0 -98
- package/content/skills/resale/tests/test_amazon_history.py +0 -387
- package/content/skills/resale/tests/test_amazon_orders_parse.py +0 -94
- package/content/skills/resale/tests/test_amazon_reader.py +0 -303
- package/content/skills/resale/tests/test_amazon_service_and_login.py +0 -131
- package/content/skills/resale/tests/test_analysis_service.py +0 -326
- package/content/skills/resale/tests/test_analysis_stats.py +0 -175
- package/content/skills/resale/tests/test_astromart_live_ads.py +0 -138
- package/content/skills/resale/tests/test_backup.py +0 -351
- package/content/skills/resale/tests/test_browser_audit.py +0 -115
- package/content/skills/resale/tests/test_browser_cache_env.py +0 -24
- package/content/skills/resale/tests/test_browser_marker.py +0 -32
- package/content/skills/resale/tests/test_bundle.py +0 -448
- package/content/skills/resale/tests/test_bundle_full_list.py +0 -85
- package/content/skills/resale/tests/test_bundle_offer.py +0 -573
- package/content/skills/resale/tests/test_cadence.py +0 -134
- package/content/skills/resale/tests/test_candidates_review.py +0 -257
- package/content/skills/resale/tests/test_cap_off.py +0 -112
- package/content/skills/resale/tests/test_comp_accessories.py +0 -83
- package/content/skills/resale/tests/test_comps.py +0 -68
- package/content/skills/resale/tests/test_comps_relevance.py +0 -45
- package/content/skills/resale/tests/test_comps_review.py +0 -535
- package/content/skills/resale/tests/test_comps_review_task.py +0 -318
- package/content/skills/resale/tests/test_comps_specs.py +0 -74
- package/content/skills/resale/tests/test_condition_refresh.py +0 -160
- package/content/skills/resale/tests/test_conditions.py +0 -77
- package/content/skills/resale/tests/test_conditions_page.py +0 -258
- package/content/skills/resale/tests/test_contracts.py +0 -146
- package/content/skills/resale/tests/test_db.py +0 -183
- package/content/skills/resale/tests/test_display_names_apply.py +0 -79
- package/content/skills/resale/tests/test_draft_price.py +0 -96
- package/content/skills/resale/tests/test_draft_price_sync.py +0 -161
- package/content/skills/resale/tests/test_ebay_live_quality.py +0 -224
- package/content/skills/resale/tests/test_equivalent_comps.py +0 -309
- package/content/skills/resale/tests/test_fbgroup_parse.py +0 -157
- package/content/skills/resale/tests/test_fbgroup_reader.py +0 -202
- package/content/skills/resale/tests/test_fbgroups_service.py +0 -191
- package/content/skills/resale/tests/test_founder_hide.py +0 -166
- package/content/skills/resale/tests/test_founder_words.py +0 -166
- package/content/skills/resale/tests/test_inquiries_fbinbox.py +0 -197
- package/content/skills/resale/tests/test_inquiries_forwarded.py +0 -86
- package/content/skills/resale/tests/test_inquiries_parse.py +0 -94
- package/content/skills/resale/tests/test_inquiries_scan.py +0 -170
- package/content/skills/resale/tests/test_inquiries_service.py +0 -280
- package/content/skills/resale/tests/test_isolation.py +0 -35
- package/content/skills/resale/tests/test_kit_mode.py +0 -150
- package/content/skills/resale/tests/test_lifecycle.py +0 -53
- package/content/skills/resale/tests/test_list_item.py +0 -417
- package/content/skills/resale/tests/test_listing_copy.py +0 -357
- package/content/skills/resale/tests/test_live_proof.py +0 -82
- package/content/skills/resale/tests/test_lock_priority.py +0 -40
- package/content/skills/resale/tests/test_login_cookie_e2e.py +0 -288
- package/content/skills/resale/tests/test_login_keychain.py +0 -222
- package/content/skills/resale/tests/test_login_window_autoclose.py +0 -215
- package/content/skills/resale/tests/test_lot_posts.py +0 -426
- package/content/skills/resale/tests/test_market_parse.py +0 -113
- package/content/skills/resale/tests/test_market_read.py +0 -193
- package/content/skills/resale/tests/test_market_service.py +0 -383
- package/content/skills/resale/tests/test_market_trust.py +0 -145
- package/content/skills/resale/tests/test_market_value.py +0 -121
- package/content/skills/resale/tests/test_market_watch.py +0 -567
- package/content/skills/resale/tests/test_offer_check.py +0 -286
- package/content/skills/resale/tests/test_one_profile.py +0 -42
- package/content/skills/resale/tests/test_open_places.py +0 -301
- package/content/skills/resale/tests/test_own_check.py +0 -151
- package/content/skills/resale/tests/test_own_comps.py +0 -122
- package/content/skills/resale/tests/test_package_price.py +0 -64
- package/content/skills/resale/tests/test_paid_incl_tax.py +0 -255
- package/content/skills/resale/tests/test_paid_incl_tax_views.py +0 -114
- package/content/skills/resale/tests/test_paid_proof.py +0 -152
- package/content/skills/resale/tests/test_photo_folders.py +0 -92
- package/content/skills/resale/tests/test_photo_inbox.py +0 -147
- package/content/skills/resale/tests/test_photos_fetch.py +0 -84
- package/content/skills/resale/tests/test_photos_service.py +0 -264
- package/content/skills/resale/tests/test_portal_bundle_fold.py +0 -125
- package/content/skills/resale/tests/test_portal_bundle_offer.py +0 -51
- package/content/skills/resale/tests/test_portal_bundle_pieces_browser.py +0 -122
- package/content/skills/resale/tests/test_portal_bundles.py +0 -118
- package/content/skills/resale/tests/test_portal_candidates.py +0 -131
- package/content/skills/resale/tests/test_portal_collapse_browser.py +0 -181
- package/content/skills/resale/tests/test_portal_fit_tables.py +0 -54
- package/content/skills/resale/tests/test_portal_house.py +0 -249
- package/content/skills/resale/tests/test_portal_house_browser.py +0 -42
- package/content/skills/resale/tests/test_portal_inplace.py +0 -126
- package/content/skills/resale/tests/test_portal_item_column.py +0 -86
- package/content/skills/resale/tests/test_portal_layout.py +0 -162
- package/content/skills/resale/tests/test_portal_layout_gate.py +0 -31
- package/content/skills/resale/tests/test_portal_market.py +0 -148
- package/content/skills/resale/tests/test_portal_names.py +0 -86
- package/content/skills/resale/tests/test_portal_photos.py +0 -150
- package/content/skills/resale/tests/test_portal_posted_pill.py +0 -170
- package/content/skills/resale/tests/test_portal_postkit.py +0 -222
- package/content/skills/resale/tests/test_portal_sort.py +0 -91
- package/content/skills/resale/tests/test_portal_split.py +0 -238
- package/content/skills/resale/tests/test_portal_text_audit.py +0 -78
- package/content/skills/resale/tests/test_portal_theme.py +0 -95
- package/content/skills/resale/tests/test_post_any_state.py +0 -94
- package/content/skills/resale/tests/test_post_id.py +0 -118
- package/content/skills/resale/tests/test_post_ready.py +0 -469
- package/content/skills/resale/tests/test_poster.py +0 -1445
- package/content/skills/resale/tests/test_poster_confirm_step.py +0 -176
- package/content/skills/resale/tests/test_poster_contract.py +0 -283
- package/content/skills/resale/tests/test_poster_own_tabs.py +0 -366
- package/content/skills/resale/tests/test_poster_preflight.py +0 -65
- package/content/skills/resale/tests/test_poster_review_window.py +0 -399
- package/content/skills/resale/tests/test_poster_specs.py +0 -41
- package/content/skills/resale/tests/test_poster_tabs.py +0 -980
- package/content/skills/resale/tests/test_poster_unconfirmed.py +0 -175
- package/content/skills/resale/tests/test_postkit.py +0 -653
- package/content/skills/resale/tests/test_postkit_fill.py +0 -286
- package/content/skills/resale/tests/test_postkit_post_edit.py +0 -147
- package/content/skills/resale/tests/test_price_drop.py +0 -175
- package/content/skills/resale/tests/test_pricing_estimate.py +0 -327
- package/content/skills/resale/tests/test_pricing_rules.py +0 -242
- package/content/skills/resale/tests/test_private_sale_tax.py +0 -123
- package/content/skills/resale/tests/test_profile_guard.py +0 -75
- package/content/skills/resale/tests/test_profile_launch.py +0 -229
- package/content/skills/resale/tests/test_publisher_allowlist.py +0 -96
- package/content/skills/resale/tests/test_publisher_api.py +0 -157
- package/content/skills/resale/tests/test_publisher_apply.py +0 -190
- package/content/skills/resale/tests/test_publisher_commands.py +0 -178
- package/content/skills/resale/tests/test_publisher_ebay.py +0 -125
- package/content/skills/resale/tests/test_publisher_forms.py +0 -181
- package/content/skills/resale/tests/test_publisher_pricing.py +0 -83
- package/content/skills/resale/tests/test_publisher_proposals.py +0 -109
- package/content/skills/resale/tests/test_publisher_review.py +0 -121
- package/content/skills/resale/tests/test_purchase_search.py +0 -90
- package/content/skills/resale/tests/test_push.py +0 -315
- package/content/skills/resale/tests/test_push_links.py +0 -195
- package/content/skills/resale/tests/test_push_proof.py +0 -206
- package/content/skills/resale/tests/test_reader_any_state.py +0 -54
- package/content/skills/resale/tests/test_reader_link.py +0 -53
- package/content/skills/resale/tests/test_reader_lint.py +0 -38
- package/content/skills/resale/tests/test_reader_live_pages.py +0 -61
- package/content/skills/resale/tests/test_reader_model.py +0 -59
- package/content/skills/resale/tests/test_reader_notify.py +0 -296
- package/content/skills/resale/tests/test_reader_parsers.py +0 -159
- package/content/skills/resale/tests/test_reader_query.py +0 -63
- package/content/skills/resale/tests/test_reader_reads.py +0 -84
- package/content/skills/resale/tests/test_reader_runner.py +0 -641
- package/content/skills/resale/tests/test_reader_state_portal.py +0 -114
- package/content/skills/resale/tests/test_receipts_intake.py +0 -483
- package/content/skills/resale/tests/test_receipts_recommendations.py +0 -117
- package/content/skills/resale/tests/test_receipts_split_orders.py +0 -115
- package/content/skills/resale/tests/test_reprice_review.py +0 -314
- package/content/skills/resale/tests/test_reprice_rules.py +0 -171
- package/content/skills/resale/tests/test_retailers.py +0 -24
- package/content/skills/resale/tests/test_returns_intake.py +0 -69
- package/content/skills/resale/tests/test_round_prices.py +0 -240
- package/content/skills/resale/tests/test_sales_browser.py +0 -164
- package/content/skills/resale/tests/test_sales_build.py +0 -585
- package/content/skills/resale/tests/test_sales_commands.py +0 -95
- package/content/skills/resale/tests/test_sales_feed.py +0 -226
- package/content/skills/resale/tests/test_sales_http.py +0 -164
- package/content/skills/resale/tests/test_sales_no_llm.py +0 -40
- package/content/skills/resale/tests/test_sales_real_data.py +0 -44
- package/content/skills/resale/tests/test_sales_sold_republish.py +0 -132
- package/content/skills/resale/tests/test_sales_verify.py +0 -147
- package/content/skills/resale/tests/test_search_terms.py +0 -71
- package/content/skills/resale/tests/test_search_terms_apply.py +0 -76
- package/content/skills/resale/tests/test_selling.py +0 -376
- package/content/skills/resale/tests/test_selling_notes.py +0 -129
- package/content/skills/resale/tests/test_service_comps.py +0 -129
- package/content/skills/resale/tests/test_service_delete.py +0 -126
- package/content/skills/resale/tests/test_service_ebay.py +0 -265
- package/content/skills/resale/tests/test_service_gmail.py +0 -61
- package/content/skills/resale/tests/test_service_http.py +0 -333
- package/content/skills/resale/tests/test_service_ingest.py +0 -73
- package/content/skills/resale/tests/test_service_main.py +0 -127
- package/content/skills/resale/tests/test_service_migrations.py +0 -38
- package/content/skills/resale/tests/test_settings.py +0 -150
- package/content/skills/resale/tests/test_similar_comps.py +0 -313
- package/content/skills/resale/tests/test_single_writer.py +0 -53
- package/content/skills/resale/tests/test_surfaces.py +0 -378
- package/content/skills/resale/tests/test_surfaces_no_llm.py +0 -69
- package/content/skills/resale/tests/test_transfer_import.py +0 -416
- package/content/skills/resale/tests/test_visible_window.py +0 -124
- package/content/skills/resale/tests/test_window_never_closed.py +0 -156
- package/content/skills/resale/tests/test_zero_paid.py +0 -67
- package/content/skills/resale/tests/transfer_support.py +0 -191
- package/content/skills/visual-gen/SKILL.md +0 -97
- package/content/skills/visual-gen/scripts/visualgen/__init__.py +0 -1
- package/content/skills/visual-gen/scripts/visualgen/compare.py +0 -69
- package/content/skills/visual-gen/scripts/visualgen/config.py +0 -131
- package/content/skills/visual-gen/scripts/visualgen/engine.py +0 -162
- package/content/skills/visual-gen/scripts/visualgen/guard.py +0 -86
- package/content/skills/visual-gen/scripts/visualgen/imaging.py +0 -109
- package/content/skills/visual-gen/scripts/visualgen/keys.py +0 -44
- package/content/skills/visual-gen/scripts/visualgen/model.py +0 -60
- package/content/skills/visual-gen/scripts/visualgen/providers/__init__.py +0 -0
- package/content/skills/visual-gen/scripts/visualgen/providers/base.py +0 -82
- package/content/skills/visual-gen/scripts/visualgen/providers/chatgpt_codex.py +0 -286
- package/content/skills/visual-gen/scripts/visualgen/providers/gemini.py +0 -97
- package/content/skills/visual-gen/scripts/visualgen/providers/meshy.py +0 -146
- package/content/skills/visual-gen/scripts/visualgen/providers/registry.py +0 -42
- package/content/skills/visual-gen/scripts/visualgen/quota.py +0 -157
- package/content/skills/visual-gen/scripts/visualgen/runner.py +0 -103
- package/content/skills/visual-gen/scripts/visualgen_cli.py +0 -328
- package/content/skills/visual-gen/templates/codex_job_capture.txt +0 -5
- package/content/skills/visual-gen/templates/codex_job_model.txt +0 -6
- package/content/skills/visual-gen/templates/codex_prompt_capture.txt +0 -8
- package/content/skills/visual-gen/templates/codex_prompt_model.txt +0 -9
- package/content/skills/visual-gen/templates/config.json +0 -52
- package/content/skills/visual-gen/tests/_util.py +0 -173
- package/content/skills/visual-gen/tests/test_cli.py +0 -166
- package/content/skills/visual-gen/tests/test_codex.py +0 -210
- package/content/skills/visual-gen/tests/test_config_guard.py +0 -115
- package/content/skills/visual-gen/tests/test_engine.py +0 -185
- package/content/skills/visual-gen/tests/test_http_providers.py +0 -126
- package/content/skills/visual-gen/tests/test_options.py +0 -164
- package/content/skills/visual-gen/tests/test_quota.py +0 -151
package/README.md
CHANGED
|
@@ -1,56 +1,126 @@
|
|
|
1
1
|
# @yasaswy.nagavolu/agents
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
and
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
3
|
+
Install a set of agents, skills, hooks and helper tools into Claude Code and Codex with one command.
|
|
4
|
+
The installer checks your machine, asks before it installs anything it needs, copies the bundles you pick,
|
|
5
|
+
and can update or remove them later. It works on macOS and Windows; on Linux it installs the files and reports
|
|
6
|
+
missing tools but does not install them.
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
### macOS (Terminal, zsh)
|
|
11
|
+
|
|
12
|
+
1. Install [Homebrew](https://brew.sh) and Node.js 18 or newer: `brew install node`.
|
|
13
|
+
2. Run the installer and pick bundles in the menu:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx @yasaswy.nagavolu/agents install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. The installer lists what your bundles need (git, uv, Python, Claude Code, and for some bundles Docker Desktop, ffmpeg or Chrome) and asks before it installs each one with Homebrew.
|
|
20
|
+
4. Open a new terminal tab, then check the result: `agents-cli doctor`.
|
|
21
|
+
|
|
22
|
+
### Windows (PowerShell)
|
|
23
|
+
|
|
24
|
+
1. Windows 10 or 11 with the Microsoft Store "App Installer" (it provides `winget`; Windows 11 has it). Install Node.js 18 or newer: `winget install --id OpenJS.NodeJS.LTS -e`, then open a new PowerShell window.
|
|
25
|
+
2. Run the installer. Quote the package name in PowerShell, because `@` starts splatting there:
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
npx '@yasaswy.nagavolu/agents' install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
3. The installer lists what your bundles need and asks before it installs each one with `winget` (a Windows installer may show its own admin prompt; accept it).
|
|
32
|
+
4. Open a new PowerShell window, then check the result: `agents-cli doctor`.
|
|
33
|
+
|
|
34
|
+
### Linux
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
npx @yasaswy.nagavolu/agents install
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
The files are installed, background tasks are not (they use Windows Task Scheduler and macOS LaunchAgents).
|
|
41
|
+
The tool check only reports what is missing; install it with your package manager.
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
npx '@yasaswy.nagavolu/agents' install
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
or install the CLI globally:
|
|
43
|
+
### Without a terminal menu
|
|
48
44
|
|
|
49
45
|
```bash
|
|
50
|
-
|
|
51
|
-
agents
|
|
46
|
+
npx @yasaswy.nagavolu/agents install --bundle handoff --yes # one bundle, no questions asked
|
|
47
|
+
npx @yasaswy.nagavolu/agents install # outside a terminal: lists the bundle keys
|
|
52
48
|
```
|
|
53
49
|
|
|
50
|
+
`--yes` also installs missing tools without asking (`--no-bootstrap` skips the tool check). The CLI can also be installed
|
|
51
|
+
globally: `npm install -g @yasaswy.nagavolu/agents`, then `agents-cli install`.
|
|
52
|
+
|
|
53
|
+
## What `install` does
|
|
54
|
+
|
|
55
|
+
1. **Checks the tools** your chosen bundles need and, after asking about each one, installs what is missing (Homebrew on macOS, winget on Windows, npm or uv for the rest). `agents-cli bootstrap --check` shows the same table without changing anything.
|
|
56
|
+
2. **Copies the bundle files** into `~/.claude` (and `~/.codex` for Codex), recording each file's hash so a later `update` never overwrites an edit of yours without telling you.
|
|
57
|
+
3. **Wires** hooks, MCP servers, key bindings and settings into `settings.json`, with a backup first.
|
|
58
|
+
4. **Builds the Python environment** the bundles' hooks need (one locked environment under `~/.claude/pyenv` when your Python does not satisfy them) and runs each package's one-time setup, such as the Chromium download for Playwright.
|
|
59
|
+
5. **Asks for secrets** (API keys, tokens) with masked input; skip with `--no-secrets` and run `agents-cli secrets` later.
|
|
60
|
+
6. **Starts background parts** a bundle declares: Docker containers, hidden Windows scheduled tasks, macOS LaunchAgents. Skip with `--no-containers` and `--no-scheduled-tasks`.
|
|
61
|
+
|
|
62
|
+
## What your machine needs
|
|
63
|
+
|
|
64
|
+
| Tool | Needed for | macOS | Windows |
|
|
65
|
+
|---|---|---|---|
|
|
66
|
+
| Node.js 18+ | the CLI itself | `brew install node` (you) | `winget install --id OpenJS.NodeJS.LTS -e` (you) |
|
|
67
|
+
| git | every bundle | Homebrew | winget `Git.Git` |
|
|
68
|
+
| uv | locked Python environment | Homebrew | winget `astral-sh.uv` |
|
|
69
|
+
| Python 3.8+ | hooks and skills | uv installs 3.12 when none is found | uv installs 3.12 when none is found |
|
|
70
|
+
| Claude Code | the host of the bundles | npm | winget `Anthropic.ClaudeCode` |
|
|
71
|
+
| gitleaks | shipping, clean-litter, disk-cleanup, runner | Homebrew | winget `Gitleaks.Gitleaks` |
|
|
72
|
+
| Docker Desktop | LiteLLM-backed bundles (councils, review-council, agent-orchestration, web-search, model-routing), runner | Homebrew cask (asks for your password) | winget `Docker.DockerDesktop` |
|
|
73
|
+
| ffmpeg | video-editing, youtube-download | Homebrew | winget `Gyan.FFmpeg` |
|
|
74
|
+
| Google Chrome | visual-review, reddit-reader, youtube-download | Homebrew cask | winget `Google.Chrome` |
|
|
75
|
+
| Expo EAS CLI | expo-release (optional) | npm | npm |
|
|
76
|
+
|
|
77
|
+
Homebrew and winget are the only tools you install yourself first (with Node.js). Nothing is ever installed through a piped script.
|
|
78
|
+
|
|
79
|
+
## Bundles in this package
|
|
80
|
+
|
|
81
|
+
`agents-cli install` lists them; each bundle is installed on its own, with the bundles it depends on.
|
|
82
|
+
|
|
83
|
+
| Bundle | What it gives you |
|
|
84
|
+
|---|---|
|
|
85
|
+
| `harness-hygiene` (core) | Read guard for large files, commit-trailer guard, statusline, Context7 and Terraform rules; installed first with any bundle |
|
|
86
|
+
| `session-tools` | Resume past Claude Code sessions by name; archive transcripts to markdown |
|
|
87
|
+
| `shipping` | Sync, test, commit, push and file the GitLab issue update in one skill |
|
|
88
|
+
| `handoff` | One-click session handoff (Ctrl+X H) |
|
|
89
|
+
| `subagent-model-routing` | Worker and assistant model roles, a dispatch guard, `models.json` |
|
|
90
|
+
| `agent-orchestration` | Orchestrator and worker agents, scribe, memory-safety stack |
|
|
91
|
+
| `councils`, `review-council`, `web-search`, `model-routing` | Multi-model councils, review panels, web search and model switching through your own LiteLLM proxy |
|
|
92
|
+
| `visual-review` | HTML mocks checked in a live browser with click-to-comment rounds |
|
|
93
|
+
| `video-editing`, `youtube-download` | ffmpeg and OpenCV editing with DaVinci Resolve hand-off; yt-dlp downloads |
|
|
94
|
+
| `reddit-reader`, `docs-lookup`, `skill-authoring` | Read Reddit threads; Context7 library docs; code-is-law lint for skills and agents |
|
|
95
|
+
| `heavy-gate-runner`, `low-ram-advisor`, `disk-cleanup`, `clean-litter` | Long-gate runner, RAM triage, disk scan and cleanup, finished-worktree cleanup |
|
|
96
|
+
| `runner` | Self-hosted GitLab CI runner setup |
|
|
97
|
+
| `android-emulator`, `expo-release` | Headless Android emulator; self-hosted Expo release pipeline |
|
|
98
|
+
| `gmail-reader`, `ntfy` | Read-only Gmail access and phone pushes for other skills (advanced) |
|
|
99
|
+
| `planning-ideation` | Points to the separate planning-skills package |
|
|
100
|
+
|
|
101
|
+
Bundles that belong to one person's setup (resale tracking, house-sale tracking, article publishing, the LAN dev bridge, Deskflow layout) and the maintainer bundles are not part of this package. They install from a checkout of the repository with `--profile self`.
|
|
102
|
+
|
|
103
|
+
## After the install
|
|
104
|
+
|
|
105
|
+
- `agents-cli doctor` reports missing or drifted files, hooks that would break a session, and tools or Python packages a bundle needs; `agents-cli doctor --fix` repairs what it can.
|
|
106
|
+
- `agents-cli update --yes` brings every installed bundle to the current version; your own edits are kept or shown as a diff.
|
|
107
|
+
- `agents-cli uninstall --bundle <key> --yes` removes a bundle's files and wiring.
|
|
108
|
+
- `agents-cli secrets` prompts again for any missing secret; `agents-cli secrets --list` shows which are set.
|
|
109
|
+
|
|
110
|
+
### Platform notes
|
|
111
|
+
|
|
112
|
+
| | macOS | Windows |
|
|
113
|
+
|---|---|---|
|
|
114
|
+
| Background tasks | LaunchAgents, no window | hidden Task Scheduler tasks (`conhost --headless`), no elevation |
|
|
115
|
+
| Python for the tasks | the environment `install` builds, else `python3` | the environment `install` builds, else a Python on PATH, else the uv-managed Python |
|
|
116
|
+
| Package manager | Homebrew | winget |
|
|
117
|
+
| Docker Desktop | first start by hand: `open -a Docker`, accept the terms | first start by hand, accept the terms |
|
|
118
|
+
| Shell for printed commands | zsh | PowerShell (the package name is quoted) |
|
|
119
|
+
|
|
120
|
+
## Reference
|
|
121
|
+
|
|
122
|
+
The sections below describe every command, the bundle manifest and the install internals.
|
|
123
|
+
|
|
54
124
|
## The `agents-cli` command
|
|
55
125
|
|
|
56
126
|
`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.
|
|
@@ -103,10 +173,12 @@ Every command this package prints for you to paste goes through one helper (`glo
|
|
|
103
173
|
[Updating](#updating) below.
|
|
104
174
|
Run from a git checkout, `update` refuses (exit 1, nothing deployed) when HEAD is behind origin's default branch,
|
|
105
175
|
because it would deploy older files over newer ones; `--allow-stale` overrides, and an unreachable remote only warns.
|
|
106
|
-
`update` also
|
|
107
|
-
(`agents-ledger.json`, `cliVersion`) was written by a newer agents-cli than the one running, since it would write
|
|
108
|
-
guard files over newer ones and remove newer settings items
|
|
109
|
-
the
|
|
176
|
+
`update` and `install` also refuse (exit 1, nothing written, no project, profile or bypass step run) when the install
|
|
177
|
+
record (`agents-ledger.json`, `cliVersion`) was written by a newer agents-cli than the one running, since it would write
|
|
178
|
+
older guard files over newer ones and remove newer settings items. On the same version, a checkout whose commit is an
|
|
179
|
+
ancestor of the recorded `sourceCommit` (or older by commit time when git cannot tell) is refused the same way, with no
|
|
180
|
+
network needed; every install and update records `sourceKind`, `sourceCommit` and `sourceCommitTime`.
|
|
181
|
+
`--allow-downgrade` overrides. The Codex record is checked the same way. Equal or older records are unaffected. `doctor` prints the install record version against the running one
|
|
110
182
|
and warns when the record is newer.
|
|
111
183
|
- **Hook failure policy.** A hook registration in `manifest.json` may carry `timeout` (seconds) and `onFailure`
|
|
112
184
|
(`"continue"` or `"block"`, read by Claude Code 2.1.295 and later). The two every-call `PreToolUse` helpers
|
|
@@ -153,7 +225,7 @@ Every command this package prints for you to paste goes through one helper (`glo
|
|
|
153
225
|
On Windows it also warns (report only, never changes the exit code) when the shell hosting the chat, `pwsh` first on PATH,
|
|
154
226
|
a visible Windows Terminal profile, or a `Claude*`/`LiteLLM*` scheduled task points at the Microsoft Store (MSIX)
|
|
155
227
|
PowerShell, because a Store update force-closes running chats. Fix with `tools/pwsh_msi_cutover.ps1` in the my-agents repo.
|
|
156
|
-
|
|
228
|
+
On the self profile, and on any machine that answered yes to `install --bypass-permissions` (an interactive install asks once; `--no-bypass-permissions` records a no; a public install is off by default and never touches these keys), it also checks `~/.claude/settings.json` for bypass-only, no auto mode: `permissions.defaultMode` `bypassPermissions`,
|
|
157
229
|
`skipDangerousModePermissionPrompt` `true`, `useAutoModeDuringPlan` `false`, and neither
|
|
158
230
|
`permissions.disableBypassPermissionsMode` nor `permissions.disableAutoMode`. `--fix`, `install` and `update` set the
|
|
159
231
|
required keys, remove the forbidden ones, and leave every other key, including `permissions.deny`, untouched; a project `defaultMode` weaker than `bypassPermissions` is flagged too.
|
|
@@ -175,7 +247,7 @@ Every command this package prints for you to paste goes through one helper (`glo
|
|
|
175
247
|
- `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
248
|
- `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.
|
|
177
249
|
- `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).
|
|
178
|
-
- `agents-cli bootstrap [--check] [--json] [--skip <tool>]` —
|
|
250
|
+
- `agents-cli bootstrap [--check] [--json] [--yes] [--bundle <key>]... [--with <tool>]... [--skip <tool>]... [--profile public|self]` — checks the tools the harness needs and, after asking about each one (`--yes`: without asking), installs what is missing: macOS through Homebrew, Windows through winget (Linux only reports). In scope without `--bundle`: git, Node.js, uv, Python (uv installs 3.12 when none is found) and Claude Code; `--bundle <key>` adds what that bundle needs (Docker Desktop for the LiteLLM bundles and the runner, ffmpeg for video, Chrome for visual review, gitleaks for shipping and cleanup); `--with <tool>` adds one more; `--profile self` is the maintainer set (Docker, ffmpeg, OpenTofu, AWS CLI, Codex, Chrome, the dev folder). Homebrew, winget and Node.js are the manual steps: they are listed with one line of instruction. `install` runs the same check on the chosen bundles before it copies anything (`--no-bootstrap` or `AGENTS_CLI_NO_BOOTSTRAP=1` skips it) and never fails because a tool is missing. Never a piped script; the command opens no window of its own (a Windows installer may show its own prompt). `--check` changes nothing; `--json` prints the same table as JSON. Exit codes: 0 every tool in scope is ready, 1 one is missing or failed, 2 usage error. Python packages and the Playwright browser: `install` builds the locked managed environment (`~/.claude/pyenv`) when the machine's Python does not satisfy the installed bundles, and runs each package's setup (`playwright install chromium`) on every install and update.
|
|
179
251
|
- `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).
|
|
180
252
|
- `agents-cli --help` — show usage
|
|
181
253
|
|
|
@@ -492,7 +564,6 @@ works with no `agents.env` file at all.
|
|
|
492
564
|
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`.
|
|
493
565
|
|
|
494
566
|
- **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.
|
|
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.
|
|
496
567
|
- **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.
|
|
497
568
|
- **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`.
|
|
498
569
|
|
|
@@ -563,7 +634,7 @@ setting to tick) instead of failing with a Docker error.
|
|
|
563
634
|
|
|
564
635
|
**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.
|
|
565
636
|
|
|
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
|
|
637
|
+
**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`; `update` removes those disabled legacy tasks too (`launchctl bootout` and the plist of that one label, then `launchctl enable` of the label so launchd drops its disabled flag and doctor stops listing it; a running or armed task is never touched). 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
638
|
|
|
568
639
|
## Updating
|
|
569
640
|
|
|
@@ -689,5 +760,4 @@ python -m pytest proxy/tests/test_agents_env.py -q
|
|
|
689
760
|
|
|
690
761
|
## Source
|
|
691
762
|
|
|
692
|
-
|
|
693
|
-
(private repo; package published publicly to npm).
|
|
763
|
+
The package metadata (`repository`, `bugs`) names the project that publishes it.
|
package/bin/cli.js
CHANGED
|
@@ -9,6 +9,8 @@ const { fc } = require('../lib/founderCmd');
|
|
|
9
9
|
const pkg = JSON.parse(
|
|
10
10
|
readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')
|
|
11
11
|
);
|
|
12
|
+
// Hint commands rendered inside this process (hook cores, pyrun) fall back to npx with this package's own name.
|
|
13
|
+
if (!process.env.AGENTS_CLI_PACKAGE) process.env.AGENTS_CLI_PACKAGE = pkg.name;
|
|
12
14
|
|
|
13
15
|
const { installBundle, defaultTargetBase, InstallError } = require('../lib/install');
|
|
14
16
|
const { uninstallBundle, UninstallError } = require('../lib/uninstall');
|
|
@@ -133,10 +135,12 @@ Usage:
|
|
|
133
135
|
agents-cli migrate export --scope harness-state --out <folder> [--dry-run] | import --from <folder> [--dry-run] [--keep]
|
|
134
136
|
Project memory, handoffs and publish-article gate records as one plain folder
|
|
135
137
|
(no secrets); import keeps both files on a conflict and removes the folder
|
|
136
|
-
agents-cli bootstrap [--check] [--json] [--skip <tool>] [--
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
agents-cli bootstrap [--check] [--json] [--yes] [--bundle <key>]... [--with <tool>]... [--skip <tool>]... [--profile public|self]
|
|
139
|
+
Check the tools the harness needs and, after asking about each one (--yes: without asking), install
|
|
140
|
+
what is missing: macOS through Homebrew, Windows through winget (Linux only reports). Core tools: git,
|
|
141
|
+
Node.js, uv, Python, Claude Code; --bundle <key> adds what that bundle needs; --profile self adds the
|
|
142
|
+
maintainer tools (Docker, ffmpeg, OpenTofu, AWS CLI, Codex, Chrome) and the dev folder.
|
|
143
|
+
install runs the same check first (--no-bootstrap skips it); --check changes nothing
|
|
140
144
|
agents-cli sampler <status|register|unregister> [--dry-run] [--takeover-tasks] [--target-dir <path>]
|
|
141
145
|
The hidden ClaudeMemSampler task of the memory-safety stack (Windows task, macOS LaunchAgent).
|
|
142
146
|
install/update register it on their own for the default ~/.claude install;
|
|
@@ -147,18 +151,17 @@ Usage:
|
|
|
147
151
|
Remove clean git worktrees; park ones with unpushed or uncommitted work on origin as wip/<name>
|
|
148
152
|
with one note on the PRD issue (secret scan first; live, locked and fresh worktrees are skipped)
|
|
149
153
|
agents-cli prd <sub> [args] The home PRD issue of this chat: link <issue> | link none --reason <why> | show | unlink |
|
|
150
|
-
find [keywords...] | add <text> [--start] | item <text> --start|--done | refresh. add puts a new
|
|
154
|
+
find [keywords...] | add <text> [--start] | item <text|#iid:id> --start|--done|--drop --reason <why> | refresh. add puts a new
|
|
151
155
|
item in the live checklist (item only ticks items already there); --issue <ref> picks another
|
|
152
156
|
issue. Until linked, hooks block edits, worker dispatch, git commit/push and ship.py;
|
|
153
157
|
the status line shows PRD #n with live counts
|
|
154
158
|
agents-cli chief report [--days N] [--json] [--no-total]
|
|
155
159
|
Chief usage report: per UTC day runs, tokens, outcomes and share of all Claude spend
|
|
156
|
-
agents-cli chief
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
agents-cli later
|
|
160
|
-
|
|
161
|
-
Judgment jobs that run on time with no chat open (Claude Sonnet, read-only, result as a PRD comment)
|
|
160
|
+
agents-cli chief goal set|show|list|link|items | tick [--dry-run] | rules list|check | ack <key> | reminders
|
|
161
|
+
Goals a lead writes with the founder | Chief's 5-minute check: who it would remind of what (dry run), the rules, acknowledge a reminder, what was sent
|
|
162
|
+
agents-cli later add --prompt <text> [--when \"in 2m\"] [--title <short>] [--repo <path>] [--prd owner/repo#n] [--item <text>]
|
|
163
|
+
agents-cli later list [--all] [--json] | show <ref> | cancel <ref>
|
|
164
|
+
A later job is a promise: Chief reminds the chat that made it when it is due (a closed chat is resumed)
|
|
162
165
|
agents-cli review-gate accept [--repo <path>] [--target-dir <path>]
|
|
163
166
|
Founder only, in a plain terminal (refuses inside an agent session): accept the commits the git review
|
|
164
167
|
gate refused because they were made outside an agent session (the repo's local branch tips and worktree HEADs)
|
|
@@ -174,8 +177,12 @@ Flags for install:
|
|
|
174
177
|
--bundle <key> Bundle to install non-interactively — run "install" with no flags to list keys
|
|
175
178
|
--yes Required with --bundle: confirms the non-interactive install
|
|
176
179
|
--no-scheduled-tasks Skip registering the hidden ClaudeMemSampler task (also on update)
|
|
180
|
+
--no-bootstrap Skip the tool check install runs first (git, uv, Python, Claude Code and what the chosen bundles need);
|
|
181
|
+
by default it asks before each install (--yes: without asking). Same as AGENTS_CLI_NO_BOOTSTRAP=1
|
|
177
182
|
--takeover-tasks Re-point a background task that already runs from another install still on disk
|
|
178
183
|
(without it install and update report the conflict and leave the task alone)
|
|
184
|
+
--allow-downgrade Install even when the install record was written by newer code (a newer agents-cli, or a newer
|
|
185
|
+
commit of this checkout); default: refused, since older files would overwrite newer ones
|
|
179
186
|
--advanced Interactive menu: show every bundle (incl. advanced) and pick items within one
|
|
180
187
|
--profile <public|self> Which bundles the menu/listing offers (default: public). "self" adds this
|
|
181
188
|
repo's maintainer-only bundles (self-infra, self-skills, ...) on top of the
|
|
@@ -189,6 +196,9 @@ Flags for install:
|
|
|
189
196
|
next to --target-dir (use for testing)
|
|
190
197
|
--no-secrets Skip secret and bundle-settings prompting for this install (--yes alone does not skip it)
|
|
191
198
|
--no-containers Do not start a bundle's containers (docker compose up) after the install
|
|
199
|
+
--bypass-permissions Run Claude Code in bypass permissions mode: records the choice, then doctor, install and
|
|
200
|
+
update keep the bypass-only settings in place. Off by default on a public install (an
|
|
201
|
+
interactive install asks once); --no-bypass-permissions records a no. The self profile always keeps it.
|
|
192
202
|
--no-scheduled-tasks Do not register a bundle's hidden Windows scheduled tasks
|
|
193
203
|
|
|
194
204
|
Flags for uninstall:
|
|
@@ -220,8 +230,8 @@ Flags for update:
|
|
|
220
230
|
--no-secrets Skip secret and settings prompting for a dependency bundle this update installs
|
|
221
231
|
--allow-stale Update even when this checkout is behind origin's default branch (default: refused;
|
|
222
232
|
doctor checks ledger hashes, not source drift, so it cannot catch a stale deploy)
|
|
223
|
-
--allow-downgrade Update even when the install record was written by a newer agents-cli
|
|
224
|
-
(default: refused, since older files would overwrite newer ones)
|
|
233
|
+
--allow-downgrade Update even when the install record was written by newer code: a newer agents-cli, or a newer
|
|
234
|
+
commit of this checkout (default: refused, since older files would overwrite newer ones)
|
|
225
235
|
|
|
226
236
|
Update compares each installed file's source hash, ledger hash, and on-disk
|
|
227
237
|
hash: a file no one has touched since install is silently overwritten when
|
|
@@ -266,6 +276,9 @@ Flags for runner:
|
|
|
266
276
|
runner concurrent <n> | pause | resume Change the job slots, or stop and start taking jobs (running jobs finish); works on a single-container install too, fitting per-job memory to Docker
|
|
267
277
|
runner rotate-token [--name <n>] [--dry-run] Reset the runner authentication token in GitLab, save it and rewrite config.toml; never prints it
|
|
268
278
|
runner janitor [--dry-run] [--watch] Remove finished job containers, per-job volumes and unused images; --watch cleans after every job
|
|
279
|
+
runner size [--apply] [--restart-docker] [--job-memory <size>] Size this machine for CI: Docker memory scaled to the host (half of it, at most 16 GB), up to 4 jobs fitted to it; plan without --apply
|
|
280
|
+
runner use mac|pc|linux|both|auto Choose which machine's runner takes CI jobs now (the others drain); auto = each host balances itself
|
|
281
|
+
runner balance [--enable | --disable] [--dry-run] One pass: publish this host's health and move CI to a healthy host (low disk or RAM, busy, offline) and back (an overloaded host gets the next one as an extra host); --enable lets the janitor task do it every 2 minutes
|
|
269
282
|
runner init-project [--profile node|python|docker|macos|blank] [--write] [--attach --project-id <id>]
|
|
270
283
|
Write a .gitlab-ci.yml that uses the shared templates (dry run unless --write)
|
|
271
284
|
--profile <auto|linux|macos> Install profile (default auto); --name, --tags, --concurrent, --url, --image,
|
|
@@ -306,7 +319,7 @@ doctor also flags a project .claude/settings.json or settings.local.json whose p
|
|
|
306
319
|
than bypassPermissions (for example "dontAsk" or "auto"), which silently downgrades every session in that repo.
|
|
307
320
|
--fix removes the key from settings.local.json only; a committed settings.json is reported, never edited.
|
|
308
321
|
|
|
309
|
-
doctor also checks <target>/settings.json for bypassPermissions only with no auto mode: permissions.defaultMode
|
|
322
|
+
doctor also checks <target>/settings.json, on the self profile or after install/update --bypass-permissions, for bypassPermissions only with no auto mode: permissions.defaultMode
|
|
310
323
|
"bypassPermissions", skipDangerousModePermissionPrompt true, useAutoModeDuringPlan false, and neither
|
|
311
324
|
permissions.disableBypassPermissionsMode nor permissions.disableAutoMode. --fix (and every update) sets the
|
|
312
325
|
required keys, removes the forbidden ones, and leaves all other keys, including permissions.deny, untouched.
|
|
@@ -333,7 +346,7 @@ deletes or modifies anything; deciding what to do about a finding is a separate
|
|
|
333
346
|
}
|
|
334
347
|
|
|
335
348
|
function parseInstallArgs(argv) {
|
|
336
|
-
const args = { bundle: null, yes: false, targetDir: null, targetConfig: null, advanced: false, noSecrets: false, noScheduledTasks: false, noContainers: false, profile: 'public' };
|
|
349
|
+
const args = { bundle: null, yes: false, targetDir: null, targetConfig: null, advanced: false, noSecrets: false, noScheduledTasks: false, noContainers: false, noBootstrap: false, profile: 'public' };
|
|
337
350
|
for (let i = 0; i < argv.length; i += 1) {
|
|
338
351
|
const arg = argv[i];
|
|
339
352
|
if (arg === '--bundle') {
|
|
@@ -358,6 +371,10 @@ function parseInstallArgs(argv) {
|
|
|
358
371
|
args.noScheduledTasks = true;
|
|
359
372
|
} else if (arg === '--no-containers') {
|
|
360
373
|
args.noContainers = true;
|
|
374
|
+
} else if (arg === '--no-bootstrap') {
|
|
375
|
+
args.noBootstrap = true;
|
|
376
|
+
} else if (arg === '--allow-downgrade') {
|
|
377
|
+
// consumed by the gate in main() before install runs
|
|
361
378
|
} else {
|
|
362
379
|
throw new InstallError(`Unknown install flag: ${arg}`);
|
|
363
380
|
}
|
|
@@ -708,7 +725,7 @@ function fetchLatestVersion(pkgName, { timeoutMs = 1500 } = {}) {
|
|
|
708
725
|
});
|
|
709
726
|
}
|
|
710
727
|
|
|
711
|
-
async function runInteractiveMenu({ advanced, targetDir, targetConfig, noSecrets, noScheduledTasks, noContainers, profile, captureSelection = false }) {
|
|
728
|
+
async function runInteractiveMenu({ advanced, targetDir, targetConfig, noSecrets, noScheduledTasks, noContainers, noBootstrap, profile, captureSelection = false }) {
|
|
712
729
|
const { manifest, manifestPath } = loadManifest(PACKAGE_ROOT);
|
|
713
730
|
const repoRoot = path.dirname(manifestPath);
|
|
714
731
|
const candidateBundles = advanced ? advancedMenuBundles(manifest, profile) : basicMenuBundles(manifest, profile);
|
|
@@ -756,6 +773,8 @@ async function runInteractiveMenu({ advanced, targetDir, targetConfig, noSecrets
|
|
|
756
773
|
}
|
|
757
774
|
}
|
|
758
775
|
|
|
776
|
+
await runToolsStep({ installKeys: plan.toInstall.map((b) => b.key), profile, yes: false, noBootstrap });
|
|
777
|
+
|
|
759
778
|
const installedBundles = [];
|
|
760
779
|
const installedResults = [];
|
|
761
780
|
const skipped = [];
|
|
@@ -845,6 +864,7 @@ async function runInstall(argv, { captureSelection = false } = {}) {
|
|
|
845
864
|
noSecrets: args.noSecrets,
|
|
846
865
|
noScheduledTasks: args.noScheduledTasks,
|
|
847
866
|
noContainers: args.noContainers,
|
|
867
|
+
noBootstrap: args.noBootstrap,
|
|
848
868
|
profile: args.profile,
|
|
849
869
|
captureSelection,
|
|
850
870
|
});
|
|
@@ -859,9 +879,14 @@ async function runInstall(argv, { captureSelection = false } = {}) {
|
|
|
859
879
|
const { manifest, manifestPath } = loadManifest(PACKAGE_ROOT);
|
|
860
880
|
const repoRoot = path.dirname(manifestPath);
|
|
861
881
|
const bundle = findBundle(manifest, args.bundle);
|
|
882
|
+
if (path.basename(repoRoot) === 'content' && (args.profile === 'self' || !bundle)) {
|
|
883
|
+
console.error(args.profile === 'self' ? '--profile self needs a checkout of the repository: this npm package ships the public bundles only.' : `Unknown bundle "${args.bundle}". This npm package ships the public bundles only; run "install" with no flags to list them, or install a maintainer bundle from a checkout of the repository.`);
|
|
884
|
+
return 1;
|
|
885
|
+
}
|
|
862
886
|
const installKeys = bundle ? withCoreFirst(manifest, [args.bundle], { profile: args.profile, installedKeys: ledgerBundleKeys(args.targetDir) }) : [args.bundle];
|
|
863
887
|
const addedCore = installKeys.filter((k) => k !== args.bundle && !withBundleDeps(manifest, [args.bundle]).includes(k));
|
|
864
888
|
if (addedCore.length > 0) console.log(`Adding the core setup first (${addedCore.join(', ')}): settings.json hooks and status bar, CLAUDE.md, keybindings.`);
|
|
889
|
+
await runToolsStep({ installKeys, profile: args.profile, yes: args.yes, noBootstrap: args.noBootstrap });
|
|
865
890
|
const { results, result, activations, settingsSteps } = await installBundleChain({ manifest, repoRoot, installKeys, args });
|
|
866
891
|
runSelfProfileStepsIfNeeded({ profile: args.profile, targetDir: args.targetDir });
|
|
867
892
|
runMemSamplerStep({ targetDir: args.targetDir, noScheduledTasks: args.noScheduledTasks });
|
|
@@ -891,6 +916,16 @@ function prepareRepoSetups({ bundleKeys, targetDir }) {
|
|
|
891
916
|
}
|
|
892
917
|
}
|
|
893
918
|
|
|
919
|
+
/** The tool check before any file is copied: the core tools plus what the chosen bundles need; asks before each install (`yes`: without asking) and never fails the install. */
|
|
920
|
+
async function runToolsStep({ installKeys, profile, yes, noBootstrap }) {
|
|
921
|
+
if (noBootstrap || process.env.AGENTS_CLI_NO_BOOTSTRAP === '1') return;
|
|
922
|
+
try {
|
|
923
|
+
await require('../lib/bootstrap').ensureTools({ bundleKeys: installKeys, profile, yes });
|
|
924
|
+
} catch (err) {
|
|
925
|
+
console.error(`Tool check skipped: ${err.message}`);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
894
929
|
/** Install `installKeys` (prerequisites first) with every install step: files, settings, secrets, tasks, containers. */
|
|
895
930
|
async function installBundleChain({ manifest, repoRoot, installKeys, args }) {
|
|
896
931
|
const results = installKeys.map((key) => {
|
|
@@ -1427,6 +1462,7 @@ async function runUpdate(argv) {
|
|
|
1427
1462
|
|
|
1428
1463
|
result.installedDeps = installedDeps;
|
|
1429
1464
|
result.retiredRemoved = result.bundles.length > 0 ? removeRetiredLeftovers(args.targetDir) : [];
|
|
1465
|
+
result.retiredTasksRemoved = result.bundles.length > 0 ? removeRetiredTasksStep({ targetDir: args.targetDir, noScheduledTasks: args.noScheduledTasks }) : [];
|
|
1430
1466
|
result.gateRestartWarning = gitHooks.gateRestartWarning(result.bundles);
|
|
1431
1467
|
result.memSampler = runMemSamplerStep({ targetDir: args.targetDir, noScheduledTasks: args.noScheduledTasks, quiet: true });
|
|
1432
1468
|
result.globalHooksPath = result.bundles.length > 0 ? runGlobalHooksStep({ targetDir: args.targetDir, quiet: true }) : { action: 'skipped' };
|
|
@@ -1443,6 +1479,7 @@ async function runUpdate(argv) {
|
|
|
1443
1479
|
}
|
|
1444
1480
|
|
|
1445
1481
|
for (const r of result.retiredRemoved) console.log(`${mark('ok')} removed retired leftover ${r}`);
|
|
1482
|
+
for (const a of result.retiredTasksRemoved) console.log(`${mark(a.action === 'failed' ? 'fail' : 'ok')} ${a.action === 'removed' ? `removed retired task ${a.name}` : a.message}`);
|
|
1446
1483
|
for (const b of result.bundles) {
|
|
1447
1484
|
console.log(summarizeBundleUpdate(b));
|
|
1448
1485
|
if (b.unresolvedConflicts.length > 0) {
|
|
@@ -1652,6 +1689,19 @@ function removeRetiredLeftovers(targetBase) {
|
|
|
1652
1689
|
return removeRetired(base, claimed);
|
|
1653
1690
|
}
|
|
1654
1691
|
|
|
1692
|
+
/** update: removes the retired tasks the manifest records that this machine still has disabled (launchctl bootout and plist removal of that label only). */
|
|
1693
|
+
function removeRetiredTasksStep({ targetDir, noScheduledTasks }) {
|
|
1694
|
+
const base = targetDir || defaultTargetBase();
|
|
1695
|
+
if (noScheduledTasks || !isDefaultTarget(base)) return [];
|
|
1696
|
+
try {
|
|
1697
|
+
const { manifest } = loadManifest(PACKAGE_ROOT);
|
|
1698
|
+
const uid = typeof process.getuid === 'function' ? process.getuid() : undefined;
|
|
1699
|
+
return hostJobs.removeRetiredTasks({ manifest, state: jobsState.read(base), platform: process.platform, uid }).filter((a) => a.action !== 'blocked');
|
|
1700
|
+
} catch (err) {
|
|
1701
|
+
return [{ name: 'retired tasks', action: 'failed', message: `retired task cleanup skipped: ${err.message}` }];
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1655
1705
|
function describeOrphan(o) {
|
|
1656
1706
|
return o.type === 'dir' ? `${o.relTarget}/ (directory)` : o.relTarget;
|
|
1657
1707
|
}
|
|
@@ -1782,10 +1832,12 @@ Permission rules Claude Code ignores (${rules.findings.length} file(s), ${rules.
|
|
|
1782
1832
|
|
|
1783
1833
|
function splitProjectHookFlags(argv) {
|
|
1784
1834
|
const rest = [];
|
|
1785
|
-
const opts = { scanRoot: null, fix: false, targetDir: null };
|
|
1835
|
+
const opts = { scanRoot: null, fix: false, targetDir: null, bypass: null };
|
|
1786
1836
|
for (let i = 0; i < argv.length; i += 1) {
|
|
1787
1837
|
const arg = argv[i];
|
|
1788
1838
|
if (arg === '--fix-project-hooks') opts.fix = true;
|
|
1839
|
+
else if (arg === '--bypass-permissions') opts.bypass = true;
|
|
1840
|
+
else if (arg === '--no-bypass-permissions') opts.bypass = false;
|
|
1789
1841
|
else if (arg === '--scan-root' && argv[i + 1]) {
|
|
1790
1842
|
opts.scanRoot = argv[i + 1];
|
|
1791
1843
|
i += 1;
|
|
@@ -1797,11 +1849,11 @@ function splitProjectHookFlags(argv) {
|
|
|
1797
1849
|
return { rest, opts };
|
|
1798
1850
|
}
|
|
1799
1851
|
|
|
1800
|
-
/** Refuse an update that would roll the install record back, before any step (project hooks, profile, bypass) writes to the target. */
|
|
1801
|
-
function updateDowngradeGate(argv) {
|
|
1852
|
+
/** Refuse an install or update that would roll the install record back, before any step (project hooks, profile, bypass) writes to the target. */
|
|
1853
|
+
function updateDowngradeGate(argv, command = 'update') {
|
|
1802
1854
|
const { opts } = splitProjectHookFlags(argv);
|
|
1803
1855
|
try {
|
|
1804
|
-
return downgradeGate({ targetBase: opts.targetDir || defaultTargetBase(), running: pkg.version, allowDowngrade: argv.includes('--allow-downgrade') });
|
|
1856
|
+
return downgradeGate({ targetBase: opts.targetDir || defaultTargetBase(), running: pkg.version, allowDowngrade: argv.includes('--allow-downgrade'), packageRoot: PACKAGE_ROOT, command });
|
|
1805
1857
|
} catch (err) {
|
|
1806
1858
|
if (err instanceof LedgerError) return null;
|
|
1807
1859
|
throw err;
|
|
@@ -1814,7 +1866,25 @@ function withExitCode(code, floor) {
|
|
|
1814
1866
|
return { ...code, exitCode: Math.max(code.exitCode || 0, floor) };
|
|
1815
1867
|
}
|
|
1816
1868
|
|
|
1817
|
-
|
|
1869
|
+
/** Records the bypass-permissions answer of this install or update: the flag, else (install, interactive, never answered) one question. */
|
|
1870
|
+
async function settleBypassChoice({ targetBase, opts, argv, ask }) {
|
|
1871
|
+
if (opts.bypass !== null) {
|
|
1872
|
+
bypassOnly.recordBypassChoice({ targetBase, enabled: opts.bypass });
|
|
1873
|
+
return;
|
|
1874
|
+
}
|
|
1875
|
+
const interactive = ask && !argv.includes('--yes') && process.stdin.isTTY && process.stdout.isTTY;
|
|
1876
|
+
if (!interactive || bypassOnly.bypassWanted({ targetBase }) || bypassOnly.bypassChoice({ targetBase }) !== undefined) return;
|
|
1877
|
+
const answer = await askChoice({
|
|
1878
|
+
input: process.stdin,
|
|
1879
|
+
output: process.stdout,
|
|
1880
|
+
promptText: '\nRun Claude Code in bypass permissions mode (no permission prompts; deny rules and guard hooks still apply)? [y/N] ',
|
|
1881
|
+
choices: ['no', 'yes'],
|
|
1882
|
+
defaultChoice: 'no',
|
|
1883
|
+
});
|
|
1884
|
+
bypassOnly.recordBypassChoice({ targetBase, enabled: answer === 'yes' });
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
async function withProjectHookStep(argv, run, { healBypass = false, askBypass = false } = {}) {
|
|
1818
1888
|
const { rest, opts } = splitProjectHookFlags(argv);
|
|
1819
1889
|
let code = await run(rest);
|
|
1820
1890
|
try {
|
|
@@ -1827,6 +1897,7 @@ async function withProjectHookStep(argv, run, { healBypass = false } = {}) {
|
|
|
1827
1897
|
if (step.error) console.error(step.error);
|
|
1828
1898
|
printProjectHookReport(step, { fixRequested: opts.fix });
|
|
1829
1899
|
const targetBase = opts.targetDir || defaultTargetBase();
|
|
1900
|
+
if (code === 0 || (code && code.exitCode === 0)) await settleBypassChoice({ targetBase, opts, argv, ask: askBypass });
|
|
1830
1901
|
printClaudeProfileReport(claudeProfileStep(targetBase, healBypass || opts.fix), { fixRequested: opts.fix });
|
|
1831
1902
|
const shellStep = shellProfileStep(targetBase, healBypass || opts.fix);
|
|
1832
1903
|
printShellProfileReport(shellStep, { fixRequested: opts.fix });
|
|
@@ -1841,7 +1912,7 @@ async function withProjectHookStep(argv, run, { healBypass = false } = {}) {
|
|
|
1841
1912
|
cwd: process.cwd(),
|
|
1842
1913
|
scanRoot: opts.scanRoot ? path.resolve(opts.scanRoot) : null,
|
|
1843
1914
|
fix: opts.fix,
|
|
1844
|
-
expectedMode: bypassOnly.BYPASS,
|
|
1915
|
+
expectedMode: bypassOnly.bypassWanted({ targetBase }) ? bypassOnly.BYPASS : null,
|
|
1845
1916
|
})
|
|
1846
1917
|
);
|
|
1847
1918
|
printRuleMigrationReport(
|
|
@@ -1972,7 +2043,7 @@ function runDoctor(argv) {
|
|
|
1972
2043
|
targetBase: args.targetDir || defaultTargetBase(),
|
|
1973
2044
|
};
|
|
1974
2045
|
const bypass = bypassOnly.checkBypassOnly({ targetBase: scope.targetBase, fix: args.fix, deleteHooks: deleteHooks(scope.targetBase) });
|
|
1975
|
-
const modes = modeDrift.checkModeDrift({ ...scope, fix: args.fix, expectedMode: bypassOnly.BYPASS });
|
|
2046
|
+
const modes = modeDrift.checkModeDrift({ ...scope, fix: args.fix, expectedMode: bypassOnly.bypassWanted({ targetBase: scope.targetBase }) ? bypassOnly.BYPASS : null });
|
|
1976
2047
|
const rules = permissionRules.checkRuleMigration({ ...scope, fix: args.fix });
|
|
1977
2048
|
const hooks = projectHooks.projectHooksStep({ ...scope, fix: args.fix });
|
|
1978
2049
|
if (hooks.error) {
|
|
@@ -2470,7 +2541,6 @@ async function main(argv, { captureSelection = false } = {}) {
|
|
|
2470
2541
|
}
|
|
2471
2542
|
|
|
2472
2543
|
if (command === 'chief') {
|
|
2473
|
-
if (rest[0] === 'off' || rest[0] === 'on') return runJobs([rest[0] === 'off' ? 'retire' : 'activate', '--bundle', 'chief', ...rest.slice(1)]);
|
|
2474
2544
|
return chiefCmd.runChiefCommand(rest);
|
|
2475
2545
|
}
|
|
2476
2546
|
|
|
@@ -2489,7 +2559,9 @@ async function main(argv, { captureSelection = false } = {}) {
|
|
|
2489
2559
|
}
|
|
2490
2560
|
|
|
2491
2561
|
if (command === 'install') {
|
|
2492
|
-
|
|
2562
|
+
const downgraded = updateDowngradeGate(rest, 'install');
|
|
2563
|
+
if (downgraded !== null) return downgraded;
|
|
2564
|
+
return withProjectHookStep(rest, args => runInstall(args, { captureSelection }), { healBypass: true, askBypass: !captureSelection });
|
|
2493
2565
|
}
|
|
2494
2566
|
|
|
2495
2567
|
if (command === 'uninstall') {
|
|
@@ -152,7 +152,7 @@ def upload_file(path: str, project_path: str, token: str) -> str:
|
|
|
152
152
|
# ── §0 Auto-discovery ─────────────────────────────────────────────────────────
|
|
153
153
|
|
|
154
154
|
def discover_project() -> str:
|
|
155
|
-
"""Return URL-encoded project path, e.g.
|
|
155
|
+
"""Return URL-encoded project path, e.g. ns%2Fproject"""
|
|
156
156
|
try:
|
|
157
157
|
remote = subprocess.check_output(["git", "remote", "get-url", "origin"],
|
|
158
158
|
text=True).strip()
|
|
@@ -570,8 +570,8 @@ def main():
|
|
|
570
570
|
|
|
571
571
|
dispatch = parse_dispatch(dispatch_text)
|
|
572
572
|
|
|
573
|
-
project_path = discover_project() # e.g.
|
|
574
|
-
project_slug = urllib.parse.unquote(project_path) # e.g.
|
|
573
|
+
project_path = discover_project() # e.g. ns%2Fproject (URL-encoded)
|
|
574
|
+
project_slug = urllib.parse.unquote(project_path) # e.g. ns/project
|
|
575
575
|
|
|
576
576
|
# items.json
|
|
577
577
|
items_path = ".github/items/items.json" if os.path.exists(".github/items/items.json") else ""
|
|
@@ -285,7 +285,9 @@ gh_cmd() {
|
|
|
285
285
|
if command -v agents-cli >/dev/null 2>&1; then printf 'agents-cli %s' "$*"
|
|
286
286
|
elif [ -x "$GH_HOME/bin/agents-cli" ]; then printf "'%s/bin/agents-cli' %s" "$GH_HOME" "$*"
|
|
287
287
|
elif [ -f "$GH_HOME/bin/agents-cli.cmd" ]; then printf "& '%s/bin/agents-cli.cmd' %s" "$GH_HOME" "$*"
|
|
288
|
-
else
|
|
288
|
+
else
|
|
289
|
+
gh_pkg=$(sed -n 's#.*"packageName"[[:space:]]*:[[:space:]]*"\(@\{0,1\}[A-Za-z0-9._/-]*\)".*#\1#p' "$GH_HOME/agents-ledger.json" 2>/dev/null | head -n 1)
|
|
290
|
+
if [ -n "$gh_pkg" ]; then printf "npx -y '%s@latest' %s" "$gh_pkg" "$*"; else printf 'agents-cli %s' "$*"; fi
|
|
289
291
|
fi
|
|
290
292
|
}
|
|
291
293
|
|