@timurproko/a1 0.1.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/LICENSE +21 -0
- package/README.md +68 -0
- package/bin/addone-supervisor.js +7 -0
- package/bin/addone-ui.js +20 -0
- package/bin/addone.js +26 -0
- package/dist/src/cli/dispatch.d.ts +26 -0
- package/dist/src/cli/dispatch.d.ts.map +1 -0
- package/dist/src/cli/dispatch.js +35 -0
- package/dist/src/cli/dispatch.js.map +1 -0
- package/dist/src/cli/index.d.ts +4 -0
- package/dist/src/cli/index.d.ts.map +1 -0
- package/dist/src/cli/index.js +4 -0
- package/dist/src/cli/index.js.map +1 -0
- package/dist/src/cli/version-stats.d.ts +17 -0
- package/dist/src/cli/version-stats.d.ts.map +1 -0
- package/dist/src/cli/version-stats.js +68 -0
- package/dist/src/cli/version-stats.js.map +1 -0
- package/dist/src/cli/version.d.ts +3 -0
- package/dist/src/cli/version.d.ts.map +1 -0
- package/dist/src/cli/version.js +23 -0
- package/dist/src/cli/version.js.map +1 -0
- package/dist/src/features/launch/development-launch.d.ts +9 -0
- package/dist/src/features/launch/development-launch.d.ts.map +1 -0
- package/dist/src/features/launch/development-launch.js +27 -0
- package/dist/src/features/launch/development-launch.js.map +1 -0
- package/dist/src/features/launch/index.d.ts +8 -0
- package/dist/src/features/launch/index.d.ts.map +1 -0
- package/dist/src/features/launch/index.js +8 -0
- package/dist/src/features/launch/index.js.map +1 -0
- package/dist/src/features/launch/initialize-profile.d.ts +7 -0
- package/dist/src/features/launch/initialize-profile.d.ts.map +1 -0
- package/dist/src/features/launch/initialize-profile.js +59 -0
- package/dist/src/features/launch/initialize-profile.js.map +1 -0
- package/dist/src/features/launch/intent.d.ts +8 -0
- package/dist/src/features/launch/intent.d.ts.map +1 -0
- package/dist/src/features/launch/intent.js +5 -0
- package/dist/src/features/launch/intent.js.map +1 -0
- package/dist/src/features/launch/prepare-launch.d.ts +14 -0
- package/dist/src/features/launch/prepare-launch.d.ts.map +1 -0
- package/dist/src/features/launch/prepare-launch.js +22 -0
- package/dist/src/features/launch/prepare-launch.js.map +1 -0
- package/dist/src/features/launch/profile-paths.d.ts +16 -0
- package/dist/src/features/launch/profile-paths.d.ts.map +1 -0
- package/dist/src/features/launch/profile-paths.js +30 -0
- package/dist/src/features/launch/profile-paths.js.map +1 -0
- package/dist/src/features/launch/profiles.d.ts +13 -0
- package/dist/src/features/launch/profiles.d.ts.map +1 -0
- package/dist/src/features/launch/profiles.js +27 -0
- package/dist/src/features/launch/profiles.js.map +1 -0
- package/dist/src/features/launch/runtime-selection.d.ts +15 -0
- package/dist/src/features/launch/runtime-selection.d.ts.map +1 -0
- package/dist/src/features/launch/runtime-selection.js +14 -0
- package/dist/src/features/launch/runtime-selection.js.map +1 -0
- package/dist/src/features/owned-ui/customization.d.ts +36 -0
- package/dist/src/features/owned-ui/customization.d.ts.map +1 -0
- package/dist/src/features/owned-ui/customization.js +110 -0
- package/dist/src/features/owned-ui/customization.js.map +1 -0
- package/dist/src/features/owned-ui/diagnostics.d.ts +34 -0
- package/dist/src/features/owned-ui/diagnostics.d.ts.map +1 -0
- package/dist/src/features/owned-ui/diagnostics.js +95 -0
- package/dist/src/features/owned-ui/diagnostics.js.map +1 -0
- package/dist/src/features/owned-ui/index.d.ts +5 -0
- package/dist/src/features/owned-ui/index.d.ts.map +1 -0
- package/dist/src/features/owned-ui/index.js +5 -0
- package/dist/src/features/owned-ui/index.js.map +1 -0
- package/dist/src/features/owned-ui/pi-session-shell.d.ts +97 -0
- package/dist/src/features/owned-ui/pi-session-shell.d.ts.map +1 -0
- package/dist/src/features/owned-ui/pi-session-shell.js +1437 -0
- package/dist/src/features/owned-ui/pi-session-shell.js.map +1 -0
- package/dist/src/features/owned-ui/run.d.ts +9 -0
- package/dist/src/features/owned-ui/run.d.ts.map +1 -0
- package/dist/src/features/owned-ui/run.js +21 -0
- package/dist/src/features/owned-ui/run.js.map +1 -0
- package/dist/src/features/workspace/capabilities.d.ts +32 -0
- package/dist/src/features/workspace/capabilities.d.ts.map +1 -0
- package/dist/src/features/workspace/capabilities.js +76 -0
- package/dist/src/features/workspace/capabilities.js.map +1 -0
- package/dist/src/features/workspace/index.d.ts +7 -0
- package/dist/src/features/workspace/index.d.ts.map +1 -0
- package/dist/src/features/workspace/index.js +7 -0
- package/dist/src/features/workspace/index.js.map +1 -0
- package/dist/src/features/workspace/presentation.d.ts +31 -0
- package/dist/src/features/workspace/presentation.d.ts.map +1 -0
- package/dist/src/features/workspace/presentation.js +69 -0
- package/dist/src/features/workspace/presentation.js.map +1 -0
- package/dist/src/features/workspace/reconciliation.d.ts +16 -0
- package/dist/src/features/workspace/reconciliation.d.ts.map +1 -0
- package/dist/src/features/workspace/reconciliation.js +83 -0
- package/dist/src/features/workspace/reconciliation.js.map +1 -0
- package/dist/src/features/workspace/reducer.d.ts +43 -0
- package/dist/src/features/workspace/reducer.d.ts.map +1 -0
- package/dist/src/features/workspace/reducer.js +214 -0
- package/dist/src/features/workspace/reducer.js.map +1 -0
- package/dist/src/features/workspace/router.d.ts +32 -0
- package/dist/src/features/workspace/router.d.ts.map +1 -0
- package/dist/src/features/workspace/router.js +125 -0
- package/dist/src/features/workspace/router.js.map +1 -0
- package/dist/src/features/workspace/store.d.ts +18 -0
- package/dist/src/features/workspace/store.d.ts.map +1 -0
- package/dist/src/features/workspace/store.js +55 -0
- package/dist/src/features/workspace/store.js.map +1 -0
- package/dist/src/foundation/lifecycle/index.d.ts +3 -0
- package/dist/src/foundation/lifecycle/index.d.ts.map +1 -0
- package/dist/src/foundation/lifecycle/index.js +3 -0
- package/dist/src/foundation/lifecycle/index.js.map +1 -0
- package/dist/src/foundation/lifecycle/model.d.ts +101 -0
- package/dist/src/foundation/lifecycle/model.d.ts.map +1 -0
- package/dist/src/foundation/lifecycle/model.js +40 -0
- package/dist/src/foundation/lifecycle/model.js.map +1 -0
- package/dist/src/foundation/lifecycle/paths.d.ts +11 -0
- package/dist/src/foundation/lifecycle/paths.d.ts.map +1 -0
- package/dist/src/foundation/lifecycle/paths.js +26 -0
- package/dist/src/foundation/lifecycle/paths.js.map +1 -0
- package/dist/src/foundation/native-host-protocol/codec.d.ts +12 -0
- package/dist/src/foundation/native-host-protocol/codec.d.ts.map +1 -0
- package/dist/src/foundation/native-host-protocol/codec.js +57 -0
- package/dist/src/foundation/native-host-protocol/codec.js.map +1 -0
- package/dist/src/foundation/native-host-protocol/evidence.d.ts +68 -0
- package/dist/src/foundation/native-host-protocol/evidence.d.ts.map +1 -0
- package/dist/src/foundation/native-host-protocol/evidence.js +141 -0
- package/dist/src/foundation/native-host-protocol/evidence.js.map +1 -0
- package/dist/src/foundation/native-host-protocol/index.d.ts +5 -0
- package/dist/src/foundation/native-host-protocol/index.d.ts.map +1 -0
- package/dist/src/foundation/native-host-protocol/index.js +5 -0
- package/dist/src/foundation/native-host-protocol/index.js.map +1 -0
- package/dist/src/foundation/native-host-protocol/messages.d.ts +57 -0
- package/dist/src/foundation/native-host-protocol/messages.d.ts.map +1 -0
- package/dist/src/foundation/native-host-protocol/messages.js +149 -0
- package/dist/src/foundation/native-host-protocol/messages.js.map +1 -0
- package/dist/src/foundation/native-host-protocol/proof-gate.d.ts +14 -0
- package/dist/src/foundation/native-host-protocol/proof-gate.d.ts.map +1 -0
- package/dist/src/foundation/native-host-protocol/proof-gate.js +34 -0
- package/dist/src/foundation/native-host-protocol/proof-gate.js.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/extension-ui.d.ts +303 -0
- package/dist/src/foundation/owned-ui-contracts/extension-ui.d.ts.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/extension-ui.js +69 -0
- package/dist/src/foundation/owned-ui-contracts/extension-ui.js.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/index.d.ts +4 -0
- package/dist/src/foundation/owned-ui-contracts/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/index.js +4 -0
- package/dist/src/foundation/owned-ui-contracts/index.js.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/model.d.ts +242 -0
- package/dist/src/foundation/owned-ui-contracts/model.d.ts.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/model.js +2 -0
- package/dist/src/foundation/owned-ui-contracts/model.js.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/validation.d.ts +12 -0
- package/dist/src/foundation/owned-ui-contracts/validation.d.ts.map +1 -0
- package/dist/src/foundation/owned-ui-contracts/validation.js +396 -0
- package/dist/src/foundation/owned-ui-contracts/validation.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/components.d.ts +5 -0
- package/dist/src/foundation/pi-component-adapter/components.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/components.js +65 -0
- package/dist/src/foundation/pi-component-adapter/components.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/conformance.d.ts +17 -0
- package/dist/src/foundation/pi-component-adapter/conformance.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/conformance.js +63 -0
- package/dist/src/foundation/pi-component-adapter/conformance.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/index.d.ts +13 -0
- package/dist/src/foundation/pi-component-adapter/index.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/index.js +13 -0
- package/dist/src/foundation/pi-component-adapter/index.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-components.d.ts +7 -0
- package/dist/src/foundation/pi-component-adapter/shell-components.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-components.js +7 -0
- package/dist/src/foundation/pi-component-adapter/shell-components.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-editor-autocomplete.d.ts +12 -0
- package/dist/src/foundation/pi-component-adapter/shell-editor-autocomplete.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-editor-autocomplete.js +165 -0
- package/dist/src/foundation/pi-component-adapter/shell-editor-autocomplete.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-extension-ui.d.ts +36 -0
- package/dist/src/foundation/pi-component-adapter/shell-extension-ui.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-extension-ui.js +280 -0
- package/dist/src/foundation/pi-component-adapter/shell-extension-ui.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-footer-status.d.ts +8 -0
- package/dist/src/foundation/pi-component-adapter/shell-footer-status.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-footer-status.js +246 -0
- package/dist/src/foundation/pi-component-adapter/shell-footer-status.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-presenters-transcript.d.ts +43 -0
- package/dist/src/foundation/pi-component-adapter/shell-presenters-transcript.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-presenters-transcript.js +397 -0
- package/dist/src/foundation/pi-component-adapter/shell-presenters-transcript.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-selectors-dialogs.d.ts +106 -0
- package/dist/src/foundation/pi-component-adapter/shell-selectors-dialogs.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-selectors-dialogs.js +234 -0
- package/dist/src/foundation/pi-component-adapter/shell-selectors-dialogs.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-shared-facade.d.ts +117 -0
- package/dist/src/foundation/pi-component-adapter/shell-shared-facade.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/shell-shared-facade.js +88 -0
- package/dist/src/foundation/pi-component-adapter/shell-shared-facade.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/theme.d.ts +2 -0
- package/dist/src/foundation/pi-component-adapter/theme.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/theme.js +2 -0
- package/dist/src/foundation/pi-component-adapter/theme.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/adjacent/core/keybindings.d.ts +423 -0
- package/dist/src/foundation/pi-component-adapter/upstream/adjacent/core/keybindings.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/adjacent/core/keybindings.js +297 -0
- package/dist/src/foundation/pi-component-adapter/upstream/adjacent/core/keybindings.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/countdown-timer.d.ts +11 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/countdown-timer.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/countdown-timer.js +30 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/countdown-timer.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/custom-entry.d.ts +18 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/custom-entry.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/custom-entry.js +52 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/custom-entry.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/daxnuts.d.ts +23 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/daxnuts.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/daxnuts.js +143 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/daxnuts.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/earendil-announcement.d.ts +5 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/earendil-announcement.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/earendil-announcement.js +43 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/earendil-announcement.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/extension-editor.d.ts +18 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/extension-editor.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/extension-editor.js +82 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/extension-editor.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/first-time-setup.d.ts +25 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/first-time-setup.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/first-time-setup.js +106 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/first-time-setup.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/markdown-transform.d.ts +3 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/markdown-transform.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/markdown-transform.js +19 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/markdown-transform.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/mermaid.d.ts +10 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/mermaid.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/mermaid.js +78 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/mermaid.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/scoped-models-selector.d.ts +56 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/scoped-models-selector.js +343 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/scoped-models-selector.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector-search.d.ts +23 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector-search.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector-search.js +160 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector-search.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector.d.ts +96 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector.js +890 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/session-selector.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/skill-invocation-message.d.ts +20 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/skill-invocation-message.js +45 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/skill-invocation-message.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/status-indicator.d.ts +31 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/status-indicator.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/status-indicator.js +60 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/status-indicator.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/tree-selector.d.ts +99 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/tree-selector.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/tree-selector.js +1273 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/tree-selector.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/trust-selector.d.ts +34 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/trust-selector.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/trust-selector.js +77 -0
- package/dist/src/foundation/pi-component-adapter/upstream/components/trust-selector.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/external-editor.d.ts +10 -0
- package/dist/src/foundation/pi-component-adapter/upstream/external-editor.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/external-editor.js +40 -0
- package/dist/src/foundation/pi-component-adapter/upstream/external-editor.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/model-search.d.ts +16 -0
- package/dist/src/foundation/pi-component-adapter/upstream/model-search.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/model-search.js +15 -0
- package/dist/src/foundation/pi-component-adapter/upstream/model-search.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme-controller.d.ts +26 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme-controller.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme-controller.js +118 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme-controller.js.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme.d.ts +54 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme.d.ts.map +1 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme.js +311 -0
- package/dist/src/foundation/pi-component-adapter/upstream/theme/theme.js.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/adapter.d.ts +343 -0
- package/dist/src/foundation/pi-engine-adapter/adapter.d.ts.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/adapter.js +2365 -0
- package/dist/src/foundation/pi-engine-adapter/adapter.js.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/conformance.d.ts +14 -0
- package/dist/src/foundation/pi-engine-adapter/conformance.d.ts.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/conformance.js +85 -0
- package/dist/src/foundation/pi-engine-adapter/conformance.js.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/index.d.ts +4 -0
- package/dist/src/foundation/pi-engine-adapter/index.d.ts.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/index.js +4 -0
- package/dist/src/foundation/pi-engine-adapter/index.js.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/workflows.d.ts +165 -0
- package/dist/src/foundation/pi-engine-adapter/workflows.d.ts.map +1 -0
- package/dist/src/foundation/pi-engine-adapter/workflows.js +61 -0
- package/dist/src/foundation/pi-engine-adapter/workflows.js.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/adapter.d.ts +34 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/adapter.d.ts.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/adapter.js +485 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/adapter.js.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/conformance.d.ts +14 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/conformance.d.ts.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/conformance.js +132 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/conformance.js.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/contracts.d.ts +122 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/contracts.d.ts.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/contracts.js +2 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/contracts.js.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/index.d.ts +4 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/index.d.ts.map +1 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/index.js +4 -0
- package/dist/src/foundation/pi-tui-runtime-adapter/index.js.map +1 -0
- package/dist/src/foundation/protocol/client.d.ts +17 -0
- package/dist/src/foundation/protocol/client.d.ts.map +1 -0
- package/dist/src/foundation/protocol/client.js +127 -0
- package/dist/src/foundation/protocol/client.js.map +1 -0
- package/dist/src/foundation/protocol/index.d.ts +3 -0
- package/dist/src/foundation/protocol/index.d.ts.map +1 -0
- package/dist/src/foundation/protocol/index.js +3 -0
- package/dist/src/foundation/protocol/index.js.map +1 -0
- package/dist/src/foundation/protocol/messages.d.ts +90 -0
- package/dist/src/foundation/protocol/messages.d.ts.map +1 -0
- package/dist/src/foundation/protocol/messages.js +99 -0
- package/dist/src/foundation/protocol/messages.js.map +1 -0
- package/dist/src/foundation/release/bootstrap.d.ts +30 -0
- package/dist/src/foundation/release/bootstrap.d.ts.map +1 -0
- package/dist/src/foundation/release/bootstrap.js +283 -0
- package/dist/src/foundation/release/bootstrap.js.map +1 -0
- package/dist/src/foundation/release/cohort-selection.d.ts +40 -0
- package/dist/src/foundation/release/cohort-selection.d.ts.map +1 -0
- package/dist/src/foundation/release/cohort-selection.js +76 -0
- package/dist/src/foundation/release/cohort-selection.js.map +1 -0
- package/dist/src/foundation/release/cohort-state.d.ts +68 -0
- package/dist/src/foundation/release/cohort-state.d.ts.map +1 -0
- package/dist/src/foundation/release/cohort-state.js +201 -0
- package/dist/src/foundation/release/cohort-state.js.map +1 -0
- package/dist/src/foundation/release/development-preview-release.d.ts +49 -0
- package/dist/src/foundation/release/development-preview-release.d.ts.map +1 -0
- package/dist/src/foundation/release/development-preview-release.js +113 -0
- package/dist/src/foundation/release/development-preview-release.js.map +1 -0
- package/dist/src/foundation/release/index.d.ts +12 -0
- package/dist/src/foundation/release/index.d.ts.map +1 -0
- package/dist/src/foundation/release/index.js +12 -0
- package/dist/src/foundation/release/index.js.map +1 -0
- package/dist/src/foundation/release/process-cleanup.d.ts +15 -0
- package/dist/src/foundation/release/process-cleanup.d.ts.map +1 -0
- package/dist/src/foundation/release/process-cleanup.js +67 -0
- package/dist/src/foundation/release/process-cleanup.js.map +1 -0
- package/dist/src/foundation/release/release-gc.d.ts +6 -0
- package/dist/src/foundation/release/release-gc.d.ts.map +1 -0
- package/dist/src/foundation/release/release-gc.js +17 -0
- package/dist/src/foundation/release/release-gc.js.map +1 -0
- package/dist/src/foundation/release/release-store.d.ts +11 -0
- package/dist/src/foundation/release/release-store.d.ts.map +1 -0
- package/dist/src/foundation/release/release-store.js +115 -0
- package/dist/src/foundation/release/release-store.js.map +1 -0
- package/dist/src/foundation/release/release.d.ts +24 -0
- package/dist/src/foundation/release/release.d.ts.map +1 -0
- package/dist/src/foundation/release/release.js +151 -0
- package/dist/src/foundation/release/release.js.map +1 -0
- package/dist/src/foundation/release/stable-release.d.ts +30 -0
- package/dist/src/foundation/release/stable-release.d.ts.map +1 -0
- package/dist/src/foundation/release/stable-release.js +38 -0
- package/dist/src/foundation/release/stable-release.js.map +1 -0
- package/dist/src/foundation/release/update-transaction.d.ts +31 -0
- package/dist/src/foundation/release/update-transaction.d.ts.map +1 -0
- package/dist/src/foundation/release/update-transaction.js +88 -0
- package/dist/src/foundation/release/update-transaction.js.map +1 -0
- package/dist/src/foundation/release/update.d.ts +55 -0
- package/dist/src/foundation/release/update.d.ts.map +1 -0
- package/dist/src/foundation/release/update.js +316 -0
- package/dist/src/foundation/release/update.js.map +1 -0
- package/dist/src/foundation/storage/control-store.d.ts +61 -0
- package/dist/src/foundation/storage/control-store.d.ts.map +1 -0
- package/dist/src/foundation/storage/control-store.js +459 -0
- package/dist/src/foundation/storage/control-store.js.map +1 -0
- package/dist/src/foundation/storage/index.d.ts +2 -0
- package/dist/src/foundation/storage/index.d.ts.map +1 -0
- package/dist/src/foundation/storage/index.js +2 -0
- package/dist/src/foundation/storage/index.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/backpressure.d.ts +47 -0
- package/dist/src/foundation/structured-agent-runtime/backpressure.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/backpressure.js +119 -0
- package/dist/src/foundation/structured-agent-runtime/backpressure.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/commands.d.ts +53 -0
- package/dist/src/foundation/structured-agent-runtime/commands.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/commands.js +165 -0
- package/dist/src/foundation/structured-agent-runtime/commands.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/handshake.d.ts +42 -0
- package/dist/src/foundation/structured-agent-runtime/handshake.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/handshake.js +151 -0
- package/dist/src/foundation/structured-agent-runtime/handshake.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/index.d.ts +6 -0
- package/dist/src/foundation/structured-agent-runtime/index.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/index.js +6 -0
- package/dist/src/foundation/structured-agent-runtime/index.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/reconnection.d.ts +38 -0
- package/dist/src/foundation/structured-agent-runtime/reconnection.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/reconnection.js +130 -0
- package/dist/src/foundation/structured-agent-runtime/reconnection.js.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/state.d.ts +57 -0
- package/dist/src/foundation/structured-agent-runtime/state.d.ts.map +1 -0
- package/dist/src/foundation/structured-agent-runtime/state.js +119 -0
- package/dist/src/foundation/structured-agent-runtime/state.js.map +1 -0
- package/dist/src/foundation/supervision/index.d.ts +4 -0
- package/dist/src/foundation/supervision/index.d.ts.map +1 -0
- package/dist/src/foundation/supervision/index.js +4 -0
- package/dist/src/foundation/supervision/index.js.map +1 -0
- package/dist/src/foundation/supervision/main.d.ts +2 -0
- package/dist/src/foundation/supervision/main.d.ts.map +1 -0
- package/dist/src/foundation/supervision/main.js +40 -0
- package/dist/src/foundation/supervision/main.js.map +1 -0
- package/dist/src/foundation/supervision/paths.d.ts +2 -0
- package/dist/src/foundation/supervision/paths.d.ts.map +1 -0
- package/dist/src/foundation/supervision/paths.js +2 -0
- package/dist/src/foundation/supervision/paths.js.map +1 -0
- package/dist/src/foundation/supervision/server.d.ts +21 -0
- package/dist/src/foundation/supervision/server.d.ts.map +1 -0
- package/dist/src/foundation/supervision/server.js +283 -0
- package/dist/src/foundation/supervision/server.js.map +1 -0
- package/dist/src/foundation/transparent-terminal/command-resolution.d.ts +14 -0
- package/dist/src/foundation/transparent-terminal/command-resolution.d.ts.map +1 -0
- package/dist/src/foundation/transparent-terminal/command-resolution.js +70 -0
- package/dist/src/foundation/transparent-terminal/command-resolution.js.map +1 -0
- package/dist/src/foundation/transparent-terminal/foreground-broker.d.ts +33 -0
- package/dist/src/foundation/transparent-terminal/foreground-broker.d.ts.map +1 -0
- package/dist/src/foundation/transparent-terminal/foreground-broker.js +88 -0
- package/dist/src/foundation/transparent-terminal/foreground-broker.js.map +1 -0
- package/dist/src/foundation/transparent-terminal/index.d.ts +4 -0
- package/dist/src/foundation/transparent-terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/transparent-terminal/index.js +4 -0
- package/dist/src/foundation/transparent-terminal/index.js.map +1 -0
- package/dist/src/foundation/transparent-terminal/main.d.ts +10 -0
- package/dist/src/foundation/transparent-terminal/main.d.ts.map +1 -0
- package/dist/src/foundation/transparent-terminal/main.js +107 -0
- package/dist/src/foundation/transparent-terminal/main.js.map +1 -0
- package/dist/src/foundation/transparent-terminal/native-launcher.d.ts +26 -0
- package/dist/src/foundation/transparent-terminal/native-launcher.d.ts.map +1 -0
- package/dist/src/foundation/transparent-terminal/native-launcher.js +147 -0
- package/dist/src/foundation/transparent-terminal/native-launcher.js.map +1 -0
- package/dist/src/foundation/workspace-contracts/index.d.ts +3 -0
- package/dist/src/foundation/workspace-contracts/index.d.ts.map +1 -0
- package/dist/src/foundation/workspace-contracts/index.js +3 -0
- package/dist/src/foundation/workspace-contracts/index.js.map +1 -0
- package/dist/src/foundation/workspace-contracts/model.d.ts +249 -0
- package/dist/src/foundation/workspace-contracts/model.d.ts.map +1 -0
- package/dist/src/foundation/workspace-contracts/model.js +3 -0
- package/dist/src/foundation/workspace-contracts/model.js.map +1 -0
- package/dist/src/foundation/workspace-contracts/validation.d.ts +14 -0
- package/dist/src/foundation/workspace-contracts/validation.d.ts.map +1 -0
- package/dist/src/foundation/workspace-contracts/validation.js +336 -0
- package/dist/src/foundation/workspace-contracts/validation.js.map +1 -0
- package/docs/architecture/boundaries.md +46 -0
- package/docs/architecture/project-structure.md +81 -0
- package/docs/architecture/resource-and-data-policy.md +55 -0
- package/docs/architecture/terminal-host-proof-gate.md +32 -0
- package/docs/architecture/terminal-host-provenance.md +69 -0
- package/docs/architecture/terminal-host-spike-evidence.md +39 -0
- package/docs/architecture/toolchain.md +66 -0
- package/docs/features/launch-profiles.md +50 -0
- package/docs/manual-transparent-checkpoint.md +53 -0
- package/package.json +73 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { OWNED_UI_CONTRACT_VERSION, } from "./model.js";
|
|
2
|
+
const MAX_ID_LENGTH = 128;
|
|
3
|
+
const MAX_LABEL_LENGTH = 256;
|
|
4
|
+
const MAX_MESSAGE_LENGTH = 4_096;
|
|
5
|
+
const MAX_TEXT_BYTES = 256 * 1024;
|
|
6
|
+
const MAX_PAYLOAD_BYTES = 64 * 1024;
|
|
7
|
+
const MAX_SESSION_VIEW_BYTES = 1024 * 1024;
|
|
8
|
+
const MAX_BLOCKS = 10_000;
|
|
9
|
+
const MAX_CUSTOMIZATIONS = 1_000;
|
|
10
|
+
const MAX_DIAGNOSTICS = 1_000;
|
|
11
|
+
const MAX_QUEUE = 32;
|
|
12
|
+
const MAX_BADGES = 32;
|
|
13
|
+
const MAX_STATUS_DIAGNOSTICS = 32;
|
|
14
|
+
const MAX_ACTIVE_COMMANDS = 64;
|
|
15
|
+
const BLOCK_KINDS = new Set([
|
|
16
|
+
"user",
|
|
17
|
+
"assistant",
|
|
18
|
+
"thinking",
|
|
19
|
+
"tool-call",
|
|
20
|
+
"tool-result",
|
|
21
|
+
"retry",
|
|
22
|
+
"compaction",
|
|
23
|
+
"error",
|
|
24
|
+
"system",
|
|
25
|
+
"custom",
|
|
26
|
+
"bash",
|
|
27
|
+
]);
|
|
28
|
+
const LIFECYCLES = new Set(["starting", "ready", "busy", "suspended", "stopping", "stopped", "failed"]);
|
|
29
|
+
const BLOCK_STATUSES = new Set(["live", "finalized"]);
|
|
30
|
+
const SEVERITIES = new Set(["info", "warning", "error"]);
|
|
31
|
+
const THINKING_LEVELS = new Set(["off", "minimal", "low", "medium", "high", "xhigh"]);
|
|
32
|
+
const SLOT_IDS = new Set([
|
|
33
|
+
"theme",
|
|
34
|
+
"transcript-block",
|
|
35
|
+
"tool-card",
|
|
36
|
+
"editor",
|
|
37
|
+
"status",
|
|
38
|
+
"command",
|
|
39
|
+
"selector",
|
|
40
|
+
"dialog",
|
|
41
|
+
"overlay",
|
|
42
|
+
"layout",
|
|
43
|
+
]);
|
|
44
|
+
const OUTCOMES = new Set(["accepted", "rejected", "completed", "failed", "timed-out", "cancelled"]);
|
|
45
|
+
const FOCUSED_REGIONS = new Set(["transcript", "editor", "dialog", "overlay", "status"]);
|
|
46
|
+
const DIALOG_KINDS = new Set(["choice", "editor", "settings", "confirmation"]);
|
|
47
|
+
const OVERLAY_PLACEMENTS = new Set(["bottom", "center"]);
|
|
48
|
+
export function assertOwnedUiCommand(command) {
|
|
49
|
+
assertId(command.correlationId, "owned-UI correlation id");
|
|
50
|
+
assertId(command.sessionId, "owned-UI session id");
|
|
51
|
+
switch (command.type) {
|
|
52
|
+
case "prompt":
|
|
53
|
+
case "steer":
|
|
54
|
+
case "follow-up":
|
|
55
|
+
assertBoundedText(command.text, "owned-UI prompt text", MAX_TEXT_BYTES);
|
|
56
|
+
return;
|
|
57
|
+
case "abort":
|
|
58
|
+
case "retry":
|
|
59
|
+
case "compact":
|
|
60
|
+
case "shutdown":
|
|
61
|
+
case "new-session":
|
|
62
|
+
return;
|
|
63
|
+
case "resume-session":
|
|
64
|
+
assertBoundedText(command.sessionPath, "owned-UI resume session path", MAX_TEXT_BYTES);
|
|
65
|
+
return;
|
|
66
|
+
case "set-model":
|
|
67
|
+
assertId(command.model.providerId, "owned-UI provider id");
|
|
68
|
+
assertId(command.model.modelId, "owned-UI model id");
|
|
69
|
+
assertBoundedText(command.model.displayName, "owned-UI model display name", MAX_LABEL_LENGTH);
|
|
70
|
+
return;
|
|
71
|
+
case "set-thinking-level":
|
|
72
|
+
assertEnum(command.thinkingLevel, THINKING_LEVELS, "owned-UI thinking level");
|
|
73
|
+
return;
|
|
74
|
+
case "set-setting":
|
|
75
|
+
assertId(command.key, "owned-UI setting key");
|
|
76
|
+
assertJsonValue(command.value, "owned-UI setting value", MAX_PAYLOAD_BYTES);
|
|
77
|
+
return;
|
|
78
|
+
case "apply-customization":
|
|
79
|
+
assertOwnedUiCustomization(command.customization);
|
|
80
|
+
return;
|
|
81
|
+
case "remove-customization":
|
|
82
|
+
assertId(command.customizationId, "owned-UI customization id");
|
|
83
|
+
return;
|
|
84
|
+
case "resize-surface":
|
|
85
|
+
assertOwnedUiTerminalSurface(command.surface);
|
|
86
|
+
return;
|
|
87
|
+
default:
|
|
88
|
+
throw new TypeError("owned-UI command type is unknown");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export function assertOwnedUiEvent(event) {
|
|
92
|
+
assertId(event.sessionId, "owned-UI event session id");
|
|
93
|
+
assertNonNegativeInteger(event.sequence, "owned-UI event sequence");
|
|
94
|
+
switch (event.type) {
|
|
95
|
+
case "session-lifecycle":
|
|
96
|
+
assertEnum(event.lifecycle, LIFECYCLES, "owned-UI lifecycle");
|
|
97
|
+
assertOptionalText(event.reason, "owned-UI lifecycle reason", MAX_MESSAGE_LENGTH);
|
|
98
|
+
return;
|
|
99
|
+
case "session-view":
|
|
100
|
+
assertOwnedUiSessionViewModel(event.view);
|
|
101
|
+
assertViewSession(event.view, event.sessionId);
|
|
102
|
+
return;
|
|
103
|
+
case "transcript-block":
|
|
104
|
+
assertOwnedUiTranscriptBlock(event.block);
|
|
105
|
+
return;
|
|
106
|
+
case "editor-state":
|
|
107
|
+
assertOwnedUiEditorState(event.editor);
|
|
108
|
+
return;
|
|
109
|
+
case "status":
|
|
110
|
+
assertOwnedUiStatusView(event.status);
|
|
111
|
+
return;
|
|
112
|
+
case "dialog":
|
|
113
|
+
if (event.dialog !== null)
|
|
114
|
+
assertOwnedUiDialog(event.dialog);
|
|
115
|
+
return;
|
|
116
|
+
case "overlay":
|
|
117
|
+
if (event.overlay !== null)
|
|
118
|
+
assertOwnedUiOverlay(event.overlay);
|
|
119
|
+
return;
|
|
120
|
+
case "command-outcome":
|
|
121
|
+
assertId(event.correlationId, "owned-UI outcome correlation id");
|
|
122
|
+
assertEnum(event.outcome, OUTCOMES, "owned-UI command outcome");
|
|
123
|
+
assertOptionalText(event.diagnostic, "owned-UI command diagnostic", MAX_MESSAGE_LENGTH);
|
|
124
|
+
return;
|
|
125
|
+
case "customization":
|
|
126
|
+
assertCollection(event.customizations, "owned-UI customizations", MAX_CUSTOMIZATIONS);
|
|
127
|
+
assertUniqueCustomizations(event.customizations);
|
|
128
|
+
for (const customization of event.customizations)
|
|
129
|
+
assertOwnedUiCustomization(customization);
|
|
130
|
+
return;
|
|
131
|
+
case "terminal-surface":
|
|
132
|
+
assertOwnedUiTerminalSurface(event.surface);
|
|
133
|
+
return;
|
|
134
|
+
case "diagnostic":
|
|
135
|
+
assertOwnedUiDiagnostics(event.diagnostic);
|
|
136
|
+
return;
|
|
137
|
+
default:
|
|
138
|
+
throw new TypeError("owned-UI event type is unknown");
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export function assertOwnedUiSessionViewModel(view) {
|
|
142
|
+
if (view.contractVersion !== OWNED_UI_CONTRACT_VERSION) {
|
|
143
|
+
throw new TypeError("unsupported owned-UI contract version");
|
|
144
|
+
}
|
|
145
|
+
assertId(view.sessionId, "owned-UI view session id");
|
|
146
|
+
assertNonNegativeInteger(view.revision, "owned-UI view revision");
|
|
147
|
+
assertEnum(view.lifecycle, LIFECYCLES, "owned-UI lifecycle");
|
|
148
|
+
assertOwnedUiEditorState(view.editor);
|
|
149
|
+
assertOwnedUiStatusView(view.status);
|
|
150
|
+
assertOwnedUiTerminalSurface(view.terminal);
|
|
151
|
+
if (view.activeModel !== null) {
|
|
152
|
+
assertId(view.activeModel.providerId, "owned-UI provider id");
|
|
153
|
+
assertId(view.activeModel.modelId, "owned-UI model id");
|
|
154
|
+
assertBoundedText(view.activeModel.displayName, "owned-UI model display name", MAX_LABEL_LENGTH);
|
|
155
|
+
}
|
|
156
|
+
assertEnum(view.thinkingLevel, THINKING_LEVELS, "owned-UI thinking level");
|
|
157
|
+
assertCollection(view.activeCommandIds, "owned-UI active commands", MAX_ACTIVE_COMMANDS);
|
|
158
|
+
for (const commandId of view.activeCommandIds)
|
|
159
|
+
assertId(commandId, "owned-UI active command id");
|
|
160
|
+
if (view.dialog !== null)
|
|
161
|
+
assertOwnedUiDialog(view.dialog);
|
|
162
|
+
if (view.overlay !== null)
|
|
163
|
+
assertOwnedUiOverlay(view.overlay);
|
|
164
|
+
if (view.dialog !== null && view.terminal.focusedRegion !== "dialog") {
|
|
165
|
+
throw new TypeError("an active owned-UI dialog must own dialog focus");
|
|
166
|
+
}
|
|
167
|
+
if (view.dialog === null && view.overlay !== null && view.terminal.focusedRegion !== "overlay") {
|
|
168
|
+
throw new TypeError("an active owned-UI overlay must own overlay focus");
|
|
169
|
+
}
|
|
170
|
+
assertCollection(view.transcript, "owned-UI transcript blocks", MAX_BLOCKS);
|
|
171
|
+
const blockIds = new Set();
|
|
172
|
+
for (const block of view.transcript) {
|
|
173
|
+
assertOwnedUiTranscriptBlock(block);
|
|
174
|
+
if (blockIds.has(block.id))
|
|
175
|
+
throw new TypeError(`duplicate owned-UI transcript block id: ${block.id}`);
|
|
176
|
+
blockIds.add(block.id);
|
|
177
|
+
}
|
|
178
|
+
assertCollection(view.customizations, "owned-UI customizations", MAX_CUSTOMIZATIONS);
|
|
179
|
+
assertUniqueCustomizations(view.customizations);
|
|
180
|
+
for (const customization of view.customizations)
|
|
181
|
+
assertOwnedUiCustomization(customization);
|
|
182
|
+
assertCollection(view.diagnostics, "owned-UI diagnostics", MAX_DIAGNOSTICS);
|
|
183
|
+
for (const diagnostic of view.diagnostics)
|
|
184
|
+
assertOwnedUiDiagnostics(diagnostic);
|
|
185
|
+
assertJsonBytes(view, "owned-UI session view", MAX_SESSION_VIEW_BYTES);
|
|
186
|
+
}
|
|
187
|
+
export function assertOwnedUiSnapshot(snapshot) {
|
|
188
|
+
if (snapshot.contractVersion !== OWNED_UI_CONTRACT_VERSION) {
|
|
189
|
+
throw new TypeError("unsupported owned-UI snapshot contract version");
|
|
190
|
+
}
|
|
191
|
+
assertId(snapshot.snapshotId, "owned-UI snapshot id");
|
|
192
|
+
assertId(snapshot.sessionId, "owned-UI snapshot session id");
|
|
193
|
+
assertNonNegativeInteger(snapshot.sequence, "owned-UI snapshot sequence");
|
|
194
|
+
assertOwnedUiSessionViewModel(snapshot.view);
|
|
195
|
+
assertViewSession(snapshot.view, snapshot.sessionId);
|
|
196
|
+
assertJsonBytes(snapshot, "owned-UI snapshot", MAX_SESSION_VIEW_BYTES);
|
|
197
|
+
}
|
|
198
|
+
export function assertOwnedUiCustomization(customization) {
|
|
199
|
+
assertId(customization.id, "owned-UI customization id");
|
|
200
|
+
assertEnum(customization.slot, SLOT_IDS, "owned-UI customization slot");
|
|
201
|
+
assertIntegerInRange(customization.version, 1, Number.MAX_SAFE_INTEGER, "owned-UI customization version");
|
|
202
|
+
assertIntegerInRange(customization.precedence, 0, 10_000, "owned-UI customization precedence");
|
|
203
|
+
assertBoundedText(customization.label, "owned-UI customization label", MAX_LABEL_LENGTH);
|
|
204
|
+
assertJsonObject(customization.payload, "owned-UI customization payload", MAX_PAYLOAD_BYTES);
|
|
205
|
+
}
|
|
206
|
+
export function assertOwnedUiTranscriptBlock(block) {
|
|
207
|
+
assertId(block.id, "owned-UI transcript block id");
|
|
208
|
+
assertEnum(block.kind, BLOCK_KINDS, "owned-UI transcript block kind");
|
|
209
|
+
assertEnum(block.status, BLOCK_STATUSES, "owned-UI transcript block status");
|
|
210
|
+
assertNonNegativeInteger(block.revision, "owned-UI transcript block revision");
|
|
211
|
+
assertOptionalText(block.title, "owned-UI transcript block title", MAX_LABEL_LENGTH);
|
|
212
|
+
assertPossiblyEmptyText(block.text, "owned-UI transcript block text", MAX_TEXT_BYTES);
|
|
213
|
+
assertJsonValue(block.payload, "owned-UI transcript block payload", MAX_PAYLOAD_BYTES);
|
|
214
|
+
}
|
|
215
|
+
export function assertOwnedUiEditorState(editor) {
|
|
216
|
+
assertPossiblyEmptyText(editor.text, "owned-UI editor text", MAX_TEXT_BYTES);
|
|
217
|
+
assertCollection(editor.queuedSubmissions, "owned-UI queued submissions", MAX_QUEUE);
|
|
218
|
+
let queuedBytes = 0;
|
|
219
|
+
for (const submission of editor.queuedSubmissions) {
|
|
220
|
+
assertBoundedText(submission, "owned-UI queued submission", MAX_TEXT_BYTES);
|
|
221
|
+
queuedBytes += textBytes(submission);
|
|
222
|
+
}
|
|
223
|
+
if (queuedBytes > MAX_TEXT_BYTES)
|
|
224
|
+
throw new RangeError("owned-UI queued submissions exceed their byte limit");
|
|
225
|
+
assertIntegerInRange(editor.cursorOffset, 0, editor.text.length, "owned-UI editor cursor offset");
|
|
226
|
+
assertNonNegativeInteger(editor.historyRevision, "owned-UI editor history revision");
|
|
227
|
+
if (typeof editor.submitEnabled !== "boolean")
|
|
228
|
+
throw new TypeError("owned-UI submit state is invalid");
|
|
229
|
+
if (editor.selection !== null) {
|
|
230
|
+
assertIntegerInRange(editor.selection.start, 0, editor.text.length, "owned-UI selection start");
|
|
231
|
+
assertIntegerInRange(editor.selection.end, editor.selection.start, editor.text.length, "owned-UI selection end");
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
export function assertOwnedUiStatusView(status) {
|
|
235
|
+
assertBoundedText(status.title, "owned-UI status title", MAX_LABEL_LENGTH);
|
|
236
|
+
assertOptionalText(status.workingMessage, "owned-UI working message", MAX_MESSAGE_LENGTH);
|
|
237
|
+
assertCollection(status.diagnostics, "owned-UI status diagnostics", MAX_STATUS_DIAGNOSTICS);
|
|
238
|
+
for (const diagnostic of status.diagnostics) {
|
|
239
|
+
assertBoundedText(diagnostic, "owned-UI status diagnostic", MAX_MESSAGE_LENGTH);
|
|
240
|
+
}
|
|
241
|
+
assertCollection(status.badges, "owned-UI status badges", MAX_BADGES);
|
|
242
|
+
for (const badge of status.badges)
|
|
243
|
+
assertBoundedText(badge, "owned-UI status badge", MAX_LABEL_LENGTH);
|
|
244
|
+
if (status.usage !== undefined) {
|
|
245
|
+
for (const [name, value] of Object.entries({
|
|
246
|
+
input: status.usage.input,
|
|
247
|
+
output: status.usage.output,
|
|
248
|
+
cacheRead: status.usage.cacheRead,
|
|
249
|
+
cacheWrite: status.usage.cacheWrite,
|
|
250
|
+
cost: status.usage.cost,
|
|
251
|
+
contextWindow: status.usage.contextWindow,
|
|
252
|
+
})) {
|
|
253
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0)
|
|
254
|
+
throw new TypeError(`owned-UI usage ${name} is invalid`);
|
|
255
|
+
}
|
|
256
|
+
if (status.usage.latestCacheHitRate !== null
|
|
257
|
+
&& (typeof status.usage.latestCacheHitRate !== "number" || !Number.isFinite(status.usage.latestCacheHitRate))) {
|
|
258
|
+
throw new TypeError("owned-UI cache-hit rate is invalid");
|
|
259
|
+
}
|
|
260
|
+
if (status.usage.latestPrompt !== undefined && status.usage.latestPrompt !== null) {
|
|
261
|
+
for (const [name, value] of Object.entries(status.usage.latestPrompt)) {
|
|
262
|
+
if (!Number.isSafeInteger(value) || value < 0)
|
|
263
|
+
throw new TypeError(`owned-UI latest prompt ${name} is invalid`);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
if (status.usage.contextAvailable !== undefined && typeof status.usage.contextAvailable !== "boolean") {
|
|
267
|
+
throw new TypeError("owned-UI context availability is invalid");
|
|
268
|
+
}
|
|
269
|
+
if (status.usage.contextTokens !== null
|
|
270
|
+
&& (!Number.isSafeInteger(status.usage.contextTokens) || status.usage.contextTokens < 0)) {
|
|
271
|
+
throw new TypeError("owned-UI context tokens are invalid");
|
|
272
|
+
}
|
|
273
|
+
if (status.usage.contextPercent !== null
|
|
274
|
+
&& (typeof status.usage.contextPercent !== "number" || !Number.isFinite(status.usage.contextPercent))) {
|
|
275
|
+
throw new TypeError("owned-UI context percentage is invalid");
|
|
276
|
+
}
|
|
277
|
+
if (typeof status.usage.usingSubscription !== "boolean" || typeof status.usage.autoCompactEnabled !== "boolean") {
|
|
278
|
+
throw new TypeError("owned-UI usage flags are invalid");
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (status.footer !== undefined) {
|
|
282
|
+
assertOptionalText(status.footer.branch, "owned-UI footer branch", MAX_LABEL_LENGTH);
|
|
283
|
+
assertOptionalText(status.footer.sessionName, "owned-UI footer session name", MAX_LABEL_LENGTH);
|
|
284
|
+
assertIntegerInRange(status.footer.availableProviderCount, 0, 1_000, "owned-UI footer provider count");
|
|
285
|
+
assertCollection(status.footer.extensionStatuses, "owned-UI footer extension statuses", MAX_BADGES);
|
|
286
|
+
for (const entry of status.footer.extensionStatuses) {
|
|
287
|
+
if (!Array.isArray(entry) || entry.length !== 2)
|
|
288
|
+
throw new TypeError("owned-UI footer extension status is invalid");
|
|
289
|
+
assertBoundedText(entry[0], "owned-UI footer extension id", MAX_LABEL_LENGTH);
|
|
290
|
+
assertBoundedText(entry[1], "owned-UI footer extension value", MAX_LABEL_LENGTH);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
export function assertOwnedUiTerminalSurface(surface) {
|
|
295
|
+
assertIntegerInRange(surface.columns, 20, 500, "owned-UI terminal columns");
|
|
296
|
+
assertIntegerInRange(surface.rows, 8, 300, "owned-UI terminal rows");
|
|
297
|
+
assertEnum(surface.focusedRegion, FOCUSED_REGIONS, "owned-UI focused region");
|
|
298
|
+
if (typeof surface.hardwareCursor !== "boolean")
|
|
299
|
+
throw new TypeError("owned-UI hardware-cursor state is invalid");
|
|
300
|
+
}
|
|
301
|
+
export function assertOwnedUiDiagnostics(diagnostic) {
|
|
302
|
+
assertNonNegativeInteger(diagnostic.sequence, "owned-UI diagnostic sequence");
|
|
303
|
+
assertId(diagnostic.code, "owned-UI diagnostic code");
|
|
304
|
+
assertEnum(diagnostic.severity, SEVERITIES, "owned-UI diagnostic severity");
|
|
305
|
+
assertBoundedText(diagnostic.message, "owned-UI diagnostic message", MAX_MESSAGE_LENGTH);
|
|
306
|
+
if (typeof diagnostic.recoverable !== "boolean")
|
|
307
|
+
throw new TypeError("owned-UI diagnostic recoverability is invalid");
|
|
308
|
+
}
|
|
309
|
+
function assertOwnedUiDialog(dialog) {
|
|
310
|
+
assertId(dialog.id, "owned-UI dialog id");
|
|
311
|
+
assertBoundedText(dialog.title, "owned-UI dialog title", MAX_LABEL_LENGTH);
|
|
312
|
+
assertEnum(dialog.kind, DIALOG_KINDS, "owned-UI dialog kind");
|
|
313
|
+
assertJsonValue(dialog.payload, "owned-UI dialog payload", MAX_PAYLOAD_BYTES);
|
|
314
|
+
}
|
|
315
|
+
function assertOwnedUiOverlay(overlay) {
|
|
316
|
+
assertId(overlay.id, "owned-UI overlay id");
|
|
317
|
+
assertId(overlay.componentSlotId, "owned-UI overlay component slot id");
|
|
318
|
+
assertEnum(overlay.placement, OVERLAY_PLACEMENTS, "owned-UI overlay placement");
|
|
319
|
+
if (typeof overlay.modal !== "boolean")
|
|
320
|
+
throw new TypeError("owned-UI overlay modal state is invalid");
|
|
321
|
+
assertJsonValue(overlay.payload, "owned-UI overlay payload", MAX_PAYLOAD_BYTES);
|
|
322
|
+
}
|
|
323
|
+
function assertUniqueCustomizations(customizations) {
|
|
324
|
+
const ids = new Set();
|
|
325
|
+
for (const customization of customizations) {
|
|
326
|
+
if (ids.has(customization.id))
|
|
327
|
+
throw new TypeError(`duplicate owned-UI customization id: ${customization.id}`);
|
|
328
|
+
ids.add(customization.id);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function assertViewSession(view, sessionId) {
|
|
332
|
+
if (view.sessionId !== sessionId)
|
|
333
|
+
throw new TypeError("owned-UI view session identity does not match its envelope");
|
|
334
|
+
}
|
|
335
|
+
function assertEnum(value, allowed, name) {
|
|
336
|
+
if (typeof value !== "string" || !allowed.has(value))
|
|
337
|
+
throw new TypeError(`${name} is invalid`);
|
|
338
|
+
}
|
|
339
|
+
function assertId(value, name) {
|
|
340
|
+
assertBoundedText(value, name, MAX_ID_LENGTH);
|
|
341
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._:-]*$/.test(value))
|
|
342
|
+
throw new TypeError(`${name} contains unsupported characters`);
|
|
343
|
+
}
|
|
344
|
+
function assertBoundedText(value, name, maximumBytes) {
|
|
345
|
+
if (typeof value !== "string" || value.length === 0 || value.includes("\0") || textBytes(value) > maximumBytes) {
|
|
346
|
+
throw new TypeError(`${name} is invalid`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
function assertPossiblyEmptyText(value, name, maximumBytes) {
|
|
350
|
+
if (typeof value !== "string" || value.includes("\0") || textBytes(value) > maximumBytes) {
|
|
351
|
+
throw new TypeError(`${name} is invalid`);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function assertOptionalText(value, name, maximumBytes) {
|
|
355
|
+
if (value === null)
|
|
356
|
+
return;
|
|
357
|
+
assertBoundedText(value, name, maximumBytes);
|
|
358
|
+
}
|
|
359
|
+
function assertCollection(value, name, maximum) {
|
|
360
|
+
if (!Array.isArray(value) || value.length > maximum)
|
|
361
|
+
throw new RangeError(`${name} exceeds its maximum length`);
|
|
362
|
+
}
|
|
363
|
+
function assertNonNegativeInteger(value, name) {
|
|
364
|
+
assertIntegerInRange(value, 0, Number.MAX_SAFE_INTEGER, name);
|
|
365
|
+
}
|
|
366
|
+
function assertIntegerInRange(value, minimum, maximum, name) {
|
|
367
|
+
if (!Number.isSafeInteger(value) || value < minimum || value > maximum) {
|
|
368
|
+
throw new RangeError(`${name} must be an integer from ${minimum} to ${maximum}`);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function assertJsonObject(value, name, maximumBytes) {
|
|
372
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
373
|
+
throw new TypeError(`${name} must be an object`);
|
|
374
|
+
}
|
|
375
|
+
assertJsonValue(value, name, maximumBytes);
|
|
376
|
+
}
|
|
377
|
+
function assertJsonValue(value, name, maximumBytes) {
|
|
378
|
+
let encoded;
|
|
379
|
+
try {
|
|
380
|
+
encoded = JSON.stringify(value);
|
|
381
|
+
}
|
|
382
|
+
catch {
|
|
383
|
+
throw new TypeError(`${name} must be JSON serializable`);
|
|
384
|
+
}
|
|
385
|
+
if (encoded === undefined)
|
|
386
|
+
throw new TypeError(`${name} must be JSON serializable`);
|
|
387
|
+
if (textBytes(encoded) > maximumBytes)
|
|
388
|
+
throw new RangeError(`${name} exceeds its byte limit`);
|
|
389
|
+
}
|
|
390
|
+
function assertJsonBytes(value, name, maximumBytes) {
|
|
391
|
+
assertJsonValue(value, name, maximumBytes);
|
|
392
|
+
}
|
|
393
|
+
function textBytes(value) {
|
|
394
|
+
return new TextEncoder().encode(value).byteLength;
|
|
395
|
+
}
|
|
396
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../src/foundation/owned-ui-contracts/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAa1B,MAAM,YAAY,CAAC;AAEpB,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACjC,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;AAClC,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,CAAC;AACpC,MAAM,sBAAsB,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACjC,MAAM,eAAe,GAAG,KAAK,CAAC;AAC9B,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,MAAM;IACN,WAAW;IACX,UAAU;IACV,WAAW;IACX,aAAa;IACb,OAAO;IACP,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;CACP,CAAC,CAAC;AACH,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AACxG,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AACtD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EA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KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,SAAS,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;IACnD,CAAC;IACD,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,eAAe,CAAC,KAAc,EAAE,IAAY,EAAE,YAAoB;IACzE,IAAI,OAA2B,CAAC;IAChC,IAAI,CAAC;QACH,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,SAAS,CAAC,GAAG,IAAI,4BAA4B,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,OAAO,KAAK,SAAS;QAAE,MAAM,IAAI,SAAS,CAAC,GAAG,IAAI,4BAA4B,CAAC,CAAC;IACpF,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,YAAY;QAAE,MAAM,IAAI,UAAU,CAAC,GAAG,IAAI,yBAAyB,CAAC,CAAC;AAChG,CAAC;AAED,SAAS,eAAe,CAAC,KAAc,EAAE,IAAY,EAAE,YAAoB;IACzE,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { OwnedUiTranscriptBlock } from "../owned-ui-contracts/index.js";
|
|
2
|
+
export declare function adaptPiUserMessage(block: OwnedUiTranscriptBlock, width: number): readonly string[];
|
|
3
|
+
export declare function adaptPiAssistantMessage(block: OwnedUiTranscriptBlock, width: number): readonly string[];
|
|
4
|
+
export declare function adaptPiToolExecution(block: OwnedUiTranscriptBlock, width: number, cwd: string): readonly string[];
|
|
5
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/components.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAI7E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAIlG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAIvG;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,GACV,SAAS,MAAM,EAAE,CA2BnB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AssistantMessageComponent, ToolExecutionComponent, UserMessageComponent, } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { createTuiFacade, validatedAssistantMessage } from "./shell-components.js";
|
|
3
|
+
import { ensurePiTheme } from "./theme.js";
|
|
4
|
+
export function adaptPiUserMessage(block, width) {
|
|
5
|
+
requireBlock(block, "user");
|
|
6
|
+
ensurePiTheme();
|
|
7
|
+
return new UserMessageComponent(block.text).render(width);
|
|
8
|
+
}
|
|
9
|
+
export function adaptPiAssistantMessage(block, width) {
|
|
10
|
+
requireBlock(block, "assistant");
|
|
11
|
+
ensurePiTheme();
|
|
12
|
+
return new AssistantMessageComponent(validatedAssistantMessage(block), false).render(width);
|
|
13
|
+
}
|
|
14
|
+
export function adaptPiToolExecution(block, width, cwd) {
|
|
15
|
+
if (block.kind !== "tool-call" && block.kind !== "tool-result") {
|
|
16
|
+
throw new TypeError("Pi tool execution adaptation requires a tool block");
|
|
17
|
+
}
|
|
18
|
+
ensurePiTheme();
|
|
19
|
+
const payload = blockPayload(block);
|
|
20
|
+
const toolCallId = stringPayload(payload, "toolCallId") ?? block.id;
|
|
21
|
+
const toolName = stringPayload(payload, "toolName") ?? block.title ?? "tool";
|
|
22
|
+
const args = isRecord(payload.arguments) && "json" in payload.arguments ? payload.arguments.json : {};
|
|
23
|
+
const component = new ToolExecutionComponent(toolName, toolCallId, args, undefined, undefined, createTuiFacade({ getColumns: () => width, getRows: () => 24, requestRender() { } }), cwd);
|
|
24
|
+
if (block.status === "live")
|
|
25
|
+
component.markExecutionStarted();
|
|
26
|
+
component.setArgsComplete();
|
|
27
|
+
if (block.kind === "tool-result") {
|
|
28
|
+
component.updateResult({
|
|
29
|
+
content: [{ type: "text", text: block.text }],
|
|
30
|
+
isError: payload.isError === true,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return component.render(width);
|
|
34
|
+
}
|
|
35
|
+
function requireBlock(block, kind) {
|
|
36
|
+
if (block.kind !== kind)
|
|
37
|
+
throw new TypeError(`Pi component adaptation requires ${kind}, received ${block.kind}`);
|
|
38
|
+
}
|
|
39
|
+
function blockPayload(block) {
|
|
40
|
+
return isRecord(block.payload) ? block.payload : {};
|
|
41
|
+
}
|
|
42
|
+
function blockProvider(block) {
|
|
43
|
+
return stringPayload(blockPayload(block), "provider") ?? "openai";
|
|
44
|
+
}
|
|
45
|
+
function blockModel(block) {
|
|
46
|
+
return stringPayload(blockPayload(block), "model") ?? "gpt-5";
|
|
47
|
+
}
|
|
48
|
+
function stringPayload(payload, key) {
|
|
49
|
+
const value = payload[key];
|
|
50
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
51
|
+
}
|
|
52
|
+
function emptyUsage() {
|
|
53
|
+
return {
|
|
54
|
+
input: 0,
|
|
55
|
+
output: 0,
|
|
56
|
+
cacheRead: 0,
|
|
57
|
+
cacheWrite: 0,
|
|
58
|
+
totalTokens: 0,
|
|
59
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function isRecord(value) {
|
|
63
|
+
return typeof value === "object" && value !== null;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/components.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,UAAU,kBAAkB,CAAC,KAA6B,EAAE,KAAa;IAC7E,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,OAAO,IAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAA6B,EAAE,KAAa;IAClF,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACjC,aAAa,EAAE,CAAC;IAChB,OAAO,IAAI,yBAAyB,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,KAA6B,EAC7B,KAAa,EACb,GAAW;IAEX,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;QAC/D,MAAM,IAAI,SAAS,CAAC,oDAAoD,CAAC,CAAC;IAC5E,CAAC;IACD,aAAa,EAAE,CAAC;IAChB,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,KAAK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,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;AACtD,CAAC;AAED,SAAS,aAAa,CAAC,KAA6B;IAClD,OAAO,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,IAAI,QAAQ,CAAC;AACpE,CAAC;AAED,SAAS,UAAU,CAAC,KAA6B;IAC/C,OAAO,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,OAAO,CAAC;AAChE,CAAC;AAED,SAAS,aAAa,CAAC,OAAgC,EAAE,GAAW;IAClE,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,SAAS,UAAU;IACjB,OAAO;QACL,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;QACd,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PiComponentConformanceResult {
|
|
2
|
+
readonly component: "user-message" | "assistant-message" | "tool-execution";
|
|
3
|
+
readonly renderRows: number;
|
|
4
|
+
readonly width: number;
|
|
5
|
+
}
|
|
6
|
+
export interface PiComponentConformanceReport {
|
|
7
|
+
readonly packageName: "@earendil-works/pi-coding-agent";
|
|
8
|
+
readonly packageVersion: string;
|
|
9
|
+
readonly ownedUiContractVersion: number;
|
|
10
|
+
readonly componentResults: readonly PiComponentConformanceResult[];
|
|
11
|
+
}
|
|
12
|
+
export declare class PiComponentConformanceError extends Error {
|
|
13
|
+
readonly stage: "theme" | "components";
|
|
14
|
+
constructor(stage: "theme" | "components", cause: unknown);
|
|
15
|
+
}
|
|
16
|
+
export declare function runPiComponentConformance(): Promise<PiComponentConformanceReport>;
|
|
17
|
+
//# sourceMappingURL=conformance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/conformance.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,EAAE,cAAc,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,EAAE,iCAAiC,CAAC;IACxD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,4BAA4B,EAAE,CAAC;CACpE;AAED,qBAAa,2BAA4B,SAAQ,KAAK;IACxC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;gBAA7B,KAAK,EAAE,OAAO,GAAG,YAAY,EAAE,KAAK,EAAE,OAAO;CAInE;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,4BAA4B,CAAC,CAoDvF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
2
|
+
import { tmpdir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { AssistantMessageComponent, initTheme, ToolExecutionComponent, UserMessageComponent, VERSION, } from "@earendil-works/pi-coding-agent";
|
|
5
|
+
import { OWNED_UI_CONTRACT_VERSION } from "../owned-ui-contracts/index.js";
|
|
6
|
+
import { createTuiFacade, validatedAssistantMessage } from "./shell-components.js";
|
|
7
|
+
export class PiComponentConformanceError extends Error {
|
|
8
|
+
stage;
|
|
9
|
+
constructor(stage, cause) {
|
|
10
|
+
super(`Pi component conformance failed during ${stage}: ${cause instanceof Error ? cause.message : String(cause)}`, { cause });
|
|
11
|
+
this.stage = stage;
|
|
12
|
+
this.name = "PiComponentConformanceError";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export async function runPiComponentConformance() {
|
|
16
|
+
const root = await mkdtemp(join(tmpdir(), "addone-pi-components-"));
|
|
17
|
+
try {
|
|
18
|
+
try {
|
|
19
|
+
initTheme("dark", false);
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
throw new PiComponentConformanceError("theme", error);
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const width = 80;
|
|
26
|
+
const user = new UserMessageComponent("hello from AddOne");
|
|
27
|
+
const assistantBlock = {
|
|
28
|
+
id: "assistant-1",
|
|
29
|
+
kind: "assistant",
|
|
30
|
+
status: "finalized",
|
|
31
|
+
text: "hello from Pi",
|
|
32
|
+
title: null,
|
|
33
|
+
revision: 1,
|
|
34
|
+
payload: { provider: "openai", model: "gpt-5" },
|
|
35
|
+
};
|
|
36
|
+
const assistant = new AssistantMessageComponent(validatedAssistantMessage(assistantBlock), false);
|
|
37
|
+
const tool = new ToolExecutionComponent("read", "tool-1", { path: "README.md" }, undefined, undefined, createTuiFacade({ getColumns: () => width, getRows: () => 24, requestRender() { } }), root);
|
|
38
|
+
const componentResults = [
|
|
39
|
+
{ component: "user-message", renderRows: user.render(width).length, width },
|
|
40
|
+
{ component: "assistant-message", renderRows: assistant.render(width).length, width },
|
|
41
|
+
{ component: "tool-execution", renderRows: tool.render(width).length, width },
|
|
42
|
+
];
|
|
43
|
+
if (componentResults.some(result => result.renderRows <= 0)) {
|
|
44
|
+
throw new Error("a public component produced no render rows");
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
packageName: "@earendil-works/pi-coding-agent",
|
|
48
|
+
packageVersion: VERSION,
|
|
49
|
+
ownedUiContractVersion: OWNED_UI_CONTRACT_VERSION,
|
|
50
|
+
componentResults,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (error instanceof PiComponentConformanceError)
|
|
55
|
+
throw error;
|
|
56
|
+
throw new PiComponentConformanceError("components", error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
await rm(root, { recursive: true, force: true });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=conformance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.js","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,yBAAyB,EACzB,SAAS,EACT,sBAAsB,EACtB,oBAAoB,EACpB,OAAO,GACR,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAA+B,MAAM,gCAAgC,CAAC;AACxG,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAenF,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IAC/B;IAArB,YAAqB,KAA6B,EAAE,KAAc;QAChE,KAAK,CAAC,0CAA0C,KAAK,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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a,KAAI,CAAC,EAAE,CAAC,EACnF,IAAI,CACL,CAAC;YACF,MAAM,gBAAgB,GAAmC;gBACvD,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE;gBAC3E,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE;gBACrF,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE;aAC9E,CAAC;YACF,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC,EAAE,CAAC;gBAC5D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAChE,CAAC;YACD,OAAO;gBACL,WAAW,EAAE,iCAAiC;gBAC9C,cAAc,EAAE,OAAO;gBACvB,sBAAsB,EAAE,yBAAyB;gBACjD,gBAAgB;aACjB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,2BAA2B;gBAAE,MAAM,KAAK,CAAC;YAC9D,MAAM,IAAI,2BAA2B,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./components.js";
|
|
2
|
+
export * from "./conformance.js";
|
|
3
|
+
export * from "./shell-components.js";
|
|
4
|
+
export * from "./theme.js";
|
|
5
|
+
export * from "./upstream/theme/theme-controller.js";
|
|
6
|
+
export * from "./upstream/components/countdown-timer.js";
|
|
7
|
+
export * from "./upstream/components/extension-editor.js";
|
|
8
|
+
export * from "./upstream/components/session-selector.js";
|
|
9
|
+
export * from "./upstream/components/session-selector-search.js";
|
|
10
|
+
export * from "./upstream/components/status-indicator.js";
|
|
11
|
+
export * from "./upstream/components/tree-selector.js";
|
|
12
|
+
export * from "./upstream/adjacent/core/keybindings.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./components.js";
|
|
2
|
+
export * from "./conformance.js";
|
|
3
|
+
export * from "./shell-components.js";
|
|
4
|
+
export * from "./theme.js";
|
|
5
|
+
export * from "./upstream/theme/theme-controller.js";
|
|
6
|
+
export * from "./upstream/components/countdown-timer.js";
|
|
7
|
+
export * from "./upstream/components/extension-editor.js";
|
|
8
|
+
export * from "./upstream/components/session-selector.js";
|
|
9
|
+
export * from "./upstream/components/session-selector-search.js";
|
|
10
|
+
export * from "./upstream/components/status-indicator.js";
|
|
11
|
+
export * from "./upstream/components/tree-selector.js";
|
|
12
|
+
export * from "./upstream/adjacent/core/keybindings.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/foundation/pi-component-adapter/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC"}
|