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":"mouse-region.js","sourceRoot":"","sources":["../../src/components/mouse-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,kBAAkB,GAIlB,MAAM,WAAW,CAAC;AAInB,mFAAmF;AACnF,MAAM,OAAO,WAAW;IACN,KAAK,CAAY;IACjB,OAAO,CAAqB;IAE7C,YAAY,KAAgB,EAAE,OAA2B,EAAE;QAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAAA,CACvB;IAED,MAAM,CAAC,KAAa,EAAY;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAAA,CAChC;IAED,WAAW,CAAC,KAAoB,EAA4D;QAC3F,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1D,OAAO,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAAA,CAC1C;IAED,UAAU,GAAS;QAClB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAAA,CACxB;CACD","sourcesContent":["import {\n\ttype Component,\n\tdispatchMouseEvent,\n\ttype TuiMouseDispatchResult,\n\ttype TuiMouseEvent,\n\ttype TuiMouseEventResult,\n} from \"../tui.ts\";\n\nexport type MouseRegionHandler = (event: TuiMouseEvent) => TuiMouseEventResult | undefined;\n\n/** Adds mouse handling to an existing component without changing its rendering. */\nexport class MouseRegion implements Component {\n\tprivate readonly child: Component;\n\tprivate readonly onMouse: MouseRegionHandler;\n\n\tconstructor(child: Component, onMouse: MouseRegionHandler) {\n\t\tthis.child = child;\n\t\tthis.onMouse = onMouse;\n\t}\n\n\trender(width: number): string[] {\n\t\treturn this.child.render(width);\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseDispatchResult | TuiMouseEventResult | undefined {\n\t\tconst childResult = dispatchMouseEvent(this.child, event);\n\t\treturn childResult ?? this.onMouse(event);\n\t}\n\n\tinvalidate(): void {\n\t\tthis.child.invalidate();\n\t}\n}\n"]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { LAYOUT_NODE, type ScrollLayoutNode } from "../layout-node.ts";
|
|
2
|
-
import { type Component, Container } from "../tui.ts";
|
|
3
|
-
export type ScrollViewScrollbar = "hidden" | "auto" | "always";
|
|
4
|
-
export interface ScrollViewOptions {
|
|
5
|
-
axis?: "vertical";
|
|
6
|
-
follow?: "none" | "end";
|
|
7
|
-
primary?: boolean;
|
|
8
|
-
overscroll?: "chain" | "contain";
|
|
9
|
-
scrollbar?: ScrollViewScrollbar;
|
|
10
|
-
scrollbarTrackStyle?: (text: string) => string;
|
|
11
|
-
scrollbarThumbStyle?: (text: string) => string;
|
|
12
|
-
scrollbarHideDelayMs?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface ScrollViewScrollToOptions {
|
|
15
|
-
/** Keep follow-end disabled even when the target is the current content end. */
|
|
16
|
-
disableFollow?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare class ScrollView extends Container {
|
|
19
|
-
private readonly child;
|
|
20
|
-
readonly followEnd: boolean;
|
|
21
|
-
readonly primary: boolean;
|
|
22
|
-
readonly overscroll: "chain" | "contain";
|
|
23
|
-
readonly scrollbarTrackStyle: (text: string) => string;
|
|
24
|
-
readonly scrollbarThumbStyle: (text: string) => string;
|
|
25
|
-
private currentScrollbar;
|
|
26
|
-
private readonly scrollbarHideDelayMs;
|
|
27
|
-
private currentScrollTop;
|
|
28
|
-
private contentHeight;
|
|
29
|
-
private currentViewportHeight;
|
|
30
|
-
private followingEnd;
|
|
31
|
-
private followSuppressedAtEnd;
|
|
32
|
-
private unreadLines;
|
|
33
|
-
private trackedContentHeight;
|
|
34
|
-
private hasLaidOut;
|
|
35
|
-
private requestRenderCallback;
|
|
36
|
-
private transientScrollbarVisible;
|
|
37
|
-
private scrollbarActive;
|
|
38
|
-
private scrollbarHideTimer;
|
|
39
|
-
constructor(component: Component, options?: ScrollViewOptions);
|
|
40
|
-
get scrollTop(): number;
|
|
41
|
-
get isFollowingEnd(): boolean;
|
|
42
|
-
get unreadCount(): number;
|
|
43
|
-
get viewportHeight(): number;
|
|
44
|
-
get scrollbar(): ScrollViewScrollbar;
|
|
45
|
-
get isScrollbarVisible(): boolean;
|
|
46
|
-
get isScrollbarActive(): boolean;
|
|
47
|
-
setScrollbar(scrollbar: ScrollViewScrollbar): void;
|
|
48
|
-
getContentWidth(width: number): number;
|
|
49
|
-
private markScrollbarActivity;
|
|
50
|
-
private hideTransientScrollbar;
|
|
51
|
-
setScrollbarActive(active: boolean): void;
|
|
52
|
-
scrollTo(scrollTop: number, options?: ScrollViewScrollToOptions): void;
|
|
53
|
-
scrollBy(lines: number): number;
|
|
54
|
-
scrollToStart(): void;
|
|
55
|
-
scrollToEnd(): void;
|
|
56
|
-
updateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void;
|
|
57
|
-
addChild(_component: Component): void;
|
|
58
|
-
removeChild(_component: Component): void;
|
|
59
|
-
clear(): void;
|
|
60
|
-
render(width: number): string[];
|
|
61
|
-
[LAYOUT_NODE](): ScrollLayoutNode;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=scroll-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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AI,CAmB3F;IAEQ,QAAQ,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAE7C;IAEQ,WAAW,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAEhD;IAEQ,KAAK,IAAI,IAAI,CAErB;IAEQ,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAIvC;IAED,CAAC,WAAW,CAAC,IAAI,gBAAgB,CAEhC;CACD","sourcesContent":["import { LAYOUT_NODE, type ScrollLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport type ScrollViewScrollbar = \"hidden\" | \"auto\" | \"always\";\n\nexport interface ScrollViewOptions {\n\taxis?: \"vertical\";\n\tfollow?: \"none\" | \"end\";\n\tprimary?: boolean;\n\toverscroll?: \"chain\" | \"contain\";\n\tscrollbar?: ScrollViewScrollbar;\n\tscrollbarTrackStyle?: (text: string) => string;\n\tscrollbarThumbStyle?: (text: string) => string;\n\tscrollbarHideDelayMs?: number;\n}\n\nexport interface ScrollViewScrollToOptions {\n\t/** Keep follow-end disabled even when the target is the current content end. */\n\tdisableFollow?: boolean;\n}\n\nexport class ScrollView extends Container {\n\tprivate readonly child: Component;\n\treadonly followEnd: boolean;\n\treadonly primary: boolean;\n\treadonly overscroll: \"chain\" | \"contain\";\n\treadonly scrollbarTrackStyle: (text: string) => string;\n\treadonly scrollbarThumbStyle: (text: string) => string;\n\tprivate currentScrollbar: ScrollViewScrollbar;\n\tprivate readonly scrollbarHideDelayMs: number;\n\tprivate currentScrollTop = 0;\n\tprivate contentHeight = 0;\n\tprivate currentViewportHeight = 0;\n\tprivate followingEnd: boolean;\n\tprivate followSuppressedAtEnd = false;\n\tprivate unreadLines = 0;\n\tprivate trackedContentHeight = 0;\n\tprivate hasLaidOut = false;\n\tprivate requestRenderCallback: (() => void) | undefined;\n\tprivate transientScrollbarVisible = false;\n\tprivate scrollbarActive = false;\n\tprivate scrollbarHideTimer: NodeJS.Timeout | undefined;\n\n\tconstructor(component: Component, options: ScrollViewOptions = {}) {\n\t\tsuper();\n\t\tif (options.axis !== undefined && options.axis !== \"vertical\") {\n\t\t\tthrow new Error(`Unsupported ScrollView axis: ${options.axis}`);\n\t\t}\n\t\tthis.child = component;\n\t\tthis.children.push(component);\n\t\tthis.followEnd = (options.follow ?? \"none\") === \"end\";\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.primary = options.primary ?? false;\n\t\tthis.overscroll = options.overscroll ?? \"chain\";\n\t\tthis.currentScrollbar = options.scrollbar ?? \"hidden\";\n\t\tthis.scrollbarTrackStyle = options.scrollbarTrackStyle ?? ((text) => `\\x1b[90m${text}\\x1b[39m`);\n\t\tthis.scrollbarThumbStyle = options.scrollbarThumbStyle ?? ((text) => `\\x1b[37m${text}\\x1b[39m`);\n\t\tthis.scrollbarHideDelayMs = Math.max(0, Math.floor(options.scrollbarHideDelayMs ?? 1000));\n\t}\n\n\tget scrollTop(): number {\n\t\treturn this.currentScrollTop;\n\t}\n\n\tget isFollowingEnd(): boolean {\n\t\treturn this.followingEnd;\n\t}\n\n\tget unreadCount(): number {\n\t\treturn this.unreadLines;\n\t}\n\n\tget viewportHeight(): number {\n\t\treturn this.currentViewportHeight;\n\t}\n\n\tget scrollbar(): ScrollViewScrollbar {\n\t\treturn this.currentScrollbar;\n\t}\n\n\tget isScrollbarVisible(): boolean {\n\t\tif (this.scrollbar === \"always\") return this.currentViewportHeight > 0;\n\t\treturn (\n\t\t\tthis.scrollbar === \"auto\" && this.contentHeight > this.currentViewportHeight && this.transientScrollbarVisible\n\t\t);\n\t}\n\n\tget isScrollbarActive(): boolean {\n\t\treturn this.scrollbarActive;\n\t}\n\n\tsetScrollbar(scrollbar: ScrollViewScrollbar): void {\n\t\tif (scrollbar === this.currentScrollbar) return;\n\t\tthis.currentScrollbar = scrollbar;\n\t\tif (scrollbar !== \"auto\") this.hideTransientScrollbar();\n\t\telse if (this.scrollbarActive) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tgetContentWidth(width: number): number {\n\t\treturn this.scrollbar === \"always\" && width > 1 ? width - 1 : width;\n\t}\n\n\tprivate markScrollbarActivity(): void {\n\t\tif (this.scrollbar !== \"auto\" || this.contentHeight <= this.currentViewportHeight) return;\n\t\tthis.transientScrollbarVisible = true;\n\t\tif (this.scrollbarHideTimer) {\n\t\t\tclearTimeout(this.scrollbarHideTimer);\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t}\n\t\tif (this.scrollbarActive) return;\n\t\tthis.scrollbarHideTimer = setTimeout(() => {\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t\tthis.transientScrollbarVisible = false;\n\t\t\tthis.requestRenderCallback?.();\n\t\t}, this.scrollbarHideDelayMs);\n\t\tthis.scrollbarHideTimer.unref();\n\t}\n\n\tprivate hideTransientScrollbar(): void {\n\t\tthis.transientScrollbarVisible = false;\n\t\tif (!this.scrollbarHideTimer) return;\n\t\tclearTimeout(this.scrollbarHideTimer);\n\t\tthis.scrollbarHideTimer = undefined;\n\t}\n\n\tsetScrollbarActive(active: boolean): void {\n\t\tif (active === this.scrollbarActive) return;\n\t\tthis.scrollbarActive = active;\n\t\tthis.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollTo(scrollTop: number, options: ScrollViewScrollToOptions = {}): void {\n\t\tconst requested = Number.isFinite(scrollTop) ? Math.trunc(scrollTop) : this.currentScrollTop;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, requested));\n\t\tconst nextFollowSuppressedAtEnd = options.disableFollow === true && next === maxScrollTop;\n\t\tconst nextFollowingEnd = !nextFollowSuppressedAtEnd && this.followEnd && next === maxScrollTop;\n\t\tif (\n\t\t\tnext === this.currentScrollTop &&\n\t\t\tnextFollowingEnd === this.followingEnd &&\n\t\t\tnextFollowSuppressedAtEnd === this.followSuppressedAtEnd\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst moved = next !== this.currentScrollTop;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = nextFollowingEnd;\n\t\tthis.followSuppressedAtEnd = nextFollowSuppressedAtEnd;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollBy(lines: number): number {\n\t\tconst requested = Number.isFinite(lines) ? Math.trunc(lines) : 0;\n\t\tif (requested === 0) return 0;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst start = this.followingEnd ? maxScrollTop : this.currentScrollTop;\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, start + requested));\n\t\tconst moved = next - start;\n\t\tconst wasFollowingEnd = this.followingEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd && next === maxScrollTop;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved !== 0) this.markScrollbarActivity();\n\t\tif (moved !== 0 || this.followingEnd !== wasFollowingEnd) this.requestRenderCallback?.();\n\t\treturn requested - moved;\n\t}\n\n\tscrollToStart(): void {\n\t\tconst changed =\n\t\t\tthis.currentScrollTop !== 0 ||\n\t\t\tthis.followingEnd !== (this.followEnd && this.contentHeight <= this.currentViewportHeight);\n\t\tthis.currentScrollTop = 0;\n\t\tthis.followingEnd = this.followEnd && this.contentHeight <= this.currentViewportHeight;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tscrollToEnd(): void {\n\t\tconst next = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst changed = this.currentScrollTop !== next || this.followingEnd !== this.followEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tthis.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tupdateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void {\n\t\tconst nextHeight = Math.max(0, Math.floor(contentHeight));\n\t\tif (this.hasLaidOut && !this.followingEnd && nextHeight > this.trackedContentHeight) {\n\t\t\tthis.unreadLines += nextHeight - this.trackedContentHeight;\n\t\t}\n\t\tthis.hasLaidOut = true;\n\t\tthis.trackedContentHeight = nextHeight;\n\t\tthis.contentHeight = nextHeight;\n\t\tthis.currentViewportHeight = Math.max(0, Math.floor(viewportHeight));\n\t\tthis.requestRenderCallback = requestRender;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tif (this.followingEnd) this.currentScrollTop = maxScrollTop;\n\t\telse this.currentScrollTop = Math.max(0, Math.min(this.currentScrollTop, maxScrollTop));\n\t\tif (this.currentScrollTop < maxScrollTop) this.followSuppressedAtEnd = false;\n\t\tif (this.followEnd && this.currentScrollTop === maxScrollTop && !this.followSuppressedAtEnd) {\n\t\t\tthis.followingEnd = true;\n\t\t}\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (this.contentHeight <= this.currentViewportHeight) this.hideTransientScrollbar();\n\t}\n\n\toverride addChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView has exactly one child\");\n\t}\n\n\toverride removeChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView child cannot be removed\");\n\t}\n\n\toverride clear(): void {\n\t\tthrow new Error(\"ScrollView child cannot be cleared\");\n\t}\n\n\toverride render(width: number): string[] {\n\t\tconst contentWidth = this.getContentWidth(width);\n\t\tconst lines = this.child.render(contentWidth);\n\t\treturn contentWidth === width ? lines : lines.map((line) => `${line} `);\n\t}\n\n\t[LAYOUT_NODE](): ScrollLayoutNode {\n\t\treturn { type: \"scroll\", component: this.child, state: this };\n\t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AS,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAAA,CAC9D;CACD","sourcesContent":["import { LAYOUT_NODE, type ScrollLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport type ScrollViewScrollbar = \"hidden\" | \"auto\" | \"always\";\n\nexport interface ScrollViewOptions {\n\taxis?: \"vertical\";\n\tfollow?: \"none\" | \"end\";\n\tprimary?: boolean;\n\toverscroll?: \"chain\" | \"contain\";\n\tscrollbar?: ScrollViewScrollbar;\n\tscrollbarTrackStyle?: (text: string) => string;\n\tscrollbarThumbStyle?: (text: string) => string;\n\tscrollbarHideDelayMs?: number;\n}\n\nexport interface ScrollViewScrollToOptions {\n\t/** Keep follow-end disabled even when the target is the current content end. */\n\tdisableFollow?: boolean;\n}\n\nexport class ScrollView extends Container {\n\tprivate readonly child: Component;\n\treadonly followEnd: boolean;\n\treadonly primary: boolean;\n\treadonly overscroll: \"chain\" | \"contain\";\n\treadonly scrollbarTrackStyle: (text: string) => string;\n\treadonly scrollbarThumbStyle: (text: string) => string;\n\tprivate currentScrollbar: ScrollViewScrollbar;\n\tprivate readonly scrollbarHideDelayMs: number;\n\tprivate currentScrollTop = 0;\n\tprivate contentHeight = 0;\n\tprivate currentViewportHeight = 0;\n\tprivate followingEnd: boolean;\n\tprivate followSuppressedAtEnd = false;\n\tprivate unreadLines = 0;\n\tprivate trackedContentHeight = 0;\n\tprivate hasLaidOut = false;\n\tprivate requestRenderCallback: (() => void) | undefined;\n\tprivate transientScrollbarVisible = false;\n\tprivate scrollbarActive = false;\n\tprivate scrollbarHideTimer: NodeJS.Timeout | undefined;\n\n\tconstructor(component: Component, options: ScrollViewOptions = {}) {\n\t\tsuper();\n\t\tif (options.axis !== undefined && options.axis !== \"vertical\") {\n\t\t\tthrow new Error(`Unsupported ScrollView axis: ${options.axis}`);\n\t\t}\n\t\tthis.child = component;\n\t\tthis.children.push(component);\n\t\tthis.followEnd = (options.follow ?? \"none\") === \"end\";\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.primary = options.primary ?? false;\n\t\tthis.overscroll = options.overscroll ?? \"chain\";\n\t\tthis.currentScrollbar = options.scrollbar ?? \"hidden\";\n\t\tthis.scrollbarTrackStyle = options.scrollbarTrackStyle ?? ((text) => `\\x1b[90m${text}\\x1b[39m`);\n\t\tthis.scrollbarThumbStyle = options.scrollbarThumbStyle ?? ((text) => `\\x1b[37m${text}\\x1b[39m`);\n\t\tthis.scrollbarHideDelayMs = Math.max(0, Math.floor(options.scrollbarHideDelayMs ?? 1000));\n\t}\n\n\tget scrollTop(): number {\n\t\treturn this.currentScrollTop;\n\t}\n\n\tget isFollowingEnd(): boolean {\n\t\treturn this.followingEnd;\n\t}\n\n\tget unreadCount(): number {\n\t\treturn this.unreadLines;\n\t}\n\n\tget viewportHeight(): number {\n\t\treturn this.currentViewportHeight;\n\t}\n\n\tget scrollbar(): ScrollViewScrollbar {\n\t\treturn this.currentScrollbar;\n\t}\n\n\tget isScrollbarVisible(): boolean {\n\t\tif (this.scrollbar === \"always\") return this.currentViewportHeight > 0;\n\t\treturn (\n\t\t\tthis.scrollbar === \"auto\" && this.contentHeight > this.currentViewportHeight && this.transientScrollbarVisible\n\t\t);\n\t}\n\n\tget isScrollbarActive(): boolean {\n\t\treturn this.scrollbarActive;\n\t}\n\n\tsetScrollbar(scrollbar: ScrollViewScrollbar): void {\n\t\tif (scrollbar === this.currentScrollbar) return;\n\t\tthis.currentScrollbar = scrollbar;\n\t\tif (scrollbar !== \"auto\") this.hideTransientScrollbar();\n\t\telse if (this.scrollbarActive) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tgetContentWidth(width: number): number {\n\t\treturn this.scrollbar === \"always\" && width > 1 ? width - 1 : width;\n\t}\n\n\tprivate markScrollbarActivity(): void {\n\t\tif (this.scrollbar !== \"auto\" || this.contentHeight <= this.currentViewportHeight) return;\n\t\tthis.transientScrollbarVisible = true;\n\t\tif (this.scrollbarHideTimer) {\n\t\t\tclearTimeout(this.scrollbarHideTimer);\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t}\n\t\tif (this.scrollbarActive) return;\n\t\tthis.scrollbarHideTimer = setTimeout(() => {\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t\tthis.transientScrollbarVisible = false;\n\t\t\tthis.requestRenderCallback?.();\n\t\t}, this.scrollbarHideDelayMs);\n\t\tthis.scrollbarHideTimer.unref();\n\t}\n\n\tprivate hideTransientScrollbar(): void {\n\t\tthis.transientScrollbarVisible = false;\n\t\tif (!this.scrollbarHideTimer) return;\n\t\tclearTimeout(this.scrollbarHideTimer);\n\t\tthis.scrollbarHideTimer = undefined;\n\t}\n\n\tsetScrollbarActive(active: boolean): void {\n\t\tif (active === this.scrollbarActive) return;\n\t\tthis.scrollbarActive = active;\n\t\tthis.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollTo(scrollTop: number, options: ScrollViewScrollToOptions = {}): void {\n\t\tconst requested = Number.isFinite(scrollTop) ? Math.trunc(scrollTop) : this.currentScrollTop;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, requested));\n\t\tconst nextFollowSuppressedAtEnd = options.disableFollow === true && next === maxScrollTop;\n\t\tconst nextFollowingEnd = !nextFollowSuppressedAtEnd && this.followEnd && next === maxScrollTop;\n\t\tif (\n\t\t\tnext === this.currentScrollTop &&\n\t\t\tnextFollowingEnd === this.followingEnd &&\n\t\t\tnextFollowSuppressedAtEnd === this.followSuppressedAtEnd\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst moved = next !== this.currentScrollTop;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = nextFollowingEnd;\n\t\tthis.followSuppressedAtEnd = nextFollowSuppressedAtEnd;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollBy(lines: number): number {\n\t\tconst requested = Number.isFinite(lines) ? Math.trunc(lines) : 0;\n\t\tif (requested === 0) return 0;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst start = this.followingEnd ? maxScrollTop : this.currentScrollTop;\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, start + requested));\n\t\tconst moved = next - start;\n\t\tconst wasFollowingEnd = this.followingEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd && next === maxScrollTop;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved !== 0) this.markScrollbarActivity();\n\t\tif (moved !== 0 || this.followingEnd !== wasFollowingEnd) this.requestRenderCallback?.();\n\t\treturn requested - moved;\n\t}\n\n\tscrollToStart(): void {\n\t\tconst changed =\n\t\t\tthis.currentScrollTop !== 0 ||\n\t\t\tthis.followingEnd !== (this.followEnd && this.contentHeight <= this.currentViewportHeight);\n\t\tthis.currentScrollTop = 0;\n\t\tthis.followingEnd = this.followEnd && this.contentHeight <= this.currentViewportHeight;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tscrollToEnd(): void {\n\t\tconst next = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst changed = this.currentScrollTop !== next || this.followingEnd !== this.followEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tthis.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tupdateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void {\n\t\tconst nextHeight = Math.max(0, Math.floor(contentHeight));\n\t\tif (this.hasLaidOut && !this.followingEnd && nextHeight > this.trackedContentHeight) {\n\t\t\tthis.unreadLines += nextHeight - this.trackedContentHeight;\n\t\t}\n\t\tthis.hasLaidOut = true;\n\t\tthis.trackedContentHeight = nextHeight;\n\t\tthis.contentHeight = nextHeight;\n\t\tthis.currentViewportHeight = Math.max(0, Math.floor(viewportHeight));\n\t\tthis.requestRenderCallback = requestRender;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tif (this.followingEnd) this.currentScrollTop = maxScrollTop;\n\t\telse this.currentScrollTop = Math.max(0, Math.min(this.currentScrollTop, maxScrollTop));\n\t\tif (this.currentScrollTop < maxScrollTop) this.followSuppressedAtEnd = false;\n\t\tif (this.followEnd && this.currentScrollTop === maxScrollTop && !this.followSuppressedAtEnd) {\n\t\t\tthis.followingEnd = true;\n\t\t}\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (this.contentHeight <= this.currentViewportHeight) this.hideTransientScrollbar();\n\t}\n\n\toverride addChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView has exactly one child\");\n\t}\n\n\toverride removeChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView child cannot be removed\");\n\t}\n\n\toverride clear(): void {\n\t\tthrow new Error(\"ScrollView child cannot be cleared\");\n\t}\n\n\toverride render(width: number): string[] {\n\t\tconst contentWidth = this.getContentWidth(width);\n\t\tconst lines = this.child.render(contentWidth);\n\t\treturn contentWidth === width ? lines : lines.map((line) => `${line} `);\n\t}\n\n\t[LAYOUT_NODE](): ScrollLayoutNode {\n\t\treturn { type: \"scroll\", component: this.child, state: this };\n\t}\n}\n"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Component, TuiMouseEvent, TuiMouseEventResult } from "../tui.ts";
|
|
2
|
-
export interface SelectItem {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface SelectListTheme {
|
|
8
|
-
selectedPrefix: (text: string) => string;
|
|
9
|
-
selectedText: (text: string) => string;
|
|
10
|
-
description: (text: string) => string;
|
|
11
|
-
scrollInfo: (text: string) => string;
|
|
12
|
-
noMatch: (text: string) => string;
|
|
13
|
-
}
|
|
14
|
-
export interface SelectListTruncatePrimaryContext {
|
|
15
|
-
text: string;
|
|
16
|
-
maxWidth: number;
|
|
17
|
-
columnWidth: number;
|
|
18
|
-
item: SelectItem;
|
|
19
|
-
isSelected: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface SelectListLayoutOptions {
|
|
22
|
-
minPrimaryColumnWidth?: number;
|
|
23
|
-
maxPrimaryColumnWidth?: number;
|
|
24
|
-
truncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;
|
|
25
|
-
}
|
|
26
|
-
export declare class SelectList implements Component {
|
|
27
|
-
private items;
|
|
28
|
-
private filteredItems;
|
|
29
|
-
private selectedIndex;
|
|
30
|
-
private mousePressedIndex;
|
|
31
|
-
private maxVisible;
|
|
32
|
-
private theme;
|
|
33
|
-
private layout;
|
|
34
|
-
onSelect?: (item: SelectItem) => void;
|
|
35
|
-
onCancel?: () => void;
|
|
36
|
-
onSelectionChange?: (item: SelectItem) => void;
|
|
37
|
-
constructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout?: SelectListLayoutOptions);
|
|
38
|
-
setFilter(filter: string): void;
|
|
39
|
-
setSelectedIndex(index: number): void;
|
|
40
|
-
invalidate(): void;
|
|
41
|
-
render(width: number): string[];
|
|
42
|
-
handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
|
|
43
|
-
handleInput(keyData: string): void;
|
|
44
|
-
private getVisibleRange;
|
|
45
|
-
private renderItem;
|
|
46
|
-
private getPrimaryColumnWidth;
|
|
47
|
-
private getPrimaryColumnBounds;
|
|
48
|
-
private truncatePrimary;
|
|
49
|
-
private getDisplayValue;
|
|
50
|
-
private notifySelectionChange;
|
|
51
|
-
getSelectedItem(): SelectItem | null;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=select-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-list.d.ts","sourceRoot":"","sources":["../../src/components/select-list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAU/E,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC/B,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,gCAAgC;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,gCAAgC,KAAK,MAAM,CAAC;CACxE;AAED,qBAAa,UAAW,YAAW,SAAS;IAC3C,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,aAAa,CAAoB;IACzC,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,MAAM,CAA0B;IAEjC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAEtD,YAAY,KAAK,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,GAAE,uBAA4B,EAMhH;IAED,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEpC;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAgC9B;IAED,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS,CAkCjE;IAED,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAyBjC;IAED,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,UAAU;IAuClB,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,qBAAqB;IAO7B,eAAe,IAAI,UAAU,GAAG,IAAI,CAGnC;CACD","sourcesContent":["import { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth } from \"../utils.ts\";\n\nconst DEFAULT_PRIMARY_COLUMN_WIDTH = 32;\nconst PRIMARY_COLUMN_GAP = 2;\nconst MIN_DESCRIPTION_WIDTH = 10;\n\nconst normalizeToSingleLine = (text: string): string => text.replace(/[\\r\\n]+/g, \" \").trim();\nconst clamp = (value: number, min: number, max: number): number => Math.max(min, Math.min(value, max));\n\nexport interface SelectItem {\n\tvalue: string;\n\tlabel: string;\n\tdescription?: string;\n}\n\nexport interface SelectListTheme {\n\tselectedPrefix: (text: string) => string;\n\tselectedText: (text: string) => string;\n\tdescription: (text: string) => string;\n\tscrollInfo: (text: string) => string;\n\tnoMatch: (text: string) => string;\n}\n\nexport interface SelectListTruncatePrimaryContext {\n\ttext: string;\n\tmaxWidth: number;\n\tcolumnWidth: number;\n\titem: SelectItem;\n\tisSelected: boolean;\n}\n\nexport interface SelectListLayoutOptions {\n\tminPrimaryColumnWidth?: number;\n\tmaxPrimaryColumnWidth?: number;\n\ttruncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;\n}\n\nexport class SelectList implements Component {\n\tprivate items: SelectItem[] = [];\n\tprivate filteredItems: SelectItem[] = [];\n\tprivate selectedIndex: number = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number = 5;\n\tprivate theme: SelectListTheme;\n\tprivate layout: SelectListLayoutOptions;\n\n\tpublic onSelect?: (item: SelectItem) => void;\n\tpublic onCancel?: () => void;\n\tpublic onSelectionChange?: (item: SelectItem) => void;\n\n\tconstructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout: SelectListLayoutOptions = {}) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.layout = layout;\n\t}\n\n\tsetFilter(filter: string): void {\n\t\tthis.filteredItems = this.items.filter((item) => item.value.toLowerCase().startsWith(filter.toLowerCase()));\n\t\t// Reset selection when filter changes\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tsetSelectedIndex(index: number): void {\n\t\tthis.selectedIndex = Math.max(0, Math.min(index, this.filteredItems.length - 1));\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\t// If no items match filter, show message\n\t\tif (this.filteredItems.length === 0) {\n\t\t\tlines.push(this.theme.noMatch(\" No matching commands\"));\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst primaryColumnWidth = this.getPrimaryColumnWidth();\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = this.filteredItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst descriptionSingleLine = item.description ? normalizeToSingleLine(item.description) : undefined;\n\t\t\tlines.push(this.renderItem(item, isSelected, width, descriptionSingleLine, primaryColumnWidth));\n\t\t}\n\n\t\t// Add scroll indicators if needed\n\t\tif (startIndex > 0 || endIndex < this.filteredItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${this.filteredItems.length})`;\n\t\t\t// Truncate if too long for terminal\n\t\t\tlines.push(this.theme.scrollInfo(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.filteredItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(this.filteredItems.length - 1, this.selectedIndex + delta));\n\t\t\tif (this.selectedIndex !== previousIndex) this.notifySelectionChange();\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\t\tconst itemIndex = startIndex + event.y;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tif (this.selectedIndex !== itemIndex) {\n\t\t\t\tthis.selectedIndex = itemIndex;\n\t\t\t\tthis.notifySelectionChange();\n\t\t\t}\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tconst clickedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tconst changed = this.selectedIndex !== clickedIndex;\n\t\t\tthis.selectedIndex = clickedIndex;\n\t\t\tif (changed) this.notifySelectionChange();\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem) this.onSelect?.(selectedItem);\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(keyData: string): void {\n\t\tconst kb = getKeybindings();\n\t\t// Up arrow - wrap to bottom when at top\n\t\tif (kb.matches(keyData, \"tui.select.up\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? this.filteredItems.length - 1 : this.selectedIndex - 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Down arrow - wrap to top when at bottom\n\t\telse if (kb.matches(keyData, \"tui.select.down\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === this.filteredItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Enter\n\t\telse if (kb.matches(keyData, \"tui.select.confirm\")) {\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem && this.onSelect) {\n\t\t\t\tthis.onSelect(selectedItem);\n\t\t\t}\n\t\t}\n\t\t// Escape or Ctrl+C\n\t\telse if (kb.matches(keyData, \"tui.select.cancel\")) {\n\t\t\tif (this.onCancel) {\n\t\t\t\tthis.onCancel();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getVisibleRange(): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), this.filteredItems.length - this.maxVisible),\n\t\t);\n\t\treturn {\n\t\t\tstartIndex,\n\t\t\tendIndex: Math.min(startIndex + this.maxVisible, this.filteredItems.length),\n\t\t};\n\t}\n\n\tprivate renderItem(\n\t\titem: SelectItem,\n\t\tisSelected: boolean,\n\t\twidth: number,\n\t\tdescriptionSingleLine: string | undefined,\n\t\tprimaryColumnWidth: number,\n\t): string {\n\t\tconst prefix = isSelected ? \"→ \" : \" \";\n\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\tif (descriptionSingleLine && width > 40) {\n\t\t\tconst effectivePrimaryColumnWidth = Math.max(1, Math.min(primaryColumnWidth, width - prefixWidth - 4));\n\t\t\tconst maxPrimaryWidth = Math.max(1, effectivePrimaryColumnWidth - PRIMARY_COLUMN_GAP);\n\t\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxPrimaryWidth, effectivePrimaryColumnWidth);\n\t\t\tconst truncatedValueWidth = visibleWidth(truncatedValue);\n\t\t\tconst spacing = \" \".repeat(Math.max(1, effectivePrimaryColumnWidth - truncatedValueWidth));\n\t\t\tconst descriptionStart = prefixWidth + truncatedValueWidth + spacing.length;\n\t\t\tconst remainingWidth = width - descriptionStart - 2; // -2 for safety\n\n\t\t\tif (remainingWidth > MIN_DESCRIPTION_WIDTH) {\n\t\t\t\tconst truncatedDesc = truncateToWidth(descriptionSingleLine, remainingWidth, \"\");\n\t\t\t\tif (isSelected) {\n\t\t\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}${spacing}${truncatedDesc}`);\n\t\t\t\t}\n\n\t\t\t\tconst descText = this.theme.description(spacing + truncatedDesc);\n\t\t\t\treturn prefix + truncatedValue + descText;\n\t\t\t}\n\t\t}\n\n\t\tconst maxWidth = width - prefixWidth - 2;\n\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxWidth, maxWidth);\n\t\tif (isSelected) {\n\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}`);\n\t\t}\n\n\t\treturn prefix + truncatedValue;\n\t}\n\n\tprivate getPrimaryColumnWidth(): number {\n\t\tconst { min, max } = this.getPrimaryColumnBounds();\n\t\tconst widestPrimary = this.filteredItems.reduce((widest, item) => {\n\t\t\treturn Math.max(widest, visibleWidth(this.getDisplayValue(item)) + PRIMARY_COLUMN_GAP);\n\t\t}, 0);\n\n\t\treturn clamp(widestPrimary, min, max);\n\t}\n\n\tprivate getPrimaryColumnBounds(): { min: number; max: number } {\n\t\tconst rawMin =\n\t\t\tthis.layout.minPrimaryColumnWidth ?? this.layout.maxPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\t\tconst rawMax =\n\t\t\tthis.layout.maxPrimaryColumnWidth ?? this.layout.minPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\n\t\treturn {\n\t\t\tmin: Math.max(1, Math.min(rawMin, rawMax)),\n\t\t\tmax: Math.max(1, Math.max(rawMin, rawMax)),\n\t\t};\n\t}\n\n\tprivate truncatePrimary(item: SelectItem, isSelected: boolean, maxWidth: number, columnWidth: number): string {\n\t\tconst displayValue = this.getDisplayValue(item);\n\t\tconst truncatedValue = this.layout.truncatePrimary\n\t\t\t? this.layout.truncatePrimary({\n\t\t\t\t\ttext: displayValue,\n\t\t\t\t\tmaxWidth,\n\t\t\t\t\tcolumnWidth,\n\t\t\t\t\titem,\n\t\t\t\t\tisSelected,\n\t\t\t\t})\n\t\t\t: truncateToWidth(displayValue, maxWidth, \"\");\n\n\t\treturn truncateToWidth(truncatedValue, maxWidth, \"\");\n\t}\n\n\tprivate getDisplayValue(item: SelectItem): string {\n\t\treturn item.label || item.value;\n\t}\n\n\tprivate notifySelectionChange(): void {\n\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\tif (selectedItem && this.onSelectionChange) {\n\t\t\tthis.onSelectionChange(selectedItem);\n\t\t}\n\t}\n\n\tgetSelectedItem(): SelectItem | null {\n\t\tconst item = this.filteredItems[this.selectedIndex];\n\t\treturn item || null;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-list.js","sourceRoot":"","sources":["../../src/components/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAC7F,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AA8BvG,MAAM,OAAO,UAAU;IACd,KAAK,GAAiB,EAAE,CAAC;IACzB,aAAa,GAAiB,EAAE,CAAC;IACjC,aAAa,GAAW,CAAC,CAAC;IAC1B,iBAAiB,CAAqB;IACtC,UAAU,GAAW,CAAC,CAAC;IACvB,KAAK,CAAkB;IACvB,MAAM,CAA0B;IAEjC,QAAQ,CAA8B;IACtC,QAAQ,CAAc;IACtB,iBAAiB,CAA8B;IAEtD,YAAY,KAAmB,EAAE,UAAkB,EAAE,KAAsB,EAAE,MAAM,GAA4B,EAAE,EAAE;QAClH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CA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E,YAAY;gBAClB,QAAQ;gBACR,WAAW;gBACX,IAAI;gBACJ,UAAU;aACV,CAAC;YACH,CAAC,CAAC,eAAe,CAAC,YAAY,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAE/C,OAAO,eAAe,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IAAA,CACrD;IAEO,eAAe,CAAC,IAAgB,EAAU;QACjD,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;IAAA,CAChC;IAEO,qBAAqB,GAAS;QACrC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,YAAY,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC5C,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;IAAA,CACD;IAED,eAAe,GAAsB;QACpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACpD,OAAO,IAAI,IAAI,IAAI,CAAC;IAAA,CACpB;CACD","sourcesContent":["import { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth } from \"../utils.ts\";\n\nconst DEFAULT_PRIMARY_COLUMN_WIDTH = 32;\nconst PRIMARY_COLUMN_GAP = 2;\nconst MIN_DESCRIPTION_WIDTH = 10;\n\nconst normalizeToSingleLine = (text: string): string => text.replace(/[\\r\\n]+/g, \" \").trim();\nconst clamp = (value: number, min: number, max: number): number => Math.max(min, Math.min(value, max));\n\nexport interface SelectItem {\n\tvalue: string;\n\tlabel: string;\n\tdescription?: string;\n}\n\nexport interface SelectListTheme {\n\tselectedPrefix: (text: string) => string;\n\tselectedText: (text: string) => string;\n\tdescription: (text: string) => string;\n\tscrollInfo: (text: string) => string;\n\tnoMatch: (text: string) => string;\n}\n\nexport interface SelectListTruncatePrimaryContext {\n\ttext: string;\n\tmaxWidth: number;\n\tcolumnWidth: number;\n\titem: SelectItem;\n\tisSelected: boolean;\n}\n\nexport interface SelectListLayoutOptions {\n\tminPrimaryColumnWidth?: number;\n\tmaxPrimaryColumnWidth?: number;\n\ttruncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;\n}\n\nexport class SelectList implements Component {\n\tprivate items: SelectItem[] = [];\n\tprivate filteredItems: SelectItem[] = [];\n\tprivate selectedIndex: number = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number = 5;\n\tprivate theme: SelectListTheme;\n\tprivate layout: SelectListLayoutOptions;\n\n\tpublic onSelect?: (item: SelectItem) => void;\n\tpublic onCancel?: () => void;\n\tpublic onSelectionChange?: (item: SelectItem) => void;\n\n\tconstructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout: SelectListLayoutOptions = {}) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.layout = layout;\n\t}\n\n\tsetFilter(filter: string): void {\n\t\tthis.filteredItems = this.items.filter((item) => item.value.toLowerCase().startsWith(filter.toLowerCase()));\n\t\t// Reset selection when filter changes\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tsetSelectedIndex(index: number): void {\n\t\tthis.selectedIndex = Math.max(0, Math.min(index, this.filteredItems.length - 1));\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\t// If no items match filter, show message\n\t\tif (this.filteredItems.length === 0) {\n\t\t\tlines.push(this.theme.noMatch(\" No matching commands\"));\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst primaryColumnWidth = this.getPrimaryColumnWidth();\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = this.filteredItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst descriptionSingleLine = item.description ? normalizeToSingleLine(item.description) : undefined;\n\t\t\tlines.push(this.renderItem(item, isSelected, width, descriptionSingleLine, primaryColumnWidth));\n\t\t}\n\n\t\t// Add scroll indicators if needed\n\t\tif (startIndex > 0 || endIndex < this.filteredItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${this.filteredItems.length})`;\n\t\t\t// Truncate if too long for terminal\n\t\t\tlines.push(this.theme.scrollInfo(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.filteredItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(this.filteredItems.length - 1, this.selectedIndex + delta));\n\t\t\tif (this.selectedIndex !== previousIndex) this.notifySelectionChange();\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\t\tconst itemIndex = startIndex + event.y;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tif (this.selectedIndex !== itemIndex) {\n\t\t\t\tthis.selectedIndex = itemIndex;\n\t\t\t\tthis.notifySelectionChange();\n\t\t\t}\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tconst clickedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tconst changed = this.selectedIndex !== clickedIndex;\n\t\t\tthis.selectedIndex = clickedIndex;\n\t\t\tif (changed) this.notifySelectionChange();\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem) this.onSelect?.(selectedItem);\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(keyData: string): void {\n\t\tconst kb = getKeybindings();\n\t\t// Up arrow - wrap to bottom when at top\n\t\tif (kb.matches(keyData, \"tui.select.up\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? this.filteredItems.length - 1 : this.selectedIndex - 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Down arrow - wrap to top when at bottom\n\t\telse if (kb.matches(keyData, \"tui.select.down\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === this.filteredItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Enter\n\t\telse if (kb.matches(keyData, \"tui.select.confirm\")) {\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem && this.onSelect) {\n\t\t\t\tthis.onSelect(selectedItem);\n\t\t\t}\n\t\t}\n\t\t// Escape or Ctrl+C\n\t\telse if (kb.matches(keyData, \"tui.select.cancel\")) {\n\t\t\tif (this.onCancel) {\n\t\t\t\tthis.onCancel();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getVisibleRange(): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), this.filteredItems.length - this.maxVisible),\n\t\t);\n\t\treturn {\n\t\t\tstartIndex,\n\t\t\tendIndex: Math.min(startIndex + this.maxVisible, this.filteredItems.length),\n\t\t};\n\t}\n\n\tprivate renderItem(\n\t\titem: SelectItem,\n\t\tisSelected: boolean,\n\t\twidth: number,\n\t\tdescriptionSingleLine: string | undefined,\n\t\tprimaryColumnWidth: number,\n\t): string {\n\t\tconst prefix = isSelected ? \"→ \" : \" \";\n\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\tif (descriptionSingleLine && width > 40) {\n\t\t\tconst effectivePrimaryColumnWidth = Math.max(1, Math.min(primaryColumnWidth, width - prefixWidth - 4));\n\t\t\tconst maxPrimaryWidth = Math.max(1, effectivePrimaryColumnWidth - PRIMARY_COLUMN_GAP);\n\t\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxPrimaryWidth, effectivePrimaryColumnWidth);\n\t\t\tconst truncatedValueWidth = visibleWidth(truncatedValue);\n\t\t\tconst spacing = \" \".repeat(Math.max(1, effectivePrimaryColumnWidth - truncatedValueWidth));\n\t\t\tconst descriptionStart = prefixWidth + truncatedValueWidth + spacing.length;\n\t\t\tconst remainingWidth = width - descriptionStart - 2; // -2 for safety\n\n\t\t\tif (remainingWidth > MIN_DESCRIPTION_WIDTH) {\n\t\t\t\tconst truncatedDesc = truncateToWidth(descriptionSingleLine, remainingWidth, \"\");\n\t\t\t\tif (isSelected) {\n\t\t\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}${spacing}${truncatedDesc}`);\n\t\t\t\t}\n\n\t\t\t\tconst descText = this.theme.description(spacing + truncatedDesc);\n\t\t\t\treturn prefix + truncatedValue + descText;\n\t\t\t}\n\t\t}\n\n\t\tconst maxWidth = width - prefixWidth - 2;\n\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxWidth, maxWidth);\n\t\tif (isSelected) {\n\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}`);\n\t\t}\n\n\t\treturn prefix + truncatedValue;\n\t}\n\n\tprivate getPrimaryColumnWidth(): number {\n\t\tconst { min, max } = this.getPrimaryColumnBounds();\n\t\tconst widestPrimary = this.filteredItems.reduce((widest, item) => {\n\t\t\treturn Math.max(widest, visibleWidth(this.getDisplayValue(item)) + PRIMARY_COLUMN_GAP);\n\t\t}, 0);\n\n\t\treturn clamp(widestPrimary, min, max);\n\t}\n\n\tprivate getPrimaryColumnBounds(): { min: number; max: number } {\n\t\tconst rawMin =\n\t\t\tthis.layout.minPrimaryColumnWidth ?? this.layout.maxPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\t\tconst rawMax =\n\t\t\tthis.layout.maxPrimaryColumnWidth ?? this.layout.minPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\n\t\treturn {\n\t\t\tmin: Math.max(1, Math.min(rawMin, rawMax)),\n\t\t\tmax: Math.max(1, Math.max(rawMin, rawMax)),\n\t\t};\n\t}\n\n\tprivate truncatePrimary(item: SelectItem, isSelected: boolean, maxWidth: number, columnWidth: number): string {\n\t\tconst displayValue = this.getDisplayValue(item);\n\t\tconst truncatedValue = this.layout.truncatePrimary\n\t\t\t? this.layout.truncatePrimary({\n\t\t\t\t\ttext: displayValue,\n\t\t\t\t\tmaxWidth,\n\t\t\t\t\tcolumnWidth,\n\t\t\t\t\titem,\n\t\t\t\t\tisSelected,\n\t\t\t\t})\n\t\t\t: truncateToWidth(displayValue, maxWidth, \"\");\n\n\t\treturn truncateToWidth(truncatedValue, maxWidth, \"\");\n\t}\n\n\tprivate getDisplayValue(item: SelectItem): string {\n\t\treturn item.label || item.value;\n\t}\n\n\tprivate notifySelectionChange(): void {\n\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\tif (selectedItem && this.onSelectionChange) {\n\t\t\tthis.onSelectionChange(selectedItem);\n\t\t}\n\t}\n\n\tgetSelectedItem(): SelectItem | null {\n\t\tconst item = this.filteredItems[this.selectedIndex];\n\t\treturn item || null;\n\t}\n}\n"]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { Component, TuiMouseEvent, TuiMouseEventResult } from "../tui.ts";
|
|
2
|
-
export interface SettingItem {
|
|
3
|
-
/** Unique identifier for this setting */
|
|
4
|
-
id: string;
|
|
5
|
-
/** Display label (left side) */
|
|
6
|
-
label: string;
|
|
7
|
-
/** Optional description shown when selected */
|
|
8
|
-
description?: string;
|
|
9
|
-
/** Current value to display (right side) */
|
|
10
|
-
currentValue: string;
|
|
11
|
-
/** If provided, Enter/Space cycles through these values */
|
|
12
|
-
values?: string[];
|
|
13
|
-
/** If provided, Enter opens this submenu. Receives current value and done callback.
|
|
14
|
-
* done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */
|
|
15
|
-
submenu?: (currentValue: string, done: (selectedValue?: string, options?: {
|
|
16
|
-
navigateTo?: string;
|
|
17
|
-
}) => void) => Component;
|
|
18
|
-
}
|
|
19
|
-
export interface SettingsListTheme {
|
|
20
|
-
label: (text: string, selected: boolean) => string;
|
|
21
|
-
value: (text: string, selected: boolean) => string;
|
|
22
|
-
description: (text: string) => string;
|
|
23
|
-
cursor: string;
|
|
24
|
-
hint: (text: string) => string;
|
|
25
|
-
}
|
|
26
|
-
export interface SettingsListOptions {
|
|
27
|
-
enableSearch?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare class SettingsList implements Component {
|
|
30
|
-
private items;
|
|
31
|
-
private filteredItems;
|
|
32
|
-
private theme;
|
|
33
|
-
private selectedIndex;
|
|
34
|
-
private mousePressedIndex;
|
|
35
|
-
private maxVisible;
|
|
36
|
-
private onChange;
|
|
37
|
-
private onCancel;
|
|
38
|
-
private searchInput?;
|
|
39
|
-
private searchEnabled;
|
|
40
|
-
private submenuComponent;
|
|
41
|
-
private submenuItemIndex;
|
|
42
|
-
private navigateAfterClose;
|
|
43
|
-
constructor(items: SettingItem[], maxVisible: number, theme: SettingsListTheme, onChange: (id: string, newValue: string) => void, onCancel: () => void, options?: SettingsListOptions);
|
|
44
|
-
/** Update an item's currentValue */
|
|
45
|
-
updateValue(id: string, newValue: string): void;
|
|
46
|
-
/** Move selection to the item with the given id (no-op if not found). */
|
|
47
|
-
selectItem(id: string): void;
|
|
48
|
-
invalidate(): void;
|
|
49
|
-
render(width: number): string[];
|
|
50
|
-
private renderMainList;
|
|
51
|
-
handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
|
|
52
|
-
handleInput(data: string): void;
|
|
53
|
-
private getDisplayItems;
|
|
54
|
-
private getVisibleRange;
|
|
55
|
-
private activateItem;
|
|
56
|
-
private closeSubmenu;
|
|
57
|
-
private applyFilter;
|
|
58
|
-
private addHintLine;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=settings-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-list.d.ts","sourceRoot":"","sources":["../../src/components/settings-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAI/E,MAAM,WAAW,WAAW;IAC3B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;iHAC6G;IAC7G,OAAO,CAAC,EAAE,CACT,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,KACrE,SAAS,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC;IACnD,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC;IACnD,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,MAAM,EAAE,MAA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A4B9B;IAED,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,YAAY;IA8BpB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,WAAW;CAanB","sourcesContent":["import { fuzzyFilter } from \"../fuzzy.ts\";\nimport { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\nimport { Input } from \"./input.ts\";\n\nexport interface SettingItem {\n\t/** Unique identifier for this setting */\n\tid: string;\n\t/** Display label (left side) */\n\tlabel: string;\n\t/** Optional description shown when selected */\n\tdescription?: string;\n\t/** Current value to display (right side) */\n\tcurrentValue: string;\n\t/** If provided, Enter/Space cycles through these values */\n\tvalues?: string[];\n\t/** If provided, Enter opens this submenu. Receives current value and done callback.\n\t * done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */\n\tsubmenu?: (\n\t\tcurrentValue: string,\n\t\tdone: (selectedValue?: string, options?: { navigateTo?: string }) => void,\n\t) => Component;\n}\n\nexport interface SettingsListTheme {\n\tlabel: (text: string, selected: boolean) => string;\n\tvalue: (text: string, selected: boolean) => string;\n\tdescription: (text: string) => string;\n\tcursor: string;\n\thint: (text: string) => string;\n}\n\nexport interface SettingsListOptions {\n\tenableSearch?: boolean;\n}\n\nexport class SettingsList implements Component {\n\tprivate items: SettingItem[];\n\tprivate filteredItems: SettingItem[];\n\tprivate theme: SettingsListTheme;\n\tprivate selectedIndex = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number;\n\tprivate onChange: (id: string, newValue: string) => void;\n\tprivate onCancel: () => void;\n\tprivate searchInput?: Input;\n\tprivate searchEnabled: boolean;\n\n\t// Submenu state\n\tprivate submenuComponent: Component | null = null;\n\tprivate submenuItemIndex: number | null = null;\n\tprivate navigateAfterClose: string | null = null;\n\n\tconstructor(\n\t\titems: SettingItem[],\n\t\tmaxVisible: number,\n\t\ttheme: SettingsListTheme,\n\t\tonChange: (id: string, newValue: string) => void,\n\t\tonCancel: () => void,\n\t\toptions: SettingsListOptions = {},\n\t) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.onChange = onChange;\n\t\tthis.onCancel = onCancel;\n\t\tthis.searchEnabled = options.enableSearch ?? false;\n\t\tif (this.searchEnabled) {\n\t\t\tthis.searchInput = new Input();\n\t\t}\n\t}\n\n\t/** Update an item's currentValue */\n\tupdateValue(id: string, newValue: string): void {\n\t\tconst item = this.items.find((i) => i.id === id);\n\t\tif (item) {\n\t\t\titem.currentValue = newValue;\n\t\t}\n\t}\n\n\t/** Move selection to the item with the given id (no-op if not found). */\n\tselectItem(id: string): void {\n\t\tconst items = this.searchEnabled ? this.filteredItems : this.items;\n\t\tconst index = items.findIndex((i) => i.id === id);\n\t\tif (index !== -1) {\n\t\t\tthis.selectedIndex = index;\n\t\t}\n\t}\n\n\tinvalidate(): void {\n\t\tthis.submenuComponent?.invalidate?.();\n\t}\n\n\trender(width: number): string[] {\n\t\t// If submenu is active, render it instead\n\t\tif (this.submenuComponent) {\n\t\t\treturn this.submenuComponent.render(width);\n\t\t}\n\n\t\treturn this.renderMainList(width);\n\t}\n\n\tprivate renderMainList(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tlines.push(...this.searchInput.render(width));\n\t\t\tlines.push(\"\");\n\t\t}\n\n\t\tif (this.items.length === 0) {\n\t\t\tlines.push(this.theme.hint(\" No settings available\"));\n\t\t\tif (this.searchEnabled) {\n\t\t\t\tthis.addHintLine(lines, width);\n\t\t\t}\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) {\n\t\t\tlines.push(truncateToWidth(this.theme.hint(\" No matching settings\"), width));\n\t\t\tthis.addHintLine(lines, width);\n\t\t\treturn lines;\n\t\t}\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\n\t\t// Calculate max label width for alignment\n\t\tconst maxLabelWidth = Math.min(36, Math.max(...this.items.map((item) => visibleWidth(item.label))));\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = displayItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst prefix = isSelected ? this.theme.cursor : \" \";\n\t\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\t\t// Pad label to align values\n\t\t\tconst labelPadded = item.label + \" \".repeat(Math.max(0, maxLabelWidth - visibleWidth(item.label)));\n\t\t\tconst labelText = this.theme.label(labelPadded, isSelected);\n\n\t\t\t// Calculate space for value\n\t\t\tconst separator = \" \";\n\t\t\tconst usedWidth = prefixWidth + maxLabelWidth + visibleWidth(separator);\n\t\t\tconst valueMaxWidth = width - usedWidth - 2;\n\n\t\t\tconst valueText = this.theme.value(truncateToWidth(item.currentValue, valueMaxWidth, \"\"), isSelected);\n\n\t\t\tlines.push(truncateToWidth(prefix + labelText + separator + valueText, width));\n\t\t}\n\n\t\t// Add scroll indicator if needed\n\t\tif (startIndex > 0 || endIndex < displayItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${displayItems.length})`;\n\t\t\tlines.push(this.theme.hint(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\t// Add description for selected item\n\t\tconst selectedItem = displayItems[this.selectedIndex];\n\t\tif (selectedItem?.description) {\n\t\t\tlines.push(\"\");\n\t\t\tconst wrappedDesc = wrapTextWithAnsi(selectedItem.description, width - 4);\n\t\t\tfor (const line of wrappedDesc) {\n\t\t\t\tlines.push(this.theme.description(` ${line}`));\n\t\t\t}\n\t\t}\n\n\t\t// Add hint\n\t\tthis.addHintLine(lines, width);\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.submenuComponent) {\n\t\t\tconst result = this.submenuComponent.handleMouse?.(event);\n\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t}\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tif (event.y === 0) {\n\t\t\t\tconst result = this.searchInput.handleMouse?.(event);\n\t\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t\t}\n\t\t\tif (event.y === 1) return undefined;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(displayItems.length - 1, this.selectedIndex + delta));\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\n\t\tconst rowOffset = this.searchEnabled ? 2 : 0;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\t\tconst itemIndex = startIndex + event.y - rowOffset;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tthis.selectedIndex = itemIndex;\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tthis.selectedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tthis.activateItem();\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(data: string): void {\n\t\t// If submenu is active, delegate all input to it\n\t\t// The submenu's onCancel (triggered by escape) will call done() which closes it\n\t\tif (this.submenuComponent) {\n\t\t\tthis.submenuComponent.handleInput?.(data);\n\t\t\treturn;\n\t\t}\n\n\t\t// Main list input handling\n\t\tconst kb = getKeybindings();\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (kb.matches(data, \"tui.select.up\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? displayItems.length - 1 : this.selectedIndex - 1;\n\t\t} else if (kb.matches(data, \"tui.select.down\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === displayItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t} else if (\n\t\t\tkb.matches(data, \"tui.select.confirm\") ||\n\t\t\t(data === \" \" && (!this.searchEnabled || this.searchInput?.getValue().length === 0))\n\t\t) {\n\t\t\tthis.activateItem();\n\t\t} else if (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tthis.onCancel();\n\t\t} else if (this.searchEnabled && this.searchInput) {\n\t\t\tthis.searchInput.handleInput(data);\n\t\t\tthis.applyFilter(this.searchInput.getValue());\n\t\t}\n\t}\n\n\tprivate getDisplayItems(): SettingItem[] {\n\t\treturn this.searchEnabled ? this.filteredItems : this.items;\n\t}\n\n\tprivate getVisibleRange(displayItems: readonly SettingItem[]): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), displayItems.length - this.maxVisible),\n\t\t);\n\t\treturn { startIndex, endIndex: Math.min(startIndex + this.maxVisible, displayItems.length) };\n\t}\n\n\tprivate activateItem(): void {\n\t\tconst item = this.getDisplayItems()[this.selectedIndex];\n\t\tif (!item) return;\n\n\t\tif (item.submenu) {\n\t\t\t// Open submenu, passing current value so it can pre-select correctly\n\t\t\tthis.submenuItemIndex = this.selectedIndex;\n\t\t\tthis.submenuComponent = item.submenu(\n\t\t\t\titem.currentValue,\n\t\t\t\t(selectedValue?: string, options?: { navigateTo?: string }) => {\n\t\t\t\t\tif (selectedValue !== undefined) {\n\t\t\t\t\t\titem.currentValue = selectedValue;\n\t\t\t\t\t\tthis.onChange(item.id, selectedValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (options?.navigateTo) {\n\t\t\t\t\t\tthis.navigateAfterClose = options.navigateTo;\n\t\t\t\t\t}\n\t\t\t\t\tthis.closeSubmenu();\n\t\t\t\t},\n\t\t\t);\n\t\t} else if (item.values && item.values.length > 0) {\n\t\t\t// Cycle through values\n\t\t\tconst currentIndex = item.values.indexOf(item.currentValue);\n\t\t\tconst nextIndex = (currentIndex + 1) % item.values.length;\n\t\t\tconst newValue = item.values[nextIndex];\n\t\t\titem.currentValue = newValue;\n\t\t\tthis.onChange(item.id, newValue);\n\t\t}\n\t}\n\n\tprivate closeSubmenu(): void {\n\t\tthis.submenuComponent = null;\n\t\tif (this.navigateAfterClose !== null) {\n\t\t\tconst id = this.navigateAfterClose;\n\t\t\tthis.navigateAfterClose = null;\n\t\t\tthis.submenuItemIndex = null;\n\t\t\tthis.selectItem(id);\n\t\t\t// Open the target item's submenu automatically\n\t\t\tthis.activateItem();\n\t\t} else if (this.submenuItemIndex !== null) {\n\t\t\t// Restore selection to the item that opened the submenu\n\t\t\tthis.selectedIndex = this.submenuItemIndex;\n\t\t\tthis.submenuItemIndex = null;\n\t\t}\n\t}\n\n\tprivate applyFilter(query: string): void {\n\t\tthis.filteredItems = fuzzyFilter(this.items, query, (item) => item.label);\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tprivate addHintLine(lines: string[], width: number): void {\n\t\tlines.push(\"\");\n\t\tlines.push(\n\t\t\ttruncateToWidth(\n\t\t\t\tthis.theme.hint(\n\t\t\t\t\tthis.searchEnabled\n\t\t\t\t\t\t? \" Type to search · Enter/Space to change · Esc to cancel\"\n\t\t\t\t\t\t: \" Enter/Space to change · Esc to cancel\",\n\t\t\t\t),\n\t\t\t\twidth,\n\t\t\t),\n\t\t);\n\t}\n}\n"]}
|
|
@@ -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ACD,KAAK,CACL,CACD,CAAC;IAAA,CACF;CACD","sourcesContent":["import { fuzzyFilter } from \"../fuzzy.ts\";\nimport { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\nimport { Input } from \"./input.ts\";\n\nexport interface SettingItem {\n\t/** Unique identifier for this setting */\n\tid: string;\n\t/** Display label (left side) */\n\tlabel: string;\n\t/** Optional description shown when selected */\n\tdescription?: string;\n\t/** Current value to display (right side) */\n\tcurrentValue: string;\n\t/** If provided, Enter/Space cycles through these values */\n\tvalues?: string[];\n\t/** If provided, Enter opens this submenu. Receives current value and done callback.\n\t * done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */\n\tsubmenu?: (\n\t\tcurrentValue: string,\n\t\tdone: (selectedValue?: string, options?: { navigateTo?: string }) => void,\n\t) => Component;\n}\n\nexport interface SettingsListTheme {\n\tlabel: (text: string, selected: boolean) => string;\n\tvalue: (text: string, selected: boolean) => string;\n\tdescription: (text: string) => string;\n\tcursor: string;\n\thint: (text: string) => string;\n}\n\nexport interface SettingsListOptions {\n\tenableSearch?: boolean;\n}\n\nexport class SettingsList implements Component {\n\tprivate items: SettingItem[];\n\tprivate filteredItems: SettingItem[];\n\tprivate theme: SettingsListTheme;\n\tprivate selectedIndex = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number;\n\tprivate onChange: (id: string, newValue: string) => void;\n\tprivate onCancel: () => void;\n\tprivate searchInput?: Input;\n\tprivate searchEnabled: boolean;\n\n\t// Submenu state\n\tprivate submenuComponent: Component | null = null;\n\tprivate submenuItemIndex: number | null = null;\n\tprivate navigateAfterClose: string | null = null;\n\n\tconstructor(\n\t\titems: SettingItem[],\n\t\tmaxVisible: number,\n\t\ttheme: SettingsListTheme,\n\t\tonChange: (id: string, newValue: string) => void,\n\t\tonCancel: () => void,\n\t\toptions: SettingsListOptions = {},\n\t) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.onChange = onChange;\n\t\tthis.onCancel = onCancel;\n\t\tthis.searchEnabled = options.enableSearch ?? false;\n\t\tif (this.searchEnabled) {\n\t\t\tthis.searchInput = new Input();\n\t\t}\n\t}\n\n\t/** Update an item's currentValue */\n\tupdateValue(id: string, newValue: string): void {\n\t\tconst item = this.items.find((i) => i.id === id);\n\t\tif (item) {\n\t\t\titem.currentValue = newValue;\n\t\t}\n\t}\n\n\t/** Move selection to the item with the given id (no-op if not found). */\n\tselectItem(id: string): void {\n\t\tconst items = this.searchEnabled ? this.filteredItems : this.items;\n\t\tconst index = items.findIndex((i) => i.id === id);\n\t\tif (index !== -1) {\n\t\t\tthis.selectedIndex = index;\n\t\t}\n\t}\n\n\tinvalidate(): void {\n\t\tthis.submenuComponent?.invalidate?.();\n\t}\n\n\trender(width: number): string[] {\n\t\t// If submenu is active, render it instead\n\t\tif (this.submenuComponent) {\n\t\t\treturn this.submenuComponent.render(width);\n\t\t}\n\n\t\treturn this.renderMainList(width);\n\t}\n\n\tprivate renderMainList(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tlines.push(...this.searchInput.render(width));\n\t\t\tlines.push(\"\");\n\t\t}\n\n\t\tif (this.items.length === 0) {\n\t\t\tlines.push(this.theme.hint(\" No settings available\"));\n\t\t\tif (this.searchEnabled) {\n\t\t\t\tthis.addHintLine(lines, width);\n\t\t\t}\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) {\n\t\t\tlines.push(truncateToWidth(this.theme.hint(\" No matching settings\"), width));\n\t\t\tthis.addHintLine(lines, width);\n\t\t\treturn lines;\n\t\t}\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\n\t\t// Calculate max label width for alignment\n\t\tconst maxLabelWidth = Math.min(36, Math.max(...this.items.map((item) => visibleWidth(item.label))));\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = displayItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst prefix = isSelected ? this.theme.cursor : \" \";\n\t\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\t\t// Pad label to align values\n\t\t\tconst labelPadded = item.label + \" \".repeat(Math.max(0, maxLabelWidth - visibleWidth(item.label)));\n\t\t\tconst labelText = this.theme.label(labelPadded, isSelected);\n\n\t\t\t// Calculate space for value\n\t\t\tconst separator = \" \";\n\t\t\tconst usedWidth = prefixWidth + maxLabelWidth + visibleWidth(separator);\n\t\t\tconst valueMaxWidth = width - usedWidth - 2;\n\n\t\t\tconst valueText = this.theme.value(truncateToWidth(item.currentValue, valueMaxWidth, \"\"), isSelected);\n\n\t\t\tlines.push(truncateToWidth(prefix + labelText + separator + valueText, width));\n\t\t}\n\n\t\t// Add scroll indicator if needed\n\t\tif (startIndex > 0 || endIndex < displayItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${displayItems.length})`;\n\t\t\tlines.push(this.theme.hint(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\t// Add description for selected item\n\t\tconst selectedItem = displayItems[this.selectedIndex];\n\t\tif (selectedItem?.description) {\n\t\t\tlines.push(\"\");\n\t\t\tconst wrappedDesc = wrapTextWithAnsi(selectedItem.description, width - 4);\n\t\t\tfor (const line of wrappedDesc) {\n\t\t\t\tlines.push(this.theme.description(` ${line}`));\n\t\t\t}\n\t\t}\n\n\t\t// Add hint\n\t\tthis.addHintLine(lines, width);\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.submenuComponent) {\n\t\t\tconst result = this.submenuComponent.handleMouse?.(event);\n\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t}\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tif (event.y === 0) {\n\t\t\t\tconst result = this.searchInput.handleMouse?.(event);\n\t\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t\t}\n\t\t\tif (event.y === 1) return undefined;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(displayItems.length - 1, this.selectedIndex + delta));\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\n\t\tconst rowOffset = this.searchEnabled ? 2 : 0;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\t\tconst itemIndex = startIndex + event.y - rowOffset;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tthis.selectedIndex = itemIndex;\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tthis.selectedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tthis.activateItem();\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(data: string): void {\n\t\t// If submenu is active, delegate all input to it\n\t\t// The submenu's onCancel (triggered by escape) will call done() which closes it\n\t\tif (this.submenuComponent) {\n\t\t\tthis.submenuComponent.handleInput?.(data);\n\t\t\treturn;\n\t\t}\n\n\t\t// Main list input handling\n\t\tconst kb = getKeybindings();\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (kb.matches(data, \"tui.select.up\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? displayItems.length - 1 : this.selectedIndex - 1;\n\t\t} else if (kb.matches(data, \"tui.select.down\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === displayItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t} else if (\n\t\t\tkb.matches(data, \"tui.select.confirm\") ||\n\t\t\t(data === \" \" && (!this.searchEnabled || this.searchInput?.getValue().length === 0))\n\t\t) {\n\t\t\tthis.activateItem();\n\t\t} else if (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tthis.onCancel();\n\t\t} else if (this.searchEnabled && this.searchInput) {\n\t\t\tthis.searchInput.handleInput(data);\n\t\t\tthis.applyFilter(this.searchInput.getValue());\n\t\t}\n\t}\n\n\tprivate getDisplayItems(): SettingItem[] {\n\t\treturn this.searchEnabled ? this.filteredItems : this.items;\n\t}\n\n\tprivate getVisibleRange(displayItems: readonly SettingItem[]): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), displayItems.length - this.maxVisible),\n\t\t);\n\t\treturn { startIndex, endIndex: Math.min(startIndex + this.maxVisible, displayItems.length) };\n\t}\n\n\tprivate activateItem(): void {\n\t\tconst item = this.getDisplayItems()[this.selectedIndex];\n\t\tif (!item) return;\n\n\t\tif (item.submenu) {\n\t\t\t// Open submenu, passing current value so it can pre-select correctly\n\t\t\tthis.submenuItemIndex = this.selectedIndex;\n\t\t\tthis.submenuComponent = item.submenu(\n\t\t\t\titem.currentValue,\n\t\t\t\t(selectedValue?: string, options?: { navigateTo?: string }) => {\n\t\t\t\t\tif (selectedValue !== undefined) {\n\t\t\t\t\t\titem.currentValue = selectedValue;\n\t\t\t\t\t\tthis.onChange(item.id, selectedValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (options?.navigateTo) {\n\t\t\t\t\t\tthis.navigateAfterClose = options.navigateTo;\n\t\t\t\t\t}\n\t\t\t\t\tthis.closeSubmenu();\n\t\t\t\t},\n\t\t\t);\n\t\t} else if (item.values && item.values.length > 0) {\n\t\t\t// Cycle through values\n\t\t\tconst currentIndex = item.values.indexOf(item.currentValue);\n\t\t\tconst nextIndex = (currentIndex + 1) % item.values.length;\n\t\t\tconst newValue = item.values[nextIndex];\n\t\t\titem.currentValue = newValue;\n\t\t\tthis.onChange(item.id, newValue);\n\t\t}\n\t}\n\n\tprivate closeSubmenu(): void {\n\t\tthis.submenuComponent = null;\n\t\tif (this.navigateAfterClose !== null) {\n\t\t\tconst id = this.navigateAfterClose;\n\t\t\tthis.navigateAfterClose = null;\n\t\t\tthis.submenuItemIndex = null;\n\t\t\tthis.selectItem(id);\n\t\t\t// Open the target item's submenu automatically\n\t\t\tthis.activateItem();\n\t\t} else if (this.submenuItemIndex !== null) {\n\t\t\t// Restore selection to the item that opened the submenu\n\t\t\tthis.selectedIndex = this.submenuItemIndex;\n\t\t\tthis.submenuItemIndex = null;\n\t\t}\n\t}\n\n\tprivate applyFilter(query: string): void {\n\t\tthis.filteredItems = fuzzyFilter(this.items, query, (item) => item.label);\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tprivate addHintLine(lines: string[], width: number): void {\n\t\tlines.push(\"\");\n\t\tlines.push(\n\t\t\ttruncateToWidth(\n\t\t\t\tthis.theme.hint(\n\t\t\t\t\tthis.searchEnabled\n\t\t\t\t\t\t? \" Type to search · Enter/Space to change · Esc to cancel\"\n\t\t\t\t\t\t: \" Enter/Space to change · Esc to cancel\",\n\t\t\t\t),\n\t\t\t\twidth,\n\t\t\t),\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Component } from "../tui.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Spacer component that renders empty lines
|
|
4
|
-
*/
|
|
5
|
-
export declare class Spacer implements Component {
|
|
6
|
-
private lines;
|
|
7
|
-
constructor(lines?: number);
|
|
8
|
-
setLines(lines: number): void;
|
|
9
|
-
invalidate(): void;
|
|
10
|
-
render(_width: number): string[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=spacer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacer.d.ts","sourceRoot":"","sources":["../../src/components/spacer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,qBAAa,MAAO,YAAW,SAAS;IACvC,OAAO,CAAC,KAAK,CAAS;IAEtB,YAAY,KAAK,GAAE,MAAU,EAE5B;IAED,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAE5B;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAM/B;CACD","sourcesContent":["import type { Component } from \"../tui.ts\";\n\n/**\n * Spacer component that renders empty lines\n */\nexport class Spacer implements Component {\n\tprivate lines: number;\n\n\tconstructor(lines: number = 1) {\n\t\tthis.lines = lines;\n\t}\n\n\tsetLines(lines: number): void {\n\t\tthis.lines = lines;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(_width: number): string[] {\n\t\tconst result: string[] = [];\n\t\tfor (let i = 0; i < this.lines; i++) {\n\t\t\tresult.push(\"\");\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacer.js","sourceRoot":"","sources":["../../src/components/spacer.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,MAAM;IACV,KAAK,CAAS;IAEtB,YAAY,KAAK,GAAW,CAAC,EAAE;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAAA,CACnB;IAED,QAAQ,CAAC,KAAa,EAAQ;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAAA,CACnB;IAED,UAAU,GAAS;QAClB,0CAA0C;IADvB,CAEnB;IAED,MAAM,CAAC,MAAc,EAAY;QAChC,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,MAAM,CAAC;IAAA,CACd;CACD","sourcesContent":["import type { Component } from \"../tui.ts\";\n\n/**\n * Spacer component that renders empty lines\n */\nexport class Spacer implements Component {\n\tprivate lines: number;\n\n\tconstructor(lines: number = 1) {\n\t\tthis.lines = lines;\n\t}\n\n\tsetLines(lines: number): void {\n\t\tthis.lines = lines;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(_width: number): string[] {\n\t\tconst result: string[] = [];\n\t\tfor (let i = 0; i < this.lines; i++) {\n\t\t\tresult.push(\"\");\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from "../layout-node.ts";
|
|
2
|
-
import { type Component, Container } from "../tui.ts";
|
|
3
|
-
export interface StackEntryOptions {
|
|
4
|
-
basis?: number | "auto";
|
|
5
|
-
grow?: number;
|
|
6
|
-
shrink?: number;
|
|
7
|
-
minSize?: number;
|
|
8
|
-
maxSize?: number;
|
|
9
|
-
visible?: (viewport: LayoutViewport) => boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface StackEntry extends StackEntryOptions {
|
|
12
|
-
component: Component;
|
|
13
|
-
}
|
|
14
|
-
export type StackChild = Component | StackEntry;
|
|
15
|
-
export interface StackOptions {
|
|
16
|
-
gap?: number;
|
|
17
|
-
align?: "stretch" | "start" | "center" | "end";
|
|
18
|
-
/** Horizontal inset applied to children (fullscreen gutter). */
|
|
19
|
-
padX?: number;
|
|
20
|
-
/** Vertical inset applied to children (fullscreen gutter). */
|
|
21
|
-
padY?: number;
|
|
22
|
-
}
|
|
23
|
-
export declare abstract class Stack extends Container {
|
|
24
|
-
protected readonly entries: StackLayoutEntry[];
|
|
25
|
-
protected readonly gap: number;
|
|
26
|
-
protected readonly align: "stretch" | "start" | "center" | "end";
|
|
27
|
-
protected readonly padX: number;
|
|
28
|
-
protected readonly padY: number;
|
|
29
|
-
protected abstract readonly layoutType: "vstack" | "hstack";
|
|
30
|
-
constructor(children?: StackChild[], options?: StackOptions);
|
|
31
|
-
addChild(component: Component, options?: StackEntryOptions): void;
|
|
32
|
-
removeChild(component: Component): void;
|
|
33
|
-
clear(): void;
|
|
34
|
-
[LAYOUT_NODE](): StackLayoutNode;
|
|
35
|
-
}
|
|
36
|
-
export declare function visibleStackEntries(entries: readonly StackLayoutEntry[], viewport: LayoutViewport): StackLayoutEntry[];
|
|
37
|
-
export declare function allocateStackSizes(entries: readonly StackLayoutEntry[], intrinsicSizes: readonly number[], availableSize: number | undefined, gap: number): number[];
|
|
38
|
-
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/components/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC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B,CAClC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,QAAQ,EAAE,cAAc,GACtB,gBAAgB,EAAE,CAEpB;AAgDD,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,cAAc,EAAE,SAAS,MAAM,EAAE,EACjC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,GAAG,EAAE,MAAM,GACT,MAAM,EAAE,CAcV","sourcesContent":["import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport interface StackEntryOptions {\n\tbasis?: number | \"auto\";\n\tgrow?: number;\n\tshrink?: number;\n\tminSize?: number;\n\tmaxSize?: number;\n\tvisible?: (viewport: LayoutViewport) => boolean;\n}\n\nexport interface StackEntry extends StackEntryOptions {\n\tcomponent: Component;\n}\n\nexport type StackChild = Component | StackEntry;\n\nexport interface StackOptions {\n\tgap?: number;\n\talign?: \"stretch\" | \"start\" | \"center\" | \"end\";\n\t/** Horizontal inset applied to children (fullscreen gutter). */\n\tpadX?: number;\n\t/** Vertical inset applied to children (fullscreen gutter). */\n\tpadY?: number;\n}\n\nfunction isStackEntry(child: StackChild): child is StackEntry {\n\treturn !(\"render\" in child);\n}\n\nfunction normalizeSize(value: number | undefined, fallback: number): number {\n\treturn value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.floor(value));\n}\n\nexport abstract class Stack extends Container {\n\tprotected readonly entries: StackLayoutEntry[] = [];\n\tprotected readonly gap: number;\n\tprotected readonly align: \"stretch\" | \"start\" | \"center\" | \"end\";\n\tprotected readonly padX: number;\n\tprotected readonly padY: number;\n\tprotected abstract readonly layoutType: \"vstack\" | \"hstack\";\n\n\tconstructor(children: StackChild[] = [], options: StackOptions = {}) {\n\t\tsuper();\n\t\tthis.gap = normalizeSize(options.gap, 0);\n\t\tthis.align = options.align ?? \"stretch\";\n\t\tthis.padX = normalizeSize(options.padX, 0);\n\t\tthis.padY = normalizeSize(options.padY, 0);\n\t\tfor (const child of children) {\n\t\t\tif (isStackEntry(child)) this.addChild(child.component, child);\n\t\t\telse this.addChild(child);\n\t\t}\n\t}\n\n\toverride addChild(component: Component, options: StackEntryOptions = {}): void {\n\t\tsuper.addChild(component);\n\t\tthis.entries.push({\n\t\t\tcomponent,\n\t\t\t...(options.basis === undefined ? {} : { basis: options.basis }),\n\t\t\t...(options.grow === undefined ? {} : { grow: normalizeSize(options.grow, 0) }),\n\t\t\t...(options.shrink === undefined ? {} : { shrink: normalizeSize(options.shrink, 1) }),\n\t\t\t...(options.minSize === undefined ? {} : { minSize: normalizeSize(options.minSize, 0) }),\n\t\t\t...(options.maxSize === undefined ? {} : { maxSize: normalizeSize(options.maxSize, Number.MAX_SAFE_INTEGER) }),\n\t\t\t...(options.visible === undefined ? {} : { visible: options.visible }),\n\t\t});\n\t}\n\n\toverride removeChild(component: Component): void {\n\t\tsuper.removeChild(component);\n\t\tconst index = this.entries.findIndex((entry) => entry.component === component);\n\t\tif (index !== -1) this.entries.splice(index, 1);\n\t}\n\n\toverride clear(): void {\n\t\tsuper.clear();\n\t\tthis.entries.length = 0;\n\t}\n\n\t[LAYOUT_NODE](): StackLayoutNode {\n\t\treturn {\n\t\t\ttype: this.layoutType,\n\t\t\tentries: this.entries,\n\t\t\tgap: this.gap,\n\t\t\talign: this.align,\n\t\t\t...(this.padX > 0 ? { padX: this.padX } : {}),\n\t\t\t...(this.padY > 0 ? { padY: this.padY } : {}),\n\t\t};\n\t}\n}\n\nexport function visibleStackEntries(\n\tentries: readonly StackLayoutEntry[],\n\tviewport: LayoutViewport,\n): StackLayoutEntry[] {\n\treturn entries.filter((entry) => entry.visible?.(viewport) ?? true);\n}\n\nfunction clampSize(size: number, entry: StackLayoutEntry): number {\n\tconst min = Math.max(0, Math.floor(entry.minSize ?? 0));\n\tconst max = Math.max(min, Math.floor(entry.maxSize ?? Number.MAX_SAFE_INTEGER));\n\treturn Math.max(min, Math.min(max, Math.max(0, Math.floor(size))));\n}\n\nfunction distribute(\n\tsizes: number[],\n\tentries: readonly StackLayoutEntry[],\n\tamount: number,\n\tmode: \"grow\" | \"shrink\",\n): void {\n\tlet remaining = amount;\n\twhile (remaining > 0) {\n\t\tconst candidates = entries\n\t\t\t.map((entry, index) => ({ entry, index }))\n\t\t\t.filter(({ entry, index }) => {\n\t\t\t\tif (mode === \"grow\") {\n\t\t\t\t\treturn (entry.grow ?? 0) > 0 && sizes[index]! < (entry.maxSize ?? Number.MAX_SAFE_INTEGER);\n\t\t\t\t}\n\t\t\t\treturn (entry.shrink ?? 1) > 0 && sizes[index]! > (entry.minSize ?? 0);\n\t\t\t});\n\t\tif (candidates.length === 0) return;\n\n\t\tconst totalWeight = candidates.reduce((sum, { entry, index }) => {\n\t\t\treturn sum + (mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!));\n\t\t}, 0);\n\t\tlet distributed = 0;\n\t\tfor (const { entry, index } of candidates) {\n\t\t\tif (remaining <= 0) break;\n\t\t\tconst weight = mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!);\n\t\t\tconst proposed = Math.max(1, Math.floor((remaining * weight) / totalWeight));\n\t\t\tconst capacity =\n\t\t\t\tmode === \"grow\"\n\t\t\t\t\t? (entry.maxSize ?? Number.MAX_SAFE_INTEGER) - sizes[index]!\n\t\t\t\t\t: sizes[index]! - (entry.minSize ?? 0);\n\t\t\tconst delta = Math.min(remaining, proposed, capacity);\n\t\t\tif (delta <= 0) continue;\n\t\t\tsizes[index] = sizes[index]! + (mode === \"grow\" ? delta : -delta);\n\t\t\tremaining -= delta;\n\t\t\tdistributed += delta;\n\t\t}\n\t\tif (distributed === 0) return;\n\t}\n}\n\nexport function allocateStackSizes(\n\tentries: readonly StackLayoutEntry[],\n\tintrinsicSizes: readonly number[],\n\tavailableSize: number | undefined,\n\tgap: number,\n): number[] {\n\tconst sizes = entries.map((entry, index) =>\n\t\tclampSize(\n\t\t\tentry.basis === undefined || entry.basis === \"auto\" ? (intrinsicSizes[index] ?? 0) : entry.basis,\n\t\t\tentry,\n\t\t),\n\t);\n\tif (availableSize === undefined) return sizes;\n\n\tconst contentSize = Math.max(0, Math.floor(availableSize) - Math.max(0, entries.length - 1) * gap);\n\tconst total = sizes.reduce((sum, size) => sum + size, 0);\n\tif (total < contentSize) distribute(sizes, entries, contentSize - total, \"grow\");\n\telse if (total > contentSize) distribute(sizes, entries, total - contentSize, \"shrink\");\n\treturn sizes;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/components/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EAAkB,SAAS,EAAE,MAAM,WAAW,CAAC;AA0BtD,SAAS,YAAY,CAAC,KAAiB,EAAuB;IAC7D,OAAO,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC;AAAA,CAC5B;AAED,SAAS,aAAa,CAAC,KAAyB,EAAE,QAAgB,EAAU;IAC3E,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAAA,CAClG;AAED,MAAM,OAAgB,KAAM,SAAQ,SAAS;IACzB,OAAO,GAAuB,EAAE,CAAC;IACjC,GAAG,CAAS;IACZ,KAAK,CAAyC;IAC9C,IAAI,CAAS;IACb,IAAI,CAAS;IAGhC,YAAY,QAAQ,GAAiB,EAAE,EAAE,OAAO,GAAiB,EAAE,EAAE;QACpE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,E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AAS;QAAE,OAAO,KAAK,CAAC;IAE9C,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;IACnG,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,GAAG,WAAW;QAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,GAAG,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5E,IAAI,KAAK,GAAG,WAAW;QAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAG,WAAW,EAAE,QAAQ,CAAC,CAAC;IACxF,OAAO,KAAK,CAAC;AAAA,CACb","sourcesContent":["import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport interface StackEntryOptions {\n\tbasis?: number | \"auto\";\n\tgrow?: number;\n\tshrink?: number;\n\tminSize?: number;\n\tmaxSize?: number;\n\tvisible?: (viewport: LayoutViewport) => boolean;\n}\n\nexport interface StackEntry extends StackEntryOptions {\n\tcomponent: Component;\n}\n\nexport type StackChild = Component | StackEntry;\n\nexport interface StackOptions {\n\tgap?: number;\n\talign?: \"stretch\" | \"start\" | \"center\" | \"end\";\n\t/** Horizontal inset applied to children (fullscreen gutter). */\n\tpadX?: number;\n\t/** Vertical inset applied to children (fullscreen gutter). */\n\tpadY?: number;\n}\n\nfunction isStackEntry(child: StackChild): child is StackEntry {\n\treturn !(\"render\" in child);\n}\n\nfunction normalizeSize(value: number | undefined, fallback: number): number {\n\treturn value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.floor(value));\n}\n\nexport abstract class Stack extends Container {\n\tprotected readonly entries: StackLayoutEntry[] = [];\n\tprotected readonly gap: number;\n\tprotected readonly align: \"stretch\" | \"start\" | \"center\" | \"end\";\n\tprotected readonly padX: number;\n\tprotected readonly padY: number;\n\tprotected abstract readonly layoutType: \"vstack\" | \"hstack\";\n\n\tconstructor(children: StackChild[] = [], options: StackOptions = {}) {\n\t\tsuper();\n\t\tthis.gap = normalizeSize(options.gap, 0);\n\t\tthis.align = options.align ?? \"stretch\";\n\t\tthis.padX = normalizeSize(options.padX, 0);\n\t\tthis.padY = normalizeSize(options.padY, 0);\n\t\tfor (const child of children) {\n\t\t\tif (isStackEntry(child)) this.addChild(child.component, child);\n\t\t\telse this.addChild(child);\n\t\t}\n\t}\n\n\toverride addChild(component: Component, options: StackEntryOptions = {}): void {\n\t\tsuper.addChild(component);\n\t\tthis.entries.push({\n\t\t\tcomponent,\n\t\t\t...(options.basis === undefined ? {} : { basis: options.basis }),\n\t\t\t...(options.grow === undefined ? {} : { grow: normalizeSize(options.grow, 0) }),\n\t\t\t...(options.shrink === undefined ? {} : { shrink: normalizeSize(options.shrink, 1) }),\n\t\t\t...(options.minSize === undefined ? {} : { minSize: normalizeSize(options.minSize, 0) }),\n\t\t\t...(options.maxSize === undefined ? {} : { maxSize: normalizeSize(options.maxSize, Number.MAX_SAFE_INTEGER) }),\n\t\t\t...(options.visible === undefined ? {} : { visible: options.visible }),\n\t\t});\n\t}\n\n\toverride removeChild(component: Component): void {\n\t\tsuper.removeChild(component);\n\t\tconst index = this.entries.findIndex((entry) => entry.component === component);\n\t\tif (index !== -1) this.entries.splice(index, 1);\n\t}\n\n\toverride clear(): void {\n\t\tsuper.clear();\n\t\tthis.entries.length = 0;\n\t}\n\n\t[LAYOUT_NODE](): StackLayoutNode {\n\t\treturn {\n\t\t\ttype: this.layoutType,\n\t\t\tentries: this.entries,\n\t\t\tgap: this.gap,\n\t\t\talign: this.align,\n\t\t\t...(this.padX > 0 ? { padX: this.padX } : {}),\n\t\t\t...(this.padY > 0 ? { padY: this.padY } : {}),\n\t\t};\n\t}\n}\n\nexport function visibleStackEntries(\n\tentries: readonly StackLayoutEntry[],\n\tviewport: LayoutViewport,\n): StackLayoutEntry[] {\n\treturn entries.filter((entry) => entry.visible?.(viewport) ?? true);\n}\n\nfunction clampSize(size: number, entry: StackLayoutEntry): number {\n\tconst min = Math.max(0, Math.floor(entry.minSize ?? 0));\n\tconst max = Math.max(min, Math.floor(entry.maxSize ?? Number.MAX_SAFE_INTEGER));\n\treturn Math.max(min, Math.min(max, Math.max(0, Math.floor(size))));\n}\n\nfunction distribute(\n\tsizes: number[],\n\tentries: readonly StackLayoutEntry[],\n\tamount: number,\n\tmode: \"grow\" | \"shrink\",\n): void {\n\tlet remaining = amount;\n\twhile (remaining > 0) {\n\t\tconst candidates = entries\n\t\t\t.map((entry, index) => ({ entry, index }))\n\t\t\t.filter(({ entry, index }) => {\n\t\t\t\tif (mode === \"grow\") {\n\t\t\t\t\treturn (entry.grow ?? 0) > 0 && sizes[index]! < (entry.maxSize ?? Number.MAX_SAFE_INTEGER);\n\t\t\t\t}\n\t\t\t\treturn (entry.shrink ?? 1) > 0 && sizes[index]! > (entry.minSize ?? 0);\n\t\t\t});\n\t\tif (candidates.length === 0) return;\n\n\t\tconst totalWeight = candidates.reduce((sum, { entry, index }) => {\n\t\t\treturn sum + (mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!));\n\t\t}, 0);\n\t\tlet distributed = 0;\n\t\tfor (const { entry, index } of candidates) {\n\t\t\tif (remaining <= 0) break;\n\t\t\tconst weight = mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!);\n\t\t\tconst proposed = Math.max(1, Math.floor((remaining * weight) / totalWeight));\n\t\t\tconst capacity =\n\t\t\t\tmode === \"grow\"\n\t\t\t\t\t? (entry.maxSize ?? Number.MAX_SAFE_INTEGER) - sizes[index]!\n\t\t\t\t\t: sizes[index]! - (entry.minSize ?? 0);\n\t\t\tconst delta = Math.min(remaining, proposed, capacity);\n\t\t\tif (delta <= 0) continue;\n\t\t\tsizes[index] = sizes[index]! + (mode === \"grow\" ? delta : -delta);\n\t\t\tremaining -= delta;\n\t\t\tdistributed += delta;\n\t\t}\n\t\tif (distributed === 0) return;\n\t}\n}\n\nexport function allocateStackSizes(\n\tentries: readonly StackLayoutEntry[],\n\tintrinsicSizes: readonly number[],\n\tavailableSize: number | undefined,\n\tgap: number,\n): number[] {\n\tconst sizes = entries.map((entry, index) =>\n\t\tclampSize(\n\t\t\tentry.basis === undefined || entry.basis === \"auto\" ? (intrinsicSizes[index] ?? 0) : entry.basis,\n\t\t\tentry,\n\t\t),\n\t);\n\tif (availableSize === undefined) return sizes;\n\n\tconst contentSize = Math.max(0, Math.floor(availableSize) - Math.max(0, entries.length - 1) * gap);\n\tconst total = sizes.reduce((sum, size) => sum + size, 0);\n\tif (total < contentSize) distribute(sizes, entries, contentSize - total, \"grow\");\n\telse if (total > contentSize) distribute(sizes, entries, total - contentSize, \"shrink\");\n\treturn sizes;\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Component } from "../tui.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Text component - displays multi-line text with word wrapping
|
|
4
|
-
*/
|
|
5
|
-
export declare class Text implements Component {
|
|
6
|
-
private text;
|
|
7
|
-
private paddingX;
|
|
8
|
-
private paddingY;
|
|
9
|
-
private customBgFn?;
|
|
10
|
-
private cachedText?;
|
|
11
|
-
private cachedWidth?;
|
|
12
|
-
private cachedLines?;
|
|
13
|
-
constructor(text?: string, paddingX?: number, paddingY?: number, customBgFn?: (text: string) => string);
|
|
14
|
-
setText(text: string): void;
|
|
15
|
-
setCustomBgFn(customBgFn?: (text: string) => string): void;
|
|
16
|
-
invalidate(): void;
|
|
17
|
-
render(width: number): string[];
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGhE;;GAEG;AACH,qBAAa,IAAK,YAAW,SAAS;IACrC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAC,CAA2B;IAG9C,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAW;IAE/B,YAAY,IAAI,GAAE,MAAW,EAAE,QAAQ,GAAE,MAAU,EAAE,QAAQ,GAAE,MAAU,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAK/G;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAG1B;IAED,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAKzD;IAED,UAAU,IAAI,IAAI,CAKjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CA6D9B;CACD","sourcesContent":["import { bumpLayoutAncestors, type Component } from \"../tui.ts\";\nimport { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\n\n/**\n * Text component - displays multi-line text with word wrapping\n */\nexport class Text implements Component {\n\tprivate text: string;\n\tprivate paddingX: number; // Left/right padding\n\tprivate paddingY: number; // Top/bottom padding\n\tprivate customBgFn?: (text: string) => string;\n\n\t// Cache for rendered output\n\tprivate cachedText?: string;\n\tprivate cachedWidth?: number;\n\tprivate cachedLines?: string[];\n\n\tconstructor(text: string = \"\", paddingX: number = 1, paddingY: number = 1, customBgFn?: (text: string) => string) {\n\t\tthis.text = text;\n\t\tthis.paddingX = paddingX;\n\t\tthis.paddingY = paddingY;\n\t\tthis.customBgFn = customBgFn;\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.text = text;\n\t\tthis.invalidate();\n\t}\n\n\tsetCustomBgFn(customBgFn?: (text: string) => string): void {\n\t\tthis.customBgFn = customBgFn;\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\trender(width: number): string[] {\n\t\t// Check cache\n\t\tif (this.cachedLines && this.cachedText === this.text && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\t// Don't render anything if there's no actual text\n\t\tif (!this.text || this.text.trim() === \"\") {\n\t\t\tconst result: string[] = [];\n\t\t\tthis.cachedText = this.text;\n\t\t\tthis.cachedWidth = width;\n\t\t\tthis.cachedLines = result;\n\t\t\treturn result;\n\t\t}\n\n\t\t// Replace tabs with 3 spaces\n\t\tconst normalizedText = this.text.replace(/\\t/g, \" \");\n\n\t\t// Reduce margins when necessary so content and padding fit within the available width.\n\t\tconst paddingX = Math.min(this.paddingX, Math.max(0, Math.floor((width - 1) / 2)));\n\t\tconst contentWidth = Math.max(1, width - paddingX * 2);\n\n\t\t// Wrap text (this preserves ANSI codes but does NOT pad)\n\t\tconst wrappedLines = wrapTextWithAnsi(normalizedText, contentWidth);\n\n\t\t// Add margins and background to each line\n\t\tconst leftMargin = \" \".repeat(paddingX);\n\t\tconst rightMargin = \" \".repeat(paddingX);\n\t\tconst contentLines: string[] = [];\n\n\t\tfor (const line of wrappedLines) {\n\t\t\t// Add margins\n\t\t\tconst lineWithMargins = leftMargin + line + rightMargin;\n\n\t\t\t// Apply background if specified (this also pads to full width)\n\t\t\tif (this.customBgFn) {\n\t\t\t\tcontentLines.push(applyBackgroundToLine(lineWithMargins, width, this.customBgFn));\n\t\t\t} else {\n\t\t\t\t// No background - just pad to width with spaces\n\t\t\t\tconst visibleLen = visibleWidth(lineWithMargins);\n\t\t\t\tconst paddingNeeded = Math.max(0, width - visibleLen);\n\t\t\t\tcontentLines.push(lineWithMargins + \" \".repeat(paddingNeeded));\n\t\t\t}\n\t\t}\n\n\t\t// Add top/bottom padding (empty lines)\n\t\tconst emptyLine = \" \".repeat(width);\n\t\tconst emptyLines: string[] = [];\n\t\tfor (let i = 0; i < this.paddingY; i++) {\n\t\t\tconst line = this.customBgFn ? applyBackgroundToLine(emptyLine, width, this.customBgFn) : emptyLine;\n\t\t\temptyLines.push(line);\n\t\t}\n\n\t\tconst result = [...emptyLines, ...contentLines, ...emptyLines];\n\n\t\t// Update cache\n\t\tthis.cachedText = this.text;\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedLines = result;\n\n\t\treturn result.length > 0 ? result : [\"\"];\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAkB,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,IAAI;IACR,IAAI,CAAS;IACb,QAAQ,CAAS,CAAC,qBAAqB;IACvC,QAAQ,CAAS,CAAC,qBAAqB;IACvC,UAAU,CAA4B;IAE9C,4BAA4B;IACpB,UAAU,CAAU;IACpB,WAAW,CAAU;IACrB,WAAW,CAAY;IAE/B,YAAY,IAAI,GAAW,EAAE,EAAE,QAAQ,GAAW,CAAC,EAAE,QAAQ,GAAW,CAAC,EAAE,UAAqC,EAAE;QACjH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;Q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ED,uCAAuC;QACvC,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,UAAU,GAAa,EAAE,CAAC;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QAED,MAAM,MAAM,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,YAAY,EAAE,GAAG,UAAU,CAAC,CAAC;QAE/D,eAAe;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;QAE1B,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAAA,CACzC;CACD","sourcesContent":["import { bumpLayoutAncestors, type Component } from \"../tui.ts\";\nimport { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\n\n/**\n * Text component - displays multi-line text with word wrapping\n */\nexport class Text implements Component {\n\tprivate text: string;\n\tprivate paddingX: number; // Left/right padding\n\tprivate paddingY: number; // Top/bottom padding\n\tprivate customBgFn?: (text: string) => string;\n\n\t// Cache for rendered output\n\tprivate cachedText?: string;\n\tprivate cachedWidth?: number;\n\tprivate cachedLines?: string[];\n\n\tconstructor(text: string = \"\", paddingX: number = 1, paddingY: number = 1, customBgFn?: (text: string) => string) {\n\t\tthis.text = text;\n\t\tthis.paddingX = paddingX;\n\t\tthis.paddingY = paddingY;\n\t\tthis.customBgFn = customBgFn;\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.text = text;\n\t\tthis.invalidate();\n\t}\n\n\tsetCustomBgFn(customBgFn?: (text: string) => string): void {\n\t\tthis.customBgFn = customBgFn;\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\trender(width: number): string[] {\n\t\t// Check cache\n\t\tif (this.cachedLines && this.cachedText === this.text && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\t// Don't render anything if there's no actual text\n\t\tif (!this.text || this.text.trim() === \"\") {\n\t\t\tconst result: string[] = [];\n\t\t\tthis.cachedText = this.text;\n\t\t\tthis.cachedWidth = width;\n\t\t\tthis.cachedLines = result;\n\t\t\treturn result;\n\t\t}\n\n\t\t// Replace tabs with 3 spaces\n\t\tconst normalizedText = this.text.replace(/\\t/g, \" \");\n\n\t\t// Reduce margins when necessary so content and padding fit within the available width.\n\t\tconst paddingX = Math.min(this.paddingX, Math.max(0, Math.floor((width - 1) / 2)));\n\t\tconst contentWidth = Math.max(1, width - paddingX * 2);\n\n\t\t// Wrap text (this preserves ANSI codes but does NOT pad)\n\t\tconst wrappedLines = wrapTextWithAnsi(normalizedText, contentWidth);\n\n\t\t// Add margins and background to each line\n\t\tconst leftMargin = \" \".repeat(paddingX);\n\t\tconst rightMargin = \" \".repeat(paddingX);\n\t\tconst contentLines: string[] = [];\n\n\t\tfor (const line of wrappedLines) {\n\t\t\t// Add margins\n\t\t\tconst lineWithMargins = leftMargin + line + rightMargin;\n\n\t\t\t// Apply background if specified (this also pads to full width)\n\t\t\tif (this.customBgFn) {\n\t\t\t\tcontentLines.push(applyBackgroundToLine(lineWithMargins, width, this.customBgFn));\n\t\t\t} else {\n\t\t\t\t// No background - just pad to width with spaces\n\t\t\t\tconst visibleLen = visibleWidth(lineWithMargins);\n\t\t\t\tconst paddingNeeded = Math.max(0, width - visibleLen);\n\t\t\t\tcontentLines.push(lineWithMargins + \" \".repeat(paddingNeeded));\n\t\t\t}\n\t\t}\n\n\t\t// Add top/bottom padding (empty lines)\n\t\tconst emptyLine = \" \".repeat(width);\n\t\tconst emptyLines: string[] = [];\n\t\tfor (let i = 0; i < this.paddingY; i++) {\n\t\t\tconst line = this.customBgFn ? applyBackgroundToLine(emptyLine, width, this.customBgFn) : emptyLine;\n\t\t\temptyLines.push(line);\n\t\t}\n\n\t\tconst result = [...emptyLines, ...contentLines, ...emptyLines];\n\n\t\t// Update cache\n\t\tthis.cachedText = this.text;\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedLines = result;\n\n\t\treturn result.length > 0 ? result : [\"\"];\n\t}\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Component } from "../tui.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Text component that truncates to fit viewport width
|
|
4
|
-
*/
|
|
5
|
-
export declare class TruncatedText implements Component {
|
|
6
|
-
private text;
|
|
7
|
-
private paddingX;
|
|
8
|
-
private paddingY;
|
|
9
|
-
constructor(text: string, paddingX?: number, paddingY?: number);
|
|
10
|
-
invalidate(): void;
|
|
11
|
-
render(width: number): string[];
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=truncated-text.d.ts.map
|