@memnexus-ai/mx-agent-cli 0.1.296-next.7 → 0.1.297
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/dist/commands/create.d.ts +36 -0
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +85 -8
- package/dist/commands/create.js.map +1 -1
- package/dist/lib/templates.d.ts +1 -1
- package/dist/lib/templates.d.ts.map +1 -1
- package/dist/lib/templates.js +39 -3
- package/dist/lib/templates.js.map +1 -1
- package/dist/standards/decision-request.md +6 -57
- package/dist/standards/po-communication-standard.md +0 -34
- package/dist/standards/report-format.md +0 -90
- package/dist/standards/writing-standard.md +0 -312
- package/package.json +3 -1
- package/dist/__tests__/agent-attribution.test.d.ts +0 -16
- package/dist/__tests__/agent-attribution.test.d.ts.map +0 -1
- package/dist/__tests__/agent-attribution.test.js +0 -250
- package/dist/__tests__/agent-attribution.test.js.map +0 -1
- package/dist/__tests__/agents-md-canonicalization.test.d.ts +0 -23
- package/dist/__tests__/agents-md-canonicalization.test.d.ts.map +0 -1
- package/dist/__tests__/agents-md-canonicalization.test.js +0 -319
- package/dist/__tests__/agents-md-canonicalization.test.js.map +0 -1
- package/dist/__tests__/behavioral-compliance.test.d.ts +0 -8
- package/dist/__tests__/behavioral-compliance.test.d.ts.map +0 -1
- package/dist/__tests__/behavioral-compliance.test.js +0 -226
- package/dist/__tests__/behavioral-compliance.test.js.map +0 -1
- package/dist/__tests__/behavioral-extraction.test.d.ts +0 -12
- package/dist/__tests__/behavioral-extraction.test.d.ts.map +0 -1
- package/dist/__tests__/behavioral-extraction.test.js +0 -330
- package/dist/__tests__/behavioral-extraction.test.js.map +0 -1
- package/dist/__tests__/behavioral-git-read.test.d.ts +0 -21
- package/dist/__tests__/behavioral-git-read.test.d.ts.map +0 -1
- package/dist/__tests__/behavioral-git-read.test.js +0 -955
- package/dist/__tests__/behavioral-git-read.test.js.map +0 -1
- package/dist/__tests__/behavioral-injection.test.d.ts +0 -13
- package/dist/__tests__/behavioral-injection.test.d.ts.map +0 -1
- package/dist/__tests__/behavioral-injection.test.js +0 -384
- package/dist/__tests__/behavioral-injection.test.js.map +0 -1
- package/dist/__tests__/binary-smoke.test.d.ts +0 -12
- package/dist/__tests__/binary-smoke.test.d.ts.map +0 -1
- package/dist/__tests__/binary-smoke.test.js +0 -88
- package/dist/__tests__/binary-smoke.test.js.map +0 -1
- package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts +0 -18
- package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts.map +0 -1
- package/dist/__tests__/bootstrap-behavioral-contract.test.js +0 -104
- package/dist/__tests__/bootstrap-behavioral-contract.test.js.map +0 -1
- package/dist/__tests__/bundle-config.test.d.ts +0 -18
- package/dist/__tests__/bundle-config.test.d.ts.map +0 -1
- package/dist/__tests__/bundle-config.test.js +0 -123
- package/dist/__tests__/bundle-config.test.js.map +0 -1
- package/dist/__tests__/catalog-interaction.test.d.ts +0 -25
- package/dist/__tests__/catalog-interaction.test.d.ts.map +0 -1
- package/dist/__tests__/catalog-interaction.test.js +0 -269
- package/dist/__tests__/catalog-interaction.test.js.map +0 -1
- package/dist/__tests__/catalog-named-memories.test.d.ts +0 -2
- package/dist/__tests__/catalog-named-memories.test.d.ts.map +0 -1
- package/dist/__tests__/catalog-named-memories.test.js +0 -204
- package/dist/__tests__/catalog-named-memories.test.js.map +0 -1
- package/dist/__tests__/catalog-origin-main.test.d.ts +0 -15
- package/dist/__tests__/catalog-origin-main.test.d.ts.map +0 -1
- package/dist/__tests__/catalog-origin-main.test.js +0 -305
- package/dist/__tests__/catalog-origin-main.test.js.map +0 -1
- package/dist/__tests__/catalog.test.d.ts +0 -2
- package/dist/__tests__/catalog.test.d.ts.map +0 -1
- package/dist/__tests__/catalog.test.js +0 -131
- package/dist/__tests__/catalog.test.js.map +0 -1
- package/dist/__tests__/claude-local-sanitizer.test.d.ts +0 -24
- package/dist/__tests__/claude-local-sanitizer.test.d.ts.map +0 -1
- package/dist/__tests__/claude-local-sanitizer.test.js +0 -906
- package/dist/__tests__/claude-local-sanitizer.test.js.map +0 -1
- package/dist/__tests__/claude-md-compose.test.d.ts +0 -17
- package/dist/__tests__/claude-md-compose.test.d.ts.map +0 -1
- package/dist/__tests__/claude-md-compose.test.js +0 -119
- package/dist/__tests__/claude-md-compose.test.js.map +0 -1
- package/dist/__tests__/claude-sync.test.d.ts +0 -2
- package/dist/__tests__/claude-sync.test.d.ts.map +0 -1
- package/dist/__tests__/claude-sync.test.js +0 -571
- package/dist/__tests__/claude-sync.test.js.map +0 -1
- package/dist/__tests__/cli-build-integration.test.d.ts +0 -2
- package/dist/__tests__/cli-build-integration.test.d.ts.map +0 -1
- package/dist/__tests__/cli-build-integration.test.js +0 -64
- package/dist/__tests__/cli-build-integration.test.js.map +0 -1
- package/dist/__tests__/cli-build.test.d.ts +0 -2
- package/dist/__tests__/cli-build.test.d.ts.map +0 -1
- package/dist/__tests__/cli-build.test.js +0 -640
- package/dist/__tests__/cli-build.test.js.map +0 -1
- package/dist/__tests__/codex-agent-gate.test.d.ts +0 -2
- package/dist/__tests__/codex-agent-gate.test.d.ts.map +0 -1
- package/dist/__tests__/codex-agent-gate.test.js +0 -480
- package/dist/__tests__/codex-agent-gate.test.js.map +0 -1
- package/dist/__tests__/codex-deploy-config.test.d.ts +0 -2
- package/dist/__tests__/codex-deploy-config.test.d.ts.map +0 -1
- package/dist/__tests__/codex-deploy-config.test.js +0 -1230
- package/dist/__tests__/codex-deploy-config.test.js.map +0 -1
- package/dist/__tests__/codex-trust-keys.test.d.ts +0 -2
- package/dist/__tests__/codex-trust-keys.test.d.ts.map +0 -1
- package/dist/__tests__/codex-trust-keys.test.js +0 -731
- package/dist/__tests__/codex-trust-keys.test.js.map +0 -1
- package/dist/__tests__/codex-write-race.test.d.ts +0 -2
- package/dist/__tests__/codex-write-race.test.d.ts.map +0 -1
- package/dist/__tests__/codex-write-race.test.js +0 -2253
- package/dist/__tests__/codex-write-race.test.js.map +0 -1
- package/dist/__tests__/completion-rows-discriminate.test.d.ts +0 -20
- package/dist/__tests__/completion-rows-discriminate.test.d.ts.map +0 -1
- package/dist/__tests__/completion-rows-discriminate.test.js +0 -481
- package/dist/__tests__/completion-rows-discriminate.test.js.map +0 -1
- package/dist/__tests__/config-command.test.d.ts +0 -9
- package/dist/__tests__/config-command.test.d.ts.map +0 -1
- package/dist/__tests__/config-command.test.js +0 -75
- package/dist/__tests__/config-command.test.js.map +0 -1
- package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts +0 -2
- package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts.map +0 -1
- package/dist/__tests__/config-fidelity-archived-symlinks.test.js +0 -127
- package/dist/__tests__/config-fidelity-archived-symlinks.test.js.map +0 -1
- package/dist/__tests__/config-fidelity-display.test.d.ts +0 -2
- package/dist/__tests__/config-fidelity-display.test.d.ts.map +0 -1
- package/dist/__tests__/config-fidelity-display.test.js +0 -77
- package/dist/__tests__/config-fidelity-display.test.js.map +0 -1
- package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts +0 -32
- package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts.map +0 -1
- package/dist/__tests__/config-fidelity-unreadable-fixture.js +0 -37
- package/dist/__tests__/config-fidelity-unreadable-fixture.js.map +0 -1
- package/dist/__tests__/config-fidelity.test.d.ts +0 -16
- package/dist/__tests__/config-fidelity.test.d.ts.map +0 -1
- package/dist/__tests__/config-fidelity.test.js +0 -2679
- package/dist/__tests__/config-fidelity.test.js.map +0 -1
- package/dist/__tests__/config-generation-gate.test.d.ts +0 -46
- package/dist/__tests__/config-generation-gate.test.d.ts.map +0 -1
- package/dist/__tests__/config-generation-gate.test.js +0 -435
- package/dist/__tests__/config-generation-gate.test.js.map +0 -1
- package/dist/__tests__/config-generation.test.d.ts +0 -7
- package/dist/__tests__/config-generation.test.d.ts.map +0 -1
- package/dist/__tests__/config-generation.test.js +0 -141
- package/dist/__tests__/config-generation.test.js.map +0 -1
- package/dist/__tests__/config-sync.test.d.ts +0 -10
- package/dist/__tests__/config-sync.test.d.ts.map +0 -1
- package/dist/__tests__/config-sync.test.js +0 -268
- package/dist/__tests__/config-sync.test.js.map +0 -1
- package/dist/__tests__/coordination-401-production-wiring.test.d.ts +0 -19
- package/dist/__tests__/coordination-401-production-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-401-production-wiring.test.js +0 -286
- package/dist/__tests__/coordination-401-production-wiring.test.js.map +0 -1
- package/dist/__tests__/coordination-401-recovery.test.d.ts +0 -22
- package/dist/__tests__/coordination-401-recovery.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-401-recovery.test.js +0 -601
- package/dist/__tests__/coordination-401-recovery.test.js.map +0 -1
- package/dist/__tests__/coordination-brief-pin.test.d.ts +0 -20
- package/dist/__tests__/coordination-brief-pin.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-brief-pin.test.js +0 -66
- package/dist/__tests__/coordination-brief-pin.test.js.map +0 -1
- package/dist/__tests__/coordination-brief.test.d.ts +0 -9
- package/dist/__tests__/coordination-brief.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-brief.test.js +0 -290
- package/dist/__tests__/coordination-brief.test.js.map +0 -1
- package/dist/__tests__/coordination-client.test.d.ts +0 -9
- package/dist/__tests__/coordination-client.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-client.test.js +0 -517
- package/dist/__tests__/coordination-client.test.js.map +0 -1
- package/dist/__tests__/coordination-command.test.d.ts +0 -9
- package/dist/__tests__/coordination-command.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-command.test.js +0 -1082
- package/dist/__tests__/coordination-command.test.js.map +0 -1
- package/dist/__tests__/coordination-credential-endpoint.test.d.ts +0 -24
- package/dist/__tests__/coordination-credential-endpoint.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-credential-endpoint.test.js +0 -1292
- package/dist/__tests__/coordination-credential-endpoint.test.js.map +0 -1
- package/dist/__tests__/coordination-expected-team.test.d.ts +0 -19
- package/dist/__tests__/coordination-expected-team.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-expected-team.test.js +0 -423
- package/dist/__tests__/coordination-expected-team.test.js.map +0 -1
- package/dist/__tests__/coordination-fallback.test.d.ts +0 -9
- package/dist/__tests__/coordination-fallback.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-fallback.test.js +0 -192
- package/dist/__tests__/coordination-fallback.test.js.map +0 -1
- package/dist/__tests__/coordination-file-guards.test.d.ts +0 -29
- package/dist/__tests__/coordination-file-guards.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-file-guards.test.js +0 -380
- package/dist/__tests__/coordination-file-guards.test.js.map +0 -1
- package/dist/__tests__/coordination-history.test.d.ts +0 -8
- package/dist/__tests__/coordination-history.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-history.test.js +0 -447
- package/dist/__tests__/coordination-history.test.js.map +0 -1
- package/dist/__tests__/coordination-memory.test.d.ts +0 -14
- package/dist/__tests__/coordination-memory.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-memory.test.js +0 -401
- package/dist/__tests__/coordination-memory.test.js.map +0 -1
- package/dist/__tests__/coordination-mode.test.d.ts +0 -13
- package/dist/__tests__/coordination-mode.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-mode.test.js +0 -180
- package/dist/__tests__/coordination-mode.test.js.map +0 -1
- package/dist/__tests__/coordination-plain-shell-commands.test.d.ts +0 -22
- package/dist/__tests__/coordination-plain-shell-commands.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-plain-shell-commands.test.js +0 -1875
- package/dist/__tests__/coordination-plain-shell-commands.test.js.map +0 -1
- package/dist/__tests__/coordination-provision.test.d.ts +0 -12
- package/dist/__tests__/coordination-provision.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-provision.test.js +0 -103
- package/dist/__tests__/coordination-provision.test.js.map +0 -1
- package/dist/__tests__/coordination-render.test.d.ts +0 -9
- package/dist/__tests__/coordination-render.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-render.test.js +0 -335
- package/dist/__tests__/coordination-render.test.js.map +0 -1
- package/dist/__tests__/coordination-setup.test.d.ts +0 -6
- package/dist/__tests__/coordination-setup.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-setup.test.js +0 -448
- package/dist/__tests__/coordination-setup.test.js.map +0 -1
- package/dist/__tests__/coordination-status-plain-shell.test.d.ts +0 -19
- package/dist/__tests__/coordination-status-plain-shell.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-status-plain-shell.test.js +0 -332
- package/dist/__tests__/coordination-status-plain-shell.test.js.map +0 -1
- package/dist/__tests__/coordination-status-registration.test.d.ts +0 -16
- package/dist/__tests__/coordination-status-registration.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-status-registration.test.js +0 -480
- package/dist/__tests__/coordination-status-registration.test.js.map +0 -1
- package/dist/__tests__/coordination-token-multitenant.test.d.ts +0 -11
- package/dist/__tests__/coordination-token-multitenant.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-token-multitenant.test.js +0 -106
- package/dist/__tests__/coordination-token-multitenant.test.js.map +0 -1
- package/dist/__tests__/coordination-token.test.d.ts +0 -11
- package/dist/__tests__/coordination-token.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-token.test.js +0 -201
- package/dist/__tests__/coordination-token.test.js.map +0 -1
- package/dist/__tests__/coordination-wiring.test.d.ts +0 -11
- package/dist/__tests__/coordination-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/coordination-wiring.test.js +0 -43
- package/dist/__tests__/coordination-wiring.test.js.map +0 -1
- package/dist/__tests__/creation-pr-class-check.test.d.ts +0 -17
- package/dist/__tests__/creation-pr-class-check.test.d.ts.map +0 -1
- package/dist/__tests__/creation-pr-class-check.test.js +0 -346
- package/dist/__tests__/creation-pr-class-check.test.js.map +0 -1
- package/dist/__tests__/decision-check.test.d.ts +0 -2
- package/dist/__tests__/decision-check.test.d.ts.map +0 -1
- package/dist/__tests__/decision-check.test.js +0 -105
- package/dist/__tests__/decision-check.test.js.map +0 -1
- package/dist/__tests__/digest-fail-closed.test.d.ts +0 -16
- package/dist/__tests__/digest-fail-closed.test.d.ts.map +0 -1
- package/dist/__tests__/digest-fail-closed.test.js +0 -248
- package/dist/__tests__/digest-fail-closed.test.js.map +0 -1
- package/dist/__tests__/digest-team-omission.test.d.ts +0 -15
- package/dist/__tests__/digest-team-omission.test.d.ts.map +0 -1
- package/dist/__tests__/digest-team-omission.test.js +0 -247
- package/dist/__tests__/digest-team-omission.test.js.map +0 -1
- package/dist/__tests__/doctor-config-fidelity.test.d.ts +0 -19
- package/dist/__tests__/doctor-config-fidelity.test.d.ts.map +0 -1
- package/dist/__tests__/doctor-config-fidelity.test.js +0 -324
- package/dist/__tests__/doctor-config-fidelity.test.js.map +0 -1
- package/dist/__tests__/doctor-framework-version.test.d.ts +0 -2
- package/dist/__tests__/doctor-framework-version.test.d.ts.map +0 -1
- package/dist/__tests__/doctor-framework-version.test.js +0 -146
- package/dist/__tests__/doctor-framework-version.test.js.map +0 -1
- package/dist/__tests__/doctor-worktree-path.test.d.ts +0 -17
- package/dist/__tests__/doctor-worktree-path.test.d.ts.map +0 -1
- package/dist/__tests__/doctor-worktree-path.test.js +0 -158
- package/dist/__tests__/doctor-worktree-path.test.js.map +0 -1
- package/dist/__tests__/doctor.test.d.ts +0 -20
- package/dist/__tests__/doctor.test.d.ts.map +0 -1
- package/dist/__tests__/doctor.test.js +0 -849
- package/dist/__tests__/doctor.test.js.map +0 -1
- package/dist/__tests__/event-shipper.test.d.ts +0 -16
- package/dist/__tests__/event-shipper.test.d.ts.map +0 -1
- package/dist/__tests__/event-shipper.test.js +0 -287
- package/dist/__tests__/event-shipper.test.js.map +0 -1
- package/dist/__tests__/fleet-data.test.d.ts +0 -2
- package/dist/__tests__/fleet-data.test.d.ts.map +0 -1
- package/dist/__tests__/fleet-data.test.js +0 -501
- package/dist/__tests__/fleet-data.test.js.map +0 -1
- package/dist/__tests__/fleet-devpod.test.d.ts +0 -12
- package/dist/__tests__/fleet-devpod.test.d.ts.map +0 -1
- package/dist/__tests__/fleet-devpod.test.js +0 -260
- package/dist/__tests__/fleet-devpod.test.js.map +0 -1
- package/dist/__tests__/fleet-tmux.test.d.ts +0 -2
- package/dist/__tests__/fleet-tmux.test.d.ts.map +0 -1
- package/dist/__tests__/fleet-tmux.test.js +0 -289
- package/dist/__tests__/fleet-tmux.test.js.map +0 -1
- package/dist/__tests__/fleet.test.d.ts +0 -16
- package/dist/__tests__/fleet.test.d.ts.map +0 -1
- package/dist/__tests__/fleet.test.js +0 -75
- package/dist/__tests__/fleet.test.js.map +0 -1
- package/dist/__tests__/generate-claude.test.d.ts +0 -18
- package/dist/__tests__/generate-claude.test.d.ts.map +0 -1
- package/dist/__tests__/generate-claude.test.js +0 -1015
- package/dist/__tests__/generate-claude.test.js.map +0 -1
- package/dist/__tests__/gh-remote.test.d.ts +0 -2
- package/dist/__tests__/gh-remote.test.d.ts.map +0 -1
- package/dist/__tests__/gh-remote.test.js +0 -136
- package/dist/__tests__/gh-remote.test.js.map +0 -1
- package/dist/__tests__/git-env.test.d.ts +0 -14
- package/dist/__tests__/git-env.test.d.ts.map +0 -1
- package/dist/__tests__/git-env.test.js +0 -131
- package/dist/__tests__/git-env.test.js.map +0 -1
- package/dist/__tests__/git-identity-isolation.test.d.ts +0 -33
- package/dist/__tests__/git-identity-isolation.test.d.ts.map +0 -1
- package/dist/__tests__/git-identity-isolation.test.js +0 -626
- package/dist/__tests__/git-identity-isolation.test.js.map +0 -1
- package/dist/__tests__/harness-extract.test.d.ts +0 -19
- package/dist/__tests__/harness-extract.test.d.ts.map +0 -1
- package/dist/__tests__/harness-extract.test.js +0 -566
- package/dist/__tests__/harness-extract.test.js.map +0 -1
- package/dist/__tests__/harness-wiring.test.d.ts +0 -16
- package/dist/__tests__/harness-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/harness-wiring.test.js +0 -469
- package/dist/__tests__/harness-wiring.test.js.map +0 -1
- package/dist/__tests__/hook-completeness.test.d.ts +0 -13
- package/dist/__tests__/hook-completeness.test.d.ts.map +0 -1
- package/dist/__tests__/hook-completeness.test.js +0 -238
- package/dist/__tests__/hook-completeness.test.js.map +0 -1
- package/dist/__tests__/hook-heal.test.d.ts +0 -8
- package/dist/__tests__/hook-heal.test.d.ts.map +0 -1
- package/dist/__tests__/hook-heal.test.js +0 -156
- package/dist/__tests__/hook-heal.test.js.map +0 -1
- package/dist/__tests__/human-turn-classifier.test.d.ts +0 -17
- package/dist/__tests__/human-turn-classifier.test.d.ts.map +0 -1
- package/dist/__tests__/human-turn-classifier.test.js +0 -311
- package/dist/__tests__/human-turn-classifier.test.js.map +0 -1
- package/dist/__tests__/init-coordination-url.test.d.ts +0 -11
- package/dist/__tests__/init-coordination-url.test.d.ts.map +0 -1
- package/dist/__tests__/init-coordination-url.test.js +0 -217
- package/dist/__tests__/init-coordination-url.test.js.map +0 -1
- package/dist/__tests__/isolation-probe.test.d.ts +0 -15
- package/dist/__tests__/isolation-probe.test.d.ts.map +0 -1
- package/dist/__tests__/isolation-probe.test.js +0 -611
- package/dist/__tests__/isolation-probe.test.js.map +0 -1
- package/dist/__tests__/leader-lock.test.d.ts +0 -12
- package/dist/__tests__/leader-lock.test.d.ts.map +0 -1
- package/dist/__tests__/leader-lock.test.js +0 -293
- package/dist/__tests__/leader-lock.test.js.map +0 -1
- package/dist/__tests__/memory-archive-checks.test.d.ts +0 -22
- package/dist/__tests__/memory-archive-checks.test.d.ts.map +0 -1
- package/dist/__tests__/memory-archive-checks.test.js +0 -748
- package/dist/__tests__/memory-archive-checks.test.js.map +0 -1
- package/dist/__tests__/memory-archive-prep.test.d.ts +0 -8
- package/dist/__tests__/memory-archive-prep.test.d.ts.map +0 -1
- package/dist/__tests__/memory-archive-prep.test.js +0 -524
- package/dist/__tests__/memory-archive-prep.test.js.map +0 -1
- package/dist/__tests__/memory-autocreate.test.d.ts +0 -10
- package/dist/__tests__/memory-autocreate.test.d.ts.map +0 -1
- package/dist/__tests__/memory-autocreate.test.js +0 -709
- package/dist/__tests__/memory-autocreate.test.js.map +0 -1
- package/dist/__tests__/memory-log-result.test.d.ts +0 -13
- package/dist/__tests__/memory-log-result.test.d.ts.map +0 -1
- package/dist/__tests__/memory-log-result.test.js +0 -149
- package/dist/__tests__/memory-log-result.test.js.map +0 -1
- package/dist/__tests__/memory-named-exists.test.d.ts +0 -16
- package/dist/__tests__/memory-named-exists.test.d.ts.map +0 -1
- package/dist/__tests__/memory-named-exists.test.js +0 -288
- package/dist/__tests__/memory-named-exists.test.js.map +0 -1
- package/dist/__tests__/message-bus.test.d.ts +0 -10
- package/dist/__tests__/message-bus.test.d.ts.map +0 -1
- package/dist/__tests__/message-bus.test.js +0 -526
- package/dist/__tests__/message-bus.test.js.map +0 -1
- package/dist/__tests__/monitor.test.d.ts +0 -6
- package/dist/__tests__/monitor.test.d.ts.map +0 -1
- package/dist/__tests__/monitor.test.js +0 -458
- package/dist/__tests__/monitor.test.js.map +0 -1
- package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts +0 -2
- package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts.map +0 -1
- package/dist/__tests__/mx-agent-cli-pin-validation.test.js +0 -232
- package/dist/__tests__/mx-agent-cli-pin-validation.test.js.map +0 -1
- package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts +0 -2
- package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts.map +0 -1
- package/dist/__tests__/mx-agent-cli-version-pin.test.js +0 -236
- package/dist/__tests__/mx-agent-cli-version-pin.test.js.map +0 -1
- package/dist/__tests__/new-project-first-team.test.d.ts +0 -15
- package/dist/__tests__/new-project-first-team.test.d.ts.map +0 -1
- package/dist/__tests__/new-project-first-team.test.js +0 -444
- package/dist/__tests__/new-project-first-team.test.js.map +0 -1
- package/dist/__tests__/otel-env.test.d.ts +0 -2
- package/dist/__tests__/otel-env.test.d.ts.map +0 -1
- package/dist/__tests__/otel-env.test.js +0 -127
- package/dist/__tests__/otel-env.test.js.map +0 -1
- package/dist/__tests__/pager-fail-closed.test.d.ts +0 -19
- package/dist/__tests__/pager-fail-closed.test.d.ts.map +0 -1
- package/dist/__tests__/pager-fail-closed.test.js +0 -229
- package/dist/__tests__/pager-fail-closed.test.js.map +0 -1
- package/dist/__tests__/pr-set-body.test.d.ts +0 -29
- package/dist/__tests__/pr-set-body.test.d.ts.map +0 -1
- package/dist/__tests__/pr-set-body.test.js +0 -314
- package/dist/__tests__/pr-set-body.test.js.map +0 -1
- package/dist/__tests__/prior-sync-failure.test.d.ts +0 -2
- package/dist/__tests__/prior-sync-failure.test.d.ts.map +0 -1
- package/dist/__tests__/prior-sync-failure.test.js +0 -81
- package/dist/__tests__/prior-sync-failure.test.js.map +0 -1
- package/dist/__tests__/project-config.test.d.ts +0 -2
- package/dist/__tests__/project-config.test.d.ts.map +0 -1
- package/dist/__tests__/project-config.test.js +0 -458
- package/dist/__tests__/project-config.test.js.map +0 -1
- package/dist/__tests__/provision-behavioral-contract.test.d.ts +0 -13
- package/dist/__tests__/provision-behavioral-contract.test.d.ts.map +0 -1
- package/dist/__tests__/provision-behavioral-contract.test.js +0 -548
- package/dist/__tests__/provision-behavioral-contract.test.js.map +0 -1
- package/dist/__tests__/provision-catalog-precondition.test.d.ts +0 -26
- package/dist/__tests__/provision-catalog-precondition.test.d.ts.map +0 -1
- package/dist/__tests__/provision-catalog-precondition.test.js +0 -622
- package/dist/__tests__/provision-catalog-precondition.test.js.map +0 -1
- package/dist/__tests__/provision-completion-rows.test.d.ts +0 -17
- package/dist/__tests__/provision-completion-rows.test.d.ts.map +0 -1
- package/dist/__tests__/provision-completion-rows.test.js +0 -3473
- package/dist/__tests__/provision-completion-rows.test.js.map +0 -1
- package/dist/__tests__/provision-copy-containment.test.d.ts +0 -19
- package/dist/__tests__/provision-copy-containment.test.d.ts.map +0 -1
- package/dist/__tests__/provision-copy-containment.test.js +0 -187
- package/dist/__tests__/provision-copy-containment.test.js.map +0 -1
- package/dist/__tests__/provision-identity-gate.test.d.ts +0 -20
- package/dist/__tests__/provision-identity-gate.test.d.ts.map +0 -1
- package/dist/__tests__/provision-identity-gate.test.js +0 -602
- package/dist/__tests__/provision-identity-gate.test.js.map +0 -1
- package/dist/__tests__/provision-resume.test.d.ts +0 -26
- package/dist/__tests__/provision-resume.test.d.ts.map +0 -1
- package/dist/__tests__/provision-resume.test.js +0 -1344
- package/dist/__tests__/provision-resume.test.js.map +0 -1
- package/dist/__tests__/provision-roleguide-anchors.test.d.ts +0 -27
- package/dist/__tests__/provision-roleguide-anchors.test.d.ts.map +0 -1
- package/dist/__tests__/provision-roleguide-anchors.test.js +0 -747
- package/dist/__tests__/provision-roleguide-anchors.test.js.map +0 -1
- package/dist/__tests__/provision-row12-stub-server.test.d.ts +0 -21
- package/dist/__tests__/provision-row12-stub-server.test.d.ts.map +0 -1
- package/dist/__tests__/provision-row12-stub-server.test.js +0 -264
- package/dist/__tests__/provision-row12-stub-server.test.js.map +0 -1
- package/dist/__tests__/provision-skeleton-fill.test.d.ts +0 -16
- package/dist/__tests__/provision-skeleton-fill.test.d.ts.map +0 -1
- package/dist/__tests__/provision-skeleton-fill.test.js +0 -490
- package/dist/__tests__/provision-skeleton-fill.test.js.map +0 -1
- package/dist/__tests__/provision-step8-commit.test.d.ts +0 -40
- package/dist/__tests__/provision-step8-commit.test.d.ts.map +0 -1
- package/dist/__tests__/provision-step8-commit.test.js +0 -529
- package/dist/__tests__/provision-step8-commit.test.js.map +0 -1
- package/dist/__tests__/provision-teambuilder-flow.test.d.ts +0 -22
- package/dist/__tests__/provision-teambuilder-flow.test.d.ts.map +0 -1
- package/dist/__tests__/provision-teambuilder-flow.test.js +0 -253
- package/dist/__tests__/provision-teambuilder-flow.test.js.map +0 -1
- package/dist/__tests__/provision-write-integrity.test.d.ts +0 -18
- package/dist/__tests__/provision-write-integrity.test.d.ts.map +0 -1
- package/dist/__tests__/provision-write-integrity.test.js +0 -141
- package/dist/__tests__/provision-write-integrity.test.js.map +0 -1
- package/dist/__tests__/repo-guard-wiring.test.d.ts +0 -21
- package/dist/__tests__/repo-guard-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/repo-guard-wiring.test.js +0 -638
- package/dist/__tests__/repo-guard-wiring.test.js.map +0 -1
- package/dist/__tests__/report-format.test.d.ts +0 -2
- package/dist/__tests__/report-format.test.d.ts.map +0 -1
- package/dist/__tests__/report-format.test.js +0 -219
- package/dist/__tests__/report-format.test.js.map +0 -1
- package/dist/__tests__/row15-detail-sanitizer.test.d.ts +0 -20
- package/dist/__tests__/row15-detail-sanitizer.test.d.ts.map +0 -1
- package/dist/__tests__/row15-detail-sanitizer.test.js +0 -61
- package/dist/__tests__/row15-detail-sanitizer.test.js.map +0 -1
- package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts +0 -32
- package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts.map +0 -1
- package/dist/__tests__/rows-9-10-zero-remotes.test.js +0 -203
- package/dist/__tests__/rows-9-10-zero-remotes.test.js.map +0 -1
- package/dist/__tests__/runtime-claude-adapter.test.d.ts +0 -2
- package/dist/__tests__/runtime-claude-adapter.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-claude-adapter.test.js +0 -70
- package/dist/__tests__/runtime-claude-adapter.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-adapter.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-adapter.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-adapter.test.js +0 -558
- package/dist/__tests__/runtime-codex-adapter.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-config.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-config.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-config.test.js +0 -1421
- package/dist/__tests__/runtime-codex-config.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-gateway-pilot.test.js +0 -309
- package/dist/__tests__/runtime-codex-gateway-pilot.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-gateway-provider.test.js +0 -163
- package/dist/__tests__/runtime-codex-gateway-provider.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-guard-proof.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-guard-proof.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-guard-proof.test.js +0 -822
- package/dist/__tests__/runtime-codex-guard-proof.test.js.map +0 -1
- package/dist/__tests__/runtime-codex-version-pin.test.d.ts +0 -2
- package/dist/__tests__/runtime-codex-version-pin.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-codex-version-pin.test.js +0 -86
- package/dist/__tests__/runtime-codex-version-pin.test.js.map +0 -1
- package/dist/__tests__/runtime-identity.test.d.ts +0 -2
- package/dist/__tests__/runtime-identity.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-identity.test.js +0 -117
- package/dist/__tests__/runtime-identity.test.js.map +0 -1
- package/dist/__tests__/runtime-resolve.test.d.ts +0 -2
- package/dist/__tests__/runtime-resolve.test.d.ts.map +0 -1
- package/dist/__tests__/runtime-resolve.test.js +0 -172
- package/dist/__tests__/runtime-resolve.test.js.map +0 -1
- package/dist/__tests__/security-posture.test.d.ts +0 -8
- package/dist/__tests__/security-posture.test.d.ts.map +0 -1
- package/dist/__tests__/security-posture.test.js +0 -82
- package/dist/__tests__/security-posture.test.js.map +0 -1
- package/dist/__tests__/session-model.test.d.ts +0 -2
- package/dist/__tests__/session-model.test.d.ts.map +0 -1
- package/dist/__tests__/session-model.test.js +0 -74
- package/dist/__tests__/session-model.test.js.map +0 -1
- package/dist/__tests__/session-pause-provisioning.test.d.ts +0 -19
- package/dist/__tests__/session-pause-provisioning.test.d.ts.map +0 -1
- package/dist/__tests__/session-pause-provisioning.test.js +0 -115
- package/dist/__tests__/session-pause-provisioning.test.js.map +0 -1
- package/dist/__tests__/session-reclamation.test.d.ts +0 -15
- package/dist/__tests__/session-reclamation.test.d.ts.map +0 -1
- package/dist/__tests__/session-reclamation.test.js +0 -73
- package/dist/__tests__/session-reclamation.test.js.map +0 -1
- package/dist/__tests__/session-record-disclosure.test.d.ts +0 -24
- package/dist/__tests__/session-record-disclosure.test.d.ts.map +0 -1
- package/dist/__tests__/session-record-disclosure.test.js +0 -494
- package/dist/__tests__/session-record-disclosure.test.js.map +0 -1
- package/dist/__tests__/session-status.test.d.ts +0 -11
- package/dist/__tests__/session-status.test.d.ts.map +0 -1
- package/dist/__tests__/session-status.test.js +0 -76
- package/dist/__tests__/session-status.test.js.map +0 -1
- package/dist/__tests__/session.test.d.ts +0 -15
- package/dist/__tests__/session.test.d.ts.map +0 -1
- package/dist/__tests__/session.test.js +0 -366
- package/dist/__tests__/session.test.js.map +0 -1
- package/dist/__tests__/shim-deploy-safety.test.d.ts +0 -24
- package/dist/__tests__/shim-deploy-safety.test.d.ts.map +0 -1
- package/dist/__tests__/shim-deploy-safety.test.js +0 -174
- package/dist/__tests__/shim-deploy-safety.test.js.map +0 -1
- package/dist/__tests__/slug-validation.test.d.ts +0 -13
- package/dist/__tests__/slug-validation.test.d.ts.map +0 -1
- package/dist/__tests__/slug-validation.test.js +0 -202
- package/dist/__tests__/slug-validation.test.js.map +0 -1
- package/dist/__tests__/standards-injection.test.d.ts +0 -2
- package/dist/__tests__/standards-injection.test.d.ts.map +0 -1
- package/dist/__tests__/standards-injection.test.js +0 -179
- package/dist/__tests__/standards-injection.test.js.map +0 -1
- package/dist/__tests__/start-config-conflict.test.d.ts +0 -17
- package/dist/__tests__/start-config-conflict.test.d.ts.map +0 -1
- package/dist/__tests__/start-config-conflict.test.js +0 -101
- package/dist/__tests__/start-config-conflict.test.js.map +0 -1
- package/dist/__tests__/start-interactive-role.test.d.ts +0 -22
- package/dist/__tests__/start-interactive-role.test.d.ts.map +0 -1
- package/dist/__tests__/start-interactive-role.test.js +0 -204
- package/dist/__tests__/start-interactive-role.test.js.map +0 -1
- package/dist/__tests__/start-rebase-never-ran.test.d.ts +0 -25
- package/dist/__tests__/start-rebase-never-ran.test.d.ts.map +0 -1
- package/dist/__tests__/start-rebase-never-ran.test.js +0 -227
- package/dist/__tests__/start-rebase-never-ran.test.js.map +0 -1
- package/dist/__tests__/start-report-generation-capture.test.d.ts +0 -17
- package/dist/__tests__/start-report-generation-capture.test.d.ts.map +0 -1
- package/dist/__tests__/start-report-generation-capture.test.js +0 -127
- package/dist/__tests__/start-report-generation-capture.test.js.map +0 -1
- package/dist/__tests__/start-report-integration.test.d.ts +0 -12
- package/dist/__tests__/start-report-integration.test.d.ts.map +0 -1
- package/dist/__tests__/start-report-integration.test.js +0 -138
- package/dist/__tests__/start-report-integration.test.js.map +0 -1
- package/dist/__tests__/start-runtime-wiring.test.d.ts +0 -31
- package/dist/__tests__/start-runtime-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/start-runtime-wiring.test.js +0 -735
- package/dist/__tests__/start-runtime-wiring.test.js.map +0 -1
- package/dist/__tests__/start-stash.test.d.ts +0 -2
- package/dist/__tests__/start-stash.test.d.ts.map +0 -1
- package/dist/__tests__/start-stash.test.js +0 -131
- package/dist/__tests__/start-stash.test.js.map +0 -1
- package/dist/__tests__/start-sync-hardstop.test.d.ts +0 -15
- package/dist/__tests__/start-sync-hardstop.test.d.ts.map +0 -1
- package/dist/__tests__/start-sync-hardstop.test.js +0 -280
- package/dist/__tests__/start-sync-hardstop.test.js.map +0 -1
- package/dist/__tests__/start-team-identity.test.d.ts +0 -25
- package/dist/__tests__/start-team-identity.test.d.ts.map +0 -1
- package/dist/__tests__/start-team-identity.test.js +0 -307
- package/dist/__tests__/start-team-identity.test.js.map +0 -1
- package/dist/__tests__/startup-health-render.test.d.ts +0 -11
- package/dist/__tests__/startup-health-render.test.d.ts.map +0 -1
- package/dist/__tests__/startup-health-render.test.js +0 -60
- package/dist/__tests__/startup-health-render.test.js.map +0 -1
- package/dist/__tests__/startup-policy.test.d.ts +0 -2
- package/dist/__tests__/startup-policy.test.d.ts.map +0 -1
- package/dist/__tests__/startup-policy.test.js +0 -27
- package/dist/__tests__/startup-policy.test.js.map +0 -1
- package/dist/__tests__/startup-report.test.d.ts +0 -13
- package/dist/__tests__/startup-report.test.d.ts.map +0 -1
- package/dist/__tests__/startup-report.test.js +0 -278
- package/dist/__tests__/startup-report.test.js.map +0 -1
- package/dist/__tests__/startup-shipper.test.d.ts +0 -13
- package/dist/__tests__/startup-shipper.test.d.ts.map +0 -1
- package/dist/__tests__/startup-shipper.test.js +0 -149
- package/dist/__tests__/startup-shipper.test.js.map +0 -1
- package/dist/__tests__/stream-input-controller.test.d.ts +0 -10
- package/dist/__tests__/stream-input-controller.test.d.ts.map +0 -1
- package/dist/__tests__/stream-input-controller.test.js +0 -167
- package/dist/__tests__/stream-input-controller.test.js.map +0 -1
- package/dist/__tests__/team-memory-commands.test.d.ts +0 -11
- package/dist/__tests__/team-memory-commands.test.d.ts.map +0 -1
- package/dist/__tests__/team-memory-commands.test.js +0 -240
- package/dist/__tests__/team-memory-commands.test.js.map +0 -1
- package/dist/__tests__/team-name-propagation.test.d.ts +0 -13
- package/dist/__tests__/team-name-propagation.test.d.ts.map +0 -1
- package/dist/__tests__/team-name-propagation.test.js +0 -198
- package/dist/__tests__/team-name-propagation.test.js.map +0 -1
- package/dist/__tests__/team-token-probe.test.d.ts +0 -16
- package/dist/__tests__/team-token-probe.test.d.ts.map +0 -1
- package/dist/__tests__/team-token-probe.test.js +0 -295
- package/dist/__tests__/team-token-probe.test.js.map +0 -1
- package/dist/__tests__/template-budget.test.d.ts +0 -2
- package/dist/__tests__/template-budget.test.d.ts.map +0 -1
- package/dist/__tests__/template-budget.test.js +0 -119
- package/dist/__tests__/template-budget.test.js.map +0 -1
- package/dist/__tests__/template-sync.test.d.ts +0 -19
- package/dist/__tests__/template-sync.test.d.ts.map +0 -1
- package/dist/__tests__/template-sync.test.js +0 -480
- package/dist/__tests__/template-sync.test.js.map +0 -1
- package/dist/__tests__/test-project.test.d.ts +0 -18
- package/dist/__tests__/test-project.test.d.ts.map +0 -1
- package/dist/__tests__/test-project.test.js +0 -465
- package/dist/__tests__/test-project.test.js.map +0 -1
- package/dist/__tests__/tracked-instruction-files.test.d.ts +0 -21
- package/dist/__tests__/tracked-instruction-files.test.d.ts.map +0 -1
- package/dist/__tests__/tracked-instruction-files.test.js +0 -489
- package/dist/__tests__/tracked-instruction-files.test.js.map +0 -1
- package/dist/__tests__/unlock.test.d.ts +0 -11
- package/dist/__tests__/unlock.test.d.ts.map +0 -1
- package/dist/__tests__/unlock.test.js +0 -100
- package/dist/__tests__/unlock.test.js.map +0 -1
- package/dist/__tests__/usage-per-call-grouping.test.d.ts +0 -25
- package/dist/__tests__/usage-per-call-grouping.test.d.ts.map +0 -1
- package/dist/__tests__/usage-per-call-grouping.test.js +0 -952
- package/dist/__tests__/usage-per-call-grouping.test.js.map +0 -1
- package/dist/__tests__/usage-pricing.test.d.ts +0 -20
- package/dist/__tests__/usage-pricing.test.d.ts.map +0 -1
- package/dist/__tests__/usage-pricing.test.js +0 -176
- package/dist/__tests__/usage-pricing.test.js.map +0 -1
- package/dist/__tests__/usage-subagent-discovery.test.d.ts +0 -17
- package/dist/__tests__/usage-subagent-discovery.test.d.ts.map +0 -1
- package/dist/__tests__/usage-subagent-discovery.test.js +0 -213
- package/dist/__tests__/usage-subagent-discovery.test.js.map +0 -1
- package/dist/__tests__/verify-hooks-check-all.test.d.ts +0 -32
- package/dist/__tests__/verify-hooks-check-all.test.d.ts.map +0 -1
- package/dist/__tests__/verify-hooks-check-all.test.js +0 -563
- package/dist/__tests__/verify-hooks-check-all.test.js.map +0 -1
- package/dist/__tests__/verify-hooks-heal-log.test.d.ts +0 -11
- package/dist/__tests__/verify-hooks-heal-log.test.d.ts.map +0 -1
- package/dist/__tests__/verify-hooks-heal-log.test.js +0 -172
- package/dist/__tests__/verify-hooks-heal-log.test.js.map +0 -1
- package/dist/__tests__/worker-cap.test.d.ts +0 -14
- package/dist/__tests__/worker-cap.test.d.ts.map +0 -1
- package/dist/__tests__/worker-cap.test.js +0 -97
- package/dist/__tests__/worker-cap.test.js.map +0 -1
- package/dist/__tests__/worktree-link-repair.test.d.ts +0 -2
- package/dist/__tests__/worktree-link-repair.test.d.ts.map +0 -1
- package/dist/__tests__/worktree-link-repair.test.js +0 -471
- package/dist/__tests__/worktree-link-repair.test.js.map +0 -1
- package/dist/__tests__/worktree-sync-fixture.test.d.ts +0 -17
- package/dist/__tests__/worktree-sync-fixture.test.d.ts.map +0 -1
- package/dist/__tests__/worktree-sync-fixture.test.js +0 -519
- package/dist/__tests__/worktree-sync-fixture.test.js.map +0 -1
- package/dist/__tests__/worktree-sync-hardening.test.d.ts +0 -13
- package/dist/__tests__/worktree-sync-hardening.test.d.ts.map +0 -1
- package/dist/__tests__/worktree-sync-hardening.test.js +0 -919
- package/dist/__tests__/worktree-sync-hardening.test.js.map +0 -1
- package/dist/__tests__/worktree-sync-shell-free.test.d.ts +0 -25
- package/dist/__tests__/worktree-sync-shell-free.test.d.ts.map +0 -1
- package/dist/__tests__/worktree-sync-shell-free.test.js +0 -185
- package/dist/__tests__/worktree-sync-shell-free.test.js.map +0 -1
- package/dist/__tests__/worktree.test.d.ts +0 -2
- package/dist/__tests__/worktree.test.d.ts.map +0 -1
- package/dist/__tests__/worktree.test.js +0 -168
- package/dist/__tests__/worktree.test.js.map +0 -1
- package/dist/lib/code-context-file.test.d.ts +0 -19
- package/dist/lib/code-context-file.test.d.ts.map +0 -1
- package/dist/lib/code-context-file.test.js +0 -202
- package/dist/lib/code-context-file.test.js.map +0 -1
- package/dist/lib/harness/console/announce.test.d.ts +0 -2
- package/dist/lib/harness/console/announce.test.d.ts.map +0 -1
- package/dist/lib/harness/console/announce.test.js +0 -104
- package/dist/lib/harness/console/announce.test.js.map +0 -1
- package/dist/lib/harness/console/by-session.test.d.ts +0 -2
- package/dist/lib/harness/console/by-session.test.d.ts.map +0 -1
- package/dist/lib/harness/console/by-session.test.js +0 -86
- package/dist/lib/harness/console/by-session.test.js.map +0 -1
- package/dist/lib/harness/console/console.test.d.ts +0 -2
- package/dist/lib/harness/console/console.test.d.ts.map +0 -1
- package/dist/lib/harness/console/console.test.js +0 -269
- package/dist/lib/harness/console/console.test.js.map +0 -1
- package/dist/lib/harness/console/decision-request.test.d.ts +0 -2
- package/dist/lib/harness/console/decision-request.test.d.ts.map +0 -1
- package/dist/lib/harness/console/decision-request.test.js +0 -75
- package/dist/lib/harness/console/decision-request.test.js.map +0 -1
- package/dist/lib/harness/console/rank.test.d.ts +0 -2
- package/dist/lib/harness/console/rank.test.d.ts.map +0 -1
- package/dist/lib/harness/console/rank.test.js +0 -124
- package/dist/lib/harness/console/rank.test.js.map +0 -1
- package/dist/lib/harness/console/render.test.d.ts +0 -2
- package/dist/lib/harness/console/render.test.d.ts.map +0 -1
- package/dist/lib/harness/console/render.test.js +0 -96
- package/dist/lib/harness/console/render.test.js.map +0 -1
- package/dist/lib/harness/console/replay-cli.test.d.ts +0 -2
- package/dist/lib/harness/console/replay-cli.test.d.ts.map +0 -1
- package/dist/lib/harness/console/replay-cli.test.js +0 -96
- package/dist/lib/harness/console/replay-cli.test.js.map +0 -1
- package/dist/lib/harness/console/replay.test.d.ts +0 -2
- package/dist/lib/harness/console/replay.test.d.ts.map +0 -1
- package/dist/lib/harness/console/replay.test.js +0 -81
- package/dist/lib/harness/console/replay.test.js.map +0 -1
- package/dist/lib/harness/console/turn-reader.test.d.ts +0 -2
- package/dist/lib/harness/console/turn-reader.test.d.ts.map +0 -1
- package/dist/lib/harness/console/turn-reader.test.js +0 -108
- package/dist/lib/harness/console/turn-reader.test.js.map +0 -1
- package/dist/lib/harness/credential.test.d.ts +0 -2
- package/dist/lib/harness/credential.test.d.ts.map +0 -1
- package/dist/lib/harness/credential.test.js +0 -74
- package/dist/lib/harness/credential.test.js.map +0 -1
- package/dist/lib/harness/evaluate.test.d.ts +0 -2
- package/dist/lib/harness/evaluate.test.d.ts.map +0 -1
- package/dist/lib/harness/evaluate.test.js +0 -621
- package/dist/lib/harness/evaluate.test.js.map +0 -1
- package/dist/lib/harness/gate.test.d.ts +0 -2
- package/dist/lib/harness/gate.test.d.ts.map +0 -1
- package/dist/lib/harness/gate.test.js +0 -111
- package/dist/lib/harness/gate.test.js.map +0 -1
- package/dist/lib/harness/self-check.test.d.ts +0 -2
- package/dist/lib/harness/self-check.test.d.ts.map +0 -1
- package/dist/lib/harness/self-check.test.js +0 -43
- package/dist/lib/harness/self-check.test.js.map +0 -1
- package/dist/lib/harness/transcript.test.d.ts +0 -2
- package/dist/lib/harness/transcript.test.d.ts.map +0 -1
- package/dist/lib/harness/transcript.test.js +0 -118
- package/dist/lib/harness/transcript.test.js.map +0 -1
- package/dist/lib/projects-registry.test.d.ts +0 -2
- package/dist/lib/projects-registry.test.d.ts.map +0 -1
- package/dist/lib/projects-registry.test.js +0 -176
- package/dist/lib/projects-registry.test.js.map +0 -1
- package/dist/lib/roster.test.d.ts +0 -15
- package/dist/lib/roster.test.d.ts.map +0 -1
- package/dist/lib/roster.test.js +0 -299
- package/dist/lib/roster.test.js.map +0 -1
- package/dist/lib/vault.test.d.ts +0 -17
- package/dist/lib/vault.test.d.ts.map +0 -1
- package/dist/lib/vault.test.js +0 -169
- package/dist/lib/vault.test.js.map +0 -1
- package/dist/lib/window-view.test.d.ts +0 -2
- package/dist/lib/window-view.test.d.ts.map +0 -1
- package/dist/lib/window-view.test.js +0 -168
- package/dist/lib/window-view.test.js.map +0 -1
- package/dist/standards/fail-loud-standard.md +0 -495
- package/dist/standards/known-issues-standard.md +0 -380
- package/dist/standards/rulings.md +0 -104
|
@@ -1,622 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The catalog-entry precondition on the provisioning path (#51, plan #72).
|
|
3
|
-
*
|
|
4
|
-
* Provisioning used to write `mx-agent-system/teams/<slug>.md` relative to the
|
|
5
|
-
* resolved project root. From a linked worktree that root is the main checkout,
|
|
6
|
-
* where no agent may commit, so every creation left an untracked file a person
|
|
7
|
-
* deleted by hand, and the copy `writeTeamCatalog` writes is the placeholder
|
|
8
|
-
* version of a file that is hand-curated on `main`.
|
|
9
|
-
*
|
|
10
|
-
* What these tests pin:
|
|
11
|
-
* 1. With an `origin`, an entry that is not on `origin/main` refuses the run
|
|
12
|
-
* with a message naming the file, team-builder steps 5 and 6a, and the
|
|
13
|
-
* `gh pr create` form step 6a gives.
|
|
14
|
-
* 2. An `origin/main` that does not resolve refuses on the fetch, not on the
|
|
15
|
-
* entry: could-not-run is not the same answer as absent.
|
|
16
|
-
* 3. The refusal precedes the first write. `.slots.json` is unchanged.
|
|
17
|
-
* 4. With an `origin`, nothing writes the entry anywhere; without one, the
|
|
18
|
-
* scaffolded project keeps the write it has today.
|
|
19
|
-
* 5. Row 2 states which of those two facts it asserted.
|
|
20
|
-
*
|
|
21
|
-
* `../lib/catalog.js` is mocked only in its precondition function: the writer is
|
|
22
|
-
* the real one, so "no file was written" is read off the filesystem rather than
|
|
23
|
-
* off a spy.
|
|
24
|
-
*/
|
|
25
|
-
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
|
26
|
-
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from 'fs';
|
|
27
|
-
import { join, dirname } from 'path';
|
|
28
|
-
import { tmpdir } from 'os';
|
|
29
|
-
// ── Test-controlled state, declared before the factories that close over it ──
|
|
30
|
-
/**
|
|
31
|
-
* The remotes the mocked `listRemotes` reports (security review Should Fix 1).
|
|
32
|
-
* Null is the could-not-run answer, not the empty list (re-review, 2026-08-22).
|
|
33
|
-
*/
|
|
34
|
-
let remotes = ['origin'];
|
|
35
|
-
/** What the mocked precondition answers when it is consulted. */
|
|
36
|
-
let entryOnMain = 'present';
|
|
37
|
-
/** Whether the new worktree's checkout already holds a curated catalog entry. */
|
|
38
|
-
let worktreeHoldsEntry = false;
|
|
39
|
-
/** What the mocked `fetchOrigin` reports for this run. */
|
|
40
|
-
let fetchOk = true;
|
|
41
|
-
/** The base branch the project configures, which is the ref the check reads. */
|
|
42
|
-
let configuredBaseBranch = 'main';
|
|
43
|
-
const CURATED = '# Scratchteam, curated by hand on main\n';
|
|
44
|
-
/** Where the real `assignSlot` keeps the slot map: `<root>/<worktreeDir>/.slots.json`. */
|
|
45
|
-
const slotsPath = (projectRoot) => join(projectRoot, '.worktrees', '.slots.json');
|
|
46
|
-
const assignSlot = vi.fn((projectRoot) => {
|
|
47
|
-
// A faithful stand-in for the real one: it WRITES `.slots.json`, which is the
|
|
48
|
-
// first thing provisioning puts on disk and the file a refusal must precede.
|
|
49
|
-
mkdirSync(dirname(slotsPath(projectRoot)), { recursive: true });
|
|
50
|
-
writeFileSync(slotsPath(projectRoot), JSON.stringify({ scratchteam: 0 }));
|
|
51
|
-
return 0;
|
|
52
|
-
});
|
|
53
|
-
const createGitWorktree = vi.fn((worktreePath) => {
|
|
54
|
-
mkdirSync(worktreePath, { recursive: true });
|
|
55
|
-
if (worktreeHoldsEntry) {
|
|
56
|
-
mkdirSync(join(worktreePath, 'mx-agent-system/teams'), { recursive: true });
|
|
57
|
-
writeFileSync(join(worktreePath, 'mx-agent-system/teams/scratchteam.md'), CURATED);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
const catalogEntryOnOriginMain = vi.fn(() => entryOnMain);
|
|
61
|
-
vi.mock('../lib/worktree.js', async (importOriginal) => ({
|
|
62
|
-
// `findTeamWorktree` decides whether a run is a resume (#316). The REAL one:
|
|
63
|
-
// it reads `.git` off the candidate, and a stub that answered null would make
|
|
64
|
-
// every test here take the fresh-creation path whatever is on disk.
|
|
65
|
-
findTeamWorktree: (await importOriginal()).findTeamWorktree,
|
|
66
|
-
findProjectRoot: vi.fn(() => '/unused'),
|
|
67
|
-
assignSlot: (projectRoot, ..._rest) => assignSlot(projectRoot),
|
|
68
|
-
getCurrentBranch: vi.fn(() => 'worktree/x'),
|
|
69
|
-
fetchOrigin: vi.fn(() => fetchOk),
|
|
70
|
-
createGitWorktree: (worktreePath, ..._rest) => createGitWorktree(worktreePath),
|
|
71
|
-
addToGitSafeDirectory: vi.fn(),
|
|
72
|
-
createHuskySymlink: vi.fn(),
|
|
73
|
-
generateBranchName: vi.fn((s) => `worktree/${s}`),
|
|
74
|
-
generateWorktreeDirName: vi.fn((s) => `${s}-20260101`),
|
|
75
|
-
listRemotes: vi.fn(() => remotes),
|
|
76
|
-
// The real `catalog.ts` imports this. Never reached here: the function that
|
|
77
|
-
// calls it is the one overridden below.
|
|
78
|
-
refExists: vi.fn(() => false),
|
|
79
|
-
}));
|
|
80
|
-
vi.mock('../lib/claude.js', () => ({
|
|
81
|
-
syncClaudeConfig: vi.fn(),
|
|
82
|
-
deployClaudeMd: vi.fn(),
|
|
83
|
-
writeClaudeLocal: vi.fn(),
|
|
84
|
-
logSuccess: vi.fn(),
|
|
85
|
-
logWarning: vi.fn(),
|
|
86
|
-
logDim: vi.fn(),
|
|
87
|
-
}));
|
|
88
|
-
// Everything real except the precondition, so `writeTeamCatalog` and
|
|
89
|
-
// `getTeamCatalogPath` behave as they do in production.
|
|
90
|
-
vi.mock('../lib/catalog.js', async (importOriginal) => ({
|
|
91
|
-
...(await importOriginal()),
|
|
92
|
-
catalogEntryOnOriginMain: (...a) => catalogEntryOnOriginMain(...a),
|
|
93
|
-
}));
|
|
94
|
-
// The operator's global config, in memory: no test may read or write the
|
|
95
|
-
// developer's ~/.mx-agent/config.json.
|
|
96
|
-
vi.mock('../lib/config.js', () => ({
|
|
97
|
-
getConfigValue: () => undefined,
|
|
98
|
-
setConfigValue: () => { },
|
|
99
|
-
getConfigPath: () => '/nonexistent/config.json',
|
|
100
|
-
}));
|
|
101
|
-
/**
|
|
102
|
-
* Rows 9 and 10 (#77). Both are required now, and the real reads run `git show`
|
|
103
|
-
* against `origin/<base>` and `az` against the dev Key Vault. Mocked to the
|
|
104
|
-
* registered state — the one team-builder steps 6a and 6a2 leave behind — so
|
|
105
|
-
* this suite neither depends on a remote nor touches a vault.
|
|
106
|
-
*/
|
|
107
|
-
vi.mock('../lib/roster.js', async (importOriginal) => ({
|
|
108
|
-
// #607: the real ref builder, so the ref rows 9 and 10 name is the one the read uses.
|
|
109
|
-
rosterRefFor: (await importOriginal()).rosterRefFor,
|
|
110
|
-
rosterEntryOnRef: vi.fn(() => 'present'),
|
|
111
|
-
rosterSourceHasSlug: vi.fn(() => 'absent'),
|
|
112
|
-
}));
|
|
113
|
-
vi.mock('../lib/vault.js', () => ({
|
|
114
|
-
vaultTokenPresent: vi.fn(() => 'present'),
|
|
115
|
-
VAULT_NAME: 'mx-dev-eastus2-kv-001',
|
|
116
|
-
}));
|
|
117
|
-
// Row 10's credential probe (#288). For a credential-endpoint project the row
|
|
118
|
-
// asks whether a credential is OBTAINABLE, which is an HTTPS request to the
|
|
119
|
-
// coordination service. The boundary is mocked for the same reason `../lib/vault.js`
|
|
120
|
-
// is: a unit suite must not reach a service.
|
|
121
|
-
vi.mock('../lib/coordination-token.js', () => ({
|
|
122
|
-
usesCredentialEndpoint: (project) => project === 'mx-agent',
|
|
123
|
-
provisionCredentialForWorktree: vi.fn(async () => ({
|
|
124
|
-
kind: 'obtainable',
|
|
125
|
-
cachePath: '/tmp/.mx-coordination-token--mx-agent--newteam',
|
|
126
|
-
mode: 0o600,
|
|
127
|
-
})),
|
|
128
|
-
}));
|
|
129
|
-
// The build boundary (#123). Mocked so no test here reaches npm, and it really
|
|
130
|
-
// writes `dist/index.js` because row 14 re-reads that path at check time.
|
|
131
|
-
vi.mock('../lib/cli-build.js', () => ({
|
|
132
|
-
buildCliInWorktree: vi.fn((worktreePath) => {
|
|
133
|
-
const distPath = join(worktreePath, 'mx-agent-system', 'cli', 'dist', 'index.js');
|
|
134
|
-
mkdirSync(dirname(distPath), { recursive: true });
|
|
135
|
-
writeFileSync(distPath, '#!/usr/bin/env node\n');
|
|
136
|
-
return {
|
|
137
|
-
kind: 'built',
|
|
138
|
-
distPath,
|
|
139
|
-
version: '0.1.72',
|
|
140
|
-
runnerVersion: '0.1.72',
|
|
141
|
-
ciMs: 4500,
|
|
142
|
-
buildMs: 5100,
|
|
143
|
-
npmSource: 'node-adjacent',
|
|
144
|
-
};
|
|
145
|
-
}),
|
|
146
|
-
REBUILD_REMEDY: 'npm ci && npm run build',
|
|
147
|
-
}));
|
|
148
|
-
vi.mock('../lib/memory.js', () => ({
|
|
149
|
-
// create.ts reads this for the generated roleguide's codeContext (#83 B2).
|
|
150
|
-
PROVISIONED_MEMORY_SERVICE: 'team-provisioning',
|
|
151
|
-
// #190: the real rule, not a stub. create.ts validates every anchor suffix
|
|
152
|
-
// against this before a name is built from it, and a permissive stand-in here
|
|
153
|
-
// would let a test pass on a name the shipped binary refuses.
|
|
154
|
-
EXTRA_ANCHOR_SUFFIX_RE: /^[a-z0-9]+(-[a-z0-9]+)*$/,
|
|
155
|
-
shellSingleQuote: (s) => `'${s.replace(/'/g, "'\\''")}'`,
|
|
156
|
-
// Rows 3 to 5 read could-not-run, which ends a completed run in a
|
|
157
|
-
// CompletionCheckError. Every write these tests assert happens before that.
|
|
158
|
-
isMxAvailable: vi.fn(() => false),
|
|
159
|
-
bootstrapTeamMemories: vi.fn(),
|
|
160
|
-
logMemoryResult: vi.fn(),
|
|
161
|
-
teamMemorySpecs: vi.fn((slug, _d, _r, projectSlug = '') => ['leader-state', 'iteration-log', 'known-issues'].map((suffix) => ({
|
|
162
|
-
key: suffix,
|
|
163
|
-
name: `${projectSlug ? `${projectSlug}-` : ''}${slug}-${suffix}`,
|
|
164
|
-
content: '',
|
|
165
|
-
codeContext: {
|
|
166
|
-
product: projectSlug,
|
|
167
|
-
service: 'team-provisioning',
|
|
168
|
-
team: slug,
|
|
169
|
-
role: 'team-lead',
|
|
170
|
-
},
|
|
171
|
-
}))),
|
|
172
|
-
logManualMemoryCommands: vi.fn(),
|
|
173
|
-
namedMemoryExists: vi.fn(() => ({ ok: false, detail: 'mx CLI not found' })),
|
|
174
|
-
}));
|
|
175
|
-
vi.mock('../lib/project-config.js', () => ({
|
|
176
|
-
loadProjectConfig: vi.fn(() => ({})),
|
|
177
|
-
resolveProjectConfig: vi.fn(() => ({
|
|
178
|
-
worktreeDir: '.worktrees',
|
|
179
|
-
baseBranch: configuredBaseBranch,
|
|
180
|
-
configSource: 'mx-agent-system/agent-config',
|
|
181
|
-
teamsDir: 'mx-agent-system/teams',
|
|
182
|
-
roleguidesDir: 'mx-agent-system/roleguides',
|
|
183
|
-
projectSlug: 'mx-agent',
|
|
184
|
-
coordinationServiceUrl: '',
|
|
185
|
-
})),
|
|
186
|
-
}));
|
|
187
|
-
vi.mock('../lib/config-generation.js', () => ({ checkConfigGeneration: vi.fn() }));
|
|
188
|
-
import { runCreate, BehavioralContractError, CompletionCheckError, __testing } from '../commands/create.js';
|
|
189
|
-
import { BEHAVIORAL_START_MARKER, BEHAVIORAL_END_MARKER } from '../lib/behavioral-injection.js';
|
|
190
|
-
const { checkCompletionRows, catalogRemedyLines } = __testing;
|
|
191
|
-
const SLUG = 'scratchteam';
|
|
192
|
-
const RG = `mx-agent-system/roleguides/${SLUG}-leader.md`;
|
|
193
|
-
const WORKTREE = `.worktrees/${SLUG}-20260101`;
|
|
194
|
-
const ENTRY_REL = `mx-agent-system/teams/${SLUG}.md`;
|
|
195
|
-
const MEMORIES = [
|
|
196
|
-
'mx-agent-scratchteam-leader-state',
|
|
197
|
-
'mx-agent-scratchteam-iteration-log',
|
|
198
|
-
'mx-agent-scratchteam-known-issues',
|
|
199
|
-
];
|
|
200
|
-
const OWN_PROJECT = [
|
|
201
|
-
'# Scratchteam Leader Roleguide',
|
|
202
|
-
'',
|
|
203
|
-
BEHAVIORAL_START_MARKER,
|
|
204
|
-
'## Decision Authority',
|
|
205
|
-
'',
|
|
206
|
-
'- Ship without asking when the data is clear.',
|
|
207
|
-
BEHAVIORAL_END_MARKER,
|
|
208
|
-
'',
|
|
209
|
-
// #190: provisioning seeds one memory per row of this table, so a roleguide
|
|
210
|
-
// it accepts has to carry it. Three rows is the skeleton's shape.
|
|
211
|
-
'## Named Memory Anchors',
|
|
212
|
-
'',
|
|
213
|
-
'| Name | Content | Updated when |',
|
|
214
|
-
'|---|---|---|',
|
|
215
|
-
'| `mx-agent-scratchteam-leader-state` | State | Every change |',
|
|
216
|
-
'| `mx-agent-scratchteam-iteration-log` | Log | At iteration close |',
|
|
217
|
-
'| `mx-agent-scratchteam-known-issues` | Issues | When found |',
|
|
218
|
-
].join('\n');
|
|
219
|
-
class ExitCalled extends Error {
|
|
220
|
-
code;
|
|
221
|
-
constructor(code) {
|
|
222
|
-
super(`process.exit(${code})`);
|
|
223
|
-
this.code = code;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
let root;
|
|
227
|
-
let stdout;
|
|
228
|
-
beforeEach(() => {
|
|
229
|
-
root = mkdtempSync(join(tmpdir(), 'mx-catalog-precondition-'));
|
|
230
|
-
remotes = ['origin'];
|
|
231
|
-
entryOnMain = 'present';
|
|
232
|
-
worktreeHoldsEntry = false;
|
|
233
|
-
fetchOk = true;
|
|
234
|
-
configuredBaseBranch = 'main';
|
|
235
|
-
stdout = [];
|
|
236
|
-
vi.clearAllMocks();
|
|
237
|
-
vi.spyOn(console, 'log').mockImplementation((...a) => {
|
|
238
|
-
stdout.push(a.map(String).join(' '));
|
|
239
|
-
});
|
|
240
|
-
vi.spyOn(console, 'error').mockImplementation(() => { });
|
|
241
|
-
vi.spyOn(process, 'exit').mockImplementation(((code) => {
|
|
242
|
-
throw new ExitCalled(code ?? 0);
|
|
243
|
-
}));
|
|
244
|
-
});
|
|
245
|
-
afterEach(() => {
|
|
246
|
-
rmSync(root, { recursive: true, force: true });
|
|
247
|
-
vi.restoreAllMocks();
|
|
248
|
-
});
|
|
249
|
-
/** Provision `scratchteam`, returning whatever refusal the run produced. */
|
|
250
|
-
async function provision() {
|
|
251
|
-
const abs = join(root, RG);
|
|
252
|
-
mkdirSync(dirname(abs), { recursive: true });
|
|
253
|
-
writeFileSync(abs, OWN_PROJECT);
|
|
254
|
-
try {
|
|
255
|
-
await runCreate({ roleguide: RG, name: SLUG, projectRoot: root });
|
|
256
|
-
return null;
|
|
257
|
-
}
|
|
258
|
-
catch (err) {
|
|
259
|
-
// The completion check cannot hold here: the mx CLI is mocked away, so rows
|
|
260
|
-
// 3 to 5 read could-not-run. Every property these tests assert is settled
|
|
261
|
-
// before that row is printed.
|
|
262
|
-
if (err instanceof CompletionCheckError)
|
|
263
|
-
return null;
|
|
264
|
-
if (err instanceof ExitCalled)
|
|
265
|
-
throw new Error(`unexpected process.exit(${err.code})`);
|
|
266
|
-
return err;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
/** Every printed `row N:` line, in order. */
|
|
270
|
-
function rowLines() {
|
|
271
|
-
return stdout.filter((l) => /^\s*row \d+:/.test(l));
|
|
272
|
-
}
|
|
273
|
-
describe('provision refuses when the catalog entry is not on origin/main', () => {
|
|
274
|
-
it('names the file, the two team-builder steps, and the gh pr create form', async () => {
|
|
275
|
-
entryOnMain = 'absent';
|
|
276
|
-
const refusal = await provision();
|
|
277
|
-
expect(refusal).toBeInstanceOf(BehavioralContractError);
|
|
278
|
-
const message = refusal.message;
|
|
279
|
-
expect(message).toContain(ENTRY_REL);
|
|
280
|
-
expect(message).toContain('step 5');
|
|
281
|
-
expect(message).toContain('step 6a');
|
|
282
|
-
expect(message).toContain('gh pr create');
|
|
283
|
-
expect(message).toContain('gh pr merge --squash');
|
|
284
|
-
expect(message).toContain('git push -u origin HEAD');
|
|
285
|
-
});
|
|
286
|
-
it('creates nothing: no slot, no worktree, no catalog entry', async () => {
|
|
287
|
-
entryOnMain = 'absent';
|
|
288
|
-
await provision();
|
|
289
|
-
expect(assignSlot).not.toHaveBeenCalled();
|
|
290
|
-
expect(createGitWorktree).not.toHaveBeenCalled();
|
|
291
|
-
expect(existsSync(join(root, WORKTREE))).toBe(false);
|
|
292
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(false);
|
|
293
|
-
});
|
|
294
|
-
it('leaves an existing .slots.json byte-identical and unstamped', async () => {
|
|
295
|
-
// The check moved ahead of `assignSlot` for this: the refusal used to run
|
|
296
|
-
// after the slot file had already been written. Measured on the scratch
|
|
297
|
-
// end-to-end too, to the nanosecond, on a clone that already held one.
|
|
298
|
-
const slots = slotsPath(root);
|
|
299
|
-
mkdirSync(dirname(slots), { recursive: true });
|
|
300
|
-
writeFileSync(slots, JSON.stringify({ someotherteam: 3 }));
|
|
301
|
-
const before = readFileSync(slots, 'utf-8');
|
|
302
|
-
const beforeMtime = statSync(slots).mtimeMs;
|
|
303
|
-
entryOnMain = 'absent';
|
|
304
|
-
await provision();
|
|
305
|
-
expect(readFileSync(slots, 'utf-8')).toBe(before);
|
|
306
|
-
expect(statSync(slots).mtimeMs).toBe(beforeMtime);
|
|
307
|
-
});
|
|
308
|
-
it('consults origin/main with the slug and the configured teams directory', async () => {
|
|
309
|
-
entryOnMain = 'absent';
|
|
310
|
-
await provision();
|
|
311
|
-
expect(catalogEntryOnOriginMain).toHaveBeenCalledWith(root, SLUG, 'mx-agent-system/teams', {
|
|
312
|
-
baseBranch: 'main',
|
|
313
|
-
fetchOk: true,
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
describe('provision refuses on an origin/main that does not resolve', () => {
|
|
318
|
-
it('names the ref it could not read, not a missing entry', async () => {
|
|
319
|
-
entryOnMain = 'unresolvable';
|
|
320
|
-
const refusal = await provision();
|
|
321
|
-
expect(refusal).toBeInstanceOf(BehavioralContractError);
|
|
322
|
-
const message = refusal.message;
|
|
323
|
-
expect(message).toContain('this run cannot read origin/main');
|
|
324
|
-
expect(message).toContain('git rev-parse --verify origin/main');
|
|
325
|
-
// The remedy for an absent entry would be the wrong instruction here: the
|
|
326
|
-
// entry may well be on the base branch, and this run cannot read it.
|
|
327
|
-
expect(message).not.toContain('gh pr create');
|
|
328
|
-
expect(message).not.toContain('step 6a');
|
|
329
|
-
});
|
|
330
|
-
it('says the fetch FAILED, and that a ref it holds is of unknown age', async () => {
|
|
331
|
-
// The stale-ref case. `git fetch origin` failed, so a ref left by an earlier
|
|
332
|
-
// fetch answers about a state that may be hours old, and an entry merged
|
|
333
|
-
// since then would read as missing.
|
|
334
|
-
fetchOk = false;
|
|
335
|
-
entryOnMain = 'unresolvable';
|
|
336
|
-
const message = (await provision()).message;
|
|
337
|
-
expect(message).toContain('git fetch origin FAILED');
|
|
338
|
-
expect(message).toContain('from an earlier fetch');
|
|
339
|
-
expect(message).toContain('cannot establish its age');
|
|
340
|
-
expect(message).not.toContain('remote holds no');
|
|
341
|
-
});
|
|
342
|
-
it('says the fetch succeeded when the remote simply holds no base branch', async () => {
|
|
343
|
-
// The negative control for the message above: same outcome, different cause,
|
|
344
|
-
// and the operator's next move differs.
|
|
345
|
-
fetchOk = true;
|
|
346
|
-
entryOnMain = 'unresolvable';
|
|
347
|
-
const message = (await provision()).message;
|
|
348
|
-
expect(message).toContain('git fetch origin succeeded');
|
|
349
|
-
expect(message).toContain('remote holds no `main` branch');
|
|
350
|
-
expect(message).not.toContain('cannot establish its age');
|
|
351
|
-
});
|
|
352
|
-
it('passes the failed fetch to the precondition rather than deciding around it', async () => {
|
|
353
|
-
fetchOk = false;
|
|
354
|
-
entryOnMain = 'unresolvable';
|
|
355
|
-
await provision();
|
|
356
|
-
expect(catalogEntryOnOriginMain).toHaveBeenCalledWith(root, SLUG, 'mx-agent-system/teams', {
|
|
357
|
-
baseBranch: 'main',
|
|
358
|
-
fetchOk: false,
|
|
359
|
-
});
|
|
360
|
-
});
|
|
361
|
-
it('creates nothing', async () => {
|
|
362
|
-
entryOnMain = 'unresolvable';
|
|
363
|
-
await provision();
|
|
364
|
-
expect(assignSlot).not.toHaveBeenCalled();
|
|
365
|
-
expect(createGitWorktree).not.toHaveBeenCalled();
|
|
366
|
-
expect(existsSync(slotsPath(root))).toBe(false);
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
describe('the catalog write, by whether the project has an origin', () => {
|
|
370
|
-
it('writes no entry into the project root when the project has an origin', async () => {
|
|
371
|
-
entryOnMain = 'present';
|
|
372
|
-
const refusal = await provision();
|
|
373
|
-
expect(refusal).toBeNull();
|
|
374
|
-
expect(createGitWorktree).toHaveBeenCalled();
|
|
375
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(false);
|
|
376
|
-
expect(existsSync(join(root, 'mx-agent-system/teams'))).toBe(false);
|
|
377
|
-
});
|
|
378
|
-
it('writes the entry into a scaffolded project that has no origin', async () => {
|
|
379
|
-
remotes = [];
|
|
380
|
-
const refusal = await provision();
|
|
381
|
-
expect(refusal).toBeNull();
|
|
382
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(true);
|
|
383
|
-
expect(readFileSync(join(root, ENTRY_REL), 'utf-8')).toContain(SLUG);
|
|
384
|
-
});
|
|
385
|
-
it('skips the origin/main check entirely when there is no origin', async () => {
|
|
386
|
-
remotes = [];
|
|
387
|
-
entryOnMain = 'absent';
|
|
388
|
-
const refusal = await provision();
|
|
389
|
-
expect(refusal).toBeNull();
|
|
390
|
-
expect(catalogEntryOnOriginMain).not.toHaveBeenCalled();
|
|
391
|
-
});
|
|
392
|
-
it('leaves the entry the new worktree already holds untouched, with an origin', async () => {
|
|
393
|
-
// The copy step keeps its existsSync guard. With an origin the source does
|
|
394
|
-
// not exist either, so nothing reads or replaces the checked-out entry.
|
|
395
|
-
entryOnMain = 'present';
|
|
396
|
-
worktreeHoldsEntry = true;
|
|
397
|
-
await provision();
|
|
398
|
-
expect(readFileSync(join(root, WORKTREE, ENTRY_REL), 'utf-8')).toBe(CURATED);
|
|
399
|
-
});
|
|
400
|
-
it('leaves the entry the new worktree already holds untouched, without an origin', async () => {
|
|
401
|
-
// The no-origin branch writes into the project root and then copies. The
|
|
402
|
-
// guard is what stops the copy replacing a curated file with a placeholder.
|
|
403
|
-
remotes = [];
|
|
404
|
-
worktreeHoldsEntry = true;
|
|
405
|
-
await provision();
|
|
406
|
-
expect(readFileSync(join(root, WORKTREE, ENTRY_REL), 'utf-8')).toBe(CURATED);
|
|
407
|
-
expect(readFileSync(join(root, ENTRY_REL), 'utf-8')).not.toBe(CURATED);
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
describe('completion row 2', () => {
|
|
411
|
-
it('asserts the entry on origin/main when the project has an origin', async () => {
|
|
412
|
-
entryOnMain = 'present';
|
|
413
|
-
await provision();
|
|
414
|
-
expect(rowLines()).toHaveLength(16);
|
|
415
|
-
expect(rowLines()[2]).toMatch(/row 2: asserted/);
|
|
416
|
-
expect(rowLines()[2]).toContain(`catalog entry on origin/main: ${ENTRY_REL}`);
|
|
417
|
-
});
|
|
418
|
-
it('asserts the scaffolded project\'s file when there is no origin', async () => {
|
|
419
|
-
remotes = [];
|
|
420
|
-
await provision();
|
|
421
|
-
expect(rowLines()).toHaveLength(16);
|
|
422
|
-
expect(rowLines()[2]).toMatch(/row 2: asserted/);
|
|
423
|
-
expect(rowLines()[2]).toContain('catalog entry in the scaffolded project (no origin yet)');
|
|
424
|
-
expect(rowLines()[2]).toContain(join(root, ENTRY_REL));
|
|
425
|
-
});
|
|
426
|
-
it('keeps one label across all three branches, and 16 rows in each', () => {
|
|
427
|
-
// Unit level, because the third branch is a no-origin write that left
|
|
428
|
-
// nothing behind, which the integration path cannot produce with the real
|
|
429
|
-
// writer in place.
|
|
430
|
-
const inputs = {
|
|
431
|
-
slug: SLUG,
|
|
432
|
-
projectSlug: 'mx-agent',
|
|
433
|
-
baseBranch: 'main',
|
|
434
|
-
roleguideInWorktree: null,
|
|
435
|
-
catalogEntry: join(root, ENTRY_REL),
|
|
436
|
-
memoryNames: MEMORIES,
|
|
437
|
-
mxAvailable: false,
|
|
438
|
-
};
|
|
439
|
-
const onMain = checkCompletionRows({
|
|
440
|
-
...inputs,
|
|
441
|
-
hasOrigin: true,
|
|
442
|
-
catalogOnOriginMainPath: ENTRY_REL,
|
|
443
|
-
});
|
|
444
|
-
const scaffoldMissing = checkCompletionRows({ ...inputs, hasOrigin: false });
|
|
445
|
-
mkdirSync(dirname(join(root, ENTRY_REL)), { recursive: true });
|
|
446
|
-
writeFileSync(join(root, ENTRY_REL), '# written by the scaffold\n');
|
|
447
|
-
const scaffoldPresent = checkCompletionRows({ ...inputs, hasOrigin: false });
|
|
448
|
-
const row = (rows) => rows.find((r) => r.n === 2);
|
|
449
|
-
expect(onMain).toHaveLength(16);
|
|
450
|
-
expect(scaffoldMissing).toHaveLength(16);
|
|
451
|
-
expect(scaffoldPresent).toHaveLength(16);
|
|
452
|
-
expect(row(onMain).asserted).toBe(true);
|
|
453
|
-
expect(row(onMain).detail).toBe(`catalog entry on origin/main: ${ENTRY_REL}`);
|
|
454
|
-
expect(row(scaffoldPresent).asserted).toBe(true);
|
|
455
|
-
expect(row(scaffoldPresent).detail).toBe(`catalog entry in the scaffolded project (no origin yet): ${join(root, ENTRY_REL)}`);
|
|
456
|
-
expect(row(scaffoldMissing).asserted).toBe(false);
|
|
457
|
-
expect(row(scaffoldMissing).required).toBe(true);
|
|
458
|
-
expect(row(scaffoldMissing).detail).toBe(`catalog entry missing: ${join(root, ENTRY_REL)}`);
|
|
459
|
-
expect(row(onMain).label).toBe(row(scaffoldMissing).label);
|
|
460
|
-
expect(row(scaffoldPresent).label).toBe(row(scaffoldMissing).label);
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
describe('the base branch the project configures', () => {
|
|
464
|
-
it('checks the ref the worktree is created from, not a hardcoded origin/main', async () => {
|
|
465
|
-
configuredBaseBranch = 'release';
|
|
466
|
-
entryOnMain = 'absent';
|
|
467
|
-
const message = (await provision()).message;
|
|
468
|
-
expect(catalogEntryOnOriginMain).toHaveBeenCalledWith(root, SLUG, 'mx-agent-system/teams', {
|
|
469
|
-
baseBranch: 'release',
|
|
470
|
-
fetchOk: true,
|
|
471
|
-
});
|
|
472
|
-
expect(message).toContain('is not on origin/release');
|
|
473
|
-
expect(message).toContain(`${ENTRY_REL} (on origin/release)`);
|
|
474
|
-
expect(message).not.toContain('origin/main');
|
|
475
|
-
});
|
|
476
|
-
it('names that branch in the unresolvable refusal too', async () => {
|
|
477
|
-
configuredBaseBranch = 'release';
|
|
478
|
-
entryOnMain = 'unresolvable';
|
|
479
|
-
const message = (await provision()).message;
|
|
480
|
-
expect(message).toContain('this run cannot read origin/release');
|
|
481
|
-
expect(message).toContain('git rev-parse --verify origin/release');
|
|
482
|
-
expect(message).not.toContain('origin/main');
|
|
483
|
-
});
|
|
484
|
-
it('names that branch in row 2', async () => {
|
|
485
|
-
configuredBaseBranch = 'release';
|
|
486
|
-
entryOnMain = 'present';
|
|
487
|
-
await provision();
|
|
488
|
-
expect(rowLines()[2]).toContain(`catalog entry on origin/release: ${ENTRY_REL}`);
|
|
489
|
-
});
|
|
490
|
-
});
|
|
491
|
-
describe('routing on the remotes this repository has', () => {
|
|
492
|
-
it('takes the scaffold path when there are no remotes at all', async () => {
|
|
493
|
-
remotes = [];
|
|
494
|
-
const refusal = await provision();
|
|
495
|
-
expect(refusal).toBeNull();
|
|
496
|
-
expect(catalogEntryOnOriginMain).not.toHaveBeenCalled();
|
|
497
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(true);
|
|
498
|
-
});
|
|
499
|
-
it('takes the precondition path when a remote is named origin', async () => {
|
|
500
|
-
remotes = ['origin'];
|
|
501
|
-
entryOnMain = 'present';
|
|
502
|
-
const refusal = await provision();
|
|
503
|
-
expect(refusal).toBeNull();
|
|
504
|
-
expect(catalogEntryOnOriginMain).toHaveBeenCalled();
|
|
505
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(false);
|
|
506
|
-
});
|
|
507
|
-
it('refuses when remotes exist and none is named origin', async () => {
|
|
508
|
-
// The fail-open case. `hasOriginRemote` answers false here, which routed the
|
|
509
|
-
// project down the scaffold path and wrote the entry into this checkout.
|
|
510
|
-
remotes = ['upstream', 'fork'];
|
|
511
|
-
const refusal = await provision();
|
|
512
|
-
expect(refusal).toBeInstanceOf(BehavioralContractError);
|
|
513
|
-
const message = refusal.message;
|
|
514
|
-
expect(message).toContain('none is named origin');
|
|
515
|
-
expect(message).toContain('upstream, fork');
|
|
516
|
-
expect(message).toContain('git remote rename <name> origin');
|
|
517
|
-
// Nothing was created, and above all no catalog entry in the project root.
|
|
518
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(false);
|
|
519
|
-
expect(assignSlot).not.toHaveBeenCalled();
|
|
520
|
-
expect(createGitWorktree).not.toHaveBeenCalled();
|
|
521
|
-
expect(catalogEntryOnOriginMain).not.toHaveBeenCalled();
|
|
522
|
-
});
|
|
523
|
-
it('strips terminal escapes out of a remote name before printing it', async () => {
|
|
524
|
-
// Remote names come out of the repository's own config.
|
|
525
|
-
remotes = ['up\u001b[31mstream'];
|
|
526
|
-
const message = (await provision()).message;
|
|
527
|
-
expect(message).not.toContain('\u001b[31m');
|
|
528
|
-
expect(message).toContain('up\ufffd[31mstream');
|
|
529
|
-
});
|
|
530
|
-
});
|
|
531
|
-
describe('the remedy names only the commands still outstanding', () => {
|
|
532
|
-
// Red-team, 2026-08-22: the full block told an operator to `git add` a file
|
|
533
|
-
// they had already committed and to push a branch they had already pushed,
|
|
534
|
-
// which reads as though the run saw none of their work.
|
|
535
|
-
const lines = (state) => catalogRemedyLines({
|
|
536
|
-
state,
|
|
537
|
-
slug: SLUG,
|
|
538
|
-
catalogRelPath: ENTRY_REL,
|
|
539
|
-
roleguidesDir: 'mx-agent-system/roleguides',
|
|
540
|
-
branch: 'test/caller',
|
|
541
|
-
}).join('\n');
|
|
542
|
-
it('unstarted: every command, add and commit included', () => {
|
|
543
|
-
const text = lines('unstarted');
|
|
544
|
-
expect(text).toContain(`git add mx-agent-system/roleguides/${SLUG}-leader.md ${ENTRY_REL}`);
|
|
545
|
-
expect(text).toContain('git commit -m');
|
|
546
|
-
expect(text).toContain('git push -u origin HEAD');
|
|
547
|
-
expect(text).toContain('gh pr create');
|
|
548
|
-
expect(text).toContain('gh pr merge --squash');
|
|
549
|
-
expect(text).toContain('step 5');
|
|
550
|
-
});
|
|
551
|
-
it('committed: the push and the pull request, and no add or commit', () => {
|
|
552
|
-
const text = lines('committed');
|
|
553
|
-
expect(text).toContain('is committed on `test/caller`');
|
|
554
|
-
expect(text).toContain('git push -u origin HEAD');
|
|
555
|
-
expect(text).toContain('gh pr create');
|
|
556
|
-
expect(text).toContain('gh pr merge --squash');
|
|
557
|
-
expect(text).not.toContain('git add ');
|
|
558
|
-
expect(text).not.toContain('git commit -m');
|
|
559
|
-
});
|
|
560
|
-
it('pushed: the pull request only, and no add, commit or push', () => {
|
|
561
|
-
const text = lines('pushed');
|
|
562
|
-
expect(text).toContain('`test/caller` is on origin');
|
|
563
|
-
expect(text).toContain('gh pr merge --squash');
|
|
564
|
-
// No `gh` call is made, so whether a pull request exists is not knowable
|
|
565
|
-
// from here, and the line says so rather than guessing.
|
|
566
|
-
expect(text).toContain('skip the line above if a pull request');
|
|
567
|
-
expect(text).not.toContain('git add ');
|
|
568
|
-
expect(text).not.toContain('git commit -m');
|
|
569
|
-
expect(text).not.toContain('git push -u origin HEAD');
|
|
570
|
-
});
|
|
571
|
-
it('strips terminal escapes out of the branch name', () => {
|
|
572
|
-
const text = catalogRemedyLines({
|
|
573
|
-
state: 'committed',
|
|
574
|
-
slug: SLUG,
|
|
575
|
-
catalogRelPath: ENTRY_REL,
|
|
576
|
-
roleguidesDir: 'mx-agent-system/roleguides',
|
|
577
|
-
branch: 'test/\u001b[31mcaller',
|
|
578
|
-
}).join('\n');
|
|
579
|
-
expect(text).not.toContain('\u001b[31m');
|
|
580
|
-
expect(text).toContain('\ufffd[31mcaller');
|
|
581
|
-
});
|
|
582
|
-
it('falls back to a neutral phrase when the branch cannot be read', () => {
|
|
583
|
-
const text = catalogRemedyLines({
|
|
584
|
-
state: 'committed',
|
|
585
|
-
slug: SLUG,
|
|
586
|
-
catalogRelPath: ENTRY_REL,
|
|
587
|
-
roleguidesDir: 'mx-agent-system/roleguides',
|
|
588
|
-
branch: null,
|
|
589
|
-
}).join('\n');
|
|
590
|
-
expect(text).toContain('your branch');
|
|
591
|
-
expect(text).not.toContain('null');
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
describe('a remote list that could not be read', () => {
|
|
595
|
-
it('refuses, rather than reading the silence as no remotes', async () => {
|
|
596
|
-
// `git remote` exited non-zero or never ran. The empty list authorises the
|
|
597
|
-
// scaffold write; this says nothing about remotes and must not.
|
|
598
|
-
remotes = null;
|
|
599
|
-
const refusal = await provision();
|
|
600
|
-
expect(refusal).toBeInstanceOf(BehavioralContractError);
|
|
601
|
-
const message = refusal.message;
|
|
602
|
-
expect(message).toContain('cannot list the remotes');
|
|
603
|
-
expect(message).toContain('is unknown');
|
|
604
|
-
expect(message).toContain('git -C');
|
|
605
|
-
});
|
|
606
|
-
it('creates nothing, and above all no catalog entry in the project root', async () => {
|
|
607
|
-
remotes = null;
|
|
608
|
-
await provision();
|
|
609
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(false);
|
|
610
|
-
expect(assignSlot).not.toHaveBeenCalled();
|
|
611
|
-
expect(createGitWorktree).not.toHaveBeenCalled();
|
|
612
|
-
expect(catalogEntryOnOriginMain).not.toHaveBeenCalled();
|
|
613
|
-
});
|
|
614
|
-
it('the empty list still takes the scaffold path, so the two are not conflated', async () => {
|
|
615
|
-
// The negative control: same code path, one value apart.
|
|
616
|
-
remotes = [];
|
|
617
|
-
const refusal = await provision();
|
|
618
|
-
expect(refusal).toBeNull();
|
|
619
|
-
expect(existsSync(join(root, ENTRY_REL))).toBe(true);
|
|
620
|
-
});
|
|
621
|
-
});
|
|
622
|
-
//# sourceMappingURL=provision-catalog-precondition.test.js.map
|