swarph-cli 0.85.0__tar.gz → 0.87.0__tar.gz
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.
- {swarph_cli-0.85.0/src/swarph_cli.egg-info → swarph_cli-0.87.0}/PKG-INFO +30 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/README.md +26 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/pyproject.toml +8 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/__init__.py +1 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/board.py +57 -14
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/commander.py +109 -10
- swarph_cli-0.87.0/src/swarph_cli/commands/dev_bibliography.py +256 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/dev_extract.py +42 -11
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/gateway.py +118 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/join.py +24 -3
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/mcp_server.py +59 -4
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/monitor.py +88 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/onboard.py +20 -18
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/secret_guard.py +165 -38
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/triage.py +7 -2
- swarph_cli-0.87.0/src/swarph_cli/commands/usage.py +119 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/duplicate_session.py +13 -6
- swarph_cli-0.87.0/src/swarph_cli/escalation.py +77 -0
- swarph_cli-0.87.0/src/swarph_cli/gateway/commander_queue.py +53 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/schema.sql +40 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/server.py +513 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/guide/GUIDE.md +12 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/main.py +3 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/config.py +10 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/redact.py +147 -15
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/rowclear.py +12 -8
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/wake_watchdog.py +702 -107
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/stall_alert.py +30 -25
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/job.py +19 -9
- swarph_cli-0.87.0/src/swarph_cli/triage/owners.json +16 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/router.py +14 -5
- swarph_cli-0.87.0/src/swarph_cli/usage/__init__.py +511 -0
- swarph_cli-0.87.0/src/swarph_cli/usage/codex.py +256 -0
- swarph_cli-0.87.0/src/swarph_cli/usage/pools.json +43 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0/src/swarph_cli.egg-info}/PKG-INFO +30 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli.egg-info/SOURCES.txt +24 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli.egg-info/requires.txt +1 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1065_release.py +33 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1073_triage.py +2 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1073_triage_board.py +2 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1256_commander_wake.py +5 -2
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1262_wake_followups.py +1 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1396_dev_extract.py +302 -0
- swarph_cli-0.87.0/tests/test_1445_usage_pools.py +850 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1476_gh_token_explicit_position.py +21 -15
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1478_triage_dm.py +3 -0
- swarph_cli-0.87.0/tests/test_1481_mcp_ask_commander.py +783 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1582_join.py +90 -4
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1588_routing_work_budget.py +2 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1611_mcp_proxy.py +1 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1642_r1_r2_chunk_pins.py +285 -11
- swarph_cli-0.87.0/tests/test_1645_cockpit_credential_verb.py +115 -0
- swarph_cli-0.87.0/tests/test_1645_commander_digest.py +44 -0
- swarph_cli-0.87.0/tests/test_1645_commander_queue.py +744 -0
- swarph_cli-0.87.0/tests/test_1678_secret_guard_r1_r4.py +722 -0
- swarph_cli-0.87.0/tests/test_1684_ci_matrix_matches_classifiers.py +167 -0
- swarph_cli-0.87.0/tests/test_1685_no_lab_defaults.py +432 -0
- swarph_cli-0.87.0/tests/test_1686_install_unit_darwin.py +192 -0
- swarph_cli-0.87.0/tests/test_1702_join_alias_and_handshake.py +184 -0
- swarph_cli-0.87.0/tests/test_1703_install_muse_mcp.py +151 -0
- swarph_cli-0.87.0/tests/test_1709_standalone_join.py +40 -0
- swarph_cli-0.87.0/tests/test_1711_linear_uri.py +583 -0
- swarph_cli-0.87.0/tests/test_1713_standalone_pins.py +123 -0
- swarph_cli-0.87.0/tests/test_1714_linear_jwt.py +568 -0
- swarph_cli-0.87.0/tests/test_1732_pass3_watchdog.py +217 -0
- swarph_cli-0.87.0/tests/test_1732_watchdog_idempotent.py +1353 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_432_rowclear.py +3 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_513_duplicate_session.py +3 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_648_install_unit.py +8 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_729_wake_watchdog.py +4 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_caller_meta_guard.py +1 -1
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_gateway_command.py +23 -3
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_schedule_create_contract.py +14 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_stall_alert.py +11 -7
- swarph_cli-0.85.0/src/swarph_cli/triage/owners.json +0 -28
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/LICENSE +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/setup.cfg +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/__main__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/backends.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/claude_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/codex_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/pack.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/prices.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/providers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/quality.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/refresh_prices.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/rules.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/runner.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/signal_score.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/bench/validate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/caller.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/harden.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/lineage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/liveness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/manifest.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/paths.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/capture/verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/cell.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/cell_wake.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/chain_token.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/channel.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/_content.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/_display.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/_gateway_client.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/add.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/bench.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/board_cost.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/board_merge_check.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/board_usage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/brain.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/brain_ask.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/cell.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/cell_probe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/cell_selfcheck.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/channel.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/chat.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/codegraph.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/codegraph_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/codex_hook_output.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/codex_waker.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/committee.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/compress.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/daemon.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/dreaming.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/event.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/gh_route.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/group.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/guide.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/highlight.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/hook_interpreter.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/hook_output.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/hooks.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/import_session.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/init.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_codex_hooks.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_multiplexer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_opencode_plugin.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_postcompact_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/install_wake_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/lane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/memory.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/memory_emit_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/memory_sync.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/mesh.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/okf_links.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/peer_reply_drain.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/postcompact_hook_output.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/protocol_handler.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/proxy.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/ratify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/roster.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/rowclear_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/schedule.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/security.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/service.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/skunkworks.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/spawn.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/subscribe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/sweep.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/timeline.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/version.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/wake_hook_output.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commands/watchdog.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/commit_trailers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/compress/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/compress/levers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/compress/marker.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/compress/verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/console_safe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/delivery_queue.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dm_frame.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/candidates.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/clone.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/consolidate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/enrich.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/index_check.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/measure.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/notify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/organize.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/probes.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/report.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/run.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/slm.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/store.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/transcripts.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/dreaming/verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/feature_registry.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/lanes_control.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway/services_control.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gateway_default.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/gh_identity.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/identity.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-codex-outbox.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-codex-outbox.timer.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-monitor.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-proxy-monitor.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-proxy.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-watchdog.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd/swarph-watchdog.timer.plist +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/launchd_render.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/local_proxy.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/multiplexer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/__main__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/api.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/operator/fmt.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/orphan_daemons.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/pane_probe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/parsers/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/parsers/claude.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/opencode/plugin.js +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/_shim.cmd +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/postcompact-recall-grok.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/postcompact-recall.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/posttooluse-emit-antigravity.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/posttooluse-emit-claude.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/posttooluse-emit-grok.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/posttooluse-emit.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/posttooluse-recall.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/precompact-flag.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/preinvocation-recall-antigravity.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/payloads/postcompact/sessionstart-recall.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_executor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_executor_windows.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_reconciliation.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_reply_outbox.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_service_host.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_service_payload.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_service_reply.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/peer_staging.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/proxy_monitor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/proxy_routes.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/query_filters.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/quota_sync.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/dm_notify_filter.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/ensure_monitor.sh +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/install_codex_waker_windows.ps1 +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scripts/install_monitor_task_windows.ps1 +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/scrub.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/service/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/service/app.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/service/providers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/session_bridge.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/shim_ledger.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/skills/i-have-adhd/LICENSE +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/skills/i-have-adhd/SKILL.md +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/source_text.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/codex-waker.default +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/peer-reply-drain.default +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-cell-wake@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-codex-outbox@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-codex-outbox@.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-codex-waker@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-codex-waker@.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-monitor-reexec.path +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-monitor-reexec.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-monitor@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-monitor@.service.d/zzzz-proxy20.conf +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-peer-reply-drain@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-peer-reply-drain@.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-proxy@.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-proxy@.socket +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-stuck-sweep.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-stuck-sweep.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-triage.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-triage.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-watchdog.default +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-watchdog.service +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/systemd/swarph-watchdog.timer +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/the_ten.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/timeline_paths.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/tokens.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/__init__.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/backend.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/rows.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli/triage/sensor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli.egg-info/dependency_links.txt +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli.egg-info/entry_points.txt +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/src/swarph_cli.egg-info/top_level.txt +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1006_board_publisher.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1006_session_board.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1010_strand_only.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1013_spawn_channel.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1017_muse_tui.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1034_copy_mode.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1050_surrogate_wake.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1052_opencode_deaf.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1059_watchdog_unread_env.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1061_roster_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1064_stuck_sweep.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1066_quiet_wakes.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1068_structured_accept_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1071_quota_sync.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1073_wheel_install.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1075_task_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1083_openai_decisions.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1144_cell_yaml_github.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1197_commander_taps.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1203_swarph_me_refusal.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1206_offer_question.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1214_egress.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1219_egress_probe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1221_quota_windows.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1222_maybe_start_cap.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1228_quota_reach.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1243_the_ten.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1248_ship_price_table.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_124_register_merge.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1250_price_cache.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1261_mcp_install.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1265_wake_note.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1269_triage_label.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_126_pending_from_complete.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1277_close_usage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1278_dreaming_reach.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1286_dm_unread_cursor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1297_commander.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1300_authorization_check.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1301_restart_skew.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1320_commit_trailers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1321_layered_redaction.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_132_ensure_monitor_state_dir.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1340_router_rollout.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1346_shell_string_gh.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1347_shell_depth_cap.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1353_obligation_release_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1385_duplicate_session_argv.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_138_memory_navigate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_139_tool_probe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1405_skunkworks_basic.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1405_skunkworks_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1413_gemini_allowlist.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1427_membrane_workflow.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1436_dev_extract_freshness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1452_rework1_engine.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1452_rework2_engine.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1452_rework3_engine.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1452_standing_wake_expiry.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1470_gh_router_fail_closed.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1472_redact_boundaries.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1505_bench_no_redirect.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1513_json_allowlists.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1517_expected_state_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1517_stage_version_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1519_board_usage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1521_shim_ledger.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1522_board_schedules.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1523_subscribe_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1539_proxy_read_only.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1546_sensitive_content_workflow.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1547_sensitive_content_fail_closed.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1555_gh_identity_shell_tokenizer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1556_watchdog_ledger_outcome.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1557_gateway_socket.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1570_dreaming_consolidation.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1577_mesh_mint.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1577_mesh_mint_windows.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1588_multiline_heredoc.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1588_shell_contexts.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1609_price_isolation.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1612_cell_wake_hardening.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1613_cell_wake_pins.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1614_proxy_inbox.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1615_proxy_reply_size.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1618_proxy_bound_pin.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_1642_secret_guard_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_183_card_anchor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_184_notify_honesty.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_201_win32_bash_refusal.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_cell_wake.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_cell_wake_unit.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_local_proxy.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_block_clear.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_block_deferred_ledger.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_monitor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_monitor_shrink.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_routes.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_20_proxy_templates.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_243_onboard_per_peer_token.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_307_task4_ask_reply.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_312_codegraph_fuzzy_verb.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_3130_sender.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_3150_identity_router_install.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_319_refusal_exit_codes.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_323_mistral_backend.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_332_report_organize_findings.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_356_query_filters.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_397_gh_identity_router.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_397_router_preflight.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_402_one_identity_resolver.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_467b_onboard_operator_credential.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_472_register_caller_binding.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_484_codex_queue_sink.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_5190_dreaming_consent.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_523_guide.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_524_conftest_hermeticity.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_532_accept_flag.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_535_version_capability.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_538_signal_bench.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_546_default_gateway.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_547_verbs_from_registry.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_548_gateway_remainder.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_552_codegraph_gateway.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_555_relay_row_shape.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_556_relay_freshness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_559_edges_truncated.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_564_bootstrap_first_peer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_578_no_machine_specific_host_defaults.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_579_register_bootstrap_message.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_591_cli_step_graph.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_644_monitor_supervision.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_654_reexec.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_656_owned_slm.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_684_dreaming_verb.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_689_pkg_version_order.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_715_grok_wake.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_716_timeline_one_path.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_723_grok_0251.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_724_ps1_ascii_or_bom.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_725_stdio_reconfigure.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_726_grok_limit_screen.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_729_arm_check_delivery_gap.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_729_dm_once.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_734_dreaming_enrich_degrade.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_735_dm_mcp_tools.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_739_wake_writer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_740_edit_project.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_762_cards_edit_priority.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_764_enrich_collapse.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_801_confirm_flow_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_802_stage_history.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_825_codegraph_hook_noise.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_825_install_posttooluse_only.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_825_remaining_cap_shred_bind.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_829_counterfactual_column.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_830_hook_binding_version.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_84_cli_labels.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_866_doctrine_guide.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_872_identity_refuses_not_warns.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_874_source_text.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_888_opencode_data_dir_can_fail.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_931_board_search.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_935_deadline_clock.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_937_dreaming_notify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_938_organize_line_limit.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_941_bench_backends.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_941_harness_342.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_945_same_line_pairing.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_955_prompt_audit.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_957_auth_http.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_959_venv_interpreter.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_960_channel.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_960_ensure_monitor_heartbeat.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_961_cursor_grok_footer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_961_loud_stop.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_963_plugin_manifest.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_964_channel_cell.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_965_mesh_wait.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_975_channel_hop.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_add_security_gate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_add.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_hash.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_lib.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_mcp.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_skill.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_tool.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_artifact_uri.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_backends.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_claude_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_codex_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_pack.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_prices.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_quality.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_runner.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_bench_validate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_board_card_thread.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_board_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_board_merge_check.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_board_obligation_close.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_brain_ask_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_brain_ask_env_diagnosis.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_brain_ask_identity_explicitness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_brain_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_capture_lineage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_capture_liveness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_capture_manifest.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_capture_paths.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_capture_security.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_card_1540_tmp_cleanup.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_command_dispatch.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_harden.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_loader.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_selfcheck.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_selfcheck_env_guard.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cell_verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_chain_token.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_channel_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_channel_poll_never_breaks_dms.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_channel_post.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_channel_wake_policy_filter.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_chat_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_claude_parser.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_claude_tmux_template.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_codegraph_caller_scope.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_codegraph_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_codegraph_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_codegraph_mcp.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_codex_waker.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_committee_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_compress_caller_convention.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_compress_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_compress_levers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_compress_marker.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_compress_verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_console_encoding_e2e.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_content_composition.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_copilot_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_copilot_pane_reader.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cursor_mcp_plugin.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_cursor_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_daemon_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_daemon_console_encoding.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_daemon_delivery.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_delivery_queue.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_display_sanitize.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_ensure_monitor_no_peer_default.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_event_emit.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_feature_to_uri.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_gateway_brain.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_gateway_client.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_gateway_message_idempotency.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_gh_route_doctor_mesh_name.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_group_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_guide_commands_parse.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_guide_selfcheck.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_heartbeat_check.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_highlight_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hook_output.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_activity_marker.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_add.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_bundle.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_init.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_legacy_generation_removal.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_lifecycle.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_merge.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_win32_bash_wrapper.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_hooks_win32_command_path.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_import_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_inbox_identity_provenance.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_init_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_init_provider_menu.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_install_codex_hooks.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_install_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_install_multiplexer_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_install_postcompact_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_install_wake_hook.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_lane_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_launchd_units.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_main.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_main_unknown_verb_guard.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mcp_dm_identity.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mcp_missing_hint.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mcp_server.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_memory_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_memory_emit_snippet.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_memory_gateway.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_memory_sync.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_memory_sync_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_inbox_mark_read.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_inbox_sanitize.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_originate_thread_623.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_send_unknown_peer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_sidecar.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_sidecar_cursor_decoupled.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_sidecar_muse_sink.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_mesh_sidecar_wake_survives_read.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_meta_edge_identity.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_monitor_channel_poll.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_monitor_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_monitor_daemon_collision.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_monitor_self_name_verification.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_monitor_state_split.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_multiplexer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_muse_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_muse_own_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_obligation_close_is_surfaced.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_okf_links.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_onboard_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_opencode_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_opencode_plugin.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_operator_me.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_orphan_daemons.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_packaged_artifacts_exist.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_packaged_skills.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_executor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_executor_windows.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_reply_drain_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_reply_drain_supervisor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_reply_outbox.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_reply_transport.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_service_e2e.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_service_host.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_service_payload.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_peer_service_reply.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_postcompact_recall.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_process_liveness.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_protocol_handler.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_providers_isolation.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_ratify_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_readme_claims_no_gateway_default.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_repl_caller_convention.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_schedule_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_scrub.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_security.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_service_app.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_service_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_service_providers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_session_bridge_inject.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_session_bridge_probe.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_session_bridge_resolve.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_session_path_role_gate.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_shipped_units_match_the_cli.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_smoke_chat.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_smoke_one_shot.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_smoke_phase_5_5.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_base_hoist.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_identity_stamp.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_live_pin.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_mitosis_lineage.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_os_user.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_tmux_session.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_spawn_windows_relaunch.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_subprocess_decode_encoding.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_timeline_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_tmux_wake_runstate_defer.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_tmux_wake_session_reanchor.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_tmux_wake_stale.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_tmux_wake_submit_verify.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_token_file_one_parser.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_token_precedence_explicit_first.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_unified_token_resolver.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_version_command.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_version_consistency.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_vibe_membrane.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_dm_wake.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_dm_wake_cooldown.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_dm_wake_wiring.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_emit_health.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_install_flags.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_model_rung.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_watchdog_stale_peers.py +0 -0
- {swarph_cli-0.85.0 → swarph_cli-0.87.0}/tests/test_windows_waker_installer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarph-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.87.0
|
|
4
4
|
Summary: The `swarph` binary — a multi-LLM CLI and mesh-gateway client + bundled server (`swarph gateway`): one-shot prompts across providers, interactive `chat`, multi-provider `spawn` (claude/codex/antigravity via a ProviderMembrane with subprocess billing-scrub), `mesh` send/inbox/register, `brain-ask` over the swarph-brain (gbrain) semantic memory, git-backed `assisted_memory`, per-invocation `gh` identity routing, a silent DM-wake hook, session `import`, and a stranded-session `watchdog`.
|
|
5
5
|
Author: Pierre Samson, Claude Opus
|
|
6
6
|
License: MIT
|
|
@@ -12,12 +12,14 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
15
16
|
Classifier: Operating System :: POSIX :: Linux
|
|
16
17
|
Classifier: Programming Language :: Python :: 3
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
23
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
24
|
Classifier: Topic :: Utilities
|
|
23
25
|
Requires-Python: >=3.10
|
|
@@ -43,6 +45,7 @@ Requires-Dist: uvicorn[standard]>=0.32; extra == "gateway"
|
|
|
43
45
|
Requires-Dist: pydantic>=2.9; extra == "gateway"
|
|
44
46
|
Requires-Dist: croniter>=6.2; extra == "gateway"
|
|
45
47
|
Requires-Dist: PyJWT[crypto]>=2.8; extra == "gateway"
|
|
48
|
+
Requires-Dist: rfc8785==0.1.4; extra == "gateway"
|
|
46
49
|
Provides-Extra: service
|
|
47
50
|
Requires-Dist: fastapi>=0.115; extra == "service"
|
|
48
51
|
Requires-Dist: uvicorn[standard]>=0.32; extra == "service"
|
|
@@ -89,6 +92,7 @@ pre-commit install
|
|
|
89
92
|
It scans staged text for blocked organization/customer identifiers and uses
|
|
90
93
|
Gitleaks to detect hardcoded secrets. GitHub Actions repeats both checks for every
|
|
91
94
|
pull request and merge, so a skipped local hook cannot publish sensitive content.
|
|
95
|
+
macOS and Windows Actions legs, including the launchd smoke, run daily on main and on pull requests labeled `full-ci`, not on every push.
|
|
92
96
|
Run `pre-commit run --all-files` to check the complete working tree.
|
|
93
97
|
|
|
94
98
|
> **System requirement — a terminal multiplexer.** The session verbs (`spawn`, `cell`, `watchdog`) drive a `tmux`-compatible multiplexer. On **Linux/macOS** install `tmux` (`apt install tmux` / `brew install tmux`). On **Windows** there is no native tmux — install [**psmux**](https://github.com/psmux/psmux) (a Rust tmux-for-Windows, MIT) with `swarph install-multiplexer` (fetches the pinned, checksum-verified binary into `~/.swarph/bin`) or `winget install marlocarlo.psmux`.
|
|
@@ -380,7 +384,7 @@ $ swarph codegraph "cron expression validator" --json --limit 5
|
|
|
380
384
|
|
|
381
385
|
It queries a locally-built index at `~/.swarph/codegraph/index.db` (override with `--index` or `SWARPH_CODEGRAPH_INDEX`); the index is built out-of-band from your repos (tree-sitter → SQLite FTS5, BM25-ranked). If no index is present the verb simply returns no matches — it never touches the network and never reads code it wasn't pointed at. Results are scoped by an owner-allowlist gate (`--caller-cell` / `SWARPH_CELL`, default: your cell): public repos are always visible; private repos are visible to the owning cell.
|
|
382
386
|
|
|
383
|
-
The same capability is exposed as an **MCP tool** — running `swarph mcp-server` publishes `swarph_codegraph_query` alongside `swarph_search`/`swarph_add`/`swarph_describe` (and the mesh DM tools `swarph_dm_unread`, which returns every unread DM with full bodies in one call without marking them read; `swarph_dm_reply`, which replies by message id and marks that message read; and `swarph_dm_thread`, which returns a DM's whole conversation), so any MCP host's agent auto-discovers it and can reach for code-structure lookups while reading, writing, or debugging code. (Why a tool and not an always-on retrieval lane? Because *intent* to consult code structure lives with the calling agent — which already knows it's working on code — not in a similarity score.)
|
|
387
|
+
The same capability is exposed as an **MCP tool** — running `swarph mcp-server` publishes `swarph_codegraph_query` alongside `swarph_search`/`swarph_add`/`swarph_describe` (and the mesh DM tools `swarph_dm_unread`, which returns every unread DM with full bodies in one call without marking them read; `swarph_dm_reply`, which replies by message id and marks that message read; and `swarph_dm_thread`, which returns a DM's whole conversation), and `swarph_ask_commander`, which proposes a decision with options to the commander as this cell and can neither decide, withdraw nor read requests, so any MCP host's agent auto-discovers it and can reach for code-structure lookups while reading, writing, or debugging code. (Why a tool and not an always-on retrieval lane? Because *intent* to consult code structure lives with the calling agent — which already knows it's working on code — not in a similarity score.)
|
|
384
388
|
|
|
385
389
|
### MCP tools through a cell proxy
|
|
386
390
|
|
|
@@ -451,6 +455,30 @@ $ swarph gateway serve --host 100.x.y.z --port 8788 # expose on a tailnet IP
|
|
|
451
455
|
|
|
452
456
|
`--token` sets the bearer (`MESH_GATEWAY_TOKEN`) for the served process; omit it and an existing env token is used, or a fresh one is minted and printed once so you can hand it to the mesh cells. `--db PATH` points the gateway at a specific SQLite file (`MESH_DB_PATH`). Run without the extra and the verb prints a `pip install "swarph-cli[gateway]"` hint and exits.
|
|
453
457
|
|
|
458
|
+
#### Commander queue and cockpit (card #1645)
|
|
459
|
+
|
|
460
|
+
The gateway hosts the **commander request queue** (`/commander/requests`, card #1297) and the **cockpit** (card #1630): cells propose a `decision` (a question with up to 6 options) from their per-peer token, the commander answers it, and a scoped `swck_` **cockpit credential** lets a small client (for example a desktop or mobile cockpit) read the queue and answer the questions that do not need the SSO session. The wire contract is card #1630 Appendix A with A.1-A.4 (list, detail and decide are byte-identical to the deployed mesh-gateway). The **request row is the record** of a decision; the DM the proposer receives (`from_node=commander`, kind `answer`) is a doorbell, not the record. Peer names and every `from_node` must be kebab-case (`^[a-z][a-z0-9-]{0,62}[a-z0-9]$`, 422 otherwise; new in this release for `swarph gateway serve`), and the name `commander` can neither register nor post a message: only the gateway writes it.
|
|
461
|
+
|
|
462
|
+
**The queue is off until you name a commander.** With `META_EDGE_COMMANDER_SUB` unset, all eight `/commander/*` routes answer `503 {"error":"commander_not_configured"}`. The commander is the holder of a verified RS256 identity JWT whose `sub` equals that value: a peer token, the shared token and a `cell-join` JWT are never the commander. **Decisions only:** `merge_pr` and `release_finish` are refused with `400 {"error":"action_not_supported","type":...}`; this gateway has no merger and no release executor. A `card_id` is refused with 404 (no board here).
|
|
463
|
+
|
|
464
|
+
**Run your own gateway as commander with your own RS256 key** (the only supported way for a third party; the swarph meta-edge issuer is not offered as a root for someone else's commander):
|
|
465
|
+
|
|
466
|
+
```bash
|
|
467
|
+
$ openssl genrsa -out commander.pem 2048 && openssl rsa -in commander.pem -pubout -out commander.pub # private key stays OFF the gateway box
|
|
468
|
+
$ export META_EDGE_PUBLIC_KEY_FILE=$PWD/commander.pub META_EDGE_ISSUER=my-gateway META_EDGE_AUDIENCE=swarph-gateway
|
|
469
|
+
$ export META_EDGE_COMMANDER_SUB=julien # the sub you will sign
|
|
470
|
+
$ swarph gateway serve --host 100.x.y.z
|
|
471
|
+
# on your own machine, sign a short-lived identity JWT (any RS256 signer; PyJWT shown)
|
|
472
|
+
$ python -c 'import jwt,time; print(jwt.encode({"iss":"my-gateway","aud":"swarph-gateway","sub":"julien","iat":int(time.time()),"exp":int(time.time())+900}, open("commander.pem").read(), algorithm="RS256"))'
|
|
473
|
+
$ curl -s -X POST http://100.x.y.z:8788/commander/cockpit-credential -H "Authorization: Bearer $JWT" -H 'Content-Type: application/json' -d '{}' # 201 {credential, credential_id, expires_at}, shown once
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
Cap `exp` (minutes, not days: the gateway requires `exp`, `iss`, `aud` and `sub` and pins RS256). **Revocation is replacing the key file**: a new `commander.pub` invalidates every JWT signed with the old private key at the next request (the key is read per request; no restart). A cell gets the per-peer token that `POST /commander/requests` needs from `POST /peers/register` on a fresh gateway (zero ratified peers) or by `swarph onboard`. The optional static `MESH_GATEWAY_COMMANDER_TOKEN` can read all rows, post a result and revoke the cockpit credential; it can never decide or mint, and when it equals `MESH_GATEWAY_TOKEN` it counts as unset.
|
|
477
|
+
|
|
478
|
+
**Mint without an issuer:** `swarph gateway cockpit-credential mint|revoke [--db PATH]` writes the same row as the HTTP mint (SHA-256 only, one active credential, 30-day expiry) by a local database write on the gateway box. Like `bootstrap-ratify` it refuses without a tty and a typed `yes`, and it refuses a database whose schema version is above 12 (another gateway's database). The credential is printed once to stdout and logged nowhere.
|
|
479
|
+
|
|
480
|
+
Cockpit limits worth knowing: a `swck_` bearer on any route other than `GET /commander/requests`, `GET /commander/requests/{id}` and `POST /commander/requests/{id}/decide` gets `403 {"error":"cockpit_not_allowed"}` before any lookup; `decide` requires the row's `digest` (SHA-256 over the RFC 8785 bytes of `{"id","type","params"}`, pinned to `rfc8785==0.1.4`) and refuses a stale one with `409 {"error":"digest_mismatch"}`. Two limits on byte-identity with the deployed gateway: a body with no `decision` field gets FastAPI's 422, whose body follows the installed pydantic; and on Python 3.10 the mint's `expires_at` fraction must have 0, 3 or 6 digits (`datetime.fromisoformat` before 3.11), otherwise `400 bad_expires_at`.
|
|
481
|
+
|
|
454
482
|
### `swarph service`
|
|
455
483
|
|
|
456
484
|
Turn a *subscription* LLM CLI into a **$0 HTTP lane** the mesh can call — `swarph service serve --provider <claude|codex|gemini>` runs a small FastAPI app exposing `POST /delegate` (bearer-authed) + `GET /health`:
|
|
@@ -38,6 +38,7 @@ pre-commit install
|
|
|
38
38
|
It scans staged text for blocked organization/customer identifiers and uses
|
|
39
39
|
Gitleaks to detect hardcoded secrets. GitHub Actions repeats both checks for every
|
|
40
40
|
pull request and merge, so a skipped local hook cannot publish sensitive content.
|
|
41
|
+
macOS and Windows Actions legs, including the launchd smoke, run daily on main and on pull requests labeled `full-ci`, not on every push.
|
|
41
42
|
Run `pre-commit run --all-files` to check the complete working tree.
|
|
42
43
|
|
|
43
44
|
> **System requirement — a terminal multiplexer.** The session verbs (`spawn`, `cell`, `watchdog`) drive a `tmux`-compatible multiplexer. On **Linux/macOS** install `tmux` (`apt install tmux` / `brew install tmux`). On **Windows** there is no native tmux — install [**psmux**](https://github.com/psmux/psmux) (a Rust tmux-for-Windows, MIT) with `swarph install-multiplexer` (fetches the pinned, checksum-verified binary into `~/.swarph/bin`) or `winget install marlocarlo.psmux`.
|
|
@@ -329,7 +330,7 @@ $ swarph codegraph "cron expression validator" --json --limit 5
|
|
|
329
330
|
|
|
330
331
|
It queries a locally-built index at `~/.swarph/codegraph/index.db` (override with `--index` or `SWARPH_CODEGRAPH_INDEX`); the index is built out-of-band from your repos (tree-sitter → SQLite FTS5, BM25-ranked). If no index is present the verb simply returns no matches — it never touches the network and never reads code it wasn't pointed at. Results are scoped by an owner-allowlist gate (`--caller-cell` / `SWARPH_CELL`, default: your cell): public repos are always visible; private repos are visible to the owning cell.
|
|
331
332
|
|
|
332
|
-
The same capability is exposed as an **MCP tool** — running `swarph mcp-server` publishes `swarph_codegraph_query` alongside `swarph_search`/`swarph_add`/`swarph_describe` (and the mesh DM tools `swarph_dm_unread`, which returns every unread DM with full bodies in one call without marking them read; `swarph_dm_reply`, which replies by message id and marks that message read; and `swarph_dm_thread`, which returns a DM's whole conversation), so any MCP host's agent auto-discovers it and can reach for code-structure lookups while reading, writing, or debugging code. (Why a tool and not an always-on retrieval lane? Because *intent* to consult code structure lives with the calling agent — which already knows it's working on code — not in a similarity score.)
|
|
333
|
+
The same capability is exposed as an **MCP tool** — running `swarph mcp-server` publishes `swarph_codegraph_query` alongside `swarph_search`/`swarph_add`/`swarph_describe` (and the mesh DM tools `swarph_dm_unread`, which returns every unread DM with full bodies in one call without marking them read; `swarph_dm_reply`, which replies by message id and marks that message read; and `swarph_dm_thread`, which returns a DM's whole conversation), and `swarph_ask_commander`, which proposes a decision with options to the commander as this cell and can neither decide, withdraw nor read requests, so any MCP host's agent auto-discovers it and can reach for code-structure lookups while reading, writing, or debugging code. (Why a tool and not an always-on retrieval lane? Because *intent* to consult code structure lives with the calling agent — which already knows it's working on code — not in a similarity score.)
|
|
333
334
|
|
|
334
335
|
### MCP tools through a cell proxy
|
|
335
336
|
|
|
@@ -400,6 +401,30 @@ $ swarph gateway serve --host 100.x.y.z --port 8788 # expose on a tailnet IP
|
|
|
400
401
|
|
|
401
402
|
`--token` sets the bearer (`MESH_GATEWAY_TOKEN`) for the served process; omit it and an existing env token is used, or a fresh one is minted and printed once so you can hand it to the mesh cells. `--db PATH` points the gateway at a specific SQLite file (`MESH_DB_PATH`). Run without the extra and the verb prints a `pip install "swarph-cli[gateway]"` hint and exits.
|
|
402
403
|
|
|
404
|
+
#### Commander queue and cockpit (card #1645)
|
|
405
|
+
|
|
406
|
+
The gateway hosts the **commander request queue** (`/commander/requests`, card #1297) and the **cockpit** (card #1630): cells propose a `decision` (a question with up to 6 options) from their per-peer token, the commander answers it, and a scoped `swck_` **cockpit credential** lets a small client (for example a desktop or mobile cockpit) read the queue and answer the questions that do not need the SSO session. The wire contract is card #1630 Appendix A with A.1-A.4 (list, detail and decide are byte-identical to the deployed mesh-gateway). The **request row is the record** of a decision; the DM the proposer receives (`from_node=commander`, kind `answer`) is a doorbell, not the record. Peer names and every `from_node` must be kebab-case (`^[a-z][a-z0-9-]{0,62}[a-z0-9]$`, 422 otherwise; new in this release for `swarph gateway serve`), and the name `commander` can neither register nor post a message: only the gateway writes it.
|
|
407
|
+
|
|
408
|
+
**The queue is off until you name a commander.** With `META_EDGE_COMMANDER_SUB` unset, all eight `/commander/*` routes answer `503 {"error":"commander_not_configured"}`. The commander is the holder of a verified RS256 identity JWT whose `sub` equals that value: a peer token, the shared token and a `cell-join` JWT are never the commander. **Decisions only:** `merge_pr` and `release_finish` are refused with `400 {"error":"action_not_supported","type":...}`; this gateway has no merger and no release executor. A `card_id` is refused with 404 (no board here).
|
|
409
|
+
|
|
410
|
+
**Run your own gateway as commander with your own RS256 key** (the only supported way for a third party; the swarph meta-edge issuer is not offered as a root for someone else's commander):
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
$ openssl genrsa -out commander.pem 2048 && openssl rsa -in commander.pem -pubout -out commander.pub # private key stays OFF the gateway box
|
|
414
|
+
$ export META_EDGE_PUBLIC_KEY_FILE=$PWD/commander.pub META_EDGE_ISSUER=my-gateway META_EDGE_AUDIENCE=swarph-gateway
|
|
415
|
+
$ export META_EDGE_COMMANDER_SUB=julien # the sub you will sign
|
|
416
|
+
$ swarph gateway serve --host 100.x.y.z
|
|
417
|
+
# on your own machine, sign a short-lived identity JWT (any RS256 signer; PyJWT shown)
|
|
418
|
+
$ python -c 'import jwt,time; print(jwt.encode({"iss":"my-gateway","aud":"swarph-gateway","sub":"julien","iat":int(time.time()),"exp":int(time.time())+900}, open("commander.pem").read(), algorithm="RS256"))'
|
|
419
|
+
$ curl -s -X POST http://100.x.y.z:8788/commander/cockpit-credential -H "Authorization: Bearer $JWT" -H 'Content-Type: application/json' -d '{}' # 201 {credential, credential_id, expires_at}, shown once
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
Cap `exp` (minutes, not days: the gateway requires `exp`, `iss`, `aud` and `sub` and pins RS256). **Revocation is replacing the key file**: a new `commander.pub` invalidates every JWT signed with the old private key at the next request (the key is read per request; no restart). A cell gets the per-peer token that `POST /commander/requests` needs from `POST /peers/register` on a fresh gateway (zero ratified peers) or by `swarph onboard`. The optional static `MESH_GATEWAY_COMMANDER_TOKEN` can read all rows, post a result and revoke the cockpit credential; it can never decide or mint, and when it equals `MESH_GATEWAY_TOKEN` it counts as unset.
|
|
423
|
+
|
|
424
|
+
**Mint without an issuer:** `swarph gateway cockpit-credential mint|revoke [--db PATH]` writes the same row as the HTTP mint (SHA-256 only, one active credential, 30-day expiry) by a local database write on the gateway box. Like `bootstrap-ratify` it refuses without a tty and a typed `yes`, and it refuses a database whose schema version is above 12 (another gateway's database). The credential is printed once to stdout and logged nowhere.
|
|
425
|
+
|
|
426
|
+
Cockpit limits worth knowing: a `swck_` bearer on any route other than `GET /commander/requests`, `GET /commander/requests/{id}` and `POST /commander/requests/{id}/decide` gets `403 {"error":"cockpit_not_allowed"}` before any lookup; `decide` requires the row's `digest` (SHA-256 over the RFC 8785 bytes of `{"id","type","params"}`, pinned to `rfc8785==0.1.4`) and refuses a stale one with `409 {"error":"digest_mismatch"}`. Two limits on byte-identity with the deployed gateway: a body with no `decision` field gets FastAPI's 422, whose body follows the installed pydantic; and on Python 3.10 the mint's `expires_at` fraction must have 0, 3 or 6 digits (`datetime.fromisoformat` before 3.11), otherwise `400 bad_expires_at`.
|
|
427
|
+
|
|
403
428
|
### `swarph service`
|
|
404
429
|
|
|
405
430
|
Turn a *subscription* LLM CLI into a **$0 HTTP lane** the mesh can call — `swarph service serve --provider <claude|codex|gemini>` runs a small FastAPI app exposing `POST /delegate` (bearer-authed) + `GET /health`:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "swarph-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.87.0"
|
|
8
8
|
description = "The `swarph` binary — a multi-LLM CLI and mesh-gateway client + bundled server (`swarph gateway`): one-shot prompts across providers, interactive `chat`, multi-provider `spawn` (claude/codex/antigravity via a ProviderMembrane with subprocess billing-scrub), `mesh` send/inbox/register, `brain-ask` over the swarph-brain (gbrain) semantic memory, git-backed `assisted_memory`, per-invocation `gh` identity routing, a silent DM-wake hook, session `import`, and a stranded-session `watchdog`."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -19,12 +19,14 @@ classifiers = [
|
|
|
19
19
|
"Environment :: Console",
|
|
20
20
|
"Intended Audience :: Developers",
|
|
21
21
|
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Operating System :: MacOS",
|
|
22
23
|
"Operating System :: POSIX :: Linux",
|
|
23
24
|
"Programming Language :: Python :: 3",
|
|
24
25
|
"Programming Language :: Python :: 3.10",
|
|
25
26
|
"Programming Language :: Python :: 3.11",
|
|
26
27
|
"Programming Language :: Python :: 3.12",
|
|
27
28
|
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
28
30
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
29
31
|
"Topic :: Utilities",
|
|
30
32
|
]
|
|
@@ -117,6 +119,9 @@ gateway = [
|
|
|
117
119
|
# B1 Meta-Edge identity: verify RS256 SSO JWTs (the gateway TRUSTS, never
|
|
118
120
|
# signs). [crypto] pulls in `cryptography` for RSA signature verification.
|
|
119
121
|
"PyJWT[crypto]>=2.8",
|
|
122
|
+
# card #1645: JCS (RFC 8785) bytes are the commander queue's digest contract;
|
|
123
|
+
# the exact pin matches mesh-gateway and swarph-desktop.
|
|
124
|
+
"rfc8785==0.1.4",
|
|
120
125
|
]
|
|
121
126
|
# `swarph service serve` stands up a $0 subscription-LLM HTTP lane. Same
|
|
122
127
|
# FastAPI/uvicorn stack as the gateway, behind its own extra so the core
|
|
@@ -159,7 +164,8 @@ swarph_cli = ["systemd/*.service", "systemd/*.timer", "systemd/*.default",
|
|
|
159
164
|
"payloads/postcompact/*.sh", "payloads/postcompact/*.cmd",
|
|
160
165
|
"payloads/opencode/*.js",
|
|
161
166
|
"skills/*/SKILL.md", "skills/*/LICENSE",
|
|
162
|
-
"triage/*.json"
|
|
167
|
+
"triage/*.json",
|
|
168
|
+
"usage/*.json"]
|
|
163
169
|
# v0.15: ship the bundled mesh-gateway schema so `swarph gateway serve`
|
|
164
170
|
# can apply it at startup via MESH_SCHEMA_PATH (defaults next to server.py).
|
|
165
171
|
"swarph_cli.gateway" = ["*.sql"]
|
|
@@ -20,7 +20,7 @@ import urllib.parse
|
|
|
20
20
|
import urllib.request
|
|
21
21
|
from datetime import datetime, timezone
|
|
22
22
|
from pathlib import Path
|
|
23
|
-
from typing import Optional
|
|
23
|
+
from typing import Callable, Optional
|
|
24
24
|
|
|
25
25
|
# #532 — negative-branch marker detection. THREE COPIES exist and no single
|
|
26
26
|
# suite pins all three: here, mesh-gateway server.py (_accept_state), and
|
|
@@ -687,7 +687,8 @@ def _card_say_payload(from_node: str, to_node: str, kind: str, content: str,
|
|
|
687
687
|
|
|
688
688
|
def _run_cards_say(gw: str, token: str, self_name: str, card_id: int,
|
|
689
689
|
content: str, kind: str, to_node: Optional[str], aj: bool, *,
|
|
690
|
-
opt_out: bool = False, verb: str = "say"
|
|
690
|
+
opt_out: bool = False, verb: str = "say",
|
|
691
|
+
pre_post_check: Callable[[], str | None] | None = None) -> int:
|
|
691
692
|
"""Post `content` onto a card's thread (shared by `say` + `dev-extract`).
|
|
692
693
|
|
|
693
694
|
Factored out of the `say` block without behavior change: fetch the card,
|
|
@@ -695,6 +696,7 @@ def _run_cards_say(gw: str, token: str, self_name: str, card_id: int,
|
|
|
695
696
|
(--to > assignee > project owner_orchestrator), POST /messages, render the
|
|
696
697
|
confirmation (including any discharged obligation, #562). `dev-extract`
|
|
697
698
|
posts through this so both verbs keep ONE recipient/redaction path.
|
|
699
|
+
Its pre-post check runs only after the recipient is resolved.
|
|
698
700
|
"""
|
|
699
701
|
st, card = _http_get_json(f"{gw}/board/cards/{card_id}", token)
|
|
700
702
|
if st != 200:
|
|
@@ -720,12 +722,15 @@ def _run_cards_say(gw: str, token: str, self_name: str, card_id: int,
|
|
|
720
722
|
except RuntimeError as exc:
|
|
721
723
|
print(f"swarph board cards {verb}: {exc}", file=sys.stderr)
|
|
722
724
|
return 1
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
725
|
+
payload = _card_say_payload(self_name, to_node, kind, content, thread_uuid,
|
|
726
|
+
opt_out=opt_out)
|
|
727
|
+
if pre_post_check is not None:
|
|
728
|
+
refusal = pre_post_check()
|
|
729
|
+
if refusal is not None:
|
|
730
|
+
print(f"swarph board cards {verb}: {refusal}; nothing posted",
|
|
731
|
+
file=sys.stderr)
|
|
732
|
+
return 1
|
|
733
|
+
st, d = _post_json(f"{gw}/messages", payload, token)
|
|
729
734
|
# A 403 here carries the gateway's explanation that attaching PUBLISHES
|
|
730
735
|
# to everyone who can read the card, now and in future, so it needs an
|
|
731
736
|
# explicit `propose` grant. `_out` passes `detail` through whole; it does
|
|
@@ -1389,8 +1394,7 @@ def _build_parser() -> argparse.ArgumentParser:
|
|
|
1389
1394
|
from swarph_cli.commands.dev_extract import build_parser as _de_build_parser
|
|
1390
1395
|
_de = _de_build_parser()
|
|
1391
1396
|
de = cards.add_parser(
|
|
1392
|
-
"dev-extract", help="build (+ post) a
|
|
1393
|
-
"dev extract for a card (#1396)",
|
|
1397
|
+
"dev-extract", help="build (+ post) a versioned bibliography for a card (#1726)",
|
|
1394
1398
|
parents=[_de], add_help=False,
|
|
1395
1399
|
description=_de.description)
|
|
1396
1400
|
de.add_argument("--to", dest="to_node", default=None,
|
|
@@ -2113,6 +2117,23 @@ def run_board(argv: list[str]) -> int:
|
|
|
2113
2117
|
fed_report=args.fed_report, structurizr_ws=args.structurizr_ws,
|
|
2114
2118
|
card=card, paths=paths, project_slug=proj_slug,
|
|
2115
2119
|
entitled=(entitled and not post_safe))
|
|
2120
|
+
bibliography = None
|
|
2121
|
+
if card is not None:
|
|
2122
|
+
from swarph_cli.commands import dev_bibliography as bib
|
|
2123
|
+
|
|
2124
|
+
def read_source(path):
|
|
2125
|
+
try:
|
|
2126
|
+
status, data = _http_get_json(f"{gw.rstrip('/')}{path}", token)
|
|
2127
|
+
except (OSError, ValueError):
|
|
2128
|
+
raise bib.Unavailable("gateway reply unreadable") from None
|
|
2129
|
+
if status != 200:
|
|
2130
|
+
raise bib.Unavailable(f"gateway HTTP {status}" if status
|
|
2131
|
+
else "gateway unreachable")
|
|
2132
|
+
return data
|
|
2133
|
+
|
|
2134
|
+
thread_url = _thread_url("", args.card, limit=bib.HISTORY_LIMIT)
|
|
2135
|
+
bibliography = bib.collect(card, read_source, thread_url, post_safe=post_safe)
|
|
2136
|
+
ex["bibliography"] = bibliography
|
|
2116
2137
|
if getattr(args, "json", False):
|
|
2117
2138
|
# card #1396: redact WITHHELD registry entries (no private
|
|
2118
2139
|
# paths/index times in machine-readable output). The
|
|
@@ -2123,22 +2144,44 @@ def run_board(argv: list[str]) -> int:
|
|
|
2123
2144
|
if no_tokens_note:
|
|
2124
2145
|
print(no_tokens_note, file=sys.stderr)
|
|
2125
2146
|
print(privacy_line, file=sys.stderr)
|
|
2126
|
-
|
|
2127
|
-
|
|
2147
|
+
payload = _de_mod.redact_for_json(ex, post_safe=post_safe)
|
|
2148
|
+
if bibliography is not None:
|
|
2149
|
+
payload = bib.redact_json(payload)
|
|
2150
|
+
print(json.dumps(payload, indent=2, default=str))
|
|
2128
2151
|
return 0
|
|
2152
|
+
if posting and not (bibliography and bibliography["version"] is not None):
|
|
2153
|
+
reason = (bibliography["version_unavailable"] if bibliography
|
|
2154
|
+
else "card unavailable")
|
|
2155
|
+
print(f"dev-extract: cannot verify bibliography version: {reason}; "
|
|
2156
|
+
"nothing posted", file=sys.stderr)
|
|
2157
|
+
return 1
|
|
2129
2158
|
body = _de_mod.render(ex, max_lines=args.max_lines,
|
|
2130
|
-
post_safe=post_safe
|
|
2159
|
+
post_safe=post_safe, citations=bibliography is not None,
|
|
2160
|
+
as_of=bibliography["as_of"] if bibliography else None)
|
|
2161
|
+
if bibliography is not None:
|
|
2162
|
+
body = bib.render(body, bibliography)
|
|
2131
2163
|
if args.print_only or args.card is None:
|
|
2132
2164
|
if no_tokens_note:
|
|
2133
2165
|
print(no_tokens_note)
|
|
2134
2166
|
print(privacy_line)
|
|
2135
2167
|
print(body, end="")
|
|
2136
2168
|
return 0
|
|
2169
|
+
|
|
2170
|
+
def check_version():
|
|
2171
|
+
# shortcut: if both final reads finish before either POST, both
|
|
2172
|
+
# can insert: POST has no expected-version check. Upgrade when
|
|
2173
|
+
# the gateway can enforce that precondition atomically.
|
|
2174
|
+
try:
|
|
2175
|
+
bib.next_version(read_source, thread_url, expected=bibliography["version"])
|
|
2176
|
+
except bib.Unavailable as exc:
|
|
2177
|
+
return f"cannot verify bibliography version: {exc}"
|
|
2178
|
+
return None
|
|
2179
|
+
|
|
2137
2180
|
print(privacy_line)
|
|
2138
2181
|
return _run_cards_say(
|
|
2139
2182
|
gw, token, self_name, args.card, body, "fyi",
|
|
2140
2183
|
args.to_node, aj, opt_out=getattr(args, "no_redact", False),
|
|
2141
|
-
verb="dev-extract")
|
|
2184
|
+
verb="dev-extract", pre_post_check=check_version)
|
|
2142
2185
|
if args.command == "ready":
|
|
2143
2186
|
st, d = _patch_json(f"{gw}/board/cards/{args.id}", {"actor": self_name, "move_ready": not args.clear, **expected}, token)
|
|
2144
2187
|
return _out(st, d, lambda x: f"card #{x.get('id')} move_ready -> {x.get('move_ready')}", aj)
|
|
@@ -12,12 +12,14 @@ from __future__ import annotations
|
|
|
12
12
|
|
|
13
13
|
import argparse
|
|
14
14
|
import json
|
|
15
|
+
import re
|
|
15
16
|
import sys
|
|
16
17
|
import urllib.error
|
|
17
18
|
import urllib.parse
|
|
18
19
|
import urllib.request
|
|
19
20
|
|
|
20
21
|
from swarph_cli.commands import mesh as mesh_cmd
|
|
22
|
+
from swarph_cli.redact import redact_text
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
def ask_body(question: str, options: list[str], card: int | None) -> dict:
|
|
@@ -39,6 +41,84 @@ def request_body(kind: str, *, repo: str | None, pr: int | None,
|
|
|
39
41
|
return body
|
|
40
42
|
|
|
41
43
|
|
|
44
|
+
def post_request(gateway: str, token: str, body: dict) -> tuple[int, dict]:
|
|
45
|
+
"""The one POST that proposes to the commander queue, shared by the CLI and MCP."""
|
|
46
|
+
return mesh_cmd._post_json(f"{gateway.rstrip('/')}/commander/requests", body, token)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def confirmed_id(payload) -> int | None:
|
|
50
|
+
"""The queue id of an accepted proposal, or None when a 2xx reply carries no
|
|
51
|
+
integer id (200 with an empty object, a list, a null or string id). That is
|
|
52
|
+
not a confirmation. bool is an int subclass, so it is refused by type."""
|
|
53
|
+
rid = payload.get("id") if isinstance(payload, dict) else None
|
|
54
|
+
return rid if type(rid) is int else None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def unconfirmed(status: int) -> str:
|
|
58
|
+
return f"gateway {status} returned no request id; the proposal is not confirmed"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# The gateway's request statuses (mesh-gateway 4989daa, server.py): pending 4040,
|
|
62
|
+
# answered 4133, approved 4135, rejected 4137, executed/failed/stale 4165,
|
|
63
|
+
# withdrawn 4212. All are short lowercase words, so one pattern admits them and
|
|
64
|
+
# a future status; anything else in a reply is never echoed.
|
|
65
|
+
_STATUS_WORD = re.compile(r"[a-z][a-z_]{0,23}")
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def scrub_token(text: str, token, k: int = 8) -> str:
|
|
69
|
+
"""Replace every run of k or more characters that is a substring of the caller's
|
|
70
|
+
token (raw or url-quoted). A fragment of a credential is still a credential, and
|
|
71
|
+
redact_text only knows whole-token shapes, so it cannot be left to that."""
|
|
72
|
+
if not isinstance(token, str) or len(token) < k:
|
|
73
|
+
return text
|
|
74
|
+
forms = (token, urllib.parse.quote(token, safe=""))
|
|
75
|
+
hit = [False] * len(text)
|
|
76
|
+
for i in range(len(text) - k + 1):
|
|
77
|
+
if any(text[i:i + k] in form for form in forms):
|
|
78
|
+
hit[i:i + k] = [True] * k # any longer match is covered by its k-windows
|
|
79
|
+
out, prev = [], False
|
|
80
|
+
for ch, h in zip(text, hit):
|
|
81
|
+
if not h:
|
|
82
|
+
out.append(ch)
|
|
83
|
+
elif not prev:
|
|
84
|
+
out.append("[REDACTED]")
|
|
85
|
+
prev = h
|
|
86
|
+
return "".join(out)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def safe_status(value, token=""):
|
|
90
|
+
"""A reply's status as it may be shown: a short lowercase word that carries no
|
|
91
|
+
fragment of the caller's token. A missing or null status is "None", which is what
|
|
92
|
+
`swarph commander ask` printed before; any other value is "unknown", never echoed."""
|
|
93
|
+
if value is None:
|
|
94
|
+
return "None"
|
|
95
|
+
ok = isinstance(value, str) and _STATUS_WORD.fullmatch(value) and scrub_token(value, token) == value
|
|
96
|
+
return value if ok else "unknown"
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# token_urlsafe(32) is 43 characters of upper, lower and digits. Gateway text has no
|
|
100
|
+
# such run of 24 or more, so one is treated as a credential even when it is not ours.
|
|
101
|
+
# shortcut: a foreign token cut shorter than 24, or all-lowercase hex, is not recognised;
|
|
102
|
+
# redact_text still covers the Bearer and key=value shapes.
|
|
103
|
+
_TOKEN_RUN = re.compile(r"[A-Za-z0-9_-]{24,}")
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _mask_credential_like(m: re.Match) -> str:
|
|
107
|
+
run = m.group(0)
|
|
108
|
+
kinds = (any(c.isupper() for c in run), any(c.islower() for c in run), any(c.isdigit() for c in run))
|
|
109
|
+
return "[REDACTED]" if all(kinds) else run
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def safe_text(text: str, token) -> str:
|
|
113
|
+
"""Gateway-supplied text as it may be shown on one line: non-printable characters
|
|
114
|
+
removed (an escape or a line break could forge a line), no fragment of the caller's
|
|
115
|
+
own token (scrub_token), no credential-like run, then the secret shapes redact_text
|
|
116
|
+
knows. Ordinary text passes through unchanged."""
|
|
117
|
+
text = "".join(ch for ch in text if ch.isprintable())
|
|
118
|
+
text = _TOKEN_RUN.sub(_mask_credential_like, scrub_token(text, token))
|
|
119
|
+
return redact_text(text, caller="commander") or ""
|
|
120
|
+
|
|
121
|
+
|
|
42
122
|
def _build_parser() -> argparse.ArgumentParser:
|
|
43
123
|
p = argparse.ArgumentParser(prog="swarph commander")
|
|
44
124
|
sub = p.add_subparsers(dest="command", required=True)
|
|
@@ -94,15 +174,30 @@ def fetch_scope(scope: str, token: str, gateway: str) -> tuple[int, dict]:
|
|
|
94
174
|
return 0, {"detail": str(exc)}
|
|
95
175
|
|
|
96
176
|
|
|
97
|
-
|
|
98
|
-
|
|
177
|
+
_TIMESTAMP = re.compile(r"\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?(Z|[+-]\d{2}:?\d{2})?")
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def _row_id(row) -> int | None:
|
|
181
|
+
rid = row.get("id")
|
|
182
|
+
return rid if type(rid) is int else None
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def render_check(rows: list, token="") -> tuple[int, str, str]:
|
|
186
|
+
"""Exit code, stdout, stderr. Active prints id, text and granted_at. The output is
|
|
187
|
+
key=value lines that scripts read, so every value is one safe line: an integer id,
|
|
188
|
+
text through safe_text, a timestamp-shaped granted_at (a missing value as before)."""
|
|
99
189
|
active = [row for row in rows if row.get("status") == "active"]
|
|
100
190
|
if active:
|
|
101
|
-
row = max(active, key=lambda item: item
|
|
191
|
+
row = max(active, key=lambda item: _row_id(item) or 0)
|
|
192
|
+
rid, granted = row.get("id"), row.get("granted_at") or ""
|
|
193
|
+
if rid is not None and _row_id(row) is None:
|
|
194
|
+
rid = "unknown"
|
|
195
|
+
if granted and not (isinstance(granted, str) and _TIMESTAMP.fullmatch(granted)):
|
|
196
|
+
granted = "unknown"
|
|
102
197
|
stdout = (
|
|
103
|
-
f"id={
|
|
104
|
-
f"text={row.get('text') or ''}\n"
|
|
105
|
-
f"granted_at={
|
|
198
|
+
f"id={rid}\n"
|
|
199
|
+
f"text={safe_text(str(row.get('text') or ''), token)}\n"
|
|
200
|
+
f"granted_at={granted}\n"
|
|
106
201
|
)
|
|
107
202
|
return 0, stdout, ""
|
|
108
203
|
if any(row.get("status") == "revoked" for row in rows):
|
|
@@ -127,7 +222,7 @@ def _check(args) -> int:
|
|
|
127
222
|
if status != 200 or not isinstance(body, dict):
|
|
128
223
|
print("swarph commander: authorization check failed", file=sys.stderr)
|
|
129
224
|
return 1
|
|
130
|
-
code, stdout, stderr = render_check(body.get("authorizations") or [])
|
|
225
|
+
code, stdout, stderr = render_check(body.get("authorizations") or [], token)
|
|
131
226
|
if stdout:
|
|
132
227
|
sys.stdout.write(stdout)
|
|
133
228
|
if stderr:
|
|
@@ -163,10 +258,14 @@ def run_commander(argv: list[str]) -> int:
|
|
|
163
258
|
return 2
|
|
164
259
|
body = request_body(args.type, repo=args.repo, pr=args.pr, head=args.head,
|
|
165
260
|
version=args.version, card=args.card)
|
|
166
|
-
status, payload =
|
|
261
|
+
status, payload = post_request(gw, token, body)
|
|
167
262
|
if status in (200, 201):
|
|
168
|
-
|
|
263
|
+
rid = confirmed_id(payload)
|
|
264
|
+
if rid is None:
|
|
265
|
+
print(f"swarph commander: {unconfirmed(status)}", file=sys.stderr)
|
|
266
|
+
return 1
|
|
267
|
+
print(f"commander request #{rid} {safe_status(payload.get('status'), token)}")
|
|
169
268
|
return 0
|
|
170
269
|
detail = payload.get("detail") if isinstance(payload, dict) else payload
|
|
171
|
-
print(f"swarph commander: {detail}", file=sys.stderr)
|
|
270
|
+
print(safe_text(f"swarph commander: {detail}", token), file=sys.stderr)
|
|
172
271
|
return 1
|