peaks-loop 4.1.1 → 4.1.2
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 +50 -0
- package/README-en.md +4 -4
- package/README.md +25 -4
- package/bin/node-floor.mjs +59 -0
- package/bin/peaks.js +13 -0
- package/config/eslint/tsconfig.lint.json +2 -1
- package/dist/cli/cli-helpers.d.ts +0 -1
- package/dist/cli/cli-helpers.js +0 -1
- package/dist/cli/commands/_cli-error-envelope.js +0 -3
- package/dist/cli/commands/adapter-commands-s2a.d.ts +0 -1
- package/dist/cli/commands/adapter-commands.d.ts +0 -1
- package/dist/cli/commands/api-diff-commands.d.ts +0 -1
- package/dist/cli/commands/api-diff-commands.js +0 -1
- package/dist/cli/commands/audit-commands.js +21 -24
- package/dist/cli/commands/autonomous-swarm-commands.js +0 -1
- package/dist/cli/commands/bee-commands.d.ts +0 -2
- package/dist/cli/commands/bee-commands.js +0 -2
- package/dist/cli/commands/best-practice-scan-command.d.ts +0 -1
- package/dist/cli/commands/best-practice-scan-helpers.js +0 -1
- package/dist/cli/commands/changeset-commands.d.ts +0 -2
- package/dist/cli/commands/changeset-commands.js +0 -2
- package/dist/cli/commands/code-commands.d.ts +0 -3
- package/dist/cli/commands/code-commands.js +0 -3
- package/dist/cli/commands/code-gate-command.d.ts +0 -1
- package/dist/cli/commands/code-gate-command.js +0 -1
- package/dist/cli/commands/code-job-shape-commands-read-job-shape.d.ts +0 -1
- package/dist/cli/commands/code-job-shape-commands-read-job-shape.js +0 -1
- package/dist/cli/commands/code-job-shape-commands.d.ts +0 -2
- package/dist/cli/commands/code-job-shape-commands.js +0 -3
- package/dist/cli/commands/code-mode-gate-commands.d.ts +0 -2
- package/dist/cli/commands/code-mode-gate-commands.js +0 -3
- package/dist/cli/commands/code-mode-gate-should-pause-command.js +0 -4
- package/dist/cli/commands/code-mode-gate-should-pause-envelope.d.ts +0 -1
- package/dist/cli/commands/code-mode-gate-should-pause-envelope.js +0 -2
- package/dist/cli/commands/code-mode-status-command.d.ts +0 -1
- package/dist/cli/commands/code-mode-status-command.js +0 -1
- package/dist/cli/commands/code-orchestrator-can-do.d.ts +0 -1
- package/dist/cli/commands/code-orchestrator-can-do.js +0 -1
- package/dist/cli/commands/code-run-command.js +0 -1
- package/dist/cli/commands/code-runtime-commands.d.ts +0 -3
- package/dist/cli/commands/code-runtime-commands.js +0 -15
- package/dist/cli/commands/codegraph-command-runtime.d.ts +6 -0
- package/dist/cli/commands/codegraph-command-runtime.js +19 -7
- package/dist/cli/commands/codegraph-commands.js +20 -193
- package/dist/cli/commands/codegraph-init-command.d.ts +8 -0
- package/dist/cli/commands/codegraph-init-command.js +162 -0
- package/dist/cli/commands/codegraph-status-command.js +5 -6
- package/dist/cli/commands/compact-command.d.ts +0 -1
- package/dist/cli/commands/compact-command.js +0 -4
- package/dist/cli/commands/container-commands.d.ts +0 -1
- package/dist/cli/commands/container-commands.js +0 -1
- package/dist/cli/commands/context-commands.d.ts +0 -1
- package/dist/cli/commands/context-commands.js +0 -1
- package/dist/cli/commands/core/doctor-command.d.ts +0 -1
- package/dist/cli/commands/core/doctor-command.js +0 -9
- package/dist/cli/commands/core/memory-command.js +0 -1
- package/dist/cli/commands/core/session-command.js +0 -14
- package/dist/cli/commands/core/skill-command.js +0 -9
- package/dist/cli/commands/core-artifact-commands.d.ts +0 -1
- package/dist/cli/commands/core-artifact-commands.js +0 -1
- package/dist/cli/commands/cron-commands-actions.d.ts +0 -1
- package/dist/cli/commands/cron-commands-actions.js +0 -2
- package/dist/cli/commands/cron-commands-schedule.d.ts +0 -3
- package/dist/cli/commands/cron-commands-schedule.js +0 -1
- package/dist/cli/commands/cron-commands.d.ts +0 -1
- package/dist/cli/commands/cron-commands.js +0 -2
- package/dist/cli/commands/cron-scheduler-commands.d.ts +0 -1
- package/dist/cli/commands/cron-scheduler-commands.js +0 -1
- package/dist/cli/commands/cron-scheduler-persist.d.ts +0 -5
- package/dist/cli/commands/cron-scheduler-persist.js +0 -5
- package/dist/cli/commands/dashboard-summary.d.ts +0 -1
- package/dist/cli/commands/dispatch-commands.d.ts +0 -1
- package/dist/cli/commands/dispatch-commands.js +10 -37
- package/dist/cli/commands/dispatch-from-dag.js +0 -4
- package/dist/cli/commands/doctor/invoke-from-code.js +0 -1
- package/dist/cli/commands/e2e-verify.d.ts +0 -1
- package/dist/cli/commands/ecc-commands.d.ts +0 -1
- package/dist/cli/commands/evolution-commands.d.ts +0 -1
- package/dist/cli/commands/evolution-commands.js +0 -1
- package/dist/cli/commands/feedback-commands.d.ts +0 -1
- package/dist/cli/commands/feedback-commands.js +0 -2
- package/dist/cli/commands/fixture-commands.d.ts +0 -2
- package/dist/cli/commands/fresh-context-commands.d.ts +0 -1
- package/dist/cli/commands/gate-commands-enforce.d.ts +0 -3
- package/dist/cli/commands/gate-commands-enforce.js +0 -4
- package/dist/cli/commands/gate-commands.js +0 -2
- package/dist/cli/commands/governance-classify-contract-commands.d.ts +0 -3
- package/dist/cli/commands/governance-classify-contract-commands.js +0 -4
- package/dist/cli/commands/heartbeat-commands-action.js +0 -6
- package/dist/cli/commands/heartbeat-commands-validation.d.ts +0 -2
- package/dist/cli/commands/heartbeat-commands-validation.js +0 -2
- package/dist/cli/commands/heartbeat-commands.d.ts +0 -1
- package/dist/cli/commands/heartbeat-commands.js +0 -1
- package/dist/cli/commands/hooks-commands.js +0 -11
- package/dist/cli/commands/ide-commands.d.ts +0 -1
- package/dist/cli/commands/job-add-slice-command.d.ts +0 -2
- package/dist/cli/commands/job-add-slice-command.js +0 -2
- package/dist/cli/commands/job-commands.js +0 -4
- package/dist/cli/commands/lease-metrics-commands.d.ts +0 -1
- package/dist/cli/commands/lease-metrics-commands.js +0 -1
- package/dist/cli/commands/lease-stats-commands.d.ts +0 -1
- package/dist/cli/commands/lease-stats-commands.js +0 -1
- package/dist/cli/commands/log-commands.d.ts +0 -2
- package/dist/cli/commands/log-commands.js +0 -3
- package/dist/cli/commands/loop-eval-commands.js +0 -3
- package/dist/cli/commands/memory-commands.d.ts +0 -1
- package/dist/cli/commands/memory-commands.js +0 -1
- package/dist/cli/commands/observability-commands.d.ts +0 -6
- package/dist/cli/commands/observability-commands.js +0 -6
- package/dist/cli/commands/outer-cache-commands.js +0 -2
- package/dist/cli/commands/playwright-commands.d.ts +0 -1
- package/dist/cli/commands/playwright-commands.js +0 -1
- package/dist/cli/commands/polyrepo-commands.d.ts +0 -1
- package/dist/cli/commands/prd-commands.d.ts +0 -1
- package/dist/cli/commands/prd-commands.js +0 -2
- package/dist/cli/commands/preferences-commands.js +0 -2
- package/dist/cli/commands/primer-command.d.ts +0 -1
- package/dist/cli/commands/primer-command.js +0 -1
- package/dist/cli/commands/project-commands.js +0 -1
- package/dist/cli/commands/qa-commands.d.ts +0 -1
- package/dist/cli/commands/qa-commands.js +0 -2
- package/dist/cli/commands/release-commands.js +0 -9
- package/dist/cli/commands/request-commands.d.ts +0 -1
- package/dist/cli/commands/request-commands.js +0 -10
- package/dist/cli/commands/request-format-helpers.d.ts +0 -1
- package/dist/cli/commands/request-format-helpers.js +0 -2
- package/dist/cli/commands/runtime-commands.d.ts +0 -1
- package/dist/cli/commands/sc-commands.js +0 -1
- package/dist/cli/commands/session-24h-mode.d.ts +0 -1
- package/dist/cli/commands/session-24h-mode.js +0 -2
- package/dist/cli/commands/session-checkpoint-command.d.ts +0 -1
- package/dist/cli/commands/session-checkpoint-command.js +0 -1
- package/dist/cli/commands/session-resume-command.d.ts +0 -1
- package/dist/cli/commands/session-resume-command.js +0 -1
- package/dist/cli/commands/shadcn-commands.js +0 -2
- package/dist/cli/commands/share-commands.d.ts +0 -3
- package/dist/cli/commands/share-commands.js +0 -13
- package/dist/cli/commands/skill-search-commands.d.ts +0 -2
- package/dist/cli/commands/slice-commands.js +0 -2
- package/dist/cli/commands/slice-integrate-commands.js +0 -1
- package/dist/cli/commands/spill-demo-command.d.ts +0 -1
- package/dist/cli/commands/statusline-commands.js +0 -4
- package/dist/cli/commands/sub-agent/detached.js +0 -2
- package/dist/cli/commands/sub-agent-commands.d.ts +0 -3
- package/dist/cli/commands/sub-agent-shared.d.ts +0 -8
- package/dist/cli/commands/sub-agent-shared.js +0 -5
- package/dist/cli/commands/sub-agent-shutdown-commands.d.ts +0 -1
- package/dist/cli/commands/tech-commands.d.ts +0 -4
- package/dist/cli/commands/tech-commands.js +0 -4
- package/dist/cli/commands/vendor-detect.d.ts +0 -3
- package/dist/cli/commands/vendor-detect.js +0 -2
- package/dist/cli/commands/verdict-aggregate-command.d.ts +0 -1
- package/dist/cli/commands/verdict-aggregate-command.js +0 -7
- package/dist/cli/commands/vm-commands.d.ts +0 -1
- package/dist/cli/commands/vm-commands.js +5 -29
- package/dist/cli/commands/vm-hypervisor-probe.d.ts +27 -0
- package/dist/cli/commands/vm-hypervisor-probe.js +78 -0
- package/dist/cli/commands/vm-status-command.d.ts +3 -0
- package/dist/cli/commands/vm-status-command.js +50 -0
- package/dist/cli/commands/wave-plan-commands.d.ts +0 -1
- package/dist/cli/commands/web-lifecycle-commands.d.ts +0 -1
- package/dist/cli/commands/workflow-commands.js +0 -14
- package/dist/cli/commands/workflow-plan-commands-actions.js +0 -2
- package/dist/cli/commands/workflow-plan-commands-session.js +0 -2
- package/dist/cli/commands/workflow-plan-commands.d.ts +0 -1
- package/dist/cli/commands/workspace/clean-command.d.ts +0 -1
- package/dist/cli/commands/workspace/clean-command.js +0 -1
- package/dist/cli/commands/workspace/helpers.d.ts +0 -1
- package/dist/cli/commands/workspace/helpers.js +0 -1
- package/dist/cli/commands/workspace/init-command.d.ts +0 -6
- package/dist/cli/commands/workspace/init-command.js +0 -17
- package/dist/cli/commands/workspace/migrate-command.d.ts +0 -2
- package/dist/cli/commands/workspace/migrate-command.js +0 -2
- package/dist/cli/commands/workspace/reconcile-command.d.ts +0 -2
- package/dist/cli/commands/workspace/reconcile-command.js +0 -3
- package/dist/cli/commands/workspace-commands.d.ts +0 -2
- package/dist/cli/commands/workspace-commands.js +0 -4
- package/dist/cli/commands/worktree-auth-commands.d.ts +0 -1
- package/dist/cli/commands/worktree-auth-commands.js +0 -1
- package/dist/cli/commands/worktree-auth-grant-command.d.ts +0 -1
- package/dist/cli/commands/worktree-auth-grant-command.js +0 -1
- package/dist/cli/commands/worktree-auth-manage-commands.d.ts +0 -1
- package/dist/cli/commands/worktree-auth-manage-commands.js +0 -1
- package/dist/cli/commands/worktree-lease-commands.js +0 -1
- package/dist/cli/program.js +0 -7
- package/dist/reporters/bdd-reporter.js +0 -1
- package/dist/services/24h-mode/auto-engage.d.ts +0 -1
- package/dist/services/24h-mode/auto-engage.js +0 -1
- package/dist/services/24h-mode/decider.d.ts +0 -3
- package/dist/services/24h-mode/decider.js +0 -3
- package/dist/services/24h-mode/index.d.ts +0 -2
- package/dist/services/24h-mode/index.js +0 -2
- package/dist/services/24h-mode/state.d.ts +0 -1
- package/dist/services/24h-mode/state.js +0 -1
- package/dist/services/24h-mode/store.d.ts +0 -1
- package/dist/services/24h-mode/store.js +0 -1
- package/dist/services/adapter/adapter-registry.js +0 -1
- package/dist/services/artifacts/artifact-prerequisites.d.ts +0 -5
- package/dist/services/artifacts/artifact-prerequisites.js +0 -19
- package/dist/services/artifacts/artifact-templates.d.ts +0 -1
- package/dist/services/artifacts/artifact-templates.js +0 -1
- package/dist/services/artifacts/request-artifact-service.d.ts +0 -5
- package/dist/services/artifacts/request-artifact-service.js +0 -12
- package/dist/services/artifacts/request-artifact-state-helpers.d.ts +0 -1
- package/dist/services/artifacts/request-artifact-state-helpers.js +0 -1
- package/dist/services/audit/artifact-writer.d.ts +0 -1
- package/dist/services/audit/artifact-writer.js +0 -1
- package/dist/services/audit/decision-writer.js +3 -1
- package/dist/services/audit/enforcer-liveness.js +0 -1
- package/dist/services/audit/enforcers/active-skill-resolver.d.ts +0 -2
- package/dist/services/audit/enforcers/active-skill-resolver.js +0 -2
- package/dist/services/audit/red-line-audit-input.d.ts +11 -0
- package/dist/services/audit/red-line-audit-input.js +103 -0
- package/dist/services/audit/red-line-catalog-p2-a-bee-runtime.d.ts +0 -1
- package/dist/services/audit/red-line-catalog-p2-a.js +0 -9
- package/dist/services/audit/types.d.ts +0 -2
- package/dist/services/audit/types.js +0 -2
- package/dist/services/audit-independent/perf-audit-service.d.ts +0 -2
- package/dist/services/audit-independent/security-audit-service.d.ts +0 -5
- package/dist/services/audit-independent/security-audit-service.js +0 -2
- package/dist/services/autonomous-swarm/autonomous-swarm-service.d.ts +0 -5
- package/dist/services/autonomous-swarm/autonomous-swarm-service.js +0 -5
- package/dist/services/best-practice/language-detector.js +0 -1
- package/dist/services/best-practice/output-formatter.d.ts +0 -1
- package/dist/services/best-practice/scan-orchestrator.d.ts +0 -1
- package/dist/services/capability-audit-service/types.d.ts +1 -3
- package/dist/services/capability-guard-runner/contracts/J08.js +2 -2
- package/dist/services/changeset/changeset-check-service.d.ts +0 -3
- package/dist/services/changeset/changeset-check-service.js +0 -3
- package/dist/services/classify/classify-service.d.ts +0 -1
- package/dist/services/classify/classify-service.js +0 -1
- package/dist/services/classify/classify-types.d.ts +0 -1
- package/dist/services/classify/classify-types.js +0 -1
- package/dist/services/code/auto-compact-lifecycle.d.ts +0 -11
- package/dist/services/code/auto-compact-lifecycle.js +0 -10
- package/dist/services/code/auto-compact-modes.d.ts +0 -3
- package/dist/services/code/auto-compact-modes.js +0 -3
- package/dist/services/code/auto-compact-orchestrator.d.ts +0 -9
- package/dist/services/code/auto-compact-orchestrator.js +0 -29
- package/dist/services/code/batch-heartbeat-poller.js +0 -1
- package/dist/services/code/compact-event-settle.js +0 -1
- package/dist/services/code/dag-orchestrator.d.ts +0 -1
- package/dist/services/code/dag-orchestrator.js +0 -1
- package/dist/services/code/mode-gate-types.d.ts +0 -2
- package/dist/services/code/mode-gate-types.js +0 -1
- package/dist/services/code/mode-gate.d.ts +0 -5
- package/dist/services/code/mode-gate.js +0 -5
- package/dist/services/code/orchestrator-can-do-advisories.d.ts +0 -2
- package/dist/services/code/orchestrator-can-do-advisories.js +0 -5
- package/dist/services/code/orchestrator-can-do.d.ts +0 -4
- package/dist/services/code/orchestrator-can-do.js +0 -3
- package/dist/services/code/status-line-renderer.js +0 -1
- package/dist/services/code-review/ecc-bridge.d.ts +0 -1
- package/dist/services/codegraph/codegraph-autorefresh.js +6 -4
- package/dist/services/codegraph/codegraph-backend-advice.d.ts +26 -0
- package/dist/services/codegraph/codegraph-backend-advice.js +166 -0
- package/dist/services/codegraph/codegraph-config-repair-writer.d.ts +0 -24
- package/dist/services/codegraph/codegraph-config-repair-writer.js +32 -73
- package/dist/services/codegraph/codegraph-exclude-integrity.d.ts +14 -6
- package/dist/services/codegraph/codegraph-exclude-integrity.js +24 -14
- package/dist/services/codegraph/codegraph-exclude-reconciler.d.ts +9 -2
- package/dist/services/codegraph/codegraph-exclude-reconciler.js +87 -18
- package/dist/services/codegraph/codegraph-exclude-repair.d.ts +9 -61
- package/dist/services/codegraph/codegraph-exclude-repair.js +67 -139
- package/dist/services/codegraph/codegraph-foreign-removal.d.ts +21 -0
- package/dist/services/codegraph/codegraph-foreign-removal.js +77 -0
- package/dist/services/codegraph/codegraph-index-integrity.d.ts +12 -25
- package/dist/services/codegraph/codegraph-index-integrity.js +84 -23
- package/dist/services/codegraph/codegraph-preflight-service.js +15 -6
- package/dist/services/codegraph/codegraph-project-config.d.ts +35 -0
- package/dist/services/codegraph/codegraph-project-config.js +90 -0
- package/dist/services/codegraph/codegraph-service.d.ts +1 -2
- package/dist/services/codegraph/codegraph-service.js +11 -11
- package/dist/services/codegraph/codegraph-upstream-layout.d.ts +24 -0
- package/dist/services/codegraph/codegraph-upstream-layout.js +85 -0
- package/dist/services/comments/comment-audit.d.ts +15 -4
- package/dist/services/comments/comment-audit.js +25 -4
- package/dist/services/comments/comment-citations.d.ts +8 -2
- package/dist/services/comments/comment-citations.js +31 -33
- package/dist/services/comments/comment-hygiene.d.ts +29 -3
- package/dist/services/comments/comment-hygiene.js +40 -3
- package/dist/services/comments/comment-prune.js +52 -4
- package/dist/services/comments/comment-spans.d.ts +30 -0
- package/dist/services/comments/comment-spans.js +266 -0
- package/dist/services/comments/prune-apply.d.ts +22 -0
- package/dist/services/comments/prune-apply.js +69 -2
- package/dist/services/compact/decision-tables.d.ts +0 -2
- package/dist/services/compact/decision-tables.js +0 -2
- package/dist/services/compact/request-transition-hook.js +0 -2
- package/dist/services/compact-history/compact-history-service.d.ts +0 -2
- package/dist/services/compact-history/compact-history-service.js +0 -1
- package/dist/services/compact-statusline/compact-lifecycle-store.js +0 -2
- package/dist/services/compact-statusline/compact-lifecycle-types.d.ts +0 -1
- package/dist/services/compact-statusline/compact-statusline-service.js +0 -4
- package/dist/services/config/config-rollback.js +0 -1
- package/dist/services/config/config-safety.d.ts +0 -1
- package/dist/services/config/config-safety.js +0 -1
- package/dist/services/config/config-service.d.ts +0 -1
- package/dist/services/config/config-service.js +0 -1
- package/dist/services/config/model-routing.d.ts +0 -3
- package/dist/services/config/model-routing.js +0 -5
- package/dist/services/container/container-lease.d.ts +0 -1
- package/dist/services/container/container-lease.js +0 -1
- package/dist/services/context/artifact-meta.js +0 -1
- package/dist/services/context/auto-compact-dispatcher-input.d.ts +0 -3
- package/dist/services/context/auto-compact-dispatcher.js +0 -14
- package/dist/services/context/auto-compact-reader-input.d.ts +0 -1
- package/dist/services/context/auto-compact-reader.d.ts +0 -2
- package/dist/services/context/auto-compact-reader.js +0 -7
- package/dist/services/context/auto-compact-types.d.ts +0 -11
- package/dist/services/context/auto-compact-types.js +0 -1
- package/dist/services/context/build-dispatch-system-prompt.d.ts +11 -29
- package/dist/services/context/build-dispatch-system-prompt.js +8 -27
- package/dist/services/context/codegraph-unavailable-block.d.ts +38 -0
- package/dist/services/context/codegraph-unavailable-block.js +77 -0
- package/dist/services/context/context-audit-hint.d.ts +0 -1
- package/dist/services/context/context-audit-hint.js +0 -1
- package/dist/services/context/context-audit.d.ts +0 -1
- package/dist/services/context/context-audit.js +0 -1
- package/dist/services/context/harness-window-config.d.ts +0 -4
- package/dist/services/context/harness-window-config.js +0 -4
- package/dist/services/context/main-session-monitor.d.ts +0 -2
- package/dist/services/context/main-session-monitor.js +0 -2
- package/dist/services/context/memory-index-reader.d.ts +0 -2
- package/dist/services/context/memory-index-reader.js +0 -1
- package/dist/services/context/memory-preflight-config.d.ts +0 -1
- package/dist/services/context/memory-preflight-service.d.ts +0 -1
- package/dist/services/context/memory-preflight-service.js +0 -3
- package/dist/services/context/memory-preflight-support.d.ts +0 -5
- package/dist/services/context/post-compact-reinjection.d.ts +0 -1
- package/dist/services/context/post-compact-reinjection.js +0 -1
- package/dist/services/context/summary-view.d.ts +0 -1
- package/dist/services/context/summary-view.js +0 -1
- package/dist/services/crystallization/crystallization-service.d.ts +5 -11
- package/dist/services/crystallization/crystallization-service.js +3 -11
- package/dist/services/crystallization/crystallization-store.d.ts +6 -6
- package/dist/services/dispatch/await-batch-helpers.js +0 -3
- package/dist/services/dispatch/await-batch.d.ts +0 -1
- package/dist/services/dispatch/await-batch.js +0 -4
- package/dist/services/dispatch/batch-counter.js +0 -1
- package/dist/services/dispatch/conflict-replay.d.ts +0 -1
- package/dist/services/dispatch/conflict-replay.js +0 -1
- package/dist/services/dispatch/contract-store.d.ts +0 -2
- package/dist/services/dispatch/contract-store.js +0 -2
- package/dist/services/dispatch/dispatch-record-input-types.d.ts +0 -2
- package/dist/services/dispatch/dispatch-record-types.d.ts +0 -10
- package/dist/services/dispatch/dispatch-record-upgrade-fields.js +0 -7
- package/dist/services/dispatch/dispatch-record-upgrade-guards.js +0 -2
- package/dist/services/dispatch/dispatch-record-writer.d.ts +0 -5
- package/dist/services/dispatch/dispatch-record-writer.js +0 -21
- package/dist/services/dispatch/dispatch-sub-agent.d.ts +0 -1
- package/dist/services/dispatch/dispatch-sub-agent.js +0 -1
- package/dist/services/dispatch/e2e-fixtures.js +0 -1
- package/dist/services/dispatch/file-overlap-wave-planner.d.ts +0 -1
- package/dist/services/dispatch/file-overlap-wave-planner.js +0 -1
- package/dist/services/dispatch/isolation-lease.d.ts +0 -2
- package/dist/services/dispatch/isolation-lease.js +0 -2
- package/dist/services/dispatch/service-shutdown.js +0 -1
- package/dist/services/dispatch/session-capsule.js +0 -1
- package/dist/services/dispatch/slice-dag-types.d.ts +0 -1
- package/dist/services/dispatch/slice-dag.js +0 -2
- package/dist/services/dispatch/stage-enum.d.ts +0 -1
- package/dist/services/dispatch/stage-enum.js +0 -1
- package/dist/services/dispatch/startup-timeout.d.ts +0 -1
- package/dist/services/dispatch/sub-agent-batch-await.js +0 -3
- package/dist/services/dispatch/sub-agent-dispatcher-types.d.ts +0 -1
- package/dist/services/dispatch/sub-agent-dispatcher.js +0 -2
- package/dist/services/dispatch/test-tool-detection.d.ts +0 -3
- package/dist/services/dispatch/test-tool-detection.js +0 -2
- package/dist/services/doctor/doctor-service/checks/codegraph-capability.js +19 -12
- package/dist/services/doctor/doctor-service/checks/codegraph-index-integrity.js +1 -2
- package/dist/services/doctor/doctor-service/checks/l3-memory-health.d.ts +0 -2
- package/dist/services/doctor/doctor-service/checks/l3-memory-health.js +0 -2
- package/dist/services/doctor/doctor-service/checks/l3-orphan-sessions.d.ts +0 -1
- package/dist/services/doctor/doctor-service/checks/l3-orphan-sessions.js +0 -1
- package/dist/services/doctor/doctor-service/checks/multi-binary-drift.d.ts +0 -1
- package/dist/services/doctor/doctor-service/checks/multi-binary-drift.js +0 -3
- package/dist/services/doctor/doctor-service/checks/workspace-layout.js +0 -2
- package/dist/services/doctor/doctor-service/index.d.ts +0 -1
- package/dist/services/doctor/doctor-service/index.js +0 -1
- package/dist/services/doctor/doctor-service/plugin-registry.d.ts +0 -2
- package/dist/services/doctor/doctor-service/plugin-registry.js +0 -2
- package/dist/services/doctor/doctor-service/probe-types.d.ts +0 -4
- package/dist/services/doctor/doctor-service/report/final-summary.d.ts +0 -1
- package/dist/services/doctor/doctor-service/report/final-summary.js +0 -1
- package/dist/services/doctor/doctor-service/types.d.ts +0 -5
- package/dist/services/doctor/doctor-service/types.js +0 -1
- package/dist/services/doctor/doctor-service.d.ts +0 -1
- package/dist/services/doctor/doctor-service.js +0 -2
- package/dist/services/env/shell-probe.js +0 -1
- package/dist/services/evidence/evidence-generator.js +0 -8
- package/dist/services/evolution/evolution-constraints.d.ts +0 -2
- package/dist/services/evolution/evolution-constraints.js +0 -2
- package/dist/services/evolution/evolution-service.d.ts +2 -12
- package/dist/services/evolution/evolution-service.js +0 -9
- package/dist/services/evolution/evolution-store.d.ts +6 -8
- package/dist/services/evolution/evolution-store.js +1 -3
- package/dist/services/evolution/evolution-types.d.ts +0 -2
- package/dist/services/evolution/evolution-types.js +0 -6
- package/dist/services/evolution/independent-evaluator-runner.d.ts +0 -3
- package/dist/services/evolution/independent-evaluator-runner.js +0 -1
- package/dist/services/evolution/regression-skeptic-runner.d.ts +0 -1
- package/dist/services/feedback/feedback-promotion-service.d.ts +0 -8
- package/dist/services/feedback/feedback-promotion-service.js +0 -10
- package/dist/services/feedback/promotion-artifact-evidence.d.ts +0 -1
- package/dist/services/feedback/promotion-artifact-evidence.js +0 -1
- package/dist/services/final-review/final-review-evidence-budget.d.ts +0 -3
- package/dist/services/final-review/final-review-evidence-budget.js +0 -5
- package/dist/services/final-review/final-review-evidence-sources.d.ts +0 -1
- package/dist/services/final-review/final-review-evidence-sources.js +0 -1
- package/dist/services/final-review/final-review-output-budget.d.ts +0 -1
- package/dist/services/final-review/final-review-output-budget.js +0 -3
- package/dist/services/final-review/final-review-service.d.ts +0 -1
- package/dist/services/final-review/final-review-service.js +0 -1
- package/dist/services/fixture/fixture-capture-service.js +0 -1
- package/dist/services/fixture/fixture-sanitize-service.d.ts +0 -3
- package/dist/services/fixture/fixture-sanitize-service.js +0 -3
- package/dist/services/fresh-context/config.js +0 -1
- package/dist/services/fresh-context/fresh-context-block.js +0 -1
- package/dist/services/fresh-context/trigger-scan.d.ts +0 -1
- package/dist/services/fresh-context/trigger-scan.js +0 -1
- package/dist/services/fuzzy-matching/fzf-pick-service.d.ts +0 -1
- package/dist/services/fuzzy-matching/fzf-pick-service.js +0 -1
- package/dist/services/handoff/handoff-parser.d.ts +0 -1
- package/dist/services/handoff/handoff-parser.js +0 -1
- package/dist/services/handoff/handoff-types.d.ts +0 -1
- package/dist/services/handoff/handoff-types.js +0 -1
- package/dist/services/handoff/handoff-writer.d.ts +0 -1
- package/dist/services/handoff/handoff-writer.js +0 -1
- package/dist/services/hooks/auto-compact-hook-install.d.ts +0 -1
- package/dist/services/hooks/auto-compact-hook-install.js +0 -1
- package/dist/services/hooks/output.d.ts +0 -1
- package/dist/services/hooks/output.js +0 -1
- package/dist/services/hooks/pre-tool-code-gate.d.ts +0 -1
- package/dist/services/hooks/pre-tool-code-gate.js +0 -1
- package/dist/services/hooks/presence-marker-detector.js +0 -1
- package/dist/services/hooks/worktree-authorization-gate.d.ts +0 -3
- package/dist/services/hooks/worktree-authorization-gate.js +0 -1
- package/dist/services/ide/adapters/claude-code-adapter.d.ts +0 -5
- package/dist/services/ide/adapters/claude-code-adapter.js +0 -11
- package/dist/services/ide/adapters/qoder-adapter.d.ts +0 -3
- package/dist/services/ide/adapters/qoder-adapter.js +0 -5
- package/dist/services/ide/adapters/tongyi-lingma-adapter.d.ts +0 -2
- package/dist/services/ide/adapters/tongyi-lingma-adapter.js +0 -2
- package/dist/services/ide/adapters/trae-adapter.d.ts +0 -3
- package/dist/services/ide/adapters/trae-adapter.js +3 -6
- package/dist/services/ide/adapters/zcode-adapter.js +0 -2
- package/dist/services/ide/current-model-detector.js +0 -1
- package/dist/services/ide/hook-protocol.d.ts +0 -2
- package/dist/services/ide/hook-protocol.js +0 -2
- package/dist/services/ide/ide-compact-types.d.ts +0 -7
- package/dist/services/ide/ide-types.d.ts +0 -12
- package/dist/services/ide/resource-profile.d.ts +0 -1
- package/dist/services/job/job-commit-verification.d.ts +0 -2
- package/dist/services/job/job-commit-verification.js +0 -2
- package/dist/services/job/job-orchestrator.d.ts +0 -1
- package/dist/services/job/job-orchestrator.js +0 -1
- package/dist/services/job/job-progress-store.d.ts +0 -2
- package/dist/services/job/job-progress-store.js +0 -3
- package/dist/services/job/job-types.js +0 -1
- package/dist/services/job-snapshot/snapshot.js +0 -1
- package/dist/services/karpathy-cost/karpathy-cost-check-service.js +0 -1
- package/dist/services/legacy/legacy-detector.js +0 -1
- package/dist/services/log/log-commands-service.d.ts +0 -2
- package/dist/services/log/log-commands-service.js +0 -2
- package/dist/services/log/logger.d.ts +0 -1
- package/dist/services/log/logger.js +0 -1
- package/dist/services/log/redact.d.ts +0 -1
- package/dist/services/log/redact.js +0 -1
- package/dist/services/log/retention.d.ts +0 -1
- package/dist/services/log/retention.js +0 -1
- package/dist/services/loop/loop-bee-relation-service.d.ts +3 -3
- package/dist/services/loop/loop-bee-relation-service.js +14 -13
- package/dist/services/loop/loop-bee-relation-store.d.ts +9 -10
- package/dist/services/loop/loop-bee-relation-store.js +1 -2
- package/dist/services/loop/loop-bee-relation-types.d.ts +1 -1
- package/dist/services/loop/loop-bee-relation-types.js +1 -1
- package/dist/services/loop/loop-release-service.d.ts +3 -3
- package/dist/services/loop/loop-release-service.js +1 -1
- package/dist/services/loop/loop-release-store.d.ts +6 -7
- package/dist/services/loop/loop-release-store.js +0 -1
- package/dist/services/loop/monotonic-guard.d.ts +0 -1
- package/dist/services/loop/monotonic-guard.js +0 -1
- package/dist/services/memory/memory-ingest-service.js +0 -1
- package/dist/services/memory/project-context-service.d.ts +0 -1
- package/dist/services/memory/project-context-service.js +0 -1
- package/dist/services/memory/project-memory-service/index/reindex.d.ts +0 -2
- package/dist/services/memory/project-memory-service/index/reindex.js +0 -1
- package/dist/services/memory/project-memory-service/index/search.d.ts +0 -1
- package/dist/services/memory/project-memory-service/index/search.js +0 -1
- package/dist/services/memory/project-memory-service/memory-kinds.d.ts +0 -1
- package/dist/services/memory/project-memory-service/memory-kinds.js +0 -1
- package/dist/services/memory/project-memory-service/parsers/frontmatter.d.ts +0 -1
- package/dist/services/memory/project-memory-service/parsers/frontmatter.js +0 -1
- package/dist/services/memory/project-memory-service.js +0 -1
- package/dist/services/mode/mode-enforcement.js +0 -1
- package/dist/services/mode/mode-status-service.d.ts +0 -2
- package/dist/services/mode/mode-status-service.js +0 -2
- package/dist/services/observability/aggregation.d.ts +0 -4
- package/dist/services/observability/aggregation.js +0 -6
- package/dist/services/observability/observability-schema.js +0 -1
- package/dist/services/observability/observability-service.d.ts +0 -5
- package/dist/services/observability/observability-service.js +0 -4
- package/dist/services/observability/report-formatter.d.ts +0 -2
- package/dist/services/observability/report-formatter.js +0 -2
- package/dist/services/openspec/artifact-boundary.d.ts +0 -4
- package/dist/services/openspec/artifact-boundary.js +0 -4
- package/dist/services/openspec/coverage-evidence-reader.d.ts +0 -1
- package/dist/services/openspec/coverage-evidence-reader.js +0 -1
- package/dist/services/polyrepo/polyrepo-dispatcher.js +0 -1
- package/dist/services/polyrepo/polyrepo-scanner.js +0 -1
- package/dist/services/polyrepo/polyrepo-service.js +0 -1
- package/dist/services/polyrepo/polyrepo-types.d.ts +0 -1
- package/dist/services/prd/best-practice-auto-trigger.d.ts +0 -2
- package/dist/services/prd/best-practice-auto-trigger.js +0 -2
- package/dist/services/prd/gate-evidence-derivation.d.ts +0 -4
- package/dist/services/prd/gate-evidence-derivation.js +0 -5
- package/dist/services/prd/handoff-auto-regen.js +0 -5
- package/dist/services/prd/handoff-frontmatter-shape.d.ts +0 -2
- package/dist/services/prd/handoff-frontmatter-shape.js +0 -2
- package/dist/services/prd/handoff-frontmatter.d.ts +0 -1
- package/dist/services/prd/handoff-frontmatter.js +0 -2
- package/dist/services/prd/handoff-gate-evidence.d.ts +0 -1
- package/dist/services/prd/handoff-gate-evidence.js +0 -4
- package/dist/services/prd/handoff-path-resolution.d.ts +0 -7
- package/dist/services/prd/handoff-path-resolution.js +0 -10
- package/dist/services/prd/handoff-service.d.ts +0 -2
- package/dist/services/prd/handoff-service.js +0 -2
- package/dist/services/prd/handoff-types.d.ts +0 -2
- package/dist/services/prd/handoff-types.js +0 -1
- package/dist/services/prd/project-scan-bootstrap-service.d.ts +0 -1
- package/dist/services/prd/project-scan-bootstrap-service.js +0 -4
- package/dist/services/prd/project-scan-types.d.ts +0 -1
- package/dist/services/prd/project-scan-types.js +0 -1
- package/dist/services/preferences/preferences-service.d.ts +0 -1
- package/dist/services/preferences/preferences-service.js +0 -5
- package/dist/services/preferences/preferences-types.d.ts +0 -14
- package/dist/services/preferences/preferences-types.js +0 -4
- package/dist/services/progress/progress-service.js +0 -1
- package/dist/services/qa/bdd-test-style-verifier.d.ts +0 -1
- package/dist/services/qa/bdd-test-style-verifier.js +0 -1
- package/dist/services/qa/browser-event-logger.d.ts +0 -1
- package/dist/services/qa/browser-event-logger.js +0 -1
- package/dist/services/qa/browser-restart-detector.d.ts +0 -1
- package/dist/services/qa/browser-restart-detector.js +0 -1
- package/dist/services/qa/browser-reuse-hint.d.ts +0 -1
- package/dist/services/qa/browser-reuse-hint.js +0 -1
- package/dist/services/qa/qa-business-review-state.js +0 -2
- package/dist/services/qa/screenshot-archive-service.d.ts +0 -1
- package/dist/services/qa/screenshot-archive-service.js +0 -1
- package/dist/services/rd/impl.js +0 -1
- package/dist/services/rd/rd-service.d.ts +0 -5
- package/dist/services/rd/rd-service.js +0 -5
- package/dist/services/rd/reviewer-dispatch-policy.d.ts +0 -4
- package/dist/services/rd/reviewer-dispatch-policy.js +0 -4
- package/dist/services/rd/standards-diagnostic.js +0 -1
- package/dist/services/rd/tactical-stage.js +0 -1
- package/dist/services/rd-swarm/rd-swarm-types.d.ts +0 -1
- package/dist/services/rd-swarm/rd-swarm-types.js +0 -1
- package/dist/services/recommendations/installed-capability-detector.d.ts +0 -1
- package/dist/services/recommendations/installed-capability-detector.js +0 -1
- package/dist/services/release/version-precheck-service.d.ts +0 -2
- package/dist/services/release/version-precheck-service.js +0 -3
- package/dist/services/retrospective/retrospective-index.d.ts +0 -1
- package/dist/services/retrospective/retrospective-index.js +0 -1
- package/dist/services/retrospective/retrospective-show.d.ts +0 -1
- package/dist/services/retrospective/retrospective-show.js +0 -1
- package/dist/services/reviewer/model-family.js +0 -1
- package/dist/services/reviewer/reviewer-config.js +0 -1
- package/dist/services/reviewer/reviewer-service.d.ts +0 -1
- package/dist/services/reviewer/reviewer-service.js +0 -3
- package/dist/services/reviewer/selection-strategies.js +0 -1
- package/dist/services/runtime/runtime-detector.js +0 -1
- package/dist/services/runtime/runtime-service.d.ts +0 -2
- package/dist/services/runtime/vendor-adapter.d.ts +0 -7
- package/dist/services/runtime/vendors/claude-code.js +0 -1
- package/dist/services/runtime/vendors/codex.js +0 -1
- package/dist/services/runtime/vendors/copilot.js +0 -1
- package/dist/services/sc/sc-service.js +0 -6
- package/dist/services/scan/acceptance-coverage-service.js +0 -2
- package/dist/services/scan/api-diff-recorded.d.ts +0 -1
- package/dist/services/scan/api-diff-recorded.js +0 -1
- package/dist/services/scan/api-diff-service.d.ts +0 -1
- package/dist/services/scan/api-diff-service.js +0 -1
- package/dist/services/scan/api-diff-types.d.ts +0 -1
- package/dist/services/scan/api-diff-types.js +0 -1
- package/dist/services/scan/archetype-service.js +0 -1
- package/dist/services/scan/file-size-policy.d.ts +0 -1
- package/dist/services/scan/file-size-policy.js +0 -5
- package/dist/services/scan/file-size-scan.d.ts +0 -1
- package/dist/services/security/safe-settings-path.js +0 -1
- package/dist/services/session/binding-store.d.ts +0 -4
- package/dist/services/session/binding-store.js +0 -7
- package/dist/services/session/caller-binding-service.d.ts +0 -6
- package/dist/services/session/caller-binding-service.js +0 -4
- package/dist/services/session/caller-id-types.d.ts +0 -3
- package/dist/services/session/caller-id-types.js +0 -2
- package/dist/services/session/getSessionDir.js +0 -1
- package/dist/services/session/index.js +0 -1
- package/dist/services/session/platform-fallbacks.d.ts +0 -3
- package/dist/services/session/platform-fallbacks.js +0 -3
- package/dist/services/session/resolve-caller-id.d.ts +0 -2
- package/dist/services/session/resolve-caller-id.js +0 -2
- package/dist/services/session/session-binding-bridge.d.ts +0 -2
- package/dist/services/session/session-binding-bridge.js +0 -15
- package/dist/services/session/session-checkpoint-service.d.ts +0 -1
- package/dist/services/session/session-checkpoint-service.js +0 -1
- package/dist/services/session/session-manager.d.ts +0 -8
- package/dist/services/session/session-manager.js +0 -19
- package/dist/services/session/session-resume-service.d.ts +0 -1
- package/dist/services/session/session-resume-service.js +0 -1
- package/dist/services/share/bundle-reader.d.ts +2 -5
- package/dist/services/share/bundle-reader.js +6 -8
- package/dist/services/share/bundle-writer.d.ts +2 -2
- package/dist/services/skill/resume-detector.js +0 -3
- package/dist/services/skill/skill-scheduler.d.ts +0 -1
- package/dist/services/skill/skill-scheduler.js +0 -1
- package/dist/services/skill/skill-search-service.d.ts +0 -2
- package/dist/services/skill/skill-search-service.js +0 -2
- package/dist/services/skillhub/release-diff.d.ts +2 -2
- package/dist/services/skillhub/release-export.d.ts +2 -2
- package/dist/services/skillhub/release-gc-blobs.d.ts +2 -2
- package/dist/services/skillhub/release-import.d.ts +2 -2
- package/dist/services/skillhub/release-import.js +2 -1
- package/dist/services/skillhub/release-retain.d.ts +2 -2
- package/dist/services/skillhub/release-retain.js +2 -1
- package/dist/services/skillhub/sqlite-store.d.ts +3 -3
- package/dist/services/skillhub/sqlite-store.js +4 -5
- package/dist/services/skills/hooks-codegate-superpowers.d.ts +0 -3
- package/dist/services/skills/hooks-codegate-superpowers.js +0 -14
- package/dist/services/skills/hooks-settings-service.d.ts +0 -2
- package/dist/services/skills/hooks-settings-service.js +0 -6
- package/dist/services/skills/presence-lease-service.d.ts +0 -1
- package/dist/services/skills/presence-lease-service.js +0 -1
- package/dist/services/skills/session-start-hook-constants.d.ts +0 -4
- package/dist/services/skills/session-start-hook-constants.js +0 -4
- package/dist/services/skills/skill-presence-service.d.ts +0 -8
- package/dist/services/skills/skill-presence-service.js +0 -13
- package/dist/services/skills/skill-statusline-model.d.ts +0 -6
- package/dist/services/skills/skill-statusline-model.js +1 -4
- package/dist/services/skills/skill-statusline-renderer.d.ts +0 -1
- package/dist/services/skills/skill-statusline-renderer.js +0 -12
- package/dist/services/skills/skill-statusline-service.js +0 -6
- package/dist/services/skills/skill-statusline-sid-suffix.d.ts +0 -2
- package/dist/services/skills/skill-statusline-sid-suffix.js +0 -2
- package/dist/services/skills/statusline-palette.d.ts +0 -2
- package/dist/services/skills/statusline-palette.js +0 -3
- package/dist/services/slice/slice-archive-service.js +0 -1
- package/dist/services/slice/slice-benchmark-service.d.ts +0 -1
- package/dist/services/slice/slice-benchmark-service.js +0 -1
- package/dist/services/slice/slice-check-service.js +0 -6
- package/dist/services/slice/slice-check-types.d.ts +0 -1
- package/dist/services/slice/slice-pick-service.d.ts +0 -1
- package/dist/services/slice/slice-pick-service.js +0 -1
- package/dist/services/slice/slice-review-state.js +0 -2
- package/dist/services/sqlite/sqlite-driver.d.ts +118 -0
- package/dist/services/sqlite/sqlite-driver.js +159 -0
- package/dist/services/standards/ide-aware-standards-service.d.ts +0 -2
- package/dist/services/standards/ide-aware-standards-service.js +0 -1
- package/dist/services/standards/loop-engineering-readiness-lint.d.ts +0 -1
- package/dist/services/standards/loop-engineering-readiness-lint.js +0 -1
- package/dist/services/standards/migrate-claude-rules-service.js +0 -3
- package/dist/services/standards/migrate-service.d.ts +0 -1
- package/dist/services/standards/migrate-service.js +0 -1
- package/dist/services/standards/missing-standards-detector.d.ts +0 -2
- package/dist/services/standards/missing-standards-detector.js +0 -3
- package/dist/services/standards/project-standards-service.d.ts +0 -1
- package/dist/services/standards/project-standards-service.js +0 -1
- package/dist/services/standards/standards-render.d.ts +0 -1
- package/dist/services/standards/standards-render.js +0 -1
- package/dist/services/standards/ui-library-dispatch-block.d.ts +0 -1
- package/dist/services/standards/ui-library-dispatch-block.js +0 -1
- package/dist/services/tech/tech-change-id-service.d.ts +0 -7
- package/dist/services/tech/tech-change-id-service.js +0 -7
- package/dist/services/tech/tech-service.js +0 -5
- package/dist/services/verdict/envelope-parsers.d.ts +0 -2
- package/dist/services/verdict/envelope-parsers.js +0 -2
- package/dist/services/verdict/envelopes.d.ts +0 -1
- package/dist/services/vm/vm-lease.js +0 -1
- package/dist/services/web/aria-node.d.ts +0 -1
- package/dist/services/web/bounded-output.d.ts +0 -1
- package/dist/services/web/bounded-output.js +0 -1
- package/dist/services/web/browser-acquire.js +0 -1
- package/dist/services/web/browser-cache-probe.js +0 -1
- package/dist/services/web/browser-session-manager.js +0 -1
- package/dist/services/web/daemon-entry.js +0 -1
- package/dist/services/web/daemon-registry.js +0 -1
- package/dist/services/web/daemon-supervisor.d.ts +4 -3
- package/dist/services/web/daemon-supervisor.js +4 -4
- package/dist/services/web/playwright-loader.js +0 -1
- package/dist/services/web/playwright-types.d.ts +0 -1
- package/dist/services/web/snapshot-pruner.js +0 -1
- package/dist/services/web/untrusted-envelope.d.ts +0 -1
- package/dist/services/web/web-artifact-paths.js +0 -1
- package/dist/services/web/web-client.d.ts +0 -1
- package/dist/services/web/web-daemon-service.js +0 -1
- package/dist/services/web/web-fallback.d.ts +0 -1
- package/dist/services/web/web-fallback.js +0 -1
- package/dist/services/web/web-install-service.js +0 -1
- package/dist/services/web/web-login-profile.js +0 -1
- package/dist/services/web/web-protocol.d.ts +0 -1
- package/dist/services/web/web-protocol.js +0 -1
- package/dist/services/web/web-status-report.js +0 -1
- package/dist/services/workflow/artifact-paths.js +0 -3
- package/dist/services/workflow/autonomous-resume-writer.js +0 -2
- package/dist/services/workflow/pipeline-verify-gate-support.d.ts +0 -5
- package/dist/services/workflow/pipeline-verify-gate-support.js +0 -11
- package/dist/services/workflow/pipeline-verify-service.d.ts +0 -2
- package/dist/services/workflow/pipeline-verify-service.js +0 -15
- package/dist/services/workflow/pipeline-verify-types.d.ts +0 -10
- package/dist/services/workflow/pipeline-verify-types.js +0 -2
- package/dist/services/workflow/plan-reader.d.ts +0 -1
- package/dist/services/workflow/plan-reader.js +0 -5
- package/dist/services/workflow/plan-refresher.js +0 -2
- package/dist/services/workflow/plan-trigger-detector.d.ts +0 -2
- package/dist/services/workflow/plan-trigger-detector.js +0 -3
- package/dist/services/workflow/workflow-autonomous-resume-helpers.js +0 -5
- package/dist/services/workflow/workflow-autonomous-service.js +0 -2
- package/dist/services/workflow/workflow-autonomous-types.d.ts +0 -2
- package/dist/services/workflow/workflow-autonomous-types.js +0 -2
- package/dist/services/workflow/workflow-graph-types.d.ts +0 -1
- package/dist/services/workflow/workflow-graph-types.js +0 -1
- package/dist/services/workflow/workflow-router-service.js +0 -4
- package/dist/services/workflow/workflow-skip-service.d.ts +0 -1
- package/dist/services/workflow/workflow-skip-service.js +0 -1
- package/dist/services/workflow/workflow-spec-lint.d.ts +0 -2
- package/dist/services/workflow/workflow-spec-lint.js +0 -2
- package/dist/services/workflow/workflow-spec-types.d.ts +0 -1
- package/dist/services/workflow/workflow-spec-types.js +0 -1
- package/dist/services/workflow/workflow-spec-yaml.d.ts +0 -2
- package/dist/services/workflow/workflow-spec-yaml.js +0 -2
- package/dist/services/workflow/workflow-spec.js +0 -1
- package/dist/services/workflow/workflow-state-store.js +0 -1
- package/dist/services/workspace/claude-settings-template.d.ts +0 -4
- package/dist/services/workspace/claude-settings-template.js +0 -4
- package/dist/services/workspace/migrate-1-4-1-service.d.ts +0 -1
- package/dist/services/workspace/migrate-1-4-1-service.js +0 -1
- package/dist/services/workspace/migrate-service.js +0 -8
- package/dist/services/workspace/migrate-types.d.ts +0 -4
- package/dist/services/workspace/migrate-types.js +0 -1
- package/dist/services/workspace/reconcile-migrate.d.ts +0 -3
- package/dist/services/workspace/reconcile-migrate.js +0 -5
- package/dist/services/workspace/reconcile-service.d.ts +0 -3
- package/dist/services/workspace/reconcile-service.js +0 -7
- package/dist/services/workspace/reconcile-types.d.ts +0 -5
- package/dist/services/workspace/sid-naming-guard.d.ts +0 -1
- package/dist/services/workspace/sid-naming-guard.js +0 -1
- package/dist/services/workspace/templates/project-scan/index.d.ts +0 -3
- package/dist/services/workspace/templates/project-scan/index.js +0 -3
- package/dist/services/workspace/workspace-claude-settings-materializer.d.ts +0 -1
- package/dist/services/workspace/workspace-claude-settings-materializer.js +0 -4
- package/dist/services/workspace/workspace-service.d.ts +0 -7
- package/dist/services/workspace/workspace-service.js +0 -16
- package/dist/services/worktree/playwright-profile.js +0 -1
- package/dist/services/worktree/worktree-lease-types.d.ts +0 -1
- package/dist/services/worktree/worktree-lease-types.js +0 -1
- package/dist/services/worktree/worktree-lease.d.ts +0 -2
- package/dist/services/worktree/worktree-lease.js +0 -2
- package/dist/shared/format-md-compact.d.ts +0 -2
- package/dist/shared/format-md-compact.js +0 -2
- package/dist/shared/incrementing-number.d.ts +0 -1
- package/dist/shared/incrementing-number.js +0 -1
- package/dist/shared/path-utils.d.ts +0 -1
- package/dist/shared/path-utils.js +0 -1
- package/dist/shared/runtime-root.d.ts +0 -1
- package/dist/shared/runtime-root.js +0 -1
- package/dist/shared/stale-policy.d.ts +0 -1
- package/dist/shared/stale-policy.js +0 -1
- package/package.json +12 -10
- package/scripts/canonical-store-link.mjs +296 -0
- package/scripts/canonical-store-prune.mjs +131 -0
- package/scripts/canonical-store.mjs +298 -0
- package/scripts/install-skills.mjs +175 -383
- package/skills/peaks-audit/SKILL.md +3 -3
- package/dist/services/codegraph/codegraph-include-reconciler.d.ts +0 -10
- package/dist/services/codegraph/codegraph-include-reconciler.js +0 -160
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.1.2 — 2026-10-08 (资产真源落地: 升级不再静默冻结入口; codegraph 换上 1.6.2 的包模型, 顺带照出一条从未响过的失败路径)
|
|
4
|
+
|
|
5
|
+
**版本级别**: 未发布区间 `v4.1.1..HEAD` 共 **14 个 commit**(6 feat / 3 fix / 1 refactor / 1 test / 3 docs)。取 **patch**:本版不新增命令,不改变任何既有命令的输入输出形状 —— 两件主要工作都是"让已经承诺的行为真的发生"。4 个 workspace 包各 +1 patch(shared 0.0.90→0.0.91、internal-runtime 0.0.41→0.0.42、mut 0.1.55→0.1.56、shared-channel 0.0.58→0.0.59),与 `scripts/bump-version.mjs` 的 lockstep 规则(每个可发布包跟随根版本 +1 patch)一致;实测子包自身的 `version` 字段**不进** `pnpm-lock.yaml`(workspace 依赖在 lock 里是 `link:` 形态、importer 条目为 `packages/peaks-loop-shared: {}`,无版本行),故本版**不需要**改 lockfile。
|
|
6
|
+
|
|
7
|
+
### 1. 资产真源:升级不再静默冻结入口(4 feat + 1 refactor + 1 test)
|
|
8
|
+
|
|
9
|
+
原先三个安装器(`installBundledSkills` / `installBundledAgents` / `installBundledOutputStyles`)把归属判断写成 `resolve(marker.sourcePath) === resolve(sourcePath)`,比对的原件是**装它的那个版本**的包路径。实测这条路径里带 node 版本号(`…\nvm\v24.21.0\node_modules\…`),于是这个判断本身就是一个"版本内有效"的事实:一次 node 升级之后的第一次 `npm i -g peaks-loop@latest`,此后每一次运行都会**跳过**该条目 —— 既不更新,也不报错。而唯一的修复路径 `reconcileJunctions` postinstall 从不传入,其余所有情况都落到一个**无声的** `skipped`:升级既不修旧链,也不说没修。本机实测:8 个 IDE 目录 × 44 个 `peaks-*` 条目,全部解析进同一个包路径。
|
|
10
|
+
|
|
11
|
+
现在三族都走真源(skills 原本已走,agents / output-styles 在 `4e1bd85a` 补齐):`~/.peaks/{skills,agents,output-styles}/<name>` 放真副本,IDE 侧入口指向它 —— 升级变成**重写一份副本,而不是重指 176 条链**。归属由 `.peaks-managed` 边车 + 两侧 `realpath` 决定,**绝不用字符串相等**(Windows junction 的 `readlinkSync` 拼写不保证,这正是旧安装器里那处脆弱点,新模块不许抄它);旧的 JSON 边车按两条臂之一收养 —— 记录的包路径已不再解析(更早一次安装),或那个路径**就是**正在安装的这个包(原地升级);记录的路径解析到**另一个活的包**则原样不动 —— 那是第二份安装,不是陈旧的。
|
|
12
|
+
|
|
13
|
+
Windows 不给**文件**符号链接(没有开发者模式或管理员时),而 skills 用的 junction 从不需要这个权限。宿主拒绝时写实体副本(保留"每次运行都保持最新"的语义),并在返回值与 stderr 上说明这次拒绝 —— `copied` 与 `skipped` 现在各自说得出自己是哪一个;一次不带理由的降级与一次成功无法区分。
|
|
14
|
+
|
|
15
|
+
`dbf91c25` 把真源根从 `~/.agents` 改成 `~/.peaks`(owner 在本次 job 内改的决定):`~/.agents` 是**共享命名空间**(`npx skills`、agentrecall、agentlink 都往那里写),而 `~/.peaks` 是 peaks-loop 自己的家且**已在使用**(实测 `~/.peaks/agents/` 存在并持有 `ecc`);共享约定唯一的好处(给原生读它的工具省一条软链)本次**没有任何测量**证明过。环境变量复用 `PEAKS_HOME`(`peaksHome()`,`src/services/sop/sop-paths.ts:29`)而非新造一个 —— 一个目录两个旋钮就是一对可以互相矛盾的值。
|
|
16
|
+
|
|
17
|
+
`e08dc4af` 补上最后一块:安装器此前**只会加**。把某个 skill 从包里删掉,它的真源副本、各 IDE 目录里的链、`.peaks-managed` 边车会永远留在用户机器上 —— 这与"更新"的含义不符。新的 `canonical-store-prune.mjs` 删真源条目 / IDE 链 / 边车,凡是 `isManagedEntry` **证明不了**是自己的一律保留;顺带把 `ensureCanonicalCopy` 原先无条件的 `rmSync` 换成 `action: 'unmanaged'`(→ `skipped`)—— 那正是根目录搬迁时记下的隐患:`~/.peaks/agents/` 真的有一个 peaks-loop 自己建的 69 条目 `ecc/`,一个同名捆绑资产本会把它静默删掉。**负控是本片重点**:用户自建的真目录 `peaks-gamma`(无边车)同时放进真源与 IDE 目录,`pruned: []`,两者逐字节存活;把 `isManagedEntry` 强制成 `return true` 则三臂转红。端到端实测(一次性 HOME / USERPROFILE / PEAKS_HOME):装 alpha 与 beta、从包里去掉 alpha、重跑 —— `pruned: ["skills/peaks-alpha", "…\.claude\skills/peaks-alpha"]`,四件产物全消失,beta 未动。
|
|
18
|
+
|
|
19
|
+
**发布白名单是本版反复咬人的一处。** `package.json#files` 是 npm 发布白名单,而仓库里**没有任何东西读它** —— 一个不在里面的模块会让每一个已发布包的用户在 `ERR_MODULE_NOT_FOUND` 上崩掉,而整个测试套件保持全绿。本分支三次踩到(`canonical-store.mjs`、`canonical-store-prune.mjs`、`canonical-store-link.mjs`):slice 1 加文件时无人导入,`npm pack --dry-run` 给出 `canonical-store shipped: false`,直到 slice 2 接上 import 才暴露。`87d2b86b` 把一条"枚举两个模块名"的守卫(第三个模块出现就会放行)换成 `install-skills-published-modules.test.ts` —— 从安装器自己的相对 import 里**读出规则**,没有表要维护;解析器先断言解析结果非空,再用同一份解析器跑 fixture 文本,于是"解析器退化成空转"会被它自己的读法抓住,而不是被它恰好指向的文件抓住。
|
|
20
|
+
|
|
21
|
+
**本版未测(记录而非隐瞒)**:trae / codex / cursor 是否跟随文件符号链接(只探过 Claude Code 2.1.292);以及一次自然发生的、无开发者模式下的 EPERM。**记录未修**:手工删掉一条链会让对应 IDE 边车变成孤儿,prune 不扫这种情况(有意的范围限制);nvm 用户保留旧 node 版本时那条包路径仍可解析,条目会两条收养臂都不落,现在报在 stderr 上(此前无声)。
|
|
22
|
+
|
|
23
|
+
### 2. codegraph 升到 1.6.2:包模型换了骨,配置轴反了向(2 feat + 1 fix)
|
|
24
|
+
|
|
25
|
+
`0.7.10` → `1.6.2` 的升级**不是**表面工作。在 Node v24.21.0(ABI 137)上 `better-sqlite3@11.10.0` 没有预编译二进制,0.7.10 的原生后端在本机根本建不起来,`prebuild-install` 落到 `node-gyp`(需要 Visual Studio),于是退到 `node-sqlite3-wasm` —— 而它打不开 WAL 模式的数据库(带对照实测:DELETE 模式打开、WAL 模式报 `unable to open database file`)。也就是说 codegraph 在这台机器上**已经死了好几天**,每一次 RD 派发都在静默降级。1.6.2 是自包含的,直接用 Node 内建的 `node:sqlite`,完整 WAL。
|
|
26
|
+
|
|
27
|
+
**包模型**:1.6.2 的主包 `dist/` 下**没有可执行 JavaScript**(只有 `.d.ts`)加两个 shim,代码在一个自带 `node.exe` 的平台子包里。于是 `dist/types.js`、`dist/extraction/grammars.js`、`dist/bin/codegraph.js` 全是 MODULE_NOT_FOUND —— 正是 peaks-loop 全部的 spawn 目标。新的 `codegraph-upstream-layout.ts` 是这四个触点的**唯一**定位器:先探 `<平台包>/lib/dist/bin/codegraph.js`(1.6.x),再退回 `<主包>/dist/...`(0.7.x);必须经 `createRequire(<主包>/package.json)` 解析,因为平台包只链在主包自己的 `node_modules/` 里。
|
|
28
|
+
|
|
29
|
+
**配置轴是一个陷阱**:1.6.2 不只是把配置文件从 `.codegraph/config.json` 搬到 `<root>/codegraph.json`,它把 `include` 的**语义反了**。0.7.x 里 `include` 是白名单;1.6.x 里它的意思是"即使被 .gitignore 丢掉也强行纳入索引",准入模型是 `force-include`。只换路径的改法会把**每一个**受支持的 tracked 文件报成缺口 —— 一个看起来像绿的、方向相反的失败。新的 `codegraph-project-config.ts` 通过探测上游同时定出**源**与**模型**,两条臂都对着真实的 0.7.10 与 1.6.2 安装测过。
|
|
30
|
+
|
|
31
|
+
两个 reconciler 的处置都写明而不是暗示:`codegraph-include-reconciler.ts` **删除** —— 它的前提是上游那份 32 条默认模板(1.6.2 已无),它的动作是往 `include` 追加 78 条 `**/*.ext`,在 1.6.x 下会把 gitignore 掉的源码**强行塞进**索引;只重定向读会留下这条写路径仍是活的,那是更坏的结果。`codegraph-exclude-reconciler.ts` **保留、但把范围收窄**到项目自撰的 `exclude`,读写两端都搬到真实源。**顺带修掉一条活的缺陷**:exclude reconciler 原先用 `include` 做预过滤,而 1.6.x 下 `include` 什么都不准入,于是这道闸**从来不会触发** —— 在那种组合存在多久,它就无声了多久。
|
|
32
|
+
|
|
33
|
+
`e60948bf` 明确**推迟**验收判据 1(`peaks codegraph status` 在 1.6.2 下退出 76,因为完整性轴读 `.codegraph/config.json`,那是 1.6.2 从不写的文件;在**新初始化的真实 git 仓库**上复现:`init` 退出 0,`status` 退出 76 并报 `ENOENT`),`c61bf331` 把它关掉:现在退出 0,且该轴是**真的被求值**而不是被跳过 —— 一个全新的 1.6.2 git 仓库上 `--peaks-json` 给出 `indexIntegrityVerdict: "clean"`、`admissionModel: "force-include"`、`trackedSourceCount: 2`、`admittedTrackedCount: 2`、`indexedFileCount: 2`、`gap: false`、`includeGap: []`、`deadRows: []`,这些数字与那个仓库里的两个文件相符,是量出来的而不是默认值。
|
|
34
|
+
|
|
35
|
+
**一条因为上游而非并发而闪的臂**:1.6.2 自己会在约 **1.3%** 的 `init` 调用上以 `0xC0000005` 中止进程,而且是**串行**的 —— 一个只做单次 spawn、不用 vitest 的最小工装实测 458 次里 6 次中止,stdout 每次都停在同一字节,那里 `extraction/index.js` 正在建一个 8 线程的 `ParseWorkerPool`;`status`(该臂真正的主语)从不中止(0/80)。上游的 `--liftoff-only` 启动器形态修不了它(1/318,Fisher p≈0.13),所以**不许**在生产调用里粉饰。修复只落在测试里:**只**重试 setup 那次 spawn、只认那一个退出码、上限三次、每次换新项目目录;`status` 永远只 spawn 一次;每条漂移断言逐字节未动;另有一条对照臂钉住"只有一个退出码可重试"。残余 ≈ 2.2e-6 每次运行。**仍然敞开并记录在案**:生产有同样的 ~1.3% `init` 暴露面(每一个消费者的 `peaks codegraph init` 都会以那个频率中止),真正的修复属于 `src/services/codegraph/`,本片被划在范围之外。
|
|
36
|
+
|
|
37
|
+
**失败原因进入 dispatch(`33fdefdf`)**:RD 派发块读的是 `preflight.available ? preflight.block : null`,于是 codegraph 一旦失败,preflight 的 `note`(上游原因的唯一载体)就被丢掉,提示词退回一句常量"codegraph unavailable — proceeding on project-scan only"。失败分支因此渲染出一段**读起来与正常状态一模一样**的块,每个 dispatch 记录里,坏索引与健康索引无法区分 —— codegraph 在这台机器上坏了这么久没被注意到,就是这么来的:上游一直在说 `Failed to index: unable to open database file`,而派发路径上没有任何东西复述它。新的 `codegraph-unavailable-block.ts` 负责渲染原因,退回常量改成"没拿到原因"而不是暗示"没有原因";手臂同时判别**有**与**无**(一条断言该块**不**包含裸露的上游行),所以"渲染了某个 note"不能满足它们。修复前把四个源文件回退到 HEAD、只留新模块,观察到的是一次断言失败而非加载错误:6 failed / 4 passed。
|
|
38
|
+
|
|
39
|
+
### 3. 两次"新文件对门禁不可见"(2 fix)
|
|
40
|
+
|
|
41
|
+
`.husky/` 的 census 腿走的是 `git ls-files`,所以新文件在未 track 时**门禁看不见** —— 本分支两次踩到(`f8073e1f` 对 slice 1 的四个新文件,`b88c4056` 对 tripwire 的三个)。两次都发生在 RD 报告与全量套件都跑了、都报绿的状态下;是 commit 让文件可见,下一次运行就有三个失败。第二次发生在这条教训**已经写进** `sediment-backlog.md` 一小时之后,所以它被记成"必须改的做法"而不是一条事实:一片的验收运行必须在文件已提交的状态下取,或者那次运行必须自己声明是未 track 时取的。`b88c4056` 用 `node .husky/peaks-gate-baseline.mjs` 重生成基线(该生成器只在有人要求抬高上限时拒绝)。
|
|
42
|
+
|
|
43
|
+
`f8073e1f` 还含一行不显眼的配置:`config/eslint/tsconfig.lint.json` 加上 `../../scripts/canonical-store.mjs`。这不是装饰 —— `.mjs` 会被同名的 `.d.mts` 在 TypeScript 的扩展名优先级组 `[.mts, .d.mts, .mjs]` 里遮蔽,`include` glob 于是**静默丢掉**那个 `.mjs`;`.js` 被 `.d.ts` 遮蔽有豁免,`.mjs` 没有。
|
|
44
|
+
|
|
45
|
+
### 4. 文档与记忆(3 docs)
|
|
46
|
+
|
|
47
|
+
`2a70a651` 补上 `.peaks/docs/canonical-store.md`(真源模型、升级会发生什么、怎么验证与回退,含 4.1.1 升级 runbook)—— 一个跨四个 slice 落地的机制此前没有一页描述它,而它引入的两条行为是用户会**不被告知**就遇上的;README 加上短版与指针。`backlog.md` §2.56 记录缺陷:边车用字符串比较安装版本的包路径来判定归属,那是一条带 node 版本号的路径,所以这个判断是"版本内有效"的事实。页面里每一条行为断言都带代码引用,共 17 处,逐条对着它点名的行核过。`594be46f` 沉淀三条教训(后端被换掉之后要查能力而不是查标签;census 守卫看不见未 track 的文件,所以 pre-commit 绿不是绿;不带理由的降级与成功无法区分),索引到 448 files / 106 lessons。`17c7e2a8` 沉淀"守卫点了规则的名、却只查了名单"这一次:规则读取型守卫需要两条防御 —— 先断言解析非空(否则"什么都没找到"会以"对零个元素循环"的形式通过),以及把同一份解析器喂给 fixture 文本。
|
|
48
|
+
|
|
49
|
+
### 5. 本版验证
|
|
50
|
+
|
|
51
|
+
`tsc --noEmit -p tsconfig.json` 退出 0;`pnpm build` 退出 0;`pnpm test:unit` 退出 0 —— **406 files / 4238 passed / 3 skipped / 0 failed**(与改动前逐字相同);版本 parity `shared-dist`(`OK (via import) CLI_VERSION=4.1.2`)与 `runtime-src`(`OK (via extract) RUNTIME_VERSION=4.1.2`)双双退出 0;`peaks changeset check --project . --json` 返回 `ok: true`(`state: staged-empty`),`.changeset/` 仍**只有** `config.json`;`peaks baseline diff --project . --json` 退出 0(15 行);**`peaks baseline audit --project . --json` verdict 为 `consistent`**(15/15 journey,crossCheck `guardVsAudit: agree`,`findings: []`)。README 两版的**版本徽章行**更新到 `4.1.2(2026-10-08)` / `4.1.2 (2026-10-08)`,而 `README.md:107` 正文那句"从 4.1.1 升级时会发生什么"是**有意保留的历史陈述,未改动**。
|
|
52
|
+
|
|
3
53
|
## 4.1.1 — 2026-10-05 (一次"闸自己坏了整整一个版本"、注释债第一次进棘轮、以及五个从真实使用里捞出来的缺陷)
|
|
4
54
|
|
|
5
55
|
**版本级别**: 未发布区间 `v4.1.0..HEAD` 共 **14 个 commit**(6 fix / 4 feat / 1 test / 1 refactor / 1 docs / 1 chore)。**取 patch,而不是按 4.1.0 自己写下的判据取 minor** —— 这条判据不是被推翻,而是被有意收窄:本版新增的两条命令(`peaks comments audit` / `peaks comments prune`)是**仓库自己的维护表面**,只读或只动本仓注释,不改变任何既有命令的输入输出,也不要求下游做任何事;对外承诺的内容全是修复(其中一条是门禁崩溃)。`^4.1.0` 的下游直接匹配本版。4 个 workspace 包各 +1 patch(internal-runtime 0.0.40→0.0.41、mut 0.1.54→0.1.55、shared 0.0.89→0.0.90、shared-channel 0.0.57→0.0.58),顺带把"本地 manifest 比 registry 新"(mut 的 0.1.54 从未发布)这个坑一次清掉:`scripts/release-pack.mjs` 按拓扑序把 5 个包在同一次 CI 运行里一起发出去,`pnpm pack` 把 `workspace:*` 重写成精确 pin,实测 tarball 内 `CLI_VERSION` 为 4.1.1。
|
package/README-en.md
CHANGED
|
@@ -155,7 +155,7 @@ Every lane opens with **one slash command**.
|
|
|
155
155
|
|
|
156
156
|
| | |
|
|
157
157
|
| --- | --- |
|
|
158
|
-
| **Latest** | [](https://www.npmjs.com/package/peaks-loop) — 4.1.
|
|
158
|
+
| **Latest** | [](https://www.npmjs.com/package/peaks-loop) — 4.1.2 (2026-10-08) |
|
|
159
159
|
| **Domains** | Code (`peaks-code`) · Content (`peaks-content`) · Project health (`peaks-doctor`) · Issue sweep (`peaks-issue-fix-orchestrator`) · Custom SOP (`peaks-sop`) · Cross-domain primitives (`peaks-solo` dispatcher · `peaks-resume` · `peaks-status` · `peaks-test` · `peaks-slice-decompose`) |
|
|
160
160
|
| **Sediment pool** | `~/.peaks/` local pool · twice-clean runs auto-promote to a bee · broken runs come back for you to redefine · the bee grows with your taste |
|
|
161
161
|
| **Test suite** | 285+ cases · 4 packages (peaks-loop / peaks-loop-mut / peaks-loop-shared-channel / peaks-loop-shared) · **0 timeouts** · 14 BDD caller-binding edge cases |
|
|
@@ -292,10 +292,10 @@ It changes, but **the gates hold**. Audit fails = nothing ships. QA fails = noth
|
|
|
292
292
|
|
|
293
293
|
If you maintain a project that depends on `peaks-loop` (or that runs `npm install peaks-loop` as part of CI / contributor onboarding), three behaviors are worth pinning in your head:
|
|
294
294
|
|
|
295
|
-
- **`codegraph` is a transitive dependency.** `peaks-loop` pins `@colbymchenry/codegraph@
|
|
295
|
+
- **`codegraph` is a transitive dependency.** `peaks-loop` pins `@colbymchenry/codegraph@1.6.2` in its `dependencies`, so `npm install` / `pnpm install` will pull it automatically. The CLI command group `peaks codegraph …` (status / init / index / query / files / context / affected) is shipped inside `dist/services/codegraph/`. No extra install step required.
|
|
296
296
|
- **`.codegraph/` directory ownership is shared.** Tools like aider, cody, and similar agents also create a top-level `.codegraph/`. `peaks codegraph init` will refuse to overwrite a foreign schema and exits with code 73 + a `CODEGRAPH_INIT_CONFLICT` envelope. If your project already has a `.codegraph/` from another tool, move / rename it (or remove it if you no longer need it) before running `peaks codegraph init`.
|
|
297
297
|
- **Session binding lives under `.peaks/_runtime/<sessionId>/`.** Codegraph orchestration context (and other per-session evidence) is written there by RD / QA slices. Add `.peaks/_runtime/` to your project's `.gitignore` to avoid committing local session state. A missing / unbound session produces a graceful skip-with-warning, never a crash.
|
|
298
|
-
- **Doctor fallback for yarn-pnp / pnpm-strict.** `peaks doctor` falls back to a filesystem walk when `require.resolve('@colbymchenry/codegraph/package.json')` throws, so downstream installs under strict resolution modes still get a green check (or a `severity: 'warning'` if the version drifted from the pinned `
|
|
298
|
+
- **Doctor fallback for yarn-pnp / pnpm-strict.** `peaks doctor` falls back to a filesystem walk when `require.resolve('@colbymchenry/codegraph/package.json')` throws, so downstream installs under strict resolution modes still get a green check (or a `severity: 'warning'` if the version drifted from the pinned `1.6.2`).
|
|
299
299
|
- **Tarball size / verify.** Each release ships the codegraph service under `dist/services/codegraph/`. Per-release verification lives at `scripts/verify-codegraph-tarball.mjs` (run `node scripts/verify-codegraph-tarball.mjs` locally before tagging a release). Exit 0 means the whitelist is intact; exit 1 means the tarball is missing the codegraph service files.
|
|
300
300
|
|
|
301
301
|
Install snippet (typical consumer):
|
|
@@ -315,7 +315,7 @@ npx peaks doctor --project .
|
|
|
315
315
|
Three common pitfalls:
|
|
316
316
|
|
|
317
317
|
1. **`peaks codegraph init` exits 73** — your project has a pre-existing `.codegraph/` from another tool. Move it out of the way (or remove it), then re-run.
|
|
318
|
-
2. **`peaks doctor` warns about codegraph version drift** — your lockfile resolved a different `@colbymchenry/codegraph` version than the pinned `
|
|
318
|
+
2. **`peaks doctor` warns about codegraph version drift** — your lockfile resolved a different `@colbymchenry/codegraph` version than the pinned `1.6.2`. Pin to `1.6.2` in your lockfile; the warning does not flip the doctor exit code.
|
|
319
319
|
3. **Session-bound artifacts under `.peaks/_runtime/` are noisy in `git status`** — add the path to your project's `.gitignore`. The `peaks-loop` repo already does this; consumers should mirror the rule.
|
|
320
320
|
|
|
321
321
|
---
|
package/README.md
CHANGED
|
@@ -88,6 +88,27 @@ npm i -g peaks-loop
|
|
|
88
88
|
|
|
89
89
|
---
|
|
90
90
|
|
|
91
|
+
## 装上以后,文件放在哪
|
|
92
|
+
|
|
93
|
+
`npm i -g` 之后,三类资产(**skills / agents / output-styles**)的**实体只存一份**,放在你自己 home 下的
|
|
94
|
+
`~/.peaks/{skills,agents,output-styles}`;每个 IDE 目录里(`~/.claude/…`、`~/.trae/…` 等)的条目都是**指向它的链接**
|
|
95
|
+
(目录用 junction,单个 `.md` 文件用符号链接)。所以升级 `peaks-loop` 时链接目标不变、不需要重建,也不会因为
|
|
96
|
+
包路径(里面嵌着 node 版本号)变化而静默断裂。
|
|
97
|
+
|
|
98
|
+
两件会直接影响你的事:
|
|
99
|
+
|
|
100
|
+
- **受管入口会在升级时被覆盖。** 由 peaks-loop 装进去的入口(比如 `~/.claude/agents/karpathy-reviewer.md`)旁边有一份
|
|
101
|
+
`.peaks-managed` 边车标记归属,升级时内容会被更新。**想换成你自己的版本,删掉那份额边车即可** —— 没有标记的入口
|
|
102
|
+
一律视为你自己建的,**永不被替换、也永不被删除**。
|
|
103
|
+
- **有些 Windows 机器上会退化成实体副本。** 没有开发者模式、也不是管理员时,建不出**文件**符号链接(目录用的 junction
|
|
104
|
+
不受影响),安装器会写实体副本并在 stderr 明说 `installed as REAL COPIES because this host refused a symlink`。
|
|
105
|
+
内容照样跟着升级走,只是不再与真源共享同一份。
|
|
106
|
+
|
|
107
|
+
真源根可用环境变量 `PEAKS_HOME` 重定向。完整的模型、从 4.1.1 升级时会发生什么、怎么验证与回退 →
|
|
108
|
+
[`.peaks/docs/canonical-store.md`](./.peaks/docs/canonical-store.md)。
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
91
112
|
## 它能为你做什么
|
|
92
113
|
|
|
93
114
|
代码、内容、项目健康、issue 修复、自定义工作流 —— **4.x 已经覆盖五条域**,每条域都有专门编排器,按"门禁不通过就停"的纪律一条一条跑。
|
|
@@ -154,7 +175,7 @@ npm i -g peaks-loop
|
|
|
154
175
|
|
|
155
176
|
| | |
|
|
156
177
|
| --- | --- |
|
|
157
|
-
| **最新版本** | [](https://www.npmjs.com/package/peaks-loop) — 4.1.
|
|
178
|
+
| **最新版本** | [](https://www.npmjs.com/package/peaks-loop) — 4.1.2(2026-10-08) |
|
|
158
179
|
| **覆盖域** | 代码(`peaks-code`) · 内容(`peaks-content`) · 项目健康(`peaks-doctor`) · 批量修 issue(`peaks-issue-fix-orchestrator`) · 自定义 SOP(`peaks-sop`) · 通用原语(`peaks-solo` 分诊 / `peaks-resume` 续 / `peaks-status` 看 / `peaks-test` 测 / `peaks-slice-decompose` 切片) |
|
|
159
180
|
| **沉淀池** | `~/.peaks/` 本地池 · 跑两次自动晋升成 bee · 跑翻车让你重定义 · bee 跟着你的口味长 |
|
|
160
181
|
| **测试套件** | 1096 cases · 4 packages (peaks-loop 1015 / runtime 39 / mut 22 / shared-channel 20) · **CI 首次全绿**(ubuntu + windows) · 14 BDD caller-binding coverage |
|
|
@@ -292,10 +313,10 @@ winget install Python.Python.3.12
|
|
|
292
313
|
|
|
293
314
|
如果你的项目依赖 `peaks-loop`(或者把 `npm install peaks-loop` 写进 CI / 协作者 onboarding),有三件事需要先记清:
|
|
294
315
|
|
|
295
|
-
- **`codegraph` 是传递依赖。** `peaks-loop` 在 `dependencies` 里硬钉 `@colbymchenry/codegraph@
|
|
316
|
+
- **`codegraph` 是传递依赖。** `peaks-loop` 在 `dependencies` 里硬钉 `@colbymchenry/codegraph@1.6.2`,所以 `npm install` / `pnpm install` 会自动拉取。CLI 命令组 `peaks codegraph …`(status / init / index / query / files / context / affected)打包在 `dist/services/codegraph/`,无需额外安装步骤。
|
|
296
317
|
- **`.codegraph/` 目录归属是共享的。** aider / cody 等类似工具也会在项目根创建 `.codegraph/`。`peaks codegraph init` 拒绝覆盖外源 schema,以 exit code 73 + `CODEGRAPH_INIT_CONFLICT` 凭据退出。如果你的项目里已经有其他工具建的 `.codegraph/`,跑 `peaks codegraph init` 之前先移走 / 改名(或确认不再需要后删除)。
|
|
297
318
|
- **session 绑定落在 `.peaks/_runtime/<sessionId>/`。** codegraph 编排上下文(以及其他 session 级证据)由 RD / QA 切片写入。把 `.peaks/_runtime/` 加进项目的 `.gitignore`,避免误提交本地 session 状态。session 缺失 / 未绑定时优雅降级为「跳过 + 警告」,绝不 crash。
|
|
298
|
-
- **yarn-pnp / pnpm-strict 的 doctor 兜底。** `peaks doctor` 在 `require.resolve('@colbymchenry/codegraph/package.json')` 抛错时回退到文件系统遍历,因此严格解析模式下的下游安装也能拿到绿色 check(若版本偏离钉死的 `
|
|
319
|
+
- **yarn-pnp / pnpm-strict 的 doctor 兜底。** `peaks doctor` 在 `require.resolve('@colbymchenry/codegraph/package.json')` 抛错时回退到文件系统遍历,因此严格解析模式下的下游安装也能拿到绿色 check(若版本偏离钉死的 `1.6.2` 则降级为 `severity: 'warning'`)。
|
|
299
320
|
- **tarball 大小 / 自检。** 每次发布都把 codegraph service 打进 `dist/services/codegraph/`。逐版本自检脚本见 `scripts/verify-codegraph-tarball.mjs`(发布前本地跑 `node scripts/verify-codegraph-tarball.mjs`)。exit 0 表示 whitelist 完好,exit 1 表示 tarball 漏了 codegraph service 文件。
|
|
300
321
|
|
|
301
322
|
典型下游安装片段:
|
|
@@ -314,7 +335,7 @@ npx peaks doctor --project .
|
|
|
314
335
|
三个常见坑:
|
|
315
336
|
|
|
316
337
|
1. **`peaks codegraph init` 退出码 73** —— 项目里已有外源 `.codegraph/`(aider / cody 等)。把它挪开(或删掉)再重跑。
|
|
317
|
-
2. **`peaks doctor` 报 codegraph 版本漂移** —— 你的 lockfile 解到了一个跟钉死 `
|
|
338
|
+
2. **`peaks doctor` 报 codegraph 版本漂移** —— 你的 lockfile 解到了一个跟钉死 `1.6.2` 不同的版本。在 lockfile 里钉到 `1.6.2`;这条 warning 不会让 doctor 退出码翻红。
|
|
318
339
|
3. **`.peaks/_runtime/` 下的 session 产物在 `git status` 里嘈杂** —— 把这条路径加进项目的 `.gitignore`。`peaks-loop` 仓库已经这样做;下游消费者应当镜像这条规则。
|
|
319
340
|
|
|
320
341
|
---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Node version floor, checked by `bin/peaks.js` before it imports the app.
|
|
3
|
+
*
|
|
4
|
+
* WHY THIS FILE IS NEXT TO THE SHIM AND NOT IN `src/`. Every store now imports
|
|
5
|
+
* `node:sqlite`, so on a Node that predates that builtin the failure is raised while
|
|
6
|
+
* resolving the import graph — `ERR_UNKNOWN_BUILTIN_MODULE`, before one line of our code
|
|
7
|
+
* runs. A check inside the CLI would be compiled into the very graph that cannot load.
|
|
8
|
+
* `bin/peaks.js` is already the place that translates pre-app Node failures (a stale
|
|
9
|
+
* `dist/`) into sentences, so the floor lives with it.
|
|
10
|
+
*
|
|
11
|
+
* WHY 24. `node:sqlite` exists in 22.5+ but not as something this code can import
|
|
12
|
+
* unconditionally; 24 is the line measured on the developer host that started this change,
|
|
13
|
+
* where `import { DatabaseSync } from 'node:sqlite'` works with no flag and no warning.
|
|
14
|
+
* The number is asserted against `package.json#engines.node` by
|
|
15
|
+
* `tests/unit/cli/node-floor.test.ts`, because two spellings of one boundary is this
|
|
16
|
+
* repository's oldest defect class.
|
|
17
|
+
*
|
|
18
|
+
* WHAT IT REFUSES TO GUESS. An empty version string is not evidence of an old Node, so it
|
|
19
|
+
* does not block anyone; a NON-empty string that cannot be parsed fails loudly instead,
|
|
20
|
+
* because a wrong "you're fine" costs a crash two commands later and a wrong "too old"
|
|
21
|
+
* costs one confusing message.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/** The major version at which `node:sqlite` is importable with no flag. */
|
|
25
|
+
export const MIN_NODE_MAJOR = 24;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A short reason string when `version` is below the floor, undefined when it is not.
|
|
29
|
+
*
|
|
30
|
+
* Returns the reason rather than printing it so the caller decides the stream and the exit
|
|
31
|
+
* code, and so the predicate is testable at every version without spawning a Node per case.
|
|
32
|
+
*/
|
|
33
|
+
export function nodeFloorProblem(version) {
|
|
34
|
+
if (typeof version !== 'string' || version.length === 0) return undefined;
|
|
35
|
+
const major = Number.parseInt(version.replace(/^v/, ''), 10);
|
|
36
|
+
if (!Number.isFinite(major)) {
|
|
37
|
+
return `the running Node version could not read as a version: "${version}"`;
|
|
38
|
+
}
|
|
39
|
+
if (major >= MIN_NODE_MAJOR) return undefined;
|
|
40
|
+
return `Node ${version} predates the builtin SQLite module`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** The full operator-facing message: what is wrong, and what to do about it. */
|
|
44
|
+
export function nodeFloorSentence(version) {
|
|
45
|
+
return (
|
|
46
|
+
`peaks-loop requires Node >=${String(MIN_NODE_MAJOR)}.0.0 — found ${version || 'unknown'}.\n` +
|
|
47
|
+
' why: the stores read and write through `node:sqlite`, a Node builtin. It replaced\n' +
|
|
48
|
+
' a native SQLite addon so that installing this CLI needs no C++ toolchain and\n' +
|
|
49
|
+
' no prebuilt binary matching your Node ABI.\n' +
|
|
50
|
+
' fix: switch to Node ' +
|
|
51
|
+
String(MIN_NODE_MAJOR) +
|
|
52
|
+
'.x (nvm install ' +
|
|
53
|
+
String(MIN_NODE_MAJOR) +
|
|
54
|
+
' && nvm use ' +
|
|
55
|
+
String(MIN_NODE_MAJOR) +
|
|
56
|
+
'),\n' +
|
|
57
|
+
' then re-run the same command.\n'
|
|
58
|
+
);
|
|
59
|
+
}
|
package/bin/peaks.js
CHANGED
|
@@ -20,6 +20,19 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { fileURLToPath } from 'node:url';
|
|
22
22
|
|
|
23
|
+
import { nodeFloorProblem, nodeFloorSentence } from './node-floor.mjs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Checked before the app is imported, because the thing it checks is an import: the stores
|
|
27
|
+
* load `node:sqlite` at module scope, so below the floor the process dies resolving the
|
|
28
|
+
* graph and never reaches a check written inside the CLI.
|
|
29
|
+
*/
|
|
30
|
+
const floorProblem = nodeFloorProblem(process.versions.node);
|
|
31
|
+
if (floorProblem !== undefined) {
|
|
32
|
+
process.stderr.write(nodeFloorSentence(process.versions.node));
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
const PACKAGE_ROOT = fileURLToPath(new URL('..', import.meta.url));
|
|
24
37
|
|
|
25
38
|
/** Workspace-internal packages whose absence always means "stale build". */
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"../../scripts/dist-freshness.mjs",
|
|
34
34
|
"../../scripts/install-skills.mjs",
|
|
35
35
|
"../../scripts/packages-build-prerequisite.mjs",
|
|
36
|
-
"../../scripts/verify-version-parity.mjs"
|
|
36
|
+
"../../scripts/verify-version-parity.mjs",
|
|
37
|
+
"../../scripts/canonical-store.mjs"
|
|
37
38
|
],
|
|
38
39
|
"include": [
|
|
39
40
|
"../../src/**/*",
|
|
@@ -30,7 +30,6 @@ export interface CliEnvelope {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function printCliEnvelope(io: ProgramIO, r: CliEnvelope): void;
|
|
32
32
|
/**
|
|
33
|
-
* Slice rid-001 (P0-1 envelope closure) — canonical envelope shim
|
|
34
33
|
* for `src/cli/index.ts`'s 3 raw `console.error(JSON.stringify(...))`
|
|
35
34
|
* sites, plus `src/cli/program.ts:162`'s default `ProgramIO.stderr`
|
|
36
35
|
* fallback.
|
package/dist/cli/cli-helpers.js
CHANGED
|
@@ -58,7 +58,6 @@ export function printCliEnvelope(io, r) {
|
|
|
58
58
|
process.exitCode = 1;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Slice rid-001 (P0-1 envelope closure) — canonical envelope shim
|
|
62
61
|
* for `src/cli/index.ts`'s 3 raw `console.error(JSON.stringify(...))`
|
|
63
62
|
* sites, plus `src/cli/program.ts:162`'s default `ProgramIO.stderr`
|
|
64
63
|
* fallback.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Slice 015 — single source of truth for translating a thrown error from
|
|
2
1
|
// the service layer (createRdSwarmPlan, createTechPlan, etc.) into a CLI
|
|
3
2
|
// envelope code + user-facing nextActions.
|
|
4
3
|
//
|
|
@@ -16,12 +15,10 @@
|
|
|
16
15
|
// codes based on the runtime error class/message. The CLI catch sites
|
|
17
16
|
// become data-only — they call the helper, then format the envelope.
|
|
18
17
|
import { ProviderNotConfiguredError } from '../../services/config/model-routing.js';
|
|
19
|
-
// Slice 015 risk A: goal-validation uses a substring match on the error
|
|
20
18
|
// message thrown by `validatePlanningInput`. If validatePlanningInput's
|
|
21
19
|
// message wording changes in a future slice, this branch silently
|
|
22
20
|
// degrades into INTERNAL_ERROR. Mitigated by the helper's unit test
|
|
23
21
|
// pinning the literal substring.
|
|
24
|
-
// Slice 015 — match the goal-validation throw message. The current
|
|
25
22
|
// `validatePlanningInput` literal is `"Goal must be non-empty"` (capital
|
|
26
23
|
// G, "non-empty" with hyphen). The regex tolerates common wording
|
|
27
24
|
// variations (`must be non-empty`, `must not be empty`, case-insensitive)
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* artifact — so `api-diff` is a sibling of an existing command with identical
|
|
7
7
|
* semantics and an identical option shape. A new `peaks api` group would be a
|
|
8
8
|
* brand-new verb family whose cost the design (docs/superpowers/specs/
|
|
9
|
-
* 2026-09-12-frontend-acl-contract-design.md §3/§5) records as medium and
|
|
10
9
|
* acknowledged; nothing about this slice needs it.
|
|
11
10
|
*
|
|
12
11
|
* The command is read-only: it creates no contract artifact and writes no file.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* artifact — so `api-diff` is a sibling of an existing command with identical
|
|
7
7
|
* semantics and an identical option shape. A new `peaks api` group would be a
|
|
8
8
|
* brand-new verb family whose cost the design (docs/superpowers/specs/
|
|
9
|
-
* 2026-09-12-frontend-acl-contract-design.md §3/§5) records as medium and
|
|
10
9
|
* acknowledged; nothing about this slice needs it.
|
|
11
10
|
*
|
|
12
11
|
* The command is read-only: it creates no contract artifact and writes no file.
|
|
@@ -18,7 +18,8 @@ import { addJsonOption, getErrorMessage, printResult } from '../cli-helpers.js';
|
|
|
18
18
|
import { fail, ok } from 'peaks-loop-shared/result';
|
|
19
19
|
import { writeAuditDecision } from '../../services/audit/decision-writer.js';
|
|
20
20
|
import { computeProseRatio } from '../../services/audit/prose-ratio-calculator.js';
|
|
21
|
-
import { writeMachineOutput, writeNarrative, writePrompt } from '../../services/audit/artifact-writer.js';
|
|
21
|
+
import { writeMachineOutput, writeNarrative, writePrompt, writeDecision } from '../../services/audit/artifact-writer.js';
|
|
22
|
+
import { parseRedLineAuditInput, RedLineAuditInputError } from '../../services/audit/red-line-audit-input.js';
|
|
22
23
|
const SUPPORTED_ARTIFACT_KINDS = [
|
|
23
24
|
'decision',
|
|
24
25
|
'prompt',
|
|
@@ -117,7 +118,6 @@ export function registerAuditCommands(program, io) {
|
|
|
117
118
|
// and the dev-preference red line "Default-no on new CLI commands",
|
|
118
119
|
// we extend the existing command rather than register a new subcommand.
|
|
119
120
|
//
|
|
120
|
-
// 2026-09-09-ecc-dynamic-and-cleanup B3: the dead
|
|
121
121
|
// `--enable-agent-shield` / `--disable-agent-shield` flags were removed.
|
|
122
122
|
// `runStaticAudit`'s agentShield state is a frozen "always disabled" stub
|
|
123
123
|
// (Slice 3 of 4.0.0-beta.11 removed the subprocess), so the flags had no
|
|
@@ -169,7 +169,6 @@ export function registerAuditCommands(program, io) {
|
|
|
169
169
|
...(decision ? { decision } : {})
|
|
170
170
|
};
|
|
171
171
|
const nextActions = [];
|
|
172
|
-
// 2026-09-09-ecc-dynamic-and-cleanup B3: the ECC AgentShield opt-in
|
|
173
172
|
// nextActions block was removed. `agentShield.installed` is a frozen
|
|
174
173
|
// `false`, so the block printed on every run and pointed users at a
|
|
175
174
|
// removed subprocess, removed flags, and a dead preference.
|
|
@@ -226,7 +225,6 @@ export function registerAuditCommands(program, io) {
|
|
|
226
225
|
process.exitCode = 1;
|
|
227
226
|
}
|
|
228
227
|
});
|
|
229
|
-
// Slice 2026-09-12-llm-provider-binding — `peaks audit goal` now runs the
|
|
230
228
|
// gate it advertises. `auditGoal()` was already correct (one `LlmRunner`
|
|
231
229
|
// call, 6-dimension validation, `IncompleteAuditError` on a partial audit);
|
|
232
230
|
// what was missing was a provider binding, so the command answered with a
|
|
@@ -297,7 +295,6 @@ export function registerAuditCommands(program, io) {
|
|
|
297
295
|
}
|
|
298
296
|
});
|
|
299
297
|
// ---------------------------------------------------------------------------
|
|
300
|
-
// peaks audit artifact write — Slice 2026-06-26-audit-artifact-writer-generalization
|
|
301
298
|
//
|
|
302
299
|
// First-class CLI surface for the 4 audit artifact types. Replaces the
|
|
303
300
|
// 2026-06-22 "hand `git add` into .peaks/memory/" anti-pattern that left
|
|
@@ -313,7 +310,7 @@ export function registerAuditCommands(program, io) {
|
|
|
313
310
|
.description('Persist a single audit artifact to .peaks/memory/ via the artifact-writer (canonical frontmatter)')
|
|
314
311
|
.requiredOption('--project <path>', 'target project root')
|
|
315
312
|
.requiredOption('--kind <kind>', `artifact kind (${SUPPORTED_ARTIFACT_KINDS.join(' | ')})`)
|
|
316
|
-
.requiredOption('--input <path>', 'path to source file (markdown for prompt/narrative; JSON for machine-output)')
|
|
313
|
+
.requiredOption('--input <path>', 'path to source file (markdown for prompt/narrative; JSON for machine-output and decision)')
|
|
317
314
|
.option('--name <name>', 'display name (H1 in body); defaults to file basename')
|
|
318
315
|
.option('--description <text>', 'description field for frontmatter; defaults to a generic placeholder')
|
|
319
316
|
.option('--rid <id>', 'optional request id to disambiguate multiple writes on the same day')
|
|
@@ -392,22 +389,16 @@ export function registerAuditCommands(program, io) {
|
|
|
392
389
|
break;
|
|
393
390
|
}
|
|
394
391
|
case 'decision': {
|
|
395
|
-
//
|
|
396
|
-
//
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
indexSynced: false
|
|
406
|
-
}, [
|
|
407
|
-
"Re-run with 'peaks audit static --record --project <root>' for RedLineAudit snapshots."
|
|
408
|
-
]), options.json);
|
|
409
|
-
process.exitCode = 1;
|
|
410
|
-
return;
|
|
392
|
+
// `--input` is a RedLineAudit JSON document — typically
|
|
393
|
+
// an archived `peaks audit static` result — validated field by field
|
|
394
|
+
// before it reaches the writer, because the writer renders whatever
|
|
395
|
+
// it is given into a memory record with no further checks.
|
|
396
|
+
// `--name` and `--description` do not apply: the decision slug and
|
|
397
|
+
// title come from the scan date (and `--rid`), exactly as
|
|
398
|
+
// `peaks audit static --record` derives them.
|
|
399
|
+
const audit = parseRedLineAuditInput(readFileSync(inputAbs, 'utf8'));
|
|
400
|
+
record = writeDecision(audit, writeOpts);
|
|
401
|
+
break;
|
|
411
402
|
}
|
|
412
403
|
default: {
|
|
413
404
|
// Unreachable: isSupportedArtifactKind already filtered.
|
|
@@ -416,7 +407,9 @@ export function registerAuditCommands(program, io) {
|
|
|
416
407
|
}
|
|
417
408
|
}
|
|
418
409
|
catch (err) {
|
|
419
|
-
|
|
410
|
+
// A malformed decision input is the caller's document, not a write
|
|
411
|
+
// failure: name it as input so the remedy reads as "fix the JSON field".
|
|
412
|
+
printResult(io, fail('audit.artifact.write', err instanceof RedLineAuditInputError ? 'AUDIT_ARTIFACT_INPUT_INVALID' : 'WRITE_FAILED', getErrorMessage(err), {
|
|
420
413
|
kind: options.kind,
|
|
421
414
|
slug: '',
|
|
422
415
|
title: '',
|
|
@@ -425,7 +418,11 @@ export function registerAuditCommands(program, io) {
|
|
|
425
418
|
memoryDir: '',
|
|
426
419
|
indexPath: '',
|
|
427
420
|
indexSynced: false
|
|
428
|
-
},
|
|
421
|
+
}, err instanceof RedLineAuditInputError
|
|
422
|
+
? [
|
|
423
|
+
'Inspect the named field; --kind decision takes the JSON shape `peaks audit static --json` prints.'
|
|
424
|
+
]
|
|
425
|
+
: ['Inspect the error message; for --kind machine-output ensure --input is valid JSON']), options.json);
|
|
429
426
|
process.exitCode = 1;
|
|
430
427
|
return;
|
|
431
428
|
}
|
|
@@ -112,7 +112,6 @@ function addAutonomousPlanOptions(command) {
|
|
|
112
112
|
.option('--no-dry-run', 'unsupported: do not execute autonomous planning from this CLI'));
|
|
113
113
|
}
|
|
114
114
|
export function registerAutonomousSwarmCommands(program, io) {
|
|
115
|
-
// Register the new rid-014 dry-run planner under
|
|
116
115
|
// `peaks workflow autonomous-swarm` (the existing `peaks workflow
|
|
117
116
|
// autonomous` registration owns the bare `autonomous` name and is
|
|
118
117
|
// untouched). The legacy `registerSwarmCommands` and
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* peaks bee * CLI — M7 (spec §7A.2 / §10 RL-9 / AC-24 / AC-25 / AC-26).
|
|
3
2
|
*
|
|
4
3
|
* Adds:
|
|
5
4
|
* peaks bee export --bee <id> --out <path.tar.gz>
|
|
@@ -19,7 +18,6 @@
|
|
|
19
18
|
* touched it.
|
|
20
19
|
*
|
|
21
20
|
* The `peaks skill sediment export / import` alias lives in
|
|
22
|
-
* `src/cli/commands/skill-sediment.ts` for one release cycle.
|
|
23
21
|
*/
|
|
24
22
|
import type { Command } from 'commander';
|
|
25
23
|
import { type ProgramIO } from '../cli-helpers.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* peaks bee * CLI — M7 (spec §7A.2 / §10 RL-9 / AC-24 / AC-25 / AC-26).
|
|
3
2
|
*
|
|
4
3
|
* Adds:
|
|
5
4
|
* peaks bee export --bee <id> --out <path.tar.gz>
|
|
@@ -19,7 +18,6 @@
|
|
|
19
18
|
* touched it.
|
|
20
19
|
*
|
|
21
20
|
* The `peaks skill sediment export / import` alias lives in
|
|
22
|
-
* `src/cli/commands/skill-sediment.ts` for one release cycle.
|
|
23
21
|
*/
|
|
24
22
|
import { existsSync, mkdirSync } from 'node:fs';
|
|
25
23
|
import { join } from 'node:path';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Slice 2026-08-12 best-practice-scan — support constants + pure helpers
|
|
3
2
|
* extracted from `best-practice-scan-command.ts` (file-size cap campaign).
|
|
4
3
|
* Mechanical move only: help-text constants, the artifact directory path
|
|
5
4
|
* helper, and the synthetic-lookup refusal renderer.
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* rid-011 — peaks changeset check (Phase 4 slice 2).
|
|
3
2
|
*
|
|
4
3
|
* - `peaks changeset check` — hard gate, exit non-zero if any staged
|
|
5
4
|
* .changeset/*.md exists. No warning mode, no --strict, no
|
|
6
5
|
* --skip-changeset-check.
|
|
7
6
|
*
|
|
8
|
-
* Wired into `_register.ts` via the rid-007 auto-registration barrel;
|
|
9
7
|
* do NOT add a second registration call in `program.ts`.
|
|
10
8
|
*/
|
|
11
9
|
import type { Command } from 'commander';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* rid-011 — peaks changeset check (Phase 4 slice 2).
|
|
3
2
|
*
|
|
4
3
|
* - `peaks changeset check` — hard gate, exit non-zero if any staged
|
|
5
4
|
* .changeset/*.md exists. No warning mode, no --strict, no
|
|
6
5
|
* --skip-changeset-check.
|
|
7
6
|
*
|
|
8
|
-
* Wired into `_register.ts` via the rid-007 auto-registration barrel;
|
|
9
7
|
* do NOT add a second registration call in `program.ts`.
|
|
10
8
|
*/
|
|
11
9
|
import { findProjectRoot } from '../../services/config/config-safety.js';
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* - `peaks code should-pause --step <step> --mode <mode>` (D5)
|
|
16
16
|
* - `peaks code post-compact-detect --project <path>` (D7)
|
|
17
17
|
*
|
|
18
|
-
* rid-024: 7 sub-commands extracted into 3 sibling files:
|
|
19
18
|
* - code-mode-gate-commands.ts (plan + should-pause)
|
|
20
19
|
* - code-job-shape-commands.ts (detect-job + read-job-shape)
|
|
21
20
|
* - code-runtime-commands.ts (post-compact-detect + auto-compact + context-now + gate-step-08 + emit-handoff)
|
|
@@ -84,7 +83,5 @@ export declare function runCodeFast(opts: {
|
|
|
84
83
|
* CLI command is a thin surface that builds the plan and emits a JSON
|
|
85
84
|
* envelope for downstream tooling.
|
|
86
85
|
*
|
|
87
|
-
* rid-024: this function is now a thin orchestrator that delegates to 3
|
|
88
|
-
* sibling register functions + the rid-020b run register.
|
|
89
86
|
*/
|
|
90
87
|
export declare function registerCodeCommands(program: Command, io: ProgramIO): void;
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* - `peaks code should-pause --step <step> --mode <mode>` (D5)
|
|
16
16
|
* - `peaks code post-compact-detect --project <path>` (D7)
|
|
17
17
|
*
|
|
18
|
-
* rid-024: 7 sub-commands extracted into 3 sibling files:
|
|
19
18
|
* - code-mode-gate-commands.ts (plan + should-pause)
|
|
20
19
|
* - code-job-shape-commands.ts (detect-job + read-job-shape)
|
|
21
20
|
* - code-runtime-commands.ts (post-compact-detect + auto-compact + context-now + gate-step-08 + emit-handoff)
|
|
@@ -106,8 +105,6 @@ export async function runCodeFast(opts) {
|
|
|
106
105
|
* CLI command is a thin surface that builds the plan and emits a JSON
|
|
107
106
|
* envelope for downstream tooling.
|
|
108
107
|
*
|
|
109
|
-
* rid-024: this function is now a thin orchestrator that delegates to 3
|
|
110
|
-
* sibling register functions + the rid-020b run register.
|
|
111
108
|
*/
|
|
112
109
|
export function registerCodeCommands(program, io) {
|
|
113
110
|
const code = program
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Slice rid-024 — `peaks code detect-job` + `peaks code read-job-shape`.
|
|
3
2
|
*
|
|
4
|
-
* Extracted from code-commands.ts (rid-024 split).
|
|
5
3
|
* Owns: detect-job (write JobShapeDecision), read-job-shape (read+print).
|
|
6
4
|
*/
|
|
7
5
|
import { existsSync, readFileSync } from 'node:fs';
|
|
@@ -131,7 +129,6 @@ export function registerCodeJobShapeCommands(code, io) {
|
|
|
131
129
|
// `catch` is not duplicated into a second silent-swallow site.
|
|
132
130
|
registerCodeJobShapeReadCommand(code, io, readActiveSidForJobShape);
|
|
133
131
|
}
|
|
134
|
-
// Local helper (was `readActiveSid` in code-commands.ts before rid-024 split).
|
|
135
132
|
// Both detect-job and read-job-shape need to read the active sid from
|
|
136
133
|
// presence. We re-import getSkillPresence here to avoid the cross-file
|
|
137
134
|
// helper import.
|