gentle-pi 4.6.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -55
- package/assets/agents/gentle-ai-explore.md +4 -3
- package/assets/agents/gentle-ai-verify.md +23 -6
- package/assets/agents/gentle-ai-worker.md +9 -6
- package/assets/agents/jd-fix-agent.md +1 -0
- package/assets/agents/jd-judge-a.md +2 -3
- package/assets/agents/jd-judge-b.md +2 -3
- package/assets/agents/review-readability.md +1 -5
- package/assets/agents/review-reliability.md +1 -5
- package/assets/agents/review-resilience.md +1 -5
- package/assets/agents/review-risk.md +1 -5
- package/assets/design-canvas/canvas-api.js +45 -0
- package/assets/design-canvas/canvas-boards.js +456 -0
- package/assets/design-canvas/canvas-boot.js +217 -0
- package/assets/design-canvas/canvas-checks.js +491 -0
- package/assets/design-canvas/canvas-comments.js +315 -0
- package/assets/design-canvas/canvas-compare.js +159 -0
- package/assets/design-canvas/canvas-events.js +75 -0
- package/assets/design-canvas/canvas-export.js +393 -0
- package/assets/design-canvas/canvas-focus.js +203 -0
- package/assets/design-canvas/canvas-handoffs.js +150 -0
- package/assets/design-canvas/canvas-i18n-es.js +392 -0
- package/assets/design-canvas/canvas-i18n.js +108 -0
- package/assets/design-canvas/canvas-layout.js +526 -0
- package/assets/design-canvas/canvas-menu.js +213 -0
- package/assets/design-canvas/canvas-messages.js +86 -0
- package/assets/design-canvas/canvas-minimap.js +163 -0
- package/assets/design-canvas/canvas-parts.js +401 -0
- package/assets/design-canvas/canvas-popover.js +234 -0
- package/assets/design-canvas/canvas-rail.js +348 -0
- package/assets/design-canvas/canvas-sizes.js +524 -0
- package/assets/design-canvas/canvas-store.js +164 -0
- package/assets/design-canvas/canvas-tokens.js +674 -0
- package/assets/design-canvas/canvas-ui.js +24 -0
- package/assets/design-canvas/canvas-view.js +184 -0
- package/assets/design-canvas/canvas.css +759 -16
- package/assets/design-canvas/canvas.js +2 -1497
- package/assets/design-canvas/index.html +117 -36
- package/assets/design-canvas/inspector.js +546 -16
- package/assets/install-wizard/wizard.js +6 -1
- package/assets/migrations/agent-body-history.json +40 -1
- package/assets/orchestrator-delegation-reference.md +10 -16
- package/assets/orchestrator-delegation.md +5 -5
- package/assets/orchestrator-full-delegation-card.md +64 -0
- package/assets/orchestrator-full-delegation.md +34 -0
- package/assets/orchestrator-memory.md +5 -5
- package/assets/orchestrator-prompts.md +2 -2
- package/assets/orchestrator-quota-recovery.md +5 -0
- package/assets/orchestrator-skills.md +14 -13
- package/assets/orchestrator-tracking.md +10 -14
- package/assets/orchestrator-verification.md +12 -8
- package/assets/orchestrator-writer.md +4 -4
- package/assets/orchestrator.md +21 -25
- package/bin/gentle-shell.mjs +292 -65
- package/contracts/review-provider-contract-mirror/provider-contract.lock.json +8 -9
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/manifest.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/orchestration/pi.md +1 -0
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/routing/pi.md +6 -6
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-capabilities.baseline.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-roles.baseline.json +1 -1
- package/docs/agent-status.md +61 -0
- package/docs/assets/brand/sponsor-banner.svg +60 -0
- package/docs/bundled-install.md +20 -10
- package/docs/delegated-verification.md +46 -8
- package/docs/desktop-rpc.md +1253 -0
- package/docs/gentle-agents-activity.md +40 -0
- package/docs/gentle-shell.md +91 -30
- package/docs/install-wizard.md +30 -21
- package/docs/odd-preparation-continuity.md +24 -0
- package/docs/permission-modes.md +17 -4
- package/docs/prompt-budget.md +12 -0
- package/docs/rdd-odd-friction-triage-2026-11-07.md +57 -0
- package/docs/readme-reference.md +142 -45
- package/docs/render-cache-performance.md +11 -1
- package/docs/review-coordinator.md +53 -0
- package/docs/review-delivery-preflight.md +22 -0
- package/docs/review-request-context.md +19 -0
- package/docs/review-windows-acl.md +18 -0
- package/docs/voice.md +6 -3
- package/docs/work-continuity.md +11 -1
- package/docs/yolo-mode.md +5 -5
- package/extensions/ask-user-choice.ts +1 -0
- package/extensions/ask-user-question.ts +3 -2
- package/extensions/child-context.ts +21 -7
- package/extensions/child-safety.ts +3 -0
- package/extensions/gentle-agent-status.ts +99 -0
- package/extensions/gentle-agents.ts +559 -66
- package/extensions/gentle-ai.ts +2001 -518
- package/extensions/gentle-design.ts +69 -3
- package/extensions/gentle-desktop-rpc.ts +143 -0
- package/extensions/gentle-guide.ts +3 -0
- package/extensions/gentle-shell.ts +398 -115
- package/extensions/gentle-todo.ts +66 -27
- package/extensions/gentle-tps.ts +48 -0
- package/extensions/quiet-tools.ts +38 -8
- package/extensions/skill-registry.ts +349 -167
- package/extensions/startup-banner.ts +30 -3
- package/lib/agent-assets.ts +30 -6
- package/lib/agent-profile-pin.ts +3 -3
- package/lib/agent-profiles.ts +160 -2
- package/lib/agent-status.ts +105 -0
- package/lib/agent-tool-overlay.ts +117 -0
- package/lib/agents-config.ts +93 -6
- package/lib/agents-history.ts +24 -5
- package/lib/agents-message-delivery.ts +17 -0
- package/lib/agents-messaging.ts +55 -7
- package/lib/agents-protocol.ts +15 -0
- package/lib/agents-report-cap.ts +115 -0
- package/lib/agents-runner.ts +272 -16
- package/lib/agents-session-transport.ts +17 -1
- package/lib/auto-permission-runtime.ts +1 -1
- package/lib/background-jobs-tools.ts +9 -4
- package/lib/bounded-writer-admission.ts +197 -32
- package/lib/card-content-policy.ts +8 -6
- package/lib/child-context-files.ts +21 -6
- package/lib/codemode-renderer.ts +1 -0
- package/lib/command-palette.ts +133 -17
- package/lib/context-backstop.ts +14 -5
- package/lib/delivery-conflict-markers.ts +349 -0
- package/lib/design-canvas-assets.ts +36 -0
- package/lib/design-canvas-server.ts +241 -23
- package/lib/design-comments.ts +94 -4
- package/lib/design-handoffs.ts +2 -1
- package/lib/design-layout.ts +125 -0
- package/lib/design-parts.ts +281 -0
- package/lib/design-system-tokens.ts +111 -0
- package/lib/desktop-agents-service.ts +294 -0
- package/lib/desktop-design-service.ts +233 -0
- package/lib/desktop-jobs-service.ts +263 -0
- package/lib/desktop-rpc-agents.ts +294 -0
- package/lib/desktop-rpc-config.ts +731 -0
- package/lib/desktop-rpc-design.ts +138 -0
- package/lib/desktop-rpc-jobs.ts +181 -0
- package/lib/desktop-rpc-permissions.ts +177 -0
- package/lib/desktop-rpc-profiles.ts +196 -0
- package/lib/desktop-rpc-usage.ts +229 -0
- package/lib/desktop-rpc.ts +225 -0
- package/lib/desktop-usage-service.ts +310 -0
- package/lib/destructive-command-guard.ts +236 -17
- package/lib/execution-surface-guard.ts +20 -0
- package/lib/exploration-budget.ts +4 -2
- package/lib/gentle-ai-binary.ts +1 -1
- package/lib/gentle-ai-renderer.ts +13 -1
- package/lib/gentle-design.ts +204 -14
- package/lib/gentle-shell-bundled.ts +106 -28
- package/lib/gentle-shell-launcher.ts +43 -8
- package/lib/herdr-activity.ts +14 -2
- package/lib/herdr-busy.ts +45 -0
- package/lib/hidden-tools.ts +35 -0
- package/lib/image-attachments.ts +33 -0
- package/lib/image-disk-cache.ts +137 -0
- package/lib/inprocess-reviewer.ts +358 -144
- package/lib/jobs-view.ts +198 -11
- package/lib/model-fallback-policy.ts +9 -0
- package/lib/model-routing-authority.ts +31 -4
- package/lib/nan-provider.ts +42 -28
- package/lib/native-choice-list.ts +20 -2
- package/lib/native-review-cli.ts +172 -20
- package/lib/orchestrator-discovery.ts +39 -2
- package/lib/orchestrator-mode-policy.ts +105 -0
- package/lib/questionnaire/questionnaire-view.ts +105 -12
- package/lib/rdd-mode-control.ts +32 -0
- package/lib/reply-language-anchor.ts +129 -0
- package/lib/request-context-placement.ts +53 -0
- package/lib/review-blocker.ts +92 -0
- package/lib/review-candidate-symlink-scan.ts +136 -0
- package/lib/review-candidate-view-owner.ts +81 -44
- package/lib/review-candidate-view.ts +11 -1
- package/lib/review-continuation-registry.ts +116 -0
- package/lib/review-coordinator.ts +407 -0
- package/lib/review-delivery-preflight.ts +85 -0
- package/lib/review-failure-facts.ts +49 -0
- package/lib/review-host-relay.ts +51 -11
- package/lib/review-integration-v2.ts +63 -4
- package/lib/review-relay-phase-timing.ts +45 -0
- package/lib/review-start-context.ts +17 -0
- package/lib/reviewer-stream.ts +87 -0
- package/lib/session-profile-freeze.ts +4 -2
- package/lib/shell-bar.ts +140 -58
- package/lib/shell-changes.ts +2 -0
- package/lib/shell-panel.ts +17 -3
- package/lib/shell-prompt.ts +16 -3
- package/lib/shell-sidebar-layout.ts +112 -40
- package/lib/shell-sidebar.ts +7 -0
- package/lib/shell-todo.ts +10 -3
- package/lib/shell-usage.ts +10 -0
- package/lib/verifier-admission.ts +1 -1
- package/lib/vim-editor-adapter.ts +9 -2
- package/lib/visual-customization-policy.ts +36 -16
- package/lib/visual-customize-view.ts +216 -21
- package/lib/visual-layout-preview.ts +9 -5
- package/lib/visual-profiles.ts +2 -2
- package/lib/windows-session-transport.ts +53 -2
- package/lib/writer-batch-admission.ts +55 -0
- package/lib/yolo-session-policy.ts +46 -16
- package/package.json +3 -2
- package/prompts/skill-creation.md +1 -10
- package/runtime/design-canvas-assets.mjs +37 -0
- package/runtime/gentle-ai-binary.mjs +1 -1
- package/runtime/gentle-shell-bundled.mjs +106 -28
- package/runtime/gentle-shell-launcher.mjs +42 -7
- package/runtime/native-review-cli.mjs +169 -17
- package/runtime/review-integration-v2.mjs +63 -4
- package/scripts/bootstrap.cmd +2 -2
- package/scripts/bootstrap.sh +41 -4
- package/scripts/build-full-delegation-card.mjs +179 -0
- package/scripts/build-runtime-modules.mjs +1 -0
- package/scripts/bundled-install.mjs +38 -8
- package/scripts/download-progress.mjs +68 -0
- package/scripts/gentle-ai-installer.mjs +41 -18
- package/scripts/gentle-ai-proxy.mjs +294 -0
- package/scripts/install-gentle-ai.mjs +14 -1
- package/scripts/installer-downloads.mjs +34 -8
- package/scripts/installer-preflight.mjs +33 -22
- package/scripts/installer-probes.mjs +25 -5
- package/scripts/installer-runner.mjs +27 -12
- package/scripts/installer-server.mjs +46 -16
- package/scripts/installer-windows.mjs +2 -2
- package/scripts/pi-update.mjs +166 -27
- package/scripts/prepare-verifier.mjs +107 -0
- package/scripts/render-cache-host.mjs +72 -0
- package/scripts/render-cache-performance-worker.mjs +5 -4
- package/scripts/render-cache-performance.mjs +6 -1
- package/scripts/run-test-suite.mjs +40 -28
- package/scripts/update-agent-body-history.mjs +55 -8
- package/scripts/verify-package-files.mjs +50 -19
- package/scripts/voice-worker.cjs +32 -6
- package/skills/branch-pr/SKILL.md +16 -16
- package/skills/comment-writer/SKILL.md +1 -1
- package/skills/design/SKILL.md +16 -13
- package/skills/gentle-ai/SKILL.md +7 -7
- package/skills/gentle-ui-design/SKILL.md +46 -0
- package/skills/gentle-ui-design/references/adaptive-interfaces.md +46 -0
- package/skills/gentle-ui-design/references/browse-and-compare.md +62 -0
- package/skills/gentle-ui-design/references/composition-and-feedback.md +56 -0
- package/skills/gentle-ui-design/references/task-and-content.md +60 -0
- package/skills/judgment-day/SKILL.md +2 -2
- package/skills/judgment-day/references/prompts-and-formats.md +1 -1
- package/skills/rdd-defect-workflow/SKILL.md +6 -6
- package/skills/skill-improver/SKILL.md +2 -2
- package/skills/skill-registry/SKILL.md +11 -11
- package/skills/tui-design/SKILL.md +1 -1
- package/skills/work-unit-commits/SKILL.md +10 -11
- package/tests/agent-home.test.ts +28 -9
- package/tests/agent-profiles-workflow.test.ts +163 -0
- package/tests/agent-prompt-diet-contract.test.ts +101 -0
- package/tests/agent-risk-escalation.test.ts +1 -1
- package/tests/agent-status.test.ts +143 -0
- package/tests/agent-tool-overlay-acceptance.test.ts +158 -0
- package/tests/agent-tool-overlay.test.ts +89 -0
- package/tests/agents-config.test.ts +106 -1
- package/tests/agents-history.test.ts +31 -0
- package/tests/agents-jobs-frames.test.ts +93 -0
- package/tests/agents-message-delivery.test.ts +36 -0
- package/tests/agents-prompt-lifecycle-runtime.test.ts +376 -0
- package/tests/agents-queries.test.ts +144 -4
- package/tests/agents-report-cap.test.ts +126 -0
- package/tests/agents-runner-drain.test.ts +193 -0
- package/tests/agents-runner.test.ts +215 -3
- package/tests/agents-session-transport.test.ts +34 -0
- package/tests/always-on-prompt-verdicts-contract.test.ts +188 -0
- package/tests/append-system-prompt-route.test.ts +12 -1
- package/tests/approved-text-leftovers-contract.test.ts +136 -0
- package/tests/artifact-language.test.ts +1 -1
- package/tests/ask-user-choice.test.ts +4 -3
- package/tests/ask-user-question.test.ts +99 -1
- package/tests/audit-leftovers-contract.test.ts +51 -0
- package/tests/auto-permission-runtime.test.ts +1 -1
- package/tests/autonomous-guard.test.ts +346 -10
- package/tests/bounded-stop-contract.test.ts +51 -3
- package/tests/branch-pr-skill.test.ts +10 -1
- package/tests/bridge-cost.test.ts +19 -4
- package/tests/bundled-install.test.ts +31 -6
- package/tests/card-content-policy.test.ts +3 -3
- package/tests/chained-pr-skill.test.ts +8 -6
- package/tests/child-context-files.test.ts +64 -8
- package/tests/child-safety.test.ts +11 -0
- package/tests/child-skills-catalog.test.ts +56 -0
- package/tests/codegraph-tools.test.ts +11 -5
- package/tests/codemode-rendering.test.ts +4 -1
- package/tests/command-palette.test.ts +284 -1
- package/tests/delegate-for-reason-contract.test.ts +32 -10
- package/tests/delivery-conflict-markers.test.ts +348 -0
- package/tests/design-canvas-all-sizes.test.ts +631 -0
- package/tests/design-canvas-allowlist.test.ts +32 -0
- package/tests/design-canvas-assets.test.ts +11 -695
- package/tests/design-canvas-boards.test.ts +77 -0
- package/tests/design-canvas-checks.test.ts +655 -0
- package/tests/design-canvas-compare.test.ts +79 -0
- package/tests/design-canvas-events.test.ts +59 -0
- package/tests/design-canvas-export.test.ts +1168 -0
- package/tests/design-canvas-focus.test.ts +113 -0
- package/tests/design-canvas-handoffs.test.ts +59 -0
- package/tests/design-canvas-i18n-review.test.ts +513 -0
- package/tests/design-canvas-i18n-views.test.ts +259 -0
- package/tests/design-canvas-i18n.test.ts +526 -0
- package/tests/design-canvas-inspector.test.ts +937 -0
- package/tests/design-canvas-layout.test.ts +1222 -0
- package/tests/design-canvas-minimap.test.ts +413 -0
- package/tests/design-canvas-modules.test.ts +90 -0
- package/tests/design-canvas-parts.test.ts +721 -0
- package/tests/design-canvas-rail.test.ts +799 -0
- package/tests/design-canvas-server.test.ts +855 -17
- package/tests/design-canvas-sizes.test.ts +548 -0
- package/tests/design-canvas-store.test.ts +180 -0
- package/tests/design-canvas-tokens.test.ts +965 -0
- package/tests/design-canvas-view.test.ts +299 -0
- package/tests/design-comments.test.ts +201 -1
- package/tests/design-handoffs.test.ts +20 -0
- package/tests/design-layout.test.ts +100 -0
- package/tests/design-parts.test.ts +260 -0
- package/tests/design-system-tokens.test.ts +215 -0
- package/tests/desktop-rpc-agents.test.ts +893 -0
- package/tests/desktop-rpc-config.test.ts +1452 -0
- package/tests/desktop-rpc-design.test.ts +662 -0
- package/tests/desktop-rpc-jobs.test.ts +796 -0
- package/tests/desktop-rpc-permissions.test.ts +311 -0
- package/tests/desktop-rpc-profiles.test.ts +140 -0
- package/tests/desktop-rpc-safety.test.ts +119 -0
- package/tests/desktop-rpc-usage.test.ts +697 -0
- package/tests/desktop-rpc.test.ts +252 -0
- package/tests/destructive-command-guard.test.ts +52 -0
- package/tests/devbinary/pi-host-relay.devtest.ts +149 -80
- package/tests/devbinary/review-session-consent.devtest.ts +84 -0
- package/tests/download-progress.test.ts +71 -0
- package/tests/engram-safety.test.ts +111 -0
- package/tests/execution-surface-guard.test.ts +55 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.captured.json +92 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.provenance.md +3 -0
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +26 -31
- package/tests/fixtures/proxy-tls/proxy.crt +19 -0
- package/tests/fixtures/proxy-tls/proxy.key +28 -0
- package/tests/fixtures/refusal-identity.probe.mjs +139 -0
- package/tests/fixtures/session-profile-v1/gentle-ai-reviewer.ts +89 -0
- package/tests/fixtures/session-profile-v1/replay.ts +53 -6
- package/tests/full-delegation-closure.test.ts +160 -0
- package/tests/full-delegation-notices.test.ts +76 -0
- package/tests/generic-agent-tools.test.ts +3 -3
- package/tests/gentle-agent-status.test.ts +74 -0
- package/tests/gentle-agents-child-jobs.test.ts +237 -0
- package/tests/gentle-agents.test.ts +1403 -20
- package/tests/gentle-ai-binary.test.ts +3 -1
- package/tests/gentle-ai-child-guards.test.ts +1 -0
- package/tests/gentle-ai-elapsed-store.test.ts +19 -0
- package/tests/gentle-ai-exploration-budget.test.ts +18 -2
- package/tests/gentle-ai-installer.test.ts +135 -51
- package/tests/gentle-ai-proxy.test.ts +434 -0
- package/tests/gentle-ai-renderer.test.ts +36 -2
- package/tests/gentle-ai.test.ts +233 -43
- package/tests/gentle-design.test.ts +386 -1
- package/tests/gentle-herdr-activity.test.ts +9 -6
- package/tests/gentle-shell-bin.test.ts +123 -0
- package/tests/gentle-shell-bundled.test.ts +293 -31
- package/tests/gentle-shell-launcher.test.ts +78 -11
- package/tests/gentle-shell.test.ts +1017 -146
- package/tests/gentle-todo.test.ts +51 -11
- package/tests/gentle-tps.test.ts +123 -0
- package/tests/gentle-ui-design-skill.test.ts +59 -0
- package/tests/herdr-busy.test.ts +59 -0
- package/tests/herdr-task-summary-policy.test.ts +8 -4
- package/tests/hidden-tools.test.ts +188 -0
- package/tests/image-disk-cache.test.ts +163 -0
- package/tests/independent-recovery-delivery.test.ts +97 -0
- package/tests/inprocess-reviewer.test.ts +249 -4
- package/tests/install-wizard.test.ts +27 -1
- package/tests/installer-downloads.test.ts +30 -1
- package/tests/installer-posix-bootstrap.test.ts +115 -14
- package/tests/installer-preflight.test.ts +54 -5
- package/tests/installer-probes.test.ts +146 -0
- package/tests/installer-runner.test.ts +79 -44
- package/tests/installer-server.test.ts +215 -13
- package/tests/installer-windows-bootstrap.test.ts +19 -1
- package/tests/jobs-view.test.ts +260 -6
- package/tests/judgment-day-severity-admission.test.ts +46 -0
- package/tests/lazy-module-contradictions-contract.test.ts +158 -0
- package/tests/maintainer/desktop-rpc.maintest.ts +632 -0
- package/tests/maintainer/pi-update-source.maintest.ts +48 -18
- package/tests/modal-mouse-boundaries.test.ts +136 -0
- package/tests/model-fallback-policy.test.ts +26 -7
- package/tests/model-routing-authority.test.ts +178 -2
- package/tests/nan-provider-runtime.test.ts +17 -3
- package/tests/nan-provider.test.ts +111 -56
- package/tests/native-choice-list.test.ts +77 -2
- package/tests/native-review-capability-contract.test.ts +17 -1
- package/tests/native-review-cli-nonblocking-findings.test.ts +165 -0
- package/tests/native-review-cli.test.ts +269 -1
- package/tests/native-review-parity.test.ts +24 -5
- package/tests/native-review-refusal-identity.test.ts +25 -0
- package/tests/no-self-pause-contract.test.ts +13 -2
- package/tests/odd-integration.test.ts +11 -3
- package/tests/odd-routing-canonical-ratchet.test.ts +3 -3
- package/tests/odd-routing-contract.test.ts +80 -28
- package/tests/orchestrator-budget.test.ts +35 -5
- package/tests/orchestrator-consultation-sdk.test.ts +32 -6
- package/tests/orchestrator-delegation-mode.test.ts +154 -0
- package/tests/orchestrator-discovery.test.ts +28 -0
- package/tests/orchestrator-mode-policy.test.ts +175 -0
- package/tests/orchestrator-prompt-budget.test.ts +13 -2
- package/tests/orchestrator-prompt-diet-contract.test.ts +221 -0
- package/tests/orchestrator-rdd-ownership.test.ts +4 -3
- package/tests/orchestrator-work-search.test.ts +4 -2
- package/tests/package-files.test.ts +25 -1
- package/tests/package-manifest.test.ts +16 -13
- package/tests/parallel-reason-contract.test.ts +6 -3
- package/tests/permission-allowlist.test.ts +372 -0
- package/tests/persona-neutral-voseo.test.ts +4 -4
- package/tests/persona-reply-language.test.ts +1 -1
- package/tests/persona-single-channel.test.ts +13 -5
- package/tests/pi-update-launcher.test.ts +25 -7
- package/tests/pi-update-source.test.ts +113 -6
- package/tests/pi-update.test.ts +294 -19
- package/tests/pnpm-workspace-config.test.ts +58 -0
- package/tests/pnpm-workspace-policy.test.ts +47 -0
- package/tests/primary-context-files.test.ts +233 -0
- package/tests/primary-context-three-files.test.ts +174 -0
- package/tests/primary-session-prompt.test.ts +13 -0
- package/tests/profile-pin.test.ts +29 -2
- package/tests/profile-tier-footer.test.ts +5 -0
- package/tests/profiles-panel-delegation-mode.test.ts +422 -0
- package/tests/provider-defect-handoff.test.ts +9 -2
- package/tests/questionnaire-view.test.ts +115 -0
- package/tests/quiet-bash-runtime.test.ts +1 -1
- package/tests/quiet-tool-rendering.test.ts +48 -0
- package/tests/rdd-aware-verification-contract.test.ts +17 -12
- package/tests/rdd-customize.test.ts +287 -0
- package/tests/rdd-mode-cache.test.ts +450 -0
- package/tests/rdd-mode-control.test.ts +407 -0
- package/tests/rdd-mode-scope-regression.test.ts +137 -0
- package/tests/rdd-off-independent-regression.test.ts +69 -0
- package/tests/rdd-status-line.test.ts +112 -1
- package/tests/render-cache-performance.test.ts +171 -2
- package/tests/reply-language-anchor-placement.test.ts +184 -0
- package/tests/reply-language-anchor.test.ts +189 -0
- package/tests/request-context-append-only.test.ts +218 -0
- package/tests/request-context-placement.test.ts +148 -0
- package/tests/review-agent-end-preflight.test.ts +80 -2
- package/tests/review-blocker.test.ts +193 -0
- package/tests/review-candidate-owner-retry.test.ts +1 -1
- package/tests/review-candidate-symlink-scan.test.ts +157 -0
- package/tests/review-candidate-view.test.ts +66 -1
- package/tests/review-candidate-windows-boundary.test.ts +131 -0
- package/tests/review-candidate-windows-probe.test.ts +63 -0
- package/tests/review-committed-restart-ack.test.ts +129 -0
- package/tests/review-continuation-registry.test.ts +107 -0
- package/tests/review-contract-prompt.test.ts +1 -1
- package/tests/review-controller-native-routing.test.ts +261 -5
- package/tests/review-controller-workspace-root.test.ts +230 -3
- package/tests/review-controller.test.ts +98 -12
- package/tests/review-coordinator-correction-gate.test.ts +105 -0
- package/tests/review-coordinator-findings.test.ts +206 -0
- package/tests/review-coordinator-nonblocking-scope.test.ts +169 -0
- package/tests/review-coordinator-runtime.test.ts +117 -0
- package/tests/review-coordinator.test.ts +462 -0
- package/tests/review-delivery-preflight.test.ts +462 -0
- package/tests/review-due-compaction.test.ts +31 -0
- package/tests/review-due-public-boundary.test.ts +26 -0
- package/tests/review-failure-facts.test.ts +87 -0
- package/tests/review-host-relay-routing.test.ts +258 -4
- package/tests/review-host-relay.test.ts +39 -0
- package/tests/review-integration-nonblocking-findings.test.ts +108 -0
- package/tests/review-integration-v2.test.ts +46 -3
- package/tests/review-json-arguments.test.ts +105 -11
- package/tests/review-last-event-closure.test.ts +68 -0
- package/tests/review-ledger-contract.test.ts +19 -40
- package/tests/review-loadout-rdd-off-sdk.test.ts +95 -32
- package/tests/review-one-call-findings.test.ts +131 -0
- package/tests/review-one-call-followups.test.ts +308 -0
- package/tests/review-one-call-reviewer-requests.test.ts +207 -0
- package/tests/review-one-call.test.ts +452 -0
- package/tests/review-owner-identity.test.ts +60 -24
- package/tests/review-relay-phase-timing.test.ts +128 -0
- package/tests/review-relay-transport-agent.test.ts +39 -2
- package/tests/review-reviewer-evidence.test.ts +223 -0
- package/tests/review-risk-assessment.test.ts +126 -8
- package/tests/review-run-statement-guidance-independent.test.ts +54 -0
- package/tests/review-session-standing-permission-controller.test.ts +53 -3
- package/tests/review-start-context.test.ts +19 -0
- package/tests/review-tool-prose-budget.test.ts +122 -0
- package/tests/reviewer-stream.test.ts +149 -0
- package/tests/run-test-suite.test.ts +122 -1
- package/tests/runtime-harness.mjs +4 -1
- package/tests/sensitive-path-tools.test.ts +181 -5
- package/tests/session-profile-append-controller-pi.test.ts +60 -31
- package/tests/session-profile-binding.test.ts +19 -1
- package/tests/session-profile-disk-reader-pi.test.ts +58 -16
- package/tests/session-profile-extension.test.ts +2 -2
- package/tests/session-profile-v1-compat.test.ts +35 -1
- package/tests/shell-bar.test.ts +186 -42
- package/tests/shell-panel.test.ts +50 -22
- package/tests/shell-prompt.test.ts +17 -0
- package/tests/shell-sidebar-fullscreen.test.ts +5 -5
- package/tests/shell-sidebar-layout.test.ts +294 -23
- package/tests/shell-sidebar-scroll-benchmark.test.ts +1 -1
- package/tests/shell-surface-transparent.test.ts +89 -0
- package/tests/shell-todo.test.ts +12 -0
- package/tests/shell-usage.test.ts +59 -10
- package/tests/skill-contradictions-contract.test.ts +122 -0
- package/tests/skill-registry-watcher.test.ts +216 -2
- package/tests/skill-registry.test.ts +1461 -5
- package/tests/startup-banner.test.ts +152 -1
- package/tests/startup-home-repo.test.ts +2 -0
- package/tests/support/design-canvas-dom.ts +369 -0
- package/tests/support/review-coordinator-runtime.ts +264 -0
- package/tests/task-size-routing-contract.test.ts +45 -12
- package/tests/test-strength-contract.test.ts +2 -1
- package/tests/todo-request-append-only.test.ts +214 -0
- package/tests/tool-batching-contract.test.ts +3 -1
- package/tests/update-agent-body-history.test.ts +138 -0
- package/tests/verification-tiers-contract.test.ts +229 -0
- package/tests/verifier-admission.test.ts +49 -0
- package/tests/verifier-preparation.test.ts +229 -0
- package/tests/verify-agent-contract.test.ts +20 -2
- package/tests/verify-first-launch-contract.test.ts +162 -11
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/visual-customization-policy.test.ts +39 -6
- package/tests/visual-customize-view.test.ts +573 -9
- package/tests/visual-layout-preview.test.ts +15 -1
- package/tests/visual-profiles.test.ts +11 -0
- package/tests/voice-worker.test.ts +73 -2
- package/tests/windows-session-transport.test.ts +126 -0
- package/tests/work-continuity-contract.test.ts +77 -6
- package/tests/writer-admission-messages.test.ts +232 -0
- package/tests/writer-batch-admission.test.ts +66 -0
- package/tests/writer-edit-surface-scope.test.ts +52 -20
- package/tests/writer-feature-document-admission.test.ts +276 -0
- package/tests/yolo-customize.test.ts +27 -4
- package/tests/yolo-mode.test.ts +62 -18
- package/tests/yolo-session-policy.test.ts +270 -1
- package/skills/_shared/review-ledger-contract.md +0 -106
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/README.md +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/lens.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/refuter.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/targeted-validator.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/lens.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/refuter.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/targeted-validator.json +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Offline, single-root Git preparation. Never runs probes or removes failed scratch.
|
|
3
|
+
import { execFileSync } from "node:child_process";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import { existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, realpathSync, statfsSync, writeFileSync } from "node:fs";
|
|
6
|
+
import { tmpdir } from "node:os";
|
|
7
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
8
|
+
|
|
9
|
+
const started = performance.now(), MAX_BYTES = 256 * 1024 * 1024, MAX_FILES = 20_000, MAX_MS = 60_000;
|
|
10
|
+
let plan, scratch, payloadBytes = 0;
|
|
11
|
+
const fail = reason => { throw new Error(reason); };
|
|
12
|
+
const hash = bytes => createHash("sha256").update(bytes).digest("hex");
|
|
13
|
+
const inside = (root, path) => { const rel = relative(root, path); return rel !== "" && !isAbsolute(rel) && rel !== ".." && !rel.startsWith(`..${sep}`); };
|
|
14
|
+
const remaining = () => { const ms = MAX_MS - (performance.now() - started); if (ms <= 0) fail("preparation deadline exceeded (60000ms)"); return Math.ceil(ms); };
|
|
15
|
+
const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.toUpperCase().startsWith("GIT_")));
|
|
16
|
+
Object.assign(env, { GIT_CONFIG_GLOBAL: process.platform === "win32" ? "NUL" : "/dev/null", GIT_CONFIG_NOSYSTEM: "1", GIT_OPTIONAL_LOCKS: "0", GIT_TERMINAL_PROMPT: "0", GIT_ALLOW_PROTOCOL: "file", GIT_NO_LAZY_FETCH: "1", GIT_NO_REPLACE_OBJECTS: "1" });
|
|
17
|
+
const git = (cwd, args, input, encoding = "utf8", maxBuffer = 16 * 1024 * 1024) => execFileSync("git", ["-c", "core.hooksPath=", "-c", "core.fsmonitor=false", "-c", "core.autocrlf=false", ...args], {
|
|
18
|
+
cwd, env, input, encoding, timeout: remaining(), maxBuffer, stdio: ["pipe", "pipe", "pipe"], windowsHide: true,
|
|
19
|
+
});
|
|
20
|
+
const names = text => text.split("\0").filter(Boolean);
|
|
21
|
+
const statAt = path => { try { return lstatSync(path); } catch (error) { if (error.code === "ENOENT") return undefined; throw error; } };
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
const [sourceArg, scratchArg, planArg, ...extra] = process.argv.slice(2);
|
|
25
|
+
plan = JSON.parse(planArg);
|
|
26
|
+
if (extra.length || !plan || !Array.isArray(plan.include) || !Array.isArray(plan.checks) || !plan.checks.length ||
|
|
27
|
+
!plan.checks.every(command => typeof command === "string" && command.trim()) ||
|
|
28
|
+
(plan.runtimeArtifacts !== undefined && !Array.isArray(plan.runtimeArtifacts)) ||
|
|
29
|
+
Object.keys(plan).some(key => !["include", "checks", "baseline", "runtimeArtifacts"].includes(key))) fail("expected source, fresh scratch, and {include, checks, baseline?, runtimeArtifacts?} plan");
|
|
30
|
+
const source = realpathSync(sourceArg);
|
|
31
|
+
scratch = realpathSync(scratchArg);
|
|
32
|
+
const scratchPath = scratchArg.replace(process.platform === "win32" ? /[\\/]+$/ : /\/+$/, "");
|
|
33
|
+
const scratchStat = lstatSync(scratchPath);
|
|
34
|
+
if (scratchStat.isSymbolicLink() || !scratchStat.isDirectory() || !inside(realpathSync(tmpdir()), scratch) || inside(source, scratch) || inside(scratch, source) || source === scratch || readdirSync(scratch).length) fail("scratch must be an empty real directory under system temp, outside source");
|
|
35
|
+
if (!lstatSync(join(source, ".git")).isDirectory() || lstatSync(join(source, ".git")).isSymbolicLink() ||
|
|
36
|
+
realpathSync(git(source, ["rev-parse", "--show-toplevel"]).trim()) !== source ||
|
|
37
|
+
resolve(source, git(source, ["rev-parse", "--git-common-dir"]).trim()) !== join(source, ".git")) fail("unsupported repository: ordinary single-root Git directory required");
|
|
38
|
+
const head = git(source, ["rev-parse", "--verify", "HEAD^{commit}"]).trim();
|
|
39
|
+
const config = git(source, ["config", "--local", "--list"]);
|
|
40
|
+
if (existsSync(join(source, ".git", "shallow")) || existsSync(join(source, ".git", "objects", "info", "alternates")) ||
|
|
41
|
+
/^(core\.sparsecheckout=true|extensions\.partialclone=|remote\..*\.promisor=true)/mi.test(config) || git(source, ["for-each-ref", "--format=%(refname)", "refs/replace"]).trim()) fail("unsupported shallow, shared, sparse, partial or replaced Git history");
|
|
42
|
+
if (plan.baseline !== undefined && (typeof plan.baseline !== "string" || !/^[a-f0-9]{40,64}$/.test(plan.baseline))) fail("baseline must be a full commit object ID");
|
|
43
|
+
const indexPath = join(source, ".git", "index"), indexHash = hash(readFileSync(indexPath));
|
|
44
|
+
const staged = git(source, ["ls-files", "--stage", "-z"]);
|
|
45
|
+
if (names(staged).some(entry => !/^100(644|755) [a-f0-9]+ 0\t/.test(entry))) fail("unsupported index: links, submodules or conflicts");
|
|
46
|
+
if (names(git(source, ["ls-files", "-v", "-z"])).some(entry => !entry.startsWith("H "))) fail("unsupported index flags: sparse or assume-unchanged entries");
|
|
47
|
+
const tracked = names(git(source, ["ls-files", "-z"]));
|
|
48
|
+
const files = new Map(), missing = [], excludedRuntimeArtifacts = [];
|
|
49
|
+
function resolveInput(path) {
|
|
50
|
+
remaining();
|
|
51
|
+
if (typeof path !== "string" || !path || path.includes("\\") || path.split("/").some(part => !part || part === "." || part === ".." || part.toLowerCase() === ".git") || isAbsolute(path)) fail("unsupported input path: use literal repository-relative paths outside .git");
|
|
52
|
+
const absolute = join(source, path);
|
|
53
|
+
if (!inside(source, absolute)) fail("unsupported input outside repository");
|
|
54
|
+
// Check each ancestor before following directories, including dependency junctions.
|
|
55
|
+
for (let current = absolute; current !== source; current = dirname(current)) {
|
|
56
|
+
if (statAt(current)?.isSymbolicLink()) fail("unsupported linked input; provide an independent regular-file dependency payload");
|
|
57
|
+
}
|
|
58
|
+
return absolute;
|
|
59
|
+
}
|
|
60
|
+
function collect(path, required) {
|
|
61
|
+
const absolute = resolveInput(path), stat = statAt(absolute);
|
|
62
|
+
if (!stat) { if (required) fail(`required input missing: ${path}`); missing.push(path); return; }
|
|
63
|
+
if (stat.isDirectory()) {
|
|
64
|
+
if (!required) fail("unsupported tracked file replaced by directory; no implicit untracked expansion");
|
|
65
|
+
for (const entry of readdirSync(absolute)) collect(`${path}/${entry}`, true);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (!stat.isFile()) fail(`unsupported required runtime artifact: ${path}`);
|
|
69
|
+
if (files.has(path)) return;
|
|
70
|
+
payloadBytes += stat.size;
|
|
71
|
+
if (files.size >= MAX_FILES || payloadBytes > MAX_BYTES) fail("payload exceeds preparation limit (20000 files / 256MiB); narrow the complete required payload");
|
|
72
|
+
files.set(path, { absolute, mode: stat.mode, digest: hash(readFileSync(absolute)) });
|
|
73
|
+
}
|
|
74
|
+
for (const path of tracked) collect(path, false);
|
|
75
|
+
for (const path of plan.include) collect(path, true);
|
|
76
|
+
for (const path of plan.runtimeArtifacts ?? []) {
|
|
77
|
+
const stat = statAt(resolveInput(path));
|
|
78
|
+
if (!stat || stat.isFile() || stat.isDirectory()) fail(`runtime artifact must name an existing non-regular input: ${path}`);
|
|
79
|
+
excludedRuntimeArtifacts.push(path);
|
|
80
|
+
}
|
|
81
|
+
const capacity = statfsSync(scratch);
|
|
82
|
+
if (Number(capacity.bavail) * Number(capacity.bsize) < payloadBytes || (Number(capacity.ffree) > 0 && Number(capacity.ffree) < files.size)) fail("insufficient scratch capacity for required regular-file payload");
|
|
83
|
+
const work = join(scratch, "work");
|
|
84
|
+
// --no-local transfers reachable Git objects instead of sharing objects or copying config/hooks.
|
|
85
|
+
git(scratch, ["clone", "--no-local", "--no-checkout", "--template=", "--", source, work]);
|
|
86
|
+
if (git(work, ["rev-parse", "HEAD"]).trim() !== head) fail("source HEAD changed during preparation");
|
|
87
|
+
if (plan.baseline) git(work, ["cat-file", "-e", `${plan.baseline}^{commit}`]);
|
|
88
|
+
git(work, ["read-tree", head]);
|
|
89
|
+
const patch = git(source, ["diff", "--cached", "--binary", "--full-index", "--no-ext-diff", "--no-textconv", "--src-prefix=a/", "--dst-prefix=b/", head, "--"], undefined, null, 2 * MAX_BYTES);
|
|
90
|
+
if (patch.length) git(work, ["apply", "--cached", "--binary", "-"], patch);
|
|
91
|
+
for (const [path, file] of files) {
|
|
92
|
+
remaining();
|
|
93
|
+
const bytes = readFileSync(file.absolute);
|
|
94
|
+
if (hash(bytes) !== file.digest) fail("source input changed during preparation");
|
|
95
|
+
mkdirSync(dirname(join(work, path)), { recursive: true });
|
|
96
|
+
writeFileSync(join(work, path), bytes, { mode: file.mode });
|
|
97
|
+
}
|
|
98
|
+
if (git(work, ["ls-files", "--stage", "-z"]) !== staged || hash(readFileSync(indexPath)) !== indexHash || git(source, ["rev-parse", "HEAD"]).trim() !== head ||
|
|
99
|
+
[...files.values()].some(file => hash(readFileSync(file.absolute)) !== file.digest) || missing.some(path => statAt(join(source, path)))) fail("source/index changed or copied index differs; no probes permitted");
|
|
100
|
+
remaining();
|
|
101
|
+
console.log(JSON.stringify({ status: "ready", work, head, baseline: plan.baseline ?? head, fileCount: files.size, payloadBytes,
|
|
102
|
+
durationMs: performance.now() - started, excludedRuntimeArtifacts, probesRun: 0 }));
|
|
103
|
+
} catch (error) {
|
|
104
|
+
console.log(JSON.stringify({ status: "setup-failed", scratch, reason: error instanceof Error ? error.message : String(error),
|
|
105
|
+
probesRun: 0, unrunChecks: Array.isArray(plan?.checks) ? plan.checks : [], payloadBytes, durationMs: performance.now() - started }));
|
|
106
|
+
process.exitCode = 1;
|
|
107
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Shared --pi-root contract. The comparison driver and the measurement worker
|
|
2
|
+
// must refuse a bad root with the same curated message, and both must do it
|
|
3
|
+
// before reading, hashing or importing anything from the host.
|
|
4
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
5
|
+
import { resolve } from "node:path";
|
|
6
|
+
|
|
7
|
+
export const SUPPORTED_PI_VERSION = "1.2.0";
|
|
8
|
+
export const PI_ROOT_LAYOUT = "dist/ plus node_modules/@earendil-works/{pi-tui,pi-ai,pi-agent-core} and node_modules/jiti";
|
|
9
|
+
export const HOST_PACKAGE = "@earendil-works/pi-coding-agent";
|
|
10
|
+
export const TUI_PACKAGE = "@earendil-works/pi-tui";
|
|
11
|
+
export const HOST_ENTRY = "core/extensions/jiti-loader.js";
|
|
12
|
+
export const HOST_DEPENDENCIES = [
|
|
13
|
+
"node_modules/@earendil-works/pi-tui",
|
|
14
|
+
"node_modules/@earendil-works/pi-ai",
|
|
15
|
+
"node_modules/@earendil-works/pi-agent-core",
|
|
16
|
+
"node_modules/jiti",
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
function layoutError(piRoot, detail) {
|
|
20
|
+
return new Error(`--pi-root ${piRoot} is not a Pi install root: ${detail} It must carry ${PI_ROOT_LAYOUT}.`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function hostPackage(piRoot, relative, expectedName) {
|
|
24
|
+
const path = resolve(piRoot, relative);
|
|
25
|
+
let manifest;
|
|
26
|
+
try {
|
|
27
|
+
manifest = JSON.parse(readFileSync(path, "utf8"));
|
|
28
|
+
} catch {
|
|
29
|
+
throw layoutError(piRoot, `${path} is unreadable.`);
|
|
30
|
+
}
|
|
31
|
+
if (manifest === null || typeof manifest !== "object" || typeof manifest.name !== "string" || typeof manifest.version !== "string") {
|
|
32
|
+
throw layoutError(piRoot, `${path} declares no package name and version.`);
|
|
33
|
+
}
|
|
34
|
+
if (manifest.name !== expectedName) {
|
|
35
|
+
throw layoutError(piRoot, `${path} is ${manifest.name}@${manifest.version}, expected ${expectedName}.`);
|
|
36
|
+
}
|
|
37
|
+
return { name: manifest.name, version: manifest.version };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function directoryAt(path) {
|
|
41
|
+
try {
|
|
42
|
+
return statSync(path).isDirectory();
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (error?.code === "ENOENT" || error?.code === "ENOTDIR") return false;
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function requireHostLayout(piRoot) {
|
|
50
|
+
const dist = resolve(piRoot, "dist");
|
|
51
|
+
if (!directoryAt(dist)) throw layoutError(piRoot, `${dist} is not a directory.`);
|
|
52
|
+
const entry = resolve(dist, HOST_ENTRY);
|
|
53
|
+
if (!existsSync(entry)) throw layoutError(piRoot, `${entry} is missing.`);
|
|
54
|
+
for (const relative of HOST_DEPENDENCIES) {
|
|
55
|
+
const path = resolve(piRoot, relative);
|
|
56
|
+
if (!directoryAt(path)) throw layoutError(piRoot, `${path} is missing or not a directory.`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Validates the install root and returns the two audited manifests. */
|
|
61
|
+
export function validatePiRoot(piRoot) {
|
|
62
|
+
const host = hostPackage(piRoot, "package.json", HOST_PACKAGE);
|
|
63
|
+
const hostTui = hostPackage(piRoot, "node_modules/@earendil-works/pi-tui/package.json", TUI_PACKAGE);
|
|
64
|
+
if (host.version !== SUPPORTED_PI_VERSION) {
|
|
65
|
+
throw new Error(`--pi-root ${piRoot} is ${host.name}@${host.version}, but the private frame API is audited only on ${SUPPORTED_PI_VERSION}. Point --pi-root at a Pi ${SUPPORTED_PI_VERSION} install (${PI_ROOT_LAYOUT}).`);
|
|
66
|
+
}
|
|
67
|
+
if (hostTui.version !== host.version) {
|
|
68
|
+
throw new Error(`--pi-root ${piRoot} mixes ${host.name}@${host.version} with ${hostTui.name}@${hostTui.version}; a mixed host cannot be measured. Point --pi-root at a Pi ${SUPPORTED_PI_VERSION} install (${PI_ROOT_LAYOUT}).`);
|
|
69
|
+
}
|
|
70
|
+
requireHostLayout(piRoot);
|
|
71
|
+
return { host, hostTui };
|
|
72
|
+
}
|
|
@@ -4,12 +4,12 @@ import { readFileSync } from "node:fs";
|
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { performance } from "node:perf_hooks";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
|
+
import { validatePiRoot } from "./render-cache-host.mjs";
|
|
7
8
|
|
|
8
9
|
const config = JSON.parse(process.argv[2]);
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
assert.equal(tuiVersion, piVersion, "host TUI package must match");
|
|
10
|
+
const { host, hostTui } = validatePiRoot(config.piRoot);
|
|
11
|
+
const piVersion = host.version;
|
|
12
|
+
const tuiVersion = hostTui.version;
|
|
13
13
|
const hostImport = (path) => import(pathToFileURL(resolve(config.piRoot, "dist", path)).href);
|
|
14
14
|
const { createJiti } = await hostImport("core/extensions/jiti-loader.js");
|
|
15
15
|
const { VIRTUAL_MODULES } = await hostImport("core/extensions/virtual-modules.js");
|
|
@@ -54,6 +54,7 @@ function fixture(spec, live = false) {
|
|
|
54
54
|
manager.getEntries = () => { counts.entries++; return getEntries(); };
|
|
55
55
|
const model = { id: "synthetic-model", provider: "synthetic", reasoning: true, contextWindow: 200000 };
|
|
56
56
|
const ctx = { model, sessionManager: manager, modelRegistry: { isUsingOAuth: () => false },
|
|
57
|
+
ui: { theme: { name: "performance" }, getAllThemes: () => [] },
|
|
57
58
|
getContextUsage() { counts.projections++; return pi.AgentSession.prototype.getContextUsage.call({ sessionManager: manager, _limitsModel: () => model }); } };
|
|
58
59
|
const api = { getThinkingLevel: () => "high" };
|
|
59
60
|
const footerData = { getGitBranch: () => "performance", getExtensionStatuses: () => new Map(), onBranchChange: () => () => {} };
|
|
@@ -6,6 +6,7 @@ import { closeSync, ftruncateSync, openSync, readFileSync, readdirSync, realpath
|
|
|
6
6
|
import { cpus, loadavg } from "node:os";
|
|
7
7
|
import { basename, dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { validatePiRoot } from "./render-cache-host.mjs";
|
|
9
10
|
|
|
10
11
|
export function percentile(values, fraction) {
|
|
11
12
|
if (!values.length) return null;
|
|
@@ -60,6 +61,9 @@ async function main() {
|
|
|
60
61
|
const split = arg.indexOf("="); return [arg.slice(2, split), arg.slice(split + 1)];
|
|
61
62
|
}));
|
|
62
63
|
for (const key of ["baseline-root", "candidate-root", "pi-root", "output"]) assert.ok(options[key], `--${key} is required`);
|
|
64
|
+
// Refuse a bad host before hashing either worktree: the driver used to reach
|
|
65
|
+
// a bare ENOENT/ENOTDIR from hostFingerprint instead of the layout message.
|
|
66
|
+
validatePiRoot(resolve(options["pi-root"]));
|
|
63
67
|
const roots = { before: resolve(options["baseline-root"]), after: resolve(options["candidate-root"]) };
|
|
64
68
|
const initial = Object.fromEntries(Object.entries(roots).map(([key, root]) => [key, fingerprint(root)]));
|
|
65
69
|
assert.equal(initial.before.head, initial.after.head, "compare worktrees based on the same commit");
|
|
@@ -76,7 +80,8 @@ async function main() {
|
|
|
76
80
|
const report = { schema: "gentle-shell.render-performance/v1", started: new Date().toISOString(), node: process.version,
|
|
77
81
|
cpu: cpus()[0]?.model, loadAtStart: loadavg(), sources: initial, config, runs: [], comparisons: [] };
|
|
78
82
|
const worker = fileURLToPath(new URL("render-cache-performance-worker.mjs", import.meta.url));
|
|
79
|
-
const
|
|
83
|
+
const hostHost = fileURLToPath(new URL("render-cache-host.mjs", import.meta.url));
|
|
84
|
+
const instrumentationHash = () => createHash("sha256").update(readFileSync(fileURLToPath(import.meta.url))).update(readFileSync(worker)).update(readFileSync(hostHost)).digest("hex");
|
|
80
85
|
report.instrumentationSha256 = instrumentationHash();
|
|
81
86
|
report.host = hostFingerprint(config.piRoot);
|
|
82
87
|
const fd = outputDescriptor(options.output, [...Object.values(roots), config.piRoot, ...report.host.map((entry) => entry.root), resolve(dirname(fileURLToPath(import.meta.url)), "..")]);
|
|
@@ -22,35 +22,47 @@ export const DEFAULT_STAGES = Object.freeze([
|
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
24
|
export async function runStage(stage) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const configHome = stage.name === "unit-tests" ? mkdtempSync(join(tmpdir(), "gentle-pi-unit-config-")) : undefined;
|
|
28
|
-
const env = configHome ? Object.fromEntries(Object.entries(process.env).filter(([key]) => {
|
|
29
|
-
const normalizedKey = key.toUpperCase();
|
|
30
|
-
return !normalizedKey.startsWith("GIT_") && !normalizedKey.startsWith("GENTLE_PI_AGENTS_") && normalizedKey !== "GENTLE_PI_CONFIG_HOME";
|
|
31
|
-
})) : process.env;
|
|
32
|
-
if (configHome) env.GENTLE_PI_CONFIG_HOME = configHome;
|
|
33
|
-
// Unit fixtures also get a private temp dir, removed with the stage, so a
|
|
34
|
-
// fixture that leaves a subagent unfinished cannot leave its TMPDIR behind.
|
|
35
|
-
const unitTmp = configHome ? mkdtempSync(join(tmpdir(), "gentle-pi-unit-tmp-")) : undefined;
|
|
36
|
-
if (unitTmp) env.TMPDIR = unitTmp;
|
|
37
|
-
// Stripping GIT_* environment still leaves Git's config files, which it reads
|
|
38
|
-
// by path: a host-level global ignore (e.g. ".agents/" in ~/.gitconfig or the
|
|
39
|
-
// XDG ignore file) made `git add -A` inside fixtures drop an untracked
|
|
40
|
-
// symlink target, so the candidate view materialized a dangling link and the
|
|
41
|
-
// suite saw an ENOENT (gentle-shell#2552). Pin every remaining config source
|
|
42
|
-
// to an empty file for the stage; fixtures that need identity pass -c flags.
|
|
43
|
-
if (configHome) {
|
|
44
|
-
const emptyGitConfig = join(configHome, "empty.gitconfig");
|
|
45
|
-
writeFileSync(emptyGitConfig, "");
|
|
46
|
-
env.GIT_CONFIG_GLOBAL = emptyGitConfig;
|
|
47
|
-
env.GIT_CONFIG_NOSYSTEM = "1";
|
|
48
|
-
// An empty GIT_CONFIG_GLOBAL does not disable Git's default ignore file:
|
|
49
|
-
// it still reads $XDG_CONFIG_HOME/git/ignore, so a host ignore (e.g.
|
|
50
|
-
// ".agents/") would keep dropping fixture files from `git add -A`.
|
|
51
|
-
env.XDG_CONFIG_HOME = configHome;
|
|
52
|
-
}
|
|
25
|
+
let configHome;
|
|
26
|
+
let unitTmp;
|
|
53
27
|
try {
|
|
28
|
+
// Unit fixtures must not inherit the terminal's Git overrides, child-session
|
|
29
|
+
// identity, launcher marker, or guardrails. Later stages retain their env.
|
|
30
|
+
configHome = stage.name === "unit-tests" ? mkdtempSync(join(tmpdir(), "gentle-pi-unit-config-")) : undefined;
|
|
31
|
+
const env = configHome ? Object.fromEntries(Object.entries(process.env).filter(([key]) => {
|
|
32
|
+
const normalizedKey = key.toUpperCase();
|
|
33
|
+
return !normalizedKey.startsWith("GIT_") && !normalizedKey.startsWith("GENTLE_PI_AGENTS_") &&
|
|
34
|
+
normalizedKey !== "GENTLE_PI_CONFIG_HOME" && normalizedKey !== "GENTLE_SHELL_CONFIG_HOME";
|
|
35
|
+
})) : process.env;
|
|
36
|
+
if (configHome) env.GENTLE_PI_CONFIG_HOME = configHome;
|
|
37
|
+
// Unix sockets have short path limits; an inherited TMPDIR can already be
|
|
38
|
+
// too long. Use the short system temp root on POSIX and a private directory
|
|
39
|
+
// on every platform, removed even when stage setup or execution fails.
|
|
40
|
+
unitTmp = configHome ? mkdtempSync(join(process.platform === "win32" ? tmpdir() : "/tmp", "gentle-pi-unit-tmp-")) : undefined;
|
|
41
|
+
if (unitTmp) {
|
|
42
|
+
env.TMPDIR = unitTmp;
|
|
43
|
+
// Node's Windows tmpdir() uses TEMP/TMP, not TMPDIR.
|
|
44
|
+
if (process.platform === "win32") {
|
|
45
|
+
for (const key of Object.keys(env)) if (["TEMP", "TMP"].includes(key.toUpperCase())) delete env[key];
|
|
46
|
+
env.TEMP = unitTmp;
|
|
47
|
+
env.TMP = unitTmp;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Stripping GIT_* environment still leaves Git's config files, which it reads
|
|
51
|
+
// by path: a host-level global ignore (e.g. ".agents/" in ~/.gitconfig or the
|
|
52
|
+
// XDG ignore file) made `git add -A` inside fixtures drop an untracked
|
|
53
|
+
// symlink target, so the candidate view materialized a dangling link and the
|
|
54
|
+
// suite saw an ENOENT (gentle-shell#2552). Pin every remaining config source
|
|
55
|
+
// to an empty file for the stage; fixtures that need identity pass -c flags.
|
|
56
|
+
if (configHome) {
|
|
57
|
+
const emptyGitConfig = join(configHome, "empty.gitconfig");
|
|
58
|
+
writeFileSync(emptyGitConfig, "");
|
|
59
|
+
env.GIT_CONFIG_GLOBAL = emptyGitConfig;
|
|
60
|
+
env.GIT_CONFIG_NOSYSTEM = "1";
|
|
61
|
+
// An empty GIT_CONFIG_GLOBAL does not disable Git's default ignore file:
|
|
62
|
+
// it still reads $XDG_CONFIG_HOME/git/ignore, so a host ignore (e.g.
|
|
63
|
+
// ".agents/") would keep dropping fixture files from `git add -A`.
|
|
64
|
+
env.XDG_CONFIG_HOME = configHome;
|
|
65
|
+
}
|
|
54
66
|
return await new Promise((resolve) => {
|
|
55
67
|
const child = spawn(stage.command, { shell: true, stdio: "inherit", env });
|
|
56
68
|
child.on("close", (code) => resolve({ name: stage.name, code: code ?? 1 }));
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
2
|
+
// Updates assets/migrations/agent-body-history.json: the sha256 of every body
|
|
3
|
+
// (text after the frontmatter) each packaged agent has shipped with.
|
|
4
|
+
// Installation uses it to keep refreshing package agents whose frontmatter was
|
|
5
|
+
// edited locally. Run after changing any assets/agents file.
|
|
6
|
+
//
|
|
7
|
+
// The file is append-only. Git history from HEAD is not a complete record of
|
|
8
|
+
// shipped bodies: a squash merge leaves the bodies of the branch's own commits
|
|
9
|
+
// unreachable (#2970 recorded bodies from commits that only exist on its
|
|
10
|
+
// branch), yet an installation may still carry one. Recorded hashes are
|
|
11
|
+
// therefore always kept and only new bodies are added.
|
|
6
12
|
import { execFileSync } from "node:child_process";
|
|
7
13
|
import { createHash } from "node:crypto";
|
|
8
|
-
import { readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
14
|
+
import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
9
15
|
import { dirname, join } from "node:path";
|
|
10
16
|
import { fileURLToPath } from "node:url";
|
|
11
17
|
|
|
@@ -23,7 +29,33 @@ function agentBody(content) {
|
|
|
23
29
|
const hash = (content) => createHash("sha256").update(agentBody(content)).digest("hex");
|
|
24
30
|
const git = (...args) => execFileSync("git", args, { cwd: root, encoding: "utf8", maxBuffer: 64 * 1024 * 1024 });
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
// An existing file that cannot be read as a history must stop the run: writing
|
|
33
|
+
// over it would lose every recorded hash.
|
|
34
|
+
function readRecorded() {
|
|
35
|
+
if (!existsSync(output)) return {};
|
|
36
|
+
const parsed = JSON.parse(readFileSync(output, "utf8"));
|
|
37
|
+
const bodies = parsed?.bodies;
|
|
38
|
+
if (
|
|
39
|
+
parsed?.schemaVersion !== 1 ||
|
|
40
|
+
typeof bodies !== "object" ||
|
|
41
|
+
bodies === null ||
|
|
42
|
+
Array.isArray(bodies) ||
|
|
43
|
+
!Object.values(bodies).every((hashes) => Array.isArray(hashes) && hashes.every((h) => typeof h === "string"))
|
|
44
|
+
) {
|
|
45
|
+
throw new Error("unexpected shape (schemaVersion 1 with string arrays under bodies)");
|
|
46
|
+
}
|
|
47
|
+
return bodies;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
let recorded;
|
|
51
|
+
try {
|
|
52
|
+
recorded = readRecorded();
|
|
53
|
+
} catch (error) {
|
|
54
|
+
console.error(`cannot read ${output}: ${error.message}; not rewriting it`);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const found = {};
|
|
27
59
|
for (const file of readdirSync(agentsDir).filter((name) => name.endsWith(".md")).sort()) {
|
|
28
60
|
const path = `assets/agents/${file}`;
|
|
29
61
|
const hashes = new Set([hash(readFileSync(join(agentsDir, file), "utf8"))]);
|
|
@@ -34,8 +66,23 @@ for (const file of readdirSync(agentsDir).filter((name) => name.endsWith(".md"))
|
|
|
34
66
|
if (git("ls-tree", commit, "--", path).trim() === "") continue;
|
|
35
67
|
hashes.add(hash(git("show", `${commit}:${path}`)));
|
|
36
68
|
}
|
|
37
|
-
|
|
69
|
+
found[`agents/${file}`] = hashes;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const bodies = {};
|
|
73
|
+
let kept = 0;
|
|
74
|
+
let added = 0;
|
|
75
|
+
let notInHistory = 0;
|
|
76
|
+
for (const key of [...new Set([...Object.keys(recorded), ...Object.keys(found)])].sort()) {
|
|
77
|
+
const known = new Set(recorded[key] ?? []);
|
|
78
|
+
const fromHistory = found[key] ?? new Set();
|
|
79
|
+
kept += known.size;
|
|
80
|
+
for (const h of known) if (!fromHistory.has(h)) notInHistory++;
|
|
81
|
+
for (const h of fromHistory) if (!known.has(h)) added++;
|
|
82
|
+
bodies[key] = [...new Set([...known, ...fromHistory])].sort();
|
|
38
83
|
}
|
|
39
84
|
|
|
40
85
|
writeFileSync(output, `${JSON.stringify({ schemaVersion: 1, bodies }, null, 2)}\n`);
|
|
41
|
-
console.log(
|
|
86
|
+
console.log(
|
|
87
|
+
`agent body history: ${Object.values(bodies).flat().length} hashes for ${Object.keys(bodies).length} agents (kept ${kept}, added ${added}, kept although not in git history ${notInHistory})`,
|
|
88
|
+
);
|
|
@@ -4,6 +4,9 @@ import { createHash } from "node:crypto";
|
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
5
5
|
import { join, relative, sep } from "node:path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
|
+
// The generated copy of lib/design-canvas-assets.ts: plain `node` runs this check
|
|
8
|
+
// (prepack, prepublishOnly), and Node 23.0-23.5 cannot load TypeScript unflagged.
|
|
9
|
+
import { DESIGN_CANVAS_ASSETS } from "../runtime/design-canvas-assets.mjs";
|
|
7
10
|
|
|
8
11
|
const root = join(fileURLToPath(new URL("..", import.meta.url)));
|
|
9
12
|
|
|
@@ -27,6 +30,10 @@ export const installerPaths = Object.freeze([
|
|
|
27
30
|
"assets/install-wizard/wizard.css",
|
|
28
31
|
]);
|
|
29
32
|
|
|
33
|
+
// The canvas server serves exactly these files; one list keeps the server and
|
|
34
|
+
// the package in sync.
|
|
35
|
+
export const designCanvasAssetPaths = Object.freeze(Object.keys(DESIGN_CANVAS_ASSETS).map((name) => `assets/design-canvas/${name}`));
|
|
36
|
+
|
|
30
37
|
export const requiredPaths = [
|
|
31
38
|
"bin/gentle-shell.mjs",
|
|
32
39
|
...installerPaths,
|
|
@@ -67,20 +74,24 @@ export const requiredPaths = [
|
|
|
67
74
|
"lib/gentle-design.ts",
|
|
68
75
|
// The design canvas server reads its page and scripts from assets/ by path.
|
|
69
76
|
"lib/design-canvas-server.ts",
|
|
77
|
+
"lib/design-canvas-assets.ts",
|
|
78
|
+
"runtime/design-canvas-assets.mjs",
|
|
70
79
|
"lib/design-open-browser.ts",
|
|
71
80
|
"lib/design-comments.ts",
|
|
72
81
|
"lib/design-handoffs.ts",
|
|
82
|
+
"lib/design-system-tokens.ts",
|
|
73
83
|
"lib/design-sources.ts",
|
|
74
84
|
"assets/design-canvas/index.html",
|
|
75
|
-
|
|
76
|
-
"assets/design-canvas/canvas.css",
|
|
77
|
-
"assets/design-canvas/inspector.js",
|
|
85
|
+
...designCanvasAssetPaths,
|
|
78
86
|
"scripts/npm-pack-result.mjs",
|
|
79
87
|
"assets/orchestrator.md",
|
|
80
88
|
"assets/orchestrator-delegation.md",
|
|
89
|
+
"assets/orchestrator-full-delegation.md",
|
|
90
|
+
"assets/orchestrator-full-delegation-card.md",
|
|
81
91
|
"assets/orchestrator-delegation-reference.md",
|
|
82
92
|
"assets/orchestrator-tracking.md",
|
|
83
93
|
"assets/orchestrator-verification.md",
|
|
94
|
+
"assets/orchestrator-quota-recovery.md",
|
|
84
95
|
"assets/orchestrator-writer.md",
|
|
85
96
|
"assets/orchestrator-prompts.md",
|
|
86
97
|
"assets/orchestrator-memory.md",
|
|
@@ -119,9 +130,13 @@ export const requiredPaths = [
|
|
|
119
130
|
"lib/gentle-shell-resume-hint.ts",
|
|
120
131
|
"lib/gentle-shell-import-pi.ts",
|
|
121
132
|
"lib/native-review-cli.ts",
|
|
133
|
+
"lib/review-coordinator.ts",
|
|
134
|
+
"lib/review-delivery-preflight.ts",
|
|
135
|
+
"lib/review-candidate-symlink-scan.ts",
|
|
122
136
|
"lib/status-timing-diagnostics.ts",
|
|
123
137
|
"lib/provider-contract-bundle.ts",
|
|
124
138
|
"lib/review-host-relay.ts",
|
|
139
|
+
"lib/reviewer-stream.ts",
|
|
125
140
|
"lib/review-integration-v2.ts",
|
|
126
141
|
"lib/review-relay-contract.ts",
|
|
127
142
|
"lib/agent-assets.ts",
|
|
@@ -144,9 +159,11 @@ export const requiredPaths = [
|
|
|
144
159
|
"runtime/review-relay-contract.mjs",
|
|
145
160
|
"runtime/telemetry-trigger.mjs",
|
|
146
161
|
"scripts/check-provider-contract.mjs",
|
|
162
|
+
"scripts/download-progress.mjs",
|
|
147
163
|
"scripts/gentle-ai-installer.mjs",
|
|
148
164
|
"scripts/install-gentle-ai.mjs",
|
|
149
165
|
"scripts/install-tui-mode-setting.mjs",
|
|
166
|
+
"scripts/prepare-verifier.mjs",
|
|
150
167
|
"scripts/mirror-provider-contract.mjs",
|
|
151
168
|
"tests/fixtures/native-review-cli/v2.1.3/start.json",
|
|
152
169
|
"tests/fixtures/provider-contract-bundle/v1.1.0/README.md",
|
|
@@ -161,32 +178,46 @@ export const requiredPaths = [
|
|
|
161
178
|
// exact bytes are pinned by the lock-driven scripts/check-provider-contract.mjs
|
|
162
179
|
// drift check, which runs in the same pnpm test flow.
|
|
163
180
|
"contracts/review-provider-contract-mirror/provider-contract.lock.json",
|
|
164
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
165
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
166
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
167
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
168
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
169
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
170
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
171
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
172
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
173
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
174
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
175
|
-
"contracts/review-provider-contract-mirror/v1.
|
|
181
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/README.md",
|
|
182
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/manifest.json",
|
|
183
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/orchestration/pi.md",
|
|
184
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/routing/pi.md",
|
|
185
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/lens.schema.json",
|
|
186
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/refuter.schema.json",
|
|
187
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/schemas/targeted-validator.schema.json",
|
|
188
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/lens.json",
|
|
189
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/refuter.json",
|
|
190
|
+
"contracts/review-provider-contract-mirror/v1.5.0/bundle/vectors/targeted-validator.json",
|
|
191
|
+
"contracts/review-provider-contract-mirror/v1.5.0/generated/provider-capabilities.baseline.json",
|
|
192
|
+
"contracts/review-provider-contract-mirror/v1.5.0/generated/provider-roles.baseline.json",
|
|
176
193
|
"prompts/skill-creation.md",
|
|
177
|
-
"skills/_shared/review-ledger-contract.md",
|
|
178
194
|
"skills/branch-pr/SKILL.md",
|
|
179
195
|
"skills/chained-pr/SKILL.md",
|
|
196
|
+
"skills/chained-pr/references/chaining-details.md",
|
|
180
197
|
"skills/cognitive-doc-design/SKILL.md",
|
|
181
198
|
"skills/comment-writer/SKILL.md",
|
|
182
199
|
"skills/design/SKILL.md",
|
|
200
|
+
"skills/gentle-ui-design/SKILL.md",
|
|
201
|
+
"skills/gentle-ui-design/references/task-and-content.md",
|
|
202
|
+
"skills/gentle-ui-design/references/browse-and-compare.md",
|
|
203
|
+
"skills/gentle-ui-design/references/composition-and-feedback.md",
|
|
204
|
+
"skills/gentle-ui-design/references/adaptive-interfaces.md",
|
|
183
205
|
"skills/gentle-ai/SKILL.md",
|
|
184
206
|
"skills/issue-creation/SKILL.md",
|
|
207
|
+
"skills/issue-creation/references/delegated-workflow-actions.md",
|
|
185
208
|
"skills/judgment-day/SKILL.md",
|
|
209
|
+
"skills/judgment-day/references/prompts-and-formats.md",
|
|
186
210
|
"skills/rdd-defect-workflow/SKILL.md",
|
|
187
211
|
"skills/skill-creator/SKILL.md",
|
|
188
212
|
"skills/skill-improver/SKILL.md",
|
|
189
213
|
"skills/skill-registry/SKILL.md",
|
|
214
|
+
"skills/tui-design/NOTICE.md",
|
|
215
|
+
"skills/tui-design/SKILL.md",
|
|
216
|
+
"skills/tui-design/references/commands.md",
|
|
217
|
+
"skills/tui-design/references/critique.md",
|
|
218
|
+
"skills/tui-design/references/design-doc.md",
|
|
219
|
+
"skills/tui-design/references/terminal-craft.md",
|
|
220
|
+
"skills/tui-design/references/visual-loop.md",
|
|
190
221
|
"skills/work-unit-commits/SKILL.md",
|
|
191
222
|
];
|
|
192
223
|
|
|
@@ -427,7 +458,7 @@ async function main() {
|
|
|
427
458
|
});
|
|
428
459
|
|
|
429
460
|
if (driftedContracts.length > 0) {
|
|
430
|
-
console.error("gentle-pi packaged review-integration/v1 and review-integration/v2 contract bytes drifted from the pinned v4.
|
|
461
|
+
console.error("gentle-pi packaged review-integration/v1 and review-integration/v2 contract bytes drifted from the pinned v4.5.0 runtime's vendored Gentle AI contract artifacts:");
|
|
431
462
|
for (const drift of driftedContracts) console.error(`- ${drift.relativePath}: expected ${drift.expected}, got ${drift.actual}`);
|
|
432
463
|
process.exit(1);
|
|
433
464
|
}
|
|
@@ -459,7 +490,7 @@ async function main() {
|
|
|
459
490
|
process.exit(1);
|
|
460
491
|
}
|
|
461
492
|
|
|
462
|
-
const { GENTLE_AI_VERSION } = await import(new URL("../
|
|
493
|
+
const { GENTLE_AI_VERSION } = await import(new URL("../runtime/gentle-ai-binary.mjs", import.meta.url));
|
|
463
494
|
const versionMismatches = gentleAiVersionPinMismatches({
|
|
464
495
|
installerVersion: INSTALLER_VERSION,
|
|
465
496
|
releaseBaseUrl: RELEASE_BASE_URL,
|
|
@@ -472,7 +503,7 @@ async function main() {
|
|
|
472
503
|
process.exit(1);
|
|
473
504
|
}
|
|
474
505
|
|
|
475
|
-
console.log(`gentle-pi package resource check passed (${requiredPaths.length} files; ${Object.keys(contractHashes).length} exact byte-pinned contract artifacts for the v4.
|
|
506
|
+
console.log(`gentle-pi package resource check passed (${requiredPaths.length} files; ${Object.keys(contractHashes).length} exact byte-pinned contract artifacts for the v4.5.0 runtime).`);
|
|
476
507
|
}
|
|
477
508
|
|
|
478
509
|
const isMainModule = process.argv[1] !== undefined && import.meta.url === pathToFileURL(process.argv[1]).href;
|