gentle-pi 4.5.1 → 4.7.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 +17 -15
- package/assets/agents/gentle-ai-explore.md +1 -0
- package/assets/agents/gentle-ai-verify.md +8 -1
- package/assets/agents/gentle-ai-worker.md +4 -0
- package/assets/agents/jd-fix-agent.md +1 -0
- package/assets/agents/jd-judge-a.md +1 -0
- package/assets/agents/jd-judge-b.md +1 -0
- package/assets/design-canvas/canvas.css +13 -1
- package/assets/design-canvas/canvas.js +11 -2
- package/assets/install-wizard/wizard.js +1 -0
- package/assets/migrations/agent-body-history.json +162 -0
- package/assets/orchestrator-delegation-reference.md +7 -7
- package/assets/orchestrator-delegation.md +3 -3
- package/assets/orchestrator-full-delegation-card.md +65 -0
- package/assets/orchestrator-full-delegation.md +34 -0
- package/assets/orchestrator-memory.md +3 -3
- package/assets/orchestrator-prompts.md +1 -1
- package/assets/orchestrator-skills.md +1 -1
- package/assets/orchestrator-verification.md +14 -8
- package/assets/orchestrator.md +11 -11
- package/bin/gentle-shell.mjs +225 -82
- package/docs/agent-status.md +61 -0
- package/docs/bundled-install.md +7 -5
- package/docs/ci-performance.md +11 -0
- package/docs/delegated-verification.md +35 -7
- package/docs/fast-mode.md +15 -0
- package/docs/gentle-agents-activity.md +22 -0
- package/docs/gentle-shell.md +113 -25
- package/docs/install-wizard.md +2 -2
- package/docs/mcp-status.md +52 -0
- package/docs/permission-modes.md +9 -4
- package/docs/prompt-budget.md +28 -0
- package/docs/readme-reference.md +154 -50
- package/docs/render-cache-performance.md +11 -1
- package/docs/review-coordinator.md +33 -0
- package/docs/review-request-context.md +19 -0
- package/docs/review-windows-acl.md +18 -0
- package/docs/session-profile-format.md +20 -5
- package/docs/sound-notifications.md +1 -1
- package/docs/star-prompt.md +32 -0
- package/docs/voice.md +6 -3
- package/docs/work-continuity.md +46 -0
- package/docs/yolo-mode.md +5 -5
- package/extensions/ask-user-choice.ts +1 -0
- package/extensions/ask-user-question.ts +2 -0
- package/extensions/child-safety.ts +3 -0
- package/extensions/codegraph-tools.ts +38 -4
- package/extensions/gentle-agent-status.ts +99 -0
- package/extensions/gentle-agents.ts +803 -84
- package/extensions/gentle-ai.ts +2491 -596
- package/extensions/gentle-fast.ts +61 -0
- package/extensions/gentle-guide.ts +174 -0
- package/extensions/gentle-herdr-activity.ts +21 -1
- package/extensions/gentle-herdr-agent.ts +144 -0
- package/extensions/gentle-program-identity.ts +61 -0
- package/extensions/gentle-shell.ts +895 -120
- package/extensions/gentle-star-prompt.ts +334 -0
- package/extensions/gentle-stats.ts +5 -5
- package/extensions/gentle-todo.ts +59 -23
- package/extensions/gentle-tps.ts +48 -0
- package/extensions/history/store.ts +18 -12
- package/extensions/quiet-tools.ts +38 -8
- package/extensions/skill-registry.ts +210 -21
- package/extensions/startup-banner.ts +69 -10
- package/lib/agent-assets.ts +74 -17
- package/lib/agent-profile-pin.ts +3 -3
- package/lib/agent-profiles.ts +161 -3
- package/lib/agent-status.ts +105 -0
- package/lib/agents-config.ts +58 -3
- package/lib/agents-history.ts +24 -5
- package/lib/agents-keys.ts +8 -16
- package/lib/agents-messaging.ts +47 -5
- package/lib/agents-protocol.ts +80 -4
- package/lib/agents-runner.ts +287 -15
- package/lib/agents-view.ts +6 -1
- package/lib/agents-widget.ts +132 -9
- package/lib/auto-permission-runtime.ts +1 -1
- package/lib/bounded-writer-admission.ts +13 -1
- package/lib/bridge-cost.ts +28 -0
- package/lib/card-content-policy.ts +8 -6
- package/lib/codemode-renderer.ts +16 -0
- package/lib/command-palette-catalog.ts +1 -0
- package/lib/command-palette.ts +154 -25
- package/lib/context-backstop.ts +14 -5
- package/lib/destructive-command-guard.ts +48 -4
- package/lib/execution-surface-guard.ts +20 -0
- package/lib/exploration-budget.ts +64 -0
- package/lib/gentle-ai-binary.ts +1 -1
- package/lib/gentle-design.ts +3 -0
- package/lib/gentle-guide.ts +201 -0
- package/lib/gentle-shell-bundled.ts +6 -19
- package/lib/gentle-shell-launcher.ts +47 -8
- package/lib/herdr-activity.ts +23 -5
- package/lib/herdr-busy.ts +45 -0
- package/lib/herdr-task-summary-policy.ts +85 -0
- package/lib/image-attachments.ts +33 -0
- package/lib/image-disk-cache.ts +137 -0
- package/lib/inprocess-reviewer.ts +282 -132
- package/lib/jobs-sidebar-state.ts +5 -6
- package/lib/jobs-view.ts +198 -11
- package/lib/jobs-widget.ts +16 -52
- package/lib/keymaps-customize.ts +81 -0
- package/lib/keymaps.ts +291 -0
- package/lib/model-fallback-notice.ts +61 -0
- package/lib/model-fallback-policy.ts +141 -0
- package/lib/model-fallback-store.ts +143 -0
- package/lib/model-routing-authority.ts +32 -6
- package/lib/nan-provider.ts +3 -2
- package/lib/native-choice-list.ts +20 -2
- package/lib/native-review-cli.ts +103 -21
- package/lib/notification-customize.ts +48 -51
- package/lib/openai-fast-tier.ts +22 -0
- package/lib/orchestrator-discovery.ts +5 -1
- package/lib/orchestrator-fallback.ts +75 -0
- package/lib/orchestrator-mode-policy.ts +105 -0
- package/lib/pasted-image-paths.ts +113 -0
- package/lib/questionnaire/questionnaire-view.ts +225 -18
- package/lib/rdd-mode-control.ts +32 -0
- package/lib/reply-language-anchor.ts +104 -0
- package/lib/review-blocker.ts +92 -0
- package/lib/review-candidate-symlink-scan.ts +136 -0
- package/lib/review-candidate-view-owner.ts +85 -44
- package/lib/review-candidate-view.ts +10 -7
- package/lib/review-continuation-registry.ts +99 -0
- package/lib/review-coordinator.ts +163 -0
- package/lib/review-failure-facts.ts +49 -0
- package/lib/review-host-relay.ts +51 -11
- package/lib/review-integration-v2.ts +29 -8
- package/lib/review-relay-phase-timing.ts +45 -0
- package/lib/review-repository.ts +5 -0
- package/lib/review-start-context.ts +17 -0
- package/lib/session-profile-append-controller.ts +21 -6
- package/lib/session-profile-authority.ts +119 -0
- package/lib/session-profile-binding.ts +54 -5
- package/lib/session-profile-freeze.ts +107 -9
- package/lib/session-profile-integration.ts +313 -0
- package/lib/session-profile-persistence.ts +63 -9
- package/lib/shell-bar.ts +269 -72
- package/lib/shell-card.ts +26 -6
- package/lib/shell-changes.ts +2 -0
- package/lib/shell-page.ts +120 -0
- package/lib/shell-panel.ts +163 -0
- package/lib/shell-prompt.ts +53 -1
- package/lib/shell-sidebar-layout.ts +198 -53
- package/lib/shell-sidebar.ts +61 -1
- package/lib/shell-stats.ts +123 -0
- package/lib/shell-todo.ts +79 -1
- package/lib/shell-usage.ts +12 -2
- package/lib/star-prompt.ts +197 -0
- package/lib/verifier-admission.ts +18 -8
- package/lib/verifier-settle-reminder.ts +64 -0
- package/lib/vim-editor-adapter.ts +6 -1
- package/lib/visual-customization-policy.ts +67 -12
- package/lib/visual-customize-view.ts +373 -40
- package/lib/visual-layout-preview.ts +47 -0
- package/lib/visual-profiles.ts +2 -2
- package/lib/windows-session-transport.ts +53 -2
- package/lib/yolo-session-policy.ts +68 -16
- package/package.json +2 -1
- package/runtime/gentle-ai-binary.mjs +1 -1
- package/runtime/gentle-shell-bundled.mjs +6 -19
- package/runtime/gentle-shell-launcher.mjs +46 -7
- package/runtime/native-review-cli.mjs +100 -18
- package/runtime/review-integration-v2.mjs +29 -8
- package/runtime/windows-session-transport.ps1 +60 -3
- package/scripts/bootstrap.sh +4 -1
- package/scripts/build-full-delegation-card.mjs +175 -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-preflight.mjs +6 -6
- package/scripts/installer-runner.mjs +27 -12
- package/scripts/installer-server.mjs +8 -7
- package/scripts/pi-update.mjs +113 -3
- 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 +41 -13
- package/scripts/shell-snapshot.mjs +340 -0
- package/scripts/test-packed-runner.mjs +1 -1
- package/scripts/update-agent-body-history.mjs +41 -0
- package/scripts/verify-installer-tap.mjs +45 -0
- package/scripts/verify-package-files.mjs +14 -2
- package/scripts/voice-worker.cjs +32 -6
- package/skills/design/SKILL.md +11 -8
- package/skills/gentle-ai/SKILL.md +4 -4
- 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/skill-registry/SKILL.md +4 -2
- package/skills/tui-design/NOTICE.md +5 -0
- package/skills/tui-design/SKILL.md +56 -0
- package/skills/tui-design/references/commands.md +75 -0
- package/skills/tui-design/references/critique.md +48 -0
- package/skills/tui-design/references/design-doc.md +44 -0
- package/skills/tui-design/references/terminal-craft.md +64 -0
- package/skills/tui-design/references/visual-loop.md +32 -0
- package/skills/work-unit-commits/SKILL.md +6 -7
- package/tests/agent-home.test.ts +28 -9
- package/tests/agent-profiles-workflow.test.ts +163 -0
- package/tests/agent-risk-escalation.test.ts +1 -1
- package/tests/agent-status.test.ts +143 -0
- package/tests/agents-config.test.ts +96 -0
- package/tests/agents-history.test.ts +31 -0
- package/tests/agents-jobs-frames.test.ts +93 -0
- package/tests/agents-prompt-lifecycle-runtime.test.ts +376 -0
- package/tests/agents-protocol.test.ts +53 -1
- package/tests/agents-runner-drain.test.ts +193 -0
- package/tests/agents-runner.test.ts +345 -4
- package/tests/agents-view.test.ts +27 -0
- package/tests/agents-widget.test.ts +312 -10
- package/tests/append-system-prompt-route.test.ts +4 -1
- package/tests/ask-user-choice.test.ts +4 -3
- package/tests/ask-user-question.test.ts +97 -0
- package/tests/auto-permission-runtime.test.ts +1 -1
- package/tests/autonomous-guard.test.ts +346 -10
- package/tests/bounded-scan-contract.test.ts +39 -0
- package/tests/bounded-stop-contract.test.ts +43 -3
- package/tests/bridge-cost.test.ts +47 -0
- package/tests/bundled-install.test.ts +36 -9
- package/tests/card-content-policy.test.ts +3 -3
- package/tests/chained-pr-skill.test.ts +8 -6
- package/tests/child-safety.test.ts +11 -0
- package/tests/ci-concurrency.test.ts +11 -0
- package/tests/ci-merge-base-identity.test.ts +114 -0
- package/tests/codegraph-tools.test.ts +80 -5
- package/tests/codemode-rendering.test.ts +22 -2
- package/tests/command-palette.test.ts +300 -3
- package/tests/commit-slice-signal.test.ts +11 -9
- package/tests/delegate-for-reason-contract.test.ts +8 -7
- package/tests/design-canvas-assets.test.ts +185 -2
- package/tests/destructive-command-guard.test.ts +52 -0
- package/tests/download-progress.test.ts +71 -0
- package/tests/execution-surface-guard.test.ts +55 -0
- package/tests/exploration-budget.test.ts +128 -0
- package/tests/fixtures/agent-assets/gentle-ai-worker.strict-tdd-era.md +122 -0
- package/tests/fixtures/measure-orchestrator-prompt.mjs +2 -1
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +26 -14
- package/tests/fixtures/proxy-tls/proxy.crt +19 -0
- package/tests/fixtures/proxy-tls/proxy.key +28 -0
- package/tests/fixtures/session-profile-v1/gentle-ai-reviewer.ts +89 -0
- package/tests/fixtures/session-profile-v1/replay.ts +172 -0
- package/tests/fixtures/session-profile-v1/session-profile-authority.ts +113 -0
- package/tests/fixtures/session-profile-v1/session-profile-binding.ts +83 -0
- package/tests/fixtures/session-profile-v1/session-profile-disk-reader.ts +182 -0
- package/tests/fixtures/session-profile-v1/session-profile-freeze.ts +290 -0
- package/tests/fixtures/session-profile-v1/session-profile-persistence.ts +195 -0
- package/tests/fixtures/session-profile-v1/v1-inputs.ts +16 -0
- package/tests/fixtures/windows-pipe-availability.ps1 +26 -0
- package/tests/fixtures/windows-session-bootstrap.ps1 +6 -2
- package/tests/full-delegation-closure.test.ts +131 -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 +1491 -38
- package/tests/gentle-ai-binary.test.ts +3 -1
- package/tests/gentle-ai-elapsed-store.test.ts +19 -0
- package/tests/gentle-ai-exploration-budget.test.ts +151 -0
- package/tests/gentle-ai-installer.test.ts +134 -51
- package/tests/gentle-ai-proxy.test.ts +434 -0
- package/tests/gentle-ai.test.ts +1101 -52
- package/tests/gentle-design.test.ts +21 -0
- package/tests/gentle-fast.test.ts +73 -0
- package/tests/gentle-guide.test.ts +208 -0
- package/tests/gentle-herdr-activity.test.ts +80 -3
- package/tests/gentle-herdr-agent.test.ts +111 -0
- package/tests/gentle-program-identity.test.ts +197 -0
- package/tests/gentle-shell-bin.test.ts +172 -26
- package/tests/gentle-shell-bundled.test.ts +207 -31
- package/tests/gentle-shell-launcher.test.ts +93 -10
- package/tests/gentle-shell.test.ts +1937 -66
- package/tests/gentle-stats.test.ts +15 -2
- package/tests/gentle-todo.test.ts +67 -4
- 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 +132 -0
- package/tests/history-store-private-mode.test.ts +40 -0
- package/tests/image-disk-cache.test.ts +163 -0
- package/tests/image-paste-chips.test.ts +42 -0
- package/tests/independent-recovery-delivery.test.ts +83 -0
- package/tests/inprocess-reviewer.test.ts +298 -4
- package/tests/installer-posix-bootstrap.test.ts +68 -6
- package/tests/installer-preflight.test.ts +5 -4
- package/tests/installer-runner.test.ts +79 -44
- package/tests/installer-server.test.ts +14 -11
- package/tests/installer-windows-diagnostics.test.ts +4 -5
- package/tests/isolated-config-home.ts +28 -0
- package/tests/jobs-view.test.ts +260 -6
- package/tests/jobs-widget.test.ts +25 -37
- package/tests/keymaps-customize.test.ts +114 -0
- package/tests/keymaps.test.ts +103 -0
- package/tests/maintainer/mcp-status.maintest.ts +88 -0
- package/tests/maintainer/pi-update-source.maintest.ts +116 -0
- package/tests/modal-mouse-boundaries.test.ts +136 -0
- package/tests/model-fallback-notice.test.ts +45 -0
- package/tests/model-fallback-policy.test.ts +83 -0
- package/tests/model-fallback-store.test.ts +111 -0
- package/tests/model-routing-authority.test.ts +178 -2
- package/tests/nan-provider.test.ts +4 -4
- package/tests/native-choice-list.test.ts +77 -2
- package/tests/native-review-capability-contract.test.ts +7 -1
- package/tests/native-review-cli.test.ts +269 -1
- package/tests/no-self-pause-contract.test.ts +22 -0
- package/tests/notification-customize.test.ts +58 -34
- package/tests/odd-routing-canonical-ratchet.test.ts +6 -6
- package/tests/odd-routing-contract.test.ts +1 -1
- package/tests/orchestrator-budget.test.ts +7 -2
- package/tests/orchestrator-delegation-mode.test.ts +153 -0
- package/tests/orchestrator-fallback.test.ts +82 -0
- package/tests/orchestrator-mode-policy.test.ts +175 -0
- package/tests/orchestrator-prompt-budget.test.ts +133 -0
- package/tests/orchestrator-rdd-ownership.test.ts +2 -2
- package/tests/package-manifest.test.ts +169 -14
- package/tests/pasted-image-paths.test.ts +118 -0
- package/tests/permission-allowlist.test.ts +202 -0
- package/tests/persona-reply-language.test.ts +20 -1
- package/tests/pi-update-launcher.test.ts +40 -8
- package/tests/pi-update-source.test.ts +162 -0
- package/tests/pnpm-workspace-config.test.ts +58 -0
- package/tests/primary-session-prompt.test.ts +13 -0
- package/tests/profile-fast-tier.test.ts +311 -0
- package/tests/profile-pin.test.ts +29 -2
- package/tests/profile-tier-footer.test.ts +84 -0
- package/tests/profiles-panel-delegation-mode.test.ts +422 -0
- package/tests/questionnaire-view.test.ts +265 -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 +16 -11
- 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 +18 -0
- package/tests/render-cache-performance.test.ts +171 -2
- package/tests/reply-language-anchor.test.ts +173 -0
- package/tests/review-agent-end-preflight.test.ts +1 -1
- package/tests/review-blocker.test.ts +193 -0
- package/tests/review-candidate-owner-retry.test.ts +1 -1
- package/tests/review-candidate-owner-sweep.test.ts +93 -0
- package/tests/review-candidate-symlink-scan.test.ts +157 -0
- package/tests/review-candidate-view.test.ts +52 -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 +76 -0
- package/tests/review-controller-native-routing.test.ts +381 -11
- package/tests/review-controller-workspace-root.test.ts +230 -3
- package/tests/review-controller.test.ts +96 -11
- package/tests/review-coordinator-runtime.test.ts +117 -0
- package/tests/review-coordinator.test.ts +195 -0
- package/tests/review-failure-facts.test.ts +87 -0
- package/tests/review-gate.test.ts +24 -0
- package/tests/review-host-relay-routing.test.ts +258 -4
- package/tests/review-host-relay.test.ts +39 -0
- package/tests/review-inspect-preflight.test.ts +197 -0
- package/tests/review-integration-v2-forward.test.ts +59 -0
- package/tests/review-integration-v2.test.ts +46 -3
- package/tests/review-json-arguments.test.ts +65 -10
- package/tests/review-last-event-closure.test.ts +68 -0
- package/tests/review-loadout-rdd-off-sdk.test.ts +65 -31
- 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 +12 -2
- package/tests/review-repository.test.ts +52 -1
- package/tests/review-reviewer-evidence.test.ts +183 -0
- package/tests/review-risk-assessment.test.ts +74 -3
- package/tests/review-session-standing-permission-controller.test.ts +21 -1
- package/tests/review-sidebar-state.test.ts +5 -5
- package/tests/review-start-context.test.ts +19 -0
- package/tests/review-tool-prose-budget.test.ts +121 -0
- package/tests/run-test-suite.test.ts +183 -6
- package/tests/runtime-harness.mjs +4 -1
- package/tests/sensitive-path-tools.test.ts +250 -0
- package/tests/session-profile-append-controller-pi.test.ts +60 -31
- package/tests/session-profile-append-controller.test.ts +63 -0
- package/tests/session-profile-authority.test.ts +259 -0
- package/tests/session-profile-binding.test.ts +34 -1
- package/tests/session-profile-disk-reader-pi.test.ts +58 -16
- package/tests/session-profile-extension.test.ts +615 -0
- package/tests/session-profile-freeze.test.ts +110 -2
- package/tests/session-profile-integration.test.ts +857 -0
- package/tests/session-profile-persistence.test.ts +57 -0
- package/tests/session-profile-v1-compat.test.ts +255 -0
- package/tests/shell-bar.test.ts +274 -72
- package/tests/shell-card.test.ts +13 -1
- package/tests/shell-page.test.ts +108 -0
- package/tests/shell-panel.test.ts +360 -0
- package/tests/shell-prompt.test.ts +54 -0
- package/tests/shell-render-cache.test.ts +5 -0
- package/tests/shell-sidebar-fullscreen.test.ts +13 -1
- package/tests/shell-sidebar-layout.test.ts +447 -44
- package/tests/shell-sidebar-scroll-benchmark.test.ts +1 -1
- package/tests/shell-stats.test.ts +90 -0
- package/tests/shell-surface-transparent.test.ts +89 -0
- package/tests/shell-todo.test.ts +12 -0
- package/tests/shell-usage.test.ts +14 -0
- package/tests/skill-registry.test.ts +902 -2
- package/tests/star-prompt.test.ts +470 -0
- package/tests/startup-banner.test.ts +209 -2
- package/tests/startup-home-repo.test.ts +2 -0
- package/tests/support/review-coordinator-runtime.ts +69 -0
- package/tests/task-size-routing-contract.test.ts +50 -4
- package/tests/verifier-admission.test.ts +49 -0
- package/tests/verifier-settle-reminder.test.ts +281 -0
- package/tests/verify-first-launch-contract.test.ts +134 -8
- package/tests/verify-installer-tap.test.ts +57 -0
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/visual-customization-policy.test.ts +95 -8
- package/tests/visual-customize-view.test.ts +818 -9
- package/tests/visual-layout-preview.test.ts +42 -0
- package/tests/visual-profiles.test.ts +11 -0
- package/tests/voice-worker.test.ts +73 -2
- package/tests/windows-session-bootstrap.test.ts +105 -2
- package/tests/windows-session-transport.test.ts +126 -0
- package/tests/work-continuity-contract.test.ts +114 -0
- package/tests/writer-feature-document-admission.test.ts +92 -0
- package/tests/writer-surfaces.test.ts +12 -10
- package/tests/yolo-customize.test.ts +57 -15
- package/tests/yolo-mode-runtime.test.ts +4 -2
- package/tests/yolo-mode.test.ts +39 -20
- package/tests/yolo-session-policy.test.ts +270 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
import { mkdtempSync, rmSync, truncateSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { tmpdir } from "node:os";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { parsePathTokens, readPastedImagePaths } from "../lib/pasted-image-paths.ts";
|
|
7
|
+
|
|
8
|
+
// Herdr hands a clipboard image to a terminal on another machine as a temp-file
|
|
9
|
+
// path, and dropped or file-manager-copied images arrive as quoted paths. Those
|
|
10
|
+
// pastes must become chips instead of text.
|
|
11
|
+
|
|
12
|
+
const PNG_2X1 = new Uint8Array([
|
|
13
|
+
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
|
|
14
|
+
0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
|
|
15
|
+
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01,
|
|
16
|
+
0x08, 0x06, 0x00, 0x00, 0x00,
|
|
17
|
+
]);
|
|
18
|
+
const JPEG = new Uint8Array([0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10]);
|
|
19
|
+
const GIF = new Uint8Array([0x47, 0x49, 0x46, 0x38, 0x39, 0x61]);
|
|
20
|
+
const WEBP = new Uint8Array([0x52, 0x49, 0x46, 0x46, 0x20, 0x00, 0x00, 0x00, 0x57, 0x45, 0x42, 0x50]);
|
|
21
|
+
|
|
22
|
+
type Files = Record<string, Uint8Array>;
|
|
23
|
+
|
|
24
|
+
function filesystem(files: Files, home = "/home/devel") {
|
|
25
|
+
return {
|
|
26
|
+
home,
|
|
27
|
+
readFile: (path: string) => {
|
|
28
|
+
const bytes = files[path];
|
|
29
|
+
if (!bytes) throw new Error(`ENOENT: ${path}`);
|
|
30
|
+
return bytes;
|
|
31
|
+
},
|
|
32
|
+
isFile: (path: string) => path in files,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
test("a bare image path from Herdr's clipboard bridge becomes an image", () => {
|
|
37
|
+
const options = filesystem({ "/tmp/client-1-clipboard-99.png": PNG_2X1 });
|
|
38
|
+
assert.deepEqual(
|
|
39
|
+
readPastedImagePaths("/tmp/client-1-clipboard-99.png", options).map((image) => image.mimeType),
|
|
40
|
+
["image/png"],
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test("Herdr's quoted paths keep spaces and become one chip per file", () => {
|
|
45
|
+
const options = filesystem({
|
|
46
|
+
"/tmp/herdr paste/a.png": PNG_2X1,
|
|
47
|
+
"/tmp/herdr paste/b.jpg": JPEG,
|
|
48
|
+
});
|
|
49
|
+
const images = readPastedImagePaths("'/tmp/herdr paste/a.png' '/tmp/herdr paste/b.jpg' ", options);
|
|
50
|
+
assert.deepEqual(images.map((image) => image.mimeType), ["image/png", "image/jpeg"]);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test("an escaped quote inside a quoted path stays part of the name", () => {
|
|
54
|
+
const options = filesystem({ "/tmp/it's/one.gif": GIF });
|
|
55
|
+
assert.deepEqual(readPastedImagePaths("'/tmp/it'\\''s/one.gif'", options).map((image) => image.mimeType), ["image/gif"]);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test("newline-separated paths, ~ and file:// URLs resolve", () => {
|
|
59
|
+
const options = filesystem({
|
|
60
|
+
"/home/devel/shot.webp": WEBP,
|
|
61
|
+
"/tmp/other.png": PNG_2X1,
|
|
62
|
+
});
|
|
63
|
+
const pasted = `${"/tmp/other.png"}\n~/shot.webp`;
|
|
64
|
+
assert.deepEqual(readPastedImagePaths(pasted, options).map((image) => image.mimeType), ["image/png", "image/webp"]);
|
|
65
|
+
assert.deepEqual(
|
|
66
|
+
readPastedImagePaths("file:///tmp/other.png", options).map((image) => image.mimeType),
|
|
67
|
+
["image/png"],
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test("text, a sentence mentioning a path, or a mix with it stays Pi's paste", () => {
|
|
72
|
+
const options = filesystem({ "/tmp/shot.png": PNG_2X1 });
|
|
73
|
+
assert.deepEqual(readPastedImagePaths("", options), []);
|
|
74
|
+
assert.deepEqual(readPastedImagePaths("look at /tmp/shot.png please", options), []);
|
|
75
|
+
assert.deepEqual(readPastedImagePaths("/tmp/shot.png and more", options), []);
|
|
76
|
+
assert.deepEqual(readPastedImagePaths("/tmp/shot.png\n/tmp/missing.png", options), []);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
test("missing files, non-image extensions and foreign bytes are not images", () => {
|
|
80
|
+
const notAnImage = new Uint8Array([0x00, 0x01, 0x02, 0x03]);
|
|
81
|
+
const options = filesystem({
|
|
82
|
+
"/tmp/missing.png": PNG_2X1,
|
|
83
|
+
"/tmp/notes.txt": PNG_2X1,
|
|
84
|
+
"/tmp/fake.png": notAnImage,
|
|
85
|
+
"relative/shot.png": PNG_2X1,
|
|
86
|
+
});
|
|
87
|
+
assert.deepEqual(readPastedImagePaths("/tmp/absent.png", options), []);
|
|
88
|
+
assert.deepEqual(readPastedImagePaths("/tmp/notes.txt", options), []);
|
|
89
|
+
assert.deepEqual(readPastedImagePaths("/tmp/fake.png", options), []);
|
|
90
|
+
assert.deepEqual(readPastedImagePaths("relative/shot.png", options), []);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
test("a paste of more than eight paths stays Pi's paste", () => {
|
|
94
|
+
const files: Files = {};
|
|
95
|
+
const tokens: string[] = [];
|
|
96
|
+
for (let index = 0; index < 9; index += 1) {
|
|
97
|
+
files[`/tmp/${index}.png`] = PNG_2X1;
|
|
98
|
+
tokens.push(`/tmp/${index}.png`);
|
|
99
|
+
}
|
|
100
|
+
assert.deepEqual(readPastedImagePaths(tokens.join(" "), filesystem(files)), []);
|
|
101
|
+
assert.equal(readPastedImagePaths(tokens.slice(0, 8).join(" "), filesystem(files)).length, 8);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test("token parsing handles single quotes, double quotes, escapes and newlines", () => {
|
|
105
|
+
assert.deepEqual(parsePathTokens("'a b.png' \"c d.png\" e\\ f.png"), ["a b.png", "c d.png", "e f.png"]);
|
|
106
|
+
assert.deepEqual(parsePathTokens("\n/tmp/a.png\n\n/tmp/b.png\r\n"), ["/tmp/a.png", "/tmp/b.png"]);
|
|
107
|
+
assert.deepEqual(parsePathTokens("'/tmp/it'\\''s.png'"), ["/tmp/it's.png"]);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
test("an oversized file is rejected before its bytes are read", () => {
|
|
111
|
+
// A sparse file keeps this cheap while still exceeding the 64 MiB cap.
|
|
112
|
+
const directory = mkdtempSync(join(tmpdir(), "gentle-pasted-path-"));
|
|
113
|
+
const path = join(directory, "huge.png");
|
|
114
|
+
writeFileSync(path, PNG_2X1);
|
|
115
|
+
truncateSync(path, 64 * 1024 * 1024 + 1);
|
|
116
|
+
assert.deepEqual(readPastedImagePaths(path, {}), []);
|
|
117
|
+
rmSync(directory, { recursive: true, force: true });
|
|
118
|
+
});
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import test from "node:test";
|
|
6
|
+
import { __testing } from "../extensions/gentle-ai.ts";
|
|
7
|
+
|
|
8
|
+
const { confirmCommand, evaluateGuardedCommand, loadRuntimeGuardrailsConfig, saveGuardedCommandAllowAlways } = __testing as {
|
|
9
|
+
confirmCommand: (command: string, ctx: unknown, events: unknown, herdrLifecycle: unknown, yoloActive?: boolean, autoGate?: unknown, superActive?: boolean) => Promise<{ block: true; reason: string } | undefined>;
|
|
10
|
+
evaluateGuardedCommand: (command: string, config: { autonomousMode: boolean; guardedCommands: Record<string, string> }) => { action: string; dataLoss?: boolean; key?: string };
|
|
11
|
+
loadRuntimeGuardrailsConfig: (cwd: string, options?: { gentlePiConfigHome?: string }) => { autonomousMode: boolean; guardedCommands: Record<string, string> };
|
|
12
|
+
saveGuardedCommandAllowAlways: (key: string, options?: { gentlePiConfigHome?: string }) => boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
interface Harness {
|
|
16
|
+
home: string;
|
|
17
|
+
pendingSelection: string | undefined;
|
|
18
|
+
selectCalls: Array<{ prompt: string; choices: string[] }>;
|
|
19
|
+
confirmCalls: string[];
|
|
20
|
+
selectWith(value: string | undefined): void;
|
|
21
|
+
setConfigHome(): void;
|
|
22
|
+
restoreConfigHome(): void;
|
|
23
|
+
ctx(sessionManager?: object): Record<string, unknown>;
|
|
24
|
+
events: { emitted: Array<{ state: string }>; emit(_name: string, payload: { state: string }): void };
|
|
25
|
+
lifecycle: { began: number; settled: number; begin(): void; settle(): void };
|
|
26
|
+
run(command: string, sessionManager?: object): Promise<{ block: true; reason: string } | undefined>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function makeHarness(): Harness {
|
|
30
|
+
const home = mkdtempSync(join(tmpdir(), "permission-allowlist-"));
|
|
31
|
+
const previousConfigHome = process.env.GENTLE_PI_CONFIG_HOME;
|
|
32
|
+
const harness: Harness = {
|
|
33
|
+
home,
|
|
34
|
+
selectCalls: [],
|
|
35
|
+
confirmCalls: [],
|
|
36
|
+
pendingSelection: undefined as string | undefined,
|
|
37
|
+
selectWith(value: string | undefined) { harness.pendingSelection = value; },
|
|
38
|
+
setConfigHome() { process.env.GENTLE_PI_CONFIG_HOME = home; },
|
|
39
|
+
restoreConfigHome() {
|
|
40
|
+
if (previousConfigHome === undefined) delete process.env.GENTLE_PI_CONFIG_HOME;
|
|
41
|
+
else process.env.GENTLE_PI_CONFIG_HOME = previousConfigHome;
|
|
42
|
+
},
|
|
43
|
+
ctx(sessionManager: object = { id: "manager" }) {
|
|
44
|
+
return {
|
|
45
|
+
cwd: home,
|
|
46
|
+
sessionManager,
|
|
47
|
+
hasUI: true,
|
|
48
|
+
ui: {
|
|
49
|
+
select: async (prompt: string, choices: string[]) => {
|
|
50
|
+
harness.selectCalls.push({ prompt, choices });
|
|
51
|
+
return harness.pendingSelection;
|
|
52
|
+
},
|
|
53
|
+
confirm: async (title: string, _message: string) => {
|
|
54
|
+
harness.confirmCalls.push(title);
|
|
55
|
+
return harness.pendingSelection === "Allow once";
|
|
56
|
+
},
|
|
57
|
+
notify: () => {},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
events: {
|
|
62
|
+
emitted: [],
|
|
63
|
+
emit(_name: string, payload: { state: string }) { harness.events.emitted.push(payload); },
|
|
64
|
+
},
|
|
65
|
+
lifecycle: {
|
|
66
|
+
began: 0, settled: 0,
|
|
67
|
+
begin() { harness.lifecycle.began += 1; },
|
|
68
|
+
settle() { harness.lifecycle.settled += 1; },
|
|
69
|
+
},
|
|
70
|
+
async run(command: string, sessionManager?: object) {
|
|
71
|
+
return await confirmCommand(command, harness.ctx(sessionManager), harness.events, harness.lifecycle);
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
return harness;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
test("normal-mode confirmation dialog offers once, session and always scopes", async () => {
|
|
78
|
+
const harness = makeHarness();
|
|
79
|
+
harness.setConfigHome();
|
|
80
|
+
try {
|
|
81
|
+
harness.selectWith("Allow once");
|
|
82
|
+
const result = await harness.run("git push origin main", { id: "m1" });
|
|
83
|
+
assert.equal(result, undefined);
|
|
84
|
+
assert.equal(harness.selectCalls.length, 1);
|
|
85
|
+
const { prompt, choices } = harness.selectCalls[0];
|
|
86
|
+
assert.match(prompt, /git push origin main/);
|
|
87
|
+
assert.deepEqual(choices, ["Allow once", "Allow for this session", "Always allow git push", "Deny"]);
|
|
88
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
test("allow once asks again; allow for this session remembers the exact command", async () => {
|
|
92
|
+
const harness = makeHarness();
|
|
93
|
+
harness.setConfigHome();
|
|
94
|
+
try {
|
|
95
|
+
const manager = { id: "m2" };
|
|
96
|
+
harness.selectWith("Allow once");
|
|
97
|
+
assert.equal(await harness.run("git push origin main", manager), undefined);
|
|
98
|
+
assert.equal(await harness.run("git push origin main", manager), undefined);
|
|
99
|
+
assert.equal(harness.selectCalls.length, 2);
|
|
100
|
+
|
|
101
|
+
const manager2 = { id: "m3" };
|
|
102
|
+
harness.selectWith("Allow for this session");
|
|
103
|
+
assert.equal(await harness.run("git push origin main", manager2), undefined);
|
|
104
|
+
assert.equal(await harness.run("git push origin main", manager2), undefined);
|
|
105
|
+
assert.equal(harness.selectCalls.length, 3);
|
|
106
|
+
// A different exact command asks again.
|
|
107
|
+
harness.selectWith("Allow for this session");
|
|
108
|
+
assert.equal(await harness.run("git push origin feature-branch", manager2), undefined);
|
|
109
|
+
assert.equal(harness.selectCalls.length, 4);
|
|
110
|
+
// A different session never inherits the grant.
|
|
111
|
+
harness.selectWith("Allow for this session");
|
|
112
|
+
assert.equal(await harness.run("git push origin main", { id: "m4" }), undefined);
|
|
113
|
+
assert.equal(harness.selectCalls.length, 5);
|
|
114
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test("deny keeps blocking with the existing reason and permission events", async () => {
|
|
118
|
+
const harness = makeHarness();
|
|
119
|
+
harness.setConfigHome();
|
|
120
|
+
try {
|
|
121
|
+
harness.selectWith("Deny");
|
|
122
|
+
const result = await harness.run("git push origin main", { id: "m5" });
|
|
123
|
+
assert.ok(result?.block);
|
|
124
|
+
assert.match(result.reason, /not confirmed/);
|
|
125
|
+
assert.deepEqual(harness.events.emitted.map(event => event.state), ["waiting", "denied"]);
|
|
126
|
+
assert.equal(harness.lifecycle.began, 1);
|
|
127
|
+
assert.equal(harness.lifecycle.settled, 1);
|
|
128
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
test("data-loss commands never offer an always-allow scope", async () => {
|
|
132
|
+
const harness = makeHarness();
|
|
133
|
+
harness.setConfigHome();
|
|
134
|
+
try {
|
|
135
|
+
harness.selectWith("Allow for this session");
|
|
136
|
+
const manager = { id: "m6" };
|
|
137
|
+
assert.equal(await harness.run("rm -rf data", manager), undefined);
|
|
138
|
+
assert.equal(harness.selectCalls.length, 1);
|
|
139
|
+
const { choices } = harness.selectCalls[0];
|
|
140
|
+
assert.ok(choices.includes("Allow for this session"));
|
|
141
|
+
assert.ok(!choices.some(choice => choice.startsWith("Always allow")));
|
|
142
|
+
// The exact approved command asks no more this session.
|
|
143
|
+
assert.equal(await harness.run("rm -rf data", manager), undefined);
|
|
144
|
+
assert.equal(harness.selectCalls.length, 1);
|
|
145
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
test("always allow persists the guarded key in the user config and future calls skip the dialog", async () => {
|
|
149
|
+
const harness = makeHarness();
|
|
150
|
+
harness.setConfigHome();
|
|
151
|
+
try {
|
|
152
|
+
const manager = { id: "m7" };
|
|
153
|
+
harness.selectWith("Always allow git push");
|
|
154
|
+
assert.equal(await harness.run("git push origin main", manager), undefined);
|
|
155
|
+
const configPath = join(harness.home, "runtime-guardrails.json");
|
|
156
|
+
assert.ok(existsSync(configPath));
|
|
157
|
+
const saved = JSON.parse(readFileSync(configPath, "utf8"));
|
|
158
|
+
assert.equal(saved.guardedCommands.gitPush, "allow");
|
|
159
|
+
// The persisted allow short-circuits evaluation in normal mode.
|
|
160
|
+
const evaluation = evaluateGuardedCommand("git push origin main", loadRuntimeGuardrailsConfig(harness.home));
|
|
161
|
+
assert.equal(evaluation.action, "allow");
|
|
162
|
+
// A brand-new session with the same command runs without any dialog.
|
|
163
|
+
assert.equal(await harness.run("git push origin main", { id: "m8" }), undefined);
|
|
164
|
+
assert.equal(harness.selectCalls.length, 1);
|
|
165
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
test("saveGuardedCommandAllowAlways refuses to rewrite a malformed config", () => {
|
|
169
|
+
const home = mkdtempSync(join(tmpdir(), "permission-allowlist-malformed-"));
|
|
170
|
+
try {
|
|
171
|
+
mkdirSync(home, { recursive: true });
|
|
172
|
+
writeFileSync(join(home, "runtime-guardrails.json"), "{ not json");
|
|
173
|
+
assert.equal(saveGuardedCommandAllowAlways("gitPush", { gentlePiConfigHome: home }), false);
|
|
174
|
+
assert.equal(readFileSync(join(home, "runtime-guardrails.json"), "utf8"), "{ not json");
|
|
175
|
+
} finally { rmSync(home, { recursive: true, force: true }); }
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
test("host without ui.select keeps the plain confirm dialog", async () => {
|
|
179
|
+
const harness = makeHarness();
|
|
180
|
+
harness.setConfigHome();
|
|
181
|
+
try {
|
|
182
|
+
const manager = { id: "m9" };
|
|
183
|
+
const ctx = harness.ctx(manager) as { ui: Record<string, unknown> };
|
|
184
|
+
delete ctx.ui.select;
|
|
185
|
+
harness.pendingSelection = "Allow once";
|
|
186
|
+
const result = await confirmCommand("git push origin main", ctx, harness.events, harness.lifecycle);
|
|
187
|
+
assert.equal(result, undefined);
|
|
188
|
+
assert.equal(harness.confirmCalls.length, 1);
|
|
189
|
+
assert.equal(harness.selectCalls.length, 0);
|
|
190
|
+
assert.deepEqual(harness.events.emitted.map(event => event.state), ["waiting", "approved"]);
|
|
191
|
+
} finally { harness.restoreConfigHome(); rmSync(harness.home, { recursive: true, force: true }); }
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
test("normal mode keeps confirm default and honors explicit allow from user config", () => {
|
|
195
|
+
const config = { autonomousMode: false, guardedCommands: {} };
|
|
196
|
+
assert.equal(evaluateGuardedCommand("git push origin main", config).action, "confirm");
|
|
197
|
+
assert.equal(evaluateGuardedCommand("git rebase main", config).action, "confirm");
|
|
198
|
+
const allowConfig = { autonomousMode: false, guardedCommands: { gitPush: "allow" } };
|
|
199
|
+
assert.equal(evaluateGuardedCommand("git push origin main", allowConfig).action, "allow");
|
|
200
|
+
const confirmConfig = { autonomousMode: false, guardedCommands: { gitPush: "confirm" } };
|
|
201
|
+
assert.equal(evaluateGuardedCommand("git push origin main", confirmConfig).action, "confirm");
|
|
202
|
+
});
|
|
@@ -2,7 +2,8 @@ import assert from "node:assert/strict";
|
|
|
2
2
|
import test from "node:test";
|
|
3
3
|
import { __testing } from "../extensions/gentle-ai.ts";
|
|
4
4
|
|
|
5
|
-
// gentle-shell #55 / #57 / #125: the reply language is inferred every
|
|
5
|
+
// gentle-shell #55 / #57 / #125 / #2348: the reply language is inferred every
|
|
6
|
+
// turn,
|
|
6
7
|
// never stored, so the persona prompt itself must say how to infer it. The
|
|
7
8
|
// rule lives on the single existing language-match bullet (the concept-level
|
|
8
9
|
// duplication guard allows exactly one), so these tests read the rendered
|
|
@@ -23,6 +24,24 @@ for (const persona of ["gentleman", "neutral"] as const) {
|
|
|
23
24
|
`${persona} prompt must forbid a Spanish default, so an English message never gets a Spanish reply (#125)`,
|
|
24
25
|
);
|
|
25
26
|
});
|
|
27
|
+
test(`[${persona}] harness-generated turns are never a language signal (#2348)`, () => {
|
|
28
|
+
const prompt = __testing.buildGentlePrompt(persona);
|
|
29
|
+
assert.match(
|
|
30
|
+
prompt,
|
|
31
|
+
/Only a message written by the human can select or change the reply language/,
|
|
32
|
+
`${persona} prompt must let only a human-authored message change the reply language (#2348)`,
|
|
33
|
+
);
|
|
34
|
+
assert.match(
|
|
35
|
+
prompt,
|
|
36
|
+
/subagent completion and progress notifications, background job notices, todo and system reminders, tool output, skill bodies, and injected memory never count as a language signal, even when delivered with the user role/,
|
|
37
|
+
`${persona} prompt must exclude harness-generated user-role turns, so an English subagent or background notification cannot flip the session to English (#2348)`,
|
|
38
|
+
);
|
|
39
|
+
assert.match(
|
|
40
|
+
prompt,
|
|
41
|
+
/Translate relayed subagent findings into the selected reply language/,
|
|
42
|
+
`${persona} prompt must require translating relayed subagent findings (#2348)`,
|
|
43
|
+
);
|
|
44
|
+
});
|
|
26
45
|
}
|
|
27
46
|
|
|
28
47
|
test("[neutral] the voseo prohibition covers regular and irregular forms, not only four irregular verbs (#55)", () => {
|
|
@@ -6,15 +6,16 @@ const PI = '@earendil-works/pi-coding-agent';
|
|
|
6
6
|
// A virtual symlink filesystem: listed global links point into a pnpm store.
|
|
7
7
|
// The store's adjacent peer is a sibling, not Shell/node_modules/Pi.
|
|
8
8
|
function launch(args: string[], scenario = 'owned', piVersion = '1.2.0') {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const source = scenario === 'source';
|
|
10
|
+
const adjacent = source || scenario.startsWith('adjacent');
|
|
11
|
+
const npm = source || scenario.startsWith('npm-');
|
|
11
12
|
const nodeModules = '/global/v11/selected/node_modules';
|
|
12
13
|
const shellRoot = '/store/shell-peer/node_modules/gentle-pi';
|
|
13
14
|
const piRoot = adjacent ? '/store/shell-peer/node_modules/' + PI : '/store/pi/node_modules/' + PI;
|
|
14
15
|
const target = adjacent ? 'gentle-pi' : PI;
|
|
15
16
|
const dependencies: Record<string, object> = {[target]:{path: `${nodeModules}/${target}`,
|
|
16
17
|
...(scenario === 'npm-link' ? {link:true} : {}),
|
|
17
|
-
...(scenario === 'npm-file' ? {resolved:'file:/source/pi'} : {})}};
|
|
18
|
+
...(scenario === 'npm-file' || source ? {resolved:'file:/source/pi'} : {})}};
|
|
18
19
|
if (scenario.endsWith('shared')) dependencies['unrelated'] = {path:`${nodeModules}/unrelated`};
|
|
19
20
|
if (scenario === 'separate') dependencies['unrelated'] = {path:'/global/v11/other/node_modules/unrelated'};
|
|
20
21
|
const groups = [{path:'/global/v11',dependencies}, ...(scenario === 'ambiguous' ? [{path:'/global/other',dependencies}] : [])];
|
|
@@ -22,7 +23,11 @@ function launch(args: string[], scenario = 'owned', piVersion = '1.2.0') {
|
|
|
22
23
|
// pnpm links only the top-level package into the global group; the peer
|
|
23
24
|
// is reachable solely as the Shell package's store sibling.
|
|
24
25
|
const links = {[`${nodeModules}/${target}`]:adjacent ? shellRoot : piRoot};
|
|
25
|
-
|
|
26
|
+
if (source) {
|
|
27
|
+
links[`${shellRoot}/node_modules/${PI}`] = piRoot;
|
|
28
|
+
links[`${shellRoot}/node_modules/${PI}/dist/bundle/cli.js`] = `${piRoot}/dist/bundle/cli.js`;
|
|
29
|
+
}
|
|
30
|
+
const roots = [nodeModules, '/global/v11/other/node_modules', shellRoot, piRoot, `${piRoot}/dist/bundle/cli.js`, `${shellRoot}/.git`, `${shellRoot}/package.json`, `${shellRoot}/package-lock.json`];
|
|
26
31
|
const bootstrap = `import { registerHooks } from 'node:module';
|
|
27
32
|
const original = ${JSON.stringify(new URL('../bin/gentle-shell.mjs', import.meta.url).href)};
|
|
28
33
|
registerHooks({load(url, context, next) {
|
|
@@ -40,12 +45,13 @@ function launch(args: string[], scenario = 'owned', piVersion = '1.2.0') {
|
|
|
40
45
|
}});
|
|
41
46
|
const links = ${JSON.stringify(links)}, roots = ${JSON.stringify(roots)};
|
|
42
47
|
globalThis.fakeAdapters = {
|
|
43
|
-
fs: { realpath: async p => { if (links[p]) return links[p]; if (roots.includes(p)) return p; throw new Error('ENOENT ' + p); },
|
|
44
|
-
readFile: async p => { if (p === '${shellRoot}/package.json') return JSON.stringify({name:'gentle-pi',version:'4.1.0'}); if(p === '${piRoot}/package.json') return JSON.stringify({name:'${PI}',version:'1.2.0',bin:{pi:'dist/bundle/cli.js'}}); throw new Error('ENOENT ' + p); } },
|
|
48
|
+
fs: { realpath: async p => { if (links[p]) return links[p]; if (roots.includes(p)) return p; throw Object.assign(new Error('ENOENT ' + p), {code:'ENOENT'}); },
|
|
49
|
+
readFile: async p => { if (p === '${shellRoot}/package.json') return JSON.stringify({name:'gentle-pi',version:'4.1.0', ...(${source} ? {packageManager:'npm@11.1.1',devDependencies:{'${PI}':'^1.2.0'}} : {})}); if(p === '${piRoot}/package.json') return JSON.stringify({name:'${PI}',version:'1.2.0',bin:{pi:'dist/bundle/cli.js'}}); if (${source} && p === '${shellRoot}/package-lock.json') return '{}'; throw Object.assign(new Error('ENOENT ' + p), {code:'ENOENT'}); } },
|
|
45
50
|
which: async n => n === '${npm ? 'npm' : 'pnpm'}' ? '/fake/' + n : null,
|
|
46
|
-
run: async (cmd, args) => {
|
|
51
|
+
run: async (cmd, args, options) => {
|
|
47
52
|
if(args.includes('list') || args.includes('ls')) return {code:0,stdout:${JSON.stringify(listing)}};
|
|
48
|
-
|
|
53
|
+
if(args.includes('--version')) return {code:0,stdout:'11.1.1'};
|
|
54
|
+
console.log('MUTATION ' + JSON.stringify(args)); if (${source}) console.log('CWD ' + options.cwd); return {code:0};
|
|
49
55
|
}
|
|
50
56
|
};
|
|
51
57
|
await import(original);`;
|
|
@@ -63,6 +69,24 @@ for (const scenario of ['owned','adjacent','separate']) test(`public linked-stor
|
|
|
63
69
|
assert.equal(result.stderr, '');
|
|
64
70
|
});
|
|
65
71
|
|
|
72
|
+
for (const all of [false, true]) test(`public source-linked update uses the checkout and preserves extension forwarding (all: ${all})`, () => {
|
|
73
|
+
const result = launch(all ? ['update', '--all'] : ['update'], 'source');
|
|
74
|
+
assert.equal(result.status, 0, result.stderr);
|
|
75
|
+
assert.equal(result.stderr, '');
|
|
76
|
+
assert.match(result.stdout, /MUTATION \["update","@earendil-works\/pi-coding-agent","--no-save","--ignore-scripts","--global=false","--prefix","\/store\/shell-peer\/node_modules\/gentle-pi","--workspaces=false","--no-audit","--no-fund"\]/);
|
|
77
|
+
assert.match(result.stdout, /CWD \/store\/shell-peer\/node_modules\/gentle-pi/);
|
|
78
|
+
assert.doesNotMatch(result.stdout, /"-g"|@latest/);
|
|
79
|
+
assert.equal(result.stdout.includes('FORWARD ["update","--extensions"]'), all);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('source-linked --latest preserves the ordinary local, range-respecting plan', () => {
|
|
83
|
+
const normal = launch(['update'], 'source');
|
|
84
|
+
const latest = launch(['update', '--latest'], 'source');
|
|
85
|
+
assert.equal(latest.status, 0, latest.stderr);
|
|
86
|
+
assert.deepEqual({status:latest.status, stdout:latest.stdout, stderr:latest.stderr}, {status:normal.status, stdout:normal.stdout, stderr:normal.stderr});
|
|
87
|
+
assert.doesNotMatch(latest.stdout, /"--latest"|"-g"|@latest/);
|
|
88
|
+
});
|
|
89
|
+
|
|
66
90
|
test('public all updates only its owner and then forwards extension updates', () => {
|
|
67
91
|
const result = launch(['update', '--all']);
|
|
68
92
|
assert.equal(result.status, 0, result.stderr);
|
|
@@ -71,6 +95,14 @@ test('public all updates only its owner and then forwards extension updates', ()
|
|
|
71
95
|
assert.equal(result.stderr, '');
|
|
72
96
|
});
|
|
73
97
|
|
|
98
|
+
test('public all stops on ambiguous ownership before forwarding extensions', () => {
|
|
99
|
+
const result = launch(['update', '--all'], 'ambiguous');
|
|
100
|
+
assert.equal(result.status, 1);
|
|
101
|
+
assert.equal(result.stdout, '');
|
|
102
|
+
assert.match(result.stderr, /ownership/);
|
|
103
|
+
assert.doesNotMatch(result.stdout + result.stderr, /MUTATION|FORWARD/);
|
|
104
|
+
});
|
|
105
|
+
|
|
74
106
|
for (const scenario of ['ambiguous', 'malformed', 'npm-link', 'npm-file', 'shared', 'adjacent-shared']) test(`public update rejects ${scenario} ownership without mutation`, () => {
|
|
75
107
|
const result = launch(['update'], scenario);
|
|
76
108
|
assert.equal(result.status, 1, result.stdout);
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { test } from 'node:test';
|
|
3
|
+
import * as fs from 'node:fs/promises';
|
|
4
|
+
import { tmpdir } from 'node:os';
|
|
5
|
+
import { join } from 'node:path';
|
|
6
|
+
import { updateSelectedPi } from '../scripts/pi-update.mjs';
|
|
7
|
+
|
|
8
|
+
const PI = '@earendil-works/pi-coding-agent';
|
|
9
|
+
const CLI = 'dist/bundle/cli.js';
|
|
10
|
+
|
|
11
|
+
async function fixture(t: any, options: {manager?: string, locks?: string[], workspace?: boolean, range?: string, mismatch?: boolean, managerVersion?: string, fail?: boolean, unreadable?: boolean, unlink?: boolean, installedSource?: boolean, configOnly?: boolean, multipleProjects?: boolean} = {}) {
|
|
12
|
+
const temp = await fs.realpath(await fs.mkdtemp(join(tmpdir(), 'pi-source-')));
|
|
13
|
+
t.after(() => fs.rm(temp, {recursive: true, force: true}));
|
|
14
|
+
const root = join(temp, 'checkout');
|
|
15
|
+
const modules = join(temp, 'global', 'node_modules');
|
|
16
|
+
const link = join(modules, 'gentle-pi');
|
|
17
|
+
const peer = join(root, 'node_modules', PI);
|
|
18
|
+
const manager = options.manager ?? 'pnpm';
|
|
19
|
+
const lock = manager === 'npm' ? 'package-lock.json' : 'pnpm-lock.yaml';
|
|
20
|
+
const manifest = JSON.stringify({name: 'gentle-pi', version: '4.4.0', packageManager: `${manager}@11.1.1`, devDependencies: {[PI]: options.range ?? '^1.0.0'}});
|
|
21
|
+
await fs.mkdir(join(root, '.git'), {recursive: true});
|
|
22
|
+
await fs.mkdir(modules, {recursive: true});
|
|
23
|
+
await fs.mkdir(join(peer, 'dist', 'bundle'), {recursive: true});
|
|
24
|
+
await fs.writeFile(join(root, 'package.json'), manifest);
|
|
25
|
+
for (const name of options.locks ?? [lock]) await fs.writeFile(join(root, name), name === 'package-lock.json' ? '{"lockfileVersion":3}' : "lockfileVersion: '9.0'\nimporters:\n .: {}\n");
|
|
26
|
+
if (options.workspace || options.configOnly) await fs.writeFile(join(root, 'pnpm-workspace.yaml'), options.workspace ? 'packages: [packages/*]\n' : 'minimumReleaseAge: 4320\nblockExoticSubdeps: true\n');
|
|
27
|
+
await fs.writeFile(join(peer, 'package.json'), JSON.stringify({name: PI, version: '1.0.0', bin: {pi: CLI}}));
|
|
28
|
+
await fs.writeFile(join(peer, CLI), 'old Pi');
|
|
29
|
+
if (options.installedSource) {
|
|
30
|
+
const source = join(temp, 'Pi-source-checkout');
|
|
31
|
+
await fs.rename(peer, source);
|
|
32
|
+
await fs.mkdir(join(source, '.git'));
|
|
33
|
+
await fs.symlink(source, peer, 'junction');
|
|
34
|
+
}
|
|
35
|
+
await fs.writeFile(join(root, 'unrelated.txt'), 'preserve me');
|
|
36
|
+
await fs.symlink(root, link, 'junction');
|
|
37
|
+
const calls: {command: string, args: string[], cwd?: string, env?: Record<string,string>}[] = [];
|
|
38
|
+
const updates: typeof calls = [];
|
|
39
|
+
const output: string[] = [];
|
|
40
|
+
const snapshot = async () => ({pnpmConfig:options.workspace || options.configOnly ? await fs.readFile(join(root,'pnpm-workspace.yaml'),'utf8') : null, installedRoot:await fs.realpath(peer), installedLink:(await fs.lstat(peer)).isSymbolicLink() ? await fs.readlink(peer) : null, manifest: await fs.readFile(join(root, 'package.json'), 'utf8'), link: await fs.realpath(link), peer: await fs.readFile(join(peer, 'package.json'), 'utf8'), unrelated: await fs.readFile(join(root, 'unrelated.txt'), 'utf8'), locks: await Promise.all((options.locks ?? [lock]).map(name => fs.readFile(join(root, name), 'utf8')))});
|
|
41
|
+
const before = await snapshot();
|
|
42
|
+
const input = {runtime: {kind: 'bundled', command: process.execPath, args: [join(peer, CLI)]}, packageRoot: link, cwd: temp, home: temp, env: {}, currentVersion: '1.0.0', out: (s: string) => output.push(s), adapters: {
|
|
43
|
+
fs,
|
|
44
|
+
which: async (name: string) => `/fake/${name}`,
|
|
45
|
+
run: async (command: string, args: string[], {cwd,env}: {cwd?: string,env?: Record<string,string>} = {}) => {
|
|
46
|
+
calls.push({command, args, cwd, ...(env ? {env} : {})});
|
|
47
|
+
if (args.includes('list') && args.includes('--recursive')) return {code:0, stdout:JSON.stringify(options.multipleProjects ? [{path:root},{path:join(temp,'other-project')}] : [{path:root}])};
|
|
48
|
+
if (args.includes('list')) return {code: 0, stdout: JSON.stringify([{path: join(temp, 'pnpm'), dependencies: {}}])};
|
|
49
|
+
if (args.includes('ls')) return {code: 0, stdout: JSON.stringify({path: join(temp, 'global'), dependencies: {'gentle-pi': {path: link, resolved: 'file:../../checkout'}}})};
|
|
50
|
+
if (args.includes('--version')) return {code: 0, stdout: `${options.managerVersion ?? '11.1.1'}\n`};
|
|
51
|
+
if (args.includes('config')) return {code:0, stdout:options.workspace ? '["packages/*"]\n' : ''};
|
|
52
|
+
updates.push({command, args, cwd, ...(env ? {env} : {})});
|
|
53
|
+
if (options.fail) return {code: 1, stdout: '', stderrTail: 'npm error fixture install failed'};
|
|
54
|
+
if (options.unreadable) await fs.rm(join(peer, 'package.json'));
|
|
55
|
+
else await fs.writeFile(join(peer, 'package.json'), JSON.stringify({name: PI, version: '1.1.0', bin: {pi: CLI}}));
|
|
56
|
+
if (options.unlink) await fs.unlink(link);
|
|
57
|
+
return {code: 0, stdout: ''};
|
|
58
|
+
},
|
|
59
|
+
}};
|
|
60
|
+
if (options.mismatch) {
|
|
61
|
+
const other = join(temp, 'other', CLI);
|
|
62
|
+
await fs.mkdir(join(temp, 'other', 'dist', 'bundle'), {recursive: true});
|
|
63
|
+
await fs.writeFile(other, 'other Pi');
|
|
64
|
+
input.runtime.args = [other];
|
|
65
|
+
}
|
|
66
|
+
return {input, root, peer, link, manager, manifest, output, updates, calls, snapshot, before};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
for (const manager of ['pnpm', 'npm']) test(`source-linked Shell updates only its local Pi using ${manager}, not the global link owner`, async t => {
|
|
70
|
+
const f = await fixture(t, {manager});
|
|
71
|
+
assert.equal(await updateSelectedPi(f.input), 0);
|
|
72
|
+
const flags = manager === 'pnpm' ? ['--dir', f.root, '--lockfile-dir', f.root, '--recursive=false', '--ignore-pnpmfile'] : ['--prefix', f.root, '--workspaces=false', '--no-audit', '--no-fund'];
|
|
73
|
+
assert.deepEqual(f.updates, [{command: `/fake/${manager}`, args: ['update', PI, '--no-save', '--ignore-scripts', '--global=false', ...flags, ...(manager === 'pnpm' ? ['--pm-on-fail=ignore'] : [])], cwd: f.root, ...(manager === 'pnpm' ? {env:{COREPACK_ENABLE_PROJECT_SPEC:'0',COREPACK_ENABLE_NETWORK:'0'}} : {})}]);
|
|
74
|
+
assert.deepEqual(f.output, [`${manager} updated ${PI} in ${f.root}; the selected Pi is now 1.1.0 (was 1.0.0).`]);
|
|
75
|
+
assert.equal(await fs.realpath(f.link), f.root);
|
|
76
|
+
assert.equal(await fs.readFile(join(f.root, 'package.json'), 'utf8'), f.manifest);
|
|
77
|
+
assert.equal(await fs.readFile(join(f.root, 'unrelated.txt'), 'utf8'), 'preserve me');
|
|
78
|
+
assert.ok(f.calls.filter(c => c.args.includes('list') || c.args.includes('ls') || c.args.includes('--version')).every(c => c.cwd === f.input.cwd));
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test('newer pnpm uses its current version without downloading the older project pin', async t => {
|
|
82
|
+
const f = await fixture(t, {managerVersion:'11.5.0', configOnly:true});
|
|
83
|
+
assert.equal(await updateSelectedPi(f.input), 0);
|
|
84
|
+
assert.equal(f.updates.length, 1);
|
|
85
|
+
assert.deepEqual(f.output, [`pnpm updated ${PI} in ${f.root}; the selected Pi is now 1.1.0 (was 1.0.0).`]);
|
|
86
|
+
const projectCalls = f.calls.filter(call => call.args.includes('config') || call.args.includes('--recursive') || call.args[0] === 'update');
|
|
87
|
+
assert.equal(projectCalls.length, 3);
|
|
88
|
+
assert.ok(projectCalls.every(call => call.args.includes('--pm-on-fail=ignore')));
|
|
89
|
+
assert.ok(f.calls.filter(call => call.args.includes('--version') || projectCalls.includes(call)).every(call => call.env?.COREPACK_ENABLE_PROJECT_SPEC === '0' && call.env?.COREPACK_ENABLE_NETWORK === '0'));
|
|
90
|
+
const after = await f.snapshot();
|
|
91
|
+
assert.equal(after.manifest, f.before.manifest);
|
|
92
|
+
assert.equal(after.pnpmConfig, f.before.pnpmConfig);
|
|
93
|
+
assert.equal(after.unrelated, f.before.unrelated);
|
|
94
|
+
assert.equal(after.link, f.before.link);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test('older pnpm refuses before mutation or output', async t => {
|
|
98
|
+
const f = await fixture(t, {managerVersion:'11.1.0'});
|
|
99
|
+
await assert.rejects(updateSelectedPi(f.input), /requires pnpm@11\.1\.1 or newer/);
|
|
100
|
+
assert.deepEqual(f.updates, []);
|
|
101
|
+
assert.deepEqual(f.output, []);
|
|
102
|
+
assert.deepEqual(await f.snapshot(), f.before);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
for (const [name, options] of Object.entries({
|
|
106
|
+
'conflicting lockfiles': {locks: ['pnpm-lock.yaml', 'package-lock.json']},
|
|
107
|
+
'missing lockfile': {locks: []},
|
|
108
|
+
'workspace checkout': {workspace: true},
|
|
109
|
+
'implicit workspace projects': {configOnly:true, multipleProjects:true},
|
|
110
|
+
'unknown project manager': {manager: 'yarn', locks: ['yarn.lock']},
|
|
111
|
+
'a linked Pi dependency': {range: 'file:../pi'},
|
|
112
|
+
'a different selected Pi': {mismatch: true},
|
|
113
|
+
})) test(`source update refuses ${name} without changing files or counters`, async t => {
|
|
114
|
+
const f = await fixture(t, options);
|
|
115
|
+
await assert.rejects(updateSelectedPi(f.input), /ownership/);
|
|
116
|
+
assert.deepEqual(f.updates, []);
|
|
117
|
+
assert.deepEqual(f.output, []);
|
|
118
|
+
assert.deepEqual(await f.snapshot(), f.before);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test('source update preserves root-only pnpm security configuration instead of ignoring it', async t => {
|
|
122
|
+
const f = await fixture(t, {configOnly:true});
|
|
123
|
+
assert.equal(await updateSelectedPi(f.input), 0);
|
|
124
|
+
assert.equal(f.updates.length, 1);
|
|
125
|
+
assert.ok(f.calls.some(call => call.args.includes('config') && call.args.includes('packages')));
|
|
126
|
+
assert.ok(f.updates[0].args.includes('--workspace-root'));
|
|
127
|
+
assert.ok(f.updates[0].args.includes('--recursive=false'));
|
|
128
|
+
assert.ok(!f.updates[0].args.includes('--ignore-workspace'));
|
|
129
|
+
assert.equal((await f.snapshot()).pnpmConfig, f.before.pnpmConfig);
|
|
130
|
+
assert.equal(await fs.readFile(join(f.root,'package.json'),'utf8'), f.manifest);
|
|
131
|
+
assert.equal(await fs.realpath(f.link), f.root);
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
test('source update refuses an installed Pi source override despite a registry range', async t => {
|
|
135
|
+
const f = await fixture(t, {installedSource:true});
|
|
136
|
+
await assert.rejects(updateSelectedPi(f.input), /source Pi is a linked source checkout/);
|
|
137
|
+
assert.deepEqual(f.updates, []);
|
|
138
|
+
assert.deepEqual(f.output, []);
|
|
139
|
+
assert.deepEqual(await f.snapshot(), f.before);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
test('source update failure reports the real manager error and never retries', async t => {
|
|
143
|
+
const f = await fixture(t, {manager: 'npm', fail: true});
|
|
144
|
+
await assert.rejects(updateSelectedPi(f.input), /npm error fixture install failed/);
|
|
145
|
+
assert.equal(f.updates.length, 1);
|
|
146
|
+
assert.deepEqual(f.output, []);
|
|
147
|
+
assert.deepEqual(await f.snapshot(), f.before);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
test('source update reports unavailable readback instead of claiming a version', async t => {
|
|
151
|
+
const f = await fixture(t, {unreadable: true});
|
|
152
|
+
assert.equal(await updateSelectedPi(f.input), 0);
|
|
153
|
+
assert.match(f.output.join('\n'), /version.*could not be read back/);
|
|
154
|
+
assert.doesNotMatch(f.output.join('\n'), /is now/);
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
test('source update cannot claim success when its global Shell link disappeared', async t => {
|
|
158
|
+
const f = await fixture(t, {unlink: true});
|
|
159
|
+
await assert.rejects(updateSelectedPi(f.input), /Shell link.*changed/);
|
|
160
|
+
assert.equal(f.updates.length, 1);
|
|
161
|
+
assert.deepEqual(f.output, []);
|
|
162
|
+
});
|