@mmerterden/multi-agent-pipeline 20.44.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/README.md +31 -35
- package/README.tr.md +30 -34
- package/SECURITY.md +4 -4
- package/docs/architecture.md +6 -6
- package/docs/ecosystem.md +35 -30
- package/docs/facts.json +10 -8
- package/docs/features.md +6 -5
- package/index.js +1 -1
- package/install/_common.mjs +5 -1
- package/install/_mcp-register.mjs +80 -5
- package/install/_plugin-skills.mjs +1 -1
- package/install/_unattended-profile.mjs +12 -3
- package/install/claude.mjs +45 -4
- package/install/codex.mjs +2 -2
- package/install/index.mjs +49 -9
- package/install/templates/claude-hooks.json +2 -2
- package/install/templates/codex-instructions.md +1 -1
- package/install/templates/copilot-instructions.md +7 -7
- package/manifest.json +404 -404
- package/package.json +4 -4
- package/pipeline/agents/security-auditor.md +2 -2
- package/pipeline/agents/test-gen-analyst.md +1 -1
- package/pipeline/commands/archive-guard.md +6 -6
- package/pipeline/commands/multi-agent/SKILL.md +23 -2
- package/pipeline/commands/multi-agent/analysis/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/analysis-jira/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/autopilot-off/SKILL.md +10 -6
- package/pipeline/commands/multi-agent/bug-bash/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/channels/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/complaint-analysis/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/create-jira/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/design-check/SKILL.md +9 -1
- package/pipeline/commands/multi-agent/issue/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/jira/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/kill/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/office-off/SKILL.md +3 -4
- package/pipeline/commands/multi-agent/office-on/SKILL.md +2 -6
- package/pipeline/commands/multi-agent/office-status/SKILL.md +1 -6
- package/pipeline/commands/multi-agent/prune-logs/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/purge/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/refactor/SKILL.md +16 -8
- package/pipeline/commands/multi-agent/research/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/resume/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/review/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/review-analysis/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/review-issue/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/review-jira/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/review-priority/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/route-on/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/routines/SKILL.md +36 -14
- package/pipeline/commands/multi-agent/save/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/scaffold/SKILL.md +8 -0
- package/pipeline/commands/multi-agent/search/SKILL.md +4 -4
- package/pipeline/commands/multi-agent/security-review/SKILL.md +9 -4
- package/pipeline/commands/multi-agent/setup/SKILL.md +7 -2
- package/pipeline/commands/multi-agent/store-ready/SKILL.md +5 -3
- package/pipeline/commands/multi-agent/sync/SKILL.md +20 -12
- package/pipeline/commands/multi-agent/test/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/test-accessibility/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/test-dark-mode/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/test-dynamic-type/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/test-gen/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/test-screenshots/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/testflight-validation/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/uninstall/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/update/SKILL.md +9 -2
- package/pipeline/commands/sim-test.md +5 -5
- package/pipeline/contract/CHANGELOG.md +49 -0
- package/pipeline/contract/README.md +34 -29
- package/pipeline/contract/build.mjs +0 -5
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/manifest.json +62 -122
- package/pipeline/contract/types/index.d.ts +97 -49
- package/pipeline/lib/credential-inventory.sh +3 -2
- package/pipeline/lib/cross-repo.mjs +11 -6
- package/pipeline/lib/fetch-crashlytics.sh +5 -2
- package/pipeline/lib/mcp-rename.mjs +508 -0
- package/pipeline/lib/model-dispatch.sh +1 -1
- package/pipeline/lib/office-legacy.mjs +207 -0
- package/pipeline/lib/outbound-gate.mjs +8 -2
- package/pipeline/lib/route-state.sh +2 -2
- package/pipeline/lib/routine-secret-scan.mjs +166 -0
- package/pipeline/lib/toolkit-llm.sh +12 -10
- package/pipeline/lib/unattended.mjs +1 -1
- package/pipeline/lib/unattended.sh +1 -1
- package/pipeline/lib/untrusted-fence.mjs +1 -1
- package/pipeline/lib/usage-endpoint.mjs +32 -0
- package/pipeline/lib/usage-token.mjs +76 -0
- package/pipeline/multi-agent-refs/_input-parser.md +22 -0
- package/pipeline/multi-agent-refs/analysis/locked.md +1 -1
- package/pipeline/multi-agent-refs/android-guide.md +2 -2
- package/pipeline/multi-agent-refs/audit-guide.md +1 -1
- package/pipeline/multi-agent-refs/complaint-analysis/phases.md +1 -1
- package/pipeline/multi-agent-refs/cross-cli-contract.md +20 -18
- package/pipeline/multi-agent-refs/design-check/build-launch.md +2 -2
- package/pipeline/multi-agent-refs/design-check/compare.md +2 -2
- package/pipeline/multi-agent-refs/design-check/drive-capture.md +1 -1
- package/pipeline/multi-agent-refs/design-check/export.md +1 -1
- package/pipeline/multi-agent-refs/design-check/init-inventory.md +2 -2
- package/pipeline/multi-agent-refs/design-check/mcp-currency-gate.md +4 -4
- package/pipeline/multi-agent-refs/design-check/scope-and-ledger.md +1 -1
- package/pipeline/multi-agent-refs/features/build-facts.md +115 -0
- package/pipeline/multi-agent-refs/features/code-graph.md +8 -8
- package/pipeline/multi-agent-refs/features/code-intelligence.md +5 -5
- package/pipeline/multi-agent-refs/features/design-conformance.md +4 -4
- package/pipeline/multi-agent-refs/features/doctor.md +43 -4
- package/pipeline/multi-agent-refs/features/exploratory-testing.md +1 -1
- package/pipeline/multi-agent-refs/features/external-context-injection.md +1 -1
- package/pipeline/multi-agent-refs/features/free-models.md +5 -5
- package/pipeline/multi-agent-refs/features/office-threat-model.md +9 -32
- package/pipeline/multi-agent-refs/features/plan-attachment.md +55 -0
- package/pipeline/multi-agent-refs/features/product-context.md +1 -1
- package/pipeline/multi-agent-refs/features/routine-sharing.md +196 -0
- package/pipeline/multi-agent-refs/features/security-audit.md +3 -3
- package/pipeline/multi-agent-refs/features/test-classification.md +2 -2
- package/pipeline/multi-agent-refs/features/unattended-gates.md +1 -1
- package/pipeline/multi-agent-refs/features/unattended-security.md +8 -23
- package/pipeline/multi-agent-refs/features/usage-reporting.md +172 -4
- package/pipeline/multi-agent-refs/features/visual-evidence.md +1 -1
- package/pipeline/multi-agent-refs/help/en.md +138 -274
- package/pipeline/multi-agent-refs/help/tr.md +140 -274
- package/pipeline/multi-agent-refs/keychain.md +2 -2
- package/pipeline/multi-agent-refs/knowledge.md +4 -4
- package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +3 -3
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -0
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +2 -2
- package/pipeline/multi-agent-refs/phases/modes.md +17 -0
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +21 -2
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +8 -5
- package/pipeline/multi-agent-refs/phases/phase-2-dev.md +2 -2
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +4 -4
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +10 -0
- package/pipeline/multi-agent-refs/refactor/sweep.md +4 -4
- package/pipeline/multi-agent-refs/refactor/toolkit-research.md +1 -1
- package/pipeline/multi-agent-refs/research/engine.md +1 -1
- package/pipeline/multi-agent-refs/rules.md +2 -2
- package/pipeline/multi-agent-refs/setup/app-store-connect.md +2 -2
- package/pipeline/multi-agent-refs/setup/firebase.md +3 -2
- package/pipeline/multi-agent-refs/setup/google-play.md +1 -1
- package/pipeline/multi-agent-refs/setup/token-save-flow.md +3 -2
- package/pipeline/multi-agent-refs/store-ready/gate-1-static.md +12 -2
- package/pipeline/multi-agent-refs/store-ready/gate-3-policy.md +3 -3
- package/pipeline/multi-agent-refs/store-ready/gates.md +2 -1
- package/pipeline/multi-agent-refs/store-ready/report.md +10 -1
- package/pipeline/multi-agent-refs/swiftui-guide.md +2 -2
- package/pipeline/multi-agent-refs/sync/codex.md +1 -1
- package/pipeline/multi-agent-refs/sync/dev-toolkit.md +5 -5
- package/pipeline/multi-agent-refs/sync/overview.md +2 -2
- package/pipeline/multi-agent-refs/sync/stack-plugins.md +2 -2
- package/pipeline/multi-agent-refs/tracker-contract.md +1 -1
- package/pipeline/multi-agent-refs/unattended-contract.md +1 -2
- package/pipeline/multi-agent-refs/web-guide.md +2 -2
- package/pipeline/office/index.html +645 -144
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/preferences-template.json +6 -6
- package/pipeline/rules/figma-pipeline.md +2 -2
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/activity-chat.schema.json +1 -1
- package/pipeline/schemas/activity-roles.schema.json +1 -1
- package/pipeline/schemas/activity.schema.json +1 -1
- package/pipeline/schemas/agent-state.schema.json +36 -2
- package/pipeline/schemas/analysis-output.schema.json +1 -1
- package/pipeline/schemas/answer-request.schema.json +1 -1
- package/pipeline/schemas/answer-result.schema.json +1 -1
- package/pipeline/schemas/autopilot-config.schema.json +1 -1
- package/pipeline/schemas/autopilot-off-request.schema.json +1 -1
- package/pipeline/schemas/autopilot-off.schema.json +1 -1
- package/pipeline/schemas/autopilot-on-request.schema.json +1 -1
- package/pipeline/schemas/autopilot-on.schema.json +1 -1
- package/pipeline/schemas/autopilot-status.schema.json +1 -1
- package/pipeline/schemas/bug-bash-verification.schema.json +1 -1
- package/pipeline/schemas/code-graph.schema.json +1 -1
- package/pipeline/schemas/command-parameters.schema.json +1 -1
- package/pipeline/schemas/constitution.schema.json +1 -1
- package/pipeline/schemas/contract-error.schema.json +6 -13
- package/pipeline/schemas/criteria-manifest.schema.json +1 -1
- package/pipeline/schemas/design-check-config.schema.json +1 -1
- package/pipeline/schemas/diff-risk.schema.json +1 -1
- package/pipeline/schemas/disk-clean-request.schema.json +1 -1
- package/pipeline/schemas/disk-clean.schema.json +1 -1
- package/pipeline/schemas/doctor-report.schema.json +1 -1
- package/pipeline/schemas/explore-run.schema.json +1 -1
- package/pipeline/schemas/figma-project-config.schema.json +1 -1
- package/pipeline/schemas/gc-request.schema.json +1 -1
- package/pipeline/schemas/gc.schema.json +1 -1
- package/pipeline/schemas/issue-maturity.schema.json +1 -1
- package/pipeline/schemas/issues.schema.json +1 -1
- package/pipeline/schemas/job-change.schema.json +1 -1
- package/pipeline/schemas/job-request.schema.json +1 -1
- package/pipeline/schemas/kill-request.schema.json +1 -1
- package/pipeline/schemas/kill.schema.json +1 -1
- package/pipeline/schemas/launch-plan.schema.json +1 -1
- package/pipeline/schemas/launch-request.schema.json +2 -2
- package/pipeline/schemas/launch.schema.json +1 -1
- package/pipeline/schemas/learnings-ledger.schema.json +1 -1
- package/pipeline/schemas/ledger.schema.json +1 -1
- package/pipeline/schemas/office-archive.schema.json +2 -2
- package/pipeline/schemas/office-credentials.schema.json +1 -1
- package/pipeline/schemas/office-jobs.schema.json +1 -1
- package/pipeline/schemas/office-memory.schema.json +1 -1
- package/pipeline/schemas/office-server-room.schema.json +1 -1
- package/pipeline/schemas/office-settings-request.schema.json +1 -1
- package/pipeline/schemas/office-settings.schema.json +1 -1
- package/pipeline/schemas/permissions.schema.json +1 -1
- package/pipeline/schemas/phases.json +4 -4
- package/pipeline/schemas/phases.schema.json +1 -1
- package/pipeline/schemas/plan-critique.schema.json +1 -1
- package/pipeline/schemas/planning-output.schema.json +1 -1
- package/pipeline/schemas/pr-reach.schema.json +1 -1
- package/pipeline/schemas/pr-request.schema.json +1 -1
- package/pipeline/schemas/prefs.schema.json +40 -18
- package/pipeline/schemas/product-tree-overlay.schema.json +1 -1
- package/pipeline/schemas/product-tree.schema.json +1 -1
- package/pipeline/schemas/prs.schema.json +1 -1
- package/pipeline/schemas/prune-logs-request.schema.json +1 -1
- package/pipeline/schemas/prune-logs.schema.json +1 -1
- package/pipeline/schemas/repo-change.schema.json +1 -1
- package/pipeline/schemas/repo-profile.schema.json +1 -1
- package/pipeline/schemas/repo-request.schema.json +1 -1
- package/pipeline/schemas/repos.schema.json +1 -1
- package/pipeline/schemas/research-output.schema.json +1 -1
- package/pipeline/schemas/resume-request.schema.json +1 -1
- package/pipeline/schemas/review-file-exclusions.schema.json +1 -1
- package/pipeline/schemas/review-verdict-request.schema.json +1 -1
- package/pipeline/schemas/review-verdict.schema.json +1 -1
- package/pipeline/schemas/reviewer-output.schema.json +1 -1
- package/pipeline/schemas/route-config.schema.json +2 -2
- package/pipeline/schemas/routine-delete.schema.json +1 -1
- package/pipeline/schemas/routines.schema.json +1 -1
- package/pipeline/schemas/run-evidence.schema.json +1 -1
- package/pipeline/schemas/run-log.schema.json +1 -1
- package/pipeline/schemas/run-questions.schema.json +1 -1
- package/pipeline/schemas/run-results.schema.json +1 -1
- package/pipeline/schemas/runs-index.schema.json +1 -1
- package/pipeline/schemas/scaffold-manifest.schema.json +1 -1
- package/pipeline/schemas/scope-check.schema.json +1 -1
- package/pipeline/schemas/secret-patterns.schema.json +1 -1
- package/pipeline/schemas/security-finding.schema.json +1 -1
- package/pipeline/schemas/service-read.schema.json +1 -1
- package/pipeline/schemas/shared-routine-import-request.schema.json +43 -0
- package/pipeline/schemas/shared-routine-import.schema.json +118 -0
- package/pipeline/schemas/shared-routine.schema.json +79 -0
- package/pipeline/schemas/shared-routines.schema.json +83 -0
- package/pipeline/schemas/skill-catalog.schema.json +1 -1
- package/pipeline/schemas/stack-adapters.schema.json +1 -1
- package/pipeline/schemas/stack-change.schema.json +1 -1
- package/pipeline/schemas/stack-request.schema.json +1 -1
- package/pipeline/schemas/stack.schema.json +1 -1
- package/pipeline/schemas/steer-request.schema.json +1 -1
- package/pipeline/schemas/steer.schema.json +1 -1
- package/pipeline/schemas/system-status.schema.json +2 -2
- package/pipeline/schemas/test-gap.schema.json +1 -1
- package/pipeline/schemas/test-gen-discovery.schema.json +1 -1
- package/pipeline/schemas/test-gen-gaps.schema.json +1 -1
- package/pipeline/schemas/test-gen-inventory.schema.json +1 -1
- package/pipeline/schemas/test-gen-results.schema.json +1 -1
- package/pipeline/schemas/token-budget.json +4 -4
- package/pipeline/schemas/token-budget.schema.json +1 -1
- package/pipeline/schemas/tool-call-request.schema.json +1 -1
- package/pipeline/schemas/tool-call.schema.json +1 -1
- package/pipeline/schemas/toolkit-path-params.json +34 -2
- package/pipeline/schemas/toolkit-path-params.schema.json +2 -2
- package/pipeline/schemas/tools.schema.json +2 -2
- package/pipeline/schemas/triage-corpus.schema.json +1 -1
- package/pipeline/schemas/triage-output.schema.json +1 -1
- package/pipeline/schemas/unattended-policy.json +8 -4
- package/pipeline/schemas/unattended-policy.schema.json +1 -1
- package/pipeline/schemas/unattended-profile.json +8 -6
- package/pipeline/schemas/unattended-profile.schema.json +1 -1
- package/pipeline/schemas/worktrees.schema.json +1 -1
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_contract-routes-ops.mjs +14 -1
- package/pipeline/scripts/_contract-routes-routines.mjs +327 -0
- package/pipeline/scripts/_contract-routes-runs.mjs +4 -47
- package/pipeline/scripts/_guard-probe.mjs +1 -1
- package/pipeline/scripts/_renamed-skills.mjs +20 -8
- package/pipeline/scripts/_sibling-root.mjs +1 -1
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/_user_guard_rules.py +22 -7
- package/pipeline/scripts/autopilot-control.mjs +14 -2
- package/pipeline/scripts/autopilot-loop.mjs +16 -1
- package/pipeline/scripts/autopilot-runner.mjs +37 -12
- package/pipeline/scripts/bulk-read.sh +1 -1
- package/pipeline/scripts/contract-server.mjs +68 -147
- package/pipeline/scripts/cost-table.json +2 -2
- package/pipeline/scripts/doctor.mjs +171 -10
- package/pipeline/scripts/feedback-send.mjs +2 -36
- package/pipeline/scripts/gen-facts.mjs +21 -1
- package/pipeline/scripts/gen-free-hosts.mjs +2 -2
- package/pipeline/scripts/gen-mode-dispatch.mjs +11 -7
- package/pipeline/scripts/graph-hint.mjs +1 -1
- package/pipeline/scripts/health-report.mjs +4 -3
- package/pipeline/scripts/job-launch.mjs +1 -1
- package/pipeline/scripts/launch-request.mjs +12 -25
- package/pipeline/scripts/migrate-prefs.mjs +21 -1
- package/pipeline/scripts/office-archive.mjs +1 -2
- package/pipeline/scripts/office-control.mjs +17 -92
- package/pipeline/scripts/office-server-room.mjs +1 -1
- package/pipeline/scripts/phase0-exit-gate.mjs +1 -1
- package/pipeline/scripts/plan-attachment.mjs +1082 -0
- package/pipeline/scripts/pre-commit-check.sh +4 -0
- package/pipeline/scripts/pre-push-check.sh +1 -1
- package/pipeline/scripts/probe-evidence-capability.sh +1 -1
- package/pipeline/scripts/repo-recommend.mjs +2 -2
- package/pipeline/scripts/routine-registry.mjs +537 -53
- package/pipeline/scripts/routine-share.mjs +442 -0
- package/pipeline/scripts/runs-index.mjs +1 -1
- package/pipeline/scripts/system-status.mjs +8 -2
- package/pipeline/scripts/test-classify.mjs +1 -1
- package/pipeline/scripts/toolkit-tools.mjs +4 -3
- package/pipeline/scripts/unattended_policy.py +18 -5
- package/pipeline/scripts/uninstall.mjs +71 -28
- package/pipeline/scripts/usage-access.mjs +384 -0
- package/pipeline/scripts/usage-identity.mjs +81 -14
- package/pipeline/scripts/usage-register.mjs +389 -72
- package/pipeline/scripts/usage-report.mjs +124 -11
- package/pipeline/scripts/work-items.mjs +1 -1
- package/pipeline/scripts/write-store-config.mjs +3 -3
- package/pipeline/skills/.skill-manifest.json +66 -70
- package/pipeline/skills/.skills-index.json +18 -29
- package/pipeline/skills/renamed.json +2 -1
- package/pipeline/skills/shared/README.md +11 -12
- package/pipeline/skills/shared/core/apple-archive-compliance/SKILL.md +14 -14
- package/pipeline/skills/shared/core/apple-archive-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/apple-archive-compliance/references/version-history.md +3 -3
- package/pipeline/skills/shared/core/google-play-compliance/SKILL.md +1 -1
- package/pipeline/skills/shared/core/google-play-compliance/references/notes.md +1 -1
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +14 -4
- package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-analysis-jira/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-autopilot-off/SKILL.md +6 -3
- package/pipeline/skills/shared/core/multi-agent-bug-bash/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-complaint-analysis/SKILL.md +9 -1
- package/pipeline/skills/shared/core/multi-agent-create-jira/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-design-check/SKILL.md +13 -5
- package/pipeline/skills/shared/core/multi-agent-graph/SKILL.md +6 -6
- package/pipeline/skills/shared/core/multi-agent-help/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-issue/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-jira/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-kill/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-office-off/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-office-on/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-office-status/SKILL.md +2 -4
- package/pipeline/skills/shared/core/multi-agent-purge/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-refactor/SKILL.md +16 -8
- package/pipeline/skills/shared/core/multi-agent-research/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-resume/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-review/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-review-analysis/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-review-issue/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-review-jira/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-review-priority/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-route-on/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-routines/SKILL.md +17 -6
- package/pipeline/skills/shared/core/multi-agent-save/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-scaffold/SKILL.md +8 -0
- package/pipeline/skills/shared/core/multi-agent-search/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-security-review/SKILL.md +6 -5
- package/pipeline/skills/shared/core/multi-agent-setup/SKILL.md +7 -2
- package/pipeline/skills/shared/core/multi-agent-store-ready/SKILL.md +20 -8
- package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +18 -10
- package/pipeline/skills/shared/core/multi-agent-test/SKILL.md +5 -3
- package/pipeline/skills/shared/core/multi-agent-test-accessibility/SKILL.md +5 -3
- package/pipeline/skills/shared/core/multi-agent-test-dark-mode/SKILL.md +5 -3
- package/pipeline/skills/shared/core/multi-agent-test-dynamic-type/SKILL.md +5 -3
- package/pipeline/skills/shared/core/multi-agent-test-gen/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-test-screenshots/SKILL.md +5 -3
- package/pipeline/skills/shared/core/multi-agent-testflight-validation/SKILL.md +7 -4
- package/pipeline/skills/shared/core/multi-agent-update/SKILL.md +70 -17
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +2 -2
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +23 -23
- package/pipeline/skills/shared/external/e2e-testing/evals/evals.json +1 -1
- package/pipeline/skills/shared/external/e2e-testing/references/document-fixtures.md +6 -6
- package/pipeline/skills/shared/external/free-llm-apis/SKILL.md +2 -2
- package/pipeline/skills/shared/external/handle-request/SKILL.md +1 -1
- package/pipeline/skills/shared/external/hig-app-icons/SKILL.md +2 -2
- package/pipeline/skills/shared/external/hig-app-icons/references/icon-workflow.md +1 -1
- package/pipeline/skills/shared/external/ios-design-review/SKILL.md +12 -12
- package/pipeline/skills/shared/external/ios-design-review/evals/evals.json +1 -1
- package/pipeline/skills/shared/external/ios-design-review/references/appearance-matrix.md +17 -17
- package/pipeline/skills/shared/external/ios-design-review/references/checklist.md +1 -1
- package/pipeline/skills/shared/external/ios-simulator-debugging/SKILL.md +5 -5
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +4 -4
- package/pipeline/skills/shared/external/release-video/SKILL.md +10 -10
- package/pipeline/skills/shared/external/release-video/evals/evals.json +8 -8
- package/pipeline/skills/shared/external/reverse-engineer-own-app/SKILL.md +231 -0
- package/pipeline/skills/shared/external/reverse-engineer-own-app/evals/evals.json +43 -0
- package/pipeline/skills/shared/external/security-review/SKILL.md +2 -2
- package/pipeline/skills/shared/external/security-review/references/owasp-mobile-top10-2024.md +1 -1
- package/pipeline/skills/shared/external/security-review/references/owasp-web-api-top10-2021.md +1 -1
- package/pipeline/skills/shared/external/short-video-craft/SKILL.md +20 -20
- package/pipeline/skills/shared/external/short-video-craft/evals/evals.json +3 -3
- package/pipeline/skills/shared/external/short-video-craft/references/generated-defaults.md +2 -2
- package/pipeline/skills/shared/external/signal-community/SKILL.md +6 -6
- package/pipeline/skills/shared/external/test-result-triage/SKILL.md +4 -4
- package/pipeline/skills/shared/external/web-testing/SKILL.md +3 -3
- package/pipeline/skills/shared/external/web-testing/references/testing-examples.md +13 -13
- package/pipeline/skills/skills-index.md +7 -8
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +0 -123
- package/pipeline/commands/multi-agent/office-pair/SKILL.md +0 -89
- package/pipeline/contract/fixtures/error-unsigned.json +0 -5
- package/pipeline/lib/office-remote.mjs +0 -228
- package/pipeline/lib/qr-code.mjs +0 -386
- package/pipeline/lib/web-push.mjs +0 -198
- package/pipeline/multi-agent-refs/features/office-remote-protocol.md +0 -319
- package/pipeline/multi-agent-refs/features/phone-api.md +0 -306
- package/pipeline/schemas/phone-devices.schema.json +0 -61
- package/pipeline/schemas/phone-signed-request.schema.json +0 -67
- package/pipeline/scripts/_phone-auth.mjs +0 -485
- package/pipeline/scripts/office-pair.mjs +0 -459
- package/pipeline/scripts/office-push.mjs +0 -613
- package/pipeline/scripts/office-remote-client.mjs +0 -490
- package/pipeline/scripts/phone-devices.mjs +0 -248
- package/pipeline/skills/shared/core/multi-agent-autopilot/SKILL.md +0 -62
- package/pipeline/skills/shared/core/multi-agent-office-pair/SKILL.md +0 -19
package/SECURITY.md
CHANGED
|
@@ -6,15 +6,15 @@ We provide security fixes for the latest minor of the current major. Older versi
|
|
|
6
6
|
|
|
7
7
|
| Version | Supported |
|
|
8
8
|
| ------- | ---------------------- |
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
| ≤
|
|
9
|
+
| 21.x | ✅ active |
|
|
10
|
+
| 20.x | ⚠️ security fixes only |
|
|
11
|
+
| ≤ 19.x | ❌ end-of-life |
|
|
12
12
|
|
|
13
13
|
## Reporting a Vulnerability
|
|
14
14
|
|
|
15
15
|
**Do not open a public GitHub issue for security reports.**
|
|
16
16
|
|
|
17
|
-
Please report vulnerabilities privately via GitHub's [Security Advisory](https://github.com/
|
|
17
|
+
Please report vulnerabilities privately via GitHub's [Security Advisory](https://github.com/multi-agent-ecosystem/multi-agent-pipeline/security/advisories/new) flow. If GitHub Advisories are unavailable to you, email the package owner (see the `author` field of `package.json`) with:
|
|
18
18
|
|
|
19
19
|
- A clear description of the issue and its impact
|
|
20
20
|
- Steps to reproduce (a minimal repro is most helpful)
|
package/docs/architecture.md
CHANGED
|
@@ -115,7 +115,7 @@ graph TB
|
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
subgraph "Pipeline Specs"
|
|
118
|
-
CMD[commands/<br/>
|
|
118
|
+
CMD[commands/<br/>71 command files]
|
|
119
119
|
AGT[agents/<br/>11 agent personas]
|
|
120
120
|
RUL[rules/<br/>13 domain rules]
|
|
121
121
|
PHS[multi-agent-refs/phases/<br/>phase specs + contracts]
|
|
@@ -201,18 +201,18 @@ run behaves as before. Detail:
|
|
|
201
201
|
|
|
202
202
|
`/multi-agent:sync` walks **six** targets: Copilot CLI, Codex CLI, the pipeline
|
|
203
203
|
repo and the website, plus the two independently shipped repos
|
|
204
|
-
(`multi-agent-plugins`, `multi-agent-
|
|
204
|
+
(`multi-agent-plugins`, `multi-agent-mcp`):
|
|
205
205
|
|
|
206
206
|
<!-- facts: commandCount="sub-command skills" commandCount="refs" -->
|
|
207
207
|
```mermaid
|
|
208
208
|
graph TD
|
|
209
209
|
CC["Claude Code<br/>(source of truth)"]
|
|
210
|
-
COP["Copilot CLI<br/>(instructions +
|
|
211
|
-
COD["Codex CLI<br/>(1 router skill +
|
|
210
|
+
COP["Copilot CLI<br/>(instructions + 71 sub-command skills)"]
|
|
211
|
+
COD["Codex CLI<br/>(1 router skill + 71 refs)"]
|
|
212
212
|
REPO["Pipeline Repo<br/>(npm package)"]
|
|
213
213
|
WEB["Website"]
|
|
214
214
|
PLUGREPO["multi-agent-plugins<br/>(6 plugins, own repo)"]
|
|
215
|
-
DTK["multi-agent-
|
|
215
|
+
DTK["multi-agent-mcp<br/>(own repo, own release cadence)"]
|
|
216
216
|
|
|
217
217
|
CC -->|copy + reformat| COP
|
|
218
218
|
CC -->|transform via install.js --codex| COD
|
|
@@ -228,5 +228,5 @@ graph TD
|
|
|
228
228
|
```
|
|
229
229
|
|
|
230
230
|
Full detail on how these three repos compose at install time and at run time -
|
|
231
|
-
including the Phase 2 → plugin dispatch contract and the Phase 3 → multi-agent
|
|
231
|
+
including the Phase 2 → plugin dispatch contract and the Phase 3 → multi-agent MCP
|
|
232
232
|
contract - lives in [`docs/ecosystem.md`](./ecosystem.md).
|
package/docs/ecosystem.md
CHANGED
|
@@ -5,13 +5,13 @@ separately, wired together at install time and at run time:
|
|
|
5
5
|
|
|
6
6
|
| Repo | What it owns | Ships as |
|
|
7
7
|
|---|---|---|
|
|
8
|
-
| **`multi-agent-pipeline`** (this repo) | Orchestration: the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, the <!-- fact:commandCount -->
|
|
8
|
+
| **`multi-agent-pipeline`** (this repo) | Orchestration: the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, the <!-- fact:commandCount -->71<!-- /fact --> slash commands, quality gates, review/triage, cross-CLI parity | npm package (`@mmerterden/multi-agent-pipeline`), installs itself onto Claude Code / Copilot CLI / Codex CLI |
|
|
9
9
|
| **`multi-agent-plugins`** | Stack knowledge: per-platform component/lifecycle skills (iOS, Android, Frontend, Backend) + shared knowledge | Claude Code marketplace, 6 independently-versioned plugins |
|
|
10
|
-
| **`multi-agent-
|
|
10
|
+
| **`multi-agent-mcp`** | The pipeline's hands on devices and browsers: <!-- fact:toolCount -->238<!-- /fact --> MCP tools across <!-- fact:toolFamilyCount -->24<!-- /fact --> families (simulator/emulator control, end-to-end locators and assertions, memory, crash diagnostics, accessibility audit, store compliance and listing lint, web automation and scraping, Figma-vs-mock design audit with contrast checks, code intelligence, a code graph, a learnings ledger, wallet passes, an agent-DSL batch runner, a full-text context index with text-to-image rendering, provider-backed and community research, opt-in social reading, verified hand-off of simple text tasks to free models, video key frames and transcripts, offline security scoring with evidence checks, SARIF export and MCP config launch-selector audits, read-only access to related repositories at their latest branch, travel document fixtures, a voice channel, App Store Connect and Play Console APIs, virtual iPhones, offline facts about builds you own) | npm package, registered as a standard stdio MCP server on every host |
|
|
11
11
|
|
|
12
12
|
None of the three depends on the others at the code level. They compose through two
|
|
13
13
|
narrow contracts: the **Skill tool** (pipeline → plugin, at Phase 2) and the **MCP
|
|
14
|
-
protocol** (pipeline skills → multi-agent-
|
|
14
|
+
protocol** (pipeline skills → multi-agent-mcp, at Phase 3 / design-check / store-ready).
|
|
15
15
|
Either can be swapped or removed without touching the other two's source.
|
|
16
16
|
|
|
17
17
|
<!-- facts: phaseCount="phases" commandCount="commands" -->
|
|
@@ -19,7 +19,7 @@ Either can be swapped or removed without touching the other two's source.
|
|
|
19
19
|
graph LR
|
|
20
20
|
subgraph PIPE ["multi-agent-pipeline (orchestrator)"]
|
|
21
21
|
direction TB
|
|
22
|
-
PHASES["6 phases ·
|
|
22
|
+
PHASES["6 phases · 71 commands"]
|
|
23
23
|
GATES["deterministic gates + review triage"]
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -33,7 +33,7 @@ graph LR
|
|
|
33
33
|
ANAP["ai-analyst-toolkit"]
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
subgraph DTK ["multi-agent-
|
|
36
|
+
subgraph DTK ["multi-agent-mcp (device/browser hands)"]
|
|
37
37
|
direction TB
|
|
38
38
|
DEV["Device Control (59)"]
|
|
39
39
|
MEM["Memory (2)"]
|
|
@@ -70,14 +70,14 @@ only those:
|
|
|
70
70
|
graph TD
|
|
71
71
|
CC["Claude Code<br/>~/.claude/commands/multi-agent/<br/>(source of truth)"]
|
|
72
72
|
|
|
73
|
-
CC -->|"Step 2: copy + reformat<br/>
|
|
74
|
-
CC -->|"Step 2b: transform<br/>(install.js --codex)"| COD["Codex CLI<br/>1 router skill +
|
|
73
|
+
CC -->|"Step 2: copy + reformat<br/>71 sub-command skills"| COP["Copilot CLI<br/>~/.copilot/skills/"]
|
|
74
|
+
CC -->|"Step 2b: transform<br/>(install.js --codex)"| COD["Codex CLI<br/>1 router skill + 71 refs<br/>+ 11 agent TOML"]
|
|
75
75
|
CC -->|"Step 3: genericize<br/>(strip personal data)"| REPO["multi-agent-pipeline repo<br/>pipeline/"]
|
|
76
76
|
CC -->|"Step 4: version + feature sync"| WEB["Website<br/>projects.ts / i18n.tsx"]
|
|
77
77
|
|
|
78
78
|
REPO -->|"Step 3c: build-stack-plugins.mjs<br/>rebuilds knowledge/ from<br/>shared/external"| PLUGREPO["multi-agent-plugins repo<br/>(6 plugins)"]
|
|
79
79
|
|
|
80
|
-
DTK2["multi-agent-
|
|
80
|
+
DTK2["multi-agent-mcp repo<br/>(own codebase, own gates,<br/>NOT generated from Claude)"]
|
|
81
81
|
SYNC3D["Step 3d: detect movement →<br/>gate → commit → publish"]
|
|
82
82
|
CC -.->|"sync only SHIPS this,<br/>never authors it"| SYNC3D
|
|
83
83
|
SYNC3D -.-> DTK2
|
|
@@ -91,13 +91,13 @@ graph TD
|
|
|
91
91
|
style DTK2 fill:#dff,stroke:#333,stroke-dasharray: 5 5
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
**Why `multi-agent-
|
|
95
|
-
from the Claude Code source - sync writes their content. `multi-agent-
|
|
94
|
+
**Why `multi-agent-mcp` is drawn differently.** The other five targets are *derived*
|
|
95
|
+
from the Claude Code source - sync writes their content. `multi-agent-mcp` is not:
|
|
96
96
|
it's a separate codebase developed on its own schedule. Sync's Step 3d only
|
|
97
97
|
*detects* whether it moved (dirty tree, unpushed commits, untagged version), runs
|
|
98
98
|
**its own** gate suite, and ships it - commit, tag, staged publish (section 6). If the pipeline
|
|
99
99
|
needs a tool that toolkit doesn't have yet, that's a two-repo change: add the tool
|
|
100
|
-
in `multi-agent-
|
|
100
|
+
in `multi-agent-mcp`, ship it, then bump the minimum version pin back in
|
|
101
101
|
`cross-cli-contract.md` (see section 4).
|
|
102
102
|
|
|
103
103
|
**Also not generated: the plugins' own authored skills.** `build-stack-plugins.mjs`
|
|
@@ -113,7 +113,7 @@ hand-authored *inside* `multi-agent-plugins` and are never touched by sync.
|
|
|
113
113
|
<!-- facts: skillCount="skills - single authoring source" -->
|
|
114
114
|
```mermaid
|
|
115
115
|
graph TD
|
|
116
|
-
EXT["pipeline/skills/shared/external/<br/>
|
|
116
|
+
EXT["pipeline/skills/shared/external/<br/>171 skills - single authoring source<br/>(the pipeline's own phases read these too)"]
|
|
117
117
|
|
|
118
118
|
EXT -->|"cross-stack skills"| COMMONP["ai-common-toolkit"]
|
|
119
119
|
EXT -->|"outside facts for analysis"| ANAP["ai-analyst-toolkit"]
|
|
@@ -136,7 +136,7 @@ graph TD
|
|
|
136
136
|
style EXT fill:#ffd,stroke:#333
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Together the plugins carry more skills than the <!-- fact:skillCount -->
|
|
139
|
+
Together the plugins carry more skills than the <!-- fact:skillCount -->171<!-- /fact -->-skill source because each
|
|
140
140
|
plugin also carries its own authored `reference/`, `workflow/` and `tools/`
|
|
141
141
|
skills and an `index` router. A vendored knowledge skill ships in exactly one
|
|
142
142
|
plugin: cross-stack skills go to `ai-common-toolkit` rather than into every
|
|
@@ -162,10 +162,10 @@ measurements behind this table):
|
|
|
162
162
|
|
|
163
163
|
| | Claude Code | Copilot CLI | Codex CLI |
|
|
164
164
|
|---|---|---|---|
|
|
165
|
-
| **Pipeline commands** | <!-- fact:commandCount -->
|
|
165
|
+
| **Pipeline commands** | <!-- fact:commandCount -->71<!-- /fact --> slash-command skills, native | <!-- fact:commandCount -->71<!-- /fact --> sub-command skills, `multi-agent-{cmd}` naming, copied in | 1 router skill (`multi-agent`) + <!-- fact:commandCount -->71<!-- /fact --> command specs as reference files - Codex silently truncates its skills block past a few dozen entries, so sub-commands are not peer skills here |
|
|
166
166
|
| **Stack plugins** | Marketplace plugin, loaded natively, resolved by `.claude/settings.json` enabled-list | Enabled plugin's authored skills copied flat into `~/.copilot/skills/`; `knowledge/` **not** re-copied (already delivered via `shared/external`) | Copied as reference files under `~/.codex/multi-agent-refs/skills/`, plugin-prefixed on name clash (e.g. `architecture` → `ai-ios-toolkit-architecture`) |
|
|
167
167
|
| **Component dispatch (Phase 3)** | Marketplace plugin's `create-component`/`create-screen` skill via the Skill tool | No plugin loader - the enabled stack plugin's authored skills (incl. `create-component`) are copied flat into `~/.copilot/skills/` at install time (the old frozen `figma-*` copies are pruned, they were never a fallback) | Not part of the enforced parity axis; classification + state-shape must match, skill *inventory* does not |
|
|
168
|
-
| **multi-agent-
|
|
168
|
+
| **multi-agent-mcp** | `claude mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` | `copilot mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` | `codex mcp add multi-agent -- npx -y @mmerterden/multi-agent-mcp` (skipped with a warning if `codex` isn't on `PATH`) |
|
|
169
169
|
|
|
170
170
|
`smoke-cross-cli-behavior.sh` and `smoke-codex-install.sh` gate the axes that **do**
|
|
171
171
|
have to match (phase labels, placeholder vocabulary, output schemas, command↔skill
|
|
@@ -190,7 +190,7 @@ graph TD
|
|
|
190
190
|
REPORT1 --> P3["Phase 3: Review + user test"]
|
|
191
191
|
|
|
192
192
|
P3 -->|"UI bug hunt / manual-test /<br/>design-check / store-ready"| MCP["MCP tool call over stdio<br/>e.g. ios_xcodebuild, design_visual_compare,<br/>ios_app_store_audit"]
|
|
193
|
-
MCP --> DTKPROC["multi-agent-
|
|
193
|
+
MCP --> DTKPROC["multi-agent-mcp process<br/>(npx @mmerterden/multi-agent-mcp)"]
|
|
194
194
|
DTKPROC -->|"result: screenshot / xcresult ID /<br/>18-rule audit verdict"| P3
|
|
195
195
|
|
|
196
196
|
style DISPATCH fill:#dfd,stroke:#333
|
|
@@ -209,13 +209,13 @@ enabled toolkit's `scaffold` skill writes the skeleton and a `.scaffold.json`
|
|
|
209
209
|
manifest, and the pipeline judges the result with the stack adapter's build,
|
|
210
210
|
test and lint commands before the first commit.
|
|
211
211
|
|
|
212
|
-
**Phase 3 (and design-check / store-ready) → multi-agent-
|
|
212
|
+
**Phase 3 (and design-check / store-ready) → multi-agent-mcp** is a long-lived MCP
|
|
213
213
|
session, not a one-shot call: the same stdio server process answers many tool
|
|
214
214
|
calls across a phase (boot simulator once, then screenshot/tap/screenshot/tap...).
|
|
215
215
|
Several pipeline skills pin a **minimum toolkit version** for a specific tool -
|
|
216
216
|
e.g. `apple-archive-compliance` requires `ios_app_store_audit` from
|
|
217
|
-
`multi-agent-
|
|
218
|
-
`/multi-agent:sync` Step 3d before any multi-agent-
|
|
217
|
+
`multi-agent-mcp ≥ v3.0.0` - enforced in `cross-cli-contract.md` and checked by
|
|
218
|
+
`/multi-agent:sync` Step 3d before any multi-agent-mcp release ships (a version bump
|
|
219
219
|
that drops or renames a tool a pipeline skill depends on is a **major** bump, by
|
|
220
220
|
that step's own contract).
|
|
221
221
|
|
|
@@ -237,24 +237,28 @@ needs `research-community`.
|
|
|
237
237
|
|
|
238
238
|
Detail: [`unattended-security.md`](../pipeline/multi-agent-refs/features/unattended-security.md).
|
|
239
239
|
|
|
240
|
-
### multi-agent-
|
|
240
|
+
### multi-agent-mcp's tools, by category
|
|
241
241
|
|
|
242
|
-
<!-- fact:toolCount -->
|
|
243
|
-
at toolkit <!-- fact:toolkitVersion -->
|
|
242
|
+
<!-- fact:toolCount -->238<!-- /fact --> tools in <!-- fact:toolFamilyCount -->24<!-- /fact --> families, counted from the server's own `tools/list` response
|
|
243
|
+
at toolkit <!-- fact:toolkitVersion -->4.0.0<!-- /fact --> rather than from a README. Three families are defined in
|
|
244
244
|
modules the main file only spreads in, so a count taken from the source reads
|
|
245
245
|
low; the response is the only place the whole surface appears at once. A
|
|
246
246
|
family is the prefix every tool name carries.
|
|
247
247
|
|
|
248
248
|
One naming rule for a toolkit tool: a ref under `pipeline/multi-agent-refs/`
|
|
249
|
-
writes `mcp__multi-
|
|
249
|
+
writes `mcp__multi-agent__<tool>`, the name the host shows, in a call
|
|
250
250
|
instruction, and a prose mention may use the bare tool name. A skill writes
|
|
251
|
-
`multi-agent
|
|
252
|
-
skill body and leaves frontmatter `allowed-tools` alone.
|
|
251
|
+
`multi-agent:<tool>`; `lint-mcp-refs.mjs` rejects the `mcp__` form in a
|
|
252
|
+
skill body and leaves frontmatter `allowed-tools` alone. A skill the
|
|
253
|
+
marketplace plugins are built from (`pipeline/skills/shared/external/`)
|
|
254
|
+
writes `mcp__multi-agent__<tool>` instead, the only name a host lets a model
|
|
255
|
+
call, and the lint rejects `multi-agent:<tool>` there, which reads like a
|
|
256
|
+
skill or a command such as `multi-agent:review`. Both qualified forms
|
|
253
257
|
let `lint-mcp-refs.mjs` check that the tool exists.
|
|
254
258
|
|
|
255
259
|
The families can be narrowed per host: `MCP_TOOLKIT_CAPS` serves only the named
|
|
256
|
-
ones, and unset serves all <!-- fact:toolCount -->
|
|
257
|
-
sees 50 tools instead of <!-- fact:toolCount -->
|
|
260
|
+
ones, and unset serves all <!-- fact:toolCount -->238<!-- /fact -->. A frontend repo that sets `web,code,context`
|
|
261
|
+
sees 50 tools instead of <!-- fact:toolCount -->238<!-- /fact -->, which matters because every registered server's
|
|
258
262
|
tool list is charged against the context window on every turn.
|
|
259
263
|
|
|
260
264
|
| Family | Tools | Primary pipeline consumers |
|
|
@@ -273,6 +277,7 @@ tool list is charged against the context window on every turn.
|
|
|
273
277
|
| `context` | 4 | any skill holding an offloaded payload too large to read; ranks passages instead of grepping lines. `context_render` pages long text into images and reports whether that is cheaper than the text |
|
|
274
278
|
| `pass` | 4 | pass-kit work outside the pipeline; no pipeline phase consumes them |
|
|
275
279
|
| `security` | 5 | `security_cvss_score`, `security_dep_inventory`, `security_evidence_check`, `security_sarif_export`, `security_mcp_config_audit`: the Phase 3 security audit (`security-auditor`) and `/multi-agent:security-review`; offline, no egress |
|
|
280
|
+
| `binary` | 5 | `binary_inspect`, `binary_strings_endpoints`, `binary_compare_versions`, `binary_endpoints_vs_observed`, `binary_js_modules`: optional build facts for `/multi-agent:store-ready` Gate 1 and `/multi-agent:security-review` ([`build-facts.md`](../pipeline/multi-agent-refs/features/build-facts.md)) and the `reverse-engineer-own-app` skill; read-only, offline |
|
|
276
281
|
| `document` | 3 | the `e2e-testing` skill's MRZ and document-scan recipes, `document_pdf_inspect` |
|
|
277
282
|
| `learnings` | 3 | `learnings_search`, `learnings_timeline`, `learnings_get`: the knowledge ledger and `/multi-agent:search` |
|
|
278
283
|
| `research` | 3 | `research_search`, `research_ask`, `research_community`: the research engine, `signal-community`, `/multi-agent:refactor` band E. `research_community` is off unless `MCP_TOOLKIT_CAPS` has `research-community`. Denied in unattended runs and autonomous research |
|
|
@@ -294,10 +299,10 @@ tool list is charged against the context window on every turn.
|
|
|
294
299
|
`create-component`) and dispatch still resolves correctly - the dual-name
|
|
295
300
|
fallback lives in the pipeline, the implementation stays entirely in whichever
|
|
296
301
|
plugin is enabled.
|
|
297
|
-
- **Pipeline ↔ multi-agent-
|
|
302
|
+
- **Pipeline ↔ multi-agent-mcp boundary = MCP protocol, versioned contract.** The
|
|
298
303
|
pipeline never shells out to `xcrun simctl` or `adb` directly; every device/browser
|
|
299
304
|
action is a declared MCP tool call with a minimum-version pin. That's what lets
|
|
300
|
-
`multi-agent-
|
|
305
|
+
`multi-agent-mcp` ship on its own release cadence (its own gates, its own
|
|
301
306
|
`npm publish`) without a pipeline release, as long as pinned tools keep their
|
|
302
307
|
contract.
|
|
303
308
|
- **Neither boundary is symmetric.** The pipeline depends on both other repos being
|
|
@@ -309,7 +314,7 @@ tool list is charged against the context window on every turn.
|
|
|
309
314
|
|
|
310
315
|
## 6. Release step: staged npm publish
|
|
311
316
|
|
|
312
|
-
Both npm packages, the pipeline and `multi-agent-
|
|
317
|
+
Both npm packages, the pipeline and `multi-agent-mcp`, are published
|
|
313
318
|
with `pipeline/scripts/publish-staged.mjs` from a clean checkout of the
|
|
314
319
|
release tag, never with a bare `npm publish`. `latest` then only ever names a
|
|
315
320
|
version the registry was seen to serve and that installed:
|
package/docs/facts.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Generated by pipeline/scripts/gen-facts.mjs. Do not hand-edit: the site reads this, and a number edited here instead of at its source is the drift this file removes.",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
4
|
-
"version": "
|
|
3
|
+
"generatedAt": "2026-11-08",
|
|
4
|
+
"version": "21.0.0",
|
|
5
5
|
"phaseSchema": 2,
|
|
6
6
|
"phases": [
|
|
7
7
|
{
|
|
@@ -35,12 +35,13 @@
|
|
|
35
35
|
"autopilot": [0, 1, 2, 3, 4, 5],
|
|
36
36
|
"analysis": [0, 1, 2, 3, 4, 5]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
38
|
+
"reworkCap": 3,
|
|
39
|
+
"commandCount": 71,
|
|
40
|
+
"skillCount": 171,
|
|
41
|
+
"skillCountAll": 245,
|
|
41
42
|
"agentCount": 11,
|
|
42
43
|
"hosts": ["Claude Code", "Codex CLI", "Copilot CLI"],
|
|
43
|
-
"toolCount":
|
|
44
|
+
"toolCount": 238,
|
|
44
45
|
"toolCategories": {
|
|
45
46
|
"ios": 42,
|
|
46
47
|
"web": 38,
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"media": 7,
|
|
54
55
|
"repo": 6,
|
|
55
56
|
"voice": 6,
|
|
57
|
+
"binary": 5,
|
|
56
58
|
"security": 5,
|
|
57
59
|
"ui": 5,
|
|
58
60
|
"context": 4,
|
|
@@ -66,6 +68,6 @@
|
|
|
66
68
|
"social": 1,
|
|
67
69
|
"test": 1
|
|
68
70
|
},
|
|
69
|
-
"pluginSkillCount":
|
|
70
|
-
"toolkitVersion": "
|
|
71
|
+
"pluginSkillCount": 267,
|
|
72
|
+
"toolkitVersion": "4.0.0"
|
|
71
73
|
}
|
package/docs/features.md
CHANGED
|
@@ -54,7 +54,7 @@ The install is not only useful while `/multi-agent` is running. `rules/outside-t
|
|
|
54
54
|
|
|
55
55
|
- **Onboarded service credentials.** Resolve the logical name through `credential-store.sh` and read the issue, page or log. Writes route through the pipeline commands, which carry the rules that make them safe - issues are never auto-closed, PR bodies use `Ref:`, outward prose goes through the humanizer.
|
|
56
56
|
- **The stack skills enabled for this repo.** Each toolkit's own `index` skill routes. The pipeline reads the effective `enabledPlugins` rather than keeping a stack table, so a seventh toolkit needs no code change.
|
|
57
|
-
- **The `multi-agent
|
|
57
|
+
- **The `multi-agent` MCP.** <!-- fact:toolCount -->238<!-- /fact --> tools, most of them for a running app.
|
|
58
58
|
|
|
59
59
|
Uninstall preserves the whole layer - tokens, the reader that opens them, the mapping that names them, the MCP registration. It is 1.5 kB of always-loaded text; the detail lives in a ref that loads on demand, and a gate keeps both under a ceiling because every byte there is paid by every session.
|
|
60
60
|
|
|
@@ -313,7 +313,7 @@ Detail: [`autopilot-operations.md`](../pipeline/multi-agent-refs/features/autopi
|
|
|
313
313
|
|
|
314
314
|
### Security Base
|
|
315
315
|
|
|
316
|
-
- **Fail-closed guard.** `agent-guard.sh` is the PreToolUse hook on `Bash`, `Edit|Write|NotebookEdit` and `WebFetch|mcp__multi-
|
|
316
|
+
- **Fail-closed guard.** `agent-guard.sh` is the PreToolUse hook on `Bash`, `Edit|Write|NotebookEdit` and `WebFetch|mcp__multi-agent__.*`. Under the variable a Bash command is judged only when it reduces to simple commands joined by `;`, `&&`, `||` and plain pipes between non-interpreter commands; a subshell, group, nested substitution, unquoted heredoc, background job, shell keyword, interpreter reading stdin, shell `-c`, inline interpreter program (`node -e`, `perl -e`, `php -r`, ...), program file the run wrote or modified, or runtime-built command name is refused unparsed. On what it parses: no push, PR, issue or tracker write, no Keychain read, no package install or manifest edit, no write into a protected path. The guard arms its own 5-second deadline and answers "block" on expiry when unattended.
|
|
317
317
|
- **Destructive floor, every mode.** A recursive `rm` of the filesystem root, of `$HOME` or of a directory above it (`~`, `$HOME`, `${HOME}/*`, `../..` resolved against the working directory, `--no-preserve-root`), and a fork bomb (`:(){ :|:& };:` under any name, perl's `fork while fork`) ask the user in an attended session and are refused unattended. A delete inside home or the project, a quoted mention and an ordinary shell function do not ask.
|
|
318
318
|
- **Encoded secrets.** The outbound gate, the command-line credential scan and the memory secret scan also match the certain credential shapes on a bounded decode of the text: base64 (standard and URL-safe), hex and rot13, two layers deep, a decoded run kept only when nine tenths of it is printable, at most 32 copies and 256 KB decoded per scan. A finding names the decode path (`encoding: "base64>hex"`). The guard reads a stored-secret read hidden the same way. Hashes, paths, images and encoded configuration are held to no finding by a negative set.
|
|
319
319
|
- **Guard probe.** `eval-guard-robustness.mjs` throws ReDoS-shaped input, a 1 MB string and 5000-deep nesting at every PreToolUse hook in the install template and at the library matchers, each in its own process group with a timeout. A probe fails on a timeout, an exit outside 0 and 2, a throw, or a median over the hook's own timeout (1 s for a library call); a dated known-holes list holds an accepted failure until its expiry. `npm test` runs the `--fast` subset; `npm run eval:guards` runs the whole probe.
|
|
@@ -356,15 +356,15 @@ With the gates active, Phase 1 ends with one adversarial critic (`agents/plan-cr
|
|
|
356
356
|
|
|
357
357
|
Every reviewer on Claude Code is a Claude model, so with the gates active a `blocking` finding keeps its severity only when two independent reviewer outputs carry the same finding, a confirmed verify-by-test log shows a failing test, or the test-integrity gate produced it. Anything else is lowered to `important` in place, never dropped, with the reason in the report and the ledger. The rebuttal round does not run under the gates. Attended review is unchanged. Detail: [`review-decision.md`](../pipeline/multi-agent-refs/features/review-decision.md).
|
|
358
358
|
|
|
359
|
-
### Client Contract
|
|
359
|
+
### Client Contract
|
|
360
360
|
|
|
361
|
-
Commands (`commands.mjs --json`) and run questions (`launch-request.mjs questions`) are declared as data, and every surface is reachable two ways that print the same bytes: the CLI scripts, and `contract-server.mjs`, started with `/multi-agent:serve` on 127.0.0.1 behind a bearer token. `pipeline/contract/` ships the manifest, generated TypeScript types and fixtures ([kit README](../pipeline/contract/README.md)). A launch request's input is a reference, not a prompt: a Jira key, an issue URL, `repo#N` or `#N`, or desktop free text passed as one quoted argument; op and mode words are refused.
|
|
361
|
+
Commands (`commands.mjs --json`) and run questions (`launch-request.mjs questions`) are declared as data, and every surface is reachable two ways that print the same bytes: the CLI scripts, and `contract-server.mjs`, started with `/multi-agent:serve` on 127.0.0.1 behind a bearer token. `pipeline/contract/` ships the manifest, generated TypeScript types and fixtures ([kit README](../pipeline/contract/README.md)). A launch request's input is a reference, not a prompt: a Jira key, an issue URL, `repo#N` or `#N`, or desktop free text passed as one quoted argument; op and mode words are refused.
|
|
362
362
|
|
|
363
363
|
## Safety & Hygiene
|
|
364
364
|
|
|
365
365
|
- **Pre-Commit Secret Detection** (12 patterns): `PreToolUse` hook scans staged files for API keys/tokens, AWS access keys, private keys, `.env` files, service account JSON. Commit **blocked** if found.
|
|
366
366
|
- **Read-Size Gate** (opt-in, `prefs.global.bulkRead.mode`): a `PreToolUse` hook inspects `Read` and the shell commands that read a file whole. In `observe` it only logs what it would have caught - the baseline you measure before routing anything. In `enforce` a file over `minLines` (default 350) is blocked and delegated to a haiku-rung worker (`bulk-read.sh`), which returns a line-numbered summary so the follow-up is a bounded `Read(offset:limit:)` instead of the whole file; the full text is parked under `.multi-agent/refs/`. The development phase and any file the run has already touched are exempt, because Claude Code's `Edit` requires its own `Read` first.
|
|
367
|
-
- **Free models for simple work** (opt-in, `/multi-agent:route-on --free`): large-file reads, log and document summaries, field extraction, labels and translation or commit-body drafts go to the multi-agent-
|
|
367
|
+
- **Free models for simple work** (opt-in, `/multi-agent:route-on --free`): large-file reads, log and document summaries, field extraction, labels and translation or commit-body drafts go to the multi-agent-mcp's free-model chain (`llm_delegate`) first. Every answer is verified against its source and discarded when it does not hold, Claude takes over whenever none passes, and decisions, plans, code and reviews never leave Claude. By default only providers that do not train on prompts receive text. `route-status` reports what was answered free and the tokens kept off Claude; `doctor --probe` checks each provider key. Contract: `multi-agent-refs/features/free-models.md`.
|
|
368
368
|
- **Capture Hooks** (`SessionEnd`, `PreCompact`, `SessionStart`): durable writes do not wait for Phase 5, the phase a run is least likely to reach. `SessionEnd` flushes a run that never got there; `PreCompact` flushes before an auto-compaction summarizes a long phase mid-flight, which is the same loss one level down; `SessionStart` prints at most two lines about an unfinished run. None calls a model, none reads a payload, and all exit 0 on every path - a hook that fails a session over bookkeeping is worse than the bookkeeping.
|
|
369
369
|
- **Operational Reporting** (`prefs.global.usageLog`): coarse run metadata - task id and type, current phase, run status (in progress, completed, halted, parked), phase durations, whether a PR opened, token counts - sent at every phase transition and at completion, halt and park, and never prompts, code, diffs or absolute paths (task title and PR URL only when `includeTitle` / `includePrUrl` are set). Runs are reported under the GitHub account on the machine that can read the pipeline repository, found with no question asked through gh, the git credential helper or an SSH key (`usage-identity.mjs`, cached in `usageLog.login` / `loginMethod`, `--refresh` to re-check); with no such account nothing is sent. The per-machine token is REQUESTED from the endpoint by `usage-register.mjs` (setup, update, and the Phase 0 exit gate as a backstop), is write-only, and lives in the OS credential store; prefs hold only the entry name and the switch. `usageLog.optOut: true` blocks registration permanently and is checked before the network call. Registration proves the login with that account's gh or credential-helper token, or with an SSH signature over a server challenge. The server issues a token only to the repository owner or a collaborator, pins the login to it, and shows only those accounts' records on the panel. An unreachable endpoint leaves reporting off with one line and exit 0 - a run is never failed over bookkeeping.
|
|
370
370
|
- **Post-Edit Syntax Gate** (opt-in, `prefs.global.editSyntaxGate.enabled`): after a file edit, `edit-syntax-gate.sh` parses the file within 2 s (`swiftc -parse`, `node --check`, `py_compile` into a temp dir, JSON, `bash -n`; Kotlin skipped) and hands a syntax error to the model as hook context. It never blocks and stays silent when a parser is missing or slow. Registered on Claude Code and Codex: Claude Code `PostToolUse` on `Edit|Write|MultiEdit` (`claude-hooks.json`), Codex `PostToolUse` on `apply_patch`, checking every file the patch adds, updates or moves to (`codex-hooks.json`, merged into `~/.codex/hooks.json`, run once trusted in Codex's `/hooks`). `/multi-agent:setup` Step 8 offers it; on Codex it calls `host-hooks.mjs install`, and uninstall takes it back. Copilot CLI gets no registration: as of 1.0.45 it loads `~/.copilot/hooks/*.json` but discards a `postToolUse` hook's output and applies no matcher, so the gate would spawn on every tool call and the model would never see its message. Source for the Codex contract: the Codex hooks guide plus `codex-rs` (`hooks/src/engine`, `core/src/tools/handlers/apply_patch.rs`).
|
|
@@ -479,6 +479,7 @@ Turn a recurring, project-specific job into a first-class `/multi-agent:<name>`
|
|
|
479
479
|
|
|
480
480
|
- **`/multi-agent:save`** distills candidate routines from the work just done this session (and named procedures in `~/.claude/CLAUDE.md`), offers them in a multi-select picker (pick one, combine several into one, or free-text a new one), and registers the chosen routine.
|
|
481
481
|
- **`/multi-agent:routines`** lists saved routines (in `outputLanguage`); **`/multi-agent:forget`** removes one (guarded: never touches a shipped command).
|
|
482
|
+
- **`/multi-agent:routines share | browse | import | update`** shares routines with other members of the reporting site, authenticated with the machine's existing usage token. `share` runs a secret scan first (tokens, private keys, home paths, private addresses, internal and configured corporate hosts) and refuses before any upload, then shows the exact request and asks for visibility (private, members, selected logins). `import` shows the full body and asks before adding it; the frontmatter is rebuilt locally and the body must hash to the published sha256. `update` shows a diff of a newer version before replacing an imported routine. Backed by `routine-share.mjs`; detail in `multi-agent-refs/features/routine-sharing.md`.
|
|
482
483
|
- Backed by `routine-registry.mjs`. Saved routines are `local-only: true` command dirs + a `prefs.global.routines` entry: preserved across `/multi-agent:update` by install snapshot/restore, never synced to the public repo, and never counted in the command inventory.
|
|
483
484
|
|
|
484
485
|
## Integrations
|
package/index.js
CHANGED
|
@@ -131,7 +131,7 @@ if (command === "--version" || command === "-v" || command === "version") {
|
|
|
131
131
|
Copilot CLI: Describe your task naturally - pipeline instructions are loaded
|
|
132
132
|
Codex CLI: /multi-agent "MOBILE-123" (or $multi-agent)
|
|
133
133
|
|
|
134
|
-
More info: https://github.com/
|
|
134
|
+
More info: https://github.com/multi-agent-ecosystem/multi-agent-pipeline
|
|
135
135
|
`);
|
|
136
136
|
} else {
|
|
137
137
|
console.error(`Unknown command: ${command}`);
|
package/install/_common.mjs
CHANGED
|
@@ -730,7 +730,11 @@ export const COMMAND_RENAMES = Object.freeze({
|
|
|
730
730
|
// the branch lives is visible in the run that asked it; a command name only
|
|
731
731
|
// records it in how the run was typed.
|
|
732
732
|
local: "multi-agent",
|
|
733
|
-
|
|
733
|
+
// autopilot is a modifier of /multi-agent (`/multi-agent "task" autopilot`),
|
|
734
|
+
// which the queue runner and the loop already launch; a command of its own only
|
|
735
|
+
// repeated it.
|
|
736
|
+
autopilot: "multi-agent",
|
|
737
|
+
"local-autopilot": "multi-agent",
|
|
734
738
|
});
|
|
735
739
|
|
|
736
740
|
/**
|
|
@@ -17,9 +17,10 @@ import { join } from "path";
|
|
|
17
17
|
import { homedir } from "os";
|
|
18
18
|
|
|
19
19
|
import { isDryRun } from "./_common.mjs";
|
|
20
|
+
import { LEGACY_SERVER_ID } from "../pipeline/lib/mcp-rename.mjs";
|
|
20
21
|
|
|
21
|
-
export const MCP_SERVER_NAME = "multi-agent
|
|
22
|
-
export const MCP_SERVER_PACKAGE = "@mmerterden/multi-agent-
|
|
22
|
+
export const MCP_SERVER_NAME = "multi-agent";
|
|
23
|
+
export const MCP_SERVER_PACKAGE = "@mmerterden/multi-agent-mcp";
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* The spec the host is registered with. `@latest` makes each server start
|
|
@@ -41,7 +42,7 @@ export const MCP_SERVER_SPEC = `${MCP_SERVER_PACKAGE}@latest`;
|
|
|
41
42
|
* Measured on a machine whose `~/.npmrc` carries
|
|
42
43
|
* `@mmerterden:registry=https://npm.pkg.github.com`:
|
|
43
44
|
*
|
|
44
|
-
* npm view @mmerterden/multi-agent-
|
|
45
|
+
* npm view @mmerterden/multi-agent-mcp version -> 404
|
|
45
46
|
* npm view ... --@mmerterden:registry=https://registry.npmjs.org -> 3.0.0
|
|
46
47
|
*
|
|
47
48
|
* So `npx` fetched from the wrong registry, the package was not there, the
|
|
@@ -180,12 +181,86 @@ export function parseRegisteredSpec(text) {
|
|
|
180
181
|
* Never fatal: a missing CLI or a failed write must not fail the install, because the
|
|
181
182
|
* rest of the tree is still correct and useful. It prints the manual command instead.
|
|
182
183
|
*
|
|
184
|
+
* Once the server is registered under its current id, a registration under
|
|
185
|
+
* the earlier id (LEGACY_SERVER_ID) is removed, so the host does not start
|
|
186
|
+
* the server twice under two names. While the current one is not registered
|
|
187
|
+
* the earlier one is left in place.
|
|
188
|
+
*
|
|
183
189
|
* @param {"claude"|"codex"|"copilot"} host
|
|
184
190
|
* @param {string} label - host label for log lines
|
|
185
191
|
* @param {{cli?: string}} [opts] - `cli` overrides the CLI lookup (tests)
|
|
186
|
-
* @returns {{registered: boolean, alreadyPresent?: boolean, staleSpec?: boolean, replaced?: boolean, reason?: string}}
|
|
192
|
+
* @returns {{registered: boolean, alreadyPresent?: boolean, staleSpec?: boolean, replaced?: boolean, reason?: string, legacy?: string}}
|
|
193
|
+
*/
|
|
194
|
+
export function registerMcpServer(host, label, opts = {}) {
|
|
195
|
+
const res = registerCurrent(host, label, opts);
|
|
196
|
+
res.legacy =
|
|
197
|
+
res.registered || res.reason === "dry-run"
|
|
198
|
+
? removeLegacyRegistration(host, label, opts)
|
|
199
|
+
: "unknown";
|
|
200
|
+
return res;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** Does this `mcp get` failure say the server is not registered? */
|
|
204
|
+
const saysNotFound = (text) => /not found|no mcp server|does not exist|no such server/i.test(text);
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Remove the registration under the earlier server id, when there is one.
|
|
208
|
+
* Read first with `mcp get`, so a host without it is never asked to remove
|
|
209
|
+
* it, and read again after the removal. Never fatal.
|
|
210
|
+
*
|
|
211
|
+
* `absent` and `removed` are the only answers that say the old id is gone;
|
|
212
|
+
* `unknown` (the CLI could not be run, or its answer was not a plain "not
|
|
213
|
+
* found") and `failed` keep the old settings entries in place.
|
|
214
|
+
*
|
|
215
|
+
* @returns {"absent"|"removed"|"failed"|"unknown"|"dry-run"}
|
|
187
216
|
*/
|
|
188
|
-
export function
|
|
217
|
+
export function removeLegacyRegistration(host, label, { cli: cliOverride } = {}) {
|
|
218
|
+
const cli = cliOverride || resolveCli(host);
|
|
219
|
+
const { scopeArgs, getArgs } = hostConfig(host);
|
|
220
|
+
const manual = `${host} mcp remove ${[...scopeArgs, LEGACY_SERVER_ID].join(" ")}`;
|
|
221
|
+
if (isDryRun()) {
|
|
222
|
+
console.log(` [dry-run] would run, when ${LEGACY_SERVER_ID} is registered: ${manual}`);
|
|
223
|
+
return "dry-run";
|
|
224
|
+
}
|
|
225
|
+
const run = (args) => execFileSync(cli, args, { stdio: "pipe", timeout: 20_000 });
|
|
226
|
+
const registered = () => {
|
|
227
|
+
try {
|
|
228
|
+
run(["mcp", "get", LEGACY_SERVER_ID, ...getArgs]);
|
|
229
|
+
return true;
|
|
230
|
+
} catch (e) {
|
|
231
|
+
return e?.code !== "ENOENT" && saysNotFound(outputOf(e)) ? false : null;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
const before = registered();
|
|
235
|
+
if (before === false) return "absent";
|
|
236
|
+
if (before === null) return "unknown";
|
|
237
|
+
try {
|
|
238
|
+
run(["mcp", "remove", ...scopeArgs, LEGACY_SERVER_ID]);
|
|
239
|
+
} catch (e) {
|
|
240
|
+
const why = (
|
|
241
|
+
outputOf(e)
|
|
242
|
+
.split("\n")
|
|
243
|
+
.find((l) => l.trim()) || "unknown error"
|
|
244
|
+
).trim();
|
|
245
|
+
console.log(
|
|
246
|
+
` -> ${label}: could not remove the ${LEGACY_SERVER_ID} registration (${why}); ` +
|
|
247
|
+
`remove it with: ${manual}`,
|
|
248
|
+
);
|
|
249
|
+
return "failed";
|
|
250
|
+
}
|
|
251
|
+
if (registered() !== false) {
|
|
252
|
+
console.log(
|
|
253
|
+
` -> ${label}: the ${LEGACY_SERVER_ID} registration is still listed; remove it with: ${manual}`,
|
|
254
|
+
);
|
|
255
|
+
return "failed";
|
|
256
|
+
}
|
|
257
|
+
console.log(
|
|
258
|
+
` -> ${label}: removed the ${LEGACY_SERVER_ID} registration; the server is ${MCP_SERVER_NAME} now`,
|
|
259
|
+
);
|
|
260
|
+
return "removed";
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function registerCurrent(host, label, { cli: cliOverride } = {}) {
|
|
189
264
|
const cli = cliOverride || resolveCli(host);
|
|
190
265
|
const { scopeArgs, getArgs } = hostConfig(host);
|
|
191
266
|
const npxArgs = ["-y", ...scopeRegistryFlag(), MCP_SERVER_SPEC];
|
|
@@ -292,7 +292,7 @@ export function installAuthoredPluginSkills(opts) {
|
|
|
292
292
|
if (missing.length > 0) {
|
|
293
293
|
console.log(
|
|
294
294
|
` -> ${label}: ${missing.length} plugin(s) not on disk (${missing.join(", ")}); ` +
|
|
295
|
-
`clone
|
|
295
|
+
`clone multi-agent-ecosystem/multi-agent-plugins or enable them in Claude Code to deliver their skills`,
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
// Uninstall has no way to know which of ~100 flat skill dirs came from a
|
|
@@ -48,6 +48,7 @@ import { dirname, join } from "node:path";
|
|
|
48
48
|
import { fileURLToPath } from "node:url";
|
|
49
49
|
|
|
50
50
|
import { listSessions } from "../pipeline/lib/claude-sessions.mjs";
|
|
51
|
+
import { renameRule } from "../pipeline/lib/mcp-rename.mjs";
|
|
51
52
|
import { unattendedSettingsPath } from "../pipeline/lib/unattended-settings-location.mjs";
|
|
52
53
|
import { prefsHosts, profileGaps } from "../pipeline/lib/unattended-profile-check.mjs";
|
|
53
54
|
import {
|
|
@@ -147,18 +148,26 @@ function readSettingsFile(path) {
|
|
|
147
148
|
* carries that install's signature: the profile's defaultMode and its whole
|
|
148
149
|
* deny set. Returns the labels to remove, [] when the signature is absent.
|
|
149
150
|
*/
|
|
151
|
+
const uniqStrings = (list) => [...new Set(list)];
|
|
152
|
+
|
|
150
153
|
function legacyEntries(settings) {
|
|
151
154
|
const perms = settings.permissions || {};
|
|
152
155
|
const allow = Array.isArray(perms.allow) ? perms.allow.map(String) : [];
|
|
153
156
|
const deny = Array.isArray(perms.deny) ? perms.deny.map(String) : [];
|
|
157
|
+
// A rule is matched in either server name: the install that renames the MCP
|
|
158
|
+
// server's rules in settings.json runs before this one reads it.
|
|
159
|
+
// While both are kept, both spellings are there and both are removed.
|
|
160
|
+
const present = (list, rule) =>
|
|
161
|
+
uniqStrings(list.filter((r) => renameRule(r) === renameRule(rule)));
|
|
154
162
|
const signed =
|
|
155
|
-
perms.defaultMode === LEGACY.defaultMode &&
|
|
163
|
+
perms.defaultMode === LEGACY.defaultMode &&
|
|
164
|
+
LEGACY.deny.every((rule) => present(deny, rule).length > 0);
|
|
156
165
|
if (!signed) return [];
|
|
157
166
|
const env = settings.env || {};
|
|
158
167
|
return [
|
|
159
168
|
`defaultMode:${LEGACY.defaultMode}`,
|
|
160
|
-
...LEGACY.allow.
|
|
161
|
-
...LEGACY.deny.
|
|
169
|
+
...LEGACY.allow.flatMap((r) => present(allow, r)),
|
|
170
|
+
...LEGACY.deny.flatMap((r) => present(deny, r).map((d) => `deny:${d}`)),
|
|
162
171
|
...LEGACY.env.filter(([k, v]) => env[k] === v).map(([k, v]) => `env:${k}=${v}`),
|
|
163
172
|
];
|
|
164
173
|
}
|