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":"layout.js","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAkB,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,EACN,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,YAAY,GACZ,MAAM,YAAY,CAAC;AAEpB,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAuDlE,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAoC,CAAC;AAE9E,SAAS,4BAA4B,CACpC,OAAsB,EACtB,OAA8B,EAC9B,QAAqB,EACrB,KAAa,EACb,KAAa,EACN;IACP,IAAI,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,KAAK,IAAI,KAAK,GAAG,KAA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AgB;IACxF,MAAM,MAAM,GAAqD,EAAE,CAAC;IACpE,MAAM,KAAK,GAAG,CAAC,GAAc,EAAE,KAAa,EAAQ,EAAE,CAAC;QACtD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YAAE,OAAO;QAC3C,IAAI,GAAG,CAAC,UAAU,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;QACxG,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,QAAQ;YAAE,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAAA,CAC1D,CAAC;IACF,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAAA,CAC/C","sourcesContent":["import type { ScrollView } from \"./components/scroll-view.ts\";\nimport { allocateStackSizes, visibleStackEntries } from \"./components/stack.ts\";\nimport { getLayoutNode } from \"./layout-node.ts\";\nimport { cropKittyImageLine, getCapabilities, getKittyImageMetadata, isImageLine } from \"./terminal-image.ts\";\nimport { type Component, Container, CURSOR_MARKER, compositeTuiLine } from \"./tui.ts\";\nimport {\n\textractAnsiCode,\n\tgetActiveBackgroundAnsi,\n\tgetGraphemeCellRange,\n\tsliceByColumn,\n\tvisibleWidth,\n} from \"./utils.ts\";\n\nconst OSC133_ZONE_PREFIX = /^(?:\\x1b\\]133;[ABC](?:\\x07|\\x1b\\\\))+/;\n\nexport interface LayoutRect {\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface LayoutBox {\n\tcomponent: Component;\n\trect: LayoutRect;\n\tclip: LayoutRect;\n\tchildren: LayoutBox[];\n\tparent?: LayoutBox;\n\tlines?: readonly string[];\n\tlineOffset?: number;\n\tscrollView?: ScrollView;\n\tscrollContentLines?: readonly string[];\n\tlayer: number;\n}\n\nexport interface LayoutFrame {\n\troot: LayoutBox;\n\twidth: number;\n\theight: number;\n\tlines: string[];\n\tprimaryScrollView?: ScrollView;\n}\n\nexport interface ScrollbarGeometry {\n\tcolumn: number;\n\ttrackTop: number;\n\ttrackHeight: number;\n\tthumbTop: number;\n\tthumbHeight: number;\n\tmaxScrollTop: number;\n}\n\ninterface LayoutContext {\n\tviewport: { width: number; height: number };\n\trenderCache: Map<Component, Map<number, string[]>>;\n\trequestRender: () => void;\n\tprimaryScrollView: ScrollView | undefined;\n}\n\ninterface ExactContainerMetrics {\n\twidth: number;\n\tgeneration: number;\n\tlastChild: Component | undefined;\n\theights: number[];\n\tprefix: number[];\n\ttotal: number;\n}\n\nconst exactContainerMetrics = new WeakMap<Container, ExactContainerMetrics>();\n\nfunction remeasureExactContainerRange(\n\tcontext: LayoutContext,\n\tmetrics: ExactContainerMetrics,\n\tchildren: Component[],\n\tstart: number,\n\twidth: number,\n): void {\n\tlet total = start === 0 ? 0 : (metrics.prefix[start - 1] ?? 0);\n\tfor (let index = start; index < children.length; index++) {\n\t\tconst height = measureHeight(context, children[index]!, width);\n\t\tmetrics.heights[index] = height;\n\t\ttotal += height;\n\t\tmetrics.prefix[index] = total;\n\t}\n\tmetrics.heights.length = children.length;\n\tmetrics.prefix.length = children.length;\n\tmetrics.total = total;\n\tmetrics.lastChild = children.length === 0 ? undefined : children[children.length - 1];\n}\n\nfunction syncExactContainerMetrics(context: LayoutContext, component: Container, width: number): ExactContainerMetrics {\n\tconst children = component.children;\n\tlet metrics = exactContainerMetrics.get(component);\n\tif (!metrics || metrics.width !== width) {\n\t\tmetrics = {\n\t\t\twidth,\n\t\t\tgeneration: component.layoutGeneration,\n\t\t\tlastChild: undefined,\n\t\t\theights: [],\n\t\t\tprefix: [],\n\t\t\ttotal: 0,\n\t\t};\n\t\texactContainerMetrics.set(component, metrics);\n\t\tremeasureExactContainerRange(context, metrics, children, 0, width);\n\t\treturn metrics;\n\t}\n\tconst generationChanged = metrics.generation !== component.layoutGeneration;\n\tmetrics.generation = component.layoutGeneration;\n\tif (children.length < metrics.heights.length) {\n\t\tremeasureExactContainerRange(context, metrics, children, 0, width);\n\t\treturn metrics;\n\t}\n\tif (children.length > metrics.heights.length) {\n\t\tconst previousLast = metrics.lastChild;\n\t\tconst aligned = metrics.heights.length === 0 || previousLast === children[metrics.heights.length - 1];\n\t\tremeasureExactContainerRange(context, metrics, children, aligned ? metrics.heights.length : 0, width);\n\t\treturn metrics;\n\t}\n\tif (generationChanged) {\n\t\tremeasureExactContainerRange(context, metrics, children, 0, width);\n\t\treturn metrics;\n\t}\n\tif (children.length > 0) {\n\t\tconst last = children[children.length - 1]!;\n\t\tif (last !== metrics.lastChild) {\n\t\t\tremeasureExactContainerRange(context, metrics, children, 0, width);\n\t\t\treturn metrics;\n\t\t}\n\t\tconst previous = metrics.heights[children.length - 1]!;\n\t\tconst height = measureHeight(context, last, width);\n\t\tif (height !== previous) {\n\t\t\tmetrics.heights[children.length - 1] = height;\n\t\t\tconst total = (children.length === 1 ? 0 : metrics.prefix[children.length - 2]!) + height;\n\t\t\tmetrics.prefix[children.length - 1] = total;\n\t\t\tmetrics.total = total;\n\t\t}\n\t}\n\treturn metrics;\n}\n\nfunction firstIndexPast(prefix: number[], threshold: number): number {\n\tlet low = 0;\n\tlet high = prefix.length;\n\twhile (low < high) {\n\t\tconst mid = (low + high) >> 1;\n\t\tif ((prefix[mid] ?? 0) > threshold) high = mid;\n\t\telse low = mid + 1;\n\t}\n\treturn low;\n}\n\nfunction intersect(a: LayoutRect, b: LayoutRect): LayoutRect {\n\tconst x = Math.max(a.x, b.x);\n\tconst y = Math.max(a.y, b.y);\n\tconst right = Math.min(a.x + a.width, b.x + b.width);\n\tconst bottom = Math.min(a.y + a.height, b.y + b.height);\n\treturn { x, y, width: Math.max(0, right - x), height: Math.max(0, bottom - y) };\n}\n\nfunction renderCached(context: LayoutContext, component: Component, width: number): string[] {\n\tconst safeWidth = Math.max(1, Math.floor(width));\n\tlet widths = context.renderCache.get(component);\n\tif (!widths) {\n\t\twidths = new Map<number, string[]>();\n\t\tcontext.renderCache.set(component, widths);\n\t}\n\tlet lines = widths.get(safeWidth);\n\tif (!lines) {\n\t\tlines = component.render(safeWidth);\n\t\twidths.set(safeWidth, lines);\n\t}\n\treturn lines;\n}\n\nfunction measureHeight(context: LayoutContext, component: Component, width: number): number {\n\tconst safeWidth = Math.max(1, Math.floor(width));\n\tif (isExactContainer(component) && !getLayoutNode(component)) {\n\t\treturn syncExactContainerMetrics(context, component, safeWidth).total;\n\t}\n\treturn component.render(safeWidth).length;\n}\n\nfunction measureWidth(context: LayoutContext, component: Component, width: number): number {\n\tif (isExactContainer(component) && !getLayoutNode(component)) {\n\t\tlet max = 0;\n\t\tfor (const child of component.children) {\n\t\t\tmax = Math.max(max, measureWidth(context, child, width));\n\t\t}\n\t\treturn max;\n\t}\n\treturn component.render(Math.max(1, Math.floor(width))).reduce((max, line) => Math.max(max, visibleWidth(line)), 0);\n}\n\nfunction withParent(box: LayoutBox, parent: LayoutBox): LayoutBox {\n\tbox.parent = parent;\n\treturn box;\n}\n\nfunction translateBox(box: LayoutBox, deltaY: number): void {\n\tbox.rect.y += deltaY;\n\tfor (const child of box.children) translateBox(child, deltaY);\n}\n\nfunction updateClips(box: LayoutBox, parentClip: LayoutRect): void {\n\tbox.clip = intersect(parentClip, box.rect);\n\tfor (const child of box.children) updateClips(child, box.clip);\n}\n\nfunction isExactContainer(component: Component): component is Container {\n\treturn component.constructor === Container;\n}\n\nfunction layoutExactContainer(\n\tcontext: LayoutContext,\n\tcomponent: Container,\n\tx: number,\n\ty: number,\n\twidth: number,\n\theight: number | undefined,\n\tclip: LayoutRect,\n): LayoutBox {\n\tconst children = component.children;\n\tconst metrics = syncExactContainerMetrics(context, component, width);\n\tconst allocatedHeight = height === undefined ? metrics.total : Math.max(0, Math.floor(height));\n\tconst rect = { x, y, width, height: allocatedHeight };\n\tconst box: LayoutBox = {\n\t\tcomponent,\n\t\trect,\n\t\tclip: intersect(clip, rect),\n\t\tchildren: [],\n\t\tlayer: 0,\n\t};\n\tif (children.length === 0 || box.clip.height <= 0) return box;\n\tconst start = firstIndexPast(metrics.prefix, box.clip.y - y);\n\tconst clipBottom = box.clip.y + box.clip.height - y;\n\tfor (let index = start; index < children.length; index++) {\n\t\tconst childHeight = metrics.heights[index]!;\n\t\tconst childY = y + (index === 0 ? 0 : metrics.prefix[index - 1]!);\n\t\tif (childY >= box.clip.y + box.clip.height) break;\n\t\tif (childHeight > 0 && childY < box.clip.y + box.clip.height && childY + childHeight > box.clip.y) {\n\t\t\tbox.children.push(\n\t\t\t\twithParent(layoutComponent(context, children[index]!, x, childY, width, childHeight, box.clip), box),\n\t\t\t);\n\t\t}\n\t\tif (index > 0 && metrics.prefix[index - 1]! >= clipBottom) break;\n\t}\n\treturn box;\n}\n\nfunction layoutLeaf(\n\tcontext: LayoutContext,\n\tcomponent: Component,\n\tx: number,\n\ty: number,\n\twidth: number,\n\theight: number | undefined,\n\tclip: LayoutRect,\n): LayoutBox {\n\tconst lines = renderCached(context, component, width);\n\tconst allocatedHeight = height === undefined ? lines.length : Math.max(0, Math.floor(height));\n\tlet lineOffset = 0;\n\tif (lines.length > allocatedHeight && allocatedHeight > 0) {\n\t\tconst cursorLine = lines.findIndex((line) => line.includes(CURSOR_MARKER));\n\t\tif (cursorLine >= allocatedHeight) lineOffset = cursorLine - allocatedHeight + 1;\n\t}\n\treturn {\n\t\tcomponent,\n\t\trect: { x, y, width, height: allocatedHeight },\n\t\tclip: intersect(clip, { x, y, width, height: allocatedHeight }),\n\t\tchildren: [],\n\t\tlines,\n\t\tlineOffset,\n\t\tlayer: 0,\n\t};\n}\n\nfunction layoutComponent(\n\tcontext: LayoutContext,\n\tcomponent: Component,\n\tx: number,\n\ty: number,\n\twidth: number,\n\theight: number | undefined,\n\tclip: LayoutRect,\n): LayoutBox {\n\tconst safeWidth = Math.max(1, Math.floor(width));\n\tconst node = getLayoutNode(component);\n\tif (!node) {\n\t\tif (isExactContainer(component)) {\n\t\t\treturn layoutExactContainer(context, component, x, y, safeWidth, height, clip);\n\t\t}\n\t\treturn layoutLeaf(context, component, x, y, safeWidth, height, clip);\n\t}\n\n\tif (node.type === \"scroll\") {\n\t\tconst contentWidth = node.state.getContentWidth(safeWidth);\n\t\tconst structuredChild = isExactContainer(node.component);\n\t\tconst previousScrollTop = node.state.scrollTop;\n\t\tlet childBox: LayoutBox;\n\t\tlet contentHeight: number;\n\t\tif (structuredChild) {\n\t\t\tcontentHeight = measureHeight(context, node.component, contentWidth);\n\t\t\tconst viewportHeight = height === undefined ? contentHeight : Math.max(0, Math.floor(height));\n\t\t\tnode.state.updateLayout(contentHeight, viewportHeight, context.requestRender);\n\t\t\tchildBox = layoutComponent(\n\t\t\t\tcontext,\n\t\t\t\tnode.component,\n\t\t\t\tx,\n\t\t\t\ty - node.state.scrollTop,\n\t\t\t\tcontentWidth,\n\t\t\t\tundefined,\n\t\t\t\tclip,\n\t\t\t);\n\t\t} else {\n\t\t\tchildBox = layoutComponent(context, node.component, x, y - previousScrollTop, contentWidth, undefined, clip);\n\t\t\tcontentHeight = childBox.rect.height;\n\t\t\tconst viewportHeight = height === undefined ? contentHeight : Math.max(0, Math.floor(height));\n\t\t\tnode.state.updateLayout(contentHeight, viewportHeight, context.requestRender);\n\t\t\ttranslateBox(childBox, previousScrollTop - node.state.scrollTop);\n\t\t}\n\t\tconst viewportHeight = height === undefined ? contentHeight : Math.max(0, Math.floor(height));\n\t\tconst scrollView = node.state as ScrollView;\n\t\tif (node.state.primary || !context.primaryScrollView) context.primaryScrollView = scrollView;\n\t\tconst rect = { x, y, width: safeWidth, height: viewportHeight };\n\t\tconst childClip = intersect(clip, rect);\n\t\tconst box: LayoutBox = {\n\t\t\tcomponent,\n\t\t\trect,\n\t\t\tclip: childClip,\n\t\t\tchildren: [childBox],\n\t\t\tscrollView,\n\t\t\tscrollContentLines: structuredChild ? undefined : renderCached(context, node.component, contentWidth),\n\t\t\tlayer: 0,\n\t\t};\n\t\tchildBox.parent = box;\n\t\tupdateClips(childBox, childClip);\n\t\treturn box;\n\t}\n\n\tconst entries = visibleStackEntries(node.entries, context.viewport);\n\tconst gapTotal = Math.max(0, entries.length - 1) * node.gap;\n\tconst padX = Math.max(0, Math.floor(node.padX ?? 0));\n\tconst padY = Math.max(0, Math.floor(node.padY ?? 0));\n\tconst innerWidth = Math.max(1, safeWidth - padX * 2);\n\tconst innerX = x + padX;\n\tif (node.type === \"vstack\") {\n\t\tconst intrinsicHeights = entries.map((entry) =>\n\t\t\ttypeof entry.basis === \"number\" ? entry.basis : measureHeight(context, entry.component, innerWidth),\n\t\t);\n\t\tconst innerHeight = height === undefined ? undefined : Math.max(0, Math.floor(height) - padY * 2);\n\t\tconst sizes = allocateStackSizes(entries, intrinsicHeights, innerHeight, node.gap);\n\t\tconst naturalHeight = sizes.reduce((sum, size) => sum + size, 0) + gapTotal + padY * 2;\n\t\tconst allocatedHeight = height === undefined ? naturalHeight : Math.max(0, Math.floor(height));\n\t\tconst rect = { x, y, width: safeWidth, height: allocatedHeight };\n\t\tconst box: LayoutBox = {\n\t\t\tcomponent,\n\t\t\trect,\n\t\t\tclip: intersect(clip, rect),\n\t\t\tchildren: [],\n\t\t\tlayer: 0,\n\t\t};\n\t\tlet childY = y + padY;\n\t\tfor (let index = 0; index < entries.length; index++) {\n\t\t\tbox.children.push(\n\t\t\t\twithParent(\n\t\t\t\t\tlayoutComponent(context, entries[index]!.component, innerX, childY, innerWidth, sizes[index]!, box.clip),\n\t\t\t\t\tbox,\n\t\t\t\t),\n\t\t\t);\n\t\t\tchildY += sizes[index]! + node.gap;\n\t\t}\n\t\treturn box;\n\t}\n\n\tconst intrinsicWidths = entries.map((entry) =>\n\t\ttypeof entry.basis === \"number\" ? entry.basis : measureWidth(context, entry.component, innerWidth),\n\t);\n\tconst widths = allocateStackSizes(entries, intrinsicWidths, innerWidth, node.gap);\n\tconst intrinsicHeights = entries.map((entry, index) =>\n\t\tmeasureHeight(context, entry.component, Math.max(1, widths[index]!)),\n\t);\n\tconst allocatedHeight =\n\t\theight === undefined\n\t\t\t? intrinsicHeights.reduce((max, childHeight) => Math.max(max, childHeight), 0)\n\t\t\t: Math.max(0, height);\n\tconst rect = { x, y, width: safeWidth, height: allocatedHeight };\n\tconst box: LayoutBox = {\n\t\tcomponent,\n\t\trect,\n\t\tclip: intersect(clip, rect),\n\t\tchildren: [],\n\t\tlayer: 0,\n\t};\n\tlet childX = innerX;\n\tfor (let index = 0; index < entries.length; index++) {\n\t\tconst naturalChildHeight = intrinsicHeights[index]!;\n\t\tconst childHeight = node.align === \"stretch\" ? allocatedHeight : Math.min(allocatedHeight, naturalChildHeight);\n\t\tlet childY = y;\n\t\tif (node.align === \"center\") childY += Math.floor((allocatedHeight - childHeight) / 2);\n\t\telse if (node.align === \"end\") childY += allocatedHeight - childHeight;\n\t\tconst childWidth = widths[index]!;\n\t\tif (childWidth === 0) {\n\t\t\tbox.children.push({\n\t\t\t\tcomponent: entries[index]!.component,\n\t\t\t\trect: { x: childX, y: childY, width: 0, height: childHeight },\n\t\t\t\tclip: { x: childX, y: childY, width: 0, height: 0 },\n\t\t\t\tchildren: [],\n\t\t\t\tparent: box,\n\t\t\t\tlayer: 0,\n\t\t\t});\n\t\t} else {\n\t\t\tbox.children.push(\n\t\t\t\twithParent(\n\t\t\t\t\tlayoutComponent(context, entries[index]!.component, childX, childY, childWidth, childHeight, box.clip),\n\t\t\t\t\tbox,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t\tchildX += childWidth + node.gap;\n\t}\n\treturn box;\n}\n\nfunction replaceScrollbarCell(\n\tline: string,\n\tcolumn: number,\n\ttotalWidth: number,\n\treplacement: string,\n\tpreserveTargetBackground: boolean,\n): string {\n\tif (isImageLine(line)) return line;\n\n\tconst graphemeRange = getGraphemeCellRange(line, column);\n\tconst start = graphemeRange?.start ?? column;\n\tconst end = graphemeRange?.end ?? column + 1;\n\tconst before = sliceByColumn(line, 0, start, true);\n\tconst target = sliceByColumn(line, start, end - start, true);\n\tconst after = sliceByColumn(line, end, Math.max(0, totalWidth - end), true);\n\n\tlet targetPrefix = \"\";\n\tlet targetIndex = 0;\n\twhile (targetIndex < target.length) {\n\t\tconst ansi = extractAnsiCode(target, targetIndex);\n\t\tif (!ansi) break;\n\t\ttargetPrefix += ansi.code;\n\t\ttargetIndex += ansi.length;\n\t}\n\tconst beforePadding = \" \".repeat(Math.max(0, start - visibleWidth(before)));\n\tconst cellPaddingBefore = \" \".repeat(Math.max(0, column - start));\n\tconst cellPaddingAfter = \" \".repeat(Math.max(0, end - column - 1));\n\t// Same rule as tui.ts: never send an OSC 8 close to a terminal that has not\n\t// been identified as hyperlink-capable.\n\tconst linkClose = getCapabilities().hyperlinks ? \"\\x1b]8;;\\x07\" : \"\";\n\tconst targetStyle = `\\x1b[0m${linkClose}${preserveTargetBackground ? getActiveBackgroundAnsi(targetPrefix) : \"\"}`;\n\treturn `${before}${beforePadding}${targetStyle}${cellPaddingBefore}${replacement}${cellPaddingAfter}${after}`;\n}\n\nexport function getScrollbarGeometry(box: LayoutBox, includeHiddenAuto = false): ScrollbarGeometry | undefined {\n\tif (!box.scrollView || box.rect.width <= 0 || box.rect.height <= 0) return undefined;\n\n\tconst contentHeight = box.children[0]?.rect.height ?? box.scrollContentLines?.length ?? 0;\n\tconst trackHeight = box.rect.height;\n\tconst canRevealHiddenAuto = includeHiddenAuto && box.scrollView.scrollbar === \"auto\" && contentHeight > trackHeight;\n\tif (!box.scrollView.isScrollbarVisible && !canRevealHiddenAuto) return undefined;\n\n\tconst minThumbHeight = Math.min(2, trackHeight);\n\tconst thumbHeight = Math.max(\n\t\tminThumbHeight,\n\t\tMath.min(trackHeight, Math.round((trackHeight * trackHeight) / contentHeight)),\n\t);\n\tconst maxScrollTop = Math.max(0, contentHeight - trackHeight);\n\tconst maxThumbTop = trackHeight - thumbHeight;\n\tconst thumbOffset = maxScrollTop === 0 ? 0 : Math.round((box.scrollView.scrollTop / maxScrollTop) * maxThumbTop);\n\tconst column = box.rect.x + box.rect.width - 1;\n\tif (column < box.clip.x || column >= box.clip.x + box.clip.width) return undefined;\n\n\treturn {\n\t\tcolumn,\n\t\ttrackTop: box.rect.y,\n\t\ttrackHeight,\n\t\tthumbTop: box.rect.y + thumbOffset,\n\t\tthumbHeight,\n\t\tmaxScrollTop,\n\t};\n}\n\nfunction paintScrollbar(box: LayoutBox, screen: string[], totalWidth: number): void {\n\tconst geometry = getScrollbarGeometry(box);\n\tif (!geometry || !box.scrollView) return;\n\n\tfor (let offset = 0; offset < geometry.trackHeight; offset++) {\n\t\tconst row = geometry.trackTop + offset;\n\t\tif (row < box.clip.y || row >= box.clip.y + box.clip.height || row < 0 || row >= screen.length) continue;\n\t\tconst isThumb = row >= geometry.thumbTop && row < geometry.thumbTop + geometry.thumbHeight;\n\t\tconst replacement = isThumb\n\t\t\t? box.scrollView.scrollbarThumbStyle(box.scrollView.isScrollbarActive ? \"█\" : \"┃\")\n\t\t\t: box.scrollView.scrollbarTrackStyle(\"│\");\n\t\tscreen[row] = replaceScrollbarCell(\n\t\t\tscreen[row] ?? \"\",\n\t\t\tgeometry.column,\n\t\t\ttotalWidth,\n\t\t\treplacement,\n\t\t\tbox.scrollView.scrollbar !== \"always\",\n\t\t);\n\t}\n}\n\nfunction paintUnreadIndicator(box: LayoutBox, screen: string[], totalWidth: number): void {\n\tconst count = box.scrollView?.unreadCount ?? 0;\n\tif (count <= 0 || box.clip.height <= 0) return;\n\tconst row = Math.min(screen.length, box.clip.y + box.clip.height) - 1;\n\tif (row < box.clip.y || row < 0) return;\n\tconst label = `\\x1b[7m +${count} \\x1b[27m`;\n\tconst width = visibleWidth(label);\n\tconst start = Math.max(box.clip.x, box.rect.x + box.rect.width - width);\n\tscreen[row] = compositeTuiLine(screen[row] ?? \"\", label, start, width, totalWidth);\n}\n\nfunction paintBox(box: LayoutBox, screen: string[], totalWidth: number): void {\n\tif (box.lines) {\n\t\tconst offset = box.lineOffset ?? 0;\n\t\tconst firstRow = Math.max(box.rect.y, box.clip.y, 0);\n\t\tconst lastRow = Math.min(box.rect.y + box.rect.height, box.clip.y + box.clip.height, screen.length);\n\t\tfor (let row = firstRow; row < lastRow; row++) {\n\t\t\tconst sourceLine = box.lines[offset + row - box.rect.y];\n\t\t\tif (sourceLine === undefined) continue;\n\t\t\tlet line = sourceLine.replace(OSC133_ZONE_PREFIX, \"\");\n\t\t\tconst imageMetadata = getKittyImageMetadata(line);\n\t\t\tif (imageMetadata) {\n\t\t\t\tconst clipBottom = Math.min(screen.length, box.clip.y + box.clip.height);\n\t\t\t\tconst visibleRows = Math.min(imageMetadata.rows, clipBottom - row);\n\t\t\t\tif (visibleRows < imageMetadata.rows) line = cropKittyImageLine(line, 0, visibleRows);\n\t\t\t}\n\t\t\t// Fast path: a full-width box painting onto an untouched row can use the\n\t\t\t// source line reference directly. Compositing here would rebuild the row\n\t\t\t// string through ANSI/grapheme segmentation every frame; padding is\n\t\t\t// unnecessary because rows are written with erase-line and the final\n\t\t\t// width clamp still truncates over-wide lines.\n\t\t\tif (box.rect.x === 0 && box.rect.width >= totalWidth && (isImageLine(line) || !screen[row])) {\n\t\t\t\tscreen[row] = line;\n\t\t\t} else {\n\t\t\t\tscreen[row] = compositeTuiLine(screen[row] ?? \"\", line, box.rect.x, box.rect.width, totalWidth);\n\t\t\t}\n\t\t}\n\t}\n\tfor (const child of box.children) paintBox(child, screen, totalWidth);\n\n\tif (box.scrollView && box.scrollContentLines && box.scrollView.scrollTop > 0 && box.rect.height > 0) {\n\t\tfor (let imageRow = box.scrollView.scrollTop - 1; imageRow >= 0; imageRow--) {\n\t\t\tconst imageLine = box.scrollContentLines[imageRow] ?? \"\";\n\t\t\tconst metadata = getKittyImageMetadata(imageLine);\n\t\t\tif (metadata) {\n\t\t\t\tconst hiddenRows = box.scrollView.scrollTop - imageRow;\n\t\t\t\tif (hiddenRows < metadata.rows) {\n\t\t\t\t\tconst visibleRows = Math.min(box.rect.height, metadata.rows - hiddenRows);\n\t\t\t\t\tconst cropped = cropKittyImageLine(imageLine, hiddenRows, visibleRows);\n\t\t\t\t\tif (box.rect.x === 0 && box.rect.width >= totalWidth) screen[box.rect.y] = cropped;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (imageLine !== \"\") break;\n\t\t}\n\t}\n\n\tpaintScrollbar(box, screen, totalWidth);\n\tpaintUnreadIndicator(box, screen, totalWidth);\n}\n\nexport function renderLayoutFrame(\n\troot: Component,\n\twidth: number,\n\theight: number,\n\trequestRender: () => void,\n): LayoutFrame {\n\tconst safeWidth = Math.max(1, Math.floor(width));\n\tconst safeHeight = Math.max(1, Math.floor(height));\n\tconst context: LayoutContext = {\n\t\tviewport: { width: safeWidth, height: safeHeight },\n\t\trenderCache: new Map(),\n\t\trequestRender,\n\t\tprimaryScrollView: undefined,\n\t};\n\tconst rootBox = layoutComponent(context, root, 0, 0, safeWidth, safeHeight, {\n\t\tx: 0,\n\t\ty: 0,\n\t\twidth: safeWidth,\n\t\theight: safeHeight,\n\t});\n\tconst lines = Array.from({ length: safeHeight }, () => \"\");\n\tpaintBox(rootBox, lines, safeWidth);\n\treturn {\n\t\troot: rootBox,\n\t\twidth: safeWidth,\n\t\theight: safeHeight,\n\t\tlines,\n\t\t...(context.primaryScrollView === undefined ? {} : { primaryScrollView: context.primaryScrollView }),\n\t};\n}\n\nfunction containsPoint(rect: LayoutRect, x: number, y: number): boolean {\n\treturn x >= rect.x && x < rect.x + rect.width && y >= rect.y && y < rect.y + rect.height;\n}\n\n/** Return the visual hit path from the deepest component to the layout root. */\nexport function getLayoutBoxesAt(frame: LayoutFrame, x: number, y: number): LayoutBox[] {\n\tconst result: Array<{ box: LayoutBox; depth: number }> = [];\n\tconst visit = (box: LayoutBox, depth: number): void => {\n\t\tif (!containsPoint(box.clip, x, y)) return;\n\t\tresult.push({ box, depth });\n\t\tfor (const child of box.children) visit(child, depth + 1);\n\t};\n\tvisit(frame.root, 0);\n\tresult.sort((a, b) => b.box.layer - a.box.layer || b.depth - a.depth);\n\treturn result.map(({ box }) => box);\n}\n\nexport function getScrollViewBox(frame: LayoutFrame, scrollView: ScrollView): LayoutBox | undefined {\n\tconst visit = (box: LayoutBox): LayoutBox | undefined => {\n\t\tif (box.scrollView === scrollView) return box;\n\t\tfor (const child of box.children) {\n\t\t\tconst match = visit(child);\n\t\t\tif (match) return match;\n\t\t}\n\t\treturn undefined;\n\t};\n\treturn visit(frame.root);\n}\n\nexport function getScrollViewsAt(frame: LayoutFrame, x: number, y: number): ScrollView[] {\n\tconst result: Array<{ scrollView: ScrollView; depth: number }> = [];\n\tconst visit = (box: LayoutBox, depth: number): void => {\n\t\tif (!containsPoint(box.clip, x, y)) return;\n\t\tif (box.scrollView && containsPoint(box.rect, x, y)) result.push({ scrollView: box.scrollView, depth });\n\t\tfor (const child of box.children) visit(child, depth + 1);\n\t};\n\tvisit(frame.root, 0);\n\tresult.sort((a, b) => b.depth - a.depth);\n\treturn result.map((entry) => entry.scrollView);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-modifiers.d.ts","sourceRoot":"","sources":["../src/native-modifiers.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AA4CrE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAQjE","sourcesContent":["import { createRequire } from \"node:module\";\nimport * as path from \"node:path\";\nimport { getNativeModuleCandidates } from \"./native-module-path.ts\";\n\nconst cjsRequire = createRequire(import.meta.url);\n\nexport type ModifierKey = \"shift\" | \"command\" | \"control\" | \"option\";\n\ntype NativeModifiersHelper = {\n\tisModifierPressed: (name: ModifierKey) => boolean;\n};\n\nlet nativeModifiersHelper: NativeModifiersHelper | null | undefined;\n\nfunction isNativeModifiersHelper(value: unknown): value is NativeModifiersHelper {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst candidate = (value as { isModifierPressed?: unknown }).isModifierPressed;\n\treturn typeof candidate === \"function\";\n}\n\nfunction loadNativeModifiersHelper(): NativeModifiersHelper | undefined {\n\tif (nativeModifiersHelper !== undefined) return nativeModifiersHelper ?? undefined;\n\tnativeModifiersHelper = null;\n\tconst arch = process.arch;\n\tif (arch !== \"x64\" && arch !== \"arm64\") return undefined;\n\n\tlet nativePath: string;\n\tif (process.platform === \"darwin\") {\n\t\tnativePath = path.join(\"native\", \"darwin\", \"prebuilds\", `darwin-${arch}`, \"darwin-modifiers.node\");\n\t} else if (process.platform === \"win32\") {\n\t\tnativePath = path.join(\"native\", \"win32\", \"prebuilds\", `win32-${arch}`, \"win32-console-mode.node\");\n\t} else {\n\t\treturn undefined;\n\t}\n\n\tfor (const modulePath of getNativeModuleCandidates(nativePath)) {\n\t\ttry {\n\t\t\tconst helper = cjsRequire(modulePath) as unknown;\n\t\t\tif (isNativeModifiersHelper(helper)) {\n\t\t\t\tnativeModifiersHelper = helper;\n\t\t\t\treturn helper;\n\t\t\t}\n\t\t} catch {\n\t\t\t// Try the next possible packaging location.\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport function isNativeModifierPressed(key: ModifierKey): boolean {\n\tconst helper = loadNativeModifiersHelper();\n\tif (!helper) return false;\n\ttry {\n\t\treturn helper.isModifierPressed(key) === true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-modifiers.js","sourceRoot":"","sources":["../src/native-modifiers.ts"],"names":[],"mappings":"AAAA,O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,UAAU,CAAC,EAAE,CAAC;QAChE,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAY,CAAC;YACjD,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;gBACrC,qBAAqB,GAAG,MAAM,CAAC;gBAC/B,OAAO,MAAM,CAAC;YACf,CAAC;QACF,CAAC;QAAC,MAAM,CAAC;YACR,4CAA4C;QAC7C,CAAC;IACF,CAAC;IAED,OAAO,SAAS,CAAC;AAAA,CACjB;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAgB,EAAW;IAClE,MAAM,MAAM,GAAG,yBAAyB,EAAE,CAAC;IAC3C,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,IAAI,CAAC;QACJ,OAAO,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,KAAK,CAAC;IACd,CAAC;AAAA,CACD","sourcesContent":["import { createRequire } from \"node:module\";\nimport * as path from \"node:path\";\nimport { getNativeModuleCandidates } from \"./native-module-path.ts\";\n\nconst cjsRequire = createRequire(import.meta.url);\n\nexport type ModifierKey = \"shift\" | \"command\" | \"control\" | \"option\";\n\ntype NativeModifiersHelper = {\n\tisModifierPressed: (name: ModifierKey) => boolean;\n};\n\nlet nativeModifiersHelper: NativeModifiersHelper | null | undefined;\n\nfunction isNativeModifiersHelper(value: unknown): value is NativeModifiersHelper {\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst candidate = (value as { isModifierPressed?: unknown }).isModifierPressed;\n\treturn typeof candidate === \"function\";\n}\n\nfunction loadNativeModifiersHelper(): NativeModifiersHelper | undefined {\n\tif (nativeModifiersHelper !== undefined) return nativeModifiersHelper ?? undefined;\n\tnativeModifiersHelper = null;\n\tconst arch = process.arch;\n\tif (arch !== \"x64\" && arch !== \"arm64\") return undefined;\n\n\tlet nativePath: string;\n\tif (process.platform === \"darwin\") {\n\t\tnativePath = path.join(\"native\", \"darwin\", \"prebuilds\", `darwin-${arch}`, \"darwin-modifiers.node\");\n\t} else if (process.platform === \"win32\") {\n\t\tnativePath = path.join(\"native\", \"win32\", \"prebuilds\", `win32-${arch}`, \"win32-console-mode.node\");\n\t} else {\n\t\treturn undefined;\n\t}\n\n\tfor (const modulePath of getNativeModuleCandidates(nativePath)) {\n\t\ttry {\n\t\t\tconst helper = cjsRequire(modulePath) as unknown;\n\t\t\tif (isNativeModifiersHelper(helper)) {\n\t\t\t\tnativeModifiersHelper = helper;\n\t\t\t\treturn helper;\n\t\t\t}\n\t\t} catch {\n\t\t\t// Try the next possible packaging location.\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport function isNativeModifierPressed(key: ModifierKey): boolean {\n\tconst helper = loadNativeModifiersHelper();\n\tif (!helper) return false;\n\ttry {\n\t\treturn helper.isModifierPressed(key) === true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface NativeModuleCandidateOptions {
|
|
2
|
-
moduleUrl?: string;
|
|
3
|
-
execPath?: string;
|
|
4
|
-
resolvePackage?: (specifier: string) => string;
|
|
5
|
-
}
|
|
6
|
-
export declare function getNativeModuleCandidates(nativePath: string, options?: NativeModuleCandidateOptions): string[];
|
|
7
|
-
//# sourceMappingURL=native-module-path.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-module-path.d.ts","sourceRoot":"","sources":["../src/native-module-path.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,4BAA4B;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE,CAiBlH","sourcesContent":["import { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst moduleRequire = createRequire(import.meta.url);\nconst TUI_PACKAGE_NAME = \"@earendil-works/pi-tui\";\n\nexport interface NativeModuleCandidateOptions {\n\tmoduleUrl?: string;\n\texecPath?: string;\n\tresolvePackage?: (specifier: string) => string;\n}\n\nexport function getNativeModuleCandidates(nativePath: string, options: NativeModuleCandidateOptions = {}): string[] {\n\tconst moduleDir = dirname(fileURLToPath(options.moduleUrl ?? import.meta.url));\n\tconst candidates: string[] = [];\n\n\ttry {\n\t\tconst packageEntry = (options.resolvePackage ?? moduleRequire.resolve)(TUI_PACKAGE_NAME);\n\t\tcandidates.push(join(dirname(packageEntry), \"..\", nativePath));\n\t} catch {\n\t\t// Standalone binaries do not have an installed TUI package.\n\t}\n\n\tcandidates.push(\n\t\tjoin(moduleDir, \"..\", nativePath),\n\t\tjoin(moduleDir, nativePath),\n\t\tjoin(dirname(options.execPath ?? process.execPath), nativePath),\n\t);\n\treturn Array.from(new Set(candidates));\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-module-path.js","sourceRoot":"","sources":["../src/native-module-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AACrD,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAQlD,MAAM,UAAU,yBAAyB,CAAC,UAAkB,EAAE,OAAO,GAAiC,EAAE,EAAY;IACnH,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,MAAM,UAAU,GAAa,EAAE,CAAC;IAEhC,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,CAAC,OAAO,CAAC,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,CAAC;QACzF,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IAChE,CAAC;IAAC,MAAM,CAAC;QACR,4DAA4D;IAC7D,CAAC;IAED,UAAU,CAAC,IAAI,CACd,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,EACjC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAC/D,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;AAAA,CACvC","sourcesContent":["import { createRequire } from \"node:module\";\nimport { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst moduleRequire = createRequire(import.meta.url);\nconst TUI_PACKAGE_NAME = \"@earendil-works/pi-tui\";\n\nexport interface NativeModuleCandidateOptions {\n\tmoduleUrl?: string;\n\texecPath?: string;\n\tresolvePackage?: (specifier: string) => string;\n}\n\nexport function getNativeModuleCandidates(nativePath: string, options: NativeModuleCandidateOptions = {}): string[] {\n\tconst moduleDir = dirname(fileURLToPath(options.moduleUrl ?? import.meta.url));\n\tconst candidates: string[] = [];\n\n\ttry {\n\t\tconst packageEntry = (options.resolvePackage ?? moduleRequire.resolve)(TUI_PACKAGE_NAME);\n\t\tcandidates.push(join(dirname(packageEntry), \"..\", nativePath));\n\t} catch {\n\t\t// Standalone binaries do not have an installed TUI package.\n\t}\n\n\tcandidates.push(\n\t\tjoin(moduleDir, \"..\", nativePath),\n\t\tjoin(moduleDir, nativePath),\n\t\tjoin(dirname(options.execPath ?? process.execPath), nativePath),\n\t);\n\treturn Array.from(new Set(candidates));\n}\n"]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StdinBuffer buffers input and emits complete sequences.
|
|
3
|
-
*
|
|
4
|
-
* This is necessary because stdin data events can arrive in partial chunks,
|
|
5
|
-
* especially for escape sequences like mouse events. Without buffering,
|
|
6
|
-
* partial sequences can be misinterpreted as regular keypresses.
|
|
7
|
-
*
|
|
8
|
-
* For example, the mouse SGR sequence `\x1b[<35;20;5m` might arrive as:
|
|
9
|
-
* - Event 1: `\x1b`
|
|
10
|
-
* - Event 2: `[<35`
|
|
11
|
-
* - Event 3: `;20;5m`
|
|
12
|
-
*
|
|
13
|
-
* The buffer accumulates these until a complete sequence is detected.
|
|
14
|
-
* Call the `process()` method to feed input data.
|
|
15
|
-
*
|
|
16
|
-
* Based on code from OpenTUI (https://github.com/anomalyco/opentui)
|
|
17
|
-
* MIT License - Copyright (c) 2025 opentui
|
|
18
|
-
*/
|
|
19
|
-
import { EventEmitter } from "events";
|
|
20
|
-
export type StdinBufferOptions = {
|
|
21
|
-
/**
|
|
22
|
-
* Maximum time to wait for an incomplete sequence such as CSI or mouse
|
|
23
|
-
* (default: 50ms).
|
|
24
|
-
*/
|
|
25
|
-
timeout?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Maximum time to wait after a lone ESC before treating it as Escape
|
|
28
|
-
* (default: 10ms). Increase for high-latency Alt+key input (SSH).
|
|
29
|
-
*/
|
|
30
|
-
escapeTimeout?: number;
|
|
31
|
-
};
|
|
32
|
-
export type StdinBufferEventMap = {
|
|
33
|
-
data: [string];
|
|
34
|
-
paste: [string];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Buffers stdin input and emits complete sequences via the 'data' event.
|
|
38
|
-
* Handles partial escape sequences that arrive across multiple chunks.
|
|
39
|
-
*/
|
|
40
|
-
export declare class StdinBuffer extends EventEmitter<StdinBufferEventMap> {
|
|
41
|
-
private buffer;
|
|
42
|
-
private timeout;
|
|
43
|
-
private readonly timeoutMs;
|
|
44
|
-
private readonly escapeTimeoutMs;
|
|
45
|
-
private pasteMode;
|
|
46
|
-
private pasteBuffer;
|
|
47
|
-
private pendingKittyPrintableCodepoint;
|
|
48
|
-
private pendingKittyPrintableAt;
|
|
49
|
-
constructor(options?: StdinBufferOptions);
|
|
50
|
-
process(data: string | Buffer): void;
|
|
51
|
-
private emitDataSequence;
|
|
52
|
-
flush(): string[];
|
|
53
|
-
clear(): void;
|
|
54
|
-
getBuffer(): string;
|
|
55
|
-
destroy(): void;
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=stdin-buffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stdin-buffer.d.ts","sourceRoot":"","sources":["../src/stdin-buffer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAkPtC,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;IACf,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY,CAAC,mBAAmB,CAAC;IACjE,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAA8C;IAC7D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,8BAA8B,CAAqB;IAC3D,OAAO,CAAC,uBAAuB,CAAa;IAE5C,YAAY,OAAO,GAAE,kBAAuB,EAI3C;IAEM,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqG1C;IAED,OAAO,CAAC,gBAAgB;IAoBxB,KAAK,IAAI,MAAM,EAAE,CAchB;IAED,KAAK,IAAI,IAAI,CASZ;IAED,SAAS,IAAI,MAAM,CAElB;IAED,OAAO,IAAI,IAAI,CAEd;CACD","sourcesContent":["/**\n * StdinBuffer buffers input and emits complete sequences.\n *\n * This is necessary because stdin data events can arrive in partial chunks,\n * especially for escape sequences like mouse events. Without buffering,\n * partial sequences can be misinterpreted as regular keypresses.\n *\n * For example, the mouse SGR sequence `\\x1b[<35;20;5m` might arrive as:\n * - Event 1: `\\x1b`\n * - Event 2: `[<35`\n * - Event 3: `;20;5m`\n *\n * The buffer accumulates these until a complete sequence is detected.\n * Call the `process()` method to feed input data.\n *\n * Based on code from OpenTUI (https://github.com/anomalyco/opentui)\n * MIT License - Copyright (c) 2025 opentui\n */\n\nimport { EventEmitter } from \"events\";\n\nconst ESC = \"\\x1b\";\nconst DEFAULT_SEQUENCE_TIMEOUT_MS = 50;\nconst DEFAULT_ESCAPE_TIMEOUT_MS = 10;\nconst BRACKETED_PASTE_START = \"\\x1b[200~\";\nconst BRACKETED_PASTE_END = \"\\x1b[201~\";\n// The Kitty-printable echo dedup only makes sense for the same tick; anything\n// arriving after this window is a real keystroke.\nconst KITTY_DEDUP_WINDOW_MS = 50;\n\n/**\n * Check if a string is a complete escape sequence or needs more data\n */\nfunction isCompleteSequence(data: string): \"complete\" | \"incomplete\" | \"not-escape\" {\n\tif (!data.startsWith(ESC)) {\n\t\treturn \"not-escape\";\n\t}\n\n\tif (data.length === 1) {\n\t\treturn \"incomplete\";\n\t}\n\n\tconst afterEsc = data.slice(1);\n\n\t// CSI sequences: ESC [\n\tif (afterEsc.startsWith(\"[\")) {\n\t\t// Check for old-style mouse sequence: ESC[M + 3 bytes\n\t\tif (afterEsc.startsWith(\"[M\")) {\n\t\t\t// Old-style mouse needs ESC[M + 3 bytes = 6 total\n\t\t\treturn data.length >= 6 ? \"complete\" : \"incomplete\";\n\t\t}\n\t\treturn isCompleteCsiSequence(data);\n\t}\n\n\t// OSC sequences: ESC ]\n\tif (afterEsc.startsWith(\"]\")) {\n\t\treturn isCompleteOscSequence(data);\n\t}\n\n\t// DCS sequences: ESC P ... ESC \\ (includes XTVersion responses)\n\tif (afterEsc.startsWith(\"P\")) {\n\t\treturn isCompleteDcsSequence(data);\n\t}\n\n\t// APC sequences: ESC _ ... ESC \\ (includes Kitty graphics responses)\n\tif (afterEsc.startsWith(\"_\")) {\n\t\treturn isCompleteApcSequence(data);\n\t}\n\n\t// SS3 sequences: ESC O\n\tif (afterEsc.startsWith(\"O\")) {\n\t\t// ESC O followed by a single character\n\t\treturn afterEsc.length >= 2 ? \"complete\" : \"incomplete\";\n\t}\n\n\t// Meta key sequences: ESC followed by a single character\n\tif (afterEsc.length === 1) {\n\t\treturn \"complete\";\n\t}\n\n\t// Unknown escape sequence - treat as complete\n\treturn \"complete\";\n}\n\n/**\n * Check if CSI sequence is complete\n * CSI sequences: ESC [ ... followed by a final byte (0x40-0x7E)\n */\nfunction isCompleteCsiSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}[`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// Need at least ESC [ and one more character\n\tif (data.length < 3) {\n\t\treturn \"incomplete\";\n\t}\n\n\tconst payload = data.slice(2);\n\n\t// CSI sequences end with a byte in the range 0x40-0x7E (@-~)\n\t// This includes all letters and several special characters\n\tconst lastChar = payload[payload.length - 1];\n\tconst lastCharCode = lastChar.charCodeAt(0);\n\n\tif (lastCharCode >= 0x40 && lastCharCode <= 0x7e) {\n\t\t// Special handling for SGR mouse sequences\n\t\t// Format: ESC[<B;X;Ym or ESC[<B;X;YM\n\t\tif (payload.startsWith(\"<\")) {\n\t\t\t// Must have format: <digits;digits;digits[Mm]\n\t\t\tconst mouseMatch = /^<\\d+;\\d+;\\d+[Mm]$/.test(payload);\n\t\t\tif (mouseMatch) {\n\t\t\t\treturn \"complete\";\n\t\t\t}\n\t\t\t// If it ends with M or m but doesn't match the pattern, still incomplete\n\t\t\tif (lastChar === \"M\" || lastChar === \"m\") {\n\t\t\t\t// Check if we have the right structure\n\t\t\t\tconst parts = payload.slice(1, -1).split(\";\");\n\t\t\t\tif (parts.length === 3 && parts.every((p) => /^\\d+$/.test(p))) {\n\t\t\t\t\treturn \"complete\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn \"incomplete\";\n\t\t}\n\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if OSC sequence is complete\n * OSC sequences: ESC ] ... ST (where ST is ESC \\ or BEL)\n */\nfunction isCompleteOscSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}]`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// OSC sequences end with ST (ESC \\) or BEL (\\x07)\n\tif (data.endsWith(`${ESC}\\\\`) || data.endsWith(\"\\x07\")) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if DCS (Device Control String) sequence is complete\n * DCS sequences: ESC P ... ST (where ST is ESC \\)\n * Used for XTVersion responses like ESC P >| ... ESC \\\n */\nfunction isCompleteDcsSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}P`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// DCS sequences end with ST (ESC \\)\n\tif (data.endsWith(`${ESC}\\\\`)) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if APC (Application Program Command) sequence is complete\n * APC sequences: ESC _ ... ST (where ST is ESC \\)\n * Used for Kitty graphics responses like ESC _ G ... ESC \\\n */\nfunction isCompleteApcSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}_`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// APC sequences end with ST (ESC \\)\n\tif (data.endsWith(`${ESC}\\\\`)) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Split accumulated buffer into complete sequences\n */\nfunction parseUnmodifiedKittyPrintableCodepoint(sequence: string): number | undefined {\n\tconst match = sequence.match(/^\\x1b\\[(\\d+)(?::\\d*)?(?::\\d+)?u$/);\n\tif (!match) return undefined;\n\n\tconst codepoint = parseInt(match[1]!, 10);\n\treturn codepoint >= 32 ? codepoint : undefined;\n}\n\nfunction extractCompleteSequences(buffer: string): { sequences: string[]; remainder: string } {\n\tconst sequences: string[] = [];\n\tlet pos = 0;\n\n\twhile (pos < buffer.length) {\n\t\tconst remaining = buffer.slice(pos);\n\n\t\t// Try to extract a sequence starting at this position\n\t\tif (remaining.startsWith(ESC)) {\n\t\t\t// Find the end of this escape sequence\n\t\t\tlet seqEnd = 1;\n\t\t\twhile (seqEnd <= remaining.length) {\n\t\t\t\tconst candidate = remaining.slice(0, seqEnd);\n\t\t\t\tconst status = isCompleteSequence(candidate);\n\n\t\t\t\tif (status === \"complete\") {\n\t\t\t\t\t// WezTerm with enable_kitty_keyboard sends the Escape key press as a\n\t\t\t\t\t// raw '\\x1b' byte (simple text path in encode_kitty, ignoring\n\t\t\t\t\t// DISAMBIGUATE_ESCAPE_CODES) and the release as a full Kitty CSI-u\n\t\t\t\t\t// sequence. These arrive concatenated as '\\x1b\\x1b[27;...u'.\n\t\t\t\t\t// The buffer would normally treat '\\x1b\\x1b' as a complete meta-key\n\t\t\t\t\t// sequence (ESC + single char), leaving '[27;...u' to be typed as\n\t\t\t\t\t// plain text. If the character immediately following '\\x1b\\x1b'\n\t\t\t\t\t// would begin a new escape sequence, emit only the first ESC and\n\t\t\t\t\t// restart from the second.\n\t\t\t\t\tif (candidate === \"\\x1b\\x1b\") {\n\t\t\t\t\t\tconst nextChar = remaining[seqEnd];\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tnextChar === \"[\" || // CSI\n\t\t\t\t\t\t\tnextChar === \"]\" || // OSC\n\t\t\t\t\t\t\tnextChar === \"O\" || // SS3\n\t\t\t\t\t\t\tnextChar === \"P\" || // DCS\n\t\t\t\t\t\t\tnextChar === \"_\" // APC\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tsequences.push(ESC);\n\t\t\t\t\t\t\tpos += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsequences.push(candidate);\n\t\t\t\t\tpos += seqEnd;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (status === \"incomplete\") {\n\t\t\t\t\tseqEnd++;\n\t\t\t\t} else {\n\t\t\t\t\t// Should not happen when starting with ESC\n\t\t\t\t\tsequences.push(candidate);\n\t\t\t\t\tpos += seqEnd;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (seqEnd > remaining.length) {\n\t\t\t\treturn { sequences, remainder: remaining };\n\t\t\t}\n\t\t} else {\n\t\t\t// Not an escape sequence - take a single character\n\t\t\tsequences.push(remaining[0]!);\n\t\t\tpos++;\n\t\t}\n\t}\n\n\treturn { sequences, remainder: \"\" };\n}\n\nexport type StdinBufferOptions = {\n\t/**\n\t * Maximum time to wait for an incomplete sequence such as CSI or mouse\n\t * (default: 50ms).\n\t */\n\ttimeout?: number;\n\t/**\n\t * Maximum time to wait after a lone ESC before treating it as Escape\n\t * (default: 10ms). Increase for high-latency Alt+key input (SSH).\n\t */\n\tescapeTimeout?: number;\n};\n\nexport type StdinBufferEventMap = {\n\tdata: [string];\n\tpaste: [string];\n};\n\n/**\n * Buffers stdin input and emits complete sequences via the 'data' event.\n * Handles partial escape sequences that arrive across multiple chunks.\n */\nexport class StdinBuffer extends EventEmitter<StdinBufferEventMap> {\n\tprivate buffer: string = \"\";\n\tprivate timeout: ReturnType<typeof setTimeout> | null = null;\n\tprivate readonly timeoutMs: number;\n\tprivate readonly escapeTimeoutMs: number;\n\tprivate pasteMode: boolean = false;\n\tprivate pasteBuffer: string = \"\";\n\tprivate pendingKittyPrintableCodepoint: number | undefined;\n\tprivate pendingKittyPrintableAt: number = 0;\n\n\tconstructor(options: StdinBufferOptions = {}) {\n\t\tsuper();\n\t\tthis.timeoutMs = options.timeout ?? DEFAULT_SEQUENCE_TIMEOUT_MS;\n\t\tthis.escapeTimeoutMs = options.escapeTimeout ?? DEFAULT_ESCAPE_TIMEOUT_MS;\n\t}\n\n\tpublic process(data: string | Buffer): void {\n\t\t// Clear any pending timeout\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\n\t\t// Handle high-byte conversion (for compatibility with parseKeypress)\n\t\t// If buffer has single byte > 127, convert to ESC + (byte - 128)\n\t\tlet str: string;\n\t\tif (Buffer.isBuffer(data)) {\n\t\t\tif (data.length === 1 && data[0]! > 127) {\n\t\t\t\tconst byte = data[0]! - 128;\n\t\t\t\tstr = `\\x1b${String.fromCharCode(byte)}`;\n\t\t\t} else {\n\t\t\t\tstr = data.toString();\n\t\t\t}\n\t\t} else {\n\t\t\tstr = data;\n\t\t}\n\n\t\tif (str.length === 0 && this.buffer.length === 0) {\n\t\t\tthis.emitDataSequence(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis.buffer += str;\n\n\t\tif (this.pasteMode) {\n\t\t\tthis.pasteBuffer += this.buffer;\n\t\t\tthis.buffer = \"\";\n\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(BRACKETED_PASTE_END);\n\t\t\tif (endIndex !== -1) {\n\t\t\t\tconst pastedContent = this.pasteBuffer.slice(0, endIndex);\n\t\t\t\tconst remaining = this.pasteBuffer.slice(endIndex + BRACKETED_PASTE_END.length);\n\n\t\t\t\tthis.pasteMode = false;\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\n\t\t\t\tthis.emit(\"paste\", pastedContent);\n\n\t\t\t\tif (remaining.length > 0) {\n\t\t\t\t\tthis.process(remaining);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst startIndex = this.buffer.indexOf(BRACKETED_PASTE_START);\n\t\tif (startIndex !== -1) {\n\t\t\tif (startIndex > 0) {\n\t\t\t\tconst beforePaste = this.buffer.slice(0, startIndex);\n\t\t\t\tconst result = extractCompleteSequences(beforePaste);\n\t\t\t\tfor (const sequence of result.sequences) {\n\t\t\t\t\tthis.emitDataSequence(sequence);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\t\tthis.buffer = this.buffer.slice(startIndex + BRACKETED_PASTE_START.length);\n\t\t\tthis.pasteMode = true;\n\t\t\tthis.pasteBuffer = this.buffer;\n\t\t\tthis.buffer = \"\";\n\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(BRACKETED_PASTE_END);\n\t\t\tif (endIndex !== -1) {\n\t\t\t\tconst pastedContent = this.pasteBuffer.slice(0, endIndex);\n\t\t\t\tconst remaining = this.pasteBuffer.slice(endIndex + BRACKETED_PASTE_END.length);\n\n\t\t\t\tthis.pasteMode = false;\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\n\t\t\t\tthis.emit(\"paste\", pastedContent);\n\n\t\t\t\tif (remaining.length > 0) {\n\t\t\t\t\tthis.process(remaining);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst result = extractCompleteSequences(this.buffer);\n\t\tthis.buffer = result.remainder;\n\n\t\tfor (const sequence of result.sequences) {\n\t\t\tthis.emitDataSequence(sequence);\n\t\t}\n\n\t\tif (this.buffer.length > 0) {\n\t\t\tconst timeoutMs = this.buffer === ESC ? this.escapeTimeoutMs : this.timeoutMs;\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tconst flushed = this.flush();\n\n\t\t\t\tfor (const sequence of flushed) {\n\t\t\t\t\tthis.emitDataSequence(sequence);\n\t\t\t\t}\n\t\t\t}, timeoutMs);\n\t\t}\n\t}\n\n\tprivate emitDataSequence(sequence: string): void {\n\t\tconst rawCodepoint = sequence.length === 1 ? sequence.codePointAt(0) : undefined;\n\t\t// The dedup below exists for terminals (WezTerm) that echo the same\n\t\t// printable twice — the two arrivals are back to back. A matching bare\n\t\t// character arriving later than the window is a real keystroke (e.g.\n\t\t// Kitty protocol degrading mid-session) and must reach the app.\n\t\tif (\n\t\t\trawCodepoint !== undefined &&\n\t\t\trawCodepoint === this.pendingKittyPrintableCodepoint &&\n\t\t\tDate.now() - this.pendingKittyPrintableAt < KITTY_DEDUP_WINDOW_MS\n\t\t) {\n\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pendingKittyPrintableCodepoint = parseUnmodifiedKittyPrintableCodepoint(sequence);\n\t\tthis.pendingKittyPrintableAt = Date.now();\n\t\tthis.emit(\"data\", sequence);\n\t}\n\n\tflush(): string[] {\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\n\t\tif (this.buffer.length === 0) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst sequences = [this.buffer];\n\t\tthis.buffer = \"\";\n\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\treturn sequences;\n\t}\n\n\tclear(): void {\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\t\tthis.buffer = \"\";\n\t\tthis.pasteMode = false;\n\t\tthis.pasteBuffer = \"\";\n\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t}\n\n\tgetBuffer(): string {\n\t\treturn this.buffer;\n\t}\n\n\tdestroy(): void {\n\t\tthis.clear();\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-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IAAI,CAAC,KAAK,EAAE,CAAC;IAAA,CACb;CACD","sourcesContent":["/**\n * StdinBuffer buffers input and emits complete sequences.\n *\n * This is necessary because stdin data events can arrive in partial chunks,\n * especially for escape sequences like mouse events. Without buffering,\n * partial sequences can be misinterpreted as regular keypresses.\n *\n * For example, the mouse SGR sequence `\\x1b[<35;20;5m` might arrive as:\n * - Event 1: `\\x1b`\n * - Event 2: `[<35`\n * - Event 3: `;20;5m`\n *\n * The buffer accumulates these until a complete sequence is detected.\n * Call the `process()` method to feed input data.\n *\n * Based on code from OpenTUI (https://github.com/anomalyco/opentui)\n * MIT License - Copyright (c) 2025 opentui\n */\n\nimport { EventEmitter } from \"events\";\n\nconst ESC = \"\\x1b\";\nconst DEFAULT_SEQUENCE_TIMEOUT_MS = 50;\nconst DEFAULT_ESCAPE_TIMEOUT_MS = 10;\nconst BRACKETED_PASTE_START = \"\\x1b[200~\";\nconst BRACKETED_PASTE_END = \"\\x1b[201~\";\n// The Kitty-printable echo dedup only makes sense for the same tick; anything\n// arriving after this window is a real keystroke.\nconst KITTY_DEDUP_WINDOW_MS = 50;\n\n/**\n * Check if a string is a complete escape sequence or needs more data\n */\nfunction isCompleteSequence(data: string): \"complete\" | \"incomplete\" | \"not-escape\" {\n\tif (!data.startsWith(ESC)) {\n\t\treturn \"not-escape\";\n\t}\n\n\tif (data.length === 1) {\n\t\treturn \"incomplete\";\n\t}\n\n\tconst afterEsc = data.slice(1);\n\n\t// CSI sequences: ESC [\n\tif (afterEsc.startsWith(\"[\")) {\n\t\t// Check for old-style mouse sequence: ESC[M + 3 bytes\n\t\tif (afterEsc.startsWith(\"[M\")) {\n\t\t\t// Old-style mouse needs ESC[M + 3 bytes = 6 total\n\t\t\treturn data.length >= 6 ? \"complete\" : \"incomplete\";\n\t\t}\n\t\treturn isCompleteCsiSequence(data);\n\t}\n\n\t// OSC sequences: ESC ]\n\tif (afterEsc.startsWith(\"]\")) {\n\t\treturn isCompleteOscSequence(data);\n\t}\n\n\t// DCS sequences: ESC P ... ESC \\ (includes XTVersion responses)\n\tif (afterEsc.startsWith(\"P\")) {\n\t\treturn isCompleteDcsSequence(data);\n\t}\n\n\t// APC sequences: ESC _ ... ESC \\ (includes Kitty graphics responses)\n\tif (afterEsc.startsWith(\"_\")) {\n\t\treturn isCompleteApcSequence(data);\n\t}\n\n\t// SS3 sequences: ESC O\n\tif (afterEsc.startsWith(\"O\")) {\n\t\t// ESC O followed by a single character\n\t\treturn afterEsc.length >= 2 ? \"complete\" : \"incomplete\";\n\t}\n\n\t// Meta key sequences: ESC followed by a single character\n\tif (afterEsc.length === 1) {\n\t\treturn \"complete\";\n\t}\n\n\t// Unknown escape sequence - treat as complete\n\treturn \"complete\";\n}\n\n/**\n * Check if CSI sequence is complete\n * CSI sequences: ESC [ ... followed by a final byte (0x40-0x7E)\n */\nfunction isCompleteCsiSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}[`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// Need at least ESC [ and one more character\n\tif (data.length < 3) {\n\t\treturn \"incomplete\";\n\t}\n\n\tconst payload = data.slice(2);\n\n\t// CSI sequences end with a byte in the range 0x40-0x7E (@-~)\n\t// This includes all letters and several special characters\n\tconst lastChar = payload[payload.length - 1];\n\tconst lastCharCode = lastChar.charCodeAt(0);\n\n\tif (lastCharCode >= 0x40 && lastCharCode <= 0x7e) {\n\t\t// Special handling for SGR mouse sequences\n\t\t// Format: ESC[<B;X;Ym or ESC[<B;X;YM\n\t\tif (payload.startsWith(\"<\")) {\n\t\t\t// Must have format: <digits;digits;digits[Mm]\n\t\t\tconst mouseMatch = /^<\\d+;\\d+;\\d+[Mm]$/.test(payload);\n\t\t\tif (mouseMatch) {\n\t\t\t\treturn \"complete\";\n\t\t\t}\n\t\t\t// If it ends with M or m but doesn't match the pattern, still incomplete\n\t\t\tif (lastChar === \"M\" || lastChar === \"m\") {\n\t\t\t\t// Check if we have the right structure\n\t\t\t\tconst parts = payload.slice(1, -1).split(\";\");\n\t\t\t\tif (parts.length === 3 && parts.every((p) => /^\\d+$/.test(p))) {\n\t\t\t\t\treturn \"complete\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn \"incomplete\";\n\t\t}\n\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if OSC sequence is complete\n * OSC sequences: ESC ] ... ST (where ST is ESC \\ or BEL)\n */\nfunction isCompleteOscSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}]`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// OSC sequences end with ST (ESC \\) or BEL (\\x07)\n\tif (data.endsWith(`${ESC}\\\\`) || data.endsWith(\"\\x07\")) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if DCS (Device Control String) sequence is complete\n * DCS sequences: ESC P ... ST (where ST is ESC \\)\n * Used for XTVersion responses like ESC P >| ... ESC \\\n */\nfunction isCompleteDcsSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}P`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// DCS sequences end with ST (ESC \\)\n\tif (data.endsWith(`${ESC}\\\\`)) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Check if APC (Application Program Command) sequence is complete\n * APC sequences: ESC _ ... ST (where ST is ESC \\)\n * Used for Kitty graphics responses like ESC _ G ... ESC \\\n */\nfunction isCompleteApcSequence(data: string): \"complete\" | \"incomplete\" {\n\tif (!data.startsWith(`${ESC}_`)) {\n\t\treturn \"complete\";\n\t}\n\n\t// APC sequences end with ST (ESC \\)\n\tif (data.endsWith(`${ESC}\\\\`)) {\n\t\treturn \"complete\";\n\t}\n\n\treturn \"incomplete\";\n}\n\n/**\n * Split accumulated buffer into complete sequences\n */\nfunction parseUnmodifiedKittyPrintableCodepoint(sequence: string): number | undefined {\n\tconst match = sequence.match(/^\\x1b\\[(\\d+)(?::\\d*)?(?::\\d+)?u$/);\n\tif (!match) return undefined;\n\n\tconst codepoint = parseInt(match[1]!, 10);\n\treturn codepoint >= 32 ? codepoint : undefined;\n}\n\nfunction extractCompleteSequences(buffer: string): { sequences: string[]; remainder: string } {\n\tconst sequences: string[] = [];\n\tlet pos = 0;\n\n\twhile (pos < buffer.length) {\n\t\tconst remaining = buffer.slice(pos);\n\n\t\t// Try to extract a sequence starting at this position\n\t\tif (remaining.startsWith(ESC)) {\n\t\t\t// Find the end of this escape sequence\n\t\t\tlet seqEnd = 1;\n\t\t\twhile (seqEnd <= remaining.length) {\n\t\t\t\tconst candidate = remaining.slice(0, seqEnd);\n\t\t\t\tconst status = isCompleteSequence(candidate);\n\n\t\t\t\tif (status === \"complete\") {\n\t\t\t\t\t// WezTerm with enable_kitty_keyboard sends the Escape key press as a\n\t\t\t\t\t// raw '\\x1b' byte (simple text path in encode_kitty, ignoring\n\t\t\t\t\t// DISAMBIGUATE_ESCAPE_CODES) and the release as a full Kitty CSI-u\n\t\t\t\t\t// sequence. These arrive concatenated as '\\x1b\\x1b[27;...u'.\n\t\t\t\t\t// The buffer would normally treat '\\x1b\\x1b' as a complete meta-key\n\t\t\t\t\t// sequence (ESC + single char), leaving '[27;...u' to be typed as\n\t\t\t\t\t// plain text. If the character immediately following '\\x1b\\x1b'\n\t\t\t\t\t// would begin a new escape sequence, emit only the first ESC and\n\t\t\t\t\t// restart from the second.\n\t\t\t\t\tif (candidate === \"\\x1b\\x1b\") {\n\t\t\t\t\t\tconst nextChar = remaining[seqEnd];\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tnextChar === \"[\" || // CSI\n\t\t\t\t\t\t\tnextChar === \"]\" || // OSC\n\t\t\t\t\t\t\tnextChar === \"O\" || // SS3\n\t\t\t\t\t\t\tnextChar === \"P\" || // DCS\n\t\t\t\t\t\t\tnextChar === \"_\" // APC\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tsequences.push(ESC);\n\t\t\t\t\t\t\tpos += 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsequences.push(candidate);\n\t\t\t\t\tpos += seqEnd;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (status === \"incomplete\") {\n\t\t\t\t\tseqEnd++;\n\t\t\t\t} else {\n\t\t\t\t\t// Should not happen when starting with ESC\n\t\t\t\t\tsequences.push(candidate);\n\t\t\t\t\tpos += seqEnd;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (seqEnd > remaining.length) {\n\t\t\t\treturn { sequences, remainder: remaining };\n\t\t\t}\n\t\t} else {\n\t\t\t// Not an escape sequence - take a single character\n\t\t\tsequences.push(remaining[0]!);\n\t\t\tpos++;\n\t\t}\n\t}\n\n\treturn { sequences, remainder: \"\" };\n}\n\nexport type StdinBufferOptions = {\n\t/**\n\t * Maximum time to wait for an incomplete sequence such as CSI or mouse\n\t * (default: 50ms).\n\t */\n\ttimeout?: number;\n\t/**\n\t * Maximum time to wait after a lone ESC before treating it as Escape\n\t * (default: 10ms). Increase for high-latency Alt+key input (SSH).\n\t */\n\tescapeTimeout?: number;\n};\n\nexport type StdinBufferEventMap = {\n\tdata: [string];\n\tpaste: [string];\n};\n\n/**\n * Buffers stdin input and emits complete sequences via the 'data' event.\n * Handles partial escape sequences that arrive across multiple chunks.\n */\nexport class StdinBuffer extends EventEmitter<StdinBufferEventMap> {\n\tprivate buffer: string = \"\";\n\tprivate timeout: ReturnType<typeof setTimeout> | null = null;\n\tprivate readonly timeoutMs: number;\n\tprivate readonly escapeTimeoutMs: number;\n\tprivate pasteMode: boolean = false;\n\tprivate pasteBuffer: string = \"\";\n\tprivate pendingKittyPrintableCodepoint: number | undefined;\n\tprivate pendingKittyPrintableAt: number = 0;\n\n\tconstructor(options: StdinBufferOptions = {}) {\n\t\tsuper();\n\t\tthis.timeoutMs = options.timeout ?? DEFAULT_SEQUENCE_TIMEOUT_MS;\n\t\tthis.escapeTimeoutMs = options.escapeTimeout ?? DEFAULT_ESCAPE_TIMEOUT_MS;\n\t}\n\n\tpublic process(data: string | Buffer): void {\n\t\t// Clear any pending timeout\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\n\t\t// Handle high-byte conversion (for compatibility with parseKeypress)\n\t\t// If buffer has single byte > 127, convert to ESC + (byte - 128)\n\t\tlet str: string;\n\t\tif (Buffer.isBuffer(data)) {\n\t\t\tif (data.length === 1 && data[0]! > 127) {\n\t\t\t\tconst byte = data[0]! - 128;\n\t\t\t\tstr = `\\x1b${String.fromCharCode(byte)}`;\n\t\t\t} else {\n\t\t\t\tstr = data.toString();\n\t\t\t}\n\t\t} else {\n\t\t\tstr = data;\n\t\t}\n\n\t\tif (str.length === 0 && this.buffer.length === 0) {\n\t\t\tthis.emitDataSequence(\"\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis.buffer += str;\n\n\t\tif (this.pasteMode) {\n\t\t\tthis.pasteBuffer += this.buffer;\n\t\t\tthis.buffer = \"\";\n\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(BRACKETED_PASTE_END);\n\t\t\tif (endIndex !== -1) {\n\t\t\t\tconst pastedContent = this.pasteBuffer.slice(0, endIndex);\n\t\t\t\tconst remaining = this.pasteBuffer.slice(endIndex + BRACKETED_PASTE_END.length);\n\n\t\t\t\tthis.pasteMode = false;\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\n\t\t\t\tthis.emit(\"paste\", pastedContent);\n\n\t\t\t\tif (remaining.length > 0) {\n\t\t\t\t\tthis.process(remaining);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst startIndex = this.buffer.indexOf(BRACKETED_PASTE_START);\n\t\tif (startIndex !== -1) {\n\t\t\tif (startIndex > 0) {\n\t\t\t\tconst beforePaste = this.buffer.slice(0, startIndex);\n\t\t\t\tconst result = extractCompleteSequences(beforePaste);\n\t\t\t\tfor (const sequence of result.sequences) {\n\t\t\t\t\tthis.emitDataSequence(sequence);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\t\tthis.buffer = this.buffer.slice(startIndex + BRACKETED_PASTE_START.length);\n\t\t\tthis.pasteMode = true;\n\t\t\tthis.pasteBuffer = this.buffer;\n\t\t\tthis.buffer = \"\";\n\n\t\t\tconst endIndex = this.pasteBuffer.indexOf(BRACKETED_PASTE_END);\n\t\t\tif (endIndex !== -1) {\n\t\t\t\tconst pastedContent = this.pasteBuffer.slice(0, endIndex);\n\t\t\t\tconst remaining = this.pasteBuffer.slice(endIndex + BRACKETED_PASTE_END.length);\n\n\t\t\t\tthis.pasteMode = false;\n\t\t\t\tthis.pasteBuffer = \"\";\n\t\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\n\t\t\t\tthis.emit(\"paste\", pastedContent);\n\n\t\t\t\tif (remaining.length > 0) {\n\t\t\t\t\tthis.process(remaining);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst result = extractCompleteSequences(this.buffer);\n\t\tthis.buffer = result.remainder;\n\n\t\tfor (const sequence of result.sequences) {\n\t\t\tthis.emitDataSequence(sequence);\n\t\t}\n\n\t\tif (this.buffer.length > 0) {\n\t\t\tconst timeoutMs = this.buffer === ESC ? this.escapeTimeoutMs : this.timeoutMs;\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tconst flushed = this.flush();\n\n\t\t\t\tfor (const sequence of flushed) {\n\t\t\t\t\tthis.emitDataSequence(sequence);\n\t\t\t\t}\n\t\t\t}, timeoutMs);\n\t\t}\n\t}\n\n\tprivate emitDataSequence(sequence: string): void {\n\t\tconst rawCodepoint = sequence.length === 1 ? sequence.codePointAt(0) : undefined;\n\t\t// The dedup below exists for terminals (WezTerm) that echo the same\n\t\t// printable twice — the two arrivals are back to back. A matching bare\n\t\t// character arriving later than the window is a real keystroke (e.g.\n\t\t// Kitty protocol degrading mid-session) and must reach the app.\n\t\tif (\n\t\t\trawCodepoint !== undefined &&\n\t\t\trawCodepoint === this.pendingKittyPrintableCodepoint &&\n\t\t\tDate.now() - this.pendingKittyPrintableAt < KITTY_DEDUP_WINDOW_MS\n\t\t) {\n\t\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pendingKittyPrintableCodepoint = parseUnmodifiedKittyPrintableCodepoint(sequence);\n\t\tthis.pendingKittyPrintableAt = Date.now();\n\t\tthis.emit(\"data\", sequence);\n\t}\n\n\tflush(): string[] {\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\n\t\tif (this.buffer.length === 0) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst sequences = [this.buffer];\n\t\tthis.buffer = \"\";\n\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t\treturn sequences;\n\t}\n\n\tclear(): void {\n\t\tif (this.timeout) {\n\t\t\tclearTimeout(this.timeout);\n\t\t\tthis.timeout = null;\n\t\t}\n\t\tthis.buffer = \"\";\n\t\tthis.pasteMode = false;\n\t\tthis.pasteBuffer = \"\";\n\t\tthis.pendingKittyPrintableCodepoint = undefined;\n\t}\n\n\tgetBuffer(): string {\n\t\treturn this.buffer;\n\t}\n\n\tdestroy(): void {\n\t\tthis.clear();\n\t}\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface RgbColor {
|
|
2
|
-
r: number;
|
|
3
|
-
g: number;
|
|
4
|
-
b: number;
|
|
5
|
-
}
|
|
6
|
-
export type TerminalColorScheme = "dark" | "light";
|
|
7
|
-
export declare function isOsc11BackgroundColorResponse(data: string): boolean;
|
|
8
|
-
export declare function parseOsc11BackgroundColor(data: string): RgbColor | undefined;
|
|
9
|
-
export declare function parseTerminalColorSchemeReport(data: string): TerminalColorScheme | undefined;
|
|
10
|
-
//# sourceMappingURL=terminal-colors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-colors.d.ts","sourceRoot":"","sources":["../src/terminal-colors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAwBnD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CA8B5E;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAM5F","sourcesContent":["export interface RgbColor {\n\tr: number;\n\tg: number;\n\tb: number;\n}\n\nexport type TerminalColorScheme = \"dark\" | \"light\";\n\nfunction hexToRgb(hex: string): RgbColor {\n\tconst normalized = hex.startsWith(\"#\") ? hex.slice(1) : hex;\n\tconst r = parseInt(normalized.slice(0, 2), 16);\n\tconst g = parseInt(normalized.slice(2, 4), 16);\n\tconst b = parseInt(normalized.slice(4, 6), 16);\n\treturn { r, g, b };\n}\n\nfunction parseOscHexChannel(channel: string): number | undefined {\n\tif (!/^[0-9a-f]+$/i.test(channel)) {\n\t\treturn undefined;\n\t}\n\tconst max = 16 ** channel.length - 1;\n\tif (max <= 0) {\n\t\treturn undefined;\n\t}\n\treturn Math.round((parseInt(channel, 16) / max) * 255);\n}\n\nconst OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN = /^\\x1b\\]11;([^\\x07\\x1b]*)(?:\\x07|\\x1b\\\\)$/i;\nconst COLOR_SCHEME_REPORT_PATTERN = /^(?:\\x1b\\[\\?997;(1|2)n)+$/;\n\nexport function isOsc11BackgroundColorResponse(data: string): boolean {\n\treturn OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN.test(data);\n}\n\nexport function parseOsc11BackgroundColor(data: string): RgbColor | undefined {\n\tconst match = data.match(OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\n\tconst value = match[1].trim();\n\tif (value.startsWith(\"#\")) {\n\t\tconst hex = value.slice(1);\n\t\tif (/^[0-9a-f]{6}$/i.test(hex)) {\n\t\t\treturn hexToRgb(value);\n\t\t}\n\t\tif (/^[0-9a-f]{12}$/i.test(hex)) {\n\t\t\tconst r = parseOscHexChannel(hex.slice(0, 4));\n\t\t\tconst g = parseOscHexChannel(hex.slice(4, 8));\n\t\t\tconst b = parseOscHexChannel(hex.slice(8, 12));\n\t\t\treturn r !== undefined && g !== undefined && b !== undefined ? { r, g, b } : undefined;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tconst rgbValue = value.replace(/^rgba?:/i, \"\");\n\tconst [red, green, blue] = rgbValue.split(\"/\");\n\tif (red === undefined || green === undefined || blue === undefined) {\n\t\treturn undefined;\n\t}\n\tconst r = parseOscHexChannel(red);\n\tconst g = parseOscHexChannel(green);\n\tconst b = parseOscHexChannel(blue);\n\treturn r !== undefined && g !== undefined && b !== undefined ? { r, g, b } : undefined;\n}\n\nexport function parseTerminalColorSchemeReport(data: string): TerminalColorScheme | undefined {\n\tconst match = data.match(COLOR_SCHEME_REPORT_PATTERN);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\treturn match[1] === \"2\" ? \"light\" : \"dark\";\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-colors.js","sourceRoot":"","sources":["../src/terminal-colors.ts"],"names":[],"mappings":"AAQA,SAAS,QAAQ,CAAC,GAAW,EAAY;IACxC,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAA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,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAAA,CACvF;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAY,EAAmC;IAC7F,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAAA,CAC3C","sourcesContent":["export interface RgbColor {\n\tr: number;\n\tg: number;\n\tb: number;\n}\n\nexport type TerminalColorScheme = \"dark\" | \"light\";\n\nfunction hexToRgb(hex: string): RgbColor {\n\tconst normalized = hex.startsWith(\"#\") ? hex.slice(1) : hex;\n\tconst r = parseInt(normalized.slice(0, 2), 16);\n\tconst g = parseInt(normalized.slice(2, 4), 16);\n\tconst b = parseInt(normalized.slice(4, 6), 16);\n\treturn { r, g, b };\n}\n\nfunction parseOscHexChannel(channel: string): number | undefined {\n\tif (!/^[0-9a-f]+$/i.test(channel)) {\n\t\treturn undefined;\n\t}\n\tconst max = 16 ** channel.length - 1;\n\tif (max <= 0) {\n\t\treturn undefined;\n\t}\n\treturn Math.round((parseInt(channel, 16) / max) * 255);\n}\n\nconst OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN = /^\\x1b\\]11;([^\\x07\\x1b]*)(?:\\x07|\\x1b\\\\)$/i;\nconst COLOR_SCHEME_REPORT_PATTERN = /^(?:\\x1b\\[\\?997;(1|2)n)+$/;\n\nexport function isOsc11BackgroundColorResponse(data: string): boolean {\n\treturn OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN.test(data);\n}\n\nexport function parseOsc11BackgroundColor(data: string): RgbColor | undefined {\n\tconst match = data.match(OSC11_BACKGROUND_COLOR_RESPONSE_PATTERN);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\n\tconst value = match[1].trim();\n\tif (value.startsWith(\"#\")) {\n\t\tconst hex = value.slice(1);\n\t\tif (/^[0-9a-f]{6}$/i.test(hex)) {\n\t\t\treturn hexToRgb(value);\n\t\t}\n\t\tif (/^[0-9a-f]{12}$/i.test(hex)) {\n\t\t\tconst r = parseOscHexChannel(hex.slice(0, 4));\n\t\t\tconst g = parseOscHexChannel(hex.slice(4, 8));\n\t\t\tconst b = parseOscHexChannel(hex.slice(8, 12));\n\t\t\treturn r !== undefined && g !== undefined && b !== undefined ? { r, g, b } : undefined;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tconst rgbValue = value.replace(/^rgba?:/i, \"\");\n\tconst [red, green, blue] = rgbValue.split(\"/\");\n\tif (red === undefined || green === undefined || blue === undefined) {\n\t\treturn undefined;\n\t}\n\tconst r = parseOscHexChannel(red);\n\tconst g = parseOscHexChannel(green);\n\tconst b = parseOscHexChannel(blue);\n\treturn r !== undefined && g !== undefined && b !== undefined ? { r, g, b } : undefined;\n}\n\nexport function parseTerminalColorSchemeReport(data: string): TerminalColorScheme | undefined {\n\tconst match = data.match(COLOR_SCHEME_REPORT_PATTERN);\n\tif (!match) {\n\t\treturn undefined;\n\t}\n\treturn match[1] === \"2\" ? \"light\" : \"dark\";\n}\n"]}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export type ImageProtocol = "kitty" | "iterm2" | null;
|
|
2
|
-
export interface TerminalCapabilities {
|
|
3
|
-
images: ImageProtocol;
|
|
4
|
-
trueColor: boolean;
|
|
5
|
-
hyperlinks: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface CellDimensions {
|
|
8
|
-
widthPx: number;
|
|
9
|
-
heightPx: number;
|
|
10
|
-
}
|
|
11
|
-
export interface ImageDimensions {
|
|
12
|
-
widthPx: number;
|
|
13
|
-
heightPx: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ImageRenderOptions {
|
|
16
|
-
maxWidthCells?: number;
|
|
17
|
-
maxHeightCells?: number;
|
|
18
|
-
preserveAspectRatio?: boolean;
|
|
19
|
-
/** Kitty image ID. If provided, reuses/replaces existing image with this ID. */
|
|
20
|
-
imageId?: number;
|
|
21
|
-
/** Whether Kitty should apply its default cursor movement after placement. */
|
|
22
|
-
moveCursor?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare function getCellDimensions(): CellDimensions;
|
|
25
|
-
export declare function setCellDimensions(dims: CellDimensions): void;
|
|
26
|
-
export declare function detectCapabilities(tmuxForwardsHyperlink?: () => boolean): TerminalCapabilities;
|
|
27
|
-
export declare function getCapabilities(): TerminalCapabilities;
|
|
28
|
-
export declare function resetCapabilitiesCache(): void;
|
|
29
|
-
/** Override selected auto-detected capabilities. */
|
|
30
|
-
export declare function setCapabilityOverrides(overrides: Partial<TerminalCapabilities>): void;
|
|
31
|
-
/** Override the cached capabilities. Useful in tests to exercise both code paths. */
|
|
32
|
-
export declare function setCapabilities(caps: TerminalCapabilities): void;
|
|
33
|
-
export declare function isImageLine(line: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Generate a random image ID for Kitty graphics protocol.
|
|
36
|
-
* Uses random IDs to avoid collisions between different module instances
|
|
37
|
-
* (e.g., main app vs extensions).
|
|
38
|
-
*/
|
|
39
|
-
export declare function allocateImageId(): number;
|
|
40
|
-
export declare function encodeKitty(base64Data: string, options?: {
|
|
41
|
-
columns?: number;
|
|
42
|
-
rows?: number;
|
|
43
|
-
imageId?: number;
|
|
44
|
-
/** Whether Kitty should apply its default cursor movement after placement. Default: true. */
|
|
45
|
-
moveCursor?: boolean;
|
|
46
|
-
}): string;
|
|
47
|
-
/**
|
|
48
|
-
* Delete a Kitty graphics image by ID.
|
|
49
|
-
* Uses uppercase 'I' to also free the image data.
|
|
50
|
-
*/
|
|
51
|
-
export declare function deleteKittyImage(imageId: number): string;
|
|
52
|
-
/**
|
|
53
|
-
* Delete all visible Kitty graphics images.
|
|
54
|
-
* Uses uppercase 'A' to also free the image data.
|
|
55
|
-
*/
|
|
56
|
-
export declare function deleteAllKittyImages(): string;
|
|
57
|
-
/** Delete all visible Kitty placements while retaining their uploaded image data. */
|
|
58
|
-
export declare function deleteAllKittyPlacements(): string;
|
|
59
|
-
export declare function encodeITerm2(base64Data: string, options?: {
|
|
60
|
-
width?: number | string;
|
|
61
|
-
height?: number | string;
|
|
62
|
-
name?: string;
|
|
63
|
-
preserveAspectRatio?: boolean;
|
|
64
|
-
inline?: boolean;
|
|
65
|
-
}): string;
|
|
66
|
-
export interface ImageCellSize {
|
|
67
|
-
columns: number;
|
|
68
|
-
rows: number;
|
|
69
|
-
}
|
|
70
|
-
export interface KittyImageMetadata extends ImageCellSize {
|
|
71
|
-
imageId: number;
|
|
72
|
-
widthPx: number;
|
|
73
|
-
heightPx: number;
|
|
74
|
-
}
|
|
75
|
-
export interface KittyImagePlacement {
|
|
76
|
-
imageId: number;
|
|
77
|
-
transmissionGeneration: number;
|
|
78
|
-
transmissionBytes: number;
|
|
79
|
-
estimatedDecodedBytes: number;
|
|
80
|
-
sequence: string;
|
|
81
|
-
replacementLine: string;
|
|
82
|
-
}
|
|
83
|
-
export declare function registerKittyImageMetadata(metadata: KittyImageMetadata): void;
|
|
84
|
-
export declare function getKittyImageMetadata(line: string): KittyImageMetadata | undefined;
|
|
85
|
-
/** Build a placement-only command for an image line emitted by {@link renderImage}. */
|
|
86
|
-
export declare function getKittyImagePlacement(line: string): KittyImagePlacement | undefined;
|
|
87
|
-
export declare function cropKittyImageLine(line: string, hiddenRows: number, visibleRows: number): string;
|
|
88
|
-
export declare function calculateImageCellSize(imageDimensions: ImageDimensions, maxWidthCells: number, maxHeightCells?: number, cellDimensions?: CellDimensions): ImageCellSize;
|
|
89
|
-
export declare function calculateImageRows(imageDimensions: ImageDimensions, targetWidthCells: number, cellDimensions?: CellDimensions): number;
|
|
90
|
-
export declare function getPngDimensions(base64Data: string): ImageDimensions | null;
|
|
91
|
-
export declare function getJpegDimensions(base64Data: string): ImageDimensions | null;
|
|
92
|
-
export declare function getGifDimensions(base64Data: string): ImageDimensions | null;
|
|
93
|
-
export declare function getWebpDimensions(base64Data: string): ImageDimensions | null;
|
|
94
|
-
export declare function getImageDimensions(base64Data: string, mimeType: string): ImageDimensions | null;
|
|
95
|
-
export declare function renderImage(base64Data: string, imageDimensions: ImageDimensions, options?: ImageRenderOptions): {
|
|
96
|
-
sequence: string;
|
|
97
|
-
columns: number;
|
|
98
|
-
rows: number;
|
|
99
|
-
imageId?: number;
|
|
100
|
-
} | null;
|
|
101
|
-
/**
|
|
102
|
-
* Wrap text in an OSC 8 hyperlink sequence.
|
|
103
|
-
* The text is rendered as a clickable hyperlink in terminals that support OSC 8
|
|
104
|
-
* (Ghostty, Kitty, WezTerm, iTerm2, VSCode, and others).
|
|
105
|
-
* In terminals that do not support OSC 8, the escape sequences are ignored
|
|
106
|
-
* and only the plain text is displayed.
|
|
107
|
-
*
|
|
108
|
-
* @param text - The visible text to display
|
|
109
|
-
* @param url - The URL to link to
|
|
110
|
-
*/
|
|
111
|
-
export declare function hyperlink(text: string, url: string): string;
|
|
112
|
-
/**
|
|
113
|
-
* Text fallback when the terminal cannot render inline images.
|
|
114
|
-
* Absolute paths are shown shortened (~/...) and, when OSC 8 hyperlinks are
|
|
115
|
-
* available, linked to file:// so the full path remains openable.
|
|
116
|
-
*/
|
|
117
|
-
export declare function imageFallback(mimeType: string, dimensions?: ImageDimensions, filename?: string): string;
|
|
118
|
-
//# sourceMappingURL=terminal-image.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-image.d.ts","sourceRoot":"","sources":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GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3D;AAWD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAavG","sourcesContent":["import { execSync } from \"node:child_process\";\nimport { homedir } from \"node:os\";\nimport { isAbsolute } from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\n\nexport type ImageProtocol = \"kitty\" | \"iterm2\" | null;\n\nexport interface TerminalCapabilities {\n\timages: ImageProtocol;\n\ttrueColor: boolean;\n\thyperlinks: boolean;\n}\n\nexport interface CellDimensions {\n\twidthPx: number;\n\theightPx: number;\n}\n\nexport interface ImageDimensions {\n\twidthPx: number;\n\theightPx: number;\n}\n\nexport interface ImageRenderOptions {\n\tmaxWidthCells?: number;\n\tmaxHeightCells?: number;\n\tpreserveAspectRatio?: boolean;\n\t/** Kitty image ID. If provided, reuses/replaces existing image with this ID. */\n\timageId?: number;\n\t/** Whether Kitty should apply its default cursor movement after placement. */\n\tmoveCursor?: boolean;\n}\n\nlet cachedCapabilities: TerminalCapabilities | null = null;\nlet capabilityOverrides: Partial<TerminalCapabilities> = {};\n\n// Default cell dimensions - updated by TUI when terminal responds to query\nlet cellDimensions: CellDimensions = { widthPx: 9, heightPx: 18 };\n\nexport function getCellDimensions(): CellDimensions {\n\treturn cellDimensions;\n}\n\nexport function setCellDimensions(dims: CellDimensions): void {\n\tcellDimensions = dims;\n}\n\n/**\n * Checks whether the attached tmux client forwards OSC 8 hyperlinks to the\n * outer terminal. tmux only re-emits them when its `client_termfeatures` lists\n * `hyperlinks`, and strips them otherwise. On any error fallbacks `false`.\n */\nfunction probeTmuxHyperlinks(): boolean {\n\ttry {\n\t\tconst termfeatures = execSync(\"tmux display-message -p '#{client_termfeatures}'\", {\n\t\t\tencoding: \"utf8\",\n\t\t\ttimeout: 250,\n\t\t\tstdio: [\"ignore\", \"pipe\", \"ignore\"],\n\t\t});\n\t\treturn termfeatures\n\t\t\t.split(\",\")\n\t\t\t.map((feature) => feature.trim())\n\t\t\t.includes(\"hyperlinks\");\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nfunction detectCapabilitiesFromEnvironment(tmuxForwardsHyperlink: () => boolean): TerminalCapabilities {\n\tconst termProgram = process.env.TERM_PROGRAM?.toLowerCase() || \"\";\n\tconst terminalEmulator = process.env.TERMINAL_EMULATOR?.toLowerCase() || \"\";\n\tconst term = process.env.TERM?.toLowerCase() || \"\";\n\tconst colorTerm = process.env.COLORTERM?.toLowerCase() || \"\";\n\tconst hasTrueColorHint = colorTerm === \"truecolor\" || colorTerm === \"24bit\";\n\tconst isWindowsConsole = process.platform === \"win32\";\n\n\t// Emit OSC 8 hyperlinks only when tmux confirms it forwards.\n\t// Image protocols are unreliable under tmux, so leave `images: null`.\n\tif (process.env.TMUX || term.startsWith(\"tmux\")) {\n\t\treturn { images: null, trueColor: hasTrueColorHint, hyperlinks: tmuxForwardsHyperlink() };\n\t}\n\n\t// screen does not forward OSC 8 hyperlinks, so keep them off there.\n\tif (term.startsWith(\"screen\")) {\n\t\treturn { images: null, trueColor: hasTrueColorHint, hyperlinks: false };\n\t}\n\n\tif (process.env.KITTY_WINDOW_ID || termProgram === \"kitty\") {\n\t\treturn { images: \"kitty\", trueColor: true, hyperlinks: true };\n\t}\n\n\tif (termProgram === \"ghostty\" || term.includes(\"ghostty\") || process.env.GHOSTTY_RESOURCES_DIR) {\n\t\treturn { images: \"kitty\", trueColor: true, hyperlinks: true };\n\t}\n\n\tif (process.env.WEZTERM_PANE || termProgram === \"wezterm\") {\n\t\treturn { images: \"kitty\", trueColor: true, hyperlinks: true };\n\t}\n\n\t// Warp supports the Kitty graphics protocol and OSC 8 hyperlinks.\n\tif (termProgram === \"warpterminal\" || process.env.WARP_SESSION_ID || process.env.WARP_TERMINAL_SESSION_UUID) {\n\t\treturn { images: \"kitty\", trueColor: true, hyperlinks: true };\n\t}\n\n\tif (process.env.ITERM_SESSION_ID || termProgram === \"iterm.app\") {\n\t\treturn { images: \"iterm2\", trueColor: true, hyperlinks: true };\n\t}\n\n\tif (process.env.WT_SESSION) {\n\t\treturn { images: null, trueColor: true, hyperlinks: true };\n\t}\n\n\tif (termProgram === \"alacritty\" || termProgram === \"vscode\" || termProgram === \"zed\") {\n\t\treturn { images: null, trueColor: true, hyperlinks: true };\n\t}\n\n\tif (terminalEmulator === \"jetbrains-jediterm\") {\n\t\treturn { images: null, trueColor: true, hyperlinks: false };\n\t}\n\n\t// Windows Terminal does not always set WT_SESSION, for example when it hosts\n\t// a cmd.exe launched directly from Win+R. Modern Windows consoles support\n\t// truecolor; keep hyperlinks off unless we positively detected support above.\n\tif (isWindowsConsole) {\n\t\treturn { images: null, trueColor: true, hyperlinks: false };\n\t}\n\n\t// Unknown terminal: be conservative. OSC 8 is rendered invisibly as \"just\n\t// text\" on terminals that swallow it, which means the URL disappears from\n\t// the rendered output. Default to the legacy `text (url)` behavior unless we\n\t// have positively identified a hyperlink-capable terminal above.\n\treturn { images: null, trueColor: hasTrueColorHint, hyperlinks: false };\n}\n\nfunction parseBooleanCapabilityOverride(value: string | undefined): boolean | undefined {\n\treturn value === \"1\" ? true : value === \"0\" ? false : undefined;\n}\n\nexport function detectCapabilities(tmuxForwardsHyperlink: () => boolean = probeTmuxHyperlinks): TerminalCapabilities {\n\tconst hyperlinks = parseBooleanCapabilityOverride(process.env.PI_HYPERLINKS);\n\tconst detected = detectCapabilitiesFromEnvironment(\n\t\thyperlinks === undefined ? tmuxForwardsHyperlink : () => hyperlinks,\n\t);\n\tconst imageProtocol = process.env.PI_IMAGE_PROTOCOL?.toLowerCase();\n\tconst images =\n\t\timageProtocol === \"kitty\" || imageProtocol === \"iterm2\"\n\t\t\t? imageProtocol\n\t\t\t: imageProtocol === \"none\" || imageProtocol === \"0\"\n\t\t\t\t? null\n\t\t\t\t: undefined;\n\tconst trueColor = parseBooleanCapabilityOverride(process.env.PI_TRUE_COLOR);\n\treturn {\n\t\t...detected,\n\t\t...(images !== undefined ? { images } : {}),\n\t\t...(trueColor !== undefined ? { trueColor } : {}),\n\t\t...(hyperlinks !== undefined ? { hyperlinks } : {}),\n\t};\n}\n\nexport function getCapabilities(): TerminalCapabilities {\n\tif (!cachedCapabilities) {\n\t\tconst hyperlinks = capabilityOverrides.hyperlinks;\n\t\tcachedCapabilities = {\n\t\t\t...detectCapabilities(hyperlinks === undefined ? undefined : () => hyperlinks),\n\t\t\t...capabilityOverrides,\n\t\t};\n\t}\n\treturn cachedCapabilities;\n}\n\nexport function resetCapabilitiesCache(): void {\n\tcachedCapabilities = null;\n}\n\n/** Override selected auto-detected capabilities. */\nexport function setCapabilityOverrides(overrides: Partial<TerminalCapabilities>): void {\n\tif (\n\t\tcapabilityOverrides.images === overrides.images &&\n\t\tcapabilityOverrides.trueColor === overrides.trueColor &&\n\t\tcapabilityOverrides.hyperlinks === overrides.hyperlinks\n\t) {\n\t\treturn;\n\t}\n\tcapabilityOverrides = { ...overrides };\n\tcachedCapabilities = null;\n}\n\n/** Override the cached capabilities. Useful in tests to exercise both code paths. */\nexport function setCapabilities(caps: TerminalCapabilities): void {\n\tcachedCapabilities = caps;\n}\n\nconst KITTY_PREFIX = \"\\x1b_G\";\nconst ITERM2_PREFIX = \"\\x1b]1337;File=\";\n\nexport function isImageLine(line: string): boolean {\n\t// Fast path: sequence at line start (single-row images)\n\tif (line.startsWith(KITTY_PREFIX) || line.startsWith(ITERM2_PREFIX)) {\n\t\treturn true;\n\t}\n\t// Slow path: sequence elsewhere (multi-row images have cursor-up prefix)\n\treturn line.includes(KITTY_PREFIX) || line.includes(ITERM2_PREFIX);\n}\n\n/**\n * Generate a random image ID for Kitty graphics protocol.\n * Uses random IDs to avoid collisions between different module instances\n * (e.g., main app vs extensions).\n */\nexport function allocateImageId(): number {\n\t// Use random ID in range [1, 0xffffffff] to avoid collisions\n\treturn Math.floor(Math.random() * 0xfffffffe) + 1;\n}\n\nexport function encodeKitty(\n\tbase64Data: string,\n\toptions: {\n\t\tcolumns?: number;\n\t\trows?: number;\n\t\timageId?: number;\n\t\t/** Whether Kitty should apply its default cursor movement after placement. Default: true. */\n\t\tmoveCursor?: boolean;\n\t} = {},\n): string {\n\tconst CHUNK_SIZE = 4096;\n\n\tconst params: string[] = [\"a=T\", \"f=100\", \"q=2\"];\n\n\tif (options.moveCursor === false) params.push(\"C=1\");\n\tif (options.columns) params.push(`c=${options.columns}`);\n\tif (options.rows) params.push(`r=${options.rows}`);\n\tif (options.imageId) params.push(`i=${options.imageId}`);\n\n\tif (base64Data.length <= CHUNK_SIZE) {\n\t\treturn `\\x1b_G${params.join(\",\")};${base64Data}\\x1b\\\\`;\n\t}\n\n\tconst chunks: string[] = [];\n\tlet offset = 0;\n\tlet isFirst = true;\n\n\twhile (offset < base64Data.length) {\n\t\tconst chunk = base64Data.slice(offset, offset + CHUNK_SIZE);\n\t\tconst isLast = offset + CHUNK_SIZE >= base64Data.length;\n\n\t\tif (isFirst) {\n\t\t\tchunks.push(`\\x1b_G${params.join(\",\")},m=1;${chunk}\\x1b\\\\`);\n\t\t\tisFirst = false;\n\t\t} else if (isLast) {\n\t\t\tchunks.push(`\\x1b_Gm=0;${chunk}\\x1b\\\\`);\n\t\t} else {\n\t\t\tchunks.push(`\\x1b_Gm=1;${chunk}\\x1b\\\\`);\n\t\t}\n\n\t\toffset += CHUNK_SIZE;\n\t}\n\n\treturn chunks.join(\"\");\n}\n\n/**\n * Delete a Kitty graphics image by ID.\n * Uses uppercase 'I' to also free the image data.\n */\nexport function deleteKittyImage(imageId: number): string {\n\treturn `\\x1b_Ga=d,d=I,i=${imageId},q=2\\x1b\\\\`;\n}\n\n/**\n * Delete all visible Kitty graphics images.\n * Uses uppercase 'A' to also free the image data.\n */\nexport function deleteAllKittyImages(): string {\n\treturn \"\\x1b_Ga=d,d=A,q=2\\x1b\\\\\";\n}\n\n/** Delete all visible Kitty placements while retaining their uploaded image data. */\nexport function deleteAllKittyPlacements(): string {\n\treturn \"\\x1b_Ga=d,d=a,q=2\\x1b\\\\\";\n}\n\nexport function encodeITerm2(\n\tbase64Data: string,\n\toptions: {\n\t\twidth?: number | string;\n\t\theight?: number | string;\n\t\tname?: string;\n\t\tpreserveAspectRatio?: boolean;\n\t\tinline?: boolean;\n\t} = {},\n): string {\n\tconst params: string[] = [\n\t\t`inline=${options.inline !== false ? 1 : 0}`,\n\t\t`size=${Buffer.byteLength(base64Data, \"base64\")}`,\n\t];\n\n\tif (options.width !== undefined) params.push(`width=${options.width}`);\n\tif (options.height !== undefined) params.push(`height=${options.height}`);\n\tif (options.name) {\n\t\tconst nameBase64 = Buffer.from(options.name).toString(\"base64\");\n\t\tparams.push(`name=${nameBase64}`);\n\t}\n\tif (options.preserveAspectRatio === false) {\n\t\tparams.push(\"preserveAspectRatio=0\");\n\t}\n\n\treturn `\\x1b]1337;File=${params.join(\";\")}:${base64Data}\\x07`;\n}\n\nexport interface ImageCellSize {\n\tcolumns: number;\n\trows: number;\n}\n\nexport interface KittyImageMetadata extends ImageCellSize {\n\timageId: number;\n\twidthPx: number;\n\theightPx: number;\n}\n\ninterface RegisteredKittyImageMetadata extends KittyImageMetadata {\n\ttransmissionGeneration: number;\n}\n\nexport interface KittyImagePlacement {\n\timageId: number;\n\ttransmissionGeneration: number;\n\ttransmissionBytes: number;\n\testimatedDecodedBytes: number;\n\tsequence: string;\n\treplacementLine: string;\n}\n\nconst kittyImageMetadata = new Map<number, RegisteredKittyImageMetadata>();\nlet kittyTransmissionGeneration = 0;\n\nexport function registerKittyImageMetadata(metadata: KittyImageMetadata): void {\n\tkittyTransmissionGeneration += 1;\n\tkittyImageMetadata.delete(metadata.imageId);\n\tkittyImageMetadata.set(metadata.imageId, { ...metadata, transmissionGeneration: kittyTransmissionGeneration });\n\tif (kittyImageMetadata.size > 1000) {\n\t\tconst oldestImageId = kittyImageMetadata.keys().next().value;\n\t\tif (oldestImageId !== undefined) kittyImageMetadata.delete(oldestImageId);\n\t}\n}\n\nfunction getRegisteredKittyImageMetadata(line: string): RegisteredKittyImageMetadata | undefined {\n\tconst controls = /\\x1b_G([^;]*);/.exec(line)?.[1];\n\tif (!controls) return undefined;\n\tconst imageId = /(?:^|,)i=(\\d+)(?:,|$)/.exec(controls)?.[1];\n\treturn imageId === undefined ? undefined : kittyImageMetadata.get(Number.parseInt(imageId, 10));\n}\n\nexport function getKittyImageMetadata(line: string): KittyImageMetadata | undefined {\n\tconst metadata = getRegisteredKittyImageMetadata(line);\n\tif (!metadata) return undefined;\n\treturn {\n\t\timageId: metadata.imageId,\n\t\tcolumns: metadata.columns,\n\t\trows: metadata.rows,\n\t\twidthPx: metadata.widthPx,\n\t\theightPx: metadata.heightPx,\n\t};\n}\n\nconst KITTY_PLACEMENT_CONTROL_KEYS = new Set([\n\t\"i\",\n\t\"p\",\n\t\"x\",\n\t\"y\",\n\t\"w\",\n\t\"h\",\n\t\"X\",\n\t\"Y\",\n\t\"c\",\n\t\"r\",\n\t\"C\",\n\t\"U\",\n\t\"z\",\n\t\"P\",\n\t\"Q\",\n\t\"H\",\n\t\"V\",\n]);\n\n/** Build a placement-only command for an image line emitted by {@link renderImage}. */\nexport function getKittyImagePlacement(line: string): KittyImagePlacement | undefined {\n\tconst match = /\\x1b_G([^;]*);/.exec(line);\n\tconst metadata = getRegisteredKittyImageMetadata(line);\n\tif (!match || !metadata) return undefined;\n\n\tlet commandStart = match.index;\n\tlet commandControls = match[1];\n\tlet transmissionEnd: number;\n\twhile (true) {\n\t\tconst terminator = line.indexOf(\"\\x1b\\\\\", commandStart + KITTY_PREFIX.length);\n\t\tif (terminator === -1) return undefined;\n\t\ttransmissionEnd = terminator + 2;\n\t\tif (!/(?:^|,)m=1(?:,|$)/.test(commandControls)) break;\n\t\tcommandStart = transmissionEnd;\n\t\tif (!line.startsWith(KITTY_PREFIX, commandStart)) return undefined;\n\t\tconst controlsEnd = line.indexOf(\";\", commandStart + KITTY_PREFIX.length);\n\t\tif (controlsEnd === -1) return undefined;\n\t\tcommandControls = line.slice(commandStart + KITTY_PREFIX.length, controlsEnd);\n\t}\n\n\tconst controls = match[1]\n\t\t.split(\",\")\n\t\t.filter((control) => KITTY_PLACEMENT_CONTROL_KEYS.has(control.split(\"=\", 1)[0] ?? \"\"));\n\tconst sequence = `\\x1b_Ga=p,q=2,${controls.join(\",\")}\\x1b\\\\`;\n\treturn {\n\t\timageId: metadata.imageId,\n\t\ttransmissionGeneration: metadata.transmissionGeneration,\n\t\ttransmissionBytes: transmissionEnd - match.index,\n\t\testimatedDecodedBytes: metadata.widthPx * metadata.heightPx * 4,\n\t\tsequence,\n\t\treplacementLine: `${line.slice(0, match.index)}${sequence}${line.slice(transmissionEnd)}`,\n\t};\n}\n\nexport function cropKittyImageLine(line: string, hiddenRows: number, visibleRows: number): string {\n\tconst metadata = getKittyImageMetadata(line);\n\tconst match = /\\x1b_G([^;]*);/.exec(line);\n\tif (!metadata || !match || hiddenRows < 0 || hiddenRows >= metadata.rows || visibleRows <= 0) return line;\n\tconst croppedRows = Math.min(visibleRows, metadata.rows - hiddenRows);\n\tif (hiddenRows === 0 && croppedRows === metadata.rows) return line;\n\tconst sourceY = Math.floor((metadata.heightPx * hiddenRows) / metadata.rows);\n\tconst sourceEnd = Math.ceil((metadata.heightPx * (hiddenRows + croppedRows)) / metadata.rows);\n\tconst sourceHeight = Math.max(1, Math.min(metadata.heightPx, sourceEnd) - sourceY);\n\tconst controls = match[1].split(\",\").filter((control) => !/^[yhr]=/.test(control));\n\tcontrols.push(`y=${sourceY}`, `h=${sourceHeight}`, `r=${croppedRows}`);\n\treturn `${line.slice(0, match.index)}\\x1b_G${controls.join(\",\")};${line.slice(match.index + match[0].length)}`;\n}\n\nexport function calculateImageCellSize(\n\timageDimensions: ImageDimensions,\n\tmaxWidthCells: number,\n\tmaxHeightCells?: number,\n\tcellDimensions: CellDimensions = { widthPx: 9, heightPx: 18 },\n): ImageCellSize {\n\tconst maxWidth = Math.max(1, Math.floor(maxWidthCells));\n\tconst maxHeight = maxHeightCells === undefined ? undefined : Math.max(1, Math.floor(maxHeightCells));\n\tconst imageWidth = Math.max(1, imageDimensions.widthPx);\n\tconst imageHeight = Math.max(1, imageDimensions.heightPx);\n\n\tconst widthScale = (maxWidth * cellDimensions.widthPx) / imageWidth;\n\tconst heightScale = maxHeight === undefined ? widthScale : (maxHeight * cellDimensions.heightPx) / imageHeight;\n\tconst scale = Math.min(widthScale, heightScale);\n\n\tconst scaledWidthPx = imageWidth * scale;\n\tconst scaledHeightPx = imageHeight * scale;\n\tconst columns = Math.ceil(scaledWidthPx / cellDimensions.widthPx);\n\tconst rows = Math.ceil(scaledHeightPx / cellDimensions.heightPx);\n\n\treturn {\n\t\tcolumns: Math.max(1, Math.min(maxWidth, columns)),\n\t\trows: Math.max(1, maxHeight === undefined ? rows : Math.min(maxHeight, rows)),\n\t};\n}\n\nexport function calculateImageRows(\n\timageDimensions: ImageDimensions,\n\ttargetWidthCells: number,\n\tcellDimensions: CellDimensions = { widthPx: 9, heightPx: 18 },\n): number {\n\treturn calculateImageCellSize(imageDimensions, targetWidthCells, undefined, cellDimensions).rows;\n}\n\nexport function getPngDimensions(base64Data: string): ImageDimensions | null {\n\ttry {\n\t\tconst buffer = Buffer.from(base64Data, \"base64\");\n\n\t\tif (buffer.length < 24) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (buffer[0] !== 0x89 || buffer[1] !== 0x50 || buffer[2] !== 0x4e || buffer[3] !== 0x47) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst width = buffer.readUInt32BE(16);\n\t\tconst height = buffer.readUInt32BE(20);\n\n\t\treturn { widthPx: width, heightPx: height };\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport function getJpegDimensions(base64Data: string): ImageDimensions | null {\n\ttry {\n\t\tconst buffer = Buffer.from(base64Data, \"base64\");\n\n\t\tif (buffer.length < 2) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (buffer[0] !== 0xff || buffer[1] !== 0xd8) {\n\t\t\treturn null;\n\t\t}\n\n\t\tlet offset = 2;\n\t\twhile (offset < buffer.length - 9) {\n\t\t\tif (buffer[offset] !== 0xff) {\n\t\t\t\toffset++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst marker = buffer[offset + 1];\n\n\t\t\tif (marker >= 0xc0 && marker <= 0xc2) {\n\t\t\t\tconst height = buffer.readUInt16BE(offset + 5);\n\t\t\t\tconst width = buffer.readUInt16BE(offset + 7);\n\t\t\t\treturn { widthPx: width, heightPx: height };\n\t\t\t}\n\n\t\t\tif (offset + 3 >= buffer.length) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tconst length = buffer.readUInt16BE(offset + 2);\n\t\t\tif (length < 2) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\toffset += 2 + length;\n\t\t}\n\n\t\treturn null;\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport function getGifDimensions(base64Data: string): ImageDimensions | null {\n\ttry {\n\t\tconst buffer = Buffer.from(base64Data, \"base64\");\n\n\t\tif (buffer.length < 10) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst sig = buffer.slice(0, 6).toString(\"ascii\");\n\t\tif (sig !== \"GIF87a\" && sig !== \"GIF89a\") {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst width = buffer.readUInt16LE(6);\n\t\tconst height = buffer.readUInt16LE(8);\n\n\t\treturn { widthPx: width, heightPx: height };\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport function getWebpDimensions(base64Data: string): ImageDimensions | null {\n\ttry {\n\t\tconst buffer = Buffer.from(base64Data, \"base64\");\n\n\t\tif (buffer.length < 30) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst riff = buffer.slice(0, 4).toString(\"ascii\");\n\t\tconst webp = buffer.slice(8, 12).toString(\"ascii\");\n\t\tif (riff !== \"RIFF\" || webp !== \"WEBP\") {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst chunk = buffer.slice(12, 16).toString(\"ascii\");\n\t\tif (chunk === \"VP8 \") {\n\t\t\tif (buffer.length < 30) return null;\n\t\t\tconst width = buffer.readUInt16LE(26) & 0x3fff;\n\t\t\tconst height = buffer.readUInt16LE(28) & 0x3fff;\n\t\t\treturn { widthPx: width, heightPx: height };\n\t\t} else if (chunk === \"VP8L\") {\n\t\t\tif (buffer.length < 25) return null;\n\t\t\tconst bits = buffer.readUInt32LE(21);\n\t\t\tconst width = (bits & 0x3fff) + 1;\n\t\t\tconst height = ((bits >> 14) & 0x3fff) + 1;\n\t\t\treturn { widthPx: width, heightPx: height };\n\t\t} else if (chunk === \"VP8X\") {\n\t\t\tif (buffer.length < 30) return null;\n\t\t\tconst width = (buffer[24] | (buffer[25] << 8) | (buffer[26] << 16)) + 1;\n\t\t\tconst height = (buffer[27] | (buffer[28] << 8) | (buffer[29] << 16)) + 1;\n\t\t\treturn { widthPx: width, heightPx: height };\n\t\t}\n\n\t\treturn null;\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport function getImageDimensions(base64Data: string, mimeType: string): ImageDimensions | null {\n\tif (mimeType === \"image/png\") {\n\t\treturn getPngDimensions(base64Data);\n\t}\n\tif (mimeType === \"image/jpeg\") {\n\t\treturn getJpegDimensions(base64Data);\n\t}\n\tif (mimeType === \"image/gif\") {\n\t\treturn getGifDimensions(base64Data);\n\t}\n\tif (mimeType === \"image/webp\") {\n\t\treturn getWebpDimensions(base64Data);\n\t}\n\treturn null;\n}\n\nexport function renderImage(\n\tbase64Data: string,\n\timageDimensions: ImageDimensions,\n\toptions: ImageRenderOptions = {},\n): { sequence: string; columns: number; rows: number; imageId?: number } | null {\n\tconst caps = getCapabilities();\n\n\tif (!caps.images) {\n\t\treturn null;\n\t}\n\n\tconst maxWidth = options.maxWidthCells ?? 80;\n\tconst size = calculateImageCellSize(imageDimensions, maxWidth, options.maxHeightCells, getCellDimensions());\n\n\tif (caps.images === \"kitty\") {\n\t\tif (options.imageId !== undefined) {\n\t\t\tregisterKittyImageMetadata({\n\t\t\t\timageId: options.imageId,\n\t\t\t\tcolumns: size.columns,\n\t\t\t\trows: size.rows,\n\t\t\t\twidthPx: imageDimensions.widthPx,\n\t\t\t\theightPx: imageDimensions.heightPx,\n\t\t\t});\n\t\t}\n\t\tconst sequence = encodeKitty(base64Data, {\n\t\t\tcolumns: size.columns,\n\t\t\trows: size.rows,\n\t\t\timageId: options.imageId,\n\t\t\tmoveCursor: options.moveCursor,\n\t\t});\n\t\treturn { sequence, columns: size.columns, rows: size.rows, imageId: options.imageId };\n\t}\n\n\tif (caps.images === \"iterm2\") {\n\t\tconst sequence = encodeITerm2(base64Data, {\n\t\t\twidth: size.columns,\n\t\t\theight: \"auto\",\n\t\t\tpreserveAspectRatio: options.preserveAspectRatio ?? true,\n\t\t});\n\t\treturn { sequence, columns: size.columns, rows: size.rows };\n\t}\n\n\treturn null;\n}\n\n/**\n * Wrap text in an OSC 8 hyperlink sequence.\n * The text is rendered as a clickable hyperlink in terminals that support OSC 8\n * (Ghostty, Kitty, WezTerm, iTerm2, VSCode, and others).\n * In terminals that do not support OSC 8, the escape sequences are ignored\n * and only the plain text is displayed.\n *\n * @param text - The visible text to display\n * @param url - The URL to link to\n */\nexport function hyperlink(text: string, url: string): string {\n\treturn `\\x1b]8;;${url}\\x1b\\\\${text}\\x1b]8;;\\x1b\\\\`;\n}\n\n/** Shorten home-prefixed absolute paths to ~/... for compact display. */\nfunction shortenImagePath(filename: string): string {\n\tconst home = homedir();\n\tif (home && (filename === home || filename.startsWith(`${home}/`) || filename.startsWith(`${home}\\\\`))) {\n\t\treturn `~${filename.slice(home.length)}`;\n\t}\n\treturn filename;\n}\n\n/**\n * Text fallback when the terminal cannot render inline images.\n * Absolute paths are shown shortened (~/...) and, when OSC 8 hyperlinks are\n * available, linked to file:// so the full path remains openable.\n */\nexport function imageFallback(mimeType: string, dimensions?: ImageDimensions, filename?: string): string {\n\tconst parts: string[] = [];\n\tif (filename) {\n\t\tconst display = shortenImagePath(filename);\n\t\tif (getCapabilities().hyperlinks && isAbsolute(filename)) {\n\t\t\tparts.push(hyperlink(display, pathToFileURL(filename).href));\n\t\t} else {\n\t\t\tparts.push(display);\n\t\t}\n\t}\n\tparts.push(`[${mimeType}]`);\n\tif (dimensions) parts.push(`${dimensions.widthPx}x${dimensions.heightPx}`);\n\treturn `[Image: ${parts.join(\" \")}]`;\n}\n"]}
|