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
|
@@ -5,6 +5,7 @@ import { appendSystemPromptOnce, type AppendableSystemPromptOptions } from "./ap
|
|
|
5
5
|
import { sameReviewSessionIdentity, resolveCanonicalGitRepositoryIdentity, type ReviewSessionIdentity } from "./review-session-standing-permission.ts";
|
|
6
6
|
import { realpath } from "node:fs/promises";
|
|
7
7
|
import { gentlePiConfigHome } from "./agent-home.ts";
|
|
8
|
+
import { isInteractiveMode } from "./rpc-host.ts";
|
|
8
9
|
import { isPermissionMode, resolvePermissionModePolicy, writePermissionModePolicy, type PermissionMode } from "./permission-mode-policy.ts";
|
|
9
10
|
export type { PermissionMode } from "./permission-mode-policy.ts";
|
|
10
11
|
export const MODE_STATUS_KEY = "gentle:mode";
|
|
@@ -16,11 +17,12 @@ export const SUPER_YOLO_STATUS_TEXT = "💥 SUPER YOLO ON — no permission prom
|
|
|
16
17
|
export const SUPER_YOLO_DIRECTIVE = `<gentle-super-yolo-session>
|
|
17
18
|
SUPER YOLO session standing permission is ON, authorized by the human for this live primary session and canonical workspace. No permission questions are asked in this mode: proceed through ordinary and destructive shell work (including rm, resets, force operations and configured-guard confirmations) without confirmation dialogs, and make implementation and delivery choices directly.
|
|
18
19
|
The ONLY hard line is private material: never read, print, copy, transmit or commit secrets or private credentials — .env files, .ssh, keychains, *.pem/*.key/*.p12/*.pfx, secrets/ directories, cloud credential files. If a task seems to need them, stop and ask the human.
|
|
19
|
-
This does NOT override explicit human restrictions in the live conversation, and never auto-answers ask_user tools, provider consent, maintenance/recovery authorization or opaque-token decisions. Children remain bounded by their delegated task; they receive no independent delivery grant or Super Yolo inheritance.
|
|
20
|
+
This does NOT override explicit human restrictions in the live conversation, and never auto-answers permission-mode selections, ask_user tools, provider consent, maintenance/recovery authorization or opaque-token decisions. Children remain bounded by their delegated task; they receive no independent delivery grant or Super Yolo inheritance.
|
|
20
21
|
</gentle-super-yolo-session>`;
|
|
21
22
|
export const YOLO_DIRECTIVE = `<gentle-yolo-session>
|
|
22
23
|
YOLO session standing permission is ON, authorized by the human for this live primary session and canonical workspace (directly or through a trusted global default).
|
|
23
24
|
Qualify the default commit, push and PR confirmation clauses: for ordinary already-scoped implementation, checks, commits, non-force pushes and PR creation, this activation supplies standing permission instead of repeated permission questions. Make ordinary reversible implementation choices without needless interviews.
|
|
25
|
+
Quoted, cited, logged or analyzed destructive text is not an execution: the mandatory destructive confirmations apply only to commands this session actually runs, never to destructive commands appearing inside issue bodies, file contents, documentation, transcripts or command output. Reading and listing non-sensitive material outside the workspace — including Gentle AI's own skills, docs and configuration — is covered by this standing permission; do not ask permission for those reads. Sensitive-path and private-credential blocks still win.
|
|
24
26
|
This does NOT override explicit human restrictions, repository policy, project trust, configured confirmations or blocks, or the authorized task scope. Ask before scope expansion, privacy-sensitive disclosure, genuinely unresolved consequential product choices, or ambiguous destinations or credentials. Never invent destinations or credentials.
|
|
25
27
|
Destructive/data-loss confirmations remain mandatory and independent. Never auto-answer ask_user tools, provider consent, maintenance/recovery authorization or opaque-token decisions. Review standing permission and RDD are unchanged. Children remain bounded by their delegated task; they receive no independent delivery grant or YOLO inheritance.
|
|
26
28
|
</gentle-yolo-session>`;
|
|
@@ -57,6 +59,12 @@ export function updateYoloPrompt(options: AppendableSystemPromptOptions | null |
|
|
|
57
59
|
if (superActive) appendSystemPromptOnce(options, SUPER_YOLO_DIRECTIVE);
|
|
58
60
|
else if (active) appendSystemPromptOnce(options, YOLO_DIRECTIVE);
|
|
59
61
|
}
|
|
62
|
+
const MODE_CHOICES: ReadonlyArray<{ mode: PermissionMode; label: string }> = [
|
|
63
|
+
{ mode: "normal", label: "normal — standard permission prompts" },
|
|
64
|
+
{ mode: "auto", label: "auto — independent checks; extra model calls" },
|
|
65
|
+
{ mode: "yolo", label: "yolo — scoped work; destructive actions ask" },
|
|
66
|
+
{ mode: "super-yolo", label: "super-yolo — no permission prompts; private paths blocked; consent remains" },
|
|
67
|
+
];
|
|
60
68
|
const HUMAN_ACTION = { on: "on", off: "off", toggle: "" } as const;
|
|
61
69
|
type HumanAction = (typeof HUMAN_ACTION)[keyof typeof HUMAN_ACTION];
|
|
62
70
|
export const YOLO_DISPLAY = { on: "ON", off: "OFF", unavailable: "UNAVAILABLE" } as const;
|
|
@@ -131,6 +139,8 @@ interface ModeIdentity {
|
|
|
131
139
|
id: string;
|
|
132
140
|
workspace: string;
|
|
133
141
|
}
|
|
142
|
+
const sameModeIdentity = (left: ModeIdentity, right: ModeIdentity): boolean =>
|
|
143
|
+
left.manager === right.manager && left.id === right.id && left.workspace === right.workspace;
|
|
134
144
|
/** UI/slash authoring only. Defaults are read from the dedicated trusted user store. */
|
|
135
145
|
export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessEnv,
|
|
136
146
|
options: { onChange?: () => void; resolveIdentity?: typeof resolveCanonicalGitRepositoryIdentity } = {}): YoloSessionController {
|
|
@@ -154,10 +164,14 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
154
164
|
// Rendered strings last published for each context; identical repaints are skipped.
|
|
155
165
|
const published = new WeakMap<ExtensionContext, { yolo: string | undefined; modeText: string }>();
|
|
156
166
|
const primary = () => env.GENTLE_PI_AGENTS_CHILD !== "1";
|
|
167
|
+
// The TUI stays the standard interactive host. The Desktop app's own RPC
|
|
168
|
+
// process is the other one, and only when it sets the interactive-host marker:
|
|
169
|
+
// headless RPC children keep the marker stripped, so they stay closed exactly
|
|
170
|
+
// as before. This is the single host admission every mutation below reuses.
|
|
157
171
|
const interactive = (ctx: ExtensionContext): boolean => {
|
|
158
172
|
if (!primary() || !ctx.hasUI) return false;
|
|
159
173
|
const mode = (ctx as ExtensionContext & { mode?: string }).mode;
|
|
160
|
-
if (mode !== undefined) return mode
|
|
174
|
+
if (mode !== undefined) return isInteractiveMode(mode, env);
|
|
161
175
|
try { return (ctx.ui.getAllThemes?.().length ?? 0) > 0; } catch { return false; }
|
|
162
176
|
};
|
|
163
177
|
const session = (ctx: ExtensionContext): { manager: ModeIdentity["manager"]; id: string } | undefined => {
|
|
@@ -219,6 +233,9 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
219
233
|
finally { pendingCaptures.delete(scope); }
|
|
220
234
|
};
|
|
221
235
|
const defaultMode = (): PermissionMode => resolvePermissionModePolicy(store).mode;
|
|
236
|
+
// Preview and initialization share the same fresh-session default rule.
|
|
237
|
+
const initialMode = (identity: ModeIdentity): PermissionMode =>
|
|
238
|
+
seen.get(identity.manager)?.has(identity.id) ? "normal" : defaultMode();
|
|
222
239
|
const mode = async (ctx: ExtensionContext, admission?: { toolCallId: string }): Promise<PermissionMode> => {
|
|
223
240
|
const scope = session(ctx);
|
|
224
241
|
const admissionId = admission?.toolCallId;
|
|
@@ -237,8 +254,9 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
237
254
|
}
|
|
238
255
|
if (!binding && identity) {
|
|
239
256
|
const fresh = !seen.get(identity.manager)?.has(identity.id);
|
|
257
|
+
const initial = fresh ? initialMode(identity) : "normal";
|
|
240
258
|
remember(identity); binding = identity;
|
|
241
|
-
if (fresh) { liveMode =
|
|
259
|
+
if (fresh) { liveMode = initial; interactiveGrant = false; changed(ctx); }
|
|
242
260
|
}
|
|
243
261
|
// Record after the binding pass: internal changed() bumps above must not strand
|
|
244
262
|
// a cache entry stamped with a superseded generation. Only admission-keyed
|
|
@@ -258,7 +276,7 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
258
276
|
binding = undefined; liveMode = "normal"; interactiveGrant = false;
|
|
259
277
|
changed(ctx); observers.clear();
|
|
260
278
|
};
|
|
261
|
-
const setMode = async (requested: PermissionMode, ctx: ExtensionContext, lifetime = () => true): Promise<boolean> => {
|
|
279
|
+
const setMode = async (requested: PermissionMode, ctx: ExtensionContext, lifetime = () => true, expectedIdentity?: ModeIdentity): Promise<boolean> => {
|
|
262
280
|
if (!isPermissionMode(requested) || !interactive(ctx) || !lifetime()) return false;
|
|
263
281
|
const current = bindCurrent(ctx, () => !lifetime());
|
|
264
282
|
// Revoke immediately, including off versus a pending activation race.
|
|
@@ -266,7 +284,7 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
266
284
|
binding = undefined; liveMode = "normal"; interactiveGrant = false; changed(ctx);
|
|
267
285
|
const epoch = generation;
|
|
268
286
|
const identity = await capture(ctx);
|
|
269
|
-
if (!current() || epoch !== generation || !identity) return false;
|
|
287
|
+
if (!current() || epoch !== generation || !identity || (expectedIdentity && !sameModeIdentity(expectedIdentity, identity))) return false;
|
|
270
288
|
binding = identity; remember(identity); liveMode = requested; interactiveGrant = true; changed(ctx);
|
|
271
289
|
if (requested === "auto") notify(ctx, AUTO_MODE_NOTICE);
|
|
272
290
|
return true;
|
|
@@ -357,23 +375,35 @@ export function registerYoloSessionPolicy(pi: ExtensionAPI, env: NodeJS.ProcessE
|
|
|
357
375
|
},
|
|
358
376
|
});
|
|
359
377
|
pi.registerCommand("gentle:yolo", {
|
|
360
|
-
description: "
|
|
378
|
+
description: "Choose a session permission mode; enable|disable|status remain available as explicit shortcuts.",
|
|
361
379
|
handler: async (args, ctx) => {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
const
|
|
367
|
-
|
|
380
|
+
const action = args.trim() || "status";
|
|
381
|
+
if (!args.trim() && interactive(ctx) && typeof ctx.ui.select === "function") {
|
|
382
|
+
const current = bindCurrent(ctx), epoch = generation;
|
|
383
|
+
const stale = () => notify(ctx, "YOLO unchanged — the session changed while the menu was open.", true);
|
|
384
|
+
const identity = await capture(ctx);
|
|
385
|
+
if (!current() || epoch !== generation || !identity) { stale(); return; }
|
|
386
|
+
// Preview the effective default without initializing authority merely by opening a dialog.
|
|
387
|
+
const state = binding && sameModeIdentity(binding, identity) ? liveMode : initialMode(identity);
|
|
388
|
+
const selected = await ctx.ui.select(`Permissions for this session (current: ${state.toUpperCase()})`, MODE_CHOICES.map(choice => choice.label));
|
|
368
389
|
if (selected === undefined) return;
|
|
369
|
-
|
|
390
|
+
if (!current() || epoch !== generation) { stale(); return; }
|
|
391
|
+
const choice = MODE_CHOICES.find(item => item.label === selected);
|
|
392
|
+
if (!choice) { notify(ctx, "YOLO unchanged — invalid menu selection.", true); return; }
|
|
393
|
+
const fresh = await capture(ctx);
|
|
394
|
+
if (!current() || epoch !== generation || !fresh || !sameModeIdentity(identity, fresh)) { stale(); return; }
|
|
395
|
+
if (await setMode(choice.mode, ctx, current, identity)) notify(ctx, `Permissions: ${choice.mode.toUpperCase()}`);
|
|
396
|
+
else stale();
|
|
397
|
+
return;
|
|
370
398
|
}
|
|
371
399
|
if (action !== "enable" && action !== "disable" && action !== "status") {
|
|
372
400
|
notify(ctx, "Use /gentle:yolo enable|disable|status. State unchanged.", true); return;
|
|
373
401
|
}
|
|
374
|
-
if (action === "status") {
|
|
375
|
-
|
|
376
|
-
|
|
402
|
+
if (action === "status") {
|
|
403
|
+
const state = await mode(ctx);
|
|
404
|
+
notify(ctx, state === "super-yolo" ? SUPER_YOLO_STATUS_TEXT : state === "yolo" ? YOLO_STATUS_TEXT : "YOLO OFF"); return;
|
|
405
|
+
}
|
|
406
|
+
await humanAction(action === "enable" ? HUMAN_ACTION.on : HUMAN_ACTION.off, ctx);
|
|
377
407
|
},
|
|
378
408
|
});
|
|
379
409
|
return { active, superActive, mode, setMode, defaultMode, saveDefault, epoch: () => generation, humanAction, reset };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gentle-pi",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Turn Pi into el Gentleman: an ODD development harness with focused subagents, configured TDD evidence, native review, and skill discovery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"build:runtime-modules": "node scripts/build-runtime-modules.mjs --write",
|
|
52
52
|
"check:runtime-modules": "node scripts/build-runtime-modules.mjs --check",
|
|
53
53
|
"test:packed-package": "node scripts/test-packed-runner.mjs",
|
|
54
|
+
"perf:render-cache": "node scripts/render-cache-performance.mjs",
|
|
54
55
|
"prepack": "pnpm test && pnpm run check:runtime-modules && node scripts/verify-package-files.mjs",
|
|
55
56
|
"prepublishOnly": "pnpm test && pnpm run check:runtime-modules && node scripts/verify-package-files.mjs && pnpm run test:packed-package",
|
|
56
57
|
"typecheck": "node scripts/check-types.mjs"
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"typescript": "^5.9.3"
|
|
99
100
|
},
|
|
100
101
|
"engines": {
|
|
101
|
-
"node": "
|
|
102
|
+
"node": "^22.19.0 || >=23.6.0"
|
|
102
103
|
},
|
|
103
104
|
"packageManager": "pnpm@11.1.1"
|
|
104
105
|
}
|
|
@@ -4,16 +4,7 @@ argument-hint: "<skill idea or name>"
|
|
|
4
4
|
---
|
|
5
5
|
Create or update an LLM-first skill for: $ARGUMENTS
|
|
6
6
|
|
|
7
|
-
Use the `gentle-ai-skill-creator` skill if it is available. If the skill is not auto-loaded, read `skills/skill-creator/SKILL.md` and `docs/skill-style-guide.md` when present before editing.
|
|
8
|
-
|
|
9
|
-
## Process
|
|
10
|
-
|
|
11
|
-
1. Clarify the reusable behavior, target runtime, trigger phrases, and non-goals if they are not obvious.
|
|
12
|
-
2. Inspect existing skills first; update an existing skill instead of creating a duplicate.
|
|
13
|
-
3. Create or update `skills/{kebab-name}/SKILL.md` with valid one-line frontmatter description and concise runtime instructions.
|
|
14
|
-
4. Put templates, schemas, or examples under `assets/`; put longer supporting docs under `references/`.
|
|
15
|
-
5. If the skill is part of `gentle-pi`, update `scripts/verify-package-files.mjs`.
|
|
16
|
-
6. Refresh the registry with `/skill-registry:refresh` when available, or tell the user to refresh/reload.
|
|
7
|
+
Use the `gentle-ai-skill-creator` skill if it is available. If the skill is not auto-loaded, read `skills/skill-creator/SKILL.md` and `docs/skill-style-guide.md` when present before editing. If neither the skill nor that `SKILL.md` is available, say so and stop. Clarify the reusable behavior, target runtime, trigger phrases, and non-goals if they are not obvious, then follow the skill's Execution Steps.
|
|
17
8
|
|
|
18
9
|
## Report
|
|
19
10
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Generated by scripts/build-runtime-modules.mjs. Do not edit.
|
|
2
|
+
// The files the design canvas serves from assets/design-canvas/ under
|
|
3
|
+
// `assets/<name>`, and the package check requires in the tarball. The list is
|
|
4
|
+
// explicit on purpose: it is a security boundary, and inspector.js is also
|
|
5
|
+
// loaded inside the artboard sandbox. index.html is the page template, read by
|
|
6
|
+
// the server and never served as an asset.
|
|
7
|
+
|
|
8
|
+
/** Canvas asset file name to the Content-Type it is served with. */
|
|
9
|
+
export const DESIGN_CANVAS_ASSETS = Object.freeze({
|
|
10
|
+
"canvas.js": "text/javascript; charset=utf-8",
|
|
11
|
+
"canvas-boot.js": "text/javascript; charset=utf-8",
|
|
12
|
+
"canvas-store.js": "text/javascript; charset=utf-8",
|
|
13
|
+
"canvas-api.js": "text/javascript; charset=utf-8",
|
|
14
|
+
"canvas-ui.js": "text/javascript; charset=utf-8",
|
|
15
|
+
"canvas-view.js": "text/javascript; charset=utf-8",
|
|
16
|
+
"canvas-focus.js": "text/javascript; charset=utf-8",
|
|
17
|
+
"canvas-boards.js": "text/javascript; charset=utf-8",
|
|
18
|
+
"canvas-handoffs.js": "text/javascript; charset=utf-8",
|
|
19
|
+
"canvas-compare.js": "text/javascript; charset=utf-8",
|
|
20
|
+
"canvas-events.js": "text/javascript; charset=utf-8",
|
|
21
|
+
"canvas-comments.js": "text/javascript; charset=utf-8",
|
|
22
|
+
"canvas-popover.js": "text/javascript; charset=utf-8",
|
|
23
|
+
"canvas-messages.js": "text/javascript; charset=utf-8",
|
|
24
|
+
"canvas-menu.js": "text/javascript; charset=utf-8",
|
|
25
|
+
"canvas-rail.js": "text/javascript; charset=utf-8",
|
|
26
|
+
"canvas-sizes.js": "text/javascript; charset=utf-8",
|
|
27
|
+
"canvas-layout.js": "text/javascript; charset=utf-8",
|
|
28
|
+
"canvas-minimap.js": "text/javascript; charset=utf-8",
|
|
29
|
+
"canvas-export.js": "text/javascript; charset=utf-8",
|
|
30
|
+
"canvas-parts.js": "text/javascript; charset=utf-8",
|
|
31
|
+
"canvas-tokens.js": "text/javascript; charset=utf-8",
|
|
32
|
+
"canvas-checks.js": "text/javascript; charset=utf-8",
|
|
33
|
+
"canvas-i18n.js": "text/javascript; charset=utf-8",
|
|
34
|
+
"canvas-i18n-es.js": "text/javascript; charset=utf-8",
|
|
35
|
+
"canvas.css": "text/css; charset=utf-8",
|
|
36
|
+
"inspector.js": "text/javascript; charset=utf-8",
|
|
37
|
+
});
|
|
@@ -383,7 +383,7 @@ function binaryIdentity(path ) {
|
|
|
383
383
|
return [details.dev, details.ino, details.size, details.mtimeNs, details.ctimeNs].join(":");
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
function binaryDigest(path , readBinary
|
|
386
|
+
export function binaryDigest(path , readBinary = readFileSync) {
|
|
387
387
|
let entries = binaryDigestCache.get(readBinary);
|
|
388
388
|
if (entries === undefined) binaryDigestCache.set(readBinary, entries = new Map());
|
|
389
389
|
const identity = binaryIdentity(path);
|
|
@@ -267,8 +267,8 @@ export function bundledPi(install , input
|
|
|
267
267
|
// given explicitly, and its npm through the home's npmCommand setting), plus
|
|
268
268
|
// only no Pi override, subagents on the same node and Pi (the subagent runner
|
|
269
269
|
// splits GENTLE_PI_AGENTS_PI on whitespace, so a spaced path is left to its
|
|
270
|
-
// default, the running node and cli.js), and no Pi update check, since
|
|
271
|
-
//
|
|
270
|
+
// default, the running node and cli.js), and no separate Pi update check, since
|
|
271
|
+
// Shell handles Pi updates. S9: the prefix (GENTLE_SHELL_PREFIX, from
|
|
272
272
|
// which gentle-pi derives its config folder and gives its own gentle-ai runs
|
|
273
273
|
// Gentle AI's variables, never set here because the agent's shell would pass
|
|
274
274
|
// them to a gentle-ai the user runs), and the published Engram as
|
|
@@ -276,7 +276,7 @@ export function bundledPi(install , input
|
|
|
276
276
|
// (S2, S6): the startup policy, and ENGRAM_BIN is the Shell-owned guard, so no
|
|
277
277
|
// provider, whatever loaded it, runs an Engram binary against a store; allowed
|
|
278
278
|
// memory reaches the shared server through ENGRAM_URL only.
|
|
279
|
-
export const ENGRAM_COMPANION_SOURCE = "npm:gentle-engram
|
|
279
|
+
export const ENGRAM_COMPANION_SOURCE = "npm:gentle-engram";
|
|
280
280
|
export const ENGRAM_RECOVERY_NOTICE = "Engram memory disabled: Shell could not verify safe server reuse. Matching versions or updating alone do not prove compatibility. Reuse requires a server on 127.0.0.1:7437 with verified /compatibility evidence; Shell never stops or replaces a server already listening there. Back up existing Engram data before manual changes; do not delete it or bypass the safety check. Shell rechecks on every launch and remains usable without memory.";
|
|
281
281
|
export const ENGRAM_START_FAILED_NOTICE = "Engram memory disabled for this launch: Shell could not start the shared Engram server, or it did not report ready in time. Restart Shell to retry; if another program holds 127.0.0.1:7437, stop it first. Shell remains usable without memory.";
|
|
282
282
|
export const ENGRAM_NEWER_SCHEMA_NOTICE = "Engram memory disabled: ~/.engram was migrated by a newer Engram than Shell's bundled core, so Shell will not start a server on it. Start that newer Engram's server yourself (engram serve); Shell reuses a running server with verified /compatibility evidence. Back up the store; do not delete or downgrade it. Shell remains usable without memory.";
|
|
@@ -287,16 +287,50 @@ export const ENGRAM_COMPATIBILITY_MIN_VERSION = "3.4.0";
|
|
|
287
287
|
export function engramOutdatedServerNotice(version ) {
|
|
288
288
|
return `Engram memory disabled: the running Engram server reports version ${version}, which cannot prove store compatibility. Back up your Engram data, update that server to ${ENGRAM_COMPATIBILITY_MIN_VERSION} or later with the method you installed it with, and restart it; updating Shell alone does not replace a running server. Shell rechecks on every launch and remains usable without memory.`;
|
|
289
289
|
}
|
|
290
|
+
// A canonical numeric x.y.z (optionally v-prefixed, no leading zeros), split
|
|
291
|
+
// into numeric parts; undefined otherwise. The version comes from the server,
|
|
292
|
+
// so anything else is never echoed to the user.
|
|
293
|
+
function canonicalVersion(version ) {
|
|
294
|
+
const match = /^v?(0|[1-9]\d{0,3})\.(0|[1-9]\d{0,3})\.(0|[1-9]\d{0,3})$/.exec(version ?? "");
|
|
295
|
+
return match === null ? undefined : match.slice(1).map(Number);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// "older" or "same-or-newer" over canonical numeric parts, or undefined when
|
|
299
|
+
// the version itself is not canonical.
|
|
300
|
+
function compareVersion(version , minimum ) {
|
|
301
|
+
const parts = canonicalVersion(version);
|
|
302
|
+
if (parts === undefined) return undefined;
|
|
303
|
+
const base = canonicalVersion(minimum);
|
|
304
|
+
if (base === undefined) return undefined;
|
|
305
|
+
for (let i = 0; i < parts.length; i += 1) {
|
|
306
|
+
if (parts[i] !== base[i]) return parts[i] < base[i] ? "older" : "same-or-newer";
|
|
307
|
+
}
|
|
308
|
+
return "same-or-newer";
|
|
309
|
+
}
|
|
310
|
+
|
|
290
311
|
// A canonical numeric x.y.z (optionally v-prefixed, no leading zeros) older than
|
|
291
312
|
// the minimum. The version comes from the server, so anything else is never
|
|
292
313
|
// echoed to the user.
|
|
293
314
|
function outdatedServerVersion(version ) {
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
315
|
+
const parts = canonicalVersion(version);
|
|
316
|
+
if (parts === undefined) return undefined;
|
|
317
|
+
return compareVersion(version, ENGRAM_COMPATIBILITY_MIN_VERSION) === "older" ? parts.join(".") : undefined;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// The first release whose CLI runs the shared server's whole lifecycle as a
|
|
321
|
+
// pidfile-tracked daemon (`engram run -d` plus the `ps`, `stop`, `logs`,
|
|
322
|
+
// `restart` verbs; engram issues #2228 and #2346): a core older than this
|
|
323
|
+
// knows only `serve`, which no daemon verb can adopt.
|
|
324
|
+
export const ENGRAM_DAEMON_LIFECYCLE_MIN_VERSION = "3.7.0";
|
|
325
|
+
export function engramSupportsDaemonLifecycle(version ) {
|
|
326
|
+
return compareVersion(version, ENGRAM_DAEMON_LIFECYCLE_MIN_VERSION) === "same-or-newer";
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// The command line Shell starts the shared server with: daemon-lifecycle cores
|
|
330
|
+
// register with `run -d` so the standard verbs manage the server; older cores
|
|
331
|
+
// spawn only the legacy detached `serve`.
|
|
332
|
+
export function engramSpawnArgs(version ) {
|
|
333
|
+
return engramSupportsDaemonLifecycle(version) ? ["run", "-d"] : ["serve"];
|
|
300
334
|
}
|
|
301
335
|
// The default endpoint gentle-engram uses without ENGRAM_URL or ENGRAM_PORT.
|
|
302
336
|
export const ENGRAM_DEFAULT_PORT = 7437;
|
|
@@ -411,14 +445,71 @@ export function parseEngramProvenance(text )
|
|
|
411
445
|
}
|
|
412
446
|
|
|
413
447
|
// The bundled core's own schema (SQLite user_version), verified from the
|
|
414
|
-
// tagged sources v3.3.2, v3.4.0
|
|
415
|
-
//
|
|
416
|
-
|
|
448
|
+
// tagged sources v3.3.2, v3.4.0, v3.5.2 and the v3.7.0 and v3.7.2 trees:
|
|
449
|
+
// internal/store/store.go `const schemaVersion = 1`, and the released 3.7.2
|
|
450
|
+
// linux/darwin binaries stamp user_version 1 in an isolated store. A pin
|
|
451
|
+
// without a verified entry leaves the header check unavailable.
|
|
452
|
+
const BUNDLED_ENGRAM_SCHEMA = { "3.3.2": 1, "3.4.0": 1, "3.5.2": 1, "3.7.0": 1, "3.7.2": 1 };
|
|
417
453
|
|
|
418
454
|
export function bundledEngramSchema(coreVersion ) {
|
|
419
455
|
return Object.hasOwn(BUNDLED_ENGRAM_SCHEMA, coreVersion) ? BUNDLED_ENGRAM_SCHEMA[coreVersion] : undefined;
|
|
420
456
|
}
|
|
421
457
|
|
|
458
|
+
// Companion-vs-core contract gate (gentle-shell#3015): the runtime-contract
|
|
459
|
+
// digest each pinned core answers on GET /runtime-contract, read from the real
|
|
460
|
+
// release binaries during development; the 3.5.2 windows archive sha256 matched
|
|
461
|
+
// the retired 3.5.2 pin exactly. gentle-engram 0.8.0 requires the 3.7.2 digest:
|
|
462
|
+
// the released 3.7.2 binary and the published 0.8.0 companion both report
|
|
463
|
+
// contract_id engram.pi-http-runtime/v1, revision 1, with the same digest, and
|
|
464
|
+
// only that digest differs from 3.5.2. A pin without a verified entry leaves
|
|
465
|
+
// the gate unavailable, and the gate only ever warns (S3: "Instalar y avisar
|
|
466
|
+
// fuerte"), never blocks.
|
|
467
|
+
const BUNDLED_ENGRAM_CONTRACT = {
|
|
468
|
+
"3.5.2": "4bf32703e111162b24073d090bec1c15c9120708587000bf595a07264e768672",
|
|
469
|
+
"3.7.0": "0af9af176928e98562ab1396d3196efe582dd5d1c5d2c5f8f546ab4ed609810f",
|
|
470
|
+
"3.7.2": "0af9af176928e98562ab1396d3196efe582dd5d1c5d2c5f8f546ab4ed609810f",
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
export function bundledEngramContract(coreVersion ) {
|
|
474
|
+
return Object.hasOwn(BUNDLED_ENGRAM_CONTRACT, coreVersion) ? BUNDLED_ENGRAM_CONTRACT[coreVersion] : undefined;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// The runtime contract a gentle-engram companion ships (runtime-contract.json)
|
|
478
|
+
// and the running core answers on GET /runtime-contract. Only the exact
|
|
479
|
+
// contract id, an integer revision and a lowercase 64-hex digest count as
|
|
480
|
+
// evidence; anything else is no signal, never an error.
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
export function parseEngramRuntimeContract(payload ) {
|
|
484
|
+
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) return undefined;
|
|
485
|
+
const record = payload ;
|
|
486
|
+
const revision = record.revision;
|
|
487
|
+
if (record.contract_id !== "engram.pi-http-runtime/v1" || typeof revision !== "number" || !Number.isInteger(revision)) return undefined;
|
|
488
|
+
if (typeof record.digest !== "string" || !/^[0-9a-f]{64}$/.test(record.digest)) return undefined;
|
|
489
|
+
return { contract_id: "engram.pi-http-runtime/v1", revision, digest: record.digest };
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// The loud, warn-only mismatch notice (S3): Shell still installs and runs the
|
|
493
|
+
// pair, and the human decides whether to update the core or the companion.
|
|
494
|
+
// Silent when the digests are equal or either side is unknown — never a false
|
|
495
|
+
// alarm. `coreDigest` lets the launch path pass the digest the running server
|
|
496
|
+
// actually answered; the default is the pinned core's verified table entry.
|
|
497
|
+
// `coreLabel` names whoever answered, so a reused older server is never
|
|
498
|
+
// misattributed to the pinned version.
|
|
499
|
+
export function engramContractMismatchNotice(companionDigest , coreVersion , coreDigest = bundledEngramContract(coreVersion), coreLabel = `the Engram core ${coreVersion}`) {
|
|
500
|
+
if (companionDigest === undefined || coreDigest === undefined || !/^[0-9a-f]{64}$/.test(companionDigest) || companionDigest === coreDigest) return undefined;
|
|
501
|
+
return `Engram contract mismatch: the gentle-engram companion declares runtime-contract digest ${companionDigest}, while ${coreLabel} answers ${coreDigest}; memory may be unavailable until the pair matches. Update the core with a new Gentle Shell release, or update the companion.`;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// One bounded read-only GET /runtime-contract on the shared server (the same
|
|
505
|
+
// loopback rules as probeEngramEndpoint): the parsed digest, or undefined when
|
|
506
|
+
// the server does not answer with a well-formed contract.
|
|
507
|
+
export async function probeEngramRuntimeContract(input = {}) {
|
|
508
|
+
const answer = await localGet(input.port ?? ENGRAM_DEFAULT_PORT, "/runtime-contract", input.timeoutMs ?? 1000);
|
|
509
|
+
if (answer.kind !== "response" || answer.status !== 200) return undefined;
|
|
510
|
+
return parseEngramRuntimeContract(parseJson(answer.body))?.digest;
|
|
511
|
+
}
|
|
512
|
+
|
|
422
513
|
// SQLite's user_version from the raw database header (bytes 60-63), or
|
|
423
514
|
// undefined for anything that is not a well-formed rollback or WAL database.
|
|
424
515
|
export function sqliteHeaderUserVersion(header , size ) {
|
|
@@ -614,29 +705,16 @@ export function bundledUpdatePlan(passthrough ) {
|
|
|
614
705
|
return { self: true, ...marked };
|
|
615
706
|
}
|
|
616
707
|
|
|
617
|
-
//
|
|
618
|
-
//
|
|
619
|
-
// nothing left for Pi it exits with that code; otherwise Pi still runs, so
|
|
620
|
-
// `update --all` updates the extensions even when that step could not complete.
|
|
708
|
+
// Forward extension updates even when the latest Pi update failed; the caller
|
|
709
|
+
// retains that failure code while Pi handles the remaining arguments.
|
|
621
710
|
export function bundledUpdateNext(plan , upgradeCode ) {
|
|
622
711
|
if (plan.piArgs === undefined) return { exitCode: upgradeCode ?? 0 };
|
|
623
712
|
if (plan.self && upgradeCode !== undefined && upgradeCode !== 0) {
|
|
624
|
-
|
|
625
|
-
return { piArgs: plan.piArgs, note: `gentle-shell: the ${step} did not complete; updating the extensions anyway.` };
|
|
713
|
+
return { piArgs: plan.piArgs, note: "gentle-shell: the latest Pi update did not complete; updating the extensions anyway." };
|
|
626
714
|
}
|
|
627
715
|
return { piArgs: plan.piArgs };
|
|
628
716
|
}
|
|
629
717
|
|
|
630
|
-
export function bundledUpdateNotice(input ) {
|
|
631
|
-
return [
|
|
632
|
-
`Pi ships pinned with Gentle Shell (Pi ${input.piVersion}): a newer Pi arrives with a Gentle Shell release.`,
|
|
633
|
-
input.interactive
|
|
634
|
-
? "Running 'gentle-shell upgrade'..."
|
|
635
|
-
: "Run 'gentle-shell upgrade' to install the latest Gentle Shell release and its Pi.",
|
|
636
|
-
"Run 'gentle-shell update --latest' to install the newest published Pi now, without the release's verified lockfile.",
|
|
637
|
-
];
|
|
638
|
-
}
|
|
639
|
-
|
|
640
718
|
|
|
641
719
|
|
|
642
720
|
export const BUNDLED_UPGRADE_USAGE = "usage: gentle-shell upgrade [--channel release] | gentle-shell upgrade --rollback";
|
|
@@ -223,6 +223,32 @@ export function userPiHome(env , homedir
|
|
|
223
223
|
return env[USER_PI_HOME_ENV] || linkDir(env, homedir);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
// Nobody can see or type into an editor git opens from Pi's bash tool, so
|
|
227
|
+
// `git rebase --continue` or a bare `git commit` would wait on it forever.
|
|
228
|
+
// `true` makes git keep the prepared message (or abort an empty one) instead.
|
|
229
|
+
// A value the user already set is kept; on Windows env names ignore case, so a
|
|
230
|
+
// user's `git_editor` counts too.
|
|
231
|
+
export const NON_INTERACTIVE_GIT_ENV = { GIT_EDITOR: "true", GIT_SEQUENCE_EDITOR: "true" } ;
|
|
232
|
+
|
|
233
|
+
export function nonInteractiveGitEnv(env , platform = process.platform) {
|
|
234
|
+
const isSet = (key ) => platform === "win32"
|
|
235
|
+
? Object.entries(env).some(([name, value]) => value !== undefined && name.toUpperCase() === key)
|
|
236
|
+
: env[key] !== undefined;
|
|
237
|
+
return Object.fromEntries(Object.entries(NON_INTERACTIVE_GIT_ENV).filter(([key]) => !isSet(key)));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// On Windows, Node keeps only the first of a set of case variants (in sorted
|
|
241
|
+
// order) and then skips it if it is undefined, so `{ GIT_EDITOR: undefined,
|
|
242
|
+
// git_editor: "vim" }` would reach the child with neither. Drop the undefined
|
|
243
|
+
// variants so the defined one is what gets spawned.
|
|
244
|
+
export function dropUndefinedCaseVariants(env , platform = process.platform) {
|
|
245
|
+
if (platform !== "win32") return;
|
|
246
|
+
const defined = new Set(Object.entries(env).filter(([, value]) => value !== undefined).map(([name]) => name.toUpperCase()));
|
|
247
|
+
for (const [name, value] of Object.entries(env)) {
|
|
248
|
+
if (value === undefined && defined.has(name.toUpperCase())) delete env[name];
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
226
252
|
export function isolatedDir(env , homedir ) {
|
|
227
253
|
return env.GENTLE_SHELL_HOME || join(homedir, ".gentle-shell", "agent");
|
|
228
254
|
}
|
|
@@ -463,13 +489,18 @@ export function recordProvisioned(config , homeDir , pi
|
|
|
463
489
|
|
|
464
490
|
|
|
465
491
|
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
466
497
|
|
|
467
498
|
export function resolvePiRuntime(deps ) {
|
|
468
499
|
const envOverride = deps.env.GENTLE_SHELL_PI;
|
|
469
500
|
if (envOverride !== undefined && envOverride.length > 0) return { kind: "env", command: envOverride, args: [] };
|
|
470
501
|
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
502
|
+
const bundledCli = deps.resolveBundledCli();
|
|
503
|
+
if (bundledCli !== undefined) return { kind: "bundled", command: deps.nodeExecPath, args: [bundledCli.path], version: bundledCli.version };
|
|
473
504
|
|
|
474
505
|
const onPath = deps.findOnPath("pi");
|
|
475
506
|
if (onPath !== undefined) return { kind: "path", command: onPath, args: [] };
|
|
@@ -1004,6 +1035,8 @@ export function discoverLooseExtensionEntries(dir , fs )
|
|
|
1004
1035
|
|
|
1005
1036
|
|
|
1006
1037
|
|
|
1038
|
+
|
|
1039
|
+
|
|
1007
1040
|
|
|
1008
1041
|
|
|
1009
1042
|
|
|
@@ -1086,6 +1119,7 @@ export function buildPiInvocation(input ) {
|
|
|
1086
1119
|
|
|
1087
1120
|
const env = {
|
|
1088
1121
|
...input.baseEnv,
|
|
1122
|
+
...nonInteractiveGitEnv(input.baseEnv, input.platform),
|
|
1089
1123
|
PI_CODING_AGENT_DIR: input.home.dir,
|
|
1090
1124
|
PI_PROGRAM_STATUS_APP: "gentle-shell",
|
|
1091
1125
|
GENTLE_PI_AGENT_HOME: input.home.dir,
|
|
@@ -1099,6 +1133,7 @@ export function buildPiInvocation(input ) {
|
|
|
1099
1133
|
else env[GENTLE_SHELL_CONFIG_HOME_ENV] = configHome;
|
|
1100
1134
|
if (childInjection === undefined) delete env[CHILD_PACKAGE_INJECTION_ENV];
|
|
1101
1135
|
else env[CHILD_PACKAGE_INJECTION_ENV] = encodeChildPackageInjection(childInjection);
|
|
1136
|
+
dropUndefinedCaseVariants(env, input.platform);
|
|
1102
1137
|
|
|
1103
1138
|
return { command: input.runtime.command, args, env };
|
|
1104
1139
|
}
|
|
@@ -1353,11 +1388,11 @@ export function helpText() {
|
|
|
1353
1388
|
" gentle-shell install npm:<pkg> Run pi's own 'install' against the resolved home.",
|
|
1354
1389
|
" gentle-shell remove <source> Run pi's own 'remove' against the resolved home.",
|
|
1355
1390
|
" gentle-shell list Run pi's own 'list' against the resolved home.",
|
|
1356
|
-
" gentle-shell update [target]
|
|
1357
|
-
" In a bundled install
|
|
1358
|
-
"
|
|
1359
|
-
"
|
|
1360
|
-
"
|
|
1391
|
+
" gentle-shell update [target] Update Pi through its supported owner, or packages in the resolved home.",
|
|
1392
|
+
" In a bundled install 'update' installs the newest stable Pi",
|
|
1393
|
+
" without the release's verified lockfile; --latest is an alias.",
|
|
1394
|
+
" --all also updates extensions; explicit package pins remain pinned.",
|
|
1395
|
+
" --force is not supported for managed Pi self updates.",
|
|
1361
1396
|
" gentle-shell config Run pi's own 'config' against the resolved home.",
|
|
1362
1397
|
" gentle-shell auth <command> Run pi's own 'auth' against the resolved home.",
|
|
1363
1398
|
" gentle-shell mcp <command> Run pi's own 'mcp' (add, list, login, logout) against the",
|