@timurproko/a1 0.1.8-dev.472 → 0.1.8-dev.508
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/bin/cli.js +4 -5
- package/bin/guardian.js +5 -1
- package/bin/module-identity.js +53 -98
- package/bin/module-resolver.js +138 -0
- package/bin/pinned-pi-public.js +25 -6
- package/bin/ui.js +7 -2
- package/bin/update-recovery.js +76 -7
- package/bin/warmup.js +3 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/clipboard-diagnostics.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/clipboard-image.js +1 -1
- package/dist/app/session-shell/helper-pool.d.ts +33 -0
- package/dist/app/session-shell/helper-pool.js +98 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-preparation-client.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-preparation-client.js +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-preparation.js +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-source.js +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-worker.js +1 -1
- package/dist/app/session-shell/index.d.ts +7 -0
- package/dist/app/session-shell/index.js +4 -0
- package/dist/app/session-shell/paste-executor.d.ts +18 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-executor.js +50 -29
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-helper.js +1 -1
- package/dist/app/session-shell/paste-preparation-client.d.ts +31 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-preparation-client.js +19 -8
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-protocol.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-protocol.js +1 -1
- package/dist/app/session-shell/paste-text-preparation.d.ts +6 -0
- package/dist/{integrations/pi/session-ui/paste-text-preparation.d.ts → app/session-shell/paste-types.d.ts} +1 -4
- package/dist/{integrations/pi/session-ui → app/session-shell}/path-chip-presentation.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-chips.d.ts +5 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-chips.js +6 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-history-controller.d.ts +2 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-history-controller.js +2 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-suggestion-controller.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/prompt-suggestion-controller.js +2 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/quit-outro.js +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-coordinator.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-coordinator.js +3 -5
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-helper.js +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-protocol.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-transport.d.ts +10 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-transport.js +45 -19
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-shell-root.d.ts +75 -53
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-shell-root.js +30 -20
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-shell.d.ts +9 -8
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-shell.js +108 -67
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-viewport-controller.d.ts +5 -5
- package/dist/{integrations/pi/session-ui → app/session-shell}/session-viewport-controller.js +5 -5
- package/dist/{integrations/pi/session-ui → app/session-shell}/system-clipboard.d.ts +1 -1
- package/dist/{integrations/pi/session-ui → app/session-shell}/system-clipboard.js +1 -1
- package/dist/cli/index.d.ts +8 -5
- package/dist/cli/index.js +4 -5
- package/dist/composition/index.d.ts +0 -1
- package/dist/composition/index.js +0 -1
- package/dist/composition/owned-ui.d.ts +2 -2
- package/dist/composition/owned-ui.js +35 -36
- package/dist/composition/settings-route-host.d.ts +2 -2
- package/dist/contracts/agent-engine/domain.d.ts +6 -1
- package/dist/contracts/agent-engine/index.d.ts +11 -8
- package/dist/contracts/agent-engine/index.js +6 -8
- package/dist/contracts/owned-ui/extension-ui.d.ts +8 -0
- package/dist/contracts/owned-ui/index.d.ts +12 -8
- package/dist/contracts/owned-ui/index.js +8 -8
- package/dist/features/launch/index.d.ts +12 -6
- package/dist/features/launch/index.js +6 -6
- package/dist/features/launch/intent.d.ts +5 -5
- package/dist/features/launch/intent.js +2 -2
- package/dist/features/owned-ui/index.d.ts +6 -6
- package/dist/features/owned-ui/index.js +4 -6
- package/dist/features/owned-ui/run.d.ts +2 -2
- package/dist/features/owned-ui/settings-app.d.ts +2 -2
- package/dist/features/owned-ui/settings-app.js +18 -5
- package/dist/features/prompt-history/service.d.ts +1 -1
- package/dist/features/prompt-history/service.js +1 -1
- package/dist/features/prompt-history/store.js +3 -7
- package/dist/features/prompt-suggestions/diagnostics.js +1 -1
- package/dist/features/prompt-suggestions/index.d.ts +2 -1
- package/dist/features/prompt-suggestions/index.js +1 -1
- package/dist/foundation/launch-guardian/index.d.ts +2 -1
- package/dist/foundation/launch-guardian/index.js +1 -1
- package/dist/foundation/lifecycle/index.d.ts +11 -6
- package/dist/foundation/lifecycle/index.js +5 -6
- package/dist/foundation/process-containment/index.d.ts +8 -6
- package/dist/foundation/process-containment/index.js +6 -6
- package/dist/foundation/process-containment/native-guardian-containment.js +3 -3
- package/dist/foundation/protocol/index.d.ts +3 -2
- package/dist/foundation/protocol/index.js +2 -2
- package/dist/foundation/release/bootstrap.d.ts +0 -4
- package/dist/foundation/release/bootstrap.js +1 -82
- package/dist/foundation/release/dependency-layer.d.ts +2 -5
- package/dist/foundation/release/endpoints.d.ts +4 -0
- package/dist/foundation/release/endpoints.js +86 -2
- package/dist/foundation/release/index.d.ts +30 -16
- package/dist/foundation/release/index.js +16 -16
- package/dist/foundation/release/release.d.ts +1 -1
- package/dist/foundation/release/types.d.ts +11 -0
- package/dist/foundation/release/types.js +1 -0
- package/dist/foundation/release/update-transaction.d.ts +1 -1
- package/dist/foundation/release/update.d.ts +2 -1
- package/dist/foundation/release/update.js +3 -18
- package/dist/foundation/startup/index.d.ts +4 -2
- package/dist/foundation/startup/index.js +2 -2
- package/dist/foundation/startup/startup-descriptor.js +2 -2
- package/dist/foundation/storage/control-store.d.ts +1 -45
- package/dist/foundation/storage/control-store.js +54 -277
- package/dist/foundation/storage/index.d.ts +1 -1
- package/dist/foundation/storage/index.js +1 -1
- package/dist/foundation/supervision/index.d.ts +2 -2
- package/dist/foundation/supervision/index.js +2 -2
- package/dist/foundation/supervision/server.d.ts +5 -10
- package/dist/foundation/supervision/server.js +7 -7
- package/dist/foundation/terminal-cleanup/index.d.ts +3 -2
- package/dist/foundation/terminal-cleanup/index.js +2 -2
- package/dist/integrations/pi/components/editor-interaction.d.ts +1 -1
- package/dist/integrations/pi/components/history-editor-loader.d.ts +1 -1
- package/dist/integrations/pi/components/index.d.ts +20 -13
- package/dist/integrations/pi/components/index.js +12 -13
- package/dist/integrations/pi/components/owned-editor-ux.js +5 -8
- package/dist/integrations/pi/components/resources/builtin-themes.d.ts +7 -5
- package/dist/integrations/pi/components/resources/builtin-themes.js +7 -5
- package/dist/integrations/pi/components/shell-editor-autocomplete.js +1 -1
- package/dist/integrations/pi/components/shell-extension-ui.js +2 -1
- package/dist/integrations/pi/components/shell-footer-status.js +1 -1
- package/dist/integrations/pi/components/shell-presenters-info.d.ts +1 -1
- package/dist/integrations/pi/components/shell-presenters-info.js +1 -1
- package/dist/integrations/pi/components/shell-presenters-transcript.js +1 -1
- package/dist/integrations/pi/components/shell-selectors-dialogs.d.ts +9 -3
- package/dist/integrations/pi/components/shell-selectors-dialogs.js +9 -6
- package/dist/integrations/pi/components/shell-shared-facade.d.ts +3 -1
- package/dist/integrations/pi/components/shell-shared-facade.js +4 -2
- package/dist/integrations/pi/components/submitted-prompt-adapter.d.ts +1 -1
- package/dist/integrations/pi/components/submitted-prompt-adapter.js +1 -1
- package/dist/integrations/pi/components/tool-image-presentation.d.ts +1 -1
- package/dist/integrations/pi/components/tool-image-presentation.js +4 -7
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +36 -22
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +43 -7
- package/dist/integrations/pi/components/upstream/assets/earendil-image.json +2 -2
- package/dist/integrations/pi/components/upstream/components/countdown-timer.d.ts +6 -3
- package/dist/integrations/pi/components/upstream/components/daxnuts.d.ts +8 -1
- package/dist/integrations/pi/components/upstream/components/daxnuts.js +7 -3
- package/dist/integrations/pi/components/upstream/components/earendil-announcement.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/earendil-announcement.js +10 -4
- package/dist/integrations/pi/components/upstream/components/extension-editor.d.ts +7 -4
- package/dist/integrations/pi/components/upstream/components/extension-editor.js +7 -4
- package/dist/integrations/pi/components/upstream/components/mermaid.js +8 -4
- package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +9 -5
- package/dist/integrations/pi/components/upstream/components/owned-editor.js +10 -6
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +8 -4
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.js +27 -25
- package/dist/integrations/pi/components/upstream/components/session-footer.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/session-footer.js +8 -10
- package/dist/integrations/pi/components/upstream/components/session-selector-search.js +6 -4
- package/dist/integrations/pi/components/upstream/components/session-selector.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/session-selector.js +8 -4
- package/dist/integrations/pi/components/upstream/components/skill-invocation-message.d.ts +7 -5
- package/dist/integrations/pi/components/upstream/components/skill-invocation-message.js +8 -6
- package/dist/integrations/pi/components/upstream/components/status-indicator.d.ts +9 -4
- package/dist/integrations/pi/components/upstream/components/status-indicator.js +15 -5
- package/dist/integrations/pi/components/upstream/components/tool-execution.d.ts +8 -2
- package/dist/integrations/pi/components/upstream/components/tool-execution.js +58 -37
- package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +7 -4
- package/dist/integrations/pi/components/upstream/components/tree-selector.js +7 -4
- package/dist/integrations/pi/components/upstream/components/trust-selector.d.ts +1 -1
- package/dist/integrations/pi/components/upstream/components/trust-selector.js +10 -5
- package/dist/integrations/pi/components/upstream/external-editor.js +8 -4
- package/dist/integrations/pi/components/upstream/history/editor-core.d.ts +13 -4
- package/dist/integrations/pi/components/upstream/history/editor-core.js +112 -30
- package/dist/integrations/pi/components/upstream/history/kill-ring.d.ts +6 -3
- package/dist/integrations/pi/components/upstream/history/kill-ring.js +6 -3
- package/dist/integrations/pi/components/upstream/history/printable-key.js +7 -4
- package/dist/integrations/pi/components/upstream/history/text-helpers.js +6 -3
- package/dist/integrations/pi/components/upstream/history/undo-stack.d.ts +6 -3
- package/dist/integrations/pi/components/upstream/history/undo-stack.js +6 -3
- package/dist/integrations/pi/components/upstream/history/word-navigation.js +6 -3
- package/dist/integrations/pi/components/upstream/model-search.d.ts +5 -2
- package/dist/integrations/pi/components/upstream/theme/theme-controller.d.ts +8 -0
- package/dist/integrations/pi/components/upstream/theme/theme-controller.js +0 -3
- package/dist/integrations/pi/components/upstream/theme/theme.d.ts +2 -2
- package/dist/integrations/pi/components/upstream/theme/theme.js +17 -6
- package/dist/integrations/pi/engine/adapter.d.ts +39 -138
- package/dist/integrations/pi/engine/adapter.js +338 -3226
- package/dist/integrations/pi/engine/command-dispatch.d.ts +41 -0
- package/dist/integrations/pi/engine/command-dispatch.js +125 -0
- package/dist/integrations/pi/engine/event-delivery.d.ts +100 -0
- package/dist/integrations/pi/engine/event-delivery.js +184 -0
- package/dist/integrations/pi/engine/extension-ui-binding.d.ts +35 -0
- package/dist/integrations/pi/engine/extension-ui-binding.js +81 -0
- package/dist/integrations/pi/engine/index.d.ts +18 -14
- package/dist/integrations/pi/engine/index.js +10 -14
- package/dist/integrations/pi/engine/message-values.d.ts +29 -0
- package/dist/integrations/pi/engine/message-values.js +168 -0
- package/dist/integrations/pi/engine/pending-delivery.d.ts +2 -2
- package/dist/integrations/pi/engine/pending-delivery.js +2 -4
- package/dist/integrations/pi/engine/pi-settings-metadata.json +382 -371
- package/dist/integrations/pi/engine/prompt-suggestions.d.ts +30 -0
- package/dist/integrations/pi/engine/prompt-suggestions.js +102 -0
- package/dist/integrations/pi/engine/provider-authentication.d.ts +34 -0
- package/dist/integrations/pi/engine/provider-authentication.js +209 -0
- package/dist/integrations/pi/engine/resource-catalog.d.ts +49 -0
- package/dist/integrations/pi/engine/resource-catalog.js +289 -0
- package/dist/integrations/pi/engine/resources/changelog.json +4 -4
- package/dist/integrations/pi/engine/session-events.d.ts +48 -0
- package/dist/integrations/pi/engine/session-events.js +223 -0
- package/dist/integrations/pi/engine/session-integration.js +2 -4
- package/dist/integrations/pi/engine/session-runtime.d.ts +84 -0
- package/dist/integrations/pi/engine/session-runtime.js +249 -0
- package/dist/integrations/pi/engine/{settings-effects.d.ts → settings-bridge.d.ts} +57 -2
- package/dist/integrations/pi/engine/settings-bridge.js +514 -0
- package/dist/integrations/pi/engine/settings-metadata.d.ts +31 -0
- package/dist/integrations/pi/engine/settings-metadata.js +67 -0
- package/dist/integrations/pi/engine/settings-port.d.ts +42 -0
- package/dist/integrations/pi/engine/settings-port.js +353 -0
- package/dist/integrations/pi/engine/transcript-projection.d.ts +39 -0
- package/dist/integrations/pi/engine/transcript-projection.js +405 -0
- package/dist/integrations/pi/engine/usage-view.d.ts +4 -0
- package/dist/integrations/pi/engine/usage-view.js +56 -0
- package/dist/integrations/pi/engine/workflow-contexts.d.ts +59 -0
- package/dist/integrations/pi/engine/workflow-contexts.js +316 -0
- package/dist/integrations/pi/engine/workflow-runner.d.ts +60 -0
- package/dist/integrations/pi/engine/workflow-runner.js +509 -0
- package/dist/integrations/pi/engine/workflow-support.d.ts +33 -0
- package/dist/integrations/pi/engine/workflow-support.js +352 -0
- package/dist/integrations/pi/engine/workflows.d.ts +63 -2
- package/dist/integrations/pi/engine/workflows.js +5 -2
- package/dist/integrations/pi/startup-public.js +576 -554
- package/dist/integrations/pi/startup-public.manifest.json +1730 -984
- package/dist/integrations/pi/tui-runtime/adapter.js +10 -13
- package/dist/integrations/pi/tui-runtime/contracts.d.ts +11 -1
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +1 -1
- package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +4 -7
- package/dist/integrations/pi/tui-runtime/index.d.ts +8 -6
- package/dist/integrations/pi/tui-runtime/index.js +4 -6
- package/dist/integrations/pi/tui-runtime/mouse-report-input.js +2 -4
- package/dist/integrations/pi/tui-runtime/overlay-geometry.d.ts +2 -2
- package/dist/integrations/pi/tui-runtime/overlay-geometry.js +4 -5
- package/dist/integrations/pi/tui-runtime/presentation-adapter.js +1 -1
- package/dist/native/darwin-arm64/manifest.json +1 -1
- package/dist/native/linux-x64/manifest.json +1 -1
- package/dist/native/win32-x64/manifest.json +2 -2
- package/dist/native/win32-x64/process-guardian.exe +0 -0
- package/dist/runtime-payload-inventory.json +51320 -46509
- package/dist/ui/apps/index.d.ts +5 -3
- package/dist/ui/apps/index.js +3 -3
- package/dist/ui/components/index.d.ts +47 -25
- package/dist/ui/components/index.js +25 -25
- package/dist/ui/components/prompt-input.js +1 -4
- package/dist/ui/settings/declarations.d.ts +119 -0
- package/dist/ui/settings/declarations.js +20 -11
- package/dist/ui/settings/index.d.ts +10 -6
- package/dist/ui/settings/index.js +5 -6
- package/dist/ui/settings/manager.d.ts +54 -0
- package/dist/ui/settings/{session.js → manager.js} +101 -9
- package/dist/ui/settings/sections.d.ts +2 -7
- package/docs/architecture/boundaries.md +4 -4
- package/docs/architecture/history-editor-provenance.md +1 -1
- package/docs/architecture/project-structure.md +6 -6
- package/docs/architecture/prompt-suggestions.md +1 -1
- package/docs/architecture/terminal-host-proof-gate.md +1 -1
- package/docs/architecture/terminal-host-spike-evidence.md +1 -1
- package/docs/architecture/toolchain.md +8 -0
- package/docs/architecture/ui-reference-provenance.md +4 -4
- package/docs/ci-release-runbook.md +7 -1
- package/docs/features/modal-content-interaction.md +2 -2
- package/docs/local-worktree-cleanup.md +4 -2
- package/docs/validation.md +6 -4
- package/package.json +7 -11
- package/bin/pi-tui.d.ts +0 -6
- package/bin/pi-tui.js +0 -28
- package/bin/sync-pi-tui-proxy.js +0 -97
- package/dist/cli/version.d.ts +0 -2
- package/dist/cli/version.js +0 -23
- package/dist/composition/agent-engine-bridge.d.ts +0 -3
- package/dist/composition/agent-engine-bridge.js +0 -108
- package/dist/composition/process.d.ts +0 -16
- package/dist/composition/process.js +0 -45
- package/dist/contracts/workspace/index.d.ts +0 -2
- package/dist/contracts/workspace/index.js +0 -2
- package/dist/contracts/workspace/model.d.ts +0 -248
- package/dist/contracts/workspace/model.js +0 -2
- package/dist/contracts/workspace/validation.d.ts +0 -13
- package/dist/contracts/workspace/validation.js +0 -335
- package/dist/features/owned-ui/customization.d.ts +0 -40
- package/dist/features/owned-ui/customization.js +0 -110
- package/dist/features/owned-ui/diagnostics.d.ts +0 -34
- package/dist/features/owned-ui/diagnostics.js +0 -95
- package/dist/features/workspace/capabilities.d.ts +0 -31
- package/dist/features/workspace/capabilities.js +0 -75
- package/dist/features/workspace/index.d.ts +0 -6
- package/dist/features/workspace/index.js +0 -6
- package/dist/features/workspace/presentation.d.ts +0 -30
- package/dist/features/workspace/presentation.js +0 -70
- package/dist/features/workspace/reconciliation.d.ts +0 -15
- package/dist/features/workspace/reconciliation.js +0 -82
- package/dist/features/workspace/reducer.d.ts +0 -43
- package/dist/features/workspace/reducer.js +0 -214
- package/dist/features/workspace/router.d.ts +0 -32
- package/dist/features/workspace/router.js +0 -125
- package/dist/features/workspace/store.d.ts +0 -18
- package/dist/features/workspace/store.js +0 -55
- package/dist/foundation/native-host-protocol/codec.d.ts +0 -13
- package/dist/foundation/native-host-protocol/codec.js +0 -58
- package/dist/foundation/native-host-protocol/evidence.d.ts +0 -67
- package/dist/foundation/native-host-protocol/evidence.js +0 -141
- package/dist/foundation/native-host-protocol/index.d.ts +0 -4
- package/dist/foundation/native-host-protocol/index.js +0 -4
- package/dist/foundation/native-host-protocol/messages.d.ts +0 -56
- package/dist/foundation/native-host-protocol/messages.js +0 -149
- package/dist/foundation/native-host-protocol/proof-gate.d.ts +0 -13
- package/dist/foundation/native-host-protocol/proof-gate.js +0 -33
- package/dist/foundation/structured-agent-runtime/backpressure.d.ts +0 -47
- package/dist/foundation/structured-agent-runtime/backpressure.js +0 -119
- package/dist/foundation/structured-agent-runtime/commands.d.ts +0 -53
- package/dist/foundation/structured-agent-runtime/commands.js +0 -165
- package/dist/foundation/structured-agent-runtime/handshake.d.ts +0 -41
- package/dist/foundation/structured-agent-runtime/handshake.js +0 -151
- package/dist/foundation/structured-agent-runtime/index.d.ts +0 -5
- package/dist/foundation/structured-agent-runtime/index.js +0 -5
- package/dist/foundation/structured-agent-runtime/reconnection.d.ts +0 -38
- package/dist/foundation/structured-agent-runtime/reconnection.js +0 -130
- package/dist/foundation/structured-agent-runtime/state.d.ts +0 -57
- package/dist/foundation/structured-agent-runtime/state.js +0 -119
- package/dist/integrations/pi/components/upstream/components/custom-entry.d.ts +0 -17
- package/dist/integrations/pi/components/upstream/components/custom-entry.js +0 -51
- package/dist/integrations/pi/components/upstream/components/first-time-setup.d.ts +0 -24
- package/dist/integrations/pi/components/upstream/components/first-time-setup.js +0 -105
- package/dist/integrations/pi/components/upstream/components/markdown-transform.d.ts +0 -2
- package/dist/integrations/pi/components/upstream/components/markdown-transform.js +0 -18
- package/dist/integrations/pi/engine/model-auth-integration.d.ts +0 -31
- package/dist/integrations/pi/engine/model-auth-integration.js +0 -62
- package/dist/integrations/pi/engine/resource-extension-integration.d.ts +0 -32
- package/dist/integrations/pi/engine/resource-extension-integration.js +0 -81
- package/dist/integrations/pi/engine/settings-effects.js +0 -249
- package/dist/integrations/pi/engine/settings-integration.d.ts +0 -43
- package/dist/integrations/pi/engine/settings-integration.js +0 -227
- package/dist/integrations/pi/engine/workflow-controllers.d.ts +0 -21
- package/dist/integrations/pi/engine/workflow-controllers.js +0 -49
- package/dist/integrations/pi/session-ui/index.d.ts +0 -5
- package/dist/integrations/pi/session-ui/index.js +0 -5
- package/dist/integrations/pi/session-ui/paste-executor.d.ts +0 -10
- package/dist/integrations/pi/session-ui/paste-preparation-client.d.ts +0 -16
- package/dist/integrations/pi/session-ui/route-host.d.ts +0 -5
- package/dist/integrations/pi/tui-runtime/conformance.d.ts +0 -18
- package/dist/integrations/pi/tui-runtime/conformance.js +0 -145
- package/dist/ui/components/prompt-row.d.ts +0 -14
- package/dist/ui/components/prompt-row.js +0 -20
- package/dist/ui/settings/session.d.ts +0 -36
- package/dist/ui/settings/store.d.ts +0 -29
- package/dist/ui/settings/store.js +0 -91
- package/dist/{integrations/pi/session-ui → app/session-shell}/clipboard-diagnostics.js +2 -2
- package/dist/{integrations/pi/session-ui → app/session-shell}/clipboard-image.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/editor-hyperlink-budget.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/editor-hyperlink-budget.js +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-preparation.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-source.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/image-worker.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-helper.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-text-preparation.js +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-text-worker.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/paste-text-worker.js +0 -0
- package/dist/{integrations/pi/session-ui/response-copy-helper.d.ts → app/session-shell/paste-types.js} +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/path-chip-presentation.js +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/quit-outro-effects.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/quit-outro-effects.js +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/quit-outro.d.ts +0 -0
- package/dist/{integrations/pi/session-ui/route-host.js → app/session-shell/response-copy-helper.d.ts} +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/response-copy-protocol.js +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/stream-presentation-coalescer.d.ts +0 -0
- package/dist/{integrations/pi/session-ui → app/session-shell}/stream-presentation-coalescer.js +3 -3
- /package/dist/{integrations/pi/session-ui → app/session-shell}/text-paste.d.ts +0 -0
- /package/dist/{integrations/pi/session-ui → app/session-shell}/text-paste.js +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Modifications:
|
|
2
|
+
* Provenance: @earendil-works/pi-tui 0.85.1 (MIT), commit d981de1229ef899957bbe968bc8dcda02a21f477,
|
|
3
|
+
* packages/tui/src/word-navigation.ts.
|
|
4
|
+
* Modifications: Owned editor core or minimal editor-local helper subset; public imports, strict
|
|
5
|
+
* types, typed persistent-history hooks, and semantic border state. Public terminal runtime/exports
|
|
6
|
+
* remain shared and unchanged. See docs/architecture/history-editor-provenance.md.
|
|
7
|
+
* Deviations: persistent-history-owned-editor-boundary.
|
|
5
8
|
*/
|
|
6
9
|
import { getWordSegmenter, isWhitespaceChar, PUNCTUATION_REGEX } from "./text-helpers.js";
|
|
7
10
|
const wordSegmenter = getWordSegmenter();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* packages/coding-agent/src/modes/interactive/model-search.ts
|
|
2
|
+
* Provenance: @earendil-works/pi-coding-agent 0.85.1 (MIT), commit d981de1229ef899957bbe968bc8dcda02a21f477,
|
|
3
|
+
* packages/coding-agent/src/modes/interactive/model-search.ts.
|
|
4
|
+
* Modifications: Mechanical source-synchronized port preserving pinned model search terms for stateful
|
|
5
|
+
* scoped-model filtering.
|
|
6
|
+
* Deviations: none.
|
|
4
7
|
*/
|
|
5
8
|
export interface ModelSearchItem {
|
|
6
9
|
id: string;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provenance: @earendil-works/pi-coding-agent 0.85.1 (MIT), commit d981de1229ef899957bbe968bc8dcda02a21f477,
|
|
3
|
+
* packages/coding-agent/src/modes/interactive/theme/theme-controller.ts.
|
|
4
|
+
* Modifications: Source-synchronized controller port: renamed owner class, injected dependency-free
|
|
5
|
+
* settings/runtime ports, remapped private theme helpers to the public-backed A1 theme adapter, and
|
|
6
|
+
* added explicit disposal.
|
|
7
|
+
* Deviations: theme-controller-owned-boundaries, theme-controller-explicit-disposal.
|
|
8
|
+
*/
|
|
1
9
|
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
2
10
|
import { type PiTerminalTheme, type PiTerminalThemeDetector, type PiThemeResult } from "./theme.js";
|
|
3
11
|
export interface PiThemeRuntimePort extends PiTerminalThemeDetector {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Adapted from Pi 0.84.1; upstream 0.84.2 re-synchronization is tracked by task 7.4.
|
|
2
|
-
// Upstream: packages/coding-agent/src/modes/interactive/theme/theme-controller.ts
|
|
3
|
-
// License: MIT. Modifications: public APIs and A1-owned runtime/settings ports.
|
|
4
1
|
import { applyPiTheme, applyPiThemeInstance, detectPiTerminalBackgroundFromEnv, detectPiTerminalBackgroundTheme, detectPiTerminalThemeForAuto, parsePiAutoThemeSetting, resolvePiThemeSetting, } from "./theme.js";
|
|
5
2
|
export class OwnedPiThemeController {
|
|
6
3
|
#ui;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
import { type RgbColor } from "
|
|
2
|
+
import { type RgbColor } from "@earendil-works/pi-tui";
|
|
3
3
|
export declare const PINNED_PI_LAYOUT: Readonly<{
|
|
4
4
|
readonly editorPaddingX: 0;
|
|
5
5
|
readonly outputPad: 1;
|
|
@@ -10,7 +10,7 @@ export declare const PINNED_PI_LAYOUT: Readonly<{
|
|
|
10
10
|
readonly selectorMaxVisible: 10;
|
|
11
11
|
}>;
|
|
12
12
|
export type PiTerminalTheme = "dark" | "light";
|
|
13
|
-
export type PiThemeBackground = "selectedBg" | "
|
|
13
|
+
export type PiThemeBackground = "selectedBg" | "userMessageBg" | "customMessageBg" | "toolPendingBg" | "toolSuccessBg" | "toolErrorBg";
|
|
14
14
|
export type PiColorMode = "truecolor" | "256color";
|
|
15
15
|
export interface PiThemeResult {
|
|
16
16
|
readonly success: boolean;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provenance: @earendil-works/pi-coding-agent 0.85.1 (MIT), commit d981de1229ef899957bbe968bc8dcda02a21f477,
|
|
3
|
+
* packages/coding-agent/src/modes/interactive/theme/theme.ts.
|
|
4
|
+
* Modifications: Source-synchronized theme port: retain pinned theme schema, variable/color
|
|
5
|
+
* resolution, built-in and custom loading, terminal detection, and layout defaults while constructing
|
|
6
|
+
* the public package-root Theme class.
|
|
7
|
+
* Deviations: theme-public-api-boundary, theme-owned-watcher-boundary.
|
|
8
|
+
*/
|
|
1
9
|
import { existsSync, readFileSync, readdirSync, watch } from "node:fs";
|
|
2
10
|
import { join } from "node:path";
|
|
3
11
|
import { getAgentDir, initTheme, Theme, } from "../../../startup-public.js";
|
|
4
|
-
import { getCapabilities } from "
|
|
12
|
+
import { getCapabilities } from "@earendil-works/pi-tui";
|
|
5
13
|
import { BUILTIN_THEME_RESOURCES, isBuiltinThemeName } from "../../resources/builtin-themes.js";
|
|
6
14
|
export const PINNED_PI_LAYOUT = Object.freeze({
|
|
7
15
|
editorPaddingX: 0,
|
|
@@ -13,7 +21,7 @@ export const PINNED_PI_LAYOUT = Object.freeze({
|
|
|
13
21
|
selectorMaxVisible: 10,
|
|
14
22
|
});
|
|
15
23
|
const FOREGROUND_COLORS = [
|
|
16
|
-
"accent", "border", "borderAccent", "borderMuted", "success", "error", "warning", "muted", "dim", "text",
|
|
24
|
+
"accent", "border", "borderAccent", "borderMuted", "success", "error", "warning", "muted", "dim", "text", "scrollbarTrack", "scrollbarThumb",
|
|
17
25
|
"thinkingText", "userMessageText", "customMessageText", "customMessageLabel", "toolTitle", "toolOutput",
|
|
18
26
|
"mdHeading", "mdLink", "mdLinkUrl", "mdCode", "mdCodeBlock", "mdCodeBlockBorder", "mdQuote", "mdQuoteBorder",
|
|
19
27
|
"mdHr", "mdListBullet", "toolDiffAdded", "toolDiffRemoved", "toolDiffContext", "syntaxComment", "syntaxKeyword",
|
|
@@ -21,7 +29,7 @@ const FOREGROUND_COLORS = [
|
|
|
21
29
|
"thinkingOff", "thinkingMinimal", "thinkingLow", "thinkingMedium", "thinkingHigh", "thinkingXhigh", "thinkingMax", "bashMode",
|
|
22
30
|
];
|
|
23
31
|
const BACKGROUND_COLORS = [
|
|
24
|
-
"selectedBg", "
|
|
32
|
+
"selectedBg", "userMessageBg", "customMessageBg", "toolPendingBg", "toolSuccessBg", "toolErrorBg",
|
|
25
33
|
];
|
|
26
34
|
let activeTheme;
|
|
27
35
|
let activeThemeName;
|
|
@@ -105,11 +113,14 @@ export function loadPiTheme(name, mode) {
|
|
|
105
113
|
const vars = themeJson.vars ?? {};
|
|
106
114
|
const colors = { ...themeJson.colors };
|
|
107
115
|
const thinkingMax = colors.thinkingMax ?? colors.thinkingXhigh;
|
|
108
|
-
const scrollbarThumb = colors.scrollbarThumb ?? colors.
|
|
116
|
+
const scrollbarThumb = colors.scrollbarThumb ?? colors.text;
|
|
117
|
+
const scrollbarTrack = colors.scrollbarTrack ?? colors.muted;
|
|
109
118
|
if (thinkingMax !== undefined)
|
|
110
119
|
colors.thinkingMax = thinkingMax;
|
|
111
120
|
if (scrollbarThumb !== undefined)
|
|
112
121
|
colors.scrollbarThumb = scrollbarThumb;
|
|
122
|
+
if (scrollbarTrack !== undefined)
|
|
123
|
+
colors.scrollbarTrack = scrollbarTrack;
|
|
113
124
|
const resolved = Object.fromEntries(Object.entries(colors).map(([key, value]) => [key, resolveVariable(value, vars)]));
|
|
114
125
|
const foreground = Object.fromEntries(FOREGROUND_COLORS.map(key => [key, requiredColor(resolved, key, path)]));
|
|
115
126
|
const backgrounds = Object.fromEntries(BACKGROUND_COLORS.map(key => [key, requiredColor(resolved, key, path)]));
|
|
@@ -241,11 +252,11 @@ function validateThemeJson(label, value) {
|
|
|
241
252
|
if (value.name.includes("/"))
|
|
242
253
|
throw new Error(`Invalid theme name "${value.name}"`);
|
|
243
254
|
for (const key of FOREGROUND_COLORS) {
|
|
244
|
-
if (key !== "thinkingMax" && value.colors[key] === undefined)
|
|
255
|
+
if (key !== "thinkingMax" && key !== "scrollbarThumb" && key !== "scrollbarTrack" && value.colors[key] === undefined)
|
|
245
256
|
throw new Error(`Invalid theme "${label}": missing required color ${key}`);
|
|
246
257
|
}
|
|
247
258
|
for (const key of BACKGROUND_COLORS) {
|
|
248
|
-
if (
|
|
259
|
+
if (value.colors[key] === undefined)
|
|
249
260
|
throw new Error(`Invalid theme "${label}": missing required color ${key}`);
|
|
250
261
|
}
|
|
251
262
|
const colors = {};
|
|
@@ -1,108 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import type { PiSettingOwnerHandlers } from "./settings-effects.js";
|
|
1
|
+
import { type AgentSession } from "../startup-public.js";
|
|
2
|
+
import { type OwnedUiCommand, type OwnedUiImageAttachment, type OwnedUiPromptSuggestionGeneratorPort, type OwnedUiPromptSuggestionReasoning, type OwnedUiPromptSuggestionRequest, type OwnedUiPromptSuggestionResult, type OwnedUiEvent, type OwnedUiSessionViewModel, type OwnedUiSnapshot } from "../../../contracts/owned-ui/index.js";
|
|
3
|
+
import type { PiAuthenticationProviderOption, PiBashWorkflowResult, PiPinnedSettingsCallback, PiPinnedSettingsSnapshot, PiProjectTrustContext, PiProjectTrustUpdate, PiScopedModelsContext, PiScopedModelsRefreshResult, PiSessionResumeMetadata, PiSessionSelectorContext, PiTreeSelectorContext, PiWorkflowAutocompleteCommand, PiWorkflowHost, PiWorkflowInteractionHost, PiWorkflowOption, PiWorkflowRequest, PiWorkflowResult } from "./workflows.js";
|
|
4
|
+
import type { PiSettingsBridge } from "./settings-bridge.js";
|
|
5
|
+
import type { PiSettingOwnerHandlers } from "./settings-bridge.js";
|
|
7
6
|
import type { PiProjectTrustPreflightPrompt } from "./project-trust-preflight.js";
|
|
7
|
+
import type { PiSessionForkPrompt, PiSessionSelection } from "./session-selection.js";
|
|
8
8
|
import type { AgentSettingOwner } from "../../../contracts/agent-engine/index.js";
|
|
9
|
+
import { type AdapterCommandResult } from "./command-dispatch.js";
|
|
10
|
+
import { type OwnedPiVisualExtensionSupport } from "./extension-ui-binding.js";
|
|
11
|
+
import { type OwnedPiExtensionResourceSummary, type OwnedPiResourceSummary } from "./resource-catalog.js";
|
|
12
|
+
import { type PiEnginePackageUpdateProbe, type PiEngineRuntimeFactory } from "./session-runtime.js";
|
|
13
|
+
import { PiWorkflowContexts } from "./workflow-contexts.js";
|
|
14
|
+
export type { OwnedPiExtensionResourceSummary, OwnedPiExtensionSourceSummary, OwnedPiResourceSummary } from "./resource-catalog.js";
|
|
15
|
+
export type { PiEngineRuntimeFactory, PiEngineRuntimeFactoryInput } from "./session-runtime.js";
|
|
16
|
+
export type { AdapterCommandResult } from "./command-dispatch.js";
|
|
17
|
+
export type { OwnedPiVisualExtensionSupport } from "./extension-ui-binding.js";
|
|
9
18
|
/** Explicit flush failure when required delivery was interrupted rather than completed. */
|
|
10
19
|
export declare class EngineDeliveryError extends Error {
|
|
11
20
|
constructor();
|
|
12
21
|
}
|
|
13
|
-
export interface PiEngineRuntimeFactoryInput {
|
|
14
|
-
readonly cwd: string;
|
|
15
|
-
readonly agentDir: string;
|
|
16
|
-
readonly sessionId: string;
|
|
17
|
-
readonly sessionPath?: string;
|
|
18
|
-
readonly sessionSelection?: PiSessionSelection;
|
|
19
|
-
readonly sessionForkPrompt?: PiSessionForkPrompt;
|
|
20
|
-
readonly projectTrustPrompt?: PiProjectTrustPreflightPrompt;
|
|
21
|
-
}
|
|
22
|
-
export interface PiScopedModelDescriptor {
|
|
23
|
-
readonly provider: string;
|
|
24
|
-
readonly id: string;
|
|
25
|
-
readonly name: string;
|
|
26
|
-
}
|
|
27
|
-
export interface PiScopedModelsContext {
|
|
28
|
-
readonly models: readonly PiScopedModelDescriptor[];
|
|
29
|
-
readonly enabledModelIds: readonly string[] | null;
|
|
30
|
-
}
|
|
31
|
-
export interface PiProjectTrustUpdate {
|
|
32
|
-
readonly path: string;
|
|
33
|
-
readonly decision: boolean | null;
|
|
34
|
-
}
|
|
35
|
-
export interface PiProjectTrustContext {
|
|
36
|
-
readonly cwd: string;
|
|
37
|
-
readonly savedDecision: {
|
|
38
|
-
readonly path: string;
|
|
39
|
-
readonly decision: boolean;
|
|
40
|
-
} | null;
|
|
41
|
-
readonly projectTrusted: boolean;
|
|
42
|
-
readonly trustOptions: readonly {
|
|
43
|
-
readonly label: string;
|
|
44
|
-
readonly trusted: boolean;
|
|
45
|
-
readonly updates: readonly PiProjectTrustUpdate[];
|
|
46
|
-
readonly savedPath?: string;
|
|
47
|
-
}[];
|
|
48
|
-
}
|
|
49
|
-
export interface PiTreeSelectorContext {
|
|
50
|
-
readonly tree: readonly unknown[];
|
|
51
|
-
readonly currentLeafId: string | null;
|
|
52
|
-
readonly filterMode: "default" | "no-tools" | "user-only" | "labeled-only" | "all";
|
|
53
|
-
readonly skipSummaryPrompt: boolean;
|
|
54
|
-
readonly appendLabelChange: (entryId: string, label: string | undefined) => void;
|
|
55
|
-
}
|
|
56
|
-
export interface PiSessionResumeMetadata {
|
|
57
|
-
readonly sessionId: string;
|
|
58
|
-
readonly sessionDir: string;
|
|
59
|
-
readonly usesDefaultSessionDir: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface PiSessionSelectorContext {
|
|
62
|
-
readonly currentSessionFilePath: string | undefined;
|
|
63
|
-
readonly loadCurrentSessions: (onProgress?: (loaded: number, total: number) => void) => Promise<SessionInfo[]>;
|
|
64
|
-
readonly loadAllSessions: (onProgress?: (loaded: number, total: number) => void) => Promise<SessionInfo[]>;
|
|
65
|
-
readonly renameSession: (sessionFilePath: string, nextName: string | undefined) => Promise<void>;
|
|
66
|
-
}
|
|
67
|
-
export interface PiScopedModelsRefreshResult extends PiScopedModelsContext {
|
|
68
|
-
readonly status: string;
|
|
69
|
-
readonly statusKind: "success" | "warning";
|
|
70
|
-
}
|
|
71
|
-
type PiServicesApi = AgentSessionServices;
|
|
72
|
-
export type PiEngineRuntimeFactory = (input: PiEngineRuntimeFactoryInput) => Promise<AgentSessionRuntime>;
|
|
73
|
-
export interface OwnedPiResourceSummary {
|
|
74
|
-
readonly kind: "skill" | "prompt-template" | "agent-context" | "system-prompt" | "theme";
|
|
75
|
-
readonly id: string;
|
|
76
|
-
readonly label: string;
|
|
77
|
-
readonly sourcePath: string | null;
|
|
78
|
-
readonly diagnostic: string | null;
|
|
79
|
-
}
|
|
80
|
-
export interface OwnedPiExtensionSourceSummary {
|
|
81
|
-
readonly source: string;
|
|
82
|
-
readonly scope: "user" | "project" | "temporary";
|
|
83
|
-
readonly origin: "package" | "top-level";
|
|
84
|
-
readonly baseDir: string | null;
|
|
85
|
-
}
|
|
86
|
-
export interface OwnedPiExtensionResourceSummary {
|
|
87
|
-
readonly kind: "extension";
|
|
88
|
-
readonly id: string;
|
|
89
|
-
readonly sourcePath: string | null;
|
|
90
|
-
readonly resolvedPath: string | null;
|
|
91
|
-
readonly sourceInfo: OwnedPiExtensionSourceSummary | null;
|
|
92
|
-
readonly loaded: boolean;
|
|
93
|
-
readonly hidden: boolean;
|
|
94
|
-
readonly diagnostic: string | null;
|
|
95
|
-
}
|
|
96
|
-
export interface OwnedPiVisualExtensionSupport {
|
|
97
|
-
readonly available: boolean;
|
|
98
|
-
readonly contractComplete: true;
|
|
99
|
-
readonly contractVersion: typeof OWNED_UI_EXTENSION_CONTRACT_VERSION;
|
|
100
|
-
readonly binding: "bound" | "unbound";
|
|
101
|
-
readonly uiCallbacks: typeof OWNED_UI_EXTENSION_UI_CALLBACKS;
|
|
102
|
-
readonly uiProperties: typeof OWNED_UI_EXTENSION_UI_PROPERTIES;
|
|
103
|
-
readonly renderCallbacks: typeof OWNED_UI_EXTENSION_RENDER_CALLBACKS;
|
|
104
|
-
readonly diagnostic: string;
|
|
105
|
-
}
|
|
106
22
|
export interface PiEngineAdapterOptions {
|
|
107
23
|
readonly cwd?: string;
|
|
108
24
|
readonly agentDir?: string;
|
|
@@ -124,11 +40,7 @@ export interface PiEngineAdapterOptions {
|
|
|
124
40
|
* Startup extension-package update probe, mirroring pinned Pi's interactive
|
|
125
41
|
* mode. Returns display names of packages with updates available.
|
|
126
42
|
*/
|
|
127
|
-
readonly checkPackageUpdates?:
|
|
128
|
-
}
|
|
129
|
-
export interface AdapterCommandResult {
|
|
130
|
-
readonly outcome: OwnedUiCommandOutcome;
|
|
131
|
-
readonly diagnostic: string | null;
|
|
43
|
+
readonly checkPackageUpdates?: PiEnginePackageUpdateProbe;
|
|
132
44
|
}
|
|
133
45
|
/** Owns the pinned Pi session lifecycle and translates its events into the neutral agent-engine contract. */
|
|
134
46
|
export declare class PiEngineAdapter implements OwnedUiPromptSuggestionGeneratorPort {
|
|
@@ -151,9 +63,9 @@ export declare class PiEngineAdapter implements OwnedUiPromptSuggestionGenerator
|
|
|
151
63
|
onEvent(listener: (event: OwnedUiEvent) => void): () => void;
|
|
152
64
|
/** Developer-only pressure evidence; never mirrored into visible diagnostic/status arrays. */
|
|
153
65
|
deliveryDiagnostics(): {
|
|
66
|
+
pendingCommands: number;
|
|
154
67
|
overloads: number;
|
|
155
68
|
recovering: boolean;
|
|
156
|
-
pendingCommands: number;
|
|
157
69
|
reservedOutcomes: number;
|
|
158
70
|
invalidatedEvents: number;
|
|
159
71
|
pending: number;
|
|
@@ -166,27 +78,12 @@ export declare class PiEngineAdapter implements OwnedUiPromptSuggestionGenerator
|
|
|
166
78
|
flushEvents(): Promise<void>;
|
|
167
79
|
nonVisualResources(): readonly OwnedPiResourceSummary[];
|
|
168
80
|
extensionResources(): readonly OwnedPiExtensionResourceSummary[];
|
|
81
|
+
workflowAutocompleteCommands(): readonly PiWorkflowAutocompleteCommand[];
|
|
169
82
|
visualExtensionSupport(): OwnedPiVisualExtensionSupport;
|
|
170
83
|
bindExtensionUi(ui: unknown, shutdown?: () => void | Promise<void>): Promise<void>;
|
|
171
84
|
unbindExtensionUi(): Promise<void>;
|
|
172
|
-
workflowAutocompleteCommands(): readonly PiWorkflowAutocompleteCommand[];
|
|
173
85
|
cycleModelWorkflow(direction: "forward" | "backward"): Promise<PiWorkflowResult>;
|
|
174
|
-
|
|
175
|
-
* The theme the engine is configured with, in the engine's own grammar: a
|
|
176
|
-
* theme's name, or a `light/dark` pair meaning "follow the terminal".
|
|
177
|
-
*/
|
|
178
|
-
configuredTheme(): string | undefined;
|
|
179
|
-
/** Settings port for the live runtime, or null before the runtime is available. */
|
|
180
|
-
settingsPort(): PiSettingsIntegration | null;
|
|
181
|
-
/** Which settings surface this adapter serves; hidden-in-bare effects are unbindable in bare mode. */
|
|
182
|
-
get settingsProductMode(): "bare" | "comparison";
|
|
183
|
-
bindSettingsOwner(owner: AgentSettingOwner, handlers: PiSettingOwnerHandlers): () => void;
|
|
184
|
-
pinnedModelSelectorContext(): {
|
|
185
|
-
readonly currentModel: unknown;
|
|
186
|
-
readonly settingsManager: unknown;
|
|
187
|
-
readonly modelRuntime: unknown;
|
|
188
|
-
readonly scopedModels: readonly unknown[];
|
|
189
|
-
};
|
|
86
|
+
pinnedModelSelectorContext(): ReturnType<PiWorkflowContexts["pinnedModelSelectorContext"]>;
|
|
190
87
|
pinnedProjectTrustContext(): PiProjectTrustContext;
|
|
191
88
|
persistProjectTrust(updates: readonly PiProjectTrustUpdate[]): void;
|
|
192
89
|
pinnedSessionSelectorContext(): PiSessionSelectorContext;
|
|
@@ -199,36 +96,40 @@ export declare class PiEngineAdapter implements OwnedUiPromptSuggestionGenerator
|
|
|
199
96
|
readonly title: string;
|
|
200
97
|
readonly options: readonly PiWorkflowOption[];
|
|
201
98
|
};
|
|
202
|
-
pinnedAmbientAuthentication(selection: string):
|
|
203
|
-
readonly providerId: string;
|
|
204
|
-
readonly providerName: string;
|
|
205
|
-
readonly title: string;
|
|
206
|
-
readonly message: string;
|
|
207
|
-
} | null;
|
|
99
|
+
pinnedAmbientAuthentication(selection: string): ReturnType<PiWorkflowContexts["pinnedAmbientAuthentication"]>;
|
|
208
100
|
pinnedLogoutOptions(): Promise<readonly PiAuthenticationProviderOption[]>;
|
|
209
101
|
pinnedForkOptions(): readonly PiWorkflowOption[];
|
|
210
102
|
pinnedTreeSelectorContext(): PiTreeSelectorContext;
|
|
211
|
-
pinnedSettingsSnapshot(): PiPinnedSettingsSnapshot;
|
|
212
|
-
pinnedMessageRenderer(customType: string): unknown;
|
|
213
|
-
pinnedShortcutDescriptions(bindings: Parameters<AgentSession["extensionRunner"]["getShortcuts"]>[0]): readonly {
|
|
214
|
-
readonly key: string;
|
|
215
|
-
readonly description: string;
|
|
216
|
-
}[];
|
|
217
|
-
pinnedToolDefinition(toolName: string): unknown;
|
|
218
103
|
/** Bind the owned UI's clipboard lifecycle without changing the comparison host. True means acknowledged delivery. */
|
|
219
104
|
bindClipboardWriter(writer: (text: string) => Promise<boolean>): () => void;
|
|
220
105
|
/** Workflow and tree copying share the active owner's write fence and delivery acknowledgment. */
|
|
221
106
|
copyWorkflowText(text: string): Promise<boolean>;
|
|
222
|
-
clearQueuedWorkflows(): readonly string[];
|
|
223
107
|
abortBashWorkflow(): void;
|
|
224
108
|
executeBashWorkflow(command: string, excludeFromContext: boolean): Promise<PiBashWorkflowResult>;
|
|
225
|
-
applyPinnedSettingValue(callback: PiPinnedSettingsCallback, value: unknown): Promise<PiWorkflowResult>;
|
|
226
109
|
reloadBlockedResult(): PiWorkflowResult | null;
|
|
227
110
|
executeWorkflow(request: PiWorkflowRequest): Promise<PiWorkflowResult>;
|
|
111
|
+
/**
|
|
112
|
+
* The theme the engine is configured with, in the engine's own grammar: a
|
|
113
|
+
* theme's name, or a `light/dark` pair meaning "follow the terminal".
|
|
114
|
+
*/
|
|
115
|
+
configuredTheme(): string | undefined;
|
|
116
|
+
/** Settings port for the live runtime, or null before the runtime is available. */
|
|
117
|
+
settingsPort(): PiSettingsBridge | null;
|
|
118
|
+
/** Which settings surface this adapter serves; hidden-in-bare effects are unbindable in bare mode. */
|
|
119
|
+
get settingsProductMode(): "bare" | "comparison";
|
|
120
|
+
bindSettingsOwner(owner: AgentSettingOwner, handlers: PiSettingOwnerHandlers): () => void;
|
|
121
|
+
pinnedSettingsSnapshot(): PiPinnedSettingsSnapshot;
|
|
122
|
+
applyPinnedSettingValue(callback: PiPinnedSettingsCallback, value: unknown): Promise<PiWorkflowResult>;
|
|
123
|
+
pinnedMessageRenderer(customType: string): unknown;
|
|
124
|
+
pinnedShortcutDescriptions(bindings: Parameters<AgentSession["extensionRunner"]["getShortcuts"]>[0]): readonly {
|
|
125
|
+
readonly key: string;
|
|
126
|
+
readonly description: string;
|
|
127
|
+
}[];
|
|
128
|
+
pinnedToolDefinition(toolName: string): unknown;
|
|
129
|
+
clearQueuedWorkflows(): readonly string[];
|
|
228
130
|
view(): OwnedUiSessionViewModel;
|
|
229
131
|
snapshot(): OwnedUiSnapshot;
|
|
230
132
|
execute(command: OwnedUiCommand): Promise<AdapterCommandResult>;
|
|
231
133
|
dispose(): Promise<void>;
|
|
232
134
|
}
|
|
233
135
|
export declare function createPiEngineAdapter(options?: PiEngineAdapterOptions): Promise<PiEngineAdapter>;
|
|
234
|
-
export {};
|