@chankov/agent-fleet 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/harnesses/agent-hub/README.md +85 -71
- package/.pi/harnesses/agent-hub/context-window.js +1 -1
- package/.pi/harnesses/agent-hub/delegate.ts +14 -3
- package/.pi/harnesses/agent-hub/drift-watchdog.js +11 -4
- package/.pi/harnesses/agent-hub/execution-profile.ts +69 -0
- package/.pi/harnesses/agent-hub/footer.ts +3 -2
- package/.pi/harnesses/agent-hub/hub-state-audit.js +0 -14
- package/.pi/harnesses/agent-hub/index.ts +562 -300
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/provider-semaphore.js +1 -1
- package/.pi/harnesses/agent-hub/run-budget.js +67 -69
- package/.pi/harnesses/agent-hub/spawn.ts +25 -3
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/fleet-dashboard-ops.ts +2 -2
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +3 -1
- package/.pi/harnesses/lib/fleet-detail-view.ts +134 -20
- package/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.pi/prompts/af-plan.md +6 -5
- package/.versions/1.0.3/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/1.0.3/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/1.0.3/.pi/agents/peers.yaml +142 -0
- package/.versions/1.0.3/.pi/agents/teams.yaml +41 -0
- package/.versions/1.0.3/.pi/damage-control-rules.yaml +297 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/1.0.3/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/btw/README.md +120 -0
- package/.versions/1.0.3/.pi/extensions/btw/index.ts +914 -0
- package/.versions/1.0.3/.pi/extensions/btw/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/btw/state.js +179 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/1.0.3/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/1.0.3/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/1.0.3/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/package-lock.json +1175 -0
- package/.versions/1.0.3/.pi/extensions/package.json +9 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/1.0.3/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/README.md +1156 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/delegate.ts +435 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/execution-profile.ts +69 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/footer.ts +36 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/index.ts +9999 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/posture.ts +158 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/spawn.ts +366 -0
- package/.versions/1.0.3/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/1.0.3/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/1.0.3/.pi/harnesses/coms/README.md +100 -0
- package/.versions/1.0.3/.pi/harnesses/coms/index.ts +1767 -0
- package/.versions/1.0.3/.pi/harnesses/coms/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/1.0.3/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/1.0.3/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/1.0.3/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/1.0.3/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-detail-view.ts +168 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/1.0.3/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/1.0.3/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/1.0.3/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/1.0.3/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/1.0.3/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/1.0.3/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/1.0.3/.pi/harnesses/package.json +10 -0
- package/.versions/1.0.3/.pi/prompts/af-build.md +24 -0
- package/.versions/1.0.3/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/1.0.3/.pi/prompts/af-plan.md +16 -0
- package/.versions/1.0.3/.pi/prompts/af-review.md +16 -0
- package/.versions/1.0.3/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/1.0.3/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/1.0.3/.pi/prompts/af-ship.md +17 -0
- package/.versions/1.0.3/.pi/prompts/af-spec.md +15 -0
- package/.versions/1.0.3/.pi/prompts/af-test.md +19 -0
- package/.versions/1.0.3/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/1.0.3/.version +1 -0
- package/.versions/1.0.3/agents/architect.md +25 -0
- package/.versions/1.0.3/agents/bowser.md +28 -0
- package/.versions/1.0.3/agents/builder.md +55 -0
- package/.versions/1.0.3/agents/code-reviewer.md +209 -0
- package/.versions/1.0.3/agents/deep-researcher.md +33 -0
- package/.versions/1.0.3/agents/documenter.md +19 -0
- package/.versions/1.0.3/agents/orchestrator.md +21 -0
- package/.versions/1.0.3/agents/plan-reviewer.md +84 -0
- package/.versions/1.0.3/agents/planner.md +71 -0
- package/.versions/1.0.3/agents/releaser.md +25 -0
- package/.versions/1.0.3/agents/researcher.md +29 -0
- package/.versions/1.0.3/agents/security-auditor.md +168 -0
- package/.versions/1.0.3/agents/test-engineer.md +154 -0
- package/.versions/1.0.3/agents/web-debugger.md +44 -0
- package/.versions/1.0.3/agents/web-performance-auditor.md +194 -0
- package/.versions/1.0.3/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/1.0.3/codex/CONDUCTOR.md +148 -0
- package/.versions/1.0.3/docs/ARCHITECTURE.md +375 -0
- package/.versions/1.0.3/docs/agent-fleet-setup.md +468 -0
- package/.versions/1.0.3/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/1.0.3/docs/codex-remote-conductor.md +170 -0
- package/.versions/1.0.3/docs/coms-hermes-bridge.md +189 -0
- package/.versions/1.0.3/docs/getting-started.md +98 -0
- package/.versions/1.0.3/docs/npm-install.md +292 -0
- package/.versions/1.0.3/docs/pi-extensions.md +441 -0
- package/.versions/1.0.3/docs/pi-setup.md +74 -0
- package/.versions/1.0.3/docs/skill-anatomy.md +150 -0
- package/.versions/1.0.3/hermes/README.md +347 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/1.0.3/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/1.0.3/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/1.0.3/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/1.0.3/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/1.0.3/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/1.0.3/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/1.0.3/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/1.0.3/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/1.0.3/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/1.0.3/install-manifest.json +2745 -0
- package/.versions/1.0.3/justfile +272 -0
- package/.versions/1.0.3/manifest-meta.json +882 -0
- package/.versions/1.0.3/references/accessibility-checklist.md +160 -0
- package/.versions/1.0.3/references/definition-of-done.md +67 -0
- package/.versions/1.0.3/references/fleet-coordination-patterns.md +151 -0
- package/.versions/1.0.3/references/observability-checklist.md +91 -0
- package/.versions/1.0.3/references/orchestration-patterns.md +370 -0
- package/.versions/1.0.3/references/performance-checklist.md +153 -0
- package/.versions/1.0.3/references/prompting-patterns.md +380 -0
- package/.versions/1.0.3/references/security-checklist.md +179 -0
- package/.versions/1.0.3/references/testing-patterns.md +236 -0
- package/.versions/1.0.3/scripts/codex-conductor.ts +41 -0
- package/.versions/1.0.3/scripts/codex-remote-control.ts +167 -0
- package/.versions/1.0.3/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/1.0.3/scripts/coms-cli.ts +484 -0
- package/.versions/1.0.3/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/1.0.3/scripts/fleet.ts +185 -0
- package/.versions/1.0.3/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/1.0.3/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/1.0.3/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/1.0.3/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/1.0.3/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/1.0.3/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/1.0.3/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/1.0.3/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/1.0.3/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/1.0.3/scripts/lib/fleet-command.ts +266 -0
- package/.versions/1.0.3/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/1.0.3/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/1.0.3/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/1.0.3/scripts/lib/monitor-env.ts +146 -0
- package/.versions/1.0.3/scripts/lib/peer-launch.ts +318 -0
- package/.versions/1.0.3/scripts/lib/persona-banner.ts +62 -0
- package/.versions/1.0.3/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/1.0.3/scripts/lib/team-project.ts +213 -0
- package/.versions/1.0.3/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/1.0.3/scripts/peer-banner.ts +40 -0
- package/.versions/1.0.3/scripts/peer-launch.ts +259 -0
- package/.versions/1.0.3/scripts/team-snapshot.ts +237 -0
- package/.versions/1.0.3/scripts/team-up.ts +406 -0
- package/.versions/1.0.3/skills/_internal/grilling.md +11 -0
- package/.versions/1.0.3/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/1.0.3/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/1.0.3/skills/compound-learning/SKILL.md +137 -0
- package/.versions/1.0.3/skills/context-engineering/SKILL.md +291 -0
- package/.versions/1.0.3/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/1.0.3/skills/designing-agents/SKILL.md +394 -0
- package/.versions/1.0.3/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/1.0.3/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.3/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/1.0.3/skills/idea-refine/SKILL.md +182 -0
- package/.versions/1.0.3/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.3/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.3/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.3/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.3/skills/incremental-implementation/SKILL.md +287 -0
- package/.versions/1.0.3/skills/interview-me/SKILL.md +226 -0
- package/.versions/1.0.3/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/1.0.3/skills/peer-coms/SKILL.md +90 -0
- package/.versions/1.0.3/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.3/skills/planning-and-task-breakdown/SKILL.md +254 -0
- package/.versions/1.0.3/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/1.0.3/skills/spec-driven-development/SKILL.md +257 -0
- package/.versions/1.0.3/skills/using-agent-skills/SKILL.md +199 -0
- package/.versions/1.0.3/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/1.0.3/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/.versions/1.0.4/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/1.0.4/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/1.0.4/.pi/agents/peers.yaml +142 -0
- package/.versions/1.0.4/.pi/agents/teams.yaml +41 -0
- package/.versions/1.0.4/.pi/damage-control-rules.yaml +297 -0
- package/.versions/1.0.4/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/1.0.4/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/1.0.4/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/btw/README.md +120 -0
- package/.versions/1.0.4/.pi/extensions/btw/index.ts +914 -0
- package/.versions/1.0.4/.pi/extensions/btw/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/btw/state.js +179 -0
- package/.versions/1.0.4/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/1.0.4/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/1.0.4/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/1.0.4/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/1.0.4/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/1.0.4/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/1.0.4/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/package-lock.json +1175 -0
- package/.versions/1.0.4/.pi/extensions/package.json +9 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/1.0.4/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/README.md +1170 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/execution-profile.ts +69 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/footer.ts +36 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/index.ts +10171 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/posture.ts +158 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/spawn.ts +388 -0
- package/.versions/1.0.4/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/1.0.4/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/1.0.4/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/1.0.4/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/1.0.4/.pi/harnesses/coms/README.md +100 -0
- package/.versions/1.0.4/.pi/harnesses/coms/index.ts +1767 -0
- package/.versions/1.0.4/.pi/harnesses/coms/package.json +7 -0
- package/.versions/1.0.4/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/1.0.4/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/1.0.4/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/1.0.4/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/1.0.4/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/1.0.4/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/1.0.4/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/1.0.4/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/1.0.4/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/1.0.4/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/1.0.4/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/1.0.4/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/1.0.4/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/1.0.4/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/1.0.4/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/1.0.4/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/1.0.4/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/1.0.4/.pi/harnesses/package.json +10 -0
- package/.versions/1.0.4/.pi/prompts/af-build.md +24 -0
- package/.versions/1.0.4/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/1.0.4/.pi/prompts/af-plan.md +17 -0
- package/.versions/1.0.4/.pi/prompts/af-review.md +16 -0
- package/.versions/1.0.4/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/1.0.4/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/1.0.4/.pi/prompts/af-ship.md +17 -0
- package/.versions/1.0.4/.pi/prompts/af-spec.md +15 -0
- package/.versions/1.0.4/.pi/prompts/af-test.md +19 -0
- package/.versions/1.0.4/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/1.0.4/.version +1 -0
- package/.versions/1.0.4/agents/architect.md +25 -0
- package/.versions/1.0.4/agents/bowser.md +28 -0
- package/.versions/1.0.4/agents/builder.md +56 -0
- package/.versions/1.0.4/agents/code-reviewer.md +209 -0
- package/.versions/1.0.4/agents/deep-researcher.md +33 -0
- package/.versions/1.0.4/agents/documenter.md +19 -0
- package/.versions/1.0.4/agents/orchestrator.md +21 -0
- package/.versions/1.0.4/agents/plan-reviewer.md +84 -0
- package/.versions/1.0.4/agents/planner.md +71 -0
- package/.versions/1.0.4/agents/releaser.md +25 -0
- package/.versions/1.0.4/agents/researcher.md +29 -0
- package/.versions/1.0.4/agents/security-auditor.md +168 -0
- package/.versions/1.0.4/agents/test-engineer.md +154 -0
- package/.versions/1.0.4/agents/web-debugger.md +44 -0
- package/.versions/1.0.4/agents/web-performance-auditor.md +194 -0
- package/.versions/1.0.4/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/1.0.4/codex/CONDUCTOR.md +148 -0
- package/.versions/1.0.4/docs/ARCHITECTURE.md +375 -0
- package/.versions/1.0.4/docs/agent-fleet-setup.md +468 -0
- package/.versions/1.0.4/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/1.0.4/docs/codex-remote-conductor.md +170 -0
- package/.versions/1.0.4/docs/coms-hermes-bridge.md +189 -0
- package/.versions/1.0.4/docs/getting-started.md +98 -0
- package/.versions/1.0.4/docs/npm-install.md +292 -0
- package/.versions/1.0.4/docs/pi-extensions.md +441 -0
- package/.versions/1.0.4/docs/pi-setup.md +74 -0
- package/.versions/1.0.4/docs/skill-anatomy.md +150 -0
- package/.versions/1.0.4/hermes/README.md +347 -0
- package/.versions/1.0.4/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/1.0.4/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/1.0.4/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/1.0.4/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/1.0.4/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/1.0.4/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/1.0.4/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/1.0.4/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/1.0.4/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/1.0.4/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/1.0.4/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/1.0.4/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/1.0.4/install-manifest.json +2745 -0
- package/.versions/1.0.4/justfile +272 -0
- package/.versions/1.0.4/manifest-meta.json +882 -0
- package/.versions/1.0.4/references/accessibility-checklist.md +160 -0
- package/.versions/1.0.4/references/definition-of-done.md +67 -0
- package/.versions/1.0.4/references/fleet-coordination-patterns.md +151 -0
- package/.versions/1.0.4/references/observability-checklist.md +91 -0
- package/.versions/1.0.4/references/orchestration-patterns.md +370 -0
- package/.versions/1.0.4/references/performance-checklist.md +153 -0
- package/.versions/1.0.4/references/prompting-patterns.md +380 -0
- package/.versions/1.0.4/references/security-checklist.md +179 -0
- package/.versions/1.0.4/references/testing-patterns.md +236 -0
- package/.versions/1.0.4/scripts/codex-conductor.ts +41 -0
- package/.versions/1.0.4/scripts/codex-remote-control.ts +167 -0
- package/.versions/1.0.4/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/1.0.4/scripts/coms-cli.ts +484 -0
- package/.versions/1.0.4/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/1.0.4/scripts/fleet.ts +185 -0
- package/.versions/1.0.4/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/1.0.4/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/1.0.4/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/1.0.4/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/1.0.4/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/1.0.4/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/1.0.4/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/1.0.4/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/1.0.4/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/1.0.4/scripts/lib/fleet-command.ts +266 -0
- package/.versions/1.0.4/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/1.0.4/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/1.0.4/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/1.0.4/scripts/lib/monitor-env.ts +146 -0
- package/.versions/1.0.4/scripts/lib/peer-launch.ts +318 -0
- package/.versions/1.0.4/scripts/lib/persona-banner.ts +62 -0
- package/.versions/1.0.4/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/1.0.4/scripts/lib/team-project.ts +213 -0
- package/.versions/1.0.4/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/1.0.4/scripts/peer-banner.ts +40 -0
- package/.versions/1.0.4/scripts/peer-launch.ts +259 -0
- package/.versions/1.0.4/scripts/team-snapshot.ts +237 -0
- package/.versions/1.0.4/scripts/team-up.ts +406 -0
- package/.versions/1.0.4/skills/_internal/grilling.md +59 -0
- package/.versions/1.0.4/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/1.0.4/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/1.0.4/skills/compound-learning/SKILL.md +137 -0
- package/.versions/1.0.4/skills/context-engineering/SKILL.md +291 -0
- package/.versions/1.0.4/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/1.0.4/skills/designing-agents/SKILL.md +394 -0
- package/.versions/1.0.4/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/1.0.4/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.4/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/1.0.4/skills/idea-refine/SKILL.md +182 -0
- package/.versions/1.0.4/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.4/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.4/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.4/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.4/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/1.0.4/skills/interview-me/SKILL.md +226 -0
- package/.versions/1.0.4/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/1.0.4/skills/peer-coms/SKILL.md +90 -0
- package/.versions/1.0.4/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.4/skills/planning-and-task-breakdown/SKILL.md +263 -0
- package/.versions/1.0.4/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/1.0.4/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/1.0.4/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/1.0.4/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/1.0.4/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +13 -0
- package/README.md +5 -4
- package/agents/architect.md +1 -0
- package/agents/bowser.md +1 -0
- package/agents/builder.md +2 -0
- package/agents/code-reviewer.md +1 -0
- package/agents/deep-researcher.md +1 -0
- package/agents/documenter.md +1 -0
- package/agents/orchestrator.md +1 -0
- package/agents/plan-reviewer.md +1 -0
- package/agents/planner.md +2 -1
- package/agents/releaser.md +1 -0
- package/agents/researcher.md +1 -0
- package/agents/security-auditor.md +1 -0
- package/agents/test-engineer.md +1 -0
- package/agents/web-debugger.md +1 -0
- package/agents/web-performance-auditor.md +1 -0
- package/bin/lib/validate-overrides.js +1 -1
- package/docs/ARCHITECTURE.md +25 -19
- package/docs/agent-fleet-setup.md +8 -8
- package/docs/pi-extensions.md +4 -2
- package/install-manifest.json +3 -3
- package/package.json +2 -2
- package/scripts/fleet.ts +1 -1
- package/skills/_internal/grilling.md +53 -5
- package/skills/idea-refine/SKILL.md +2 -2
- package/skills/incremental-implementation/SKILL.md +12 -1
- package/skills/planning-and-task-breakdown/SKILL.md +14 -5
- package/skills/spec-driven-development/SKILL.md +10 -11
- package/skills/using-agent-skills/SKILL.md +13 -15
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/** Only the local endpoint is capped by default; hosted providers scale on their side. */
|
|
19
19
|
export const DEFAULT_PROVIDER_LIMITS = Object.freeze({ custom: 2 });
|
|
20
20
|
|
|
21
|
-
/** "custom/Qwen3.
|
|
21
|
+
/** "custom/Qwen3.8-27B-Uncensored-MLX-4bit" → "custom"; the part before the first slash. */
|
|
22
22
|
export function providerKey(model) {
|
|
23
23
|
const spec = String(model ?? "").trim().toLowerCase();
|
|
24
24
|
const slash = spec.indexOf("/");
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
1
|
+
// Task-tier budgets — the pure policy core behind the hub's runaway-orchestration
|
|
2
|
+
// guardrails. Budgets are PER USER TURN: a new user message opens a fresh window,
|
|
3
|
+
// so "budget exhausted" naturally means "stop, summarize, ask the user". Everything
|
|
4
|
+
// here is data + pure functions so the policy is unit-testable away from the
|
|
5
|
+
// 7k-line harness.
|
|
6
6
|
//
|
|
7
|
-
// A budget value of `null` means "off"/unlimited for that axis.
|
|
7
|
+
// A budget value of `null` means "off"/unlimited for that axis. Live envelopes
|
|
8
|
+
// never use null: every tier has explicit numbers. Override `off` cannot lift a
|
|
9
|
+
// tier cap — it stays bounded by the tier.
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Task tiers — the dispatcher's per-turn complexity triage. Tier caps only
|
|
13
|
-
// lower the dispatch/research axes (min with the mode budget): a trivial ask
|
|
14
|
-
// must not burn a standard-mode budget on ceremony, while `project` defers
|
|
15
|
-
// entirely to the mode. Unset tier is treated as "feature".
|
|
11
|
+
// Task tiers — the dispatcher's complexity triage AND the budget envelope.
|
|
12
|
+
// Unset/junk tier is treated as DEFAULT_TASK_TIER (`small`).
|
|
16
13
|
export const TASK_TIERS = ["trivial", "small", "feature", "project"];
|
|
17
14
|
// The tier ASSUMED when the dispatcher never called set_task_tier. It is
|
|
18
15
|
// deliberately not the middle of the range: the tier is task-scoped, so a skipped
|
|
@@ -24,13 +21,6 @@ export const TASK_TIERS = ["trivial", "small", "feature", "project"];
|
|
|
24
21
|
// reason) when the work really is bigger, which is the cheap direction to be wrong in.
|
|
25
22
|
export const DEFAULT_TASK_TIER = "small";
|
|
26
23
|
|
|
27
|
-
export const TIER_CAPS = {
|
|
28
|
-
trivial: { maxDispatches: 1, maxResearch: 1 },
|
|
29
|
-
small: { maxDispatches: 2, maxResearch: 2 },
|
|
30
|
-
feature: { maxDispatches: 6, maxResearch: 4 },
|
|
31
|
-
project: { maxDispatches: null, maxResearch: null },
|
|
32
|
-
};
|
|
33
|
-
|
|
34
24
|
/** "Small", " TRIVIAL " → canonical tier name, or null when unrecognized. */
|
|
35
25
|
export function normalizeTaskTier(value) {
|
|
36
26
|
const v = String(value ?? "").trim().toLowerCase();
|
|
@@ -48,16 +38,24 @@ export const RECYCLE_CONTEXT_PCT = 60;
|
|
|
48
38
|
// still being consulted as if it were advisory.
|
|
49
39
|
export const HARD_RECYCLE_CONTEXT_PCT = 100;
|
|
50
40
|
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
maxDispatches:
|
|
41
|
+
export const TIER_BUDGETS = {
|
|
42
|
+
trivial: {
|
|
43
|
+
maxDispatches: 1,
|
|
54
44
|
maxResearch: 1,
|
|
55
45
|
wallMs: 15 * 60_000,
|
|
56
46
|
agentTurnMs: 10 * 60_000,
|
|
57
47
|
recycleRuns: 3,
|
|
58
48
|
delegation: false,
|
|
59
49
|
},
|
|
60
|
-
|
|
50
|
+
small: {
|
|
51
|
+
maxDispatches: 2,
|
|
52
|
+
maxResearch: 2,
|
|
53
|
+
wallMs: 15 * 60_000,
|
|
54
|
+
agentTurnMs: 10 * 60_000,
|
|
55
|
+
recycleRuns: 3,
|
|
56
|
+
delegation: false,
|
|
57
|
+
},
|
|
58
|
+
feature: {
|
|
61
59
|
maxDispatches: 8,
|
|
62
60
|
maxResearch: 4,
|
|
63
61
|
wallMs: 60 * 60_000,
|
|
@@ -65,57 +63,56 @@ export const MODE_BUDGETS = {
|
|
|
65
63
|
recycleRuns: 5,
|
|
66
64
|
delegation: true,
|
|
67
65
|
},
|
|
68
|
-
|
|
69
|
-
maxDispatches:
|
|
70
|
-
maxResearch:
|
|
71
|
-
wallMs:
|
|
72
|
-
agentTurnMs:
|
|
66
|
+
project: {
|
|
67
|
+
maxDispatches: 12,
|
|
68
|
+
maxResearch: 6,
|
|
69
|
+
wallMs: 90 * 60_000,
|
|
70
|
+
agentTurnMs: 30 * 60_000,
|
|
73
71
|
recycleRuns: 5,
|
|
74
72
|
delegation: true,
|
|
75
73
|
},
|
|
76
74
|
};
|
|
77
75
|
|
|
78
|
-
/**
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
/** Dispatch/research slice of TIER_BUDGETS — kept for callers that only need caps. */
|
|
77
|
+
export const TIER_CAPS = Object.fromEntries(
|
|
78
|
+
TASK_TIERS.map((tier) => [tier, {
|
|
79
|
+
maxDispatches: TIER_BUDGETS[tier].maxDispatches,
|
|
80
|
+
maxResearch: TIER_BUDGETS[tier].maxResearch,
|
|
81
|
+
}]),
|
|
82
|
+
);
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Effective budget for a
|
|
85
|
+
* Effective budget for a task tier with per-project overrides applied as a ceiling.
|
|
86
86
|
* Override fields (all optional): maxDispatches, maxResearch, wallMs,
|
|
87
|
-
* agentTurnMs, recycleRuns — a number
|
|
88
|
-
* the
|
|
89
|
-
*
|
|
90
|
-
* the tier cap — overrides raise/disable the mode side, but the tier keeps a
|
|
91
|
-
* simple ask from spending the whole envelope. No tier (null/undefined) means
|
|
92
|
-
* no tier caps: the caller decides when to assume DEFAULT_TASK_TIER.
|
|
87
|
+
* agentTurnMs, recycleRuns — a number is min()'d with the tier; `null`/`off`
|
|
88
|
+
* stays bounded by the tier; `undefined` keeps the tier default. `delegation`
|
|
89
|
+
* is tier-owned and never overridable. Unset/junk tier → DEFAULT_TASK_TIER.
|
|
93
90
|
*/
|
|
94
|
-
export function resolveTurnBudget(
|
|
95
|
-
const base =
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
return Math.min(value, cap);
|
|
91
|
+
export function resolveTurnBudget(tier, overrides = {}) {
|
|
92
|
+
const base = TIER_BUDGETS[normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER];
|
|
93
|
+
const ceiling = (key) => {
|
|
94
|
+
const override = overrides[key];
|
|
95
|
+
if (override === undefined || override === null) return base[key];
|
|
96
|
+
if (base[key] == null) return override;
|
|
97
|
+
return Math.min(base[key], override);
|
|
102
98
|
};
|
|
103
99
|
return {
|
|
104
|
-
maxDispatches:
|
|
105
|
-
maxResearch:
|
|
106
|
-
wallMs:
|
|
107
|
-
agentTurnMs:
|
|
108
|
-
recycleRuns:
|
|
100
|
+
maxDispatches: ceiling("maxDispatches"),
|
|
101
|
+
maxResearch: ceiling("maxResearch"),
|
|
102
|
+
wallMs: ceiling("wallMs"),
|
|
103
|
+
agentTurnMs: ceiling("agentTurnMs"),
|
|
104
|
+
recycleRuns: ceiling("recycleRuns"),
|
|
109
105
|
delegation: base.delegation,
|
|
110
106
|
};
|
|
111
107
|
}
|
|
112
108
|
|
|
113
|
-
function refusalTail(
|
|
109
|
+
function refusalTail(tier) {
|
|
110
|
+
const label = normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER;
|
|
114
111
|
return "Do NOT retry this call before human confirmation. Summarize progress so far (including " +
|
|
115
112
|
"unproven assertions and artifact paths), then use the Hub's one-click budget continuation " +
|
|
116
|
-
"confirmation. Do not ask for a typed continue message or a slash command.
|
|
117
|
-
`
|
|
118
|
-
"in .ai/agent-fleet-overrides.md.";
|
|
113
|
+
"confirmation. Do not ask for a typed continue message or a slash command. Raise the task " +
|
|
114
|
+
`tier with set_task_tier when the work outgrew "${label}", or tighten/widen future ceilings ` +
|
|
115
|
+
"with the max-*-per-turn / turn-wall-time-s keys in .ai/agent-fleet-overrides.md.";
|
|
119
116
|
}
|
|
120
117
|
|
|
121
118
|
/**
|
|
@@ -123,26 +120,27 @@ function refusalTail(mode) {
|
|
|
123
120
|
* kind: "dispatch" | "research"; counters: { dispatches, research } — calls
|
|
124
121
|
* already made this turn. Returns null when allowed, else { reason, message }.
|
|
125
122
|
*/
|
|
126
|
-
export function checkTurnBudget(kind, counters, budget, elapsedWallMs,
|
|
123
|
+
export function checkTurnBudget(kind, counters, budget, elapsedWallMs, tier = DEFAULT_TASK_TIER) {
|
|
124
|
+
const label = normalizeTaskTier(tier) ?? DEFAULT_TASK_TIER;
|
|
127
125
|
if (budget.wallMs != null && elapsedWallMs >= budget.wallMs) {
|
|
128
126
|
return {
|
|
129
127
|
reason: "wall",
|
|
130
128
|
message: `⚠ Turn budget exhausted: wall clock at ${Math.round(elapsedWallMs / 60_000)} min ` +
|
|
131
|
-
`(limit ${Math.round(budget.wallMs / 60_000)} min
|
|
129
|
+
`(limit ${Math.round(budget.wallMs / 60_000)} min at tier ${label}). ${refusalTail(label)}`,
|
|
132
130
|
};
|
|
133
131
|
}
|
|
134
132
|
if (kind === "dispatch" && budget.maxDispatches != null && counters.dispatches >= budget.maxDispatches) {
|
|
135
133
|
return {
|
|
136
134
|
reason: "dispatches",
|
|
137
135
|
message: `⚠ Turn budget exhausted: ${counters.dispatches} of ${budget.maxDispatches} ` +
|
|
138
|
-
`dispatch_agent calls used
|
|
136
|
+
`dispatch_agent calls used at tier ${label}. ${refusalTail(label)}`,
|
|
139
137
|
};
|
|
140
138
|
}
|
|
141
139
|
if (kind === "research" && budget.maxResearch != null && counters.research >= budget.maxResearch) {
|
|
142
140
|
return {
|
|
143
141
|
reason: "research",
|
|
144
142
|
message: `⚠ Turn budget exhausted: ${counters.research} of ${budget.maxResearch} ` +
|
|
145
|
-
`spawn_research calls used
|
|
143
|
+
`spawn_research calls used at tier ${label}. ${refusalTail(label)}`,
|
|
146
144
|
};
|
|
147
145
|
}
|
|
148
146
|
return null;
|
|
@@ -180,14 +178,14 @@ export function contextOverflowDiagnostic(runsSinceFresh, contextPct, { agent =
|
|
|
180
178
|
);
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
/** One-line status chip: "
|
|
184
|
-
export function budgetStatusLine(
|
|
181
|
+
/** One-line status chip: "Tier: small · 1/2 disp · 0/2 res · task 4/6". */
|
|
182
|
+
export function budgetStatusLine(counters, budget, tier = null, task = null) {
|
|
185
183
|
const cap = (n) => (n == null ? "∞" : String(n));
|
|
186
|
-
const
|
|
184
|
+
const tierLabel = tier || DEFAULT_TASK_TIER;
|
|
187
185
|
const taskSuffix = task
|
|
188
186
|
? ` · task ${task.counters.dispatches}/${cap(task.budget.maxDispatches)}`
|
|
189
187
|
: "";
|
|
190
|
-
return `
|
|
188
|
+
return `Tier: ${tierLabel} · ${counters.dispatches}/${cap(budget.maxDispatches)} disp · ` +
|
|
191
189
|
`${counters.research}/${cap(budget.maxResearch)} res${taskSuffix}`;
|
|
192
190
|
}
|
|
193
191
|
|
|
@@ -293,7 +291,7 @@ function taskRefusalTail() {
|
|
|
293
291
|
*
|
|
294
292
|
* The task clock must never charge for human time. A task's wall clock spans
|
|
295
293
|
* every message on it, so a lunch break, an overnight pause, or a long `ask_user`
|
|
296
|
-
* answer would all count as budget — and at `
|
|
294
|
+
* answer would all count as budget — and at `small` tier's 45-minute task wall a
|
|
297
295
|
* single coffee break would hard-stop a task with two dispatches spent. That is a
|
|
298
296
|
* false positive that teaches people to reset the task window reflexively, which
|
|
299
297
|
* costs more than the guardrail buys. Dispatch/research counts stay the honest
|
|
@@ -432,8 +430,8 @@ const GATED_TIERS = new Set(["trivial", "small"]);
|
|
|
432
430
|
|
|
433
431
|
/**
|
|
434
432
|
* Refuse a heavy persona at a low tier. Returns null when allowed, else
|
|
435
|
-
* { reason, message }. Unknown/absent tier never gates
|
|
436
|
-
*
|
|
433
|
+
* { reason, message }. Unknown/absent tier never gates here; the harness assumes
|
|
434
|
+
* DEFAULT_TASK_TIER before calling.
|
|
437
435
|
*/
|
|
438
436
|
export function checkTierPersonaGate(tier, persona) {
|
|
439
437
|
const t = normalizeTaskTier(tier);
|
|
@@ -91,8 +91,8 @@ export interface SpawnPiAgentCallbacks {
|
|
|
91
91
|
onTextDelta?(delta: string): void;
|
|
92
92
|
onThinkingDelta?(delta: string): void;
|
|
93
93
|
onToolStart?(toolName: string, argStr: string, toolCallId?: string): void;
|
|
94
|
-
/**
|
|
95
|
-
onToolEnd?(toolName: string, toolCallId?: string, isError?: boolean): void;
|
|
94
|
+
/** Result text is the complete textual tool payload; duration is measured in the parent process. */
|
|
95
|
+
onToolEnd?(toolName: string, toolCallId?: string, isError?: boolean, resultText?: string, durationMs?: number): void;
|
|
96
96
|
onUsage?(usage: PiUsage, source: "message_end" | "agent_end"): void;
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -233,7 +233,20 @@ export function spawnPiAgent(
|
|
|
233
233
|
deadlineTimer = setTimeout(() => terminate("turn_timeout"), turnDeadlineMs);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
const toolStarts = new Map<string, number>();
|
|
236
237
|
const toolId = (event: any) => String(event.toolCallId ?? event.tool_call_id ?? event.id ?? "");
|
|
238
|
+
const toolResultText = (result: any): string => {
|
|
239
|
+
const content = result?.content ?? result;
|
|
240
|
+
if (typeof content === "string") return content;
|
|
241
|
+
if (!Array.isArray(content)) {
|
|
242
|
+
try { return content == null ? "" : JSON.stringify(content); } catch { return String(content ?? ""); }
|
|
243
|
+
}
|
|
244
|
+
return content.map((item: any) => {
|
|
245
|
+
if (typeof item === "string") return item;
|
|
246
|
+
if (item?.type === "text" && typeof item.text === "string") return item.text;
|
|
247
|
+
try { return JSON.stringify(item); } catch { return String(item ?? ""); }
|
|
248
|
+
}).filter(Boolean).join("\n");
|
|
249
|
+
};
|
|
237
250
|
const handleEvent = (event: any) => {
|
|
238
251
|
if (event.type === "message_update") {
|
|
239
252
|
const delta = event.assistantMessageEvent;
|
|
@@ -245,6 +258,7 @@ export function spawnPiAgent(
|
|
|
245
258
|
try { argStr = event.args != null ? JSON.stringify(event.args) : ""; } catch {}
|
|
246
259
|
const id = toolId(event);
|
|
247
260
|
const name = event.toolName || "tool";
|
|
261
|
+
if (id && !toolStarts.has(id)) toolStarts.set(id, Date.now());
|
|
248
262
|
cbs.onToolStart?.(name, argStr, id || undefined);
|
|
249
263
|
if (timeoutMs != null && id && watchedTools.has(name) && !calls.has(id)) {
|
|
250
264
|
const startedAt = Date.now();
|
|
@@ -258,7 +272,15 @@ export function spawnPiAgent(
|
|
|
258
272
|
if (call) { clearTimeout(call.timer); calls.delete(id); }
|
|
259
273
|
}
|
|
260
274
|
const rawIsError = event.isError ?? event.is_error ?? event.result?.isError ?? event.result?.is_error;
|
|
261
|
-
|
|
275
|
+
const startedAt = id ? toolStarts.get(id) : undefined;
|
|
276
|
+
if (id) toolStarts.delete(id);
|
|
277
|
+
cbs.onToolEnd?.(
|
|
278
|
+
event.toolName || "tool",
|
|
279
|
+
id || undefined,
|
|
280
|
+
typeof rawIsError === "boolean" ? rawIsError : undefined,
|
|
281
|
+
toolResultText(event.result),
|
|
282
|
+
startedAt == null ? undefined : Math.max(0, Date.now() - startedAt),
|
|
283
|
+
);
|
|
262
284
|
} else if (event.type === "message_end") {
|
|
263
285
|
if (event.message?.role === "assistant"
|
|
264
286
|
&& (event.message.stopReason === "error" || event.message.stopReason === "aborted")) {
|
|
@@ -144,11 +144,11 @@ export function compactWidgetsEnabled(viewMode: "compact" | "off"): boolean {
|
|
|
144
144
|
|
|
145
145
|
type PanelResources = ReturnType<typeof createPanelResources>;
|
|
146
146
|
|
|
147
|
-
/** Register the
|
|
147
|
+
/** Register the 2s recovery/elapsed ticker; live events request immediate renders. */
|
|
148
148
|
export function attachFleetDashboardTicker(
|
|
149
149
|
resources: PanelResources,
|
|
150
150
|
requestRender: () => void,
|
|
151
|
-
intervalMs =
|
|
151
|
+
intervalMs = 2000,
|
|
152
152
|
): () => void {
|
|
153
153
|
resources.every(intervalMs, requestRender);
|
|
154
154
|
return () => resources.dispose();
|
|
@@ -60,7 +60,7 @@ export function renderFleetDashboard(vm: FleetViewModel, width: number, bodyHeig
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
lines.push(theme.fg("dim", "╰" + "─".repeat(Math.max(0, w - 2)) + "╯"));
|
|
63
|
-
lines.push(ellipsis(theme.fg("dim", vm.confirmation ?? "↑↓ select · Enter open · x kill · r restart · c continue · f filter · a all · q close"), w));
|
|
63
|
+
lines.push(ellipsis(theme.fg("dim", vm.confirmation ?? "↑↓ select · Enter open · m substitute · x kill · r restart · c continue · f filter · a all · q close"), w));
|
|
64
64
|
return lines.slice(0, body + FLEET_CHROME_ROWS).concat(Array(Math.max(0, body + FLEET_CHROME_ROWS - lines.length)).fill(""));
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -76,6 +76,7 @@ export interface DashboardControllerState {
|
|
|
76
76
|
export type DashboardIntent =
|
|
77
77
|
| null
|
|
78
78
|
| "close"
|
|
79
|
+
| "substitute"
|
|
79
80
|
| { open: string }
|
|
80
81
|
| { kill: string }
|
|
81
82
|
| { restart: string };
|
|
@@ -124,6 +125,7 @@ export function dashboardTransition(
|
|
|
124
125
|
state.showFinished = !state.showFinished;
|
|
125
126
|
return null;
|
|
126
127
|
}
|
|
128
|
+
if (input === "m" || input === "M") return "substitute";
|
|
127
129
|
if (input === "\r" && selected) return { open: selected.key };
|
|
128
130
|
if (input === "x" || input === "r") {
|
|
129
131
|
if (!selected) return null;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { FleetRow } from "./fleet-read-model.ts";
|
|
2
2
|
import type { ThemeLike } from "./fleet-dashboard-view.ts";
|
|
3
3
|
|
|
4
|
-
export interface TimelineEntry {
|
|
4
|
+
export interface TimelineEntry {
|
|
5
|
+
kind: "text" | "tool" | "thinking" | "tool-start" | "tool-result";
|
|
6
|
+
title: string;
|
|
7
|
+
content: string;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
callId?: string;
|
|
10
|
+
status?: "success" | "error";
|
|
11
|
+
durationMs?: number;
|
|
12
|
+
}
|
|
5
13
|
export interface PiModelSummary { provider?: unknown; id?: unknown; name?: unknown; }
|
|
6
14
|
export interface FleetModelChoice { spec: string; label: string; }
|
|
7
15
|
export interface FleetModelPickerState { index: number; scrollOffset: number; }
|
|
@@ -25,8 +33,9 @@ export function fleetModelChoices(models: readonly PiModelSummary[], current?: s
|
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
/** Render the model picker in the same full-screen layer as Fleet Detail. */
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
function renderChoicePicker(
|
|
37
|
+
heading: string,
|
|
38
|
+
footer: string,
|
|
30
39
|
choices: readonly FleetModelChoice[],
|
|
31
40
|
state: FleetModelPickerState,
|
|
32
41
|
width: number,
|
|
@@ -42,16 +51,50 @@ export function renderFleetModelPicker(
|
|
|
42
51
|
return selected ? theme.fg("accent", theme.bold(line)) : line;
|
|
43
52
|
});
|
|
44
53
|
const lines = [
|
|
45
|
-
theme.bold(trim(
|
|
54
|
+
theme.bold(trim(heading, w)),
|
|
46
55
|
theme.fg("dim", "╭" + "─".repeat(Math.max(0, w - 2)) + "╮"),
|
|
47
56
|
...rows,
|
|
48
57
|
...Array(Math.max(0, body - rows.length)).fill(""),
|
|
49
58
|
theme.fg("dim", "╰" + "─".repeat(Math.max(0, w - 2)) + "╯"),
|
|
50
|
-
theme.fg("dim",
|
|
59
|
+
theme.fg("dim", footer),
|
|
51
60
|
];
|
|
52
61
|
return lines.slice(0, body + DETAIL_CHROME_ROWS).concat(Array(Math.max(0, body + DETAIL_CHROME_ROWS - lines.length)).fill(""));
|
|
53
62
|
}
|
|
54
63
|
|
|
64
|
+
export function renderFleetModelPicker(
|
|
65
|
+
title: string,
|
|
66
|
+
choices: readonly FleetModelChoice[],
|
|
67
|
+
state: FleetModelPickerState,
|
|
68
|
+
width: number,
|
|
69
|
+
bodyHeight: number,
|
|
70
|
+
theme: ThemeLike,
|
|
71
|
+
): string[] {
|
|
72
|
+
return renderChoicePicker(
|
|
73
|
+
` Model for ${title} · next run · ${choices.length} available`,
|
|
74
|
+
"↑↓ select · PgUp/PgDn page · Home/End · Enter apply · Esc cancel",
|
|
75
|
+
choices, state, width, bodyHeight, theme,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Render either step of the session-wide source → target substitution flow. */
|
|
80
|
+
export function renderFleetSubstitutionPicker(
|
|
81
|
+
stage: "source" | "target",
|
|
82
|
+
source: string | undefined,
|
|
83
|
+
choices: readonly FleetModelChoice[],
|
|
84
|
+
state: FleetModelPickerState,
|
|
85
|
+
width: number,
|
|
86
|
+
bodyHeight: number,
|
|
87
|
+
theme: ThemeLike,
|
|
88
|
+
): string[] {
|
|
89
|
+
const heading = stage === "source"
|
|
90
|
+
? ` Substitute model · 1/2 choose configured source · ${choices.length} known`
|
|
91
|
+
: ` Substitute ${source ?? "model"} · 2/2 choose available target · ${choices.length} available`;
|
|
92
|
+
const footer = stage === "source"
|
|
93
|
+
? "↑↓ select · PgUp/PgDn page · Home/End · Enter next · Esc cancel"
|
|
94
|
+
: "↑↓ select · PgUp/PgDn page · Home/End · Enter apply · Esc back";
|
|
95
|
+
return renderChoicePicker(heading, footer, choices, state, width, bodyHeight, theme);
|
|
96
|
+
}
|
|
97
|
+
|
|
55
98
|
export type FleetDetailKey = "up" | "down" | "pageUp" | "pageDown" | "home" | "end" | "enter" | "escape" | "copy";
|
|
56
99
|
|
|
57
100
|
/** Convert a key identified by Pi's matcher into the detail controller's stable input. */
|
|
@@ -93,41 +136,112 @@ export function modelPickerTransition(
|
|
|
93
136
|
return null;
|
|
94
137
|
}
|
|
95
138
|
|
|
96
|
-
|
|
139
|
+
const isToolEntry = (entry: TimelineEntry | undefined) => entry?.kind === "tool" || entry?.kind === "tool-start" || entry?.kind === "tool-result";
|
|
140
|
+
|
|
141
|
+
function wrapPlainText(value: string, width: number): string[] {
|
|
142
|
+
const max = Math.max(1, width);
|
|
143
|
+
const output: string[] = [];
|
|
144
|
+
for (const sourceLine of value.split(/\r?\n/)) {
|
|
145
|
+
if (!sourceLine) { output.push(""); continue; }
|
|
146
|
+
let rest = sourceLine;
|
|
147
|
+
while (Array.from(rest).length > max) {
|
|
148
|
+
const chars = Array.from(rest);
|
|
149
|
+
let cut = max;
|
|
150
|
+
for (let i = max; i > Math.floor(max / 2); i--) if (/\s/.test(chars[i] ?? "")) { cut = i; break; }
|
|
151
|
+
output.push(chars.slice(0, cut).join("").trimEnd());
|
|
152
|
+
rest = chars.slice(cut).join("").trimStart();
|
|
153
|
+
}
|
|
154
|
+
output.push(rest);
|
|
155
|
+
}
|
|
156
|
+
return output;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function durationLabel(ms: number | undefined): string {
|
|
160
|
+
if (ms == null || !Number.isFinite(ms)) return "";
|
|
161
|
+
return ms < 1000 ? `${Math.max(0, Math.round(ms))}ms` : `${(Math.max(0, ms) / 1000).toFixed(2).replace(/0+$/, "").replace(/\.$/, "")}s`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function detailEntryLines(entry: TimelineEntry, index: number, width: number, expandedIndex: number | null, verbose: boolean, selectedIndex?: number): string[] {
|
|
97
165
|
const w = Math.max(1, width);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
166
|
+
const icon = isToolEntry(entry) ? (entry.kind === "tool-result" ? "◂" : "▸") : entry.kind === "thinking" ? "·" : "•";
|
|
167
|
+
const selected = index === selectedIndex ? "›" : " ";
|
|
168
|
+
const meta = entry.kind === "tool-result"
|
|
169
|
+
? ` [${[entry.status, durationLabel(entry.durationMs)].filter(Boolean).join(" · ")}]`
|
|
170
|
+
: "";
|
|
171
|
+
if (!verbose) {
|
|
172
|
+
if (index === expandedIndex && isToolEntry(entry)) return [trim(`${selected}${icon} ${entry.title}${meta}`, w), ...entry.content.split(/\r?\n/).map(line => ` ${trim(line, Math.max(0, w - 3))}`)];
|
|
173
|
+
return [trim(`${selected}${icon} ${entry.title}${meta} ${entry.content.replace(/\s+/g, " ")}`, w)];
|
|
174
|
+
}
|
|
175
|
+
const heading = trim(`${selected}${icon} ${entry.title}`, w);
|
|
176
|
+
const metadata = meta ? wrapPlainText(meta.trim(), Math.max(1, w - 3)).map(line => trim(` ${line}`, w)) : [];
|
|
177
|
+
const payload = wrapPlainText(entry.content, Math.max(1, w - 3)).map(line => trim(` ${line}`, w));
|
|
178
|
+
return [heading, ...metadata, ...payload];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface DetailEntryOffset { index: number; start: number; end: number; }
|
|
182
|
+
|
|
183
|
+
/** Locate each logical event inside its wrapped visual lines. */
|
|
184
|
+
export function detailEntryOffsets(timeline: readonly TimelineEntry[], width: number, expandedIndex: number | null, verbose: boolean): DetailEntryOffset[] {
|
|
185
|
+
const offsets: DetailEntryOffset[] = [];
|
|
186
|
+
let cursor = 0;
|
|
187
|
+
for (let index = 0; index < timeline.length; index++) {
|
|
188
|
+
const length = detailEntryLines(timeline[index], index, width, expandedIndex, verbose).length;
|
|
189
|
+
offsets.push({ index, start: cursor, end: cursor + length });
|
|
190
|
+
cursor += length;
|
|
191
|
+
}
|
|
192
|
+
return offsets;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function detailContent(timeline: readonly TimelineEntry[], width: number, expandedIndex: number | null, verbose = false, selectedIndex?: number): string[] {
|
|
196
|
+
return timeline.flatMap((entry, index) => detailEntryLines(entry, index, width, expandedIndex, verbose, selectedIndex));
|
|
103
197
|
}
|
|
104
198
|
|
|
105
199
|
/** Render a constant-height transcript detail screen, including the no-local-peer notice. */
|
|
106
|
-
export function renderFleetDetail(row: FleetRow, timeline: readonly TimelineEntry[], scrollOffset: number, width: number, bodyHeight: number, theme: ThemeLike, expandedIndex: number | null = null): string[] {
|
|
200
|
+
export function renderFleetDetail(row: FleetRow, timeline: readonly TimelineEntry[], scrollOffset: number, width: number, bodyHeight: number, theme: ThemeLike, expandedIndex: number | null = null, verbose = false, selectedIndex?: number): string[] {
|
|
107
201
|
const w = Math.max(1, width), body = Math.max(0, bodyHeight);
|
|
108
|
-
const
|
|
202
|
+
const mode = verbose ? "Verbose" : "Compact";
|
|
203
|
+
const header = trim(` ${row.name} · ${mode} · ${row.status} · ${row.kind} · ${row.model} · ${row.backend} · ${row.contextPct == null ? "context automatic" : `${Math.round(row.contextPct)}%`} · ${Math.round(row.elapsed / 1000)}s · ${row.toolCount ?? "—"} tools`, w);
|
|
109
204
|
const lines = [theme.bold(header), theme.fg("dim", "╭" + "─".repeat(Math.max(0, w - 2)) + "╮")];
|
|
110
205
|
if (!row.hasTimeline) lines.push(...Array.from({ length: body }, (_, i) => i === 0 ? theme.fg("dim", " no local transcript for this coms peer") : ""));
|
|
111
206
|
else {
|
|
112
|
-
const content = detailContent(timeline, w, expandedIndex);
|
|
207
|
+
const content = detailContent(timeline, w, expandedIndex, verbose, selectedIndex);
|
|
113
208
|
const offset = Math.max(0, Math.min(scrollOffset, Math.max(0, content.length - body)));
|
|
114
209
|
lines.push(...content.slice(offset, offset + body), ...Array(Math.max(0, body - content.slice(offset, offset + body).length)).fill(""));
|
|
115
210
|
}
|
|
116
211
|
lines.push(theme.fg("dim", "╰" + "─".repeat(Math.max(0, w - 2)) + "╯"));
|
|
117
212
|
const modelHint = row.kind === "peer" ? "" : " · m model";
|
|
118
|
-
lines.push(theme.fg("dim", `↑↓ scroll · PgUp/PgDn page · End tail · Enter expand tool · Ctrl+C copy${modelHint} · Esc dashboard`));
|
|
213
|
+
lines.push(theme.fg("dim", `↑↓ scroll · PgUp/PgDn page · End tail · Enter expand tool · v ${verbose ? "compact" : "verbose"} · Ctrl+C copy${modelHint} · Esc dashboard`));
|
|
119
214
|
return lines.slice(0, body + DETAIL_CHROME_ROWS).concat(Array(Math.max(0, body + DETAIL_CHROME_ROWS - lines.length)).fill(""));
|
|
120
215
|
}
|
|
121
216
|
|
|
122
217
|
/** Pure state transitions used by the harness detail controller. */
|
|
123
|
-
export function detailTransition(
|
|
124
|
-
|
|
218
|
+
export function detailTransition(
|
|
219
|
+
input: string,
|
|
220
|
+
state: { scrollOffset: number; selectedIndex: number; expandedIndex: number | null; followTail: boolean; verbose?: boolean },
|
|
221
|
+
timeline: readonly TimelineEntry[],
|
|
222
|
+
bodyHeight: number,
|
|
223
|
+
contentLength = timeline.length,
|
|
224
|
+
offsets?: readonly DetailEntryOffset[],
|
|
225
|
+
): "close" | "copy" | "model" | null {
|
|
226
|
+
const viewport = Math.max(1, bodyHeight);
|
|
227
|
+
const max = Math.max(0, contentLength - viewport);
|
|
125
228
|
if (input === "\u001b" || input === "q") return "close";
|
|
126
229
|
if (input === "\u0003") return "copy";
|
|
127
230
|
if (input === "m") return "model";
|
|
128
|
-
if (input === "
|
|
129
|
-
if (input === "\
|
|
231
|
+
if (input === "v") { state.verbose = !state.verbose; state.followTail = true; return null; }
|
|
232
|
+
if (input === "\u001b[F") { state.followTail = true; state.scrollOffset = max; state.selectedIndex = Math.max(0, timeline.length - 1); return null; }
|
|
233
|
+
if (input === "\u001b[H") { state.followTail = false; state.scrollOffset = 0; state.selectedIndex = 0; return null; }
|
|
234
|
+
if (input === "\r") { if (isToolEntry(timeline[state.selectedIndex])) state.expandedIndex = state.expandedIndex === state.selectedIndex ? null : state.selectedIndex; return null; }
|
|
130
235
|
const delta = input === "\u001b[A" || input === "k" ? -1 : input === "\u001b[B" || input === "j" ? 1 : input === "\u001b[5~" ? -bodyHeight : input === "\u001b[6~" ? bodyHeight : 0;
|
|
131
|
-
if (delta) {
|
|
236
|
+
if (delta) {
|
|
237
|
+
state.followTail = false;
|
|
238
|
+
state.selectedIndex = Math.max(0, Math.min(Math.max(0, timeline.length - 1), state.selectedIndex + delta));
|
|
239
|
+
const selected = offsets?.[state.selectedIndex];
|
|
240
|
+
if (selected) {
|
|
241
|
+
if (selected.start < state.scrollOffset) state.scrollOffset = selected.start;
|
|
242
|
+
else if (selected.start >= state.scrollOffset + viewport) state.scrollOffset = selected.start - viewport + 1;
|
|
243
|
+
} else state.scrollOffset += delta;
|
|
244
|
+
state.scrollOffset = Math.max(0, Math.min(max, state.scrollOffset));
|
|
245
|
+
}
|
|
132
246
|
return null;
|
|
133
247
|
}
|