dal-code 1.0.15 → 1.0.17
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/CHANGELOG.md +33 -0
- package/dist/bun/cli.js +1 -4
- package/dist/bun/restore-sandbox-env.js +1 -36
- package/dist/bun/runtime-setup.js +1 -9
- package/dist/bun/sandbox-env-setup.js +1 -4
- package/dist/cli/args.js +50 -299
- package/dist/cli/auth-check.js +1 -50
- package/dist/cli/auth-command.js +2 -99
- package/dist/cli/config-selector.js +1 -32
- package/dist/cli/credential-print.js +1 -76
- package/dist/cli/file-processor.js +8 -71
- package/dist/cli/initial-message.js +1 -22
- package/dist/cli/list-models.js +2 -98
- package/dist/cli/project-trust.js +2 -49
- package/dist/cli/session-picker.js +1 -36
- package/dist/cli/setup.js +1 -12
- package/dist/cli/startup-ui.js +1 -185
- package/dist/cli.js +1 -5
- package/dist/config.js +1 -504
- package/dist/core/agent-session-runtime.js +1 -317
- package/dist/core/agent-session-services.js +1 -207
- package/dist/core/agent-session.js +14 -2894
- package/dist/core/auth-guidance.js +5 -27
- package/dist/core/auth-storage.js +1 -426
- package/dist/core/bash-executor.js +1 -111
- package/dist/core/bug-report-upload.js +1 -0
- package/dist/core/bug-report.js +27 -0
- package/dist/core/cache-stats.js +1 -101
- package/dist/core/cache-warmer.js +1 -0
- package/dist/core/compaction/branch-summarization.js +9 -223
- package/dist/core/compaction/compaction.js +36 -599
- package/dist/core/compaction/index.js +1 -7
- package/dist/core/compaction/utils.js +17 -141
- package/dist/core/crash-log.js +4 -0
- package/dist/core/defaults.js +1 -11
- package/dist/core/diagnostics.js +0 -2
- package/dist/core/empty-assistant.js +1 -27
- package/dist/core/event-bus.js +1 -25
- package/dist/core/exec.js +1 -75
- package/dist/core/experimental.js +1 -8
- package/dist/core/export-html/ansi-to-html.js +1 -249
- package/dist/core/export-html/index.js +2 -226
- package/dist/core/export-html/template.js +50 -1842
- package/dist/core/export-html/tool-renderer.js +1 -108
- package/dist/core/extensions/api-version.js +1 -17
- package/dist/core/extensions/index.js +1 -9
- package/dist/core/extensions/jiti-loader.js +1 -0
- package/dist/core/extensions/jiti-static-loader.js +1 -0
- package/dist/core/extensions/loader.js +1 -665
- package/dist/core/extensions/permission-surface.js +1 -33
- package/dist/core/extensions/runner.js +1 -1013
- package/dist/core/extensions/types.js +1 -60
- package/dist/core/extensions/virtual-modules.js +1 -0
- package/dist/core/extensions/wrapper.js +1 -41
- package/dist/core/footer-data-provider.js +1 -338
- package/dist/core/house-providers.js +1 -96
- package/dist/core/http-dispatcher.js +1 -98
- package/dist/core/index.js +1 -13
- package/dist/core/keybindings.js +1 -339
- package/dist/core/messages.js +13 -119
- package/dist/core/model-config.js +9 -264
- package/dist/core/model-registry.js +1 -107
- package/dist/core/model-resolver.js +1 -613
- package/dist/core/model-runtime.js +3 -663
- package/dist/core/models-store.js +1 -115
- package/dist/core/output-guard.js +1 -89
- package/dist/core/package-manager.js +3 -2241
- package/dist/core/pi-manifest.js +1 -83
- package/dist/core/project-map.js +5 -268
- package/dist/core/project-trust.js +4 -59
- package/dist/core/prompt-templates.js +2 -236
- package/dist/core/provider-attribution.js +1 -72
- package/dist/core/provider-composer.js +1 -409
- package/dist/core/radius.js +1 -2
- package/dist/core/remote-catalog-provider.js +1 -122
- package/dist/core/resolve-config-value.js +1 -247
- package/dist/core/resource-loader.js +1 -885
- package/dist/core/runtime-credentials.js +1 -39
- package/dist/core/sdk.js +1 -290
- package/dist/core/session-cwd.js +7 -38
- package/dist/core/session-export.js +3 -32
- package/dist/core/session-manager.js +13 -1398
- package/dist/core/settings-diagnostics.js +1 -21
- package/dist/core/settings-manager.js +1 -1023
- package/dist/core/skills.js +4 -407
- package/dist/core/slash-commands.js +1 -29
- package/dist/core/source-info.js +1 -19
- package/dist/core/system-prompt.js +16 -116
- package/dist/core/telemetry.js +1 -9
- package/dist/core/timings.js +3 -41
- package/dist/core/tools/bash.js +19 -509
- package/dist/core/tools/edit-diff.js +16 -421
- package/dist/core/tools/edit.js +3 -327
- package/dist/core/tools/file-mutation-queue.js +1 -52
- package/dist/core/tools/find.js +13 -306
- package/dist/core/tools/grep.js +13 -312
- package/dist/core/tools/index.js +1 -129
- package/dist/core/tools/ls.js +9 -175
- package/dist/core/tools/output-accumulator.js +4 -184
- package/dist/core/tools/path-utils.js +1 -99
- package/dist/core/tools/powershell.js +2 -39
- package/dist/core/tools/read.js +22 -279
- package/dist/core/tools/render-utils.js +6 -113
- package/dist/core/tools/renderers/bash.js +9 -167
- package/dist/core/tools/renderers/edit.js +2 -167
- package/dist/core/tools/renderers/find.js +6 -64
- package/dist/core/tools/renderers/grep.js +6 -69
- package/dist/core/tools/renderers/index.js +1 -47
- package/dist/core/tools/renderers/ls.js +6 -58
- package/dist/core/tools/renderers/read.js +8 -129
- package/dist/core/tools/renderers/write.js +13 -153
- package/dist/core/tools/tool-definition-wrapper.js +1 -36
- package/dist/core/tools/truncate.js +5 -215
- package/dist/core/tools/write.js +14 -208
- package/dist/core/trust-manager.js +2 -210
- package/dist/core/usage-totals.js +1 -52
- package/dist/dal/builtins.js +3 -128
- package/dist/dal/cli-npm-hook.js +1 -0
- package/dist/dal/i18n.js +1 -2
- package/dist/extensions/index.js +1 -3
- package/dist/extensions/llama/client.js +9 -313
- package/dist/extensions/llama/huggingface.js +1 -141
- package/dist/extensions/llama/index.js +8 -219
- package/dist/extensions/llama/provider.js +1 -161
- package/dist/extensions/llama/ui.js +5 -416
- package/dist/index.js +1 -48
- package/dist/main.js +4 -812
- package/dist/migrations.js +5 -282
- package/dist/modes/acp/acp-mapping.js +2 -131
- package/dist/modes/acp/acp-mode.js +1 -131
- package/dist/modes/acp/acp-stream.js +1 -21
- package/dist/modes/index.js +1 -9
- package/dist/modes/interactive/bug-report.js +8 -0
- package/dist/modes/interactive/chat-viewport.js +1 -28
- package/dist/modes/interactive/components/armin.js +1 -333
- package/dist/modes/interactive/components/assistant-message.js +3 -204
- package/dist/modes/interactive/components/bash-execution.js +11 -159
- package/dist/modes/interactive/components/bordered-loader.js +1 -55
- package/dist/modes/interactive/components/branch-summary-message.js +3 -39
- package/dist/modes/interactive/components/compaction-summary-message.js +3 -41
- package/dist/modes/interactive/components/config-selector.js +1 -781
- package/dist/modes/interactive/components/countdown-timer.js +1 -33
- package/dist/modes/interactive/components/custom-editor.js +1 -115
- package/dist/modes/interactive/components/custom-entry.js +1 -52
- package/dist/modes/interactive/components/custom-message.js +3 -88
- package/dist/modes/interactive/components/dal-brand.js +3 -202
- package/dist/modes/interactive/components/daxnuts.js +1 -140
- package/dist/modes/interactive/components/diff.js +3 -133
- package/dist/modes/interactive/components/dynamic-border.js +1 -45
- package/dist/modes/interactive/components/earendil-announcement.js +1 -40
- package/dist/modes/interactive/components/extension-editor.js +1 -96
- package/dist/modes/interactive/components/extension-input.js +2 -61
- package/dist/modes/interactive/components/extension-selector.js +2 -83
- package/dist/modes/interactive/components/first-time-setup.js +6 -103
- package/dist/modes/interactive/components/footer.js +1 -208
- package/dist/modes/interactive/components/index.js +1 -35
- package/dist/modes/interactive/components/keybinding-hints.js +1 -36
- package/dist/modes/interactive/components/login-dialog.js +1 -184
- package/dist/modes/interactive/components/markdown-transform.js +1 -19
- package/dist/modes/interactive/components/mermaid.js +5 -75
- package/dist/modes/interactive/components/model-selector.js +2 -359
- package/dist/modes/interactive/components/oauth-selector.js +1 -161
- package/dist/modes/interactive/components/scoped-models-selector.js +1 -325
- package/dist/modes/interactive/components/session-selector-search.js +1 -155
- package/dist/modes/interactive/components/session-selector.js +2 -867
- package/dist/modes/interactive/components/settings-selector.js +1 -717
- package/dist/modes/interactive/components/settings-submenu.js +1 -165
- package/dist/modes/interactive/components/show-images-selector.js +1 -37
- package/dist/modes/interactive/components/skill-invocation-message.js +3 -45
- package/dist/modes/interactive/components/status-indicator.js +1 -121
- package/dist/modes/interactive/components/theme-selector.js +1 -48
- package/dist/modes/interactive/components/thinking-selector.js +1 -102
- package/dist/modes/interactive/components/tool-execution.js +6 -613
- package/dist/modes/interactive/components/tree-selector.js +1 -1245
- package/dist/modes/interactive/components/trust-selector.js +2 -91
- package/dist/modes/interactive/components/user-message-selector.js +1 -114
- package/dist/modes/interactive/components/user-message.js +1 -79
- package/dist/modes/interactive/components/visual-truncate.js +1 -33
- package/dist/modes/interactive/external-editor.js +3 -45
- package/dist/modes/interactive/interactive-mode.js +98 -5876
- package/dist/modes/interactive/model-catalog-refresh.js +1 -34
- package/dist/modes/interactive/model-search.js +1 -15
- package/dist/modes/interactive/session-share.js +2 -185
- package/dist/modes/interactive/theme/theme-controller.js +2 -130
- package/dist/modes/interactive/theme/theme-json.js +12 -130
- package/dist/modes/interactive/theme/theme.js +7 -992
- package/dist/modes/interactive/tui-renderer.js +1 -66
- package/dist/modes/json-event.js +1 -29
- package/dist/modes/print-mode.js +4 -142
- package/dist/modes/rpc/jsonl.js +3 -49
- package/dist/modes/rpc/rpc-client.js +1 -555
- package/dist/modes/rpc/rpc-mode.js +1 -674
- package/dist/modes/rpc/rpc-types.js +0 -8
- package/dist/node_modules/@dalcode/dal-bridge/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-bridge/src/client.js +1 -0
- package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-gateway/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-gateway/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-guard/package.json +7 -7
- package/dist/node_modules/@dalcode/dal-guard/src/credentials.js +1 -0
- package/dist/node_modules/@dalcode/dal-guard/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-halo/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-halo/src/halo-client.js +1 -0
- package/dist/node_modules/@dalcode/dal-halo/src/index.js +2 -0
- package/dist/node_modules/@dalcode/dal-lang/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-lang/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-lsp/package.json +8 -8
- package/dist/node_modules/@dalcode/dal-lsp/src/client.js +5 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/config.js +1 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/format.js +7 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/index.js +7 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/types.js +0 -0
- package/dist/node_modules/@dalcode/dal-mcp/package.json +17 -14
- package/dist/node_modules/@dalcode/dal-mcp/src/account-layer.js +1 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/add-wizard.js +2 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/command-parser.js +7 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.js +2 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config.js +1 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/http-client.js +1 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/import.js +3 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/index.js +23 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/proxy.js +6 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/report.js +1 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.js +5 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/toml.js +11 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/types.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-office/src/extract/csv.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/extract/index.js +2 -0
- package/dist/node_modules/@dalcode/dal-office/src/extract/ooxml.js +4 -0
- package/dist/node_modules/@dalcode/dal-office/src/extract/pdf.js +5 -0
- package/dist/node_modules/@dalcode/dal-office/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/paths.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/chart.js +2 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/docx.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/pptx.js +2 -0
- package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/scenes.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/scratchpad.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/themes.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/chart-generate.js +4 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/doc-generate.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/drawio-generate.js +4 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/md-generate.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-generate.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-plan.js +2 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/read-file.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/shared.js +1 -0
- package/dist/node_modules/@dalcode/dal-office/src/tools/sheet-generate.js +3 -0
- package/dist/node_modules/@dalcode/dal-office/src/truncate.js +6 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +1 -596
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js +1 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/src/index.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-plugins/package.json +35 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/brand.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/cli-hook.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/compat.js +2 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/index.js +11 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/manage.js +10 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/npm-hook.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/registry.js +2 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/settings.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/state.js +2 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/tools.js +1 -0
- package/dist/node_modules/@dalcode/dal-router/package.json +14 -12
- package/dist/node_modules/@dalcode/dal-router/src/assist.js +2 -0
- package/dist/node_modules/@dalcode/dal-router/src/commands.js +8 -0
- package/dist/node_modules/@dalcode/dal-router/src/config.js +2 -0
- package/dist/node_modules/@dalcode/dal-router/src/index.js +3 -0
- package/dist/node_modules/@dalcode/dal-router/src/jev.js +5 -0
- package/dist/node_modules/@dalcode/dal-router/src/pool.js +1 -0
- package/dist/node_modules/@dalcode/dal-router/src/router.js +1 -0
- package/dist/node_modules/@dalcode/dal-router/src/runtime.js +1 -0
- package/dist/node_modules/@dalcode/dal-router/src/subagent.js +1 -0
- package/dist/node_modules/@dalcode/dal-skills/package.json +8 -8
- package/dist/node_modules/@dalcode/dal-skills/src/client.js +1 -0
- package/dist/node_modules/@dalcode/dal-skills/src/discover.js +4 -0
- package/dist/node_modules/@dalcode/dal-skills/src/index.js +13 -0
- package/dist/node_modules/@dalcode/dal-skills/src/install.js +3 -0
- package/dist/node_modules/@dalcode/dal-skills/src/manage.js +26 -0
- package/dist/node_modules/@dalcode/dal-skills/src/packages.js +3 -0
- package/dist/node_modules/@dalcode/dal-skills/src/search.js +1 -0
- package/dist/node_modules/@dalcode/dal-subagent/package.json +8 -8
- package/dist/node_modules/@dalcode/dal-subagent/src/agents.js +2 -0
- package/dist/node_modules/@dalcode/dal-subagent/src/index.js +10 -0
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +8 -8
- package/dist/node_modules/@dalcode/dal-telemetry/src/config.js +2 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/index.js +3 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/redact.js +2 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/reporter.js +1 -0
- package/dist/node_modules/@dalcode/dal-tool-catalog/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +32 -0
- package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -0
- package/dist/node_modules/@dalcode/dal-tool-catalog/src/index.js +5 -0
- package/dist/node_modules/@dalcode/dal-web/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-web/package.json +37 -0
- package/dist/node_modules/@dalcode/dal-web/src/bing.js +1 -0
- package/dist/node_modules/@dalcode/dal-web/src/config.js +2 -0
- package/dist/node_modules/@dalcode/dal-web/src/fetch.js +8 -0
- package/dist/node_modules/@dalcode/dal-web/src/html.js +17 -0
- package/dist/node_modules/@dalcode/dal-web/src/index.js +6 -0
- package/dist/node_modules/@dalcode/dal-web/src/providers.js +1 -0
- package/dist/node_modules/@dalcode/dal-web/src/search.js +7 -0
- package/dist/node_modules/@dalcode/dal-web/src/ssrf.js +1 -0
- package/dist/node_modules/@dalcode/dal-web/src/types.js +0 -0
- package/dist/node_modules/@dalcode/dal-workflow/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-workflow/package.json +31 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/index.js +5 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/notify.js +1 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/plan-mode.js +20 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/plan-utils.js +3 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/shared.js +2 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/todo.js +2 -0
- package/dist/node_modules/@dalcode/deepailab/package.json +9 -9
- package/dist/node_modules/@dalcode/deepailab/src/cache.js +1 -0
- package/dist/node_modules/@dalcode/deepailab/src/index.js +3 -0
- package/dist/node_modules/@dalcode/deepailab/src/model-defaults.js +1 -0
- package/dist/node_modules/@dalcode/deepailab/src/oidc.js +1 -0
- package/dist/node_modules/@earendil-works/chord/README.md +31 -25
- package/dist/node_modules/@earendil-works/chord/dist/api.js +1 -72
- package/dist/node_modules/@earendil-works/chord/dist/bundler.js +1 -3
- package/dist/node_modules/@earendil-works/chord/dist/context/index.js +1 -97
- package/dist/node_modules/@earendil-works/chord/dist/delta/index.js +1 -1906
- package/dist/node_modules/@earendil-works/chord/dist/facets/host.js +1 -763
- package/dist/node_modules/@earendil-works/chord/dist/facets/loader.js +1 -5
- package/dist/node_modules/@earendil-works/chord/dist/index.js +1 -10
- package/dist/node_modules/@earendil-works/chord/dist/json.js +1 -57
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.js +2 -377
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle.js +4 -183
- package/dist/node_modules/@earendil-works/chord/dist/node/manifest.js +1 -6
- package/dist/node_modules/@earendil-works/chord/dist/node/package.js +1 -199
- package/dist/node_modules/@earendil-works/chord/dist/node.js +1 -3
- package/dist/node_modules/@earendil-works/chord/dist/services/consumer.js +1 -537
- package/dist/node_modules/@earendil-works/chord/dist/services/errors.js +1 -22
- package/dist/node_modules/@earendil-works/chord/dist/services/handle.js +1 -99
- package/dist/node_modules/@earendil-works/chord/dist/services/instances.js +1 -137
- package/dist/node_modules/@earendil-works/chord/dist/services/loopback.js +1 -15
- package/dist/node_modules/@earendil-works/chord/dist/services/provider.js +1 -472
- package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.js +1 -115
- package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.js +1 -10
- package/dist/node_modules/@earendil-works/chord/dist/services/state.js +1 -124
- package/dist/node_modules/@earendil-works/chord/dist/services/wire.js +1 -173
- package/dist/node_modules/@earendil-works/chord/dist/state/diff.js +1 -0
- package/dist/node_modules/@earendil-works/chord/dist/state/draft.js +1 -0
- package/dist/node_modules/@earendil-works/chord/dist/state/value.js +1 -0
- package/dist/node_modules/@earendil-works/chord/dist/types.js +0 -2
- package/dist/node_modules/@earendil-works/chord/package.json +2 -2
- package/dist/node_modules/@earendil-works/chord/src/delta/README.md +9 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/README.md +83 -32
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/__probe.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +1 -586
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js +1 -422
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +1 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +9 -148
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +26 -482
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +16 -120
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js +1 -27
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js +1 -13
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +10 -794
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js +1 -250
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js +1 -82
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js +1 -49
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js +1 -121
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js +1 -406
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +13 -98
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bash.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bounded.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/chord.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/context.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/harness.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/hooks.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/index.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/jsonl.js +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/collapse.js +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/entries.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/frames.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/generation.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/job.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/plugin.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/post-tools.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/task-api.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/tool.js +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/membrane.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/memory.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/scheduler.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/session.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/system.js +8 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/types.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/view.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +5 -225
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js +1 -81
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js +1 -170
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js +1 -133
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js +1 -179
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js +1 -205
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js +1 -140
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js +1 -85
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js +1 -394
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js +1 -37
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js +1 -929
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js +1 -49
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js +1 -244
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js +1 -449
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js +1 -93
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js +1 -311
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js +1 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js +1 -1575
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js +1 -66
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js +1 -240
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js +1 -117
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js +1 -72
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js +1 -61
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js +1 -57
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js +1 -49
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js +1 -22
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js +1 -127
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js +1 -216
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js +1 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js +1 -45
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.js +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js +1 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.js +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js +1 -383
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js +1 -285
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js +8 -274
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js +1 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js +1 -374
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js +1 -21
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +1 -361
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js +1 -24
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js +1 -127
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js +1 -114
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js +1 -590
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js +1 -600
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js +1 -100
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js +1 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js +1 -16
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js +1 -41
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js +1 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js +1 -81
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +10 -326
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +2 -30
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js +1 -527
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js +12 -105
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js +16 -386
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js +1 -108
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js +1 -46
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js +1 -106
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js +1 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js +1 -26
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js +14 -108
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +1 -31
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +1 -75
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js +1 -79
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js +5 -217
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +1 -71
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +5 -296
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js +1 -33
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js +1 -26
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js +1 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +2 -310
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js +1 -17
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +11 -6
- package/dist/node_modules/@earendil-works/pi-ai/README.md +49 -7
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -1170
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -249
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1092
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js +1 -30
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js +1 -72
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +1 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +1 -222
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js +1 -29
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -364
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -447
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -425
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +1 -70
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +4 -745
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +9 -1305
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +6 -1374
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js +1 -10
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +10 -689
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -298
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -132
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js +1 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +7 -313
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js +1 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -66
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +1 -187
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js +1 -42
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js +1 -51
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +1 -53
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +1 -308
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js +1 -69
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +1 -392
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +1 -248
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +1 -59
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js +7 -38
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +1 -450
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -277
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js +1 -31
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +1 -321
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js +1 -190
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -153
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +1 -21
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +15 -112
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js +1 -205
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -174
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +1 -817
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js +1 -23
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +1 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js +1 -143
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.js +1 -14
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.js +1 -27
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js +1 -49
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js +1 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js +1 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js +1 -83
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.js +1 -595
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js +1 -131
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +1 -93
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +1 -83
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -14
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +1 -27
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js +1 -86
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +1 -21
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +7 -488
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js +1 -19
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js +1 -34
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +1 -94
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +1 -34
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +1 -24
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -16
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +1 -20
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +1 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +1 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +1 -27
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +1 -63
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +1 -64
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js +1 -19
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +1 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js +1 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js +1 -34
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js +1 -49
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +1 -425
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +1 -36
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js +1 -25
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/dsml-tool-calls.js +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +1 -133
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +1 -116
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +1 -81
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js +1 -14
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +1 -18
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +2 -113
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +1 -133
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +1 -177
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js +1 -12
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js +1 -44
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js +1 -94
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +1 -178
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js +1 -26
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js +1 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js +8 -10
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js +1 -21
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js +1 -42
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +6 -309
- package/dist/node_modules/@earendil-works/pi-ai/package.json +9 -9
- package/dist/node_modules/@earendil-works/pi-client/dist/client.js +1 -388
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.js +1 -208
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.js +1 -28
- package/dist/node_modules/@earendil-works/pi-client/dist/index.js +1 -3
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.js +1 -11
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.js +0 -2
- package/dist/node_modules/@earendil-works/pi-client/dist/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.js +1 -281
- package/dist/node_modules/@earendil-works/pi-client/package.json +3 -2
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js +1 -165
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js +1 -201
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js +1 -4
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js +1 -29
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js +1 -119
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js +1 -140
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js +1 -5
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js +1 -85
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js +1 -468
- package/dist/node_modules/@earendil-works/pi-protocol/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-server/dist/connection.js +1 -4
- package/dist/node_modules/@earendil-works/pi-server/dist/errors.js +1 -41
- package/dist/node_modules/@earendil-works/pi-server/dist/index.js +1 -5
- package/dist/node_modules/@earendil-works/pi-server/dist/listener.js +0 -2
- package/dist/node_modules/@earendil-works/pi-server/dist/server.js +1 -549
- package/dist/node_modules/@earendil-works/pi-server/dist/session-router.js +1 -264
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.js +1 -138
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.js +1 -189
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.js +1 -4
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.js +1 -17
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.js +1 -9
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.js +1 -4
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.js +1 -421
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.js +1 -22
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-server/dist/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-server/package.json +5 -3
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.js +1 -103
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.js +1 -4
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.js +1 -7
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.js +2 -408
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.js +30 -199
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.js +5 -125
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.js +10 -62
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.js +1 -13
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.js +1 -39
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.js +3 -50
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.js +20 -91
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.js +1 -163
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.js +1 -58
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.js +1 -161
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js +1 -18
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js +1 -154
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js +1 -18
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js +1 -294
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js +1 -2
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js +0 -2
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/README.md +8 -2
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +1 -282
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +2 -667
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js +1 -37
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js +1 -133
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +1 -35
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js +17 -2088
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js +1 -43
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js +1 -90
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js +2 -419
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js +1 -97
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -813
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +1 -21
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +1 -216
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +1 -206
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +1 -252
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +1 -23
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js +1 -117
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js +1 -90
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +2 -51
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js +1 -35
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js +0 -2
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +1 -111
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.js +1 -43
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js +1 -233
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js +5 -1174
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +1 -44
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js +10 -1285
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js +1 -6
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js +1 -501
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +1 -54
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +1 -19
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-platform.js +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +1 -377
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js +1 -59
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +1 -550
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js +1 -491
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +4 -1501
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +13 -596
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js +2 -1125
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +1 -25
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js +1 -1237
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js +1 -96
- package/dist/node_modules/@earendil-works/pi-tui/native/clipboard.h +170 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/darwin/README.md +8 -6
- package/dist/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +12 -5
- package/dist/node_modules/@earendil-works/pi-tui/native/linux/README.md +23 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/linux/build.sh +65 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/napi.h +89 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/win32/README.md +16 -7
- package/dist/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +4 -222
- package/dist/node_modules/@earendil-works/pi-tui/package.json +9 -3
- package/dist/package-manager-cli.js +45 -1010
- package/dist/rpc-entry.js +1 -10
- package/dist/utils/abort.js +1 -48
- package/dist/utils/ansi.js +1 -52
- package/dist/utils/changelog.js +3 -239
- package/dist/utils/child-process.js +1 -106
- package/dist/utils/clipboard-command.js +1 -0
- package/dist/utils/clipboard-image.js +1 -245
- package/dist/utils/clipboard-native.js +1 -20
- package/dist/utils/clipboard.js +1 -196
- package/dist/utils/deprecation.js +1 -13
- package/dist/utils/exif-orientation.js +1 -157
- package/dist/utils/frontmatter.js +4 -27
- package/dist/utils/fs-watch.js +1 -25
- package/dist/utils/git.js +1 -195
- package/dist/utils/html.js +1 -40
- package/dist/utils/image-convert.js +1 -45
- package/dist/utils/image-process.js +1 -83
- package/dist/utils/image-resize-core.js +1 -124
- package/dist/utils/image-resize-worker.js +1 -31
- package/dist/utils/image-resize.js +1 -97
- package/dist/utils/json.js +1 -7
- package/dist/utils/management-http.js +1 -54
- package/dist/utils/mime.js +1 -110
- package/dist/utils/offline.js +1 -19
- package/dist/utils/open-browser.js +1 -22
- package/dist/utils/paths.js +1 -114
- package/dist/utils/photon.js +1 -121
- package/dist/utils/pi-user-agent.js +1 -6
- package/dist/utils/shell.js +8 -224
- package/dist/utils/sleep.js +1 -17
- package/dist/utils/syntax-highlight.js +2 -177
- package/dist/utils/text.js +1 -9
- package/dist/utils/tool-result-images.js +2 -45
- package/dist/utils/tools-manager.js +1 -338
- package/dist/utils/version-check.js +2 -215
- package/dist/utils/windows-self-update.js +1 -77
- package/dist/utils/wsl.js +1 -0
- package/dist/utils/zip.js +1 -0
- package/examples/README.md +13 -2
- package/examples/extensions/README.md +1 -2
- package/examples/extensions/claude-rules.ts +1 -1
- package/examples/extensions/commands.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/index.ts +18 -12
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/pirate.ts +1 -1
- package/examples/extensions/preset.ts +2 -2
- package/examples/extensions/project-trust.ts +4 -4
- package/examples/extensions/prompt-customizer.ts +20 -68
- package/examples/extensions/sandbox/index.ts +5 -5
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/subagent/README.md +11 -11
- package/examples/extensions/tools.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/plugins/pi-example-plugin/src/session.ts +3 -2
- package/examples/rpc-client.ts +35 -0
- package/examples/rpc-extension-ui.ts +25 -5
- package/examples/sdk/01-minimal.ts +1 -1
- package/examples/sdk/03-custom-prompt.ts +1 -1
- package/examples/sdk/04-skills.ts +1 -1
- package/examples/sdk/06-extensions.ts +2 -2
- package/examples/sdk/08-prompt-templates.ts +1 -1
- package/examples/sdk/README.md +2 -2
- package/npm-shrinkwrap.json +534 -825
- package/package.json +18 -25
- package/dist/bun/cli.d.ts +0 -5
- package/dist/bun/cli.d.ts.map +0 -1
- package/dist/bun/cli.js.map +0 -1
- package/dist/bun/register-bedrock.d.ts +0 -2
- package/dist/bun/register-bedrock.d.ts.map +0 -1
- package/dist/bun/register-bedrock.js +0 -4
- package/dist/bun/register-bedrock.js.map +0 -1
- package/dist/bun/restore-sandbox-env.d.ts +0 -17
- package/dist/bun/restore-sandbox-env.d.ts.map +0 -1
- package/dist/bun/restore-sandbox-env.js.map +0 -1
- package/dist/bun/runtime-setup.d.ts +0 -2
- package/dist/bun/runtime-setup.d.ts.map +0 -1
- package/dist/bun/runtime-setup.js.map +0 -1
- package/dist/bun/sandbox-env-setup.d.ts +0 -2
- package/dist/bun/sandbox-env-setup.d.ts.map +0 -1
- package/dist/bun/sandbox-env-setup.js.map +0 -1
- package/dist/cli/args.d.ts +0 -61
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/auth-check.d.ts +0 -19
- package/dist/cli/auth-check.d.ts.map +0 -1
- package/dist/cli/auth-check.js.map +0 -1
- package/dist/cli/auth-command.d.ts +0 -24
- package/dist/cli/auth-command.d.ts.map +0 -1
- package/dist/cli/auth-command.js.map +0 -1
- package/dist/cli/config-selector.d.ts +0 -16
- package/dist/cli/config-selector.d.ts.map +0 -1
- package/dist/cli/config-selector.js.map +0 -1
- package/dist/cli/credential-print.d.ts +0 -13
- package/dist/cli/credential-print.d.ts.map +0 -1
- package/dist/cli/credential-print.js.map +0 -1
- package/dist/cli/file-processor.d.ts +0 -15
- package/dist/cli/file-processor.d.ts.map +0 -1
- package/dist/cli/file-processor.js.map +0 -1
- package/dist/cli/initial-message.d.ts +0 -18
- package/dist/cli/initial-message.d.ts.map +0 -1
- package/dist/cli/initial-message.js.map +0 -1
- package/dist/cli/list-models.d.ts +0 -9
- package/dist/cli/list-models.d.ts.map +0 -1
- package/dist/cli/list-models.js.map +0 -1
- package/dist/cli/project-trust.d.ts +0 -10
- package/dist/cli/project-trust.d.ts.map +0 -1
- package/dist/cli/project-trust.js.map +0 -1
- package/dist/cli/session-picker.d.ts +0 -10
- package/dist/cli/session-picker.d.ts.map +0 -1
- package/dist/cli/session-picker.js.map +0 -1
- package/dist/cli/setup.d.ts +0 -2
- package/dist/cli/setup.d.ts.map +0 -1
- package/dist/cli/setup.js.map +0 -1
- package/dist/cli/startup-ui.d.ts +0 -20
- package/dist/cli/startup-ui.d.ts.map +0 -1
- package/dist/cli/startup-ui.js.map +0 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.d.ts +0 -107
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/agent-session-runtime.d.ts +0 -119
- package/dist/core/agent-session-runtime.d.ts.map +0 -1
- package/dist/core/agent-session-runtime.js.map +0 -1
- package/dist/core/agent-session-services.d.ts +0 -93
- package/dist/core/agent-session-services.d.ts.map +0 -1
- package/dist/core/agent-session-services.js.map +0 -1
- package/dist/core/agent-session.d.ts +0 -692
- package/dist/core/agent-session.d.ts.map +0 -1
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/auth-guidance.d.ts +0 -6
- package/dist/core/auth-guidance.d.ts.map +0 -1
- package/dist/core/auth-guidance.js.map +0 -1
- package/dist/core/auth-storage.d.ts +0 -72
- package/dist/core/auth-storage.d.ts.map +0 -1
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/bash-executor.d.ts +0 -32
- package/dist/core/bash-executor.d.ts.map +0 -1
- package/dist/core/bash-executor.js.map +0 -1
- package/dist/core/cache-stats.d.ts +0 -49
- package/dist/core/cache-stats.d.ts.map +0 -1
- package/dist/core/cache-stats.js.map +0 -1
- package/dist/core/compaction/branch-summarization.d.ts +0 -98
- package/dist/core/compaction/branch-summarization.d.ts.map +0 -1
- package/dist/core/compaction/branch-summarization.js.map +0 -1
- package/dist/core/compaction/compaction.d.ts +0 -143
- package/dist/core/compaction/compaction.d.ts.map +0 -1
- package/dist/core/compaction/compaction.js.map +0 -1
- package/dist/core/compaction/index.d.ts +0 -7
- package/dist/core/compaction/index.d.ts.map +0 -1
- package/dist/core/compaction/index.js.map +0 -1
- package/dist/core/compaction/utils.d.ts +0 -38
- package/dist/core/compaction/utils.d.ts.map +0 -1
- package/dist/core/compaction/utils.js.map +0 -1
- package/dist/core/defaults.d.ts +0 -4
- package/dist/core/defaults.d.ts.map +0 -1
- package/dist/core/defaults.js.map +0 -1
- package/dist/core/diagnostics.d.ts +0 -15
- package/dist/core/diagnostics.d.ts.map +0 -1
- package/dist/core/diagnostics.js.map +0 -1
- package/dist/core/empty-assistant.d.ts +0 -13
- package/dist/core/empty-assistant.d.ts.map +0 -1
- package/dist/core/empty-assistant.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -9
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/exec.d.ts +0 -29
- package/dist/core/exec.d.ts.map +0 -1
- package/dist/core/exec.js.map +0 -1
- package/dist/core/experimental.d.ts +0 -6
- package/dist/core/experimental.d.ts.map +0 -1
- package/dist/core/experimental.js.map +0 -1
- package/dist/core/export-html/ansi-to-html.d.ts +0 -22
- package/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
- package/dist/core/export-html/ansi-to-html.js.map +0 -1
- package/dist/core/export-html/index.d.ts +0 -37
- package/dist/core/export-html/index.d.ts.map +0 -1
- package/dist/core/export-html/index.js.map +0 -1
- package/dist/core/export-html/tool-renderer.d.ts +0 -34
- package/dist/core/export-html/tool-renderer.d.ts.map +0 -1
- package/dist/core/export-html/tool-renderer.js.map +0 -1
- package/dist/core/extensions/api-version.d.ts +0 -9
- package/dist/core/extensions/api-version.d.ts.map +0 -1
- package/dist/core/extensions/api-version.js.map +0 -1
- package/dist/core/extensions/index.d.ts +0 -12
- package/dist/core/extensions/index.d.ts.map +0 -1
- package/dist/core/extensions/index.js.map +0 -1
- package/dist/core/extensions/loader.d.ts +0 -23
- package/dist/core/extensions/loader.d.ts.map +0 -1
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/permission-surface.d.ts +0 -10
- package/dist/core/extensions/permission-surface.d.ts.map +0 -1
- package/dist/core/extensions/permission-surface.js.map +0 -1
- package/dist/core/extensions/runner.d.ts +0 -178
- package/dist/core/extensions/runner.d.ts.map +0 -1
- package/dist/core/extensions/runner.js.map +0 -1
- package/dist/core/extensions/types.d.ts +0 -1410
- package/dist/core/extensions/types.d.ts.map +0 -1
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/extensions/wrapper.d.ts +0 -20
- package/dist/core/extensions/wrapper.d.ts.map +0 -1
- package/dist/core/extensions/wrapper.js.map +0 -1
- package/dist/core/footer-data-provider.d.ts +0 -64
- package/dist/core/footer-data-provider.d.ts.map +0 -1
- package/dist/core/footer-data-provider.js.map +0 -1
- package/dist/core/house-providers.d.ts +0 -66
- package/dist/core/house-providers.d.ts.map +0 -1
- package/dist/core/house-providers.js.map +0 -1
- package/dist/core/http-dispatcher.d.ts +0 -22
- package/dist/core/http-dispatcher.d.ts.map +0 -1
- package/dist/core/http-dispatcher.js.map +0 -1
- package/dist/core/index.d.ts +0 -13
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/keybindings.d.ts +0 -443
- package/dist/core/keybindings.d.ts.map +0 -1
- package/dist/core/keybindings.js.map +0 -1
- package/dist/core/messages.d.ts +0 -77
- package/dist/core/messages.d.ts.map +0 -1
- package/dist/core/messages.js.map +0 -1
- package/dist/core/model-config.d.ts +0 -676
- package/dist/core/model-config.d.ts.map +0 -1
- package/dist/core/model-config.js.map +0 -1
- package/dist/core/model-registry.d.ts +0 -45
- package/dist/core/model-registry.d.ts.map +0 -1
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-resolver.d.ts +0 -130
- package/dist/core/model-resolver.d.ts.map +0 -1
- package/dist/core/model-resolver.js.map +0 -1
- package/dist/core/model-runtime.d.ts +0 -129
- package/dist/core/model-runtime.d.ts.map +0 -1
- package/dist/core/model-runtime.js.map +0 -1
- package/dist/core/models-store.d.ts +0 -22
- package/dist/core/models-store.d.ts.map +0 -1
- package/dist/core/models-store.js.map +0 -1
- package/dist/core/output-guard.d.ts +0 -7
- package/dist/core/output-guard.d.ts.map +0 -1
- package/dist/core/output-guard.js.map +0 -1
- package/dist/core/package-manager.d.ts +0 -224
- package/dist/core/package-manager.d.ts.map +0 -1
- package/dist/core/package-manager.js.map +0 -1
- package/dist/core/pi-manifest.d.ts +0 -25
- package/dist/core/pi-manifest.d.ts.map +0 -1
- package/dist/core/pi-manifest.js.map +0 -1
- package/dist/core/project-map.d.ts +0 -23
- package/dist/core/project-map.d.ts.map +0 -1
- package/dist/core/project-map.js.map +0 -1
- package/dist/core/project-trust.d.ts +0 -15
- package/dist/core/project-trust.d.ts.map +0 -1
- package/dist/core/project-trust.js.map +0 -1
- package/dist/core/prompt-templates.d.ts +0 -54
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js.map +0 -1
- package/dist/core/provider-attribution.d.ts +0 -4
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js.map +0 -1
- package/dist/core/provider-composer.d.ts +0 -58
- package/dist/core/provider-composer.d.ts.map +0 -1
- package/dist/core/provider-composer.js.map +0 -1
- package/dist/core/radius.d.ts +0 -2
- package/dist/core/radius.d.ts.map +0 -1
- package/dist/core/radius.js.map +0 -1
- package/dist/core/remote-catalog-provider.d.ts +0 -5
- package/dist/core/remote-catalog-provider.d.ts.map +0 -1
- package/dist/core/remote-catalog-provider.js.map +0 -1
- package/dist/core/resolve-config-value.d.ts +0 -30
- package/dist/core/resolve-config-value.d.ts.map +0 -1
- package/dist/core/resolve-config-value.js.map +0 -1
- package/dist/core/resource-loader.d.ts +0 -221
- package/dist/core/resource-loader.d.ts.map +0 -1
- package/dist/core/resource-loader.js.map +0 -1
- package/dist/core/runtime-credentials.d.ts +0 -15
- package/dist/core/runtime-credentials.d.ts.map +0 -1
- package/dist/core/runtime-credentials.js.map +0 -1
- package/dist/core/sdk.d.ts +0 -108
- package/dist/core/sdk.d.ts.map +0 -1
- package/dist/core/sdk.js.map +0 -1
- package/dist/core/session-cwd.d.ts +0 -19
- package/dist/core/session-cwd.d.ts.map +0 -1
- package/dist/core/session-cwd.js.map +0 -1
- package/dist/core/session-export.d.ts +0 -4
- package/dist/core/session-export.d.ts.map +0 -1
- package/dist/core/session-export.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -364
- package/dist/core/session-manager.d.ts.map +0 -1
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/settings-diagnostics.d.ts +0 -9
- package/dist/core/settings-diagnostics.d.ts.map +0 -1
- package/dist/core/settings-diagnostics.js.map +0 -1
- package/dist/core/settings-manager.d.ts +0 -336
- package/dist/core/settings-manager.d.ts.map +0 -1
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/skills.d.ts +0 -60
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts +0 -15
- package/dist/core/slash-commands.d.ts.map +0 -1
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/source-info.d.ts +0 -18
- package/dist/core/source-info.d.ts.map +0 -1
- package/dist/core/source-info.js.map +0 -1
- package/dist/core/system-prompt.d.ts +0 -28
- package/dist/core/system-prompt.d.ts.map +0 -1
- package/dist/core/system-prompt.js.map +0 -1
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js.map +0 -1
- package/dist/core/timings.d.ts +0 -10
- package/dist/core/timings.d.ts.map +0 -1
- package/dist/core/timings.js.map +0 -1
- package/dist/core/tools/bash.d.ts +0 -89
- package/dist/core/tools/bash.d.ts.map +0 -1
- package/dist/core/tools/bash.js.map +0 -1
- package/dist/core/tools/edit-diff.d.ts +0 -101
- package/dist/core/tools/edit-diff.d.ts.map +0 -1
- package/dist/core/tools/edit-diff.js.map +0 -1
- package/dist/core/tools/edit.d.ts +0 -55
- package/dist/core/tools/edit.d.ts.map +0 -1
- package/dist/core/tools/edit.js.map +0 -1
- package/dist/core/tools/file-mutation-queue.d.ts +0 -6
- package/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
- package/dist/core/tools/file-mutation-queue.js.map +0 -1
- package/dist/core/tools/find.d.ts +0 -42
- package/dist/core/tools/find.d.ts.map +0 -1
- package/dist/core/tools/find.js.map +0 -1
- package/dist/core/tools/grep.d.ts +0 -41
- package/dist/core/tools/grep.d.ts.map +0 -1
- package/dist/core/tools/grep.js.map +0 -1
- package/dist/core/tools/index.d.ts +0 -43
- package/dist/core/tools/index.d.ts.map +0 -1
- package/dist/core/tools/index.js.map +0 -1
- package/dist/core/tools/ls.d.ts +0 -41
- package/dist/core/tools/ls.d.ts.map +0 -1
- package/dist/core/tools/ls.js.map +0 -1
- package/dist/core/tools/output-accumulator.d.ts +0 -52
- package/dist/core/tools/output-accumulator.d.ts.map +0 -1
- package/dist/core/tools/output-accumulator.js.map +0 -1
- package/dist/core/tools/path-utils.d.ts +0 -10
- package/dist/core/tools/path-utils.d.ts.map +0 -1
- package/dist/core/tools/path-utils.js.map +0 -1
- package/dist/core/tools/powershell.d.ts +0 -16
- package/dist/core/tools/powershell.d.ts.map +0 -1
- package/dist/core/tools/powershell.js.map +0 -1
- package/dist/core/tools/read.d.ts +0 -39
- package/dist/core/tools/read.d.ts.map +0 -1
- package/dist/core/tools/read.js.map +0 -1
- package/dist/core/tools/render-utils.d.ts +0 -29
- package/dist/core/tools/render-utils.d.ts.map +0 -1
- package/dist/core/tools/render-utils.js.map +0 -1
- package/dist/core/tools/renderers/bash.d.ts +0 -12
- package/dist/core/tools/renderers/bash.d.ts.map +0 -1
- package/dist/core/tools/renderers/bash.js.map +0 -1
- package/dist/core/tools/renderers/edit.d.ts +0 -23
- package/dist/core/tools/renderers/edit.d.ts.map +0 -1
- package/dist/core/tools/renderers/edit.js.map +0 -1
- package/dist/core/tools/renderers/find.d.ts +0 -10
- package/dist/core/tools/renderers/find.d.ts.map +0 -1
- package/dist/core/tools/renderers/find.js.map +0 -1
- package/dist/core/tools/renderers/grep.d.ts +0 -10
- package/dist/core/tools/renderers/grep.d.ts.map +0 -1
- package/dist/core/tools/renderers/grep.js.map +0 -1
- package/dist/core/tools/renderers/index.d.ts +0 -28
- package/dist/core/tools/renderers/index.d.ts.map +0 -1
- package/dist/core/tools/renderers/index.js.map +0 -1
- package/dist/core/tools/renderers/ls.d.ts +0 -10
- package/dist/core/tools/renderers/ls.d.ts.map +0 -1
- package/dist/core/tools/renderers/ls.js.map +0 -1
- package/dist/core/tools/renderers/read.d.ts +0 -11
- package/dist/core/tools/renderers/read.d.ts.map +0 -1
- package/dist/core/tools/renderers/read.js.map +0 -1
- package/dist/core/tools/renderers/write.d.ts +0 -10
- package/dist/core/tools/renderers/write.d.ts.map +0 -1
- package/dist/core/tools/renderers/write.js.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +0 -14
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +0 -1
- package/dist/core/tools/truncate.d.ts +0 -70
- package/dist/core/tools/truncate.d.ts.map +0 -1
- package/dist/core/tools/truncate.js.map +0 -1
- package/dist/core/tools/write.d.ts +0 -30
- package/dist/core/tools/write.d.ts.map +0 -1
- package/dist/core/tools/write.js.map +0 -1
- package/dist/core/trust-manager.d.ts +0 -36
- package/dist/core/trust-manager.d.ts.map +0 -1
- package/dist/core/trust-manager.js.map +0 -1
- package/dist/core/usage-totals.d.ts +0 -19
- package/dist/core/usage-totals.d.ts.map +0 -1
- package/dist/core/usage-totals.js.map +0 -1
- package/dist/dal/builtins.d.ts +0 -32
- package/dist/dal/builtins.d.ts.map +0 -1
- package/dist/dal/builtins.js.map +0 -1
- package/dist/dal/i18n.d.ts +0 -12
- package/dist/dal/i18n.d.ts.map +0 -1
- package/dist/dal/i18n.js.map +0 -1
- package/dist/extensions/index.d.ts +0 -3
- package/dist/extensions/index.d.ts.map +0 -1
- package/dist/extensions/index.js.map +0 -1
- package/dist/extensions/llama/client.d.ts +0 -69
- package/dist/extensions/llama/client.d.ts.map +0 -1
- package/dist/extensions/llama/client.js.map +0 -1
- package/dist/extensions/llama/huggingface.d.ts +0 -23
- package/dist/extensions/llama/huggingface.d.ts.map +0 -1
- package/dist/extensions/llama/huggingface.js.map +0 -1
- package/dist/extensions/llama/index.d.ts +0 -3
- package/dist/extensions/llama/index.d.ts.map +0 -1
- package/dist/extensions/llama/index.js.map +0 -1
- package/dist/extensions/llama/provider.d.ts +0 -12
- package/dist/extensions/llama/provider.d.ts.map +0 -1
- package/dist/extensions/llama/provider.js.map +0 -1
- package/dist/extensions/llama/ui.d.ts +0 -42
- package/dist/extensions/llama/ui.d.ts.map +0 -1
- package/dist/extensions/llama/ui.js.map +0 -1
- package/dist/index.d.ts +0 -36
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -16
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -33
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js.map +0 -1
- package/dist/modes/acp/acp-mapping.d.ts +0 -17
- package/dist/modes/acp/acp-mapping.d.ts.map +0 -1
- package/dist/modes/acp/acp-mapping.js.map +0 -1
- package/dist/modes/acp/acp-mode.d.ts +0 -11
- package/dist/modes/acp/acp-mode.d.ts.map +0 -1
- package/dist/modes/acp/acp-mode.js.map +0 -1
- package/dist/modes/acp/acp-stream.d.ts +0 -9
- package/dist/modes/acp/acp-stream.d.ts.map +0 -1
- package/dist/modes/acp/acp-stream.js.map +0 -1
- package/dist/modes/index.d.ts +0 -11
- package/dist/modes/index.d.ts.map +0 -1
- package/dist/modes/index.js.map +0 -1
- package/dist/modes/interactive/chat-viewport.d.ts +0 -20
- package/dist/modes/interactive/chat-viewport.d.ts.map +0 -1
- package/dist/modes/interactive/chat-viewport.js.map +0 -1
- package/dist/modes/interactive/components/armin.d.ts +0 -34
- package/dist/modes/interactive/components/armin.d.ts.map +0 -1
- package/dist/modes/interactive/components/armin.js.map +0 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +0 -41
- package/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/assistant-message.js.map +0 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +0 -35
- package/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/bash-execution.js.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +0 -16
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.js.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +0 -16
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -16
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/config-selector.d.ts +0 -103
- package/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/config-selector.js.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts +0 -14
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.js.map +0 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +0 -30
- package/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-editor.js.map +0 -1
- package/dist/modes/interactive/components/custom-entry.d.ts +0 -19
- package/dist/modes/interactive/components/custom-entry.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-entry.js.map +0 -1
- package/dist/modes/interactive/components/custom-message.d.ts +0 -22
- package/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-message.js.map +0 -1
- package/dist/modes/interactive/components/dal-brand.d.ts +0 -46
- package/dist/modes/interactive/components/dal-brand.d.ts.map +0 -1
- package/dist/modes/interactive/components/dal-brand.js.map +0 -1
- package/dist/modes/interactive/components/daxnuts.d.ts +0 -23
- package/dist/modes/interactive/components/daxnuts.d.ts.map +0 -1
- package/dist/modes/interactive/components/daxnuts.js.map +0 -1
- package/dist/modes/interactive/components/diff.d.ts +0 -12
- package/dist/modes/interactive/components/diff.d.ts.map +0 -1
- package/dist/modes/interactive/components/diff.js.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts +0 -20
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.js.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts +0 -5
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.js.map +0 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +0 -21
- package/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-editor.js.map +0 -1
- package/dist/modes/interactive/components/extension-input.d.ts +0 -23
- package/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-input.js.map +0 -1
- package/dist/modes/interactive/components/extension-selector.d.ts +0 -26
- package/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-selector.js.map +0 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts +0 -25
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +0 -1
- package/dist/modes/interactive/components/first-time-setup.js.map +0 -1
- package/dist/modes/interactive/components/footer.d.ts +0 -34
- package/dist/modes/interactive/components/footer.d.ts.map +0 -1
- package/dist/modes/interactive/components/footer.js.map +0 -1
- package/dist/modes/interactive/components/index.d.ts +0 -34
- package/dist/modes/interactive/components/index.d.ts.map +0 -1
- package/dist/modes/interactive/components/index.js.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +0 -13
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +0 -52
- package/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
- package/dist/modes/interactive/components/login-dialog.js.map +0 -1
- package/dist/modes/interactive/components/markdown-transform.d.ts +0 -3
- package/dist/modes/interactive/components/markdown-transform.d.ts.map +0 -1
- package/dist/modes/interactive/components/markdown-transform.js.map +0 -1
- package/dist/modes/interactive/components/mermaid.d.ts +0 -11
- package/dist/modes/interactive/components/mermaid.d.ts.map +0 -1
- package/dist/modes/interactive/components/mermaid.js.map +0 -1
- package/dist/modes/interactive/components/model-selector.d.ts +0 -60
- package/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/model-selector.js.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +0 -33
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.js.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -46
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts +0 -23
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.js.map +0 -1
- package/dist/modes/interactive/components/session-selector.d.ts +0 -95
- package/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector.js.map +0 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +0 -94
- package/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/settings-selector.js.map +0 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts +0 -72
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +0 -1
- package/dist/modes/interactive/components/settings-submenu.js.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts +0 -10
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.js.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -17
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +0 -46
- package/dist/modes/interactive/components/status-indicator.d.ts.map +0 -1
- package/dist/modes/interactive/components/status-indicator.js.map +0 -1
- package/dist/modes/interactive/components/theme-selector.d.ts +0 -11
- package/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/theme-selector.js.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +0 -23
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +0 -113
- package/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/tool-execution.js.map +0 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +0 -94
- package/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/tree-selector.js.map +0 -1
- package/dist/modes/interactive/components/trust-selector.d.ts +0 -23
- package/dist/modes/interactive/components/trust-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/trust-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +0 -30
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message.d.ts +0 -19
- package/dist/modes/interactive/components/user-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message.js.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +0 -24
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +0 -1
- package/dist/modes/interactive/external-editor.d.ts +0 -12
- package/dist/modes/interactive/external-editor.d.ts.map +0 -1
- package/dist/modes/interactive/external-editor.js.map +0 -1
- package/dist/modes/interactive/interactive-mode.d.ts +0 -490
- package/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
- package/dist/modes/interactive/interactive-mode.js.map +0 -1
- package/dist/modes/interactive/model-catalog-refresh.d.ts +0 -7
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +0 -1
- package/dist/modes/interactive/model-catalog-refresh.js.map +0 -1
- package/dist/modes/interactive/model-search.d.ts +0 -12
- package/dist/modes/interactive/model-search.d.ts.map +0 -1
- package/dist/modes/interactive/model-search.js.map +0 -1
- package/dist/modes/interactive/session-share.d.ts +0 -16
- package/dist/modes/interactive/session-share.d.ts.map +0 -1
- package/dist/modes/interactive/session-share.js.map +0 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +0 -41
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme-controller.js.map +0 -1
- package/dist/modes/interactive/theme/theme-json.d.ts +0 -84
- package/dist/modes/interactive/theme/theme-json.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme-json.js.map +0 -1
- package/dist/modes/interactive/theme/theme.d.ts +0 -131
- package/dist/modes/interactive/theme/theme.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme.js.map +0 -1
- package/dist/modes/interactive/tui-renderer.d.ts +0 -21
- package/dist/modes/interactive/tui-renderer.d.ts.map +0 -1
- package/dist/modes/interactive/tui-renderer.js.map +0 -1
- package/dist/modes/json-event.d.ts +0 -34
- package/dist/modes/json-event.d.ts.map +0 -1
- package/dist/modes/json-event.js.map +0 -1
- package/dist/modes/print-mode.d.ts +0 -28
- package/dist/modes/print-mode.d.ts.map +0 -1
- package/dist/modes/print-mode.js.map +0 -1
- package/dist/modes/rpc/jsonl.d.ts +0 -17
- package/dist/modes/rpc/jsonl.d.ts.map +0 -1
- package/dist/modes/rpc/jsonl.js.map +0 -1
- package/dist/modes/rpc/rpc-client.d.ts +0 -269
- package/dist/modes/rpc/rpc-client.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-client.js.map +0 -1
- package/dist/modes/rpc/rpc-mode.d.ts +0 -20
- package/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-mode.js.map +0 -1
- package/dist/modes/rpc/rpc-types.d.ts +0 -497
- package/dist/modes/rpc/rpc-types.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-types.js.map +0 -1
- package/dist/node_modules/@dalcode/dal-bridge/src/client.ts +0 -77
- package/dist/node_modules/@dalcode/dal-bridge/src/index.ts +0 -204
- package/dist/node_modules/@dalcode/dal-gateway/src/index.ts +0 -161
- package/dist/node_modules/@dalcode/dal-guard/src/index.ts +0 -262
- package/dist/node_modules/@dalcode/dal-halo/src/halo-client.ts +0 -118
- package/dist/node_modules/@dalcode/dal-halo/src/index.ts +0 -131
- package/dist/node_modules/@dalcode/dal-lang/src/index.ts +0 -74
- package/dist/node_modules/@dalcode/dal-lsp/src/client.ts +0 -260
- package/dist/node_modules/@dalcode/dal-lsp/src/config.ts +0 -188
- package/dist/node_modules/@dalcode/dal-lsp/src/format.ts +0 -88
- package/dist/node_modules/@dalcode/dal-lsp/src/index.ts +0 -199
- package/dist/node_modules/@dalcode/dal-lsp/src/types.ts +0 -21
- package/dist/node_modules/@dalcode/dal-mcp/src/account-layer.ts +0 -85
- package/dist/node_modules/@dalcode/dal-mcp/src/add-wizard.ts +0 -142
- package/dist/node_modules/@dalcode/dal-mcp/src/command-parser.ts +0 -218
- package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.ts +0 -99
- package/dist/node_modules/@dalcode/dal-mcp/src/config.ts +0 -157
- package/dist/node_modules/@dalcode/dal-mcp/src/http-client.ts +0 -134
- package/dist/node_modules/@dalcode/dal-mcp/src/index.ts +0 -607
- package/dist/node_modules/@dalcode/dal-mcp/src/report.ts +0 -33
- package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.ts +0 -164
- package/dist/node_modules/@dalcode/dal-mcp/src/types.ts +0 -39
- package/dist/node_modules/@dalcode/dal-office/src/extract/csv.ts +0 -84
- package/dist/node_modules/@dalcode/dal-office/src/extract/index.ts +0 -111
- package/dist/node_modules/@dalcode/dal-office/src/extract/ooxml.ts +0 -109
- package/dist/node_modules/@dalcode/dal-office/src/extract/pdf.ts +0 -43
- package/dist/node_modules/@dalcode/dal-office/src/index.ts +0 -43
- package/dist/node_modules/@dalcode/dal-office/src/paths.ts +0 -107
- package/dist/node_modules/@dalcode/dal-office/src/render/chart.ts +0 -111
- package/dist/node_modules/@dalcode/dal-office/src/render/docx.ts +0 -166
- package/dist/node_modules/@dalcode/dal-office/src/render/pptx.ts +0 -386
- package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.ts +0 -128
- package/dist/node_modules/@dalcode/dal-office/src/scenes.ts +0 -197
- package/dist/node_modules/@dalcode/dal-office/src/scratchpad.ts +0 -49
- package/dist/node_modules/@dalcode/dal-office/src/themes.ts +0 -240
- package/dist/node_modules/@dalcode/dal-office/src/tools/chart-generate.ts +0 -131
- package/dist/node_modules/@dalcode/dal-office/src/tools/doc-generate.ts +0 -123
- package/dist/node_modules/@dalcode/dal-office/src/tools/drawio-generate.ts +0 -99
- package/dist/node_modules/@dalcode/dal-office/src/tools/md-generate.ts +0 -76
- package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-generate.ts +0 -110
- package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-plan.ts +0 -91
- package/dist/node_modules/@dalcode/dal-office/src/tools/read-file.ts +0 -71
- package/dist/node_modules/@dalcode/dal-office/src/tools/shared.ts +0 -54
- package/dist/node_modules/@dalcode/dal-office/src/tools/sheet-generate.ts +0 -101
- package/dist/node_modules/@dalcode/dal-office/src/truncate.ts +0 -27
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts +0 -25
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts.map +0 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js.map +0 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts +0 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js.map +0 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.ts +0 -735
- package/dist/node_modules/@dalcode/dal-pi-kit/src/index.ts +0 -1
- package/dist/node_modules/@dalcode/dal-router/src/classifier.ts +0 -80
- package/dist/node_modules/@dalcode/dal-router/src/commands.ts +0 -104
- package/dist/node_modules/@dalcode/dal-router/src/config.ts +0 -137
- package/dist/node_modules/@dalcode/dal-router/src/features.ts +0 -85
- package/dist/node_modules/@dalcode/dal-router/src/index.ts +0 -236
- package/dist/node_modules/@dalcode/dal-router/src/router.ts +0 -150
- package/dist/node_modules/@dalcode/dal-router/src/runtime.ts +0 -88
- package/dist/node_modules/@dalcode/dal-router/src/small-model.ts +0 -36
- package/dist/node_modules/@dalcode/dal-router/src/subagent.ts +0 -58
- package/dist/node_modules/@dalcode/dal-router/src/tiers.ts +0 -187
- package/dist/node_modules/@dalcode/dal-skills/src/client.ts +0 -96
- package/dist/node_modules/@dalcode/dal-skills/src/discover.ts +0 -101
- package/dist/node_modules/@dalcode/dal-skills/src/index.ts +0 -309
- package/dist/node_modules/@dalcode/dal-skills/src/install.ts +0 -140
- package/dist/node_modules/@dalcode/dal-skills/src/manage.ts +0 -446
- package/dist/node_modules/@dalcode/dal-skills/src/packages.ts +0 -130
- package/dist/node_modules/@dalcode/dal-subagent/src/index.ts +0 -273
- package/dist/node_modules/@dalcode/dal-telemetry/src/config.ts +0 -137
- package/dist/node_modules/@dalcode/dal-telemetry/src/index.ts +0 -176
- package/dist/node_modules/@dalcode/dal-telemetry/src/redact.ts +0 -98
- package/dist/node_modules/@dalcode/dal-telemetry/src/reporter.ts +0 -145
- package/dist/node_modules/@dalcode/deepailab/src/cache.ts +0 -62
- package/dist/node_modules/@dalcode/deepailab/src/index.ts +0 -579
- package/dist/node_modules/@dalcode/deepailab/src/model-defaults.ts +0 -276
- package/dist/node_modules/@dalcode/deepailab/src/oidc.ts +0 -507
- package/dist/node_modules/@earendil-works/chord/dist/api.d.ts +0 -15
- package/dist/node_modules/@earendil-works/chord/dist/api.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/api.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts +0 -6
- package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/bundler.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts +0 -24
- package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/context/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts +0 -119
- package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/delta/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts +0 -12
- package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/facets/host.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts +0 -3
- package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/facets/loader.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/index.d.ts +0 -11
- package/dist/node_modules/@earendil-works/chord/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/json.d.ts +0 -4
- package/dist/node_modules/@earendil-works/chord/dist/json.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/json.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts +0 -30
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts +0 -26
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/bundle.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts +0 -36
- package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/manifest.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts +0 -15
- package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node/package.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node.d.ts +0 -5
- package/dist/node_modules/@earendil-works/chord/dist/node.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/node.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts +0 -11
- package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/consumer.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts +0 -8
- package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/errors.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts +0 -15
- package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/handle.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts +0 -25
- package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/instances.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts +0 -5
- package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/loopback.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts +0 -37
- package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/provider.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts +0 -15
- package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts +0 -11
- package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts +0 -23
- package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/state.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts +0 -60
- package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/services/wire.js.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/types.d.ts +0 -203
- package/dist/node_modules/@earendil-works/chord/dist/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/chord/dist/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +0 -122
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +0 -716
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +0 -68
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +0 -126
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts +0 -67
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +0 -51
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +0 -49
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts +0 -100
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +0 -415
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +0 -133
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts +0 -23
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts +0 -32
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +0 -59
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +0 -101
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts +0 -21
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +0 -105
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +0 -53
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +0 -18
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts +0 -39
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +0 -11
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts +0 -21
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +0 -19
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts +0 -18
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +0 -34
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +0 -41
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +0 -39
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +0 -103
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +0 -293
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +0 -2
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +0 -18
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +0 -42
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +0 -33
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +0 -168
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +0 -50
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts +0 -11
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +0 -39
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +0 -82
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts +0 -65
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +0 -319
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts +0 -12
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts +0 -21
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +0 -762
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts +0 -11
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts +0 -20
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts +0 -12
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +0 -511
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +0 -95
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +0 -46
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +0 -1242
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +0 -27
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts +0 -89
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts +0 -19
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +0 -35
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts +0 -11
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +0 -291
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +0 -31
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +0 -29
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +0 -71
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +0 -72
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +0 -29
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts +0 -29
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +0 -103
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +0 -416
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +0 -71
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts +0 -77
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts +0 -69
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +0 -159
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts +0 -20
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts +0 -93
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +0 -19
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts +0 -31
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +0 -99
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts +0 -27
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +0 -231
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +0 -39
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +0 -67
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +0 -815
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts +0 -95
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts +0 -29
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +0 -211
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +0 -81
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +0 -102
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +0 -745
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +0 -77
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts +0 -9
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts +0 -19
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +0 -21
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts +0 -16
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +0 -68
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts +0 -16
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +0 -53
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +0 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +0 -18
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts +0 -30
- package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/client.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts +0 -58
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js +0 -57
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/state.js +0 -148
- package/dist/node_modules/@earendil-works/pi-client/dist/state.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts +0 -21
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts +0 -27
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts +0 -27
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts +0 -167
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts +0 -14002
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/cli.js +0 -136
- package/dist/node_modules/@earendil-works/pi-server/dist/cli.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts +0 -12
- package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/config.js +0 -55
- package/dist/node_modules/@earendil-works/pi-server/dist/config.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts +0 -35
- package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/connection.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/errors.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/handler.js +0 -105
- package/dist/node_modules/@earendil-works/pi-server/dist/handler.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js +0 -56
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts +0 -99
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js +0 -12
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts +0 -20
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js +0 -145
- package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/listener.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js +0 -266
- package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts +0 -36
- package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/radius.js +0 -360
- package/dist/node_modules/@earendil-works/pi-server/dist/radius.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts +0 -31
- package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js +0 -168
- package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts +0 -2
- package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/serve.js +0 -70
- package/dist/node_modules/@earendil-works/pi-server/dist/serve.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts +0 -46
- package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/server.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts +0 -40
- package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/session-router.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts +0 -2195
- package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js +0 -332
- package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js +0 -39
- package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/storage.js +0 -58
- package/dist/node_modules/@earendil-works/pi-server/dist/storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts +0 -34
- package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js +0 -290
- package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts +0 -35
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts +0 -57
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts +0 -66
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js +0 -254
- package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts +0 -49
- package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-server/dist/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js +0 -70
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts +0 -5
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts +0 -41
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts +0 -14
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js +0 -153
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts +0 -23
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts +0 -6
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts +0 -20
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts +0 -23
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts +0 -19
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts +0 -41
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js +0 -112
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js +0 -22
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts +0 -34
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js +0 -37
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts +0 -20
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js +0 -38
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts +0 -35
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js +0 -95
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js +0 -49
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js +0 -22
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js +0 -40
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js +0 -99
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts +0 -15
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js +0 -31
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts +0 -29
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +0 -194
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +0 -26
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts +0 -4
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts +0 -16
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts +0 -46
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +0 -57
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +0 -24
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +0 -22
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +0 -269
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +0 -48
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +0 -46
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +0 -103
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +0 -12
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +0 -63
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +0 -53
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +0 -60
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +0 -12
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts +0 -38
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +0 -19
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +0 -13
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts +0 -8
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +0 -41
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +0 -16
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +0 -32
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +0 -273
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +0 -184
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +0 -28
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts +0 -42
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +0 -3
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +0 -7
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +0 -57
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +0 -10
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +0 -118
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +0 -131
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +0 -160
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts +0 -39
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +0 -399
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +0 -17
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +0 -98
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts +0 -25
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +0 -1
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +0 -1
- package/dist/package-manager-cli.d.ts +0 -10
- package/dist/package-manager-cli.d.ts.map +0 -1
- package/dist/package-manager-cli.js.map +0 -1
- package/dist/rpc-entry.d.ts +0 -3
- package/dist/rpc-entry.d.ts.map +0 -1
- package/dist/rpc-entry.js.map +0 -1
- package/dist/server/create-harness.d.ts +0 -26
- package/dist/server/create-harness.d.ts.map +0 -1
- package/dist/server/create-harness.js +0 -106
- package/dist/server/create-harness.js.map +0 -1
- package/dist/utils/abort.d.ts +0 -5
- package/dist/utils/abort.d.ts.map +0 -1
- package/dist/utils/abort.js.map +0 -1
- package/dist/utils/ansi.d.ts +0 -2
- package/dist/utils/ansi.d.ts.map +0 -1
- package/dist/utils/ansi.js.map +0 -1
- package/dist/utils/changelog.d.ts +0 -57
- package/dist/utils/changelog.d.ts.map +0 -1
- package/dist/utils/changelog.js.map +0 -1
- package/dist/utils/child-process.d.ts +0 -18
- package/dist/utils/child-process.d.ts.map +0 -1
- package/dist/utils/child-process.js.map +0 -1
- package/dist/utils/clipboard-image.d.ts +0 -11
- package/dist/utils/clipboard-image.d.ts.map +0 -1
- package/dist/utils/clipboard-image.js.map +0 -1
- package/dist/utils/clipboard-native.d.ts +0 -11
- package/dist/utils/clipboard-native.d.ts.map +0 -1
- package/dist/utils/clipboard-native.js.map +0 -1
- package/dist/utils/clipboard.d.ts +0 -4
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/deprecation.d.ts +0 -4
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/deprecation.js.map +0 -1
- package/dist/utils/exif-orientation.d.ts +0 -5
- package/dist/utils/exif-orientation.d.ts.map +0 -1
- package/dist/utils/exif-orientation.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -8
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/fs-watch.d.ts +0 -5
- package/dist/utils/fs-watch.d.ts.map +0 -1
- package/dist/utils/fs-watch.js.map +0 -1
- package/dist/utils/git.d.ts +0 -26
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/html.d.ts +0 -7
- package/dist/utils/html.d.ts.map +0 -1
- package/dist/utils/html.js.map +0 -1
- package/dist/utils/image-convert.d.ts +0 -10
- package/dist/utils/image-convert.d.ts.map +0 -1
- package/dist/utils/image-convert.js.map +0 -1
- package/dist/utils/image-process.d.ts +0 -18
- package/dist/utils/image-process.d.ts.map +0 -1
- package/dist/utils/image-process.js.map +0 -1
- package/dist/utils/image-resize-core.d.ts +0 -30
- package/dist/utils/image-resize-core.d.ts.map +0 -1
- package/dist/utils/image-resize-core.js.map +0 -1
- package/dist/utils/image-resize-worker.d.ts +0 -2
- package/dist/utils/image-resize-worker.d.ts.map +0 -1
- package/dist/utils/image-resize-worker.js.map +0 -1
- package/dist/utils/image-resize.d.ts +0 -16
- package/dist/utils/image-resize.d.ts.map +0 -1
- package/dist/utils/image-resize.js.map +0 -1
- package/dist/utils/json.d.ts +0 -3
- package/dist/utils/json.d.ts.map +0 -1
- package/dist/utils/json.js.map +0 -1
- package/dist/utils/management-http.d.ts +0 -25
- package/dist/utils/management-http.d.ts.map +0 -1
- package/dist/utils/management-http.js.map +0 -1
- package/dist/utils/mime.d.ts +0 -3
- package/dist/utils/mime.d.ts.map +0 -1
- package/dist/utils/mime.js.map +0 -1
- package/dist/utils/offline.d.ts +0 -12
- package/dist/utils/offline.d.ts.map +0 -1
- package/dist/utils/offline.js.map +0 -1
- package/dist/utils/open-browser.d.ts +0 -9
- package/dist/utils/open-browser.d.ts.map +0 -1
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -34
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/photon.d.ts +0 -21
- package/dist/utils/photon.d.ts.map +0 -1
- package/dist/utils/photon.js.map +0 -1
- package/dist/utils/pi-user-agent.d.ts +0 -2
- package/dist/utils/pi-user-agent.d.ts.map +0 -1
- package/dist/utils/pi-user-agent.js.map +0 -1
- package/dist/utils/shell.d.ts +0 -34
- package/dist/utils/shell.d.ts.map +0 -1
- package/dist/utils/shell.js.map +0 -1
- package/dist/utils/sleep.d.ts +0 -5
- package/dist/utils/sleep.d.ts.map +0 -1
- package/dist/utils/sleep.js.map +0 -1
- package/dist/utils/syntax-highlight.d.ts +0 -13
- package/dist/utils/syntax-highlight.d.ts.map +0 -1
- package/dist/utils/syntax-highlight.js.map +0 -1
- package/dist/utils/text.d.ts +0 -8
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/text.js.map +0 -1
- package/dist/utils/tool-result-images.d.ts +0 -19
- package/dist/utils/tool-result-images.d.ts.map +0 -1
- package/dist/utils/tool-result-images.js.map +0 -1
- package/dist/utils/tools-manager.d.ts +0 -13
- package/dist/utils/tools-manager.d.ts.map +0 -1
- package/dist/utils/tools-manager.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -23
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js.map +0 -1
- package/dist/utils/windows-self-update.d.ts +0 -3
- package/dist/utils/windows-self-update.d.ts.map +0 -1
- package/dist/utils/windows-self-update.js.map +0 -1
- package/examples/extensions/kimi-deferred-tools.ts +0 -61
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../src/tui.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAIN,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA2E,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAC1F,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAElE,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,oDAAoD;IACpD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAA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AO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,gBAAgB;IAiBxB,yFAAyF;IACzF,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAwE5F;IAED,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CASnD;IAED,OAAO,CAAC,eAAe;IAUvB;;;;;;;OAOG;IACH,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAkBpG;IAED;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAqBhG;IAED;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAoBvG;CACD","sourcesContent":["/**\n * Minimal TUI implementation with differential rendering\n */\n\nimport { performance } from \"node:perf_hooks\";\nimport { isKeyRelease, matchesKey } from \"./keys.ts\";\nimport type { Terminal } from \"./terminal.ts\";\nimport {\n\tisOsc11BackgroundColorResponse,\n\tparseOsc11BackgroundColor,\n\tparseTerminalColorSchemeReport,\n\ttype RgbColor,\n\ttype TerminalColorScheme,\n} from \"./terminal-colors.ts\";\nimport { getCapabilities, isImageLine, setCellDimensions } from \"./terminal-image.ts\";\nimport { extractSegments, normalizeTerminalOutput, sliceByColumn, sliceWithWidth, visibleWidth } from \"./utils.ts\";\n\n/**\n * Component interface - all components must implement this\n */\nexport type TuiMouseEventType = \"press\" | \"release\" | \"move\" | \"drag\" | \"click\" | \"wheel\";\nexport type TuiMouseButton = \"left\" | \"middle\" | \"right\" | \"none\";\n\n/** Normalized cell-based mouse event. Coordinates are zero-based. */\nexport interface TuiMouseEvent {\n\ttype: TuiMouseEventType;\n\tbutton: TuiMouseButton;\n\t/** Coordinates local to the receiving component. */\n\tx: number;\n\ty: number;\n\t/** Absolute terminal coordinates. */\n\tscreenX: number;\n\tscreenY: number;\n\t/** Current component bounds. */\n\twidth: number;\n\theight: number;\n\tshift: boolean;\n\talt: boolean;\n\tctrl: boolean;\n\t/** Logical lines. Negative values scroll up. */\n\twheelDelta?: number;\n\t/** Consecutive click count when type is click. */\n\tclickCount?: number;\n}\n\nexport interface TuiMouseEventResult {\n\t/** Stop propagation and suppress renderer-level fallback behavior. */\n\thandled?: boolean;\n\t/** Route subsequent drag/release events to this component. Implies handled. */\n\tcapture?: boolean;\n\t/** Give keyboard focus to this component. Implies handled. */\n\tfocus?: boolean;\n\t/**\n\t * Explicitly request or suppress a render. Move and release default to false;\n\t * press, click, drag, and wheel default to true.\n\t */\n\trender?: boolean;\n}\n\n/** Internal target metadata used by containers and alternate-screen dispatch. */\nexport interface TuiMouseDispatchTarget {\n\tcomponent: Component;\n\toriginX: number;\n\toriginY: number;\n\twidth: number;\n\theight: number;\n}\n\n/** Result of dispatching to a concrete component. */\nexport interface TuiMouseDispatchResult extends TuiMouseEventResult {\n\thandled: true;\n\ttarget: TuiMouseDispatchTarget;\n\t/** Keyboard focus target, which may be a delegating parent container. */\n\tfocusTarget?: Component;\n}\n\n/**\n * Dispatch an event to a component and retain the exact target and coordinate\n * transform. Containers use this when forwarding events to nested children.\n */\nexport function dispatchMouseEvent(component: Component, event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\tconst result = component.handleMouse?.(event);\n\tif (!result) return undefined;\n\tif (\"target\" in result) return result as TuiMouseDispatchResult;\n\tif (!result.handled && !result.capture && !result.focus) return undefined;\n\treturn {\n\t\t...result,\n\t\thandled: true,\n\t\t...(result.focus ? { focusTarget: component } : {}),\n\t\ttarget: {\n\t\t\tcomponent,\n\t\t\toriginX: event.screenX - event.x,\n\t\t\toriginY: event.screenY - event.y,\n\t\t\twidth: event.width,\n\t\t\theight: event.height,\n\t\t},\n\t};\n}\n\n/** Recreate local coordinates for a previously dispatched mouse target. */\nexport function retargetMouseEvent(event: TuiMouseEvent, target: TuiMouseDispatchTarget): TuiMouseEvent {\n\treturn {\n\t\t...event,\n\t\tx: event.screenX - target.originX,\n\t\ty: event.screenY - target.originY,\n\t\twidth: target.width,\n\t\theight: target.height,\n\t};\n}\n\nexport interface Component {\n\t/**\n\t * Render the component to lines for the given viewport width\n\t * @param width - Current viewport width\n\t * @returns Array of strings, each representing a line\n\t */\n\trender(width: number): string[];\n\n\t/** Optional handler for keyboard input when component has focus. */\n\thandleInput?(data: string): void;\n\n\t/** Optional normalized mouse handler. */\n\thandleMouse?(event: TuiMouseEvent): TuiMouseEventResult | undefined;\n\n\t/**\n\t * If true, component receives key release events (Kitty protocol).\n\t * Default is false - release events are filtered out.\n\t */\n\twantsKeyRelease?: boolean;\n\n\t/**\n\t * Invalidate any cached rendering state.\n\t * Called when theme changes or when component needs to re-render from scratch.\n\t */\n\tinvalidate(): void;\n}\n\nexport type TuiInputListenerResult = { consume?: boolean; data?: string } | undefined;\nexport type TuiInputListener = (data: string) => TuiInputListenerResult;\ntype PendingOsc11BackgroundQuery = {\n\tsettled: boolean;\n\tresolve: ((rgb: RgbColor | undefined) => void) | undefined;\n\ttimer: NodeJS.Timeout | undefined;\n};\n\n/**\n * Interface for components that can receive focus and display a hardware cursor.\n * When focused, the component should emit CURSOR_MARKER at the cursor position\n * in its render output. TUI will find this marker and position the hardware\n * cursor there for proper IME candidate window positioning.\n */\nexport interface Focusable {\n\t/** Set by TUI when focus changes. Component should emit CURSOR_MARKER when true. */\n\tfocused: boolean;\n}\n\n/** Type guard to check if a component implements Focusable */\nexport function isFocusable(component: Component | null): component is Component & Focusable {\n\treturn component !== null && \"focused\" in component;\n}\n\n/**\n * Cursor position marker - APC (Application Program Command) sequence.\n * This is a zero-width escape sequence that terminals ignore.\n * Components emit this at the cursor position when focused.\n * TUI finds and strips this marker, then positions the hardware cursor there.\n */\nexport const CURSOR_MARKER = \"\\x1b_pi:c\\x07\";\n\nexport { visibleWidth };\n\n/**\n * Anchor position for overlays\n */\nexport type OverlayAnchor =\n\t| \"center\"\n\t| \"top-left\"\n\t| \"top-right\"\n\t| \"bottom-left\"\n\t| \"bottom-right\"\n\t| \"top-center\"\n\t| \"bottom-center\"\n\t| \"left-center\"\n\t| \"right-center\";\n\n/**\n * Margin configuration for overlays\n */\nexport interface OverlayMargin {\n\ttop?: number;\n\tright?: number;\n\tbottom?: number;\n\tleft?: number;\n}\n\n/** Value that can be absolute (number) or percentage (string like \"50%\") */\nexport type SizeValue = number | `${number}%`;\n\n/** Parse a SizeValue into absolute value given a reference size */\nfunction parseSizeValue(value: SizeValue | undefined, referenceSize: number): number | undefined {\n\tif (value === undefined) return undefined;\n\tif (typeof value === \"number\") return value;\n\t// Parse percentage string like \"50%\"\n\tconst match = value.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\tif (match) {\n\t\treturn Math.floor((referenceSize * parseFloat(match[1])) / 100);\n\t}\n\treturn undefined;\n}\n\n/**\n * Options for overlay positioning and sizing.\n * Values can be absolute numbers or percentage strings (e.g., \"50%\").\n */\nexport interface OverlayOptions {\n\t// === Sizing ===\n\t/** Width in columns, or percentage of terminal width (e.g., \"50%\") */\n\twidth?: SizeValue;\n\t/** Minimum width in columns */\n\tminWidth?: number;\n\t/** Maximum height in rows, or percentage of terminal height (e.g., \"50%\") */\n\tmaxHeight?: SizeValue;\n\n\t// === Positioning - anchor-based ===\n\t/** Anchor point for positioning (default: 'center') */\n\tanchor?: OverlayAnchor;\n\t/** Horizontal offset from anchor position (positive = right) */\n\toffsetX?: number;\n\t/** Vertical offset from anchor position (positive = down) */\n\toffsetY?: number;\n\n\t// === Positioning - percentage or absolute ===\n\t/** Row position: absolute number, or percentage (e.g., \"25%\" = 25% from top) */\n\trow?: SizeValue;\n\t/** Column position: absolute number, or percentage (e.g., \"50%\" = centered horizontally) */\n\tcol?: SizeValue;\n\n\t// === Margin from terminal edges ===\n\t/** Margin from terminal edges. Number applies to all sides. */\n\tmargin?: OverlayMargin | number;\n\n\t// === Visibility ===\n\t/**\n\t * Control overlay visibility based on terminal dimensions.\n\t * If provided, overlay is only rendered when this returns true.\n\t * Called each render cycle with current terminal dimensions.\n\t */\n\tvisible?: (termWidth: number, termHeight: number) => boolean;\n\t/** If true, don't capture keyboard focus when shown */\n\tnonCapturing?: boolean;\n}\n\n/** Options for {@link OverlayHandle.unfocus}. */\nexport interface OverlayUnfocusOptions {\n\t/** Explicit target to focus after releasing this overlay. */\n\ttarget: Component | null;\n}\n\n/** Last rendered terminal-relative overlay rectangle. */\nexport interface OverlayBounds {\n\trow: number;\n\tcol: number;\n\twidth: number;\n\theight: number;\n}\n\n/**\n * Handle returned by showOverlay for controlling the overlay\n */\nexport interface OverlayHandle {\n\t/** Permanently remove the overlay (cannot be shown again) */\n\thide(): void;\n\t/** Temporarily hide or show the overlay */\n\tsetHidden(hidden: boolean): void;\n\t/** Check if overlay is temporarily hidden */\n\tisHidden(): boolean;\n\t/** Focus this overlay and bring it to the visual front */\n\tfocus(): void;\n\t/** Release focus to the next visible capturing overlay or previous target, or to an explicit target when provided */\n\tunfocus(options?: OverlayUnfocusOptions): void;\n\t/** Check if this overlay currently has focus */\n\tisFocused(): boolean;\n\t/** Get the most recent rendered bounds for a visible overlay. */\n\tgetBounds(): OverlayBounds | undefined;\n}\n\ntype OverlayStackEntry = {\n\tcomponent: Component;\n\toptions?: OverlayOptions;\n\tpreFocus: Component | null;\n\thidden: boolean;\n\tfocusOrder: number;\n\tbounds?: OverlayBounds;\n};\n\ntype RenderedOverlayLayout = {\n\tentry: OverlayStackEntry;\n\trow: number;\n\tcol: number;\n\twidth: number;\n\theight: number;\n};\n\ntype OverlayBlockedFocusResume = { status: \"restore-overlay\" } | { status: \"focus-target\"; target: Component | null };\ntype EligibleOverlayFocusRestoreState = { status: \"eligible\"; overlay: OverlayStackEntry };\ntype BlockedOverlayFocusRestoreState = {\n\tstatus: \"blocked\";\n\toverlay: OverlayStackEntry;\n\tblockedBy: Component;\n\tresume: OverlayBlockedFocusResume;\n};\ntype ActiveOverlayFocusRestoreState = EligibleOverlayFocusRestoreState | BlockedOverlayFocusRestoreState;\ntype OverlayFocusRestoreState = { status: \"inactive\" } | ActiveOverlayFocusRestoreState;\ntype OverlayFocusRestorePolicy = \"clear\" | \"preserve\";\n\nconst layoutParents = new WeakMap<Component, Container>();\n\n/**\n * Walk exact-container ancestors so height indexes rebuild after structural or content changes.\n * Last-child invalidation does not bump: layout already remeasures the last child in place,\n * and bumping would force a full scan on the streaming-append path.\n */\nexport function bumpLayoutAncestors(component: Component): void {\n\tlet current: Component = component;\n\tlet parent = layoutParents.get(current);\n\twhile (parent) {\n\t\tif (parent.children[parent.children.length - 1] !== current) {\n\t\t\tparent.layoutGeneration++;\n\t\t}\n\t\tcurrent = parent;\n\t\tparent = layoutParents.get(parent);\n\t}\n}\n\n/**\n * Container - a component that contains other components\n */\nexport class Container implements Component {\n\tchildren: Component[] = [];\n\tprivate mouseLayout?: { width: number; children: Array<{ component: Component; height: number }> };\n\tlayoutGeneration = 0;\n\n\taddChild(component: Component): void {\n\t\tthis.children.push(component);\n\t\tlayoutParents.set(component, this);\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\tremoveChild(component: Component): void {\n\t\tconst index = this.children.indexOf(component);\n\t\tif (index !== -1) {\n\t\t\tthis.children.splice(index, 1);\n\t\t\tlayoutParents.delete(component);\n\t\t\tthis.layoutGeneration++;\n\t\t\tbumpLayoutAncestors(this);\n\t\t}\n\t}\n\n\tclear(): void {\n\t\tfor (const child of this.children) layoutParents.delete(child);\n\t\tthis.children = [];\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\tinvalidate(): void {\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t\tfor (const child of this.children) {\n\t\t\tchild.invalidate?.();\n\t\t}\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\t\tif (event.y < 0 || event.y >= event.height) return undefined;\n\t\tconst mouseChildren =\n\t\t\tthis.mouseLayout?.width === event.width\n\t\t\t\t? this.mouseLayout.children\n\t\t\t\t: this.children.map((component) => ({ component, height: component.render(event.width).length }));\n\t\tlet childY = 0;\n\t\tfor (const { component: child, height: childHeight } of mouseChildren) {\n\t\t\tif (event.y >= childY && event.y < childY + childHeight) {\n\t\t\t\tconst result = dispatchMouseEvent(child, {\n\t\t\t\t\t...event,\n\t\t\t\t\ty: event.y - childY,\n\t\t\t\t\theight: childHeight,\n\t\t\t\t});\n\t\t\t\tif (result?.focus && (this as Component).handleInput) return { ...result, focusTarget: this };\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tchildY += childHeight;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst mouseChildren: Array<{ component: Component; height: number }> = [];\n\t\tfor (const child of this.children) {\n\t\t\tconst childLines = child.render(width);\n\t\t\tmouseChildren.push({ component: child, height: childLines.length });\n\t\t\tfor (const line of childLines) {\n\t\t\t\tlines.push(line);\n\t\t\t}\n\t\t}\n\t\tthis.mouseLayout = { width, children: mouseChildren };\n\t\treturn lines;\n\t}\n}\n\n/**\n * TUI - Main class for managing terminal UI with differential rendering\n */\n/**\n * Style reset written at the end of every rendered segment.\n *\n * The OSC 8 close is only appended on terminals we have positively identified\n * as hyperlink-capable. It used to go out unconditionally, which meant a\n * terminal our own capability probe had already marked `hyperlinks: false` —\n * macOS Terminal.app among them — received one OSC 8 per line, tens of\n * thousands of them in a full redraw of a long transcript, none of which ever\n * opened a link. Terminal.app 2.15 died two different ways under that load:\n * a malloc SIGTRAP during realloc, and a null CFString while drawing.\n */\nfunction segmentReset(): string {\n\treturn getCapabilities().hyperlinks ? \"\\x1b[0m\\x1b]8;;\\x07\" : \"\\x1b[0m\";\n}\n\n/** Composite overlay content into a terminal line at a fixed column. */\nexport function compositeTuiLine(\n\tbaseLine: string,\n\toverlayLine: string,\n\tstartCol: number,\n\toverlayWidth: number,\n\ttotalWidth: number,\n): string {\n\tif (isImageLine(baseLine)) return baseLine;\n\n\tconst afterStart = startCol + overlayWidth;\n\tconst base = extractSegments(baseLine, startCol, afterStart, totalWidth - afterStart, true);\n\tconst overlay = sliceWithWidth(overlayLine, 0, overlayWidth, true);\n\tconst beforePad = Math.max(0, startCol - base.beforeWidth);\n\tconst overlayPad = Math.max(0, overlayWidth - overlay.width);\n\tconst actualBeforeWidth = Math.max(startCol, base.beforeWidth);\n\tconst actualOverlayWidth = Math.max(overlayWidth, overlay.width);\n\tconst afterTarget = Math.max(0, totalWidth - actualBeforeWidth - actualOverlayWidth);\n\tconst afterPad = Math.max(0, afterTarget - base.afterWidth);\n\tconst result =\n\t\tbase.before +\n\t\t\" \".repeat(beforePad) +\n\t\tsegmentReset() +\n\t\toverlay.text +\n\t\t\" \".repeat(overlayPad) +\n\t\tsegmentReset() +\n\t\tbase.after +\n\t\t\" \".repeat(afterPad);\n\n\treturn visibleWidth(result) <= totalWidth ? result : sliceByColumn(result, 0, totalWidth, true);\n}\n\nexport type TuiMode = \"regular\" | \"fullscreen\";\n\nexport interface TuiStopOptions {\n\t/** Leave renderer output in place for another TUI taking over the same terminal. */\n\tpreserveScreen?: boolean;\n}\n\nexport interface TUI extends Component {\n\treadonly mode: TuiMode;\n\tchildren: Component[];\n\tterminal: Terminal;\n\tonDebug?: () => void;\n\treadonly fullRedraws: number;\n\taddChild(component: Component): void;\n\tremoveChild(component: Component): void;\n\tclear(): void;\n\tgetShowHardwareCursor(): boolean;\n\tsetShowHardwareCursor(enabled: boolean): void;\n\tgetClearOnShrink(): boolean;\n\tsetClearOnShrink(enabled: boolean): void;\n\tsetFocus(component: Component | null): void;\n\tshowOverlay(component: Component, options?: OverlayOptions): OverlayHandle;\n\thideOverlay(): void;\n\thasOverlay(): boolean;\n\tstart(): void;\n\tstop(options?: TuiStopOptions): void;\n\trenderNow(force?: boolean): void;\n\trequestRender(force?: boolean): void;\n\taddInputListener(listener: TuiInputListener): () => void;\n\tremoveInputListener(listener: TuiInputListener): void;\n\tonTerminalColorSchemeChange(listener: (scheme: TerminalColorScheme) => void): () => void;\n\tsetTerminalColorSchemeNotifications(enabled: boolean): void;\n\tqueryTerminalBackgroundColor(options: { timeoutMs: number }): Promise<RgbColor | undefined>;\n\tqueryTerminalColorScheme(options: { timeoutMs: number }): Promise<TerminalColorScheme | undefined>;\n}\n\nexport const VIEWPORT_TUI = Symbol.for(\"@earendil-works/pi-tui/viewport\");\n\nexport interface ViewportTUI extends TUI {\n\treadonly [VIEWPORT_TUI]: true;\n\tsetLayoutRoot(component: Component | undefined): void;\n}\n\nexport function isViewportTUI(tui: TUI): tui is ViewportTUI {\n\treturn (tui as Partial<ViewportTUI>)[VIEWPORT_TUI] === true;\n}\n\nexport abstract class TuiBase extends Container implements TUI {\n\tabstract readonly mode: TuiMode;\n\tpublic terminal: Terminal;\n\tprivate focusedComponent: Component | null = null;\n\tprivate inputListeners = new Set<TuiInputListener>();\n\n\t/** Global callback for debug key (Shift+Ctrl+D). Called before input is forwarded to focused component. */\n\tpublic onDebug?: () => void;\n\tprivate renderRequested = false;\n\tprivate immediateRenderScheduled = false;\n\tprivate renderTimer: NodeJS.Timeout | undefined;\n\tprivate lastRenderAt = 0;\n\tprivate static readonly MIN_RENDER_INTERVAL_MS = 16;\n\tprivate readonly frameStatsEnabled = process.env.DAL_FRAME_STATS === \"1\";\n\tprivate readonly frameDurations: number[] = [];\n\tprivate frameStatsWrite = 0;\n\tprivate static readonly FRAME_STATS_CAP = 256;\n\tprivate showHardwareCursor = process.env.PI_HARDWARE_CURSOR === \"1\";\n\tprivate clearOnShrink = process.env.PI_CLEAR_ON_SHRINK === \"1\";\n\tprotected fullRedrawCount = 0;\n\tprotected stopped = false;\n\tprivate pendingOsc11BackgroundReplies = 0;\n\tprivate pendingOsc11BackgroundQueries: PendingOsc11BackgroundQuery[] = [];\n\tprivate terminalColorSchemeListeners = new Set<(scheme: TerminalColorScheme) => void>();\n\tprivate terminalColorSchemeNotificationsEnabled = false;\n\t/** Directory for debug/crash logs. When undefined, debug logging is disabled and crash dumps fall back to the OS temp directory. */\n\tprotected readonly logDirectory: string | undefined;\n\n\t// Overlay stack for modal components rendered on top of base content\n\tprivate focusOrderCounter = 0;\n\tprivate overlayStack: OverlayStackEntry[] = [];\n\tprivate renderedOverlayLayouts: RenderedOverlayLayout[] = [];\n\n\tget hasOverlayEntries(): boolean {\n\t\treturn this.overlayStack.length > 0;\n\t}\n\tprivate overlayFocusRestore: OverlayFocusRestoreState = { status: \"inactive\" };\n\n\tconstructor(terminal: Terminal, showHardwareCursor?: boolean, logDirectory?: string) {\n\t\tsuper();\n\t\tthis.terminal = terminal;\n\t\tthis.logDirectory = logDirectory;\n\t\tif (showHardwareCursor !== undefined) {\n\t\t\tthis.showHardwareCursor = showHardwareCursor;\n\t\t}\n\t}\n\n\tprotected abstract doRender(): void;\n\n\tprotected resetRenderState(): void {}\n\n\tprotected beforeTerminalStart(): void {}\n\n\tprotected afterTerminalStart(): void {}\n\n\tprotected beforeTerminalStop(_options: TuiStopOptions): void {}\n\n\tprotected afterTerminalStop(_options: TuiStopOptions): void {}\n\n\tget fullRedraws(): number {\n\t\treturn this.fullRedrawCount;\n\t}\n\n\tgetShowHardwareCursor(): boolean {\n\t\treturn this.showHardwareCursor;\n\t}\n\n\tsetShowHardwareCursor(enabled: boolean): void {\n\t\tif (this.showHardwareCursor === enabled) return;\n\t\tthis.showHardwareCursor = enabled;\n\t\tif (!enabled) {\n\t\t\tthis.terminal.hideCursor();\n\t\t}\n\t\tthis.requestRender();\n\t}\n\n\tgetClearOnShrink(): boolean {\n\t\treturn this.clearOnShrink;\n\t}\n\n\t/**\n\t * Set whether to trigger full re-render when content shrinks.\n\t * When true, empty rows are cleared when content shrinks.\n\t * When false (default), empty rows remain (reduces redraws on slower terminals).\n\t */\n\tsetClearOnShrink(enabled: boolean): void {\n\t\tthis.clearOnShrink = enabled;\n\t}\n\n\tgetFocusedComponent(): Component | null {\n\t\treturn this.focusedComponent;\n\t}\n\n\tsetFocus(component: Component | null): void {\n\t\tthis.setFocusInternal({ component, overlayFocusRestore: \"clear\" });\n\t}\n\n\tprivate setFocusInternal({\n\t\tcomponent,\n\t\toverlayFocusRestore,\n\t}: {\n\t\tcomponent: Component | null;\n\t\toverlayFocusRestore: OverlayFocusRestorePolicy;\n\t}): void {\n\t\tconst previousFocus = this.focusedComponent;\n\t\tlet nextFocus = component;\n\t\tconst previousFocusedOverlay = previousFocus\n\t\t\t? this.overlayStack.find((entry) => entry.component === previousFocus && this.isOverlayVisible(entry))\n\t\t\t: undefined;\n\t\tconst nextFocusIsOverlay = nextFocus ? this.overlayStack.some((entry) => entry.component === nextFocus) : false;\n\t\tconst restoreState = this.getVisibleOverlayFocusRestore();\n\t\tif (nextFocus && !nextFocusIsOverlay) {\n\t\t\tif (restoreState.status === \"blocked\" && restoreState.blockedBy === previousFocus) {\n\t\t\t\tif (restoreState.resume.status === \"focus-target\" || !this.isComponentMounted(restoreState.blockedBy)) {\n\t\t\t\t\tnextFocus = this.resolveBlockedOverlayFocusResume(restoreState);\n\t\t\t\t} else {\n\t\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\t\toverlay: restoreState.overlay,\n\t\t\t\t\t\tblockedBy: nextFocus,\n\t\t\t\t\t\tresume: restoreState.resume,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else if (\n\t\t\t\tpreviousFocusedOverlay &&\n\t\t\t\trestoreState.status !== \"inactive\" &&\n\t\t\t\trestoreState.overlay === previousFocusedOverlay &&\n\t\t\t\t!this.isOverlayFocusAncestor(previousFocusedOverlay, nextFocus)\n\t\t\t) {\n\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\toverlay: previousFocusedOverlay,\n\t\t\t\t\tblockedBy: nextFocus,\n\t\t\t\t\tresume: { status: \"restore-overlay\" },\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (nextFocus === null) {\n\t\t\tif (restoreState.status === \"blocked\" && restoreState.blockedBy === previousFocus) {\n\t\t\t\tnextFocus = this.resolveBlockedOverlayFocusResume(restoreState);\n\t\t\t} else if (overlayFocusRestore === \"clear\") {\n\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t}\n\t\t}\n\n\t\tif (isFocusable(this.focusedComponent)) {\n\t\t\tthis.focusedComponent.focused = false;\n\t\t}\n\n\t\tthis.focusedComponent = nextFocus;\n\n\t\tif (isFocusable(nextFocus)) {\n\t\t\tnextFocus.focused = true;\n\t\t}\n\n\t\tconst focusedOverlay = nextFocus\n\t\t\t? this.overlayStack.find((entry) => entry.component === nextFocus && this.isOverlayVisible(entry))\n\t\t\t: undefined;\n\t\tif (focusedOverlay) {\n\t\t\tthis.overlayFocusRestore = { status: \"eligible\", overlay: focusedOverlay };\n\t\t}\n\t}\n\n\tprivate clearOverlayFocusRestore(): void {\n\t\tthis.overlayFocusRestore = { status: \"inactive\" };\n\t}\n\n\tprivate clearOverlayFocusRestoreFor(overlay: OverlayStackEntry): void {\n\t\tif (this.overlayFocusRestore.status !== \"inactive\" && this.overlayFocusRestore.overlay === overlay) {\n\t\t\tthis.clearOverlayFocusRestore();\n\t\t}\n\t}\n\n\tprivate resolveBlockedOverlayFocusResume(restoreState: BlockedOverlayFocusRestoreState): Component | null {\n\t\tif (restoreState.resume.status === \"restore-overlay\") return restoreState.overlay.component;\n\t\tthis.clearOverlayFocusRestore();\n\t\treturn restoreState.resume.target;\n\t}\n\n\tprivate getVisibleOverlayFocusRestore(): OverlayFocusRestoreState {\n\t\tconst restoreState = this.overlayFocusRestore;\n\t\tif (restoreState.status === \"inactive\") return restoreState;\n\t\tif (!this.overlayStack.includes(restoreState.overlay) || !this.isOverlayVisible(restoreState.overlay)) {\n\t\t\treturn { status: \"inactive\" };\n\t\t}\n\t\treturn restoreState;\n\t}\n\n\tprivate isOverlayFocusAncestor(entry: OverlayStackEntry, component: Component): boolean {\n\t\tconst visited = new Set<Component>();\n\t\tlet current = entry.preFocus;\n\t\twhile (current && !visited.has(current)) {\n\t\t\tvisited.add(current);\n\t\t\tif (current === component) return true;\n\t\t\tcurrent = this.overlayStack.find((overlay) => overlay.component === current)?.preFocus ?? null;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate retargetOverlayPreFocus(removed: OverlayStackEntry): void {\n\t\tfor (const overlay of this.overlayStack) {\n\t\t\tif (overlay !== removed && overlay.preFocus === removed.component) {\n\t\t\t\toverlay.preFocus = removed.preFocus;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getMountedRoots(): readonly Component[] {\n\t\treturn this.children;\n\t}\n\n\tprivate isComponentMounted(component: Component): boolean {\n\t\treturn this.getMountedRoots().some((child) => this.containsComponent(child, component));\n\t}\n\n\tprivate containsComponent(root: Component, target: Component): boolean {\n\t\tif (root === target) return true;\n\t\tif (!(root instanceof Container)) return false;\n\t\treturn root.children.some((child) => this.containsComponent(child, target));\n\t}\n\n\t/**\n\t * Show an overlay component with configurable positioning and sizing.\n\t * Returns a handle to control the overlay's visibility.\n\t */\n\tshowOverlay(component: Component, options?: OverlayOptions): OverlayHandle {\n\t\tconst entry: OverlayStackEntry = {\n\t\t\tcomponent,\n\t\t\t...(options === undefined ? {} : { options }),\n\t\t\tpreFocus: this.focusedComponent,\n\t\t\thidden: false,\n\t\t\tfocusOrder: ++this.focusOrderCounter,\n\t\t};\n\t\tthis.overlayStack.push(entry);\n\t\t// Only focus if overlay is actually visible\n\t\tif (!options?.nonCapturing && this.isOverlayVisible(entry)) {\n\t\t\tthis.setFocus(component);\n\t\t}\n\t\tthis.terminal.hideCursor();\n\t\tthis.requestRender();\n\n\t\t// Return handle for controlling this overlay\n\t\treturn {\n\t\t\thide: () => {\n\t\t\t\tconst index = this.overlayStack.indexOf(entry);\n\t\t\t\tif (index !== -1) {\n\t\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\t\tthis.retargetOverlayPreFocus(entry);\n\t\t\t\t\tthis.overlayStack.splice(index, 1);\n\t\t\t\t\t// Restore focus if this overlay had focus\n\t\t\t\t\tif (this.focusedComponent === component) {\n\t\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\t\tthis.setFocus(topVisible?.component ?? entry.preFocus);\n\t\t\t\t\t}\n\t\t\t\t\tif (this.overlayStack.length === 0) this.terminal.hideCursor();\n\t\t\t\t\tthis.requestRender();\n\t\t\t\t}\n\t\t\t},\n\t\t\tsetHidden: (hidden: boolean) => {\n\t\t\t\tif (entry.hidden === hidden) return;\n\t\t\t\tentry.hidden = hidden;\n\t\t\t\t// Update focus when hiding/showing\n\t\t\t\tif (hidden) {\n\t\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\t\t// If this overlay had focus, move focus to next visible or preFocus\n\t\t\t\t\tif (this.focusedComponent === component) {\n\t\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\t\tthis.setFocus(topVisible?.component ?? entry.preFocus);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Restore focus to this overlay when showing (if it's actually visible)\n\t\t\t\t\tif (!options?.nonCapturing && this.isOverlayVisible(entry)) {\n\t\t\t\t\t\tentry.focusOrder = ++this.focusOrderCounter;\n\t\t\t\t\t\tthis.setFocus(component);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tisHidden: () => entry.hidden,\n\t\t\tfocus: () => {\n\t\t\t\tif (!this.overlayStack.includes(entry) || !this.isOverlayVisible(entry)) return;\n\t\t\t\tentry.focusOrder = ++this.focusOrderCounter;\n\t\t\t\tthis.setFocus(component);\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tunfocus: (unfocusOptions) => {\n\t\t\t\tconst isFocused = this.focusedComponent === component;\n\t\t\t\tconst restoreState = this.overlayFocusRestore;\n\t\t\t\tconst hasPendingRestore = restoreState.status !== \"inactive\" && restoreState.overlay === entry;\n\t\t\t\tif (!isFocused && !hasPendingRestore) return;\n\t\t\t\tif (\n\t\t\t\t\trestoreState.status === \"blocked\" &&\n\t\t\t\t\trestoreState.overlay === entry &&\n\t\t\t\t\tthis.focusedComponent === restoreState.blockedBy\n\t\t\t\t) {\n\t\t\t\t\tif (unfocusOptions) {\n\t\t\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\t\t\toverlay: entry,\n\t\t\t\t\t\t\tblockedBy: restoreState.blockedBy,\n\t\t\t\t\t\t\tresume: { status: \"focus-target\", target: unfocusOptions.target },\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t\t\t}\n\t\t\t\t\tthis.requestRender();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\tif (isFocused || unfocusOptions) {\n\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\tconst fallbackTarget = topVisible && topVisible !== entry ? topVisible.component : entry.preFocus;\n\t\t\t\t\tthis.setFocus(unfocusOptions ? unfocusOptions.target : fallbackTarget);\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tisFocused: () => this.focusedComponent === component,\n\t\t\tgetBounds: () => {\n\t\t\t\tif (!this.overlayStack.includes(entry) || !this.isOverlayVisible(entry) || !entry.bounds) return undefined;\n\t\t\t\treturn { ...entry.bounds };\n\t\t\t},\n\t\t};\n\t}\n\n\t/** Hide the topmost overlay and restore previous focus. */\n\thideOverlay(): void {\n\t\tconst overlay = this.overlayStack[this.overlayStack.length - 1];\n\t\tif (!overlay) return;\n\t\tthis.clearOverlayFocusRestoreFor(overlay);\n\t\tthis.retargetOverlayPreFocus(overlay);\n\t\tthis.overlayStack.pop();\n\t\tif (this.focusedComponent === overlay.component) {\n\t\t\t// Find topmost visible overlay, or fall back to preFocus\n\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\tthis.setFocus(topVisible?.component ?? overlay.preFocus);\n\t\t}\n\t\tif (this.overlayStack.length === 0) this.terminal.hideCursor();\n\t\tthis.requestRender();\n\t}\n\n\t/** Check if there are any visible overlays */\n\thasOverlay(): boolean {\n\t\treturn this.overlayStack.some((o) => this.isOverlayVisible(o));\n\t}\n\n\t/** Check if the focused component is a visible overlay */\n\tprotected isOverlayFocused(): boolean {\n\t\treturn this.overlayStack.some(\n\t\t\t(entry) => entry.component === this.focusedComponent && this.isOverlayVisible(entry),\n\t\t);\n\t}\n\n\t/** Keep overlay containers as keyboard focus owners when a nested control is clicked. */\n\tprotected resolveMouseFocusTarget(component: Component): Component {\n\t\tfor (let index = this.overlayStack.length - 1; index >= 0; index--) {\n\t\t\tconst overlay = this.overlayStack[index]!;\n\t\t\tif (this.isOverlayVisible(overlay) && this.containsComponent(overlay.component, component)) {\n\t\t\t\treturn overlay.component;\n\t\t\t}\n\t\t}\n\t\treturn component;\n\t}\n\n\t/** Dispatch to the visually topmost overlay under the pointer. */\n\tprotected dispatchMouseToOverlay(event: TuiMouseEvent): { hit: boolean; result?: TuiMouseDispatchResult } {\n\t\tfor (let index = this.renderedOverlayLayouts.length - 1; index >= 0; index--) {\n\t\t\tconst layout = this.renderedOverlayLayouts[index]!;\n\t\t\tif (\n\t\t\t\tevent.screenX < layout.col ||\n\t\t\t\tevent.screenX >= layout.col + layout.width ||\n\t\t\t\tevent.screenY < layout.row ||\n\t\t\t\tevent.screenY >= layout.row + layout.height\n\t\t\t) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst result = dispatchMouseEvent(layout.entry.component, {\n\t\t\t\t...event,\n\t\t\t\tx: event.screenX - layout.col,\n\t\t\t\ty: event.screenY - layout.row,\n\t\t\t\twidth: layout.width,\n\t\t\t\theight: layout.height,\n\t\t\t});\n\t\t\treturn result\n\t\t\t\t? {\n\t\t\t\t\t\thit: true,\n\t\t\t\t\t\tresult: result.focus ? { ...result, focusTarget: layout.entry.component } : result,\n\t\t\t\t\t}\n\t\t\t\t: { hit: true };\n\t\t}\n\t\treturn { hit: false };\n\t}\n\n\t/** Check if an overlay entry is currently visible */\n\tprivate isOverlayVisible(entry: OverlayStackEntry): boolean {\n\t\tif (entry.hidden) return false;\n\t\tif (entry.options?.visible) {\n\t\t\treturn entry.options.visible(this.terminal.columns, this.terminal.rows);\n\t\t}\n\t\treturn true;\n\t}\n\n\t/** Find the visual-frontmost visible capturing overlay, if any */\n\tprivate getTopmostVisibleOverlay(): OverlayStackEntry | undefined {\n\t\tlet topmost: OverlayStackEntry | undefined;\n\t\tfor (const overlay of this.overlayStack) {\n\t\t\tif (overlay.options?.nonCapturing || !this.isOverlayVisible(overlay)) continue;\n\t\t\tif (!topmost || overlay.focusOrder > topmost.focusOrder) {\n\t\t\t\ttopmost = overlay;\n\t\t\t}\n\t\t}\n\t\treturn topmost;\n\t}\n\n\toverride invalidate(): void {\n\t\tfor (const root of this.getMountedRoots()) root.invalidate();\n\t\tfor (const overlay of this.overlayStack) overlay.component.invalidate();\n\t}\n\n\tstart(): void {\n\t\tthis.stopped = false;\n\t\tthis.beforeTerminalStart();\n\t\tthis.terminal.start(\n\t\t\t(data) => this.handleTerminalInput(data),\n\t\t\t() => this.requestRender(),\n\t\t);\n\t\tthis.afterTerminalStart();\n\t\tthis.terminal.hideCursor();\n\t\tif (this.terminalColorSchemeNotificationsEnabled) {\n\t\t\tthis.terminal.write(\"\\x1b[?2031h\");\n\t\t}\n\t\tthis.queryCellSize();\n\t\tthis.requestRender();\n\t}\n\n\taddInputListener(listener: TuiInputListener): () => void {\n\t\tthis.inputListeners.add(listener);\n\t\treturn () => {\n\t\t\tthis.inputListeners.delete(listener);\n\t\t};\n\t}\n\n\tremoveInputListener(listener: TuiInputListener): void {\n\t\tthis.inputListeners.delete(listener);\n\t}\n\n\tonTerminalColorSchemeChange(listener: (scheme: TerminalColorScheme) => void): () => void {\n\t\tthis.terminalColorSchemeListeners.add(listener);\n\t\treturn () => {\n\t\t\tthis.terminalColorSchemeListeners.delete(listener);\n\t\t};\n\t}\n\n\tsetTerminalColorSchemeNotifications(enabled: boolean): void {\n\t\tif (this.terminalColorSchemeNotificationsEnabled === enabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.terminalColorSchemeNotificationsEnabled = enabled;\n\t\tif (!this.stopped) {\n\t\t\tthis.terminal.write(enabled ? \"\\x1b[?2031h\" : \"\\x1b[?2031l\");\n\t\t}\n\t}\n\n\tprivate queryCellSize(): void {\n\t\t// Only query if terminal supports images (cell size is only used for image rendering)\n\t\tif (!getCapabilities().images) {\n\t\t\treturn;\n\t\t}\n\t\t// Query terminal for cell size in pixels: CSI 16 t\n\t\t// Response format: CSI 6 ; height ; width t\n\t\tthis.terminal.write(\"\\x1b[16t\");\n\t}\n\n\tstop(options: TuiStopOptions = {}): void {\n\t\tthis.flushFrameStats();\n\t\tthis.stopped = true;\n\t\tthis.cancelRenderTimer();\n\t\tif (this.terminalColorSchemeNotificationsEnabled) {\n\t\t\tthis.terminal.write(\"\\x1b[?2031l\");\n\t\t}\n\t\tthis.beforeTerminalStop(options);\n\t\tthis.terminal.showCursor();\n\t\tthis.terminal.stop();\n\t\tthis.afterTerminalStop(options);\n\t}\n\n\trenderNow(force = false): void {\n\t\tif (force) this.resetRenderState();\n\t\tthis.renderRequested = false;\n\t\tthis.cancelRenderTimer();\n\t\tthis.lastRenderAt = performance.now();\n\t\tthis.runDoRender();\n\t}\n\n\trequestRender(force = false): void {\n\t\tif (force) {\n\t\t\tthis.resetRenderState();\n\t\t\tthis.requestImmediateRender();\n\t\t\treturn;\n\t\t}\n\t\tif (this.renderRequested) return;\n\t\tthis.renderRequested = true;\n\t\tprocess.nextTick(() => this.scheduleRender());\n\t}\n\n\tprivate requestImmediateRender(): void {\n\t\tthis.cancelRenderTimer();\n\t\tthis.renderRequested = true;\n\t\tif (this.immediateRenderScheduled) return;\n\t\tthis.immediateRenderScheduled = true;\n\t\tprocess.nextTick(() => {\n\t\t\tthis.immediateRenderScheduled = false;\n\t\t\tif (this.stopped || !this.renderRequested) return;\n\t\t\t// A previously queued scheduleRender() can create a timer before this\n\t\t\t// callback runs. User input must preempt that throttled frame.\n\t\t\tthis.cancelRenderTimer();\n\t\t\tthis.renderRequested = false;\n\t\t\tthis.lastRenderAt = performance.now();\n\t\t\tthis.runDoRender();\n\t\t});\n\t}\n\n\tprivate cancelRenderTimer(): void {\n\t\tif (!this.renderTimer) return;\n\t\tclearTimeout(this.renderTimer);\n\t\tthis.renderTimer = undefined;\n\t}\n\n\tprivate runDoRender(): void {\n\t\tconst started = performance.now();\n\t\tthis.doRender();\n\t\tif (this.frameStatsEnabled) {\n\t\t\tconst duration = performance.now() - started;\n\t\t\tif (this.frameDurations.length < TuiBase.FRAME_STATS_CAP) {\n\t\t\t\tthis.frameDurations.push(duration);\n\t\t\t} else {\n\t\t\t\tthis.frameDurations[this.frameStatsWrite] = duration;\n\t\t\t\tthis.frameStatsWrite = (this.frameStatsWrite + 1) % TuiBase.FRAME_STATS_CAP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate flushFrameStats(): void {\n\t\tif (!this.frameStatsEnabled || this.frameDurations.length === 0) return;\n\t\tconst sorted = [...this.frameDurations].sort((left, right) => left - right);\n\t\tconst at = (fraction: number) => sorted[Math.min(sorted.length - 1, Math.floor(sorted.length * fraction))]!;\n\t\tconst term = (process.env.TERM ?? \"\").slice(0, 24);\n\t\tprocess.stderr.write(\n\t\t\t`tui_frame p50_ms=${at(0.5).toFixed(2)} p95_ms=${at(0.95).toFixed(2)} frames=${sorted.length} cols=${this.terminal.columns} rows=${this.terminal.rows} term=${term}\\n`,\n\t\t);\n\t}\n\n\tprivate scheduleRender(): void {\n\t\tif (this.stopped || this.renderTimer || !this.renderRequested) {\n\t\t\treturn;\n\t\t}\n\t\tconst elapsed = performance.now() - this.lastRenderAt;\n\t\tconst delay = Math.max(0, TuiBase.MIN_RENDER_INTERVAL_MS - elapsed);\n\t\tthis.renderTimer = setTimeout(() => {\n\t\t\tthis.renderTimer = undefined;\n\t\t\tif (this.stopped || !this.renderRequested) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.renderRequested = false;\n\t\t\tthis.lastRenderAt = performance.now();\n\t\t\tthis.runDoRender();\n\t\t\tif (this.renderRequested) {\n\t\t\t\tthis.scheduleRender();\n\t\t\t}\n\t\t}, delay);\n\t}\n\n\tprivate handleTerminalInput(data: string): void {\n\t\tif (this.consumeOsc11BackgroundResponse(data)) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.consumeTerminalColorSchemeReport(data)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.inputListeners.size > 0) {\n\t\t\tlet current = data;\n\t\t\tfor (const listener of this.inputListeners) {\n\t\t\t\tconst result = listener(current);\n\t\t\t\tif (result?.consume) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (result?.data !== undefined) {\n\t\t\t\t\tcurrent = result.data;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (current.length === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdata = current;\n\t\t}\n\n\t\t// Consume terminal cell size responses without blocking unrelated input.\n\t\tif (this.consumeCellSizeResponse(data)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Global debug key handler (Shift+Ctrl+D)\n\t\tif (matchesKey(data, \"shift+ctrl+d\") && this.onDebug) {\n\t\t\tthis.onDebug();\n\t\t\treturn;\n\t\t}\n\n\t\t// If focused component is an overlay, verify it's still visible\n\t\t// (visibility can change due to terminal resize or visible() callback)\n\t\tconst focusedOverlay = this.overlayStack.find((o) => o.component === this.focusedComponent);\n\t\tif (focusedOverlay && !this.isOverlayVisible(focusedOverlay)) {\n\t\t\t// Focused overlay is no longer visible, redirect to topmost visible overlay\n\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\tif (topVisible) {\n\t\t\t\tthis.setFocus(topVisible.component);\n\t\t\t} else {\n\t\t\t\tthis.setFocusInternal({ component: focusedOverlay.preFocus, overlayFocusRestore: \"preserve\" });\n\t\t\t}\n\t\t}\n\n\t\tconst focusIsOverlay = this.overlayStack.some((o) => o.component === this.focusedComponent);\n\t\tif (!focusIsOverlay) {\n\t\t\tconst restoreState = this.getVisibleOverlayFocusRestore();\n\t\t\tif (restoreState.status === \"eligible\") {\n\t\t\t\tthis.setFocus(restoreState.overlay.component);\n\t\t\t} else if (restoreState.status === \"blocked\" && restoreState.blockedBy !== this.focusedComponent) {\n\t\t\t\tif (restoreState.resume.status === \"restore-overlay\") {\n\t\t\t\t\tthis.setFocus(restoreState.overlay.component);\n\t\t\t\t} else {\n\t\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t\t\tthis.setFocus(restoreState.resume.target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Pass input to focused component (including Ctrl+C)\n\t\t// The focused component can decide how to handle Ctrl+C\n\t\tif (this.focusedComponent?.handleInput) {\n\t\t\t// Filter out key release events unless component opts in\n\t\t\tif (isKeyRelease(data) && !this.focusedComponent.wantsKeyRelease) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.focusedComponent.handleInput(data);\n\t\t\t// Keyboard input is latency-sensitive. Avoid the throttled timer path,\n\t\t\t// where even setTimeout(0) can take a full 16 ms tick on Windows.\n\t\t\tthis.requestImmediateRender();\n\t\t}\n\t}\n\n\tprivate consumeOsc11BackgroundResponse(data: string): boolean {\n\t\tif (this.pendingOsc11BackgroundReplies <= 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!isOsc11BackgroundColorResponse(data)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst rgb = parseOsc11BackgroundColor(data);\n\t\tthis.pendingOsc11BackgroundReplies -= 1;\n\t\tconst query = this.pendingOsc11BackgroundQueries.shift();\n\t\tif (query && !query.settled) {\n\t\t\tquery.settled = true;\n\t\t\tif (query.timer) {\n\t\t\t\tclearTimeout(query.timer);\n\t\t\t\tquery.timer = undefined;\n\t\t\t}\n\t\t\tquery.resolve?.(rgb);\n\t\t\tquery.resolve = undefined;\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate consumeTerminalColorSchemeReport(data: string): boolean {\n\t\tconst scheme = parseTerminalColorSchemeReport(data);\n\t\tif (!scheme) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (const listener of this.terminalColorSchemeListeners) {\n\t\t\tlistener(scheme);\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate consumeCellSizeResponse(data: string): boolean {\n\t\t// Response format: ESC [ 6 ; height ; width t\n\t\tconst match = data.match(/^\\x1b\\[6;(\\d+);(\\d+)t$/);\n\t\tif (!match) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst heightPx = parseInt(match[1], 10);\n\t\tconst widthPx = parseInt(match[2], 10);\n\t\tif (heightPx <= 0 || widthPx <= 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tsetCellDimensions({ widthPx, heightPx });\n\t\t// Invalidate all components so images re-render with correct dimensions.\n\t\tthis.invalidate();\n\t\tthis.requestRender();\n\t\treturn true;\n\t}\n\n\t/**\n\t * Resolve overlay layout from options.\n\t * Returns { width, row, col, maxHeight } for rendering.\n\t */\n\tprivate resolveOverlayLayout(\n\t\toptions: OverlayOptions | undefined,\n\t\toverlayHeight: number,\n\t\ttermWidth: number,\n\t\ttermHeight: number,\n\t): { width: number; row: number; col: number; maxHeight: number | undefined } {\n\t\tconst opt = options ?? {};\n\n\t\t// Parse margin (clamp to non-negative)\n\t\tconst margin =\n\t\t\ttypeof opt.margin === \"number\"\n\t\t\t\t? { top: opt.margin, right: opt.margin, bottom: opt.margin, left: opt.margin }\n\t\t\t\t: (opt.margin ?? {});\n\t\tconst marginTop = Math.max(0, margin.top ?? 0);\n\t\tconst marginRight = Math.max(0, margin.right ?? 0);\n\t\tconst marginBottom = Math.max(0, margin.bottom ?? 0);\n\t\tconst marginLeft = Math.max(0, margin.left ?? 0);\n\n\t\t// Available space after margins\n\t\tconst availWidth = Math.max(1, termWidth - marginLeft - marginRight);\n\t\tconst availHeight = Math.max(1, termHeight - marginTop - marginBottom);\n\n\t\t// === Resolve width ===\n\t\tlet width = parseSizeValue(opt.width, termWidth) ?? Math.min(80, availWidth);\n\t\t// Apply minWidth\n\t\tif (opt.minWidth !== undefined) {\n\t\t\twidth = Math.max(width, opt.minWidth);\n\t\t}\n\t\t// Clamp to available space\n\t\twidth = Math.max(1, Math.min(width, availWidth));\n\n\t\t// === Resolve maxHeight ===\n\t\tlet maxHeight = parseSizeValue(opt.maxHeight, termHeight);\n\t\t// Clamp to available space\n\t\tif (maxHeight !== undefined) {\n\t\t\tmaxHeight = Math.max(1, Math.min(maxHeight, availHeight));\n\t\t}\n\n\t\t// Effective overlay height (may be clamped by maxHeight)\n\t\tconst effectiveHeight = maxHeight !== undefined ? Math.min(overlayHeight, maxHeight) : overlayHeight;\n\n\t\t// === Resolve position ===\n\t\tlet row: number;\n\t\tlet col: number;\n\n\t\tif (opt.row !== undefined) {\n\t\t\tif (typeof opt.row === \"string\") {\n\t\t\t\t// Percentage: 0% = top, 100% = bottom (overlay stays within bounds)\n\t\t\t\tconst match = opt.row.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\t\t\t\tif (match) {\n\t\t\t\t\tconst maxRow = Math.max(0, availHeight - effectiveHeight);\n\t\t\t\t\tconst percent = parseFloat(match[1]) / 100;\n\t\t\t\t\trow = marginTop + Math.floor(maxRow * percent);\n\t\t\t\t} else {\n\t\t\t\t\t// Invalid format, fall back to center\n\t\t\t\t\trow = this.resolveAnchorRow(\"center\", effectiveHeight, availHeight, marginTop);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Absolute row position\n\t\t\t\trow = opt.row;\n\t\t\t}\n\t\t} else {\n\t\t\t// Anchor-based (default: center)\n\t\t\tconst anchor = opt.anchor ?? \"center\";\n\t\t\trow = this.resolveAnchorRow(anchor, effectiveHeight, availHeight, marginTop);\n\t\t}\n\n\t\tif (opt.col !== undefined) {\n\t\t\tif (typeof opt.col === \"string\") {\n\t\t\t\t// Percentage: 0% = left, 100% = right (overlay stays within bounds)\n\t\t\t\tconst match = opt.col.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\t\t\t\tif (match) {\n\t\t\t\t\tconst maxCol = Math.max(0, availWidth - width);\n\t\t\t\t\tconst percent = parseFloat(match[1]) / 100;\n\t\t\t\t\tcol = marginLeft + Math.floor(maxCol * percent);\n\t\t\t\t} else {\n\t\t\t\t\t// Invalid format, fall back to center\n\t\t\t\t\tcol = this.resolveAnchorCol(\"center\", width, availWidth, marginLeft);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Absolute column position\n\t\t\t\tcol = opt.col;\n\t\t\t}\n\t\t} else {\n\t\t\t// Anchor-based (default: center)\n\t\t\tconst anchor = opt.anchor ?? \"center\";\n\t\t\tcol = this.resolveAnchorCol(anchor, width, availWidth, marginLeft);\n\t\t}\n\n\t\t// Apply offsets\n\t\tif (opt.offsetY !== undefined) row += opt.offsetY;\n\t\tif (opt.offsetX !== undefined) col += opt.offsetX;\n\n\t\t// Clamp to terminal bounds (respecting margins)\n\t\trow = Math.max(marginTop, Math.min(row, termHeight - marginBottom - effectiveHeight));\n\t\tcol = Math.max(marginLeft, Math.min(col, termWidth - marginRight - width));\n\n\t\treturn { width, row, col, maxHeight };\n\t}\n\n\tprivate resolveAnchorRow(anchor: OverlayAnchor, height: number, availHeight: number, marginTop: number): number {\n\t\tswitch (anchor) {\n\t\t\tcase \"top-left\":\n\t\t\tcase \"top-center\":\n\t\t\tcase \"top-right\":\n\t\t\t\treturn marginTop;\n\t\t\tcase \"bottom-left\":\n\t\t\tcase \"bottom-center\":\n\t\t\tcase \"bottom-right\":\n\t\t\t\treturn marginTop + availHeight - height;\n\t\t\tcase \"left-center\":\n\t\t\tcase \"center\":\n\t\t\tcase \"right-center\":\n\t\t\t\treturn marginTop + Math.floor((availHeight - height) / 2);\n\t\t}\n\t}\n\n\tprivate resolveAnchorCol(anchor: OverlayAnchor, width: number, availWidth: number, marginLeft: number): number {\n\t\tswitch (anchor) {\n\t\t\tcase \"top-left\":\n\t\t\tcase \"left-center\":\n\t\t\tcase \"bottom-left\":\n\t\t\t\treturn marginLeft;\n\t\t\tcase \"top-right\":\n\t\t\tcase \"right-center\":\n\t\t\tcase \"bottom-right\":\n\t\t\t\treturn marginLeft + availWidth - width;\n\t\t\tcase \"top-center\":\n\t\t\tcase \"center\":\n\t\t\tcase \"bottom-center\":\n\t\t\t\treturn marginLeft + Math.floor((availWidth - width) / 2);\n\t\t}\n\t}\n\n\t/** Composite all overlays into content lines (sorted by focusOrder, higher = on top). */\n\tprotected compositeOverlays(lines: string[], termWidth: number, termHeight: number): string[] {\n\t\tif (this.overlayStack.length === 0) {\n\t\t\tthis.renderedOverlayLayouts = [];\n\t\t\treturn lines;\n\t\t}\n\t\tconst result = [...lines];\n\n\t\tfor (const entry of this.overlayStack) entry.bounds = undefined;\n\n\t\t// Pre-render all visible overlays and calculate positions\n\t\tconst rendered: { entry: OverlayStackEntry; overlayLines: string[]; row: number; col: number; w: number }[] = [];\n\t\tlet minLinesNeeded = result.length;\n\n\t\tconst visibleEntries = this.overlayStack.filter((e) => this.isOverlayVisible(e));\n\t\tvisibleEntries.sort((a, b) => a.focusOrder - b.focusOrder);\n\t\tfor (const entry of visibleEntries) {\n\t\t\tconst { component, options } = entry;\n\n\t\t\t// Get layout with height=0 first to determine width and maxHeight\n\t\t\t// (width and maxHeight don't depend on overlay height)\n\t\t\tconst { width, maxHeight } = this.resolveOverlayLayout(options, 0, termWidth, termHeight);\n\n\t\t\t// Render component at calculated width\n\t\t\tlet overlayLines = component.render(width);\n\n\t\t\t// Apply maxHeight if specified\n\t\t\tif (maxHeight !== undefined && overlayLines.length > maxHeight) {\n\t\t\t\toverlayLines = overlayLines.slice(0, maxHeight);\n\t\t\t}\n\n\t\t\t// Get final row/col with actual overlay height\n\t\t\tconst { row, col } = this.resolveOverlayLayout(options, overlayLines.length, termWidth, termHeight);\n\t\t\tentry.bounds = { row, col, width, height: overlayLines.length };\n\n\t\t\trendered.push({ entry, overlayLines, row, col, w: width });\n\t\t\tminLinesNeeded = Math.max(minLinesNeeded, row + overlayLines.length);\n\t\t}\n\t\tthis.renderedOverlayLayouts = rendered.map(({ entry, row, col, w, overlayLines }) => ({\n\t\t\tentry,\n\t\t\trow,\n\t\t\tcol,\n\t\t\twidth: w,\n\t\t\theight: overlayLines.length,\n\t\t}));\n\n\t\t// Pad to at least terminal height so overlays have screen-relative positions.\n\t\t// Excludes maxLinesRendered: the historical high-water mark caused self-reinforcing\n\t\t// inflation that pushed content into scrollback on terminal widen.\n\t\tconst workingHeight = Math.max(result.length, termHeight, minLinesNeeded);\n\n\t\t// Extend result with empty lines if content is too short for overlay placement or working area\n\t\twhile (result.length < workingHeight) {\n\t\t\tresult.push(\"\");\n\t\t}\n\n\t\tconst viewportStart = Math.max(0, workingHeight - termHeight);\n\n\t\t// Composite each overlay\n\t\tfor (const { overlayLines, row, col, w } of rendered) {\n\t\t\tfor (let i = 0; i < overlayLines.length; i++) {\n\t\t\t\tconst idx = viewportStart + row + i;\n\t\t\t\tif (idx >= 0 && idx < result.length) {\n\t\t\t\t\t// Defensive: truncate overlay line to declared width before compositing\n\t\t\t\t\t// (components should already respect width, but this ensures it)\n\t\t\t\t\tconst truncatedOverlayLine =\n\t\t\t\t\t\tvisibleWidth(overlayLines[i]) > w ? sliceByColumn(overlayLines[i], 0, w, true) : overlayLines[i];\n\t\t\t\t\tresult[idx] = this.compositeLineAt(result[idx], truncatedOverlayLine, col, w, termWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tprotected applyLineResets(lines: string[]): string[] {\n\t\tconst reset = segmentReset();\n\t\tfor (let i = 0; i < lines.length; i++) {\n\t\t\tconst line = lines[i];\n\t\t\tif (!isImageLine(line)) {\n\t\t\t\tlines[i] = normalizeTerminalOutput(line) + reset;\n\t\t\t}\n\t\t}\n\t\treturn lines;\n\t}\n\n\tprivate compositeLineAt(\n\t\tbaseLine: string,\n\t\toverlayLine: string,\n\t\tstartCol: number,\n\t\toverlayWidth: number,\n\t\ttotalWidth: number,\n\t): string {\n\t\treturn compositeTuiLine(baseLine, overlayLine, startCol, overlayWidth, totalWidth);\n\t}\n\n\t/**\n\t * Find and extract cursor position from rendered lines.\n\t * Searches for CURSOR_MARKER, calculates its position, and strips it from the output.\n\t * Only scans the bottom terminal height lines (visible viewport).\n\t * @param lines - Rendered lines to search\n\t * @param height - Terminal height (visible viewport size)\n\t * @returns Cursor position { row, col } or null if no marker found\n\t */\n\tprotected extractCursorPosition(lines: string[], height: number): { row: number; col: number } | null {\n\t\t// Only scan the bottom `height` lines (visible viewport)\n\t\tconst viewportTop = Math.max(0, lines.length - height);\n\t\tfor (let row = lines.length - 1; row >= viewportTop; row--) {\n\t\t\tconst line = lines[row];\n\t\t\tconst markerIndex = line.indexOf(CURSOR_MARKER);\n\t\t\tif (markerIndex !== -1) {\n\t\t\t\t// Calculate visual column (width of text before marker)\n\t\t\t\tconst beforeMarker = line.slice(0, markerIndex);\n\t\t\t\tconst col = visibleWidth(beforeMarker);\n\n\t\t\t\t// Strip marker from the line\n\t\t\t\tlines[row] = line.slice(0, markerIndex) + line.slice(markerIndex + CURSOR_MARKER.length);\n\n\t\t\t\treturn { row, col };\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * Query the terminal's default background color with OSC 11 (`ESC ] 11 ; ? BEL`).\n\t * @param timeoutMs Query timeout in milliseconds.\n\t * @returns Promise containing the parsed RGB color, or undefined if it times out or fails to parse.\n\t */\n\tqueryTerminalBackgroundColor({ timeoutMs }: { timeoutMs: number }): Promise<RgbColor | undefined> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst query: PendingOsc11BackgroundQuery = {\n\t\t\t\tsettled: false,\n\t\t\t\tresolve,\n\t\t\t\ttimer: undefined,\n\t\t\t};\n\n\t\t\tquery.timer = setTimeout(() => {\n\t\t\t\tif (query.settled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tquery.settled = true;\n\t\t\t\tquery.timer = undefined;\n\t\t\t\tquery.resolve?.(undefined);\n\t\t\t\tquery.resolve = undefined;\n\t\t\t}, timeoutMs);\n\t\t\tthis.pendingOsc11BackgroundQueries.push(query);\n\t\t\tthis.pendingOsc11BackgroundReplies += 1;\n\t\t\tthis.terminal.write(\"\\x1b]11;?\\x07\");\n\t\t});\n\t}\n\n\t/**\n\t * Query the terminal's color-scheme preference with DSR (`CSI ? 996 n`).\n\t * Terminals that support the color palette notification protocol reply with\n\t * `CSI ? 997 ; 1 n` for dark or `CSI ? 997 ; 2 n` for light.\n\t */\n\tqueryTerminalColorScheme({ timeoutMs }: { timeoutMs: number }): Promise<TerminalColorScheme | undefined> {\n\t\treturn new Promise((resolve) => {\n\t\t\tlet settled = false;\n\t\t\tlet timer: NodeJS.Timeout | undefined;\n\t\t\tlet unsubscribe: () => void = () => {};\n\t\t\tconst settle = (scheme: TerminalColorScheme | undefined) => {\n\t\t\t\tif (settled) return;\n\t\t\t\tsettled = true;\n\t\t\t\tif (timer) {\n\t\t\t\t\tclearTimeout(timer);\n\t\t\t\t\ttimer = undefined;\n\t\t\t\t}\n\t\t\t\tunsubscribe();\n\t\t\t\tresolve(scheme);\n\t\t\t};\n\n\t\t\tunsubscribe = this.onTerminalColorSchemeChange(settle);\n\t\t\ttimer = setTimeout(() => settle(undefined), timeoutMs);\n\t\t\tthis.terminal.write(\"\\x1b[?996n\");\n\t\t});\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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AAI,OAAO,GAAG,KAAK,CAAC;YACpB,IAAI,KAAiC,CAAC;YACtC,IAAI,WAAW,GAAe,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,MAAuC,EAAE,EAAE,CAAC;gBAC3D,IAAI,OAAO;oBAAE,OAAO;gBACpB,OAAO,GAAG,IAAI,CAAC;gBACf,IAAI,KAAK,EAAE,CAAC;oBACX,YAAY,CAAC,KAAK,CAAC,CAAC;oBACpB,KAAK,GAAG,SAAS,CAAC;gBACnB,CAAC;gBACD,WAAW,EAAE,CAAC;gBACd,OAAO,CAAC,MAAM,CAAC,CAAC;YAAA,CAChB,CAAC;YAEF,WAAW,GAAG,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;YACvD,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;YACvD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAAA,CAClC,CAAC,CAAC;IAAA,CACH;CACD","sourcesContent":["/**\n * Minimal TUI implementation with differential rendering\n */\n\nimport { performance } from \"node:perf_hooks\";\nimport { isKeyRelease, matchesKey } from \"./keys.ts\";\nimport type { Terminal } from \"./terminal.ts\";\nimport {\n\tisOsc11BackgroundColorResponse,\n\tparseOsc11BackgroundColor,\n\tparseTerminalColorSchemeReport,\n\ttype RgbColor,\n\ttype TerminalColorScheme,\n} from \"./terminal-colors.ts\";\nimport { getCapabilities, isImageLine, setCellDimensions } from \"./terminal-image.ts\";\nimport { extractSegments, normalizeTerminalOutput, sliceByColumn, sliceWithWidth, visibleWidth } from \"./utils.ts\";\n\n/**\n * Component interface - all components must implement this\n */\nexport type TuiMouseEventType = \"press\" | \"release\" | \"move\" | \"drag\" | \"click\" | \"wheel\";\nexport type TuiMouseButton = \"left\" | \"middle\" | \"right\" | \"none\";\n\n/** Normalized cell-based mouse event. Coordinates are zero-based. */\nexport interface TuiMouseEvent {\n\ttype: TuiMouseEventType;\n\tbutton: TuiMouseButton;\n\t/** Coordinates local to the receiving component. */\n\tx: number;\n\ty: number;\n\t/** Absolute terminal coordinates. */\n\tscreenX: number;\n\tscreenY: number;\n\t/** Current component bounds. */\n\twidth: number;\n\theight: number;\n\tshift: boolean;\n\talt: boolean;\n\tctrl: boolean;\n\t/** Logical lines. Negative values scroll up. */\n\twheelDelta?: number;\n\t/** Consecutive click count when type is click. */\n\tclickCount?: number;\n}\n\nexport interface TuiMouseEventResult {\n\t/** Stop propagation and suppress renderer-level fallback behavior. */\n\thandled?: boolean;\n\t/** Route subsequent drag/release events to this component. Implies handled. */\n\tcapture?: boolean;\n\t/** Give keyboard focus to this component. Implies handled. */\n\tfocus?: boolean;\n\t/**\n\t * Explicitly request or suppress a render. Move and release default to false;\n\t * press, click, drag, and wheel default to true.\n\t */\n\trender?: boolean;\n}\n\n/** Internal target metadata used by containers and alternate-screen dispatch. */\nexport interface TuiMouseDispatchTarget {\n\tcomponent: Component;\n\toriginX: number;\n\toriginY: number;\n\twidth: number;\n\theight: number;\n}\n\n/** Result of dispatching to a concrete component. */\nexport interface TuiMouseDispatchResult extends TuiMouseEventResult {\n\thandled: true;\n\ttarget: TuiMouseDispatchTarget;\n\t/** Keyboard focus target, which may be a delegating parent container. */\n\tfocusTarget?: Component;\n}\n\n/**\n * Dispatch an event to a component and retain the exact target and coordinate\n * transform. Containers use this when forwarding events to nested children.\n */\nexport function dispatchMouseEvent(component: Component, event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\tconst result = component.handleMouse?.(event);\n\tif (!result) return undefined;\n\tif (\"target\" in result) return result as TuiMouseDispatchResult;\n\tif (!result.handled && !result.capture && !result.focus) return undefined;\n\treturn {\n\t\t...result,\n\t\thandled: true,\n\t\t...(result.focus ? { focusTarget: component } : {}),\n\t\ttarget: {\n\t\t\tcomponent,\n\t\t\toriginX: event.screenX - event.x,\n\t\t\toriginY: event.screenY - event.y,\n\t\t\twidth: event.width,\n\t\t\theight: event.height,\n\t\t},\n\t};\n}\n\n/** Recreate local coordinates for a previously dispatched mouse target. */\nexport function retargetMouseEvent(event: TuiMouseEvent, target: TuiMouseDispatchTarget): TuiMouseEvent {\n\treturn {\n\t\t...event,\n\t\tx: event.screenX - target.originX,\n\t\ty: event.screenY - target.originY,\n\t\twidth: target.width,\n\t\theight: target.height,\n\t};\n}\n\nexport interface Component {\n\t/**\n\t * Render the component to lines for the given viewport width\n\t * @param width - Current viewport width\n\t * @returns Array of strings, each representing a line\n\t */\n\trender(width: number): string[];\n\n\t/** Optional handler for keyboard input when component has focus. */\n\thandleInput?(data: string): void;\n\n\t/** Optional normalized mouse handler. */\n\thandleMouse?(event: TuiMouseEvent): TuiMouseEventResult | undefined;\n\n\t/**\n\t * If true, component receives key release events (Kitty protocol).\n\t * Default is false - release events are filtered out.\n\t */\n\twantsKeyRelease?: boolean;\n\n\t/**\n\t * Invalidate any cached rendering state.\n\t * Called when theme changes or when component needs to re-render from scratch.\n\t */\n\tinvalidate(): void;\n}\n\nexport type TuiInputListenerResult = { consume?: boolean; data?: string } | undefined;\nexport type TuiInputListener = (data: string) => TuiInputListenerResult;\ntype PendingOsc11BackgroundQuery = {\n\tsettled: boolean;\n\tresolve: ((rgb: RgbColor | undefined) => void) | undefined;\n\ttimer: NodeJS.Timeout | undefined;\n};\n\n/**\n * Interface for components that can receive focus and display a hardware cursor.\n * When focused, the component should emit CURSOR_MARKER at the cursor position\n * in its render output. TUI will find this marker and position the hardware\n * cursor there for proper IME candidate window positioning.\n */\nexport interface Focusable {\n\t/** Set by TUI when focus changes. Component should emit CURSOR_MARKER when true. */\n\tfocused: boolean;\n}\n\n/** Type guard to check if a component implements Focusable */\nexport function isFocusable(component: Component | null): component is Component & Focusable {\n\treturn component !== null && \"focused\" in component;\n}\n\n/**\n * Cursor position marker - APC (Application Program Command) sequence.\n * This is a zero-width escape sequence that terminals ignore.\n * Components emit this at the cursor position when focused.\n * TUI finds and strips this marker, then positions the hardware cursor there.\n */\nexport const CURSOR_MARKER = \"\\x1b_pi:c\\x07\";\n\nexport { visibleWidth };\n\n/**\n * Anchor position for overlays\n */\nexport type OverlayAnchor =\n\t| \"center\"\n\t| \"top-left\"\n\t| \"top-right\"\n\t| \"bottom-left\"\n\t| \"bottom-right\"\n\t| \"top-center\"\n\t| \"bottom-center\"\n\t| \"left-center\"\n\t| \"right-center\";\n\n/**\n * Margin configuration for overlays\n */\nexport interface OverlayMargin {\n\ttop?: number;\n\tright?: number;\n\tbottom?: number;\n\tleft?: number;\n}\n\n/** Value that can be absolute (number) or percentage (string like \"50%\") */\nexport type SizeValue = number | `${number}%`;\n\n/** Parse a SizeValue into absolute value given a reference size */\nfunction parseSizeValue(value: SizeValue | undefined, referenceSize: number): number | undefined {\n\tif (value === undefined) return undefined;\n\tif (typeof value === \"number\") return value;\n\t// Parse percentage string like \"50%\"\n\tconst match = value.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\tif (match) {\n\t\treturn Math.floor((referenceSize * parseFloat(match[1])) / 100);\n\t}\n\treturn undefined;\n}\n\n/**\n * Options for overlay positioning and sizing.\n * Values can be absolute numbers or percentage strings (e.g., \"50%\").\n */\nexport interface OverlayOptions {\n\t// === Sizing ===\n\t/** Width in columns, or percentage of terminal width (e.g., \"50%\") */\n\twidth?: SizeValue;\n\t/** Minimum width in columns */\n\tminWidth?: number;\n\t/** Maximum height in rows, or percentage of terminal height (e.g., \"50%\") */\n\tmaxHeight?: SizeValue;\n\n\t// === Positioning - anchor-based ===\n\t/** Anchor point for positioning (default: 'center') */\n\tanchor?: OverlayAnchor;\n\t/** Horizontal offset from anchor position (positive = right) */\n\toffsetX?: number;\n\t/** Vertical offset from anchor position (positive = down) */\n\toffsetY?: number;\n\n\t// === Positioning - percentage or absolute ===\n\t/** Row position: absolute number, or percentage (e.g., \"25%\" = 25% from top) */\n\trow?: SizeValue;\n\t/** Column position: absolute number, or percentage (e.g., \"50%\" = centered horizontally) */\n\tcol?: SizeValue;\n\n\t// === Margin from terminal edges ===\n\t/** Margin from terminal edges. Number applies to all sides. */\n\tmargin?: OverlayMargin | number;\n\n\t// === Visibility ===\n\t/**\n\t * Control overlay visibility based on terminal dimensions.\n\t * If provided, overlay is only rendered when this returns true.\n\t * Called each render cycle with current terminal dimensions.\n\t */\n\tvisible?: (termWidth: number, termHeight: number) => boolean;\n\t/** If true, don't capture keyboard focus when shown */\n\tnonCapturing?: boolean;\n}\n\n/** Options for {@link OverlayHandle.unfocus}. */\nexport interface OverlayUnfocusOptions {\n\t/** Explicit target to focus after releasing this overlay. */\n\ttarget: Component | null;\n}\n\n/** Last rendered terminal-relative overlay rectangle. */\nexport interface OverlayBounds {\n\trow: number;\n\tcol: number;\n\twidth: number;\n\theight: number;\n}\n\n/**\n * Handle returned by showOverlay for controlling the overlay\n */\nexport interface OverlayHandle {\n\t/** Permanently remove the overlay (cannot be shown again) */\n\thide(): void;\n\t/** Temporarily hide or show the overlay */\n\tsetHidden(hidden: boolean): void;\n\t/** Check if overlay is temporarily hidden */\n\tisHidden(): boolean;\n\t/** Focus this overlay and bring it to the visual front */\n\tfocus(): void;\n\t/** Release focus to the next visible capturing overlay or previous target, or to an explicit target when provided */\n\tunfocus(options?: OverlayUnfocusOptions): void;\n\t/** Check if this overlay currently has focus */\n\tisFocused(): boolean;\n\t/** Get the most recent rendered bounds for a visible overlay. */\n\tgetBounds(): OverlayBounds | undefined;\n}\n\ntype OverlayStackEntry = {\n\tcomponent: Component;\n\toptions?: OverlayOptions;\n\tpreFocus: Component | null;\n\thidden: boolean;\n\tfocusOrder: number;\n\tbounds?: OverlayBounds;\n};\n\ntype RenderedOverlayLayout = {\n\tentry: OverlayStackEntry;\n\trow: number;\n\tcol: number;\n\twidth: number;\n\theight: number;\n};\n\ntype OverlayBlockedFocusResume = { status: \"restore-overlay\" } | { status: \"focus-target\"; target: Component | null };\ntype EligibleOverlayFocusRestoreState = { status: \"eligible\"; overlay: OverlayStackEntry };\ntype BlockedOverlayFocusRestoreState = {\n\tstatus: \"blocked\";\n\toverlay: OverlayStackEntry;\n\tblockedBy: Component;\n\tresume: OverlayBlockedFocusResume;\n};\ntype ActiveOverlayFocusRestoreState = EligibleOverlayFocusRestoreState | BlockedOverlayFocusRestoreState;\ntype OverlayFocusRestoreState = { status: \"inactive\" } | ActiveOverlayFocusRestoreState;\ntype OverlayFocusRestorePolicy = \"clear\" | \"preserve\";\n\nconst layoutParents = new WeakMap<Component, Container>();\n\n/**\n * Walk exact-container ancestors so height indexes rebuild after structural or content changes.\n * Last-child invalidation does not bump: layout already remeasures the last child in place,\n * and bumping would force a full scan on the streaming-append path.\n */\nexport function bumpLayoutAncestors(component: Component): void {\n\tlet current: Component = component;\n\tlet parent = layoutParents.get(current);\n\twhile (parent) {\n\t\tif (parent.children[parent.children.length - 1] !== current) {\n\t\t\tparent.layoutGeneration++;\n\t\t}\n\t\tcurrent = parent;\n\t\tparent = layoutParents.get(parent);\n\t}\n}\n\n/**\n * Container - a component that contains other components\n */\nexport class Container implements Component {\n\tchildren: Component[] = [];\n\tprivate mouseLayout?: { width: number; children: Array<{ component: Component; height: number }> };\n\tlayoutGeneration = 0;\n\n\taddChild(component: Component): void {\n\t\tthis.children.push(component);\n\t\tlayoutParents.set(component, this);\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\tremoveChild(component: Component): void {\n\t\tconst index = this.children.indexOf(component);\n\t\tif (index !== -1) {\n\t\t\tthis.children.splice(index, 1);\n\t\t\tlayoutParents.delete(component);\n\t\t\tthis.layoutGeneration++;\n\t\t\tbumpLayoutAncestors(this);\n\t\t}\n\t}\n\n\tclear(): void {\n\t\tfor (const child of this.children) layoutParents.delete(child);\n\t\tthis.children = [];\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\tinvalidate(): void {\n\t\tthis.layoutGeneration++;\n\t\tbumpLayoutAncestors(this);\n\t\tfor (const child of this.children) {\n\t\t\tchild.invalidate?.();\n\t\t}\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\t\tif (event.y < 0 || event.y >= event.height) return undefined;\n\t\tconst mouseChildren =\n\t\t\tthis.mouseLayout?.width === event.width\n\t\t\t\t? this.mouseLayout.children\n\t\t\t\t: this.children.map((component) => ({ component, height: component.render(event.width).length }));\n\t\tlet childY = 0;\n\t\tfor (const { component: child, height: childHeight } of mouseChildren) {\n\t\t\tif (event.y >= childY && event.y < childY + childHeight) {\n\t\t\t\tconst result = dispatchMouseEvent(child, {\n\t\t\t\t\t...event,\n\t\t\t\t\ty: event.y - childY,\n\t\t\t\t\theight: childHeight,\n\t\t\t\t});\n\t\t\t\tif (result?.focus && (this as Component).handleInput) return { ...result, focusTarget: this };\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tchildY += childHeight;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst mouseChildren: Array<{ component: Component; height: number }> = [];\n\t\tfor (const child of this.children) {\n\t\t\tconst childLines = child.render(width);\n\t\t\tmouseChildren.push({ component: child, height: childLines.length });\n\t\t\tfor (const line of childLines) {\n\t\t\t\tlines.push(line);\n\t\t\t}\n\t\t}\n\t\tthis.mouseLayout = { width, children: mouseChildren };\n\t\treturn lines;\n\t}\n}\n\n/**\n * TUI - Main class for managing terminal UI with differential rendering\n */\n/**\n * Style reset written at the end of every rendered segment.\n *\n * The OSC 8 close is only appended on terminals we have positively identified\n * as hyperlink-capable. It used to go out unconditionally, which meant a\n * terminal our own capability probe had already marked `hyperlinks: false` —\n * macOS Terminal.app among them — received one OSC 8 per line, tens of\n * thousands of them in a full redraw of a long transcript, none of which ever\n * opened a link. Terminal.app 2.15 died two different ways under that load:\n * a malloc SIGTRAP during realloc, and a null CFString while drawing.\n */\nfunction segmentReset(): string {\n\treturn getCapabilities().hyperlinks ? \"\\x1b[0m\\x1b]8;;\\x07\" : \"\\x1b[0m\";\n}\n\n/** Composite overlay content into a terminal line at a fixed column. */\nexport function compositeTuiLine(\n\tbaseLine: string,\n\toverlayLine: string,\n\tstartCol: number,\n\toverlayWidth: number,\n\ttotalWidth: number,\n): string {\n\tif (isImageLine(baseLine)) return baseLine;\n\n\tconst afterStart = startCol + overlayWidth;\n\tconst base = extractSegments(baseLine, startCol, afterStart, totalWidth - afterStart, true);\n\tconst overlay = sliceWithWidth(overlayLine, 0, overlayWidth, true);\n\tconst beforePad = Math.max(0, startCol - base.beforeWidth);\n\tconst overlayPad = Math.max(0, overlayWidth - overlay.width);\n\tconst actualBeforeWidth = Math.max(startCol, base.beforeWidth);\n\tconst actualOverlayWidth = Math.max(overlayWidth, overlay.width);\n\tconst afterTarget = Math.max(0, totalWidth - actualBeforeWidth - actualOverlayWidth);\n\tconst afterPad = Math.max(0, afterTarget - base.afterWidth);\n\tconst result =\n\t\tbase.before +\n\t\t\" \".repeat(beforePad) +\n\t\tsegmentReset() +\n\t\toverlay.text +\n\t\t\" \".repeat(overlayPad) +\n\t\tsegmentReset() +\n\t\tbase.after +\n\t\t\" \".repeat(afterPad);\n\n\treturn visibleWidth(result) <= totalWidth ? result : sliceByColumn(result, 0, totalWidth, true);\n}\n\nexport type TuiMode = \"regular\" | \"fullscreen\";\n\nexport interface TuiStopOptions {\n\t/** Leave renderer output in place for another TUI taking over the same terminal. */\n\tpreserveScreen?: boolean;\n}\n\nexport interface TUI extends Component {\n\treadonly mode: TuiMode;\n\tchildren: Component[];\n\tterminal: Terminal;\n\tonDebug?: () => void;\n\treadonly fullRedraws: number;\n\taddChild(component: Component): void;\n\tremoveChild(component: Component): void;\n\tclear(): void;\n\tgetShowHardwareCursor(): boolean;\n\tsetShowHardwareCursor(enabled: boolean): void;\n\tgetClearOnShrink(): boolean;\n\tsetClearOnShrink(enabled: boolean): void;\n\tsetFocus(component: Component | null): void;\n\tshowOverlay(component: Component, options?: OverlayOptions): OverlayHandle;\n\thideOverlay(): void;\n\thasOverlay(): boolean;\n\tstart(): void;\n\tstop(options?: TuiStopOptions): void;\n\trenderNow(force?: boolean): void;\n\trequestRender(force?: boolean): void;\n\taddInputListener(listener: TuiInputListener): () => void;\n\tremoveInputListener(listener: TuiInputListener): void;\n\tonTerminalColorSchemeChange(listener: (scheme: TerminalColorScheme) => void): () => void;\n\tsetTerminalColorSchemeNotifications(enabled: boolean): void;\n\tqueryTerminalBackgroundColor(options: { timeoutMs: number }): Promise<RgbColor | undefined>;\n\tqueryTerminalColorScheme(options: { timeoutMs: number }): Promise<TerminalColorScheme | undefined>;\n}\n\nexport const VIEWPORT_TUI = Symbol.for(\"@earendil-works/pi-tui/viewport\");\n\nexport interface ViewportTUI extends TUI {\n\treadonly [VIEWPORT_TUI]: true;\n\tsetLayoutRoot(component: Component | undefined): void;\n}\n\nexport function isViewportTUI(tui: TUI): tui is ViewportTUI {\n\treturn (tui as Partial<ViewportTUI>)[VIEWPORT_TUI] === true;\n}\n\nexport abstract class TuiBase extends Container implements TUI {\n\tabstract readonly mode: TuiMode;\n\tpublic terminal: Terminal;\n\tprivate focusedComponent: Component | null = null;\n\tprivate inputListeners = new Set<TuiInputListener>();\n\n\t/** Global callback for debug key (Shift+Ctrl+D). Called before input is forwarded to focused component. */\n\tpublic onDebug?: () => void;\n\tprivate renderRequested = false;\n\tprivate immediateRenderScheduled = false;\n\tprivate renderTimer: NodeJS.Timeout | undefined;\n\tprivate lastRenderAt = 0;\n\tprivate static readonly MIN_RENDER_INTERVAL_MS = 16;\n\tprivate readonly frameStatsEnabled = process.env.DAL_FRAME_STATS === \"1\";\n\tprivate readonly frameDurations: number[] = [];\n\tprivate frameStatsWrite = 0;\n\tprivate static readonly FRAME_STATS_CAP = 256;\n\tprivate showHardwareCursor = process.env.PI_HARDWARE_CURSOR === \"1\";\n\tprivate clearOnShrink = process.env.PI_CLEAR_ON_SHRINK === \"1\";\n\tprotected fullRedrawCount = 0;\n\tprotected stopped = false;\n\tprivate pendingOsc11BackgroundReplies = 0;\n\tprivate pendingOsc11BackgroundQueries: PendingOsc11BackgroundQuery[] = [];\n\tprivate terminalColorSchemeListeners = new Set<(scheme: TerminalColorScheme) => void>();\n\tprivate terminalColorSchemeNotificationsEnabled = false;\n\t/** Directory for debug/crash logs. When undefined, debug logging is disabled and crash dumps fall back to the OS temp directory. */\n\tprotected readonly logDirectory: string | undefined;\n\n\t// Overlay stack for modal components rendered on top of base content\n\tprivate focusOrderCounter = 0;\n\tprivate overlayStack: OverlayStackEntry[] = [];\n\tprivate renderedOverlayLayouts: RenderedOverlayLayout[] = [];\n\n\tget hasOverlayEntries(): boolean {\n\t\treturn this.overlayStack.length > 0;\n\t}\n\tprivate overlayFocusRestore: OverlayFocusRestoreState = { status: \"inactive\" };\n\n\tconstructor(terminal: Terminal, showHardwareCursor?: boolean, logDirectory?: string) {\n\t\tsuper();\n\t\tthis.terminal = terminal;\n\t\tthis.logDirectory = logDirectory;\n\t\tif (showHardwareCursor !== undefined) {\n\t\t\tthis.showHardwareCursor = showHardwareCursor;\n\t\t}\n\t}\n\n\tprotected abstract doRender(): void;\n\n\tprotected resetRenderState(): void {}\n\n\tprotected beforeTerminalStart(): void {}\n\n\tprotected afterTerminalStart(): void {}\n\n\tprotected beforeTerminalStop(_options: TuiStopOptions): void {}\n\n\tprotected afterTerminalStop(_options: TuiStopOptions): void {}\n\n\tget fullRedraws(): number {\n\t\treturn this.fullRedrawCount;\n\t}\n\n\tgetShowHardwareCursor(): boolean {\n\t\treturn this.showHardwareCursor;\n\t}\n\n\tsetShowHardwareCursor(enabled: boolean): void {\n\t\tif (this.showHardwareCursor === enabled) return;\n\t\tthis.showHardwareCursor = enabled;\n\t\tif (!enabled) {\n\t\t\tthis.terminal.hideCursor();\n\t\t}\n\t\tthis.requestRender();\n\t}\n\n\tgetClearOnShrink(): boolean {\n\t\treturn this.clearOnShrink;\n\t}\n\n\t/**\n\t * Set whether to trigger full re-render when content shrinks.\n\t * When true, empty rows are cleared when content shrinks.\n\t * When false (default), empty rows remain (reduces redraws on slower terminals).\n\t */\n\tsetClearOnShrink(enabled: boolean): void {\n\t\tthis.clearOnShrink = enabled;\n\t}\n\n\tgetFocusedComponent(): Component | null {\n\t\treturn this.focusedComponent;\n\t}\n\n\tsetFocus(component: Component | null): void {\n\t\tthis.setFocusInternal({ component, overlayFocusRestore: \"clear\" });\n\t}\n\n\tprivate setFocusInternal({\n\t\tcomponent,\n\t\toverlayFocusRestore,\n\t}: {\n\t\tcomponent: Component | null;\n\t\toverlayFocusRestore: OverlayFocusRestorePolicy;\n\t}): void {\n\t\tconst previousFocus = this.focusedComponent;\n\t\tlet nextFocus = component;\n\t\tconst previousFocusedOverlay = previousFocus\n\t\t\t? this.overlayStack.find((entry) => entry.component === previousFocus && this.isOverlayVisible(entry))\n\t\t\t: undefined;\n\t\tconst nextFocusIsOverlay = nextFocus ? this.overlayStack.some((entry) => entry.component === nextFocus) : false;\n\t\tconst restoreState = this.getVisibleOverlayFocusRestore();\n\t\tif (nextFocus && !nextFocusIsOverlay) {\n\t\t\tif (restoreState.status === \"blocked\" && restoreState.blockedBy === previousFocus) {\n\t\t\t\tif (restoreState.resume.status === \"focus-target\" || !this.isComponentMounted(restoreState.blockedBy)) {\n\t\t\t\t\tnextFocus = this.resolveBlockedOverlayFocusResume(restoreState);\n\t\t\t\t} else {\n\t\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\t\toverlay: restoreState.overlay,\n\t\t\t\t\t\tblockedBy: nextFocus,\n\t\t\t\t\t\tresume: restoreState.resume,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else if (\n\t\t\t\tpreviousFocusedOverlay &&\n\t\t\t\trestoreState.status !== \"inactive\" &&\n\t\t\t\trestoreState.overlay === previousFocusedOverlay &&\n\t\t\t\t!this.isOverlayFocusAncestor(previousFocusedOverlay, nextFocus)\n\t\t\t) {\n\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\toverlay: previousFocusedOverlay,\n\t\t\t\t\tblockedBy: nextFocus,\n\t\t\t\t\tresume: { status: \"restore-overlay\" },\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (nextFocus === null) {\n\t\t\tif (restoreState.status === \"blocked\" && restoreState.blockedBy === previousFocus) {\n\t\t\t\tnextFocus = this.resolveBlockedOverlayFocusResume(restoreState);\n\t\t\t} else if (overlayFocusRestore === \"clear\") {\n\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t}\n\t\t}\n\n\t\tif (isFocusable(this.focusedComponent)) {\n\t\t\tthis.focusedComponent.focused = false;\n\t\t}\n\n\t\tthis.focusedComponent = nextFocus;\n\n\t\tif (isFocusable(nextFocus)) {\n\t\t\tnextFocus.focused = true;\n\t\t}\n\n\t\tconst focusedOverlay = nextFocus\n\t\t\t? this.overlayStack.find((entry) => entry.component === nextFocus && this.isOverlayVisible(entry))\n\t\t\t: undefined;\n\t\tif (focusedOverlay) {\n\t\t\tthis.overlayFocusRestore = { status: \"eligible\", overlay: focusedOverlay };\n\t\t}\n\t}\n\n\tprivate clearOverlayFocusRestore(): void {\n\t\tthis.overlayFocusRestore = { status: \"inactive\" };\n\t}\n\n\tprivate clearOverlayFocusRestoreFor(overlay: OverlayStackEntry): void {\n\t\tif (this.overlayFocusRestore.status !== \"inactive\" && this.overlayFocusRestore.overlay === overlay) {\n\t\t\tthis.clearOverlayFocusRestore();\n\t\t}\n\t}\n\n\tprivate resolveBlockedOverlayFocusResume(restoreState: BlockedOverlayFocusRestoreState): Component | null {\n\t\tif (restoreState.resume.status === \"restore-overlay\") return restoreState.overlay.component;\n\t\tthis.clearOverlayFocusRestore();\n\t\treturn restoreState.resume.target;\n\t}\n\n\tprivate getVisibleOverlayFocusRestore(): OverlayFocusRestoreState {\n\t\tconst restoreState = this.overlayFocusRestore;\n\t\tif (restoreState.status === \"inactive\") return restoreState;\n\t\tif (!this.overlayStack.includes(restoreState.overlay) || !this.isOverlayVisible(restoreState.overlay)) {\n\t\t\treturn { status: \"inactive\" };\n\t\t}\n\t\treturn restoreState;\n\t}\n\n\tprivate isOverlayFocusAncestor(entry: OverlayStackEntry, component: Component): boolean {\n\t\tconst visited = new Set<Component>();\n\t\tlet current = entry.preFocus;\n\t\twhile (current && !visited.has(current)) {\n\t\t\tvisited.add(current);\n\t\t\tif (current === component) return true;\n\t\t\tcurrent = this.overlayStack.find((overlay) => overlay.component === current)?.preFocus ?? null;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate retargetOverlayPreFocus(removed: OverlayStackEntry): void {\n\t\tfor (const overlay of this.overlayStack) {\n\t\t\tif (overlay !== removed && overlay.preFocus === removed.component) {\n\t\t\t\toverlay.preFocus = removed.preFocus;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getMountedRoots(): readonly Component[] {\n\t\treturn this.children;\n\t}\n\n\tprivate isComponentMounted(component: Component): boolean {\n\t\treturn this.getMountedRoots().some((child) => this.containsComponent(child, component));\n\t}\n\n\tprivate containsComponent(root: Component, target: Component): boolean {\n\t\tif (root === target) return true;\n\t\tif (!(root instanceof Container)) return false;\n\t\treturn root.children.some((child) => this.containsComponent(child, target));\n\t}\n\n\t/**\n\t * Show an overlay component with configurable positioning and sizing.\n\t * Returns a handle to control the overlay's visibility.\n\t */\n\tshowOverlay(component: Component, options?: OverlayOptions): OverlayHandle {\n\t\tconst entry: OverlayStackEntry = {\n\t\t\tcomponent,\n\t\t\t...(options === undefined ? {} : { options }),\n\t\t\tpreFocus: this.focusedComponent,\n\t\t\thidden: false,\n\t\t\tfocusOrder: ++this.focusOrderCounter,\n\t\t};\n\t\tthis.overlayStack.push(entry);\n\t\t// Only focus if overlay is actually visible\n\t\tif (!options?.nonCapturing && this.isOverlayVisible(entry)) {\n\t\t\tthis.setFocus(component);\n\t\t}\n\t\tthis.terminal.hideCursor();\n\t\tthis.requestRender();\n\n\t\t// Return handle for controlling this overlay\n\t\treturn {\n\t\t\thide: () => {\n\t\t\t\tconst index = this.overlayStack.indexOf(entry);\n\t\t\t\tif (index !== -1) {\n\t\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\t\tthis.retargetOverlayPreFocus(entry);\n\t\t\t\t\tthis.overlayStack.splice(index, 1);\n\t\t\t\t\t// Restore focus if this overlay had focus\n\t\t\t\t\tif (this.focusedComponent === component) {\n\t\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\t\tthis.setFocus(topVisible?.component ?? entry.preFocus);\n\t\t\t\t\t}\n\t\t\t\t\tif (this.overlayStack.length === 0) this.terminal.hideCursor();\n\t\t\t\t\tthis.requestRender();\n\t\t\t\t}\n\t\t\t},\n\t\t\tsetHidden: (hidden: boolean) => {\n\t\t\t\tif (entry.hidden === hidden) return;\n\t\t\t\tentry.hidden = hidden;\n\t\t\t\t// Update focus when hiding/showing\n\t\t\t\tif (hidden) {\n\t\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\t\t// If this overlay had focus, move focus to next visible or preFocus\n\t\t\t\t\tif (this.focusedComponent === component) {\n\t\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\t\tthis.setFocus(topVisible?.component ?? entry.preFocus);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Restore focus to this overlay when showing (if it's actually visible)\n\t\t\t\t\tif (!options?.nonCapturing && this.isOverlayVisible(entry)) {\n\t\t\t\t\t\tentry.focusOrder = ++this.focusOrderCounter;\n\t\t\t\t\t\tthis.setFocus(component);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tisHidden: () => entry.hidden,\n\t\t\tfocus: () => {\n\t\t\t\tif (!this.overlayStack.includes(entry) || !this.isOverlayVisible(entry)) return;\n\t\t\t\tentry.focusOrder = ++this.focusOrderCounter;\n\t\t\t\tthis.setFocus(component);\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tunfocus: (unfocusOptions) => {\n\t\t\t\tconst isFocused = this.focusedComponent === component;\n\t\t\t\tconst restoreState = this.overlayFocusRestore;\n\t\t\t\tconst hasPendingRestore = restoreState.status !== \"inactive\" && restoreState.overlay === entry;\n\t\t\t\tif (!isFocused && !hasPendingRestore) return;\n\t\t\t\tif (\n\t\t\t\t\trestoreState.status === \"blocked\" &&\n\t\t\t\t\trestoreState.overlay === entry &&\n\t\t\t\t\tthis.focusedComponent === restoreState.blockedBy\n\t\t\t\t) {\n\t\t\t\t\tif (unfocusOptions) {\n\t\t\t\t\t\tthis.overlayFocusRestore = {\n\t\t\t\t\t\t\tstatus: \"blocked\",\n\t\t\t\t\t\t\toverlay: entry,\n\t\t\t\t\t\t\tblockedBy: restoreState.blockedBy,\n\t\t\t\t\t\t\tresume: { status: \"focus-target\", target: unfocusOptions.target },\n\t\t\t\t\t\t};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t\t\t}\n\t\t\t\t\tthis.requestRender();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.clearOverlayFocusRestoreFor(entry);\n\t\t\t\tif (isFocused || unfocusOptions) {\n\t\t\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\t\t\tconst fallbackTarget = topVisible && topVisible !== entry ? topVisible.component : entry.preFocus;\n\t\t\t\t\tthis.setFocus(unfocusOptions ? unfocusOptions.target : fallbackTarget);\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t},\n\t\t\tisFocused: () => this.focusedComponent === component,\n\t\t\tgetBounds: () => {\n\t\t\t\tif (!this.overlayStack.includes(entry) || !this.isOverlayVisible(entry) || !entry.bounds) return undefined;\n\t\t\t\treturn { ...entry.bounds };\n\t\t\t},\n\t\t};\n\t}\n\n\t/** Hide the topmost overlay and restore previous focus. */\n\thideOverlay(): void {\n\t\tconst overlay = this.overlayStack[this.overlayStack.length - 1];\n\t\tif (!overlay) return;\n\t\tthis.clearOverlayFocusRestoreFor(overlay);\n\t\tthis.retargetOverlayPreFocus(overlay);\n\t\tthis.overlayStack.pop();\n\t\tif (this.focusedComponent === overlay.component) {\n\t\t\t// Find topmost visible overlay, or fall back to preFocus\n\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\tthis.setFocus(topVisible?.component ?? overlay.preFocus);\n\t\t}\n\t\tif (this.overlayStack.length === 0) this.terminal.hideCursor();\n\t\tthis.requestRender();\n\t}\n\n\t/** Check if there are any visible overlays */\n\thasOverlay(): boolean {\n\t\treturn this.overlayStack.some((o) => this.isOverlayVisible(o));\n\t}\n\n\t/** Check if the focused component is a visible overlay */\n\tprotected isOverlayFocused(): boolean {\n\t\treturn this.overlayStack.some(\n\t\t\t(entry) => entry.component === this.focusedComponent && this.isOverlayVisible(entry),\n\t\t);\n\t}\n\n\t/** Keep overlay containers as keyboard focus owners when a nested control is clicked. */\n\tprotected resolveMouseFocusTarget(component: Component): Component {\n\t\tfor (let index = this.overlayStack.length - 1; index >= 0; index--) {\n\t\t\tconst overlay = this.overlayStack[index]!;\n\t\t\tif (this.isOverlayVisible(overlay) && this.containsComponent(overlay.component, component)) {\n\t\t\t\treturn overlay.component;\n\t\t\t}\n\t\t}\n\t\treturn component;\n\t}\n\n\t/** Dispatch to the visually topmost overlay under the pointer. */\n\tprotected dispatchMouseToOverlay(event: TuiMouseEvent): { hit: boolean; result?: TuiMouseDispatchResult } {\n\t\tfor (let index = this.renderedOverlayLayouts.length - 1; index >= 0; index--) {\n\t\t\tconst layout = this.renderedOverlayLayouts[index]!;\n\t\t\tif (\n\t\t\t\tevent.screenX < layout.col ||\n\t\t\t\tevent.screenX >= layout.col + layout.width ||\n\t\t\t\tevent.screenY < layout.row ||\n\t\t\t\tevent.screenY >= layout.row + layout.height\n\t\t\t) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst result = dispatchMouseEvent(layout.entry.component, {\n\t\t\t\t...event,\n\t\t\t\tx: event.screenX - layout.col,\n\t\t\t\ty: event.screenY - layout.row,\n\t\t\t\twidth: layout.width,\n\t\t\t\theight: layout.height,\n\t\t\t});\n\t\t\treturn result\n\t\t\t\t? {\n\t\t\t\t\t\thit: true,\n\t\t\t\t\t\tresult: result.focus ? { ...result, focusTarget: layout.entry.component } : result,\n\t\t\t\t\t}\n\t\t\t\t: { hit: true };\n\t\t}\n\t\treturn { hit: false };\n\t}\n\n\t/** Check if an overlay entry is currently visible */\n\tprivate isOverlayVisible(entry: OverlayStackEntry): boolean {\n\t\tif (entry.hidden) return false;\n\t\tif (entry.options?.visible) {\n\t\t\treturn entry.options.visible(this.terminal.columns, this.terminal.rows);\n\t\t}\n\t\treturn true;\n\t}\n\n\t/** Find the visual-frontmost visible capturing overlay, if any */\n\tprivate getTopmostVisibleOverlay(): OverlayStackEntry | undefined {\n\t\tlet topmost: OverlayStackEntry | undefined;\n\t\tfor (const overlay of this.overlayStack) {\n\t\t\tif (overlay.options?.nonCapturing || !this.isOverlayVisible(overlay)) continue;\n\t\t\tif (!topmost || overlay.focusOrder > topmost.focusOrder) {\n\t\t\t\ttopmost = overlay;\n\t\t\t}\n\t\t}\n\t\treturn topmost;\n\t}\n\n\toverride invalidate(): void {\n\t\tfor (const root of this.getMountedRoots()) root.invalidate();\n\t\tfor (const overlay of this.overlayStack) overlay.component.invalidate();\n\t}\n\n\tstart(): void {\n\t\tthis.stopped = false;\n\t\tthis.beforeTerminalStart();\n\t\tthis.terminal.start(\n\t\t\t(data) => this.handleTerminalInput(data),\n\t\t\t() => this.requestRender(),\n\t\t);\n\t\tthis.afterTerminalStart();\n\t\tthis.terminal.hideCursor();\n\t\tif (this.terminalColorSchemeNotificationsEnabled) {\n\t\t\tthis.terminal.write(\"\\x1b[?2031h\");\n\t\t}\n\t\tthis.queryCellSize();\n\t\tthis.requestRender();\n\t}\n\n\taddInputListener(listener: TuiInputListener): () => void {\n\t\tthis.inputListeners.add(listener);\n\t\treturn () => {\n\t\t\tthis.inputListeners.delete(listener);\n\t\t};\n\t}\n\n\tremoveInputListener(listener: TuiInputListener): void {\n\t\tthis.inputListeners.delete(listener);\n\t}\n\n\tonTerminalColorSchemeChange(listener: (scheme: TerminalColorScheme) => void): () => void {\n\t\tthis.terminalColorSchemeListeners.add(listener);\n\t\treturn () => {\n\t\t\tthis.terminalColorSchemeListeners.delete(listener);\n\t\t};\n\t}\n\n\tsetTerminalColorSchemeNotifications(enabled: boolean): void {\n\t\tif (this.terminalColorSchemeNotificationsEnabled === enabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.terminalColorSchemeNotificationsEnabled = enabled;\n\t\tif (!this.stopped) {\n\t\t\tthis.terminal.write(enabled ? \"\\x1b[?2031h\" : \"\\x1b[?2031l\");\n\t\t}\n\t}\n\n\tprivate queryCellSize(): void {\n\t\t// Only query if terminal supports images (cell size is only used for image rendering)\n\t\tif (!getCapabilities().images) {\n\t\t\treturn;\n\t\t}\n\t\t// Query terminal for cell size in pixels: CSI 16 t\n\t\t// Response format: CSI 6 ; height ; width t\n\t\tthis.terminal.write(\"\\x1b[16t\");\n\t}\n\n\tstop(options: TuiStopOptions = {}): void {\n\t\tthis.flushFrameStats();\n\t\tthis.stopped = true;\n\t\tthis.cancelRenderTimer();\n\t\tif (this.terminalColorSchemeNotificationsEnabled) {\n\t\t\tthis.terminal.write(\"\\x1b[?2031l\");\n\t\t}\n\t\tthis.beforeTerminalStop(options);\n\t\tthis.terminal.showCursor();\n\t\tthis.terminal.stop();\n\t\tthis.afterTerminalStop(options);\n\t}\n\n\trenderNow(force = false): void {\n\t\tif (force) this.resetRenderState();\n\t\tthis.renderRequested = false;\n\t\tthis.cancelRenderTimer();\n\t\tthis.lastRenderAt = performance.now();\n\t\tthis.runDoRender();\n\t}\n\n\trequestRender(force = false): void {\n\t\tif (force) {\n\t\t\tthis.resetRenderState();\n\t\t\tthis.requestImmediateRender();\n\t\t\treturn;\n\t\t}\n\t\tif (this.renderRequested) return;\n\t\tthis.renderRequested = true;\n\t\tprocess.nextTick(() => this.scheduleRender());\n\t}\n\n\tprivate requestImmediateRender(): void {\n\t\tthis.cancelRenderTimer();\n\t\tthis.renderRequested = true;\n\t\tif (this.immediateRenderScheduled) return;\n\t\tthis.immediateRenderScheduled = true;\n\t\tprocess.nextTick(() => {\n\t\t\tthis.immediateRenderScheduled = false;\n\t\t\tif (this.stopped || !this.renderRequested) return;\n\t\t\t// A previously queued scheduleRender() can create a timer before this\n\t\t\t// callback runs. User input must preempt that throttled frame.\n\t\t\tthis.cancelRenderTimer();\n\t\t\tthis.renderRequested = false;\n\t\t\tthis.lastRenderAt = performance.now();\n\t\t\tthis.runDoRender();\n\t\t});\n\t}\n\n\tprivate cancelRenderTimer(): void {\n\t\tif (!this.renderTimer) return;\n\t\tclearTimeout(this.renderTimer);\n\t\tthis.renderTimer = undefined;\n\t}\n\n\tprivate runDoRender(): void {\n\t\tconst started = performance.now();\n\t\tthis.doRender();\n\t\tif (this.frameStatsEnabled) {\n\t\t\tconst duration = performance.now() - started;\n\t\t\tif (this.frameDurations.length < TuiBase.FRAME_STATS_CAP) {\n\t\t\t\tthis.frameDurations.push(duration);\n\t\t\t} else {\n\t\t\t\tthis.frameDurations[this.frameStatsWrite] = duration;\n\t\t\t\tthis.frameStatsWrite = (this.frameStatsWrite + 1) % TuiBase.FRAME_STATS_CAP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate flushFrameStats(): void {\n\t\tif (!this.frameStatsEnabled || this.frameDurations.length === 0) return;\n\t\tconst sorted = [...this.frameDurations].sort((left, right) => left - right);\n\t\tconst at = (fraction: number) => sorted[Math.min(sorted.length - 1, Math.floor(sorted.length * fraction))]!;\n\t\tconst term = (process.env.TERM ?? \"\").slice(0, 24);\n\t\tprocess.stderr.write(\n\t\t\t`tui_frame p50_ms=${at(0.5).toFixed(2)} p95_ms=${at(0.95).toFixed(2)} frames=${sorted.length} cols=${this.terminal.columns} rows=${this.terminal.rows} term=${term}\\n`,\n\t\t);\n\t}\n\n\tprivate scheduleRender(): void {\n\t\tif (this.stopped || this.renderTimer || !this.renderRequested) {\n\t\t\treturn;\n\t\t}\n\t\tconst elapsed = performance.now() - this.lastRenderAt;\n\t\tconst delay = Math.max(0, TuiBase.MIN_RENDER_INTERVAL_MS - elapsed);\n\t\tthis.renderTimer = setTimeout(() => {\n\t\t\tthis.renderTimer = undefined;\n\t\t\tif (this.stopped || !this.renderRequested) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.renderRequested = false;\n\t\t\tthis.lastRenderAt = performance.now();\n\t\t\tthis.runDoRender();\n\t\t\tif (this.renderRequested) {\n\t\t\t\tthis.scheduleRender();\n\t\t\t}\n\t\t}, delay);\n\t}\n\n\tprivate handleTerminalInput(data: string): void {\n\t\tif (this.consumeOsc11BackgroundResponse(data)) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.consumeTerminalColorSchemeReport(data)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.inputListeners.size > 0) {\n\t\t\tlet current = data;\n\t\t\tfor (const listener of this.inputListeners) {\n\t\t\t\tconst result = listener(current);\n\t\t\t\tif (result?.consume) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (result?.data !== undefined) {\n\t\t\t\t\tcurrent = result.data;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (current.length === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdata = current;\n\t\t}\n\n\t\t// Consume terminal cell size responses without blocking unrelated input.\n\t\tif (this.consumeCellSizeResponse(data)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Global debug key handler (Shift+Ctrl+D)\n\t\tif (matchesKey(data, \"shift+ctrl+d\") && this.onDebug) {\n\t\t\tthis.onDebug();\n\t\t\treturn;\n\t\t}\n\n\t\t// If focused component is an overlay, verify it's still visible\n\t\t// (visibility can change due to terminal resize or visible() callback)\n\t\tconst focusedOverlay = this.overlayStack.find((o) => o.component === this.focusedComponent);\n\t\tif (focusedOverlay && !this.isOverlayVisible(focusedOverlay)) {\n\t\t\t// Focused overlay is no longer visible, redirect to topmost visible overlay\n\t\t\tconst topVisible = this.getTopmostVisibleOverlay();\n\t\t\tif (topVisible) {\n\t\t\t\tthis.setFocus(topVisible.component);\n\t\t\t} else {\n\t\t\t\tthis.setFocusInternal({ component: focusedOverlay.preFocus, overlayFocusRestore: \"preserve\" });\n\t\t\t}\n\t\t}\n\n\t\tconst focusIsOverlay = this.overlayStack.some((o) => o.component === this.focusedComponent);\n\t\tif (!focusIsOverlay) {\n\t\t\tconst restoreState = this.getVisibleOverlayFocusRestore();\n\t\t\tif (restoreState.status === \"eligible\") {\n\t\t\t\tthis.setFocus(restoreState.overlay.component);\n\t\t\t} else if (restoreState.status === \"blocked\" && restoreState.blockedBy !== this.focusedComponent) {\n\t\t\t\tif (restoreState.resume.status === \"restore-overlay\") {\n\t\t\t\t\tthis.setFocus(restoreState.overlay.component);\n\t\t\t\t} else {\n\t\t\t\t\tthis.clearOverlayFocusRestore();\n\t\t\t\t\tthis.setFocus(restoreState.resume.target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Pass input to focused component (including Ctrl+C)\n\t\t// The focused component can decide how to handle Ctrl+C\n\t\tif (this.focusedComponent?.handleInput) {\n\t\t\t// Filter out key release events unless component opts in\n\t\t\tif (isKeyRelease(data) && !this.focusedComponent.wantsKeyRelease) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.focusedComponent.handleInput(data);\n\t\t\t// Keyboard input is latency-sensitive. Avoid the throttled timer path,\n\t\t\t// where even setTimeout(0) can take a full 16 ms tick on Windows.\n\t\t\tthis.requestImmediateRender();\n\t\t}\n\t}\n\n\tprivate consumeOsc11BackgroundResponse(data: string): boolean {\n\t\tif (this.pendingOsc11BackgroundReplies <= 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!isOsc11BackgroundColorResponse(data)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst rgb = parseOsc11BackgroundColor(data);\n\t\tthis.pendingOsc11BackgroundReplies -= 1;\n\t\tconst query = this.pendingOsc11BackgroundQueries.shift();\n\t\tif (query && !query.settled) {\n\t\t\tquery.settled = true;\n\t\t\tif (query.timer) {\n\t\t\t\tclearTimeout(query.timer);\n\t\t\t\tquery.timer = undefined;\n\t\t\t}\n\t\t\tquery.resolve?.(rgb);\n\t\t\tquery.resolve = undefined;\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate consumeTerminalColorSchemeReport(data: string): boolean {\n\t\tconst scheme = parseTerminalColorSchemeReport(data);\n\t\tif (!scheme) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (const listener of this.terminalColorSchemeListeners) {\n\t\t\tlistener(scheme);\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate consumeCellSizeResponse(data: string): boolean {\n\t\t// Response format: ESC [ 6 ; height ; width t\n\t\tconst match = data.match(/^\\x1b\\[6;(\\d+);(\\d+)t$/);\n\t\tif (!match) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst heightPx = parseInt(match[1], 10);\n\t\tconst widthPx = parseInt(match[2], 10);\n\t\tif (heightPx <= 0 || widthPx <= 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tsetCellDimensions({ widthPx, heightPx });\n\t\t// Invalidate all components so images re-render with correct dimensions.\n\t\tthis.invalidate();\n\t\tthis.requestRender();\n\t\treturn true;\n\t}\n\n\t/**\n\t * Resolve overlay layout from options.\n\t * Returns { width, row, col, maxHeight } for rendering.\n\t */\n\tprivate resolveOverlayLayout(\n\t\toptions: OverlayOptions | undefined,\n\t\toverlayHeight: number,\n\t\ttermWidth: number,\n\t\ttermHeight: number,\n\t): { width: number; row: number; col: number; maxHeight: number | undefined } {\n\t\tconst opt = options ?? {};\n\n\t\t// Parse margin (clamp to non-negative)\n\t\tconst margin =\n\t\t\ttypeof opt.margin === \"number\"\n\t\t\t\t? { top: opt.margin, right: opt.margin, bottom: opt.margin, left: opt.margin }\n\t\t\t\t: (opt.margin ?? {});\n\t\tconst marginTop = Math.max(0, margin.top ?? 0);\n\t\tconst marginRight = Math.max(0, margin.right ?? 0);\n\t\tconst marginBottom = Math.max(0, margin.bottom ?? 0);\n\t\tconst marginLeft = Math.max(0, margin.left ?? 0);\n\n\t\t// Available space after margins\n\t\tconst availWidth = Math.max(1, termWidth - marginLeft - marginRight);\n\t\tconst availHeight = Math.max(1, termHeight - marginTop - marginBottom);\n\n\t\t// === Resolve width ===\n\t\tlet width = parseSizeValue(opt.width, termWidth) ?? Math.min(80, availWidth);\n\t\t// Apply minWidth\n\t\tif (opt.minWidth !== undefined) {\n\t\t\twidth = Math.max(width, opt.minWidth);\n\t\t}\n\t\t// Clamp to available space\n\t\twidth = Math.max(1, Math.min(width, availWidth));\n\n\t\t// === Resolve maxHeight ===\n\t\tlet maxHeight = parseSizeValue(opt.maxHeight, termHeight);\n\t\t// Clamp to available space\n\t\tif (maxHeight !== undefined) {\n\t\t\tmaxHeight = Math.max(1, Math.min(maxHeight, availHeight));\n\t\t}\n\n\t\t// Effective overlay height (may be clamped by maxHeight)\n\t\tconst effectiveHeight = maxHeight !== undefined ? Math.min(overlayHeight, maxHeight) : overlayHeight;\n\n\t\t// === Resolve position ===\n\t\tlet row: number;\n\t\tlet col: number;\n\n\t\tif (opt.row !== undefined) {\n\t\t\tif (typeof opt.row === \"string\") {\n\t\t\t\t// Percentage: 0% = top, 100% = bottom (overlay stays within bounds)\n\t\t\t\tconst match = opt.row.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\t\t\t\tif (match) {\n\t\t\t\t\tconst maxRow = Math.max(0, availHeight - effectiveHeight);\n\t\t\t\t\tconst percent = parseFloat(match[1]) / 100;\n\t\t\t\t\trow = marginTop + Math.floor(maxRow * percent);\n\t\t\t\t} else {\n\t\t\t\t\t// Invalid format, fall back to center\n\t\t\t\t\trow = this.resolveAnchorRow(\"center\", effectiveHeight, availHeight, marginTop);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Absolute row position\n\t\t\t\trow = opt.row;\n\t\t\t}\n\t\t} else {\n\t\t\t// Anchor-based (default: center)\n\t\t\tconst anchor = opt.anchor ?? \"center\";\n\t\t\trow = this.resolveAnchorRow(anchor, effectiveHeight, availHeight, marginTop);\n\t\t}\n\n\t\tif (opt.col !== undefined) {\n\t\t\tif (typeof opt.col === \"string\") {\n\t\t\t\t// Percentage: 0% = left, 100% = right (overlay stays within bounds)\n\t\t\t\tconst match = opt.col.match(/^(\\d+(?:\\.\\d+)?)%$/);\n\t\t\t\tif (match) {\n\t\t\t\t\tconst maxCol = Math.max(0, availWidth - width);\n\t\t\t\t\tconst percent = parseFloat(match[1]) / 100;\n\t\t\t\t\tcol = marginLeft + Math.floor(maxCol * percent);\n\t\t\t\t} else {\n\t\t\t\t\t// Invalid format, fall back to center\n\t\t\t\t\tcol = this.resolveAnchorCol(\"center\", width, availWidth, marginLeft);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Absolute column position\n\t\t\t\tcol = opt.col;\n\t\t\t}\n\t\t} else {\n\t\t\t// Anchor-based (default: center)\n\t\t\tconst anchor = opt.anchor ?? \"center\";\n\t\t\tcol = this.resolveAnchorCol(anchor, width, availWidth, marginLeft);\n\t\t}\n\n\t\t// Apply offsets\n\t\tif (opt.offsetY !== undefined) row += opt.offsetY;\n\t\tif (opt.offsetX !== undefined) col += opt.offsetX;\n\n\t\t// Clamp to terminal bounds (respecting margins)\n\t\trow = Math.max(marginTop, Math.min(row, termHeight - marginBottom - effectiveHeight));\n\t\tcol = Math.max(marginLeft, Math.min(col, termWidth - marginRight - width));\n\n\t\treturn { width, row, col, maxHeight };\n\t}\n\n\tprivate resolveAnchorRow(anchor: OverlayAnchor, height: number, availHeight: number, marginTop: number): number {\n\t\tswitch (anchor) {\n\t\t\tcase \"top-left\":\n\t\t\tcase \"top-center\":\n\t\t\tcase \"top-right\":\n\t\t\t\treturn marginTop;\n\t\t\tcase \"bottom-left\":\n\t\t\tcase \"bottom-center\":\n\t\t\tcase \"bottom-right\":\n\t\t\t\treturn marginTop + availHeight - height;\n\t\t\tcase \"left-center\":\n\t\t\tcase \"center\":\n\t\t\tcase \"right-center\":\n\t\t\t\treturn marginTop + Math.floor((availHeight - height) / 2);\n\t\t}\n\t}\n\n\tprivate resolveAnchorCol(anchor: OverlayAnchor, width: number, availWidth: number, marginLeft: number): number {\n\t\tswitch (anchor) {\n\t\t\tcase \"top-left\":\n\t\t\tcase \"left-center\":\n\t\t\tcase \"bottom-left\":\n\t\t\t\treturn marginLeft;\n\t\t\tcase \"top-right\":\n\t\t\tcase \"right-center\":\n\t\t\tcase \"bottom-right\":\n\t\t\t\treturn marginLeft + availWidth - width;\n\t\t\tcase \"top-center\":\n\t\t\tcase \"center\":\n\t\t\tcase \"bottom-center\":\n\t\t\t\treturn marginLeft + Math.floor((availWidth - width) / 2);\n\t\t}\n\t}\n\n\t/** Composite all overlays into content lines (sorted by focusOrder, higher = on top). */\n\tprotected compositeOverlays(lines: string[], termWidth: number, termHeight: number): string[] {\n\t\tif (this.overlayStack.length === 0) {\n\t\t\tthis.renderedOverlayLayouts = [];\n\t\t\treturn lines;\n\t\t}\n\t\tconst result = [...lines];\n\n\t\tfor (const entry of this.overlayStack) entry.bounds = undefined;\n\n\t\t// Pre-render all visible overlays and calculate positions\n\t\tconst rendered: { entry: OverlayStackEntry; overlayLines: string[]; row: number; col: number; w: number }[] = [];\n\t\tlet minLinesNeeded = result.length;\n\n\t\tconst visibleEntries = this.overlayStack.filter((e) => this.isOverlayVisible(e));\n\t\tvisibleEntries.sort((a, b) => a.focusOrder - b.focusOrder);\n\t\tfor (const entry of visibleEntries) {\n\t\t\tconst { component, options } = entry;\n\n\t\t\t// Get layout with height=0 first to determine width and maxHeight\n\t\t\t// (width and maxHeight don't depend on overlay height)\n\t\t\tconst { width, maxHeight } = this.resolveOverlayLayout(options, 0, termWidth, termHeight);\n\n\t\t\t// Render component at calculated width\n\t\t\tlet overlayLines = component.render(width);\n\n\t\t\t// Apply maxHeight if specified\n\t\t\tif (maxHeight !== undefined && overlayLines.length > maxHeight) {\n\t\t\t\toverlayLines = overlayLines.slice(0, maxHeight);\n\t\t\t}\n\n\t\t\t// Get final row/col with actual overlay height\n\t\t\tconst { row, col } = this.resolveOverlayLayout(options, overlayLines.length, termWidth, termHeight);\n\t\t\tentry.bounds = { row, col, width, height: overlayLines.length };\n\n\t\t\trendered.push({ entry, overlayLines, row, col, w: width });\n\t\t\tminLinesNeeded = Math.max(minLinesNeeded, row + overlayLines.length);\n\t\t}\n\t\tthis.renderedOverlayLayouts = rendered.map(({ entry, row, col, w, overlayLines }) => ({\n\t\t\tentry,\n\t\t\trow,\n\t\t\tcol,\n\t\t\twidth: w,\n\t\t\theight: overlayLines.length,\n\t\t}));\n\n\t\t// Pad to at least terminal height so overlays have screen-relative positions.\n\t\t// Excludes maxLinesRendered: the historical high-water mark caused self-reinforcing\n\t\t// inflation that pushed content into scrollback on terminal widen.\n\t\tconst workingHeight = Math.max(result.length, termHeight, minLinesNeeded);\n\n\t\t// Extend result with empty lines if content is too short for overlay placement or working area\n\t\twhile (result.length < workingHeight) {\n\t\t\tresult.push(\"\");\n\t\t}\n\n\t\tconst viewportStart = Math.max(0, workingHeight - termHeight);\n\n\t\t// Composite each overlay\n\t\tfor (const { overlayLines, row, col, w } of rendered) {\n\t\t\tfor (let i = 0; i < overlayLines.length; i++) {\n\t\t\t\tconst idx = viewportStart + row + i;\n\t\t\t\tif (idx >= 0 && idx < result.length) {\n\t\t\t\t\t// Defensive: truncate overlay line to declared width before compositing\n\t\t\t\t\t// (components should already respect width, but this ensures it)\n\t\t\t\t\tconst truncatedOverlayLine =\n\t\t\t\t\t\tvisibleWidth(overlayLines[i]) > w ? sliceByColumn(overlayLines[i], 0, w, true) : overlayLines[i];\n\t\t\t\t\tresult[idx] = this.compositeLineAt(result[idx], truncatedOverlayLine, col, w, termWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tprotected applyLineResets(lines: string[]): string[] {\n\t\tconst reset = segmentReset();\n\t\tfor (let i = 0; i < lines.length; i++) {\n\t\t\tconst line = lines[i];\n\t\t\tif (!isImageLine(line)) {\n\t\t\t\tlines[i] = normalizeTerminalOutput(line) + reset;\n\t\t\t}\n\t\t}\n\t\treturn lines;\n\t}\n\n\tprivate compositeLineAt(\n\t\tbaseLine: string,\n\t\toverlayLine: string,\n\t\tstartCol: number,\n\t\toverlayWidth: number,\n\t\ttotalWidth: number,\n\t): string {\n\t\treturn compositeTuiLine(baseLine, overlayLine, startCol, overlayWidth, totalWidth);\n\t}\n\n\t/**\n\t * Find and extract cursor position from rendered lines.\n\t * Searches for CURSOR_MARKER, calculates its position, and strips it from the output.\n\t * Only scans the bottom terminal height lines (visible viewport).\n\t * @param lines - Rendered lines to search\n\t * @param height - Terminal height (visible viewport size)\n\t * @returns Cursor position { row, col } or null if no marker found\n\t */\n\tprotected extractCursorPosition(lines: string[], height: number): { row: number; col: number } | null {\n\t\t// Only scan the bottom `height` lines (visible viewport)\n\t\tconst viewportTop = Math.max(0, lines.length - height);\n\t\tfor (let row = lines.length - 1; row >= viewportTop; row--) {\n\t\t\tconst line = lines[row];\n\t\t\tconst markerIndex = line.indexOf(CURSOR_MARKER);\n\t\t\tif (markerIndex !== -1) {\n\t\t\t\t// Calculate visual column (width of text before marker)\n\t\t\t\tconst beforeMarker = line.slice(0, markerIndex);\n\t\t\t\tconst col = visibleWidth(beforeMarker);\n\n\t\t\t\t// Strip marker from the line\n\t\t\t\tlines[row] = line.slice(0, markerIndex) + line.slice(markerIndex + CURSOR_MARKER.length);\n\n\t\t\t\treturn { row, col };\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\t/**\n\t * Query the terminal's default background color with OSC 11 (`ESC ] 11 ; ? BEL`).\n\t * @param timeoutMs Query timeout in milliseconds.\n\t * @returns Promise containing the parsed RGB color, or undefined if it times out or fails to parse.\n\t */\n\tqueryTerminalBackgroundColor({ timeoutMs }: { timeoutMs: number }): Promise<RgbColor | undefined> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst query: PendingOsc11BackgroundQuery = {\n\t\t\t\tsettled: false,\n\t\t\t\tresolve,\n\t\t\t\ttimer: undefined,\n\t\t\t};\n\n\t\t\tquery.timer = setTimeout(() => {\n\t\t\t\tif (query.settled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tquery.settled = true;\n\t\t\t\tquery.timer = undefined;\n\t\t\t\tquery.resolve?.(undefined);\n\t\t\t\tquery.resolve = undefined;\n\t\t\t}, timeoutMs);\n\t\t\tthis.pendingOsc11BackgroundQueries.push(query);\n\t\t\tthis.pendingOsc11BackgroundReplies += 1;\n\t\t\tthis.terminal.write(\"\\x1b]11;?\\x07\");\n\t\t});\n\t}\n\n\t/**\n\t * Query the terminal's color-scheme preference with DSR (`CSI ? 996 n`).\n\t * Terminals that support the color palette notification protocol reply with\n\t * `CSI ? 997 ; 1 n` for dark or `CSI ? 997 ; 2 n` for light.\n\t */\n\tqueryTerminalColorScheme({ timeoutMs }: { timeoutMs: number }): Promise<TerminalColorScheme | undefined> {\n\t\treturn new Promise((resolve) => {\n\t\t\tlet settled = false;\n\t\t\tlet timer: NodeJS.Timeout | undefined;\n\t\t\tlet unsubscribe: () => void = () => {};\n\t\t\tconst settle = (scheme: TerminalColorScheme | undefined) => {\n\t\t\t\tif (settled) return;\n\t\t\t\tsettled = true;\n\t\t\t\tif (timer) {\n\t\t\t\t\tclearTimeout(timer);\n\t\t\t\t\ttimer = undefined;\n\t\t\t\t}\n\t\t\t\tunsubscribe();\n\t\t\t\tresolve(scheme);\n\t\t\t};\n\n\t\t\tunsubscribe = this.onTerminalColorSchemeChange(settle);\n\t\t\ttimer = setTimeout(() => settle(undefined), timeoutMs);\n\t\t\tthis.terminal.write(\"\\x1b[?996n\");\n\t\t});\n\t}\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic undo stack with clone-on-push semantics.
|
|
3
|
-
*
|
|
4
|
-
* Stores deep clones of state snapshots. Popped snapshots are returned
|
|
5
|
-
* directly (no re-cloning) since they are already detached.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UndoStack<S> {
|
|
8
|
-
private stack;
|
|
9
|
-
/** Push a deep clone of the given state onto the stack. */
|
|
10
|
-
push(state: S): void;
|
|
11
|
-
/** Pop and return the most recent snapshot, or undefined if empty. */
|
|
12
|
-
pop(): S | undefined;
|
|
13
|
-
/** Remove all snapshots. */
|
|
14
|
-
clear(): void;
|
|
15
|
-
get length(): number;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=undo-stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undo-stack.d.ts","sourceRoot":"","sources":["../src/undo-stack.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,SAAS,CAAC,CAAC;IACvB,OAAO,CAAC,KAAK,CAAW;IAExB,2DAA2D;IAC3D,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAEnB;IAED,sEAAsE;IACtE,GAAG,IAAI,CAAC,GAAG,SAAS,CAEnB;IAED,4BAA4B;IAC5B,KAAK,IAAI,IAAI,CAEZ;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;CACD","sourcesContent":["/**\n * Generic undo stack with clone-on-push semantics.\n *\n * Stores deep clones of state snapshots. Popped snapshots are returned\n * directly (no re-cloning) since they are already detached.\n */\nexport class UndoStack<S> {\n\tprivate stack: S[] = [];\n\n\t/** Push a deep clone of the given state onto the stack. */\n\tpush(state: S): void {\n\t\tthis.stack.push(structuredClone(state));\n\t}\n\n\t/** Pop and return the most recent snapshot, or undefined if empty. */\n\tpop(): S | undefined {\n\t\treturn this.stack.pop();\n\t}\n\n\t/** Remove all snapshots. */\n\tclear(): void {\n\t\tthis.stack.length = 0;\n\t}\n\n\tget length(): number {\n\t\treturn this.stack.length;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undo-stack.js","sourceRoot":"","sources":["../src/undo-stack.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,OAAO,SAAS;IACb,KAAK,GAAQ,EAAE,CAAC;IAExB,2DAA2D;IAC3D,IAAI,CAAC,KAAQ,EAAQ;QACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAAA,CACxC;IAED,sEAAsE;IACtE,GAAG,GAAkB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IAAA,CACxB;IAED,4BAA4B;IAC5B,KAAK,GAAS;QACb,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAAA,CACtB;IAED,IAAI,MAAM,GAAW;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAAA,CACzB;CACD","sourcesContent":["/**\n * Generic undo stack with clone-on-push semantics.\n *\n * Stores deep clones of state snapshots. Popped snapshots are returned\n * directly (no re-cloning) since they are already detached.\n */\nexport class UndoStack<S> {\n\tprivate stack: S[] = [];\n\n\t/** Push a deep clone of the given state onto the stack. */\n\tpush(state: S): void {\n\t\tthis.stack.push(structuredClone(state));\n\t}\n\n\t/** Pop and return the most recent snapshot, or undefined if empty. */\n\tpop(): S | undefined {\n\t\treturn this.stack.pop();\n\t}\n\n\t/** Remove all snapshots. */\n\tclear(): void {\n\t\tthis.stack.length = 0;\n\t}\n\n\tget length(): number {\n\t\treturn this.stack.length;\n\t}\n}\n"]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the shared grapheme segmenter instance.
|
|
3
|
-
*/
|
|
4
|
-
export declare function getGraphemeSegmenter(): Intl.Segmenter;
|
|
5
|
-
/**
|
|
6
|
-
* Get the shared word segmenter instance.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getWordSegmenter(): Intl.Segmenter;
|
|
9
|
-
export declare const cjkBreakRegex: RegExp;
|
|
10
|
-
/**
|
|
11
|
-
* Calculate the visible width of a string in terminal columns.
|
|
12
|
-
*/
|
|
13
|
-
export declare function visibleWidth(str: string): number;
|
|
14
|
-
/** Remove ANSI, OSC, and APC control sequences while preserving visible text. */
|
|
15
|
-
export declare function stripTerminalSequences(str: string): string;
|
|
16
|
-
interface GraphemeCellRange {
|
|
17
|
-
start: number;
|
|
18
|
-
end: number;
|
|
19
|
-
}
|
|
20
|
-
/** Return the terminal-cell range occupied by the grapheme at a visible column. */
|
|
21
|
-
export declare function getGraphemeCellRange(line: string, column: number): GraphemeCellRange | undefined;
|
|
22
|
-
/** Return the OSC 8 hyperlink covering a visible terminal column. */
|
|
23
|
-
export declare function getOsc8LinkAtColumn(line: string, column: number): string | undefined;
|
|
24
|
-
export declare function normalizeTerminalOutput(str: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Extract ANSI escape sequences from a string at the given position.
|
|
27
|
-
*/
|
|
28
|
-
export declare function extractAnsiCode(str: string, pos: number): {
|
|
29
|
-
code: string;
|
|
30
|
-
length: number;
|
|
31
|
-
} | null;
|
|
32
|
-
/** Return only the background color active at the end of an ANSI-styled string. */
|
|
33
|
-
export declare function getActiveBackgroundAnsi(text: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Wrap text with ANSI codes preserved.
|
|
36
|
-
*
|
|
37
|
-
* ONLY does word wrapping - NO padding, NO background colors.
|
|
38
|
-
* Returns lines where each line is <= width visible chars.
|
|
39
|
-
* Active ANSI codes are preserved across line breaks.
|
|
40
|
-
*
|
|
41
|
-
* @param text - Text to wrap (may contain ANSI codes and newlines)
|
|
42
|
-
* @param width - Maximum visible width per line
|
|
43
|
-
* @returns Array of wrapped lines (NOT padded to width)
|
|
44
|
-
*/
|
|
45
|
-
export declare function wrapTextWithAnsi(text: string, width: number): string[];
|
|
46
|
-
export declare const PUNCTUATION_REGEX: RegExp;
|
|
47
|
-
/**
|
|
48
|
-
* Check if a character is whitespace.
|
|
49
|
-
*/
|
|
50
|
-
export declare function isWhitespaceChar(char: string): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Check if a character is punctuation.
|
|
53
|
-
*/
|
|
54
|
-
export declare function isPunctuationChar(char: string): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Apply background color to a line, padding to full width.
|
|
57
|
-
*
|
|
58
|
-
* @param line - Line of text (may contain ANSI codes)
|
|
59
|
-
* @param width - Total width to pad to
|
|
60
|
-
* @param bgFn - Background color function
|
|
61
|
-
* @returns Line with background applied and padded to width
|
|
62
|
-
*/
|
|
63
|
-
export declare function applyBackgroundToLine(line: string, width: number, bgFn: (text: string) => string): string;
|
|
64
|
-
/**
|
|
65
|
-
* Truncate text to fit within a maximum visible width, adding ellipsis if needed.
|
|
66
|
-
* Optionally pad with spaces to reach exactly maxWidth.
|
|
67
|
-
* Properly handles ANSI escape codes (they don't count toward width).
|
|
68
|
-
*
|
|
69
|
-
* @param text - Text to truncate (may contain ANSI codes)
|
|
70
|
-
* @param maxWidth - Maximum visible width
|
|
71
|
-
* @param ellipsis - Ellipsis string to append when truncating (default: "...")
|
|
72
|
-
* @param pad - If true, pad result with spaces to exactly maxWidth (default: false)
|
|
73
|
-
* @returns Truncated text, optionally padded to exactly maxWidth
|
|
74
|
-
*/
|
|
75
|
-
export declare function truncateToWidth(text: string, maxWidth: number, ellipsis?: string, pad?: boolean): string;
|
|
76
|
-
/**
|
|
77
|
-
* Extract a range of visible columns from a line. Handles ANSI codes and wide chars.
|
|
78
|
-
* @param strict - If true, exclude wide chars at boundary that would extend past the range
|
|
79
|
-
*/
|
|
80
|
-
export declare function sliceByColumn(line: string, startCol: number, length: number, strict?: boolean): string;
|
|
81
|
-
/** Like sliceByColumn but also returns the actual visible width of the result. */
|
|
82
|
-
export declare function sliceWithWidth(line: string, startCol: number, length: number, strict?: boolean): {
|
|
83
|
-
text: string;
|
|
84
|
-
width: number;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Extract "before" and "after" segments from a line in a single pass.
|
|
88
|
-
* Used for overlay compositing where we need content before and after the overlay region.
|
|
89
|
-
* Preserves styling from before the overlay that should affect content after it.
|
|
90
|
-
*/
|
|
91
|
-
export declare function extractSegments(line: string, beforeEnd: number, afterStart: number, afterLen: number, strictAfter?: boolean): {
|
|
92
|
-
before: string;
|
|
93
|
-
beforeWidth: number;
|
|
94
|
-
after: string;
|
|
95
|
-
afterWidth: number;
|
|
96
|
-
};
|
|
97
|
-
export {};
|
|
98
|
-
//# sourceMappingURL=utils.d.ts.map
|