@mmerterden/multi-agent-pipeline 20.39.1 → 20.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +165 -0
- package/README.md +28 -10
- package/README.tr.md +26 -9
- package/docs/FIGMA_PIPELINE.md +1 -1
- package/docs/adr/0019-product-tree.md +143 -0
- package/docs/adr/README.md +1 -0
- package/docs/ecosystem.md +14 -14
- package/docs/facts.json +7 -7
- package/docs/features.md +10 -4
- package/index.js +13 -2
- package/install/_common.mjs +0 -126
- package/install/_dev-only-files.mjs +1 -0
- package/install/_managed-block.mjs +5 -18
- package/install/_unattended-profile.mjs +200 -30
- package/install/claude.mjs +39 -40
- package/install/codex.mjs +2 -1
- package/install/copilot.mjs +1 -23
- package/install/index.mjs +195 -54
- package/install/templates/claude-hooks.json +34 -1
- package/manifest.json +473 -396
- package/package.json +3 -2
- package/pipeline/agents/code-reviewer.md +1 -1
- package/pipeline/commands/multi-agent/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/analysis/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/autopilot-off/SKILL.md +15 -13
- package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +7 -5
- package/pipeline/commands/multi-agent/health/SKILL.md +6 -4
- package/pipeline/commands/multi-agent/office-on/SKILL.md +2 -3
- package/pipeline/commands/multi-agent/office-pair/SKILL.md +23 -0
- package/pipeline/commands/multi-agent/review-analysis/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +27 -0
- package/pipeline/contract/README.md +2 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/error-unsigned.json +1 -1
- package/pipeline/contract/fixtures/launch-plan.json +1 -1
- package/pipeline/contract/manifest.json +28 -2
- package/pipeline/contract/types/index.d.ts +182 -5
- package/pipeline/lib/agent-model-sync.mjs +2 -4
- package/pipeline/lib/args.mjs +194 -0
- package/pipeline/lib/autopilot-activation.sh +1 -1
- package/pipeline/lib/autopilot-state.sh +1 -1
- package/pipeline/lib/bg-launch.mjs +3 -3
- package/pipeline/lib/classify-intent.sh +9 -9
- package/pipeline/lib/claude-sessions.mjs +74 -5
- package/pipeline/lib/cli-help.mjs +80 -0
- package/pipeline/lib/context-budget.mjs +5 -42
- package/pipeline/lib/credential-inventory.sh +23 -4
- package/pipeline/lib/credential-resolve.mjs +8 -12
- package/pipeline/lib/credential-store.sh +1 -1
- package/pipeline/lib/cross-repo.mjs +61 -0
- package/pipeline/lib/extract-conventions.sh +27 -27
- package/pipeline/lib/fetch-figma-annotations.sh +1 -1
- package/pipeline/lib/free-hosts.generated.mjs +22 -0
- package/pipeline/lib/glob-match.mjs +189 -0
- package/pipeline/lib/health-messages.mjs +351 -0
- package/pipeline/lib/hook-registration.mjs +5 -0
- package/pipeline/lib/identifier-scan.mjs +22 -11
- package/pipeline/lib/jira-family-write.sh +3 -3
- package/pipeline/lib/jira-publish.sh +1 -1
- package/pipeline/lib/json-file-lock.mjs +24 -23
- package/pipeline/lib/mcp-config-audit.mjs +1479 -0
- package/pipeline/lib/md2confluence-v3.py +12 -4
- package/pipeline/lib/outbound-gate.mjs +8 -70
- package/pipeline/lib/owned-path-gate.mjs +6 -180
- package/pipeline/lib/plan-todos.sh +1 -1
- package/pipeline/lib/plugin-skill-roots.mjs +45 -1
- package/pipeline/lib/pr-request-location.mjs +3 -3
- package/pipeline/lib/prefs-value.mjs +122 -21
- package/pipeline/lib/regular-file.mjs +11 -6
- package/pipeline/lib/repo-profile-derive.mjs +138 -65
- package/pipeline/lib/repo-profile-root.mjs +52 -0
- package/pipeline/lib/repo-profile.mjs +5 -38
- package/pipeline/lib/review-watch.sh +1 -1
- package/pipeline/lib/run-worktree.mjs +147 -0
- package/pipeline/lib/run-writable.sh +85 -0
- package/pipeline/lib/safe-write.mjs +542 -0
- package/pipeline/lib/secret-patterns.generated.mjs +249 -0
- package/pipeline/lib/shadow-git.sh +1 -1
- package/pipeline/lib/slug.mjs +118 -0
- package/pipeline/lib/tdd-evidence.mjs +13 -13
- package/pipeline/lib/tiered-budget.mjs +87 -0
- package/pipeline/lib/unattended-profile-check.mjs +75 -31
- package/pipeline/lib/unattended-tool-homes.mjs +1407 -0
- package/pipeline/lib/untrusted-fence.mjs +65 -0
- package/pipeline/lib/untrusted.mjs +13 -25
- package/pipeline/lib/user-facing.mjs +3 -5
- package/pipeline/lib/vercel-deploy.sh +2 -2
- package/pipeline/lib/web-push.mjs +198 -0
- package/pipeline/multi-agent-refs/analysis/locked.md +6 -6
- package/pipeline/multi-agent-refs/analysis/review.md +23 -1
- package/pipeline/multi-agent-refs/analysis-template.md +3 -3
- package/pipeline/multi-agent-refs/conventions-defaults.md +2 -2
- package/pipeline/multi-agent-refs/features/autopilot-operations.md +10 -7
- package/pipeline/multi-agent-refs/features/code-graph.md +11 -1
- package/pipeline/multi-agent-refs/features/constitution.md +3 -3
- package/pipeline/multi-agent-refs/features/doctor.md +38 -2
- package/pipeline/multi-agent-refs/features/external-context-injection.md +1 -1
- package/pipeline/multi-agent-refs/features/office-remote-protocol.md +152 -1
- package/pipeline/multi-agent-refs/features/office-threat-model.md +1 -1
- package/pipeline/multi-agent-refs/features/phone-api.md +1 -1
- package/pipeline/multi-agent-refs/features/plan-critic.md +3 -3
- package/pipeline/multi-agent-refs/features/product-tree.md +68 -0
- package/pipeline/multi-agent-refs/features/repo-profile.md +2 -2
- package/pipeline/multi-agent-refs/features/review-decision.md +21 -8
- package/pipeline/multi-agent-refs/features/scaffold.md +1 -1
- package/pipeline/multi-agent-refs/features/unattended-gates.md +3 -3
- package/pipeline/multi-agent-refs/features/unattended-security.md +574 -23
- package/pipeline/multi-agent-refs/features/usage-reporting.md +91 -0
- package/pipeline/multi-agent-refs/garbage-collect/phases.md +3 -1
- package/pipeline/multi-agent-refs/help/en.md +3 -2
- package/pipeline/multi-agent-refs/help/tr.md +8 -7
- package/pipeline/multi-agent-refs/keychain.md +1 -0
- package/pipeline/multi-agent-refs/knowledge.md +59 -0
- package/pipeline/multi-agent-refs/orchestrator/skill-loading.md +1 -1
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +4 -3
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +8 -4
- package/pipeline/multi-agent-refs/phases.md +1 -1
- package/pipeline/multi-agent-refs/sync/stack-plugins.md +1 -1
- package/pipeline/multi-agent-refs/test-gen/stages.md +1 -1
- package/pipeline/multi-agent-refs/tracker-contract.md +2 -2
- package/pipeline/multi-agent-refs/unattended-contract.md +1 -1
- package/pipeline/office/assets/app_icon_180.png +0 -0
- package/pipeline/office/assets/app_icon_192.png +0 -0
- package/pipeline/office/assets/app_icon_512.png +0 -0
- package/pipeline/office/index.html +508 -6
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/preferences-template.json +3 -1
- package/pipeline/rules/figma-pipeline.md +1 -1
- package/pipeline/rules/outside-the-pipeline.md +3 -3
- package/pipeline/schemas/agent-state.schema.json +1 -1
- package/pipeline/schemas/analysis-spec.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 +8 -2
- package/pipeline/schemas/dev-critic-output.schema.json +1 -1
- package/pipeline/schemas/launch.json +6 -6
- package/pipeline/schemas/learnings-ledger.schema.json +43 -2
- package/pipeline/schemas/office-archive.schema.json +265 -0
- package/pipeline/schemas/office-server-room.schema.json +283 -0
- package/pipeline/schemas/prefs.schema.json +100 -1
- package/pipeline/schemas/product-tree-overlay.schema.json +57 -0
- package/pipeline/schemas/product-tree.schema.json +136 -0
- package/pipeline/schemas/runs-index.schema.json +1 -1
- package/pipeline/schemas/secret-patterns.json +257 -1
- package/pipeline/schemas/secret-patterns.schema.json +25 -4
- package/pipeline/schemas/toolkit-path-params.json +1077 -0
- package/pipeline/schemas/toolkit-path-params.schema.json +36 -0
- package/pipeline/schemas/unattended-policy.json +10 -1
- package/pipeline/schemas/unattended-policy.schema.json +4 -0
- package/pipeline/schemas/unattended-profile.json +93 -4
- package/pipeline/schemas/unattended-profile.schema.json +10 -0
- package/pipeline/scripts/_active-run.mjs +6 -3
- package/pipeline/scripts/_analysis-doc-diagrams.mjs +115 -0
- package/pipeline/scripts/_analysis-doc-markers.mjs +252 -0
- package/pipeline/scripts/_analysis-doc-redesign.mjs +160 -0
- package/pipeline/scripts/_analysis-doc-rules.mjs +191 -0
- package/pipeline/scripts/_analysis-doc-shapes.mjs +196 -0
- package/pipeline/scripts/_analysis-doc-structure.mjs +313 -0
- package/pipeline/scripts/_autopilot-ops.mjs +12 -3
- package/pipeline/scripts/_contract-core.mjs +282 -0
- package/pipeline/scripts/_contract-office-page.mjs +108 -0
- package/pipeline/scripts/_contract-routes-catalog.mjs +84 -0
- package/pipeline/scripts/_contract-routes-office.mjs +133 -0
- package/pipeline/scripts/_contract-routes-ops.mjs +538 -0
- package/pipeline/scripts/_contract-routes-repos.mjs +270 -0
- package/pipeline/scripts/_contract-routes-runs.mjs +468 -0
- package/pipeline/scripts/_contract-routes-work.mjs +255 -0
- package/pipeline/scripts/_eval-stats.mjs +182 -0
- package/pipeline/scripts/_guard_rules.py +130 -1
- package/pipeline/scripts/_learnings-promotion.mjs +229 -0
- package/pipeline/scripts/_lint-suppression.mjs +1067 -0
- package/pipeline/scripts/_locate.mjs +539 -0
- package/pipeline/scripts/_memory-policy.mjs +253 -40
- package/pipeline/scripts/_product-tree-extract.mjs +761 -0
- package/pipeline/scripts/_product-tree.mjs +923 -0
- package/pipeline/scripts/_renamed-skills.mjs +11 -2
- package/pipeline/scripts/_retrieval.mjs +15 -8
- package/pipeline/scripts/_secret-scan.mjs +8 -2
- package/pipeline/scripts/_stack-adapter.mjs +28 -19
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/_test-gaming.mjs +44 -6
- package/pipeline/scripts/_unified-diff.mjs +2 -2
- package/pipeline/scripts/_user_guard_rules.py +744 -0
- package/pipeline/scripts/activity-snapshot.mjs +36 -15
- package/pipeline/scripts/agent-guard.py +61 -5
- package/pipeline/scripts/agent-guard.sh +8 -1
- package/pipeline/scripts/analysis-conform-coverage.mjs +3 -0
- package/pipeline/scripts/analysis-sources.mjs +3 -0
- package/pipeline/scripts/analysis-story-tree.mjs +6 -5
- package/pipeline/scripts/analysis-tickets-writeback.mjs +7 -0
- package/pipeline/scripts/anonymize-findings.mjs +1 -1
- package/pipeline/scripts/answer-check.mjs +3 -0
- package/pipeline/scripts/answer-question.mjs +22 -9
- package/pipeline/scripts/argv-secret-scan.mjs +3 -0
- package/pipeline/scripts/audit-log.sh +22 -2
- package/pipeline/scripts/autopilot-arming.mjs +6 -5
- package/pipeline/scripts/autopilot-awake.mjs +3 -0
- package/pipeline/scripts/autopilot-control.mjs +31 -34
- package/pipeline/scripts/autopilot-intake.mjs +3 -0
- package/pipeline/scripts/autopilot-publish.mjs +34 -13
- package/pipeline/scripts/autopilot-runner.mjs +289 -86
- package/pipeline/scripts/autopilot-status.sh +1 -1
- package/pipeline/scripts/base-branch-candidates.mjs +7 -0
- package/pipeline/scripts/bug-bash.mjs +3 -0
- package/pipeline/scripts/build-references.mjs +3 -0
- package/pipeline/scripts/build-skills-index.mjs +16 -5
- package/pipeline/scripts/build-stack-plugins.mjs +3 -0
- package/pipeline/scripts/bulk-read.sh +1 -1
- package/pipeline/scripts/capture-evidence.sh +1 -1
- package/pipeline/scripts/capture-flush.sh +52 -2
- package/pipeline/scripts/check-derived-drift.mjs +5 -2
- package/pipeline/scripts/classify-plan-safety.mjs +7 -0
- package/pipeline/scripts/commands.mjs +21 -11
- package/pipeline/scripts/confirm-command.mjs +3 -0
- package/pipeline/scripts/confluence-readback.mjs +3 -0
- package/pipeline/scripts/constitution.mjs +6 -13
- package/pipeline/scripts/contract-server.mjs +710 -2317
- package/pipeline/scripts/cost-analyze.mjs +8 -18
- package/pipeline/scripts/cost-budget-check.mjs +4 -15
- package/pipeline/scripts/council-view.mjs +3 -0
- package/pipeline/scripts/crush-json.mjs +3 -0
- package/pipeline/scripts/debt-ledger.mjs +12 -37
- package/pipeline/scripts/decisions-log.mjs +14 -8
- package/pipeline/scripts/diff-explain.mjs +8 -16
- package/pipeline/scripts/diff-risk-score.mjs +5 -15
- package/pipeline/scripts/doctor.mjs +204 -12
- package/pipeline/scripts/edit-syntax-gate.mjs +5 -10
- package/pipeline/scripts/estimate.mjs +5 -10
- package/pipeline/scripts/evidence-gate.mjs +5 -21
- package/pipeline/scripts/explore-findings.mjs +3 -0
- package/pipeline/scripts/feedback-send.mjs +5 -6
- package/pipeline/scripts/file-context.mjs +20 -22
- package/pipeline/scripts/find-polluter.mjs +29 -17
- package/pipeline/scripts/finding-fingerprint.mjs +22 -9
- package/pipeline/scripts/gate-ledger.mjs +25 -21
- package/pipeline/scripts/gc-abandoned.sh +143 -40
- package/pipeline/scripts/gc-plan.mjs +8 -1
- package/pipeline/scripts/gc-refs.sh +4 -4
- package/pipeline/scripts/gc-tmp.sh +3 -3
- package/pipeline/scripts/gc-worktrees.sh +4 -4
- package/pipeline/scripts/gen-facts.mjs +3 -0
- package/pipeline/scripts/gen-free-hosts.mjs +132 -0
- package/pipeline/scripts/gen-mode-dispatch.mjs +11 -3
- package/pipeline/scripts/gen-secret-patterns.mjs +263 -0
- package/pipeline/scripts/gen-skills-index.mjs +11 -1
- package/pipeline/scripts/graph-affected.mjs +3 -0
- package/pipeline/scripts/graph-build.mjs +6 -18
- package/pipeline/scripts/graph-confirm.mjs +3 -0
- package/pipeline/scripts/graph-hint.mjs +13 -19
- package/pipeline/scripts/graph-links.mjs +3 -0
- package/pipeline/scripts/graph-mermaid.mjs +3 -0
- package/pipeline/scripts/graph-query.mjs +260 -17
- package/pipeline/scripts/handle-diff-audit.mjs +20 -12
- package/pipeline/scripts/health-report.mjs +201 -158
- package/pipeline/scripts/host-hooks.mjs +3 -0
- package/pipeline/scripts/issues.mjs +26 -11
- package/pipeline/scripts/jira-family.mjs +14 -23
- package/pipeline/scripts/jira-search.sh +1 -1
- package/pipeline/scripts/jira-wiki-escape.mjs +10 -0
- package/pipeline/scripts/job-launch.mjs +107 -8
- package/pipeline/scripts/launch-request.mjs +6 -2
- package/pipeline/scripts/learn-from-transcripts.mjs +14 -25
- package/pipeline/scripts/learnings-ledger.mjs +766 -113
- package/pipeline/scripts/localize-commands.mjs +7 -0
- package/pipeline/scripts/log-metric.sh +26 -8
- package/pipeline/scripts/match-skills.mjs +7 -0
- package/pipeline/scripts/mcp-config-audit.mjs +130 -0
- package/pipeline/scripts/migrate-prefs.mjs +34 -21
- package/pipeline/scripts/migrate-state.mjs +3 -0
- package/pipeline/scripts/mutation-probe.mjs +51 -32
- package/pipeline/scripts/note-agent-event.mjs +7 -14
- package/pipeline/scripts/note-mcp-failure.mjs +356 -0
- package/pipeline/scripts/note-mcp-failure.sh +19 -0
- package/pipeline/scripts/note-skill-use.mjs +343 -0
- package/pipeline/scripts/note-skill-use.sh +19 -0
- package/pipeline/scripts/observations.mjs +17 -16
- package/pipeline/scripts/office-archive.mjs +280 -0
- package/pipeline/scripts/office-build.mjs +117 -8
- package/pipeline/scripts/office-control.mjs +7 -3
- package/pipeline/scripts/office-credentials.mjs +3 -0
- package/pipeline/scripts/office-ledger.mjs +3 -0
- package/pipeline/scripts/office-memory.mjs +10 -4
- package/pipeline/scripts/office-pair.mjs +24 -3
- package/pipeline/scripts/office-prune.mjs +3 -0
- package/pipeline/scripts/office-push.mjs +613 -0
- package/pipeline/scripts/office-remote-client.mjs +30 -3
- package/pipeline/scripts/office-server-room.mjs +435 -0
- package/pipeline/scripts/office-settings.mjs +4 -4
- package/pipeline/scripts/office-webapp.mjs +59 -0
- package/pipeline/scripts/offload-ref.sh +1 -1
- package/pipeline/scripts/open-questions-gate.mjs +25 -12
- package/pipeline/scripts/output-quality-check.sh +1 -1
- package/pipeline/scripts/owned-path-gate.mjs +22 -11
- package/pipeline/scripts/package-manager.mjs +7 -0
- package/pipeline/scripts/parity-score.mjs +3 -0
- package/pipeline/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/scripts/phase-tracker.sh +179 -35
- package/pipeline/scripts/phase0-exit-gate.mjs +4 -1
- package/pipeline/scripts/phone-devices.mjs +32 -16
- package/pipeline/scripts/plan-complexity.mjs +17 -13
- package/pipeline/scripts/plan-coverage-gate.mjs +3 -2
- package/pipeline/scripts/plan-critique-gate.mjs +22 -12
- package/pipeline/scripts/plan-remote-links.mjs +18 -11
- package/pipeline/scripts/plugin-refresh.sh +1 -1
- package/pipeline/scripts/pr-request.mjs +3 -0
- package/pipeline/scripts/pr-timeline.mjs +13 -9
- package/pipeline/scripts/pre-commit-check.sh +175 -124
- package/pipeline/scripts/pre-push-check.sh +12 -0
- package/pipeline/scripts/probe-evidence-capability.sh +1 -1
- package/pipeline/scripts/probe-store-key.mjs +33 -15
- package/pipeline/scripts/product-context.mjs +25 -26
- package/pipeline/scripts/product-tree-eval.mjs +685 -0
- package/pipeline/scripts/product-tree.mjs +544 -0
- package/pipeline/scripts/prune-logs.sh +4 -4
- package/pipeline/scripts/purge.sh +2 -2
- package/pipeline/scripts/record-phase.mjs +19 -9
- package/pipeline/scripts/release-notes.mjs +3 -0
- package/pipeline/scripts/render-flow-run.mjs +48 -32
- package/pipeline/scripts/render-jira-evidence.mjs +18 -11
- package/pipeline/scripts/render-work-summary.sh +1 -1
- package/pipeline/scripts/repo-map.mjs +35 -20
- package/pipeline/scripts/repo-profile.mjs +21 -21
- package/pipeline/scripts/repo-recommend.mjs +22 -9
- package/pipeline/scripts/research-gate.mjs +20 -12
- package/pipeline/scripts/review-decision-gate.mjs +209 -33
- package/pipeline/scripts/review-delta.mjs +36 -15
- package/pipeline/scripts/review-file-filter.mjs +3 -0
- package/pipeline/scripts/review-scope.mjs +3 -0
- package/pipeline/scripts/rework-base.mjs +3 -0
- package/pipeline/scripts/rework-escalation.mjs +25 -20
- package/pipeline/scripts/rework-rulings.mjs +3 -0
- package/pipeline/scripts/routine-registry.mjs +27 -20
- package/pipeline/scripts/run-aggregator.mjs +15 -16
- package/pipeline/scripts/run-commit-check.mjs +3 -0
- package/pipeline/scripts/run-kill.mjs +6 -14
- package/pipeline/scripts/run-log.mjs +32 -15
- package/pipeline/scripts/run-metrics.mjs +7 -0
- package/pipeline/scripts/run-results.mjs +3 -0
- package/pipeline/scripts/run-scope-guard.mjs +3 -0
- package/pipeline/scripts/run-stop-guard.mjs +15 -9
- package/pipeline/scripts/run-write.mjs +400 -0
- package/pipeline/scripts/runs-index.mjs +22 -15
- package/pipeline/scripts/scaffold-gate.mjs +26 -9
- package/pipeline/scripts/scan-agent-config.sh +39 -11
- package/pipeline/scripts/scan-skills.sh +17 -6
- package/pipeline/scripts/scenario-audit.mjs +3 -0
- package/pipeline/scripts/scope-check-gate.mjs +21 -11
- package/pipeline/scripts/search-logs.sh +1 -1
- package/pipeline/scripts/security-evidence-gate.mjs +23 -12
- package/pipeline/scripts/service-read.mjs +6 -9
- package/pipeline/scripts/skill-candidates.mjs +3 -0
- package/pipeline/scripts/skill-conformance.mjs +29 -15
- package/pipeline/scripts/skill-siblings.mjs +34 -4
- package/pipeline/scripts/skill-usage.mjs +379 -0
- package/pipeline/scripts/smoke-schema-validation.sh +1 -1
- package/pipeline/scripts/spec-consistency-gate.mjs +22 -12
- package/pipeline/scripts/stack-toggle.mjs +3 -0
- package/pipeline/scripts/status-overview.mjs +2 -2
- package/pipeline/scripts/steer-run.mjs +3 -0
- package/pipeline/scripts/symbol-existence-gate.mjs +22 -14
- package/pipeline/scripts/sync-skill-copies.mjs +141 -0
- package/pipeline/scripts/system-status.mjs +3 -0
- package/pipeline/scripts/task-mirror.mjs +59 -22
- package/pipeline/scripts/test-classify.mjs +15 -10
- package/pipeline/scripts/test-gap-scan.mjs +5 -15
- package/pipeline/scripts/test-gen-gate.mjs +19 -10
- package/pipeline/scripts/test-gen-state.mjs +16 -15
- package/pipeline/scripts/test-integrity-gate.mjs +113 -16
- package/pipeline/scripts/test-stability-gate.mjs +3 -0
- package/pipeline/scripts/test-strength.mjs +39 -18
- package/pipeline/scripts/test-summary.mjs +24 -16
- package/pipeline/scripts/token-budget-report.mjs +18 -8
- package/pipeline/scripts/toolkit-tools.mjs +19 -4
- package/pipeline/scripts/transcript-index.mjs +38 -18
- package/pipeline/scripts/triage-memory.mjs +20 -59
- package/pipeline/scripts/unattended_policy.py +1828 -27
- package/pipeline/scripts/uninstall.mjs +120 -13
- package/pipeline/scripts/update-check.sh +1 -1
- package/pipeline/scripts/update-issue-progress.sh +6 -6
- package/pipeline/scripts/usage-identity.mjs +18 -7
- package/pipeline/scripts/usage-register-beacon.mjs +3 -0
- package/pipeline/scripts/usage-register.mjs +21 -12
- package/pipeline/scripts/usage-report.mjs +27 -11
- package/pipeline/scripts/user-test-handoff.sh +1 -1
- package/pipeline/scripts/validate-analysis-doc.mjs +163 -1240
- package/pipeline/scripts/validate-analysis.mjs +7 -0
- package/pipeline/scripts/validate-code-graph.mjs +7 -0
- package/pipeline/scripts/validate-complaint-doc.mjs +3 -0
- package/pipeline/scripts/validate-diff-risk.mjs +7 -0
- package/pipeline/scripts/validate-planning.mjs +3 -0
- package/pipeline/scripts/validate-reviewer.mjs +7 -0
- package/pipeline/scripts/validate-state.mjs +7 -0
- package/pipeline/scripts/validate-test-gap.mjs +7 -0
- package/pipeline/scripts/validate-triage.mjs +7 -0
- package/pipeline/scripts/valven-gate.mjs +14 -14
- package/pipeline/scripts/valven-port.mjs +14 -13
- package/pipeline/scripts/valven-split.mjs +14 -13
- package/pipeline/scripts/verify-citations.mjs +13 -14
- package/pipeline/scripts/verify.mjs +3 -0
- package/pipeline/scripts/work-items.mjs +5 -5
- package/pipeline/scripts/worktree-finalize.sh +3 -3
- package/pipeline/scripts/worktree-prepare-all.mjs +3 -0
- package/pipeline/scripts/worktrees.mjs +3 -0
- package/pipeline/scripts/write-state.mjs +33 -23
- package/pipeline/scripts/write-store-config.mjs +5 -1
- package/pipeline/skills/.skill-manifest.json +48 -44
- package/pipeline/skills/.skills-index.json +44 -33
- package/pipeline/skills/shared/README.md +35 -34
- package/pipeline/skills/shared/core/google-play-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-autopilot-off/SKILL.md +15 -13
- package/pipeline/skills/shared/core/multi-agent-health/SKILL.md +6 -2
- package/pipeline/skills/shared/core/multi-agent-review-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/external/agent-introspection-debugging/SKILL.md +1 -6
- package/pipeline/skills/shared/external/android-performance/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-clips/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-release-notes/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-release-notes/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/apple-on-device-ai/SKILL.md +1 -1
- package/pipeline/skills/shared/external/avkit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
- package/pipeline/skills/shared/external/context-compression/SKILL.md +1 -1
- package/pipeline/skills/shared/external/core-bluetooth/SKILL.md +1 -1
- package/pipeline/skills/shared/external/core-data/SKILL.md +1 -1
- package/pipeline/skills/shared/external/council/SKILL.md +1 -6
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +1 -9
- package/pipeline/skills/shared/external/fix-review-verdicts/SKILL.md +3 -0
- package/pipeline/skills/shared/external/humanizer/SKILL.md +1 -5
- package/pipeline/skills/shared/external/ios-coding-standard/references/lint-local.sh +1 -1
- package/pipeline/skills/shared/external/ios-localization/SKILL.md +1 -1
- package/pipeline/skills/shared/external/ios-security/SKILL.md +1 -1
- package/pipeline/skills/shared/external/ios-simulator/SKILL.md +1 -1
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/references/patterns.md +1 -1
- package/pipeline/skills/shared/external/live-activities/SKILL.md +1 -1
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-app-distribution/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-app-distribution/evals/trigger-eval.json +10 -0
- package/pipeline/skills/shared/external/macos-menubar-utility/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/trigger-eval.json +10 -0
- package/pipeline/skills/shared/external/mapkit-location/SKILL.md +1 -1
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +1 -1
- package/pipeline/skills/shared/external/push-notifications/SKILL.md +1 -1
- package/pipeline/skills/shared/external/search-first/SKILL.md +1 -6
- package/pipeline/skills/shared/external/skill-creator/SKILL.md +1 -1
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +118 -0
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +50 -0
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/skills/shared/external/storekit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-concurrency-fix/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swift-formatstyle/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing-review/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata-review/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swiftui-glass-effects/SKILL.md +1 -1
- package/pipeline/skills/shared/external/tailwind-styling/SKILL.md +1 -1
- package/pipeline/skills/shared/external/tailwind-styling/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/vision-framework/SKILL.md +1 -1
- package/pipeline/skills/shared/external/widgetkit/SKILL.md +1 -1
- package/pipeline/skills/skill-copies.json +47 -0
- package/pipeline/skills/skills-index.md +33 -32
|
@@ -133,11 +133,20 @@ export function aliasSkillMarkdown(oldName, newName, { removeIn, userInvocable =
|
|
|
133
133
|
* @param {string} skillMdPath
|
|
134
134
|
*/
|
|
135
135
|
export function isAliasSkill(skillMdPath) {
|
|
136
|
+
return aliasTarget(skillMdPath) !== null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The skill an alias SKILL.md points at, or null when it is not an alias.
|
|
141
|
+
* @param {string} skillMdPath
|
|
142
|
+
*/
|
|
143
|
+
export function aliasTarget(skillMdPath) {
|
|
136
144
|
try {
|
|
137
|
-
|
|
145
|
+
const m = new RegExp(`^ ${ALIAS_MARKER} ([a-z0-9-]+)$`, "m").exec(
|
|
138
146
|
readFileSync(skillMdPath, "utf8"),
|
|
139
147
|
);
|
|
148
|
+
return m ? m[1] : null;
|
|
140
149
|
} catch {
|
|
141
|
-
return
|
|
150
|
+
return null;
|
|
142
151
|
}
|
|
143
152
|
}
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
* @module pipeline/scripts/_retrieval
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import {
|
|
23
|
-
import { homedir } from "node:os";
|
|
24
|
-
import { join } from "node:path";
|
|
22
|
+
import { loadGlobalPrefs, prefsPath } from "../lib/prefs-value.mjs";
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* English stop words dropped before ranking. Kept identical to the set
|
|
@@ -138,14 +136,25 @@ function splitIdentifier(w) {
|
|
|
138
136
|
* BM25 needs term frequency, so this returns an array; callers that only need
|
|
139
137
|
* membership use tokenSet().
|
|
140
138
|
*
|
|
139
|
+
* `unicode` reads a word of any script whole ("Kullanıcı" stays one term
|
|
140
|
+
* instead of stopping at "Kullan"). The memory policy's duplicate and
|
|
141
|
+
* promotion measures pass it; ranking keeps the ASCII words its evaluation
|
|
142
|
+
* corpus was measured on.
|
|
143
|
+
*
|
|
141
144
|
* @param {string} text
|
|
145
|
+
* @param {{unicode?: boolean}} [opts]
|
|
142
146
|
* @returns {string[]} stemmed lower-cased terms of 3+ chars, stop words
|
|
143
147
|
* removed, identifiers indexed both whole and split
|
|
144
148
|
*/
|
|
145
|
-
export function tokens(text) {
|
|
149
|
+
export function tokens(text, { unicode = false } = {}) {
|
|
146
150
|
if (!text) return [];
|
|
147
151
|
const out = [];
|
|
148
|
-
|
|
152
|
+
const words = unicode
|
|
153
|
+
? String(text)
|
|
154
|
+
.normalize("NFC")
|
|
155
|
+
.matchAll(/\p{L}[\p{L}\p{N}_]{2,}/gu)
|
|
156
|
+
: String(text).matchAll(/[A-Za-z][A-Za-z0-9_]{2,}/g);
|
|
157
|
+
for (const m of words) {
|
|
149
158
|
const whole = m[0].toLowerCase();
|
|
150
159
|
if (!STOP.has(whole)) out.push(stem(whole));
|
|
151
160
|
const parts = splitIdentifier(m[0]);
|
|
@@ -369,10 +378,8 @@ export function shortId(prefix, ...parts) {
|
|
|
369
378
|
*/
|
|
370
379
|
export function recallConfig(env = process.env) {
|
|
371
380
|
const defaults = { strategy: "bm25", maxResults: 5, maxChars: 0, halfLifeDays: 30 };
|
|
372
|
-
const file = env.MULTI_AGENT_PREFS || join(homedir(), ".claude", "multi-agent-preferences.json");
|
|
373
381
|
try {
|
|
374
|
-
const
|
|
375
|
-
const cfg = (prefs.global && prefs.global.memoryRecall) || {};
|
|
382
|
+
const cfg = loadGlobalPrefs(prefsPath(env)).memoryRecall || {};
|
|
376
383
|
return {
|
|
377
384
|
strategy: cfg.strategy === "legacy" ? "legacy" : defaults.strategy,
|
|
378
385
|
maxResults: Number.isFinite(cfg.maxResults) ? cfg.maxResults : defaults.maxResults,
|
|
@@ -26,12 +26,18 @@ import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
|
26
26
|
import { homedir, tmpdir } from "node:os";
|
|
27
27
|
import { dirname, join } from "node:path";
|
|
28
28
|
import { fileURLToPath } from "node:url";
|
|
29
|
+
import { SECRET_PATTERNS } from "../lib/secret-patterns.generated.mjs";
|
|
29
30
|
|
|
30
31
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
31
32
|
// eslint-disable-next-line no-control-regex
|
|
32
33
|
const CONTROL = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
// A run that opens like a token: every `lead` in schemas/secret-patterns.json.
|
|
35
|
+
const WRAPPED_TOKEN = new RegExp(
|
|
36
|
+
`(?:${SECRET_PATTERNS.filter((p) => p.lead)
|
|
37
|
+
.map((p) => p.lead.source)
|
|
38
|
+
.join("|")})[A-Za-z0-9_.-]{0,256}(?:\\s+[A-Za-z0-9_.-]{1,256}){1,16}`,
|
|
39
|
+
"g",
|
|
40
|
+
);
|
|
35
41
|
|
|
36
42
|
/** The text with whitespace removed inside every run that starts like a token. */
|
|
37
43
|
function rejoined(text) {
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
testCommand,
|
|
41
41
|
} from "./package-manager.mjs";
|
|
42
42
|
import { invokedDirectly } from "../lib/invoked-directly.mjs";
|
|
43
|
+
import { ArgsError, parseArgs as parseArgv } from "../lib/args.mjs";
|
|
43
44
|
|
|
44
45
|
export const ADAPTERS_PATH = fileURLToPath(
|
|
45
46
|
new URL("../schemas/stack-adapters.json", import.meta.url),
|
|
@@ -590,25 +591,33 @@ function usage(msg) {
|
|
|
590
591
|
|
|
591
592
|
function parseArgs(argv) {
|
|
592
593
|
const opts = { vars: {} };
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
594
|
+
try {
|
|
595
|
+
parseArgv(argv.slice(1), {
|
|
596
|
+
strings: ["dir", "stack", "claim", "kind", "file", "var"],
|
|
597
|
+
booleans: ["json"],
|
|
598
|
+
multiple: ["var"],
|
|
599
|
+
unknown: "error",
|
|
600
|
+
positionals: false,
|
|
601
|
+
equals: false,
|
|
602
|
+
terminator: false,
|
|
603
|
+
valuePrefix: null,
|
|
604
|
+
onArg: ({ flag, value }) => {
|
|
605
|
+
if (flag === "json") opts.json = true;
|
|
606
|
+
else if (flag !== "var") opts[flag] = value;
|
|
607
|
+
else {
|
|
608
|
+
const eq = value.indexOf("=");
|
|
609
|
+
if (eq < 1) usage("--var needs key=value");
|
|
610
|
+
opts.vars[value.slice(0, eq)] = value.slice(eq + 1);
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
});
|
|
614
|
+
} catch (err) {
|
|
615
|
+
if (!(err instanceof ArgsError)) throw err;
|
|
616
|
+
usage(
|
|
617
|
+
err.kind === "missing-value"
|
|
618
|
+
? `${err.token} needs a value`
|
|
619
|
+
: `unexpected argument ${err.token}`,
|
|
620
|
+
);
|
|
612
621
|
}
|
|
613
622
|
return opts;
|
|
614
623
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file _test-gaming.mjs - added lines that make a suite green without fixing the code.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Five shapes, read from the added lines of a unified diff:
|
|
5
5
|
*
|
|
6
6
|
* environment-branch product code that asks whether it is under test
|
|
7
7
|
* (`navigator.webdriver`, `process.env.CI`, ProcessInfo
|
|
@@ -31,7 +31,18 @@
|
|
|
31
31
|
* (`skipif`, `XCTSkipUnless(<expr>)`) is a platform
|
|
32
32
|
* choice and is left alone.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* lint-suppression an added inline lint suppression (`swiftlint:disable`,
|
|
35
|
+
* `eslint-disable`, `@ts-ignore`, `@Suppress(`,
|
|
36
|
+
* `# noqa`, `//nolint`, `#[allow(`, `rubocop:disable`)
|
|
37
|
+
* or a loosened lint config: a rule turned off,
|
|
38
|
+
* downgraded or removed, a disable list grown, a
|
|
39
|
+
* threshold raised. The lint gate passes on code it
|
|
40
|
+
* used to reject. Blocking; a suppression that states
|
|
41
|
+
* its reason on the line is important. Read by
|
|
42
|
+
* _lint-suppression.mjs, which also covers lint config
|
|
43
|
+
* files and comment lines.
|
|
44
|
+
*
|
|
45
|
+
* The other shapes read source files only, and skip comment lines. Configuration
|
|
35
46
|
* (`*.config.*`, CI workflows, YAML) and documentation are out of scope:
|
|
36
47
|
* `retries: process.env.CI ? 2 : 0` in a Playwright config tunes the runner,
|
|
37
48
|
* it does not change what the product does.
|
|
@@ -45,6 +56,7 @@
|
|
|
45
56
|
*/
|
|
46
57
|
|
|
47
58
|
import { isTestPath } from "./_handle-patterns.mjs";
|
|
59
|
+
import { lintDiffContext, lintSuppressionsIn } from "./_lint-suppression.mjs";
|
|
48
60
|
import { parseUnifiedDiff } from "./_unified-diff.mjs";
|
|
49
61
|
|
|
50
62
|
const SOURCE = /\.(swift|m|mm|kt|kts|java|[cm]?[jt]sx?|vue|svelte|py|go|rb|dart|cs)$/i;
|
|
@@ -217,12 +229,38 @@ function timeoutsIn(file, hunk, testFile) {
|
|
|
217
229
|
}
|
|
218
230
|
|
|
219
231
|
/**
|
|
232
|
+
* The scan as a gate reports it: a scan that throws is reported as not run,
|
|
233
|
+
* with the reason, so the caller still writes its output and a reader never
|
|
234
|
+
* takes the missing findings for a clean change.
|
|
235
|
+
*
|
|
220
236
|
* @param {string} diffText unified diff
|
|
237
|
+
* @param {(text: string) => object[]} [scan]
|
|
238
|
+
* @returns {{findings: object[], gaming: {scanned: boolean, count: number, reason?: string}}}
|
|
239
|
+
*/
|
|
240
|
+
export function safeScanTestGaming(diffText, scan = scanTestGaming) {
|
|
241
|
+
try {
|
|
242
|
+
const findings = scan(diffText);
|
|
243
|
+
return { findings, gaming: { scanned: true, count: findings.length } };
|
|
244
|
+
} catch (err) {
|
|
245
|
+
const reason = `test-gaming scan failed: ${err?.name || "Error"}: ${err?.message || String(err)}`;
|
|
246
|
+
return { findings: [], gaming: { scanned: false, count: 0, reason } };
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @param {string} diffText unified diff
|
|
252
|
+
* @param {{readFile?: (path: string) => string | null}} [options] reads a file
|
|
253
|
+
* as it is after the change, for lint-config context the diff leaves out
|
|
221
254
|
* @returns {object[]} reviewer-shaped findings
|
|
222
255
|
*/
|
|
223
|
-
export function scanTestGaming(diffText) {
|
|
256
|
+
export function scanTestGaming(diffText, options = {}) {
|
|
224
257
|
const findings = [];
|
|
225
|
-
|
|
258
|
+
const files = parseUnifiedDiff(diffText);
|
|
259
|
+
const context = lintDiffContext(files, options);
|
|
260
|
+
for (const [file, f] of files) {
|
|
261
|
+
for (const s of lintSuppressionsIn(file, f, context)) {
|
|
262
|
+
findings.push(finding(file, s.line, "lint-suppression", s.severity, s.evidence, s.message));
|
|
263
|
+
}
|
|
226
264
|
if (!SOURCE.test(file) || CONFIG.test(file)) continue;
|
|
227
265
|
const testFile = isTestPath(file);
|
|
228
266
|
|
|
@@ -256,8 +294,8 @@ export function scanTestGaming(diffText) {
|
|
|
256
294
|
);
|
|
257
295
|
}
|
|
258
296
|
}
|
|
259
|
-
for (const run of segments(f.addedAt))
|
|
260
|
-
for (const hunk of f.hunks)
|
|
297
|
+
for (const run of segments(f.addedAt)) for (const x of swallowedIn(file, run)) findings.push(x);
|
|
298
|
+
for (const hunk of f.hunks) for (const x of timeoutsIn(file, hunk, testFile)) findings.push(x);
|
|
261
299
|
}
|
|
262
300
|
return findings;
|
|
263
301
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {{line: number, text: string}} DiffLine
|
|
13
|
-
* @typedef {{header: string, removed: DiffLine[], added: DiffLine[]}} Hunk
|
|
13
|
+
* @typedef {{header: string, context: string, removed: DiffLine[], added: DiffLine[]}} Hunk
|
|
14
14
|
* @typedef {{added: string[], addedAt: DiffLine[], removed: string[], removedAt: DiffLine[],
|
|
15
15
|
* hunks: Hunk[], isNew: boolean, isDeleted: boolean, binary: boolean}} DiffFile
|
|
16
16
|
*/
|
|
@@ -73,7 +73,7 @@ export function parseUnifiedDiff(text) {
|
|
|
73
73
|
let newLeft = h[4] === undefined ? 1 : Number(h[4]);
|
|
74
74
|
let oldNo = Number(h[1]);
|
|
75
75
|
let newNo = Number(h[3]);
|
|
76
|
-
const hunk = { header: h[0], removed: [], added: [] };
|
|
76
|
+
const hunk = { header: h[0], context: line.slice(h[0].length).trim(), removed: [], added: [] };
|
|
77
77
|
cur.hunks.push(hunk);
|
|
78
78
|
while ((oldLeft > 0 || newLeft > 0) && i + 1 < lines.length) {
|
|
79
79
|
const body = lines[++i];
|