dal-code 0.1.1
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 +5626 -0
- package/LICENSE +21 -0
- package/NOTICE +29 -0
- package/PRIVACY.md +103 -0
- package/README.md +108 -0
- package/dist/bun/cli.d.ts +5 -0
- package/dist/bun/cli.d.ts.map +1 -0
- package/dist/bun/cli.js +5 -0
- package/dist/bun/cli.js.map +1 -0
- package/dist/bun/register-bedrock.d.ts +2 -0
- package/dist/bun/register-bedrock.d.ts.map +1 -0
- package/dist/bun/register-bedrock.js +4 -0
- package/dist/bun/register-bedrock.js.map +1 -0
- package/dist/bun/restore-sandbox-env.d.ts +17 -0
- package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
- package/dist/bun/restore-sandbox-env.js +36 -0
- package/dist/bun/restore-sandbox-env.js.map +1 -0
- package/dist/bun/runtime-setup.d.ts +2 -0
- package/dist/bun/runtime-setup.d.ts.map +1 -0
- package/dist/bun/runtime-setup.js +9 -0
- package/dist/bun/runtime-setup.js.map +1 -0
- package/dist/bun/sandbox-env-setup.d.ts +2 -0
- package/dist/bun/sandbox-env-setup.d.ts.map +1 -0
- package/dist/bun/sandbox-env-setup.js +4 -0
- package/dist/bun/sandbox-env-setup.js.map +1 -0
- package/dist/cli/args.d.ts +61 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +440 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/auth-check.d.ts +19 -0
- package/dist/cli/auth-check.d.ts.map +1 -0
- package/dist/cli/auth-check.js +50 -0
- package/dist/cli/auth-check.js.map +1 -0
- package/dist/cli/auth-command.d.ts +24 -0
- package/dist/cli/auth-command.d.ts.map +1 -0
- package/dist/cli/auth-command.js +103 -0
- package/dist/cli/auth-command.js.map +1 -0
- package/dist/cli/config-selector.d.ts +16 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +32 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/credential-print.d.ts +13 -0
- package/dist/cli/credential-print.d.ts.map +1 -0
- package/dist/cli/credential-print.js +76 -0
- package/dist/cli/credential-print.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +71 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +98 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/project-trust.d.ts +10 -0
- package/dist/cli/project-trust.d.ts.map +1 -0
- package/dist/cli/project-trust.js +49 -0
- package/dist/cli/project-trust.js.map +1 -0
- package/dist/cli/session-picker.d.ts +10 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +36 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli/setup.d.ts +2 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +12 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +20 -0
- package/dist/cli/startup-ui.d.ts.map +1 -0
- package/dist/cli/startup-ui.js +185 -0
- package/dist/cli/startup-ui.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +6 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +107 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +504 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +119 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +317 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +86 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +134 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +687 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +2887 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +17 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +72 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +426 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +32 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +111 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/cache-stats.d.ts +49 -0
- package/dist/core/cache-stats.d.ts.map +1 -0
- package/dist/core/cache-stats.js +101 -0
- package/dist/core/cache-stats.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +98 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +251 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +143 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +668 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +38 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +142 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +4 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +11 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/empty-assistant.d.ts +13 -0
- package/dist/core/empty-assistant.d.ts.map +1 -0
- package/dist/core/empty-assistant.js +27 -0
- package/dist/core/empty-assistant.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/experimental.d.ts +6 -0
- package/dist/core/experimental.d.ts.map +1 -0
- package/dist/core/experimental.js +8 -0
- package/dist/core/experimental.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +226 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1864 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +108 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +78 -0
- package/dist/core/extensions/api-version.d.ts +9 -0
- package/dist/core/extensions/api-version.d.ts.map +1 -0
- package/dist/core/extensions/api-version.js +17 -0
- package/dist/core/extensions/api-version.js.map +1 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +23 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +653 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/permission-surface.d.ts +10 -0
- package/dist/core/extensions/permission-surface.d.ts.map +1 -0
- package/dist/core/extensions/permission-surface.js +33 -0
- package/dist/core/extensions/permission-surface.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +178 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +1014 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1393 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +60 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +41 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +64 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +338 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -0
- package/dist/core/http-dispatcher.js +98 -0
- package/dist/core/http-dispatcher.js.map +1 -0
- package/dist/core/index.d.ts +13 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +13 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +433 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +326 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/messages.d.ts +77 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +123 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-config.d.ts +591 -0
- package/dist/core/model-config.d.ts.map +1 -0
- package/dist/core/model-config.js +259 -0
- package/dist/core/model-config.js.map +1 -0
- package/dist/core/model-registry.d.ts +45 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +107 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +130 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +615 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/model-runtime.d.ts +101 -0
- package/dist/core/model-runtime.d.ts.map +1 -0
- package/dist/core/model-runtime.js +603 -0
- package/dist/core/model-runtime.js.map +1 -0
- package/dist/core/models-store.d.ts +22 -0
- package/dist/core/models-store.d.ts.map +1 -0
- package/dist/core/models-store.js +115 -0
- package/dist/core/models-store.js.map +1 -0
- package/dist/core/output-guard.d.ts +7 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +89 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +224 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +2241 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/pi-manifest.d.ts +25 -0
- package/dist/core/pi-manifest.d.ts.map +1 -0
- package/dist/core/pi-manifest.js +83 -0
- package/dist/core/pi-manifest.js.map +1 -0
- package/dist/core/project-map.d.ts +23 -0
- package/dist/core/project-map.d.ts.map +1 -0
- package/dist/core/project-map.js +268 -0
- package/dist/core/project-map.js.map +1 -0
- package/dist/core/project-trust.d.ts +15 -0
- package/dist/core/project-trust.d.ts.map +1 -0
- package/dist/core/project-trust.js +59 -0
- package/dist/core/project-trust.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +54 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +236 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-attribution.d.ts +4 -0
- package/dist/core/provider-attribution.d.ts.map +1 -0
- package/dist/core/provider-attribution.js +72 -0
- package/dist/core/provider-attribution.js.map +1 -0
- package/dist/core/provider-composer.d.ts +58 -0
- package/dist/core/provider-composer.d.ts.map +1 -0
- package/dist/core/provider-composer.js +409 -0
- package/dist/core/provider-composer.js.map +1 -0
- package/dist/core/radius.d.ts +2 -0
- package/dist/core/radius.d.ts.map +1 -0
- package/dist/core/radius.js +2 -0
- package/dist/core/radius.js.map +1 -0
- package/dist/core/remote-catalog-provider.d.ts +5 -0
- package/dist/core/remote-catalog-provider.d.ts.map +1 -0
- package/dist/core/remote-catalog-provider.js +122 -0
- package/dist/core/remote-catalog-provider.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +30 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +247 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +221 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +885 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/runtime-credentials.d.ts +15 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -0
- package/dist/core/runtime-credentials.js +39 -0
- package/dist/core/runtime-credentials.js.map +1 -0
- package/dist/core/sdk.d.ts +108 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +290 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-export.d.ts +4 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +32 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts +357 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1370 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +333 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +1005 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +60 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +407 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +15 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +29 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/system-prompt.d.ts +28 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +118 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/telemetry.d.ts +3 -0
- package/dist/core/telemetry.d.ts.map +1 -0
- package/dist/core/telemetry.js +9 -0
- package/dist/core/telemetry.js.map +1 -0
- package/dist/core/timings.d.ts +10 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +41 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +87 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +439 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +101 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +421 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +55 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +327 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +52 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +42 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +306 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +41 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +312 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +43 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +129 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +41 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +175 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +52 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +184 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +99 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +39 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/tools/read.d.ts +39 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +279 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +29 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +113 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/renderers/bash.d.ts +12 -0
- package/dist/core/tools/renderers/bash.d.ts.map +1 -0
- package/dist/core/tools/renderers/bash.js +130 -0
- package/dist/core/tools/renderers/bash.js.map +1 -0
- package/dist/core/tools/renderers/edit.d.ts +23 -0
- package/dist/core/tools/renderers/edit.d.ts.map +1 -0
- package/dist/core/tools/renderers/edit.js +167 -0
- package/dist/core/tools/renderers/edit.js.map +1 -0
- package/dist/core/tools/renderers/find.d.ts +10 -0
- package/dist/core/tools/renderers/find.d.ts.map +1 -0
- package/dist/core/tools/renderers/find.js +64 -0
- package/dist/core/tools/renderers/find.js.map +1 -0
- package/dist/core/tools/renderers/grep.d.ts +10 -0
- package/dist/core/tools/renderers/grep.d.ts.map +1 -0
- package/dist/core/tools/renderers/grep.js +69 -0
- package/dist/core/tools/renderers/grep.js.map +1 -0
- package/dist/core/tools/renderers/index.d.ts +28 -0
- package/dist/core/tools/renderers/index.d.ts.map +1 -0
- package/dist/core/tools/renderers/index.js +47 -0
- package/dist/core/tools/renderers/index.js.map +1 -0
- package/dist/core/tools/renderers/ls.d.ts +10 -0
- package/dist/core/tools/renderers/ls.d.ts.map +1 -0
- package/dist/core/tools/renderers/ls.js +58 -0
- package/dist/core/tools/renderers/ls.js.map +1 -0
- package/dist/core/tools/renderers/read.d.ts +11 -0
- package/dist/core/tools/renderers/read.d.ts.map +1 -0
- package/dist/core/tools/renderers/read.js +129 -0
- package/dist/core/tools/renderers/read.js.map +1 -0
- package/dist/core/tools/renderers/write.d.ts +10 -0
- package/dist/core/tools/renderers/write.d.ts.map +1 -0
- package/dist/core/tools/renderers/write.js +153 -0
- package/dist/core/tools/renderers/write.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +36 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +215 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/write.d.ts +30 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +208 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/core/trust-manager.d.ts +36 -0
- package/dist/core/trust-manager.d.ts.map +1 -0
- package/dist/core/trust-manager.js +203 -0
- package/dist/core/trust-manager.js.map +1 -0
- package/dist/core/usage-totals.d.ts +19 -0
- package/dist/core/usage-totals.d.ts.map +1 -0
- package/dist/core/usage-totals.js +52 -0
- package/dist/core/usage-totals.js.map +1 -0
- package/dist/dal/builtins.d.ts +17 -0
- package/dist/dal/builtins.d.ts.map +1 -0
- package/dist/dal/builtins.js +80 -0
- package/dist/dal/builtins.js.map +1 -0
- package/dist/dal/i18n.d.ts +12 -0
- package/dist/dal/i18n.d.ts.map +1 -0
- package/dist/dal/i18n.js +2 -0
- package/dist/dal/i18n.js.map +1 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +3 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/llama/client.d.ts +67 -0
- package/dist/extensions/llama/client.d.ts.map +1 -0
- package/dist/extensions/llama/client.js +309 -0
- package/dist/extensions/llama/client.js.map +1 -0
- package/dist/extensions/llama/huggingface.d.ts +23 -0
- package/dist/extensions/llama/huggingface.d.ts.map +1 -0
- package/dist/extensions/llama/huggingface.js +141 -0
- package/dist/extensions/llama/huggingface.js.map +1 -0
- package/dist/extensions/llama/index.d.ts +3 -0
- package/dist/extensions/llama/index.d.ts.map +1 -0
- package/dist/extensions/llama/index.js +219 -0
- package/dist/extensions/llama/index.js.map +1 -0
- package/dist/extensions/llama/provider.d.ts +12 -0
- package/dist/extensions/llama/provider.d.ts.map +1 -0
- package/dist/extensions/llama/provider.js +146 -0
- package/dist/extensions/llama/provider.js.map +1 -0
- package/dist/extensions/llama/ui.d.ts +42 -0
- package/dist/extensions/llama/ui.d.ts.map +1 -0
- package/dist/extensions/llama/ui.js +416 -0
- package/dist/extensions/llama/ui.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +16 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +804 -0
- package/dist/main.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +282 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/acp/acp-mapping.d.ts +17 -0
- package/dist/modes/acp/acp-mapping.d.ts.map +1 -0
- package/dist/modes/acp/acp-mapping.js +131 -0
- package/dist/modes/acp/acp-mapping.js.map +1 -0
- package/dist/modes/acp/acp-mode.d.ts +11 -0
- package/dist/modes/acp/acp-mode.d.ts.map +1 -0
- package/dist/modes/acp/acp-mode.js +131 -0
- package/dist/modes/acp/acp-mode.js.map +1 -0
- package/dist/modes/acp/acp-stream.d.ts +9 -0
- package/dist/modes/acp/acp-stream.d.ts.map +1 -0
- package/dist/modes/acp/acp-stream.js +21 -0
- package/dist/modes/acp/acp-stream.js.map +1 -0
- package/dist/modes/index.d.ts +11 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +9 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/chat-viewport.d.ts +20 -0
- package/dist/modes/interactive/chat-viewport.d.ts.map +1 -0
- package/dist/modes/interactive/chat-viewport.js +28 -0
- package/dist/modes/interactive/chat-viewport.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +29 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +183 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +156 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +55 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +39 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +41 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +103 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +781 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +30 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +115 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts +19 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-entry.js +52 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +22 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +88 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/dal-brand.d.ts +46 -0
- package/dist/modes/interactive/components/dal-brand.d.ts.map +1 -0
- package/dist/modes/interactive/components/dal-brand.js +202 -0
- package/dist/modes/interactive/components/dal-brand.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +20 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +45 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
- package/dist/modes/interactive/components/earendil-announcement.js +40 -0
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +21 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +96 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +26 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +83 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +32 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +191 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +34 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +35 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +36 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +184 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts +3 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.js +19 -0
- package/dist/modes/interactive/components/markdown-transform.js.map +1 -0
- package/dist/modes/interactive/components/mermaid.d.ts +11 -0
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -0
- package/dist/modes/interactive/components/mermaid.js +75 -0
- package/dist/modes/interactive/components/mermaid.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +60 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +358 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +33 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +161 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +46 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +325 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +867 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +92 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +708 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts +72 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.js +165 -0
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +37 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +45 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/status-indicator.d.ts +46 -0
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -0
- package/dist/modes/interactive/components/status-indicator.js +121 -0
- package/dist/modes/interactive/components/status-indicator.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +48 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +23 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +102 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +76 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +442 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +94 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1245 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/trust-selector.js +91 -0
- package/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +19 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +79 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/external-editor.d.ts +12 -0
- package/dist/modes/interactive/external-editor.d.ts.map +1 -0
- package/dist/modes/interactive/external-editor.js +38 -0
- package/dist/modes/interactive/external-editor.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +448 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +5688 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts +7 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.js +34 -0
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -0
- package/dist/modes/interactive/model-search.d.ts +12 -0
- package/dist/modes/interactive/model-search.d.ts.map +1 -0
- package/dist/modes/interactive/model-search.js +15 -0
- package/dist/modes/interactive/model-search.js.map +1 -0
- package/dist/modes/interactive/session-share.d.ts +16 -0
- package/dist/modes/interactive/session-share.d.ts.map +1 -0
- package/dist/modes/interactive/session-share.js +184 -0
- package/dist/modes/interactive/session-share.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +84 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +41 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.js +130 -0
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/modes/interactive/theme/theme-json.d.ts +84 -0
- package/dist/modes/interactive/theme/theme-json.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-json.js +130 -0
- package/dist/modes/interactive/theme/theme-json.js.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.json +356 -0
- package/dist/modes/interactive/theme/theme.d.ts +131 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +992 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/interactive/tui-renderer.d.ts +21 -0
- package/dist/modes/interactive/tui-renderer.d.ts.map +1 -0
- package/dist/modes/interactive/tui-renderer.js +66 -0
- package/dist/modes/interactive/tui-renderer.js.map +1 -0
- package/dist/modes/json-event.d.ts +34 -0
- package/dist/modes/json-event.d.ts.map +1 -0
- package/dist/modes/json-event.js +29 -0
- package/dist/modes/json-event.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +142 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +49 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +269 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +555 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +674 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +497 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/node_modules/@dalcode/dal-bridge/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-bridge/package.json +32 -0
- package/dist/node_modules/@dalcode/dal-bridge/src/client.ts +77 -0
- package/dist/node_modules/@dalcode/dal-bridge/src/index.ts +204 -0
- package/dist/node_modules/@dalcode/dal-gateway/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-gateway/package.json +30 -0
- package/dist/node_modules/@dalcode/dal-gateway/src/index.ts +124 -0
- package/dist/node_modules/@dalcode/dal-guard/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-guard/package.json +32 -0
- package/dist/node_modules/@dalcode/dal-guard/src/index.ts +262 -0
- package/dist/node_modules/@dalcode/dal-halo/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-halo/package.json +27 -0
- package/dist/node_modules/@dalcode/dal-halo/src/halo-client.ts +118 -0
- package/dist/node_modules/@dalcode/dal-halo/src/index.ts +131 -0
- package/dist/node_modules/@dalcode/dal-lang/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-lang/package.json +31 -0
- package/dist/node_modules/@dalcode/dal-lang/src/index.ts +57 -0
- package/dist/node_modules/@dalcode/dal-lsp/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-lsp/package.json +32 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/index.ts +92 -0
- package/dist/node_modules/@dalcode/dal-mcp/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-mcp/package.json +35 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config.ts +116 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/http-client.ts +134 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/index.ts +297 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/report.ts +33 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.ts +159 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/types.ts +39 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts +18 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts.map +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +241 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js.map +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts +2 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js +2 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js.map +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +20 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.ts +279 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/src/index.ts +1 -0
- package/dist/node_modules/@dalcode/dal-subagent/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-subagent/package.json +34 -0
- package/dist/node_modules/@dalcode/dal-subagent/src/index.ts +218 -0
- package/dist/node_modules/@dalcode/dal-telemetry/LICENSE +21 -0
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +33 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/config.ts +114 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/index.ts +140 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/redact.ts +98 -0
- package/dist/node_modules/@dalcode/dal-telemetry/src/reporter.ts +132 -0
- package/dist/node_modules/@dalcode/deepailab/LICENSE +21 -0
- package/dist/node_modules/@dalcode/deepailab/package.json +33 -0
- package/dist/node_modules/@dalcode/deepailab/src/index.ts +268 -0
- package/dist/node_modules/@dalcode/deepailab/src/model-defaults.ts +136 -0
- package/dist/node_modules/@dalcode/deepailab/src/oidc.ts +507 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/README.md +517 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +586 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +122 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js +422 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +716 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +68 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +176 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +126 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +560 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +120 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js +27 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js +13 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +794 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js +250 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js +82 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js +49 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts +67 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js +121 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +38 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js +406 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +51 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +102 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +49 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +225 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts +100 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +415 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +133 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js +81 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js +170 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js +133 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js +179 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js +205 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js +140 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js +85 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts +23 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js +394 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js +37 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts +32 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js +929 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js +49 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts +14 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js +244 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js +449 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js +93 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +59 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js +311 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +101 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js +1575 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js +66 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js +240 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js +117 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js +72 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +105 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js +61 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +53 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js +57 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js +49 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js +22 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js +127 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts +39 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js +216 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +11 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js +45 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +19 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js +383 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +34 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js +285 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +41 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js +274 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +39 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +103 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +293 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +42 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +33 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +168 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +50 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js +374 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js +21 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts +11 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +39 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +82 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +361 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts +65 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +319 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts +12 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js +24 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js +127 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js +114 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js +590 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js +600 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +762 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js +100 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts +11 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js +16 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js +41 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts +12 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +511 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js +9 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +95 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js +81 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +46 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +326 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +30 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +1242 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js +527 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js +105 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts +89 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js +386 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js +108 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js +46 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js +106 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +35 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js +108 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts +11 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +31 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +291 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +75 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js +79 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +31 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js +217 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +29 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +71 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +71 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +296 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js +33 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js +26 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js +3 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +72 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +310 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +29 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts +29 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +103 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js +17 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +416 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +68 -0
- package/dist/node_modules/@earendil-works/pi-ai/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/README.md +1713 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +71 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +1161 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +249 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts +38 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1091 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js +30 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts +77 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js +72 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts +69 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +159 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts +20 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +222 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js +29 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +421 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts +84 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +400 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +470 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +70 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +741 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts +31 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +1300 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +1357 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +689 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +298 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +132 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +99 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +313 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +66 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +187 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js +42 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js +51 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +53 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +308 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js +69 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +392 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +248 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +59 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js +105 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +450 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +277 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js +31 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +321 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js +190 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +132 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +231 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +113 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +39 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +67 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js +205 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +156 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +785 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +787 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js +23 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts +95 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js +143 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.js +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/images.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +36 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.js +23 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js +49 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts +29 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +211 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +81 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js +83 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.js +595 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js +131 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +93 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +83 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +27 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js +86 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +102 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +488 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js +34 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +94 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +34 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +24 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +16 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +20 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +27 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +63 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +64 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +743 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js +34 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js +49 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +77 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +425 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts +9 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +36 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js +25 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +133 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +116 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +81 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js +14 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +18 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +113 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +133 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +68 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +172 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js +12 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js +44 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js +94 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +53 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +176 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js +26 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +2 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js +15 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +6 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js +10 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js +21 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js +42 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +18 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +309 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/package.json +87 -0
- package/dist/node_modules/@earendil-works/pi-client/CHANGELOG.md +25 -0
- package/dist/node_modules/@earendil-works/pi-client/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-client/README.md +72 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts +30 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/client.js +388 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/client.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.js +208 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/connection.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts +14 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.js +28 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/errors.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/index.js +3 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.js +11 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/promise.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts +58 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js +57 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/state.js +148 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/state.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.js +2 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/transport.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts +21 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.js +281 -0
- package/dist/node_modules/@earendil-works/pi-client/dist/unix.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-client/package.json +45 -0
- package/dist/node_modules/@earendil-works/pi-protocol/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-protocol/README.md +41 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js +165 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js +201 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js +4 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js +29 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js +119 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts +27 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js +140 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts +5 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js +5 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts +167 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js +85 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts +14002 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js +468 -0
- package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-protocol/package.json +39 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/README.md +464 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +194 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js +18 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +26 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js +154 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js +18 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts +4 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js +294 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js +2 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js +2 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +37 -0
- package/dist/node_modules/@earendil-works/pi-tui/LICENSE +21 -0
- package/dist/node_modules/@earendil-works/pi-tui/README.md +903 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts +46 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +282 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +57 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +665 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js +37 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +24 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js +133 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +22 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +35 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +269 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js +2086 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js +43 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js +90 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +48 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js +417 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +46 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js +97 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +103 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +813 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +12 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +21 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +63 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +216 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +53 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +206 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +60 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +252 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +12 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +23 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts +38 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js +117 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +19 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js +90 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +13 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +51 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts +8 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js +35 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +41 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js +2 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +16 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +110 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +32 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.js +43 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +273 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js +233 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +184 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js +1174 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +28 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +44 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js +1285 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js +6 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts +42 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js +498 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +3 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +54 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +7 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +56 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +366 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +10 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js +59 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +118 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +550 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +123 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js +460 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +159 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +1492 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts +39 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +594 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +399 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js +1112 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +17 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +25 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +98 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js +1200 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts +25 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js +96 -0
- package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +1 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/darwin/README.md +20 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +62 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/win32/README.md +22 -0
- package/dist/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +229 -0
- package/dist/node_modules/@earendil-works/pi-tui/package.json +43 -0
- package/dist/package-manager-cli.d.ts +10 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +1054 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/rpc-entry.d.ts +3 -0
- package/dist/rpc-entry.d.ts.map +1 -0
- package/dist/rpc-entry.js +11 -0
- package/dist/rpc-entry.js.map +1 -0
- package/dist/server/create-harness.d.ts +26 -0
- package/dist/server/create-harness.d.ts.map +1 -0
- package/dist/server/create-harness.js +106 -0
- package/dist/server/create-harness.js.map +1 -0
- package/dist/utils/abort.d.ts +5 -0
- package/dist/utils/abort.d.ts.map +1 -0
- package/dist/utils/abort.js +48 -0
- package/dist/utils/abort.js.map +1 -0
- package/dist/utils/ansi.d.ts +2 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +52 -0
- package/dist/utils/ansi.js.map +1 -0
- package/dist/utils/changelog.d.ts +24 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +176 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +18 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +106 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +245 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard-native.d.ts +11 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -0
- package/dist/utils/clipboard-native.js +20 -0
- package/dist/utils/clipboard-native.js.map +1 -0
- package/dist/utils/clipboard.d.ts +4 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +161 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/deprecation.d.ts +4 -0
- package/dist/utils/deprecation.d.ts.map +1 -0
- package/dist/utils/deprecation.js +13 -0
- package/dist/utils/deprecation.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -0
- package/dist/utils/exif-orientation.js +157 -0
- package/dist/utils/exif-orientation.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +27 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +195 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/image-convert.d.ts +10 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +45 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-process.d.ts +18 -0
- package/dist/utils/image-process.d.ts.map +1 -0
- package/dist/utils/image-process.js +83 -0
- package/dist/utils/image-process.js.map +1 -0
- package/dist/utils/image-resize-core.d.ts +30 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -0
- package/dist/utils/image-resize-core.js +124 -0
- package/dist/utils/image-resize-core.js.map +1 -0
- package/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/utils/image-resize-worker.js +31 -0
- package/dist/utils/image-resize-worker.js.map +1 -0
- package/dist/utils/image-resize.d.ts +16 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +97 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +7 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/management-http.d.ts +25 -0
- package/dist/utils/management-http.d.ts.map +1 -0
- package/dist/utils/management-http.js +54 -0
- package/dist/utils/management-http.js.map +1 -0
- package/dist/utils/mime.d.ts +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +110 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/offline.d.ts +12 -0
- package/dist/utils/offline.d.ts.map +1 -0
- package/dist/utils/offline.js +19 -0
- package/dist/utils/offline.js.map +1 -0
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +22 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/paths.d.ts +34 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +114 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/pi-user-agent.d.ts +2 -0
- package/dist/utils/pi-user-agent.d.ts.map +1 -0
- package/dist/utils/pi-user-agent.js +6 -0
- package/dist/utils/pi-user-agent.js.map +1 -0
- package/dist/utils/shell.d.ts +34 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +216 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts +13 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +177 -0
- package/dist/utils/syntax-highlight.js.map +1 -0
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/dist/utils/tool-result-images.d.ts +19 -0
- package/dist/utils/tool-result-images.d.ts.map +1 -0
- package/dist/utils/tool-result-images.js +45 -0
- package/dist/utils/tool-result-images.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +13 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +338 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +23 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +215 -0
- package/dist/utils/version-check.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -0
- package/dist/utils/windows-self-update.js +77 -0
- package/dist/utils/windows-self-update.js.map +1 -0
- package/docs/configuration.md +59 -0
- package/docs/extensions.md +85 -0
- package/docs/index.md +77 -0
- package/docs/security.md +56 -0
- package/examples/README.md +28 -0
- package/examples/extensions/README.md +213 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +117 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +611 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +55 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +81 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/entry-renderer.ts +41 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +185 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/handoff.ts +190 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/kimi-deferred-tools.ts +61 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +57 -0
- package/examples/extensions/official/git-checkpoint.ts +1 -0
- package/examples/extensions/official/notify.ts +1 -0
- package/examples/extensions/official/package.json +25 -0
- package/examples/extensions/official/plan-mode.ts +1 -0
- package/examples/extensions/official/todo.ts +1 -0
- package/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/examples/extensions/overlay-test.ts +153 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +66 -0
- package/examples/extensions/plan-mode/index.ts +382 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +97 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +118 -0
- package/examples/extensions/question.ts +286 -0
- package/examples/extensions/questionnaire.ts +448 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +321 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +177 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +157 -0
- package/examples/extensions/subagent/index.ts +1038 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +199 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/plugins/pi-example-plugin/README.md +38 -0
- package/examples/plugins/pi-example-plugin/package.json +10 -0
- package/examples/plugins/pi-example-plugin/src/contract.ts +13 -0
- package/examples/plugins/pi-example-plugin/src/session.ts +23 -0
- package/examples/plugins/pi-example-plugin/src/tui.ts +31 -0
- package/examples/rpc-extension-ui.ts +641 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +75 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +99 -0
- package/examples/sdk/07-context-files.ts +47 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +74 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +140 -0
- package/examples/skills/project-map/SKILL.md +18 -0
- package/npm-shrinkwrap.json +2282 -0
- package/package.json +114 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/components/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,SAAS,EAAwC,MAAM,QAAQ,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAkB,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpF,MAAM,0BAA0B,GAAG,8DAA8D,CAAC;AAElG,MAAM,4BAA6B,SAAQ,SAAS;IAC1C,GAAG,CAAC,GAAW,EAA0B;QACjD,MAAM,KAAK,GAAG,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,EAAE,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EAAE,EAAE,CAAC,KAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,SAAK,iBAAiB,CAAC,IAAI,CAAC,WAAK,CAAC,QAAI,CAAC,CAAC;QAEnD,IAAI,aAAa,IAAI,aAAa,KAAK,OAAO,EAAE,CAAC;YAChD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,0BAA0B;QAC3C,CAAC;QACD,OAAO,KAAK,CAAC;IAAA,CACb;CACD","sourcesContent":["import { Marked, type Token, Tokenizer, type TokenizerExtension, type Tokens } from \"marked\";\nimport { renderLatex } from \"../latex.ts\";\nimport { getCapabilities, hyperlink, isImageLine } from \"../terminal-image.ts\";\nimport { bumpLayoutAncestors, type Component } from \"../tui.ts\";\nimport { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\n\nconst STRICT_STRIKETHROUGH_REGEX = /^(~~)(?=[^\\s~])((?:\\\\.|[^\\\\])*?(?:\\\\.|[^\\s~\\\\]))\\1(?=[^~]|$)/;\n\nclass StrictStrikethroughTokenizer extends Tokenizer {\n\toverride del(src: string): Tokens.Del | undefined {\n\t\tconst match = STRICT_STRIKETHROUGH_REGEX.exec(src);\n\t\tif (!match) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst text = match[2];\n\t\treturn {\n\t\t\ttype: \"del\",\n\t\t\traw: match[0],\n\t\t\ttext,\n\t\t\ttokens: this.lexer.inlineTokens(text),\n\t\t};\n\t}\n}\n\ninterface LatexToken extends Tokens.Generic {\n\ttype: \"latex\" | \"latexBlock\";\n\ttext: string;\n\tpending?: boolean;\n}\n\nfunction isEscaped(source: string, index: number): boolean {\n\tlet backslashes = 0;\n\tfor (let position = index - 1; position >= 0 && source[position] === \"\\\\\"; position--) {\n\t\tbackslashes++;\n\t}\n\treturn backslashes % 2 === 1;\n}\n\nfunction findClosingDelimiter(source: string, closing: string, start: number): number {\n\tlet index = source.indexOf(closing, start);\n\twhile (index >= 0 && isEscaped(source, index)) {\n\t\tindex = source.indexOf(closing, index + closing.length);\n\t}\n\treturn index;\n}\n\nfunction looksLikePendingDollarMath(source: string): boolean {\n\treturn /\\\\[A-Za-z]+|[_^=+*/<>()[\\]|±≤≥≠≈∈→⇒∞∫∑√-]/.test(source);\n}\n\nfunction tokenizeInlineLatex(source: string): LatexToken | undefined {\n\tlet opening = \"\";\n\tlet closing = \"\";\n\tif (source.startsWith(\"$$\")) {\n\t\topening = \"$$\";\n\t\tclosing = \"$$\";\n\t} else if (source.startsWith(\"\\\\(\")) {\n\t\topening = \"\\\\(\";\n\t\tclosing = \"\\\\)\";\n\t} else if (source.startsWith(\"\\\\[\")) {\n\t\topening = \"\\\\[\";\n\t\tclosing = \"\\\\]\";\n\t} else if (source.startsWith(\"$\") && !/^\\$\\s/.test(source)) {\n\t\topening = \"$\";\n\t\tclosing = \"$\";\n\t} else {\n\t\treturn undefined;\n\t}\n\n\tconst closingIndex = findClosingDelimiter(source, closing, opening.length);\n\tif (\n\t\tclosingIndex >= 0 &&\n\t\topening === \"$\" &&\n\t\t(/\\s$/.test(source.slice(opening.length, closingIndex)) ||\n\t\t\t/^\\d/.test(source.slice(closingIndex + 1)) ||\n\t\t\t(/^[A-Z_][A-Z0-9_]*(?:[^A-Za-z0-9_\\s])?$/.test(source.slice(opening.length, closingIndex)) &&\n\t\t\t\t/^[A-Za-z_][A-Za-z0-9_]*/.test(source.slice(closingIndex + 1))) ||\n\t\t\tsource.slice(opening.length, closingIndex).includes(\"`\"))\n\t) {\n\t\treturn undefined;\n\t}\n\n\tif (closingIndex < 0) {\n\t\tconst pendingSource = source.slice(opening.length);\n\t\tif (opening.startsWith(\"\\\\\") || looksLikePendingDollarMath(pendingSource)) {\n\t\t\treturn { type: \"latex\", raw: source, text: pendingSource, pending: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tconst text = source.slice(opening.length, closingIndex);\n\tif (!text || text.includes(\"\\n\")) {\n\t\treturn undefined;\n\t}\n\n\tconst raw = source.slice(0, closingIndex + closing.length);\n\treturn { type: \"latex\", raw, text };\n}\n\nfunction tokenizeBlockLatex(source: string): LatexToken | undefined {\n\tconst dollarMatch = /^ {0,3}\\$\\$[ \\t]*(?:\\n)?([\\s\\S]*?)\\$\\$[ \\t]*(?:\\n|$)/.exec(source);\n\tif (dollarMatch?.[1]) {\n\t\treturn { type: \"latexBlock\", raw: dollarMatch[0], text: dollarMatch[1].trim() };\n\t}\n\n\tconst bracketMatch = /^ {0,3}\\\\\\[[ \\t]*(?:\\n)?([\\s\\S]*?)\\\\\\][ \\t]*(?:\\n|$)/.exec(source);\n\tif (bracketMatch?.[1]) {\n\t\treturn { type: \"latexBlock\", raw: bracketMatch[0], text: bracketMatch[1].trim() };\n\t}\n\n\tconst pendingBracket = /^ {0,3}\\\\\\[[ \\t]*(?:\\n)?([\\s\\S]*)$/.exec(source);\n\tif (pendingBracket) {\n\t\treturn { type: \"latexBlock\", raw: pendingBracket[0], text: pendingBracket[1], pending: true };\n\t}\n\tconst pendingDollar = /^ {0,3}\\$\\$[ \\t]*(?:\\n)?([\\s\\S]*)$/.exec(source);\n\tif (pendingDollar?.[1] && looksLikePendingDollarMath(pendingDollar[1])) {\n\t\treturn { type: \"latexBlock\", raw: pendingDollar[0], text: pendingDollar[1], pending: true };\n\t}\n\treturn undefined;\n}\n\nconst LATEX_MARKDOWN_EXTENSIONS: readonly TokenizerExtension[] = [\n\t{\n\t\tname: \"latexBlock\",\n\t\tlevel: \"block\",\n\t\tstart(source) {\n\t\t\tconst match = /(?:^|\\n) {0,3}(?:\\$\\$|\\\\\\[)/.exec(source);\n\t\t\treturn match ? match.index + (match[0].startsWith(\"\\n\") ? 1 : 0) : undefined;\n\t\t},\n\t\ttokenizer: tokenizeBlockLatex,\n\t},\n\t{\n\t\tname: \"latex\",\n\t\tlevel: \"inline\",\n\t\tstart(source) {\n\t\t\tconst indices = [source.indexOf(\"$\"), source.indexOf(\"\\\\(\"), source.indexOf(\"\\\\[\")].filter(\n\t\t\t\t(index) => index >= 0,\n\t\t\t);\n\t\t\treturn indices.length > 0 ? Math.min(...indices) : undefined;\n\t\t},\n\t\ttokenizer: tokenizeInlineLatex,\n\t},\n];\n\nfunction trimPartialClosingFences(tokens: readonly Token[]): void {\n\tconst token = tokens[tokens.length - 1];\n\tif (token?.type === \"list\") {\n\t\ttrimPartialClosingFences(token.items[token.items.length - 1]?.tokens ?? []);\n\t\treturn;\n\t}\n\tif (token?.type === \"blockquote\") {\n\t\ttrimPartialClosingFences(token.tokens ?? []);\n\t\treturn;\n\t}\n\tif (token?.type !== \"code\") {\n\t\treturn;\n\t}\n\n\t// Trim streamed partial closing fences so code blocks do not shrink/flicker\n\t// when the final fence character arrives. See https://github.com/earendil-works/pi/issues/5825.\n\tconst marker = /^(`{3,}|~{3,})/.exec(token.raw)?.[1];\n\tconst lastLine = token.raw.split(\"\\n\").pop();\n\tif (!marker || !lastLine || lastLine.length >= marker.length || lastLine !== marker[0]?.repeat(lastLine.length)) {\n\t\treturn;\n\t}\n\n\ttoken.text = token.text.slice(0, -lastLine.length).replace(/\\n$/, \"\");\n}\n\nconst markdownParser = new Marked();\nmarkdownParser.setOptions({\n\ttokenizer: new StrictStrikethroughTokenizer(),\n});\nmarkdownParser.use({ extensions: [...LATEX_MARKDOWN_EXTENSIONS] });\n\n/**\n * Default text styling for markdown content.\n * Applied to all text unless overridden by markdown formatting.\n */\nexport interface DefaultTextStyle {\n\t/** Foreground color function */\n\tcolor?: (text: string) => string;\n\t/** Background color function */\n\tbgColor?: (text: string) => string;\n\t/** Bold text */\n\tbold?: boolean;\n\t/** Italic text */\n\titalic?: boolean;\n\t/** Strikethrough text */\n\tstrikethrough?: boolean;\n\t/** Underline text */\n\tunderline?: boolean;\n}\n\n/**\n * Theme functions for markdown elements.\n * Each function takes text and returns styled text with ANSI codes.\n */\nexport interface MarkdownTheme {\n\theading: (text: string) => string;\n\tlink: (text: string) => string;\n\tlinkUrl: (text: string) => string;\n\tcode: (text: string) => string;\n\tcodeBlock: (text: string) => string;\n\tcodeBlockBorder: (text: string) => string;\n\tquote: (text: string) => string;\n\tquoteBorder: (text: string) => string;\n\thr: (text: string) => string;\n\tlistBullet: (text: string) => string;\n\tbold: (text: string) => string;\n\titalic: (text: string) => string;\n\tstrikethrough: (text: string) => string;\n\tunderline: (text: string) => string;\n\thighlightCode?: (code: string, lang?: string) => string[];\n\t/** Prefix applied to each rendered code block line (default: \" \") */\n\tcodeBlockIndent?: string;\n}\n\nexport interface MarkdownOptions {\n\t/** Preserve source list markers instead of normalizing them. */\n\tpreserveOrderedListMarkers?: boolean;\n\t/** Preserve source backslash escapes instead of normalizing escaped punctuation. */\n\tpreserveBackslashEscapes?: boolean;\n\t/** Transform source Markdown before parsing, with the exact width available for content. */\n\ttransform?: (markdown: string, availableWidth: number) => string;\n\t/** Render supported LaTeX math expressions as Unicode text (default: true). */\n\trenderLatex?: boolean;\n}\n\ninterface InlineStyleContext {\n\tapplyText: (text: string) => string;\n\tstylePrefix: string;\n}\n\nexport class Markdown implements Component {\n\tprivate text: string;\n\tprivate paddingX: number; // Left/right padding\n\tprivate paddingY: number; // Top/bottom padding\n\tprivate defaultTextStyle?: DefaultTextStyle;\n\tprivate theme: MarkdownTheme;\n\tprivate options: MarkdownOptions;\n\tprivate defaultStylePrefix?: string;\n\n\t// Cache for rendered output\n\tprivate cachedText?: string;\n\tprivate cachedWidth?: number;\n\tprivate cachedLines?: string[];\n\n\tconstructor(\n\t\ttext: string,\n\t\tpaddingX: number,\n\t\tpaddingY: number,\n\t\ttheme: MarkdownTheme,\n\t\tdefaultTextStyle?: DefaultTextStyle,\n\t\toptions?: MarkdownOptions,\n\t) {\n\t\tthis.text = text;\n\t\tthis.paddingX = paddingX;\n\t\tthis.paddingY = paddingY;\n\t\tthis.theme = theme;\n\t\tthis.defaultTextStyle = defaultTextStyle;\n\t\tthis.options = options ? { ...options } : {};\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.text = text;\n\t\tthis.invalidate();\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// Calculate available width for content (subtract horizontal padding)\n\t\tconst contentWidth = Math.max(1, width - this.paddingX * 2);\n\t\tconst text = this.options.transform?.(this.text, contentWidth) ?? this.text;\n\n\t\t// Don't render anything if there's no actual text\n\t\tif (!text || text.trim() === \"\") {\n\t\t\tconst result: string[] = [];\n\t\t\t// Update cache\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 for consistent rendering\n\t\tconst normalizedText = text.replace(/\\t/g, \" \");\n\n\t\t// Parse markdown to HTML-like tokens\n\t\tconst tokens = markdownParser.lexer(normalizedText);\n\t\ttrimPartialClosingFences(tokens);\n\n\t\t// Convert tokens to styled terminal output\n\t\tconst renderedLines: string[] = [];\n\n\t\tfor (let i = 0; i < tokens.length; i++) {\n\t\t\tconst token = tokens[i];\n\t\t\tconst nextToken = tokens[i + 1];\n\t\t\tconst tokenLines = this.renderToken(token, contentWidth, nextToken?.type);\n\t\t\tfor (const tokenLine of tokenLines) {\n\t\t\t\trenderedLines.push(tokenLine);\n\t\t\t}\n\t\t}\n\n\t\t// Wrap lines (NO padding, NO background yet)\n\t\tconst wrappedLines: string[] = [];\n\t\tfor (const line of renderedLines) {\n\t\t\tif (isImageLine(line)) {\n\t\t\t\twrappedLines.push(line);\n\t\t\t} else {\n\t\t\t\tfor (const wrappedLine of wrapTextWithAnsi(line, contentWidth)) {\n\t\t\t\t\twrappedLines.push(wrappedLine);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add margins and background to each wrapped line\n\t\tconst leftMargin = \" \".repeat(this.paddingX);\n\t\tconst rightMargin = \" \".repeat(this.paddingX);\n\t\tconst bgFn = this.defaultTextStyle?.bgColor;\n\t\tconst contentLines: string[] = [];\n\n\t\tfor (const line of wrappedLines) {\n\t\t\tif (isImageLine(line)) {\n\t\t\t\tcontentLines.push(line);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst lineWithMargins = leftMargin + line + rightMargin;\n\n\t\t\tif (bgFn) {\n\t\t\t\tcontentLines.push(applyBackgroundToLine(lineWithMargins, width, bgFn));\n\t\t\t} else {\n\t\t\t\t// No background - just pad to width\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 = bgFn ? applyBackgroundToLine(emptyLine, width, bgFn) : emptyLine;\n\t\t\temptyLines.push(line);\n\t\t}\n\n\t\t// Combine top padding, content, and bottom padding\n\t\tconst result = emptyLines.concat(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\t/**\n\t * Apply default text style to a string.\n\t * This is the base styling applied to all text content.\n\t * NOTE: Background color is NOT applied here - it's applied at the padding stage\n\t * to ensure it extends to the full line width.\n\t */\n\tprivate applyDefaultStyle(text: string): string {\n\t\tif (!this.defaultTextStyle) {\n\t\t\treturn text;\n\t\t}\n\n\t\tlet styled = text;\n\n\t\t// Apply foreground color (NOT background - that's applied at padding stage)\n\t\tif (this.defaultTextStyle.color) {\n\t\t\tstyled = this.defaultTextStyle.color(styled);\n\t\t}\n\n\t\t// Apply text decorations using this.theme\n\t\tif (this.defaultTextStyle.bold) {\n\t\t\tstyled = this.theme.bold(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.italic) {\n\t\t\tstyled = this.theme.italic(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.strikethrough) {\n\t\t\tstyled = this.theme.strikethrough(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.underline) {\n\t\t\tstyled = this.theme.underline(styled);\n\t\t}\n\n\t\treturn styled;\n\t}\n\n\tprivate getDefaultStylePrefix(): string {\n\t\tif (!this.defaultTextStyle) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (this.defaultStylePrefix !== undefined) {\n\t\t\treturn this.defaultStylePrefix;\n\t\t}\n\n\t\tconst sentinel = \"\\u0000\";\n\t\tlet styled = sentinel;\n\n\t\tif (this.defaultTextStyle.color) {\n\t\t\tstyled = this.defaultTextStyle.color(styled);\n\t\t}\n\n\t\tif (this.defaultTextStyle.bold) {\n\t\t\tstyled = this.theme.bold(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.italic) {\n\t\t\tstyled = this.theme.italic(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.strikethrough) {\n\t\t\tstyled = this.theme.strikethrough(styled);\n\t\t}\n\t\tif (this.defaultTextStyle.underline) {\n\t\t\tstyled = this.theme.underline(styled);\n\t\t}\n\n\t\tconst sentinelIndex = styled.indexOf(sentinel);\n\t\tthis.defaultStylePrefix = sentinelIndex >= 0 ? styled.slice(0, sentinelIndex) : \"\";\n\t\treturn this.defaultStylePrefix;\n\t}\n\n\tprivate getStylePrefix(styleFn: (text: string) => string): string {\n\t\tconst sentinel = \"\\u0000\";\n\t\tconst styled = styleFn(sentinel);\n\t\tconst sentinelIndex = styled.indexOf(sentinel);\n\t\treturn sentinelIndex >= 0 ? styled.slice(0, sentinelIndex) : \"\";\n\t}\n\n\tprivate getDefaultInlineStyleContext(): InlineStyleContext {\n\t\treturn {\n\t\t\tapplyText: (text: string) => this.applyDefaultStyle(text),\n\t\t\tstylePrefix: this.getDefaultStylePrefix(),\n\t\t};\n\t}\n\n\tprivate renderToken(\n\t\ttoken: Token,\n\t\twidth: number,\n\t\tnextTokenType?: string,\n\t\tstyleContext?: InlineStyleContext,\n\t): string[] {\n\t\tconst lines: string[] = [];\n\n\t\tswitch (token.type) {\n\t\t\tcase \"heading\": {\n\t\t\t\tconst headingLevel = token.depth;\n\t\t\t\tconst headingPrefix = `${\"#\".repeat(headingLevel)} `;\n\n\t\t\t\t// Build a heading-specific style context so inline tokens (codespan, bold, etc.)\n\t\t\t\t// restore heading styling after their own ANSI resets instead of falling back to\n\t\t\t\t// the default text style.\n\t\t\t\tlet headingStyleFn: (text: string) => string;\n\t\t\t\tif (headingLevel === 1) {\n\t\t\t\t\theadingStyleFn = (text: string) => this.theme.heading(this.theme.bold(this.theme.underline(text)));\n\t\t\t\t} else {\n\t\t\t\t\theadingStyleFn = (text: string) => this.theme.heading(this.theme.bold(text));\n\t\t\t\t}\n\n\t\t\t\tconst headingStyleContext: InlineStyleContext = {\n\t\t\t\t\tapplyText: headingStyleFn,\n\t\t\t\t\tstylePrefix: this.getStylePrefix(headingStyleFn),\n\t\t\t\t};\n\n\t\t\t\tconst headingText = this.renderInlineTokens(token.tokens || [], headingStyleContext);\n\t\t\t\tconst styledHeading = headingLevel >= 3 ? headingStyleFn(headingPrefix) + headingText : headingText;\n\t\t\t\tlines.push(styledHeading);\n\t\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\"); // Add spacing after headings (unless space token follows)\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"paragraph\": {\n\t\t\t\tconst paragraphText = this.renderInlineTokens(token.tokens || [], styleContext);\n\t\t\t\tlines.push(paragraphText);\n\t\t\t\t// Don't add spacing if next token is space or list\n\t\t\t\tif (nextTokenType && nextTokenType !== \"list\" && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"text\":\n\t\t\t\tlines.push(this.renderInlineTokens([token], styleContext));\n\t\t\t\tbreak;\n\n\t\t\tcase \"latexBlock\": {\n\t\t\t\tconst latexToken = token as LatexToken;\n\t\t\t\tconst rendered =\n\t\t\t\t\t!latexToken.pending && this.options.renderLatex !== false\n\t\t\t\t\t\t? (renderLatex(latexToken.text, { display: true }) ?? latexToken.raw.trim())\n\t\t\t\t\t\t: latexToken.raw.trim();\n\t\t\t\tfor (const line of rendered.split(\"\\n\")) {\n\t\t\t\t\tlines.push(this.applyDefaultStyle(line));\n\t\t\t\t}\n\t\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"code\": {\n\t\t\t\tconst indent = this.theme.codeBlockIndent ?? \" \";\n\t\t\t\tlines.push(this.theme.codeBlockBorder(`\\`\\`\\`${token.lang || \"\"}`));\n\t\t\t\tif (this.theme.highlightCode) {\n\t\t\t\t\tconst highlightedLines = this.theme.highlightCode(token.text, token.lang);\n\t\t\t\t\tfor (const hlLine of highlightedLines) {\n\t\t\t\t\t\tlines.push(`${indent}${hlLine}`);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Split code by newlines and style each line\n\t\t\t\t\tconst codeLines = token.text.split(\"\\n\");\n\t\t\t\t\tfor (const codeLine of codeLines) {\n\t\t\t\t\t\tlines.push(`${indent}${this.theme.codeBlock(codeLine)}`);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlines.push(this.theme.codeBlockBorder(\"```\"));\n\t\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\"); // Add spacing after code blocks (unless space token follows)\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"list\": {\n\t\t\t\tconst listLines = this.renderList(token as Tokens.List, 0, width, styleContext);\n\t\t\t\tlines.push(...listLines);\n\t\t\t\t// Don't add spacing after lists if a space token follows\n\t\t\t\t// (the space token will handle it)\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"table\": {\n\t\t\t\tconst tableLines = this.renderTable(token as Tokens.Table, width, nextTokenType, styleContext);\n\t\t\t\tlines.push(...tableLines);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"blockquote\": {\n\t\t\t\tconst quoteStyle = (text: string) => this.theme.quote(this.theme.italic(text));\n\t\t\t\tconst quoteStylePrefix = this.getStylePrefix(quoteStyle);\n\t\t\t\tconst applyQuoteStyle = (line: string): string => {\n\t\t\t\t\tif (!quoteStylePrefix) {\n\t\t\t\t\t\treturn quoteStyle(line);\n\t\t\t\t\t}\n\t\t\t\t\tconst lineWithReappliedStyle = line.replace(/\\x1b\\[0m/g, `\\x1b[0m${quoteStylePrefix}`);\n\t\t\t\t\treturn quoteStyle(lineWithReappliedStyle);\n\t\t\t\t};\n\n\t\t\t\t// Calculate available width for quote content (subtract border \"│ \" = 2 chars)\n\t\t\t\tconst quoteContentWidth = Math.max(1, width - 2);\n\n\t\t\t\t// Blockquotes contain block-level tokens (paragraph, list, code, etc.), so render\n\t\t\t\t// children with renderToken() instead of renderInlineTokens().\n\t\t\t\t// Default message style should not apply inside blockquotes.\n\t\t\t\tconst quoteInlineStyleContext: InlineStyleContext = {\n\t\t\t\t\tapplyText: (text: string) => text,\n\t\t\t\t\tstylePrefix: quoteStylePrefix,\n\t\t\t\t};\n\t\t\t\tconst quoteTokens = token.tokens || [];\n\t\t\t\tconst renderedQuoteLines: string[] = [];\n\t\t\t\tfor (let i = 0; i < quoteTokens.length; i++) {\n\t\t\t\t\tconst quoteToken = quoteTokens[i];\n\t\t\t\t\tconst nextQuoteToken = quoteTokens[i + 1];\n\t\t\t\t\trenderedQuoteLines.push(\n\t\t\t\t\t\t...this.renderToken(quoteToken, quoteContentWidth, nextQuoteToken?.type, quoteInlineStyleContext),\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Avoid rendering an extra empty quote line before the outer blockquote spacing.\n\t\t\t\twhile (renderedQuoteLines.length > 0 && renderedQuoteLines[renderedQuoteLines.length - 1] === \"\") {\n\t\t\t\t\trenderedQuoteLines.pop();\n\t\t\t\t}\n\n\t\t\t\tfor (const quoteLine of renderedQuoteLines) {\n\t\t\t\t\tconst styledLine = applyQuoteStyle(quoteLine);\n\t\t\t\t\tconst wrappedLines = wrapTextWithAnsi(styledLine, quoteContentWidth);\n\t\t\t\t\tfor (const wrappedLine of wrappedLines) {\n\t\t\t\t\t\tlines.push(this.theme.quoteBorder(\"│ \") + wrappedLine);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\"); // Add spacing after blockquotes (unless space token follows)\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"hr\":\n\t\t\t\tlines.push(this.theme.hr(\"─\".repeat(Math.min(width, 80))));\n\t\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\t\tlines.push(\"\"); // Add spacing after horizontal rules (unless space token follows)\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"html\":\n\t\t\t\t// Render HTML as plain text (escaped for terminal)\n\t\t\t\tif (\"raw\" in token && typeof token.raw === \"string\") {\n\t\t\t\t\tlines.push(this.applyDefaultStyle(token.raw.trim()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"space\":\n\t\t\t\t// Space tokens represent blank lines in markdown\n\t\t\t\tlines.push(\"\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t// Handle any other token types as plain text\n\t\t\t\tif (\"text\" in token && typeof token.text === \"string\") {\n\t\t\t\t\tlines.push(token.text);\n\t\t\t\t}\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\tprivate renderInlineTokens(tokens: Token[], styleContext?: InlineStyleContext): string {\n\t\tlet result = \"\";\n\t\tconst resolvedStyleContext = styleContext ?? this.getDefaultInlineStyleContext();\n\t\tconst { applyText, stylePrefix } = resolvedStyleContext;\n\t\tconst applyTextWithNewlines = (text: string): string => {\n\t\t\tconst segments: string[] = text.split(\"\\n\");\n\t\t\treturn segments.map((segment: string) => applyText(segment)).join(\"\\n\");\n\t\t};\n\n\t\tfor (const token of tokens) {\n\t\t\tswitch (token.type) {\n\t\t\t\tcase \"latex\": {\n\t\t\t\t\tconst latexToken = token as LatexToken;\n\t\t\t\t\tconst rendered =\n\t\t\t\t\t\t!latexToken.pending && this.options.renderLatex !== false\n\t\t\t\t\t\t\t? (renderLatex(latexToken.text) ?? latexToken.raw)\n\t\t\t\t\t\t\t: latexToken.raw;\n\t\t\t\t\tresult += applyTextWithNewlines(rendered);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase \"escape\":\n\t\t\t\t\tresult += applyTextWithNewlines(this.options.preserveBackslashEscapes ? token.raw : token.text);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"text\":\n\t\t\t\t\t// Text tokens in list items can have nested tokens for inline formatting\n\t\t\t\t\tif (token.tokens && token.tokens.length > 0) {\n\t\t\t\t\t\tresult += this.renderInlineTokens(token.tokens, resolvedStyleContext);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult += applyTextWithNewlines(token.text);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"paragraph\":\n\t\t\t\t\t// Paragraph tokens contain nested inline tokens\n\t\t\t\t\tresult += this.renderInlineTokens(token.tokens || [], resolvedStyleContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"strong\": {\n\t\t\t\t\tconst boldContent = this.renderInlineTokens(token.tokens || [], resolvedStyleContext);\n\t\t\t\t\tresult += this.theme.bold(boldContent) + stylePrefix;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase \"em\": {\n\t\t\t\t\tconst italicContent = this.renderInlineTokens(token.tokens || [], resolvedStyleContext);\n\t\t\t\t\tresult += this.theme.italic(italicContent) + stylePrefix;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase \"codespan\":\n\t\t\t\t\tresult += this.theme.code(token.text) + stylePrefix;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"link\": {\n\t\t\t\t\tconst linkText = this.renderInlineTokens(token.tokens || [], resolvedStyleContext);\n\t\t\t\t\tconst styledLink = this.theme.link(this.theme.underline(linkText));\n\t\t\t\t\tif (getCapabilities().hyperlinks) {\n\t\t\t\t\t\t// OSC 8: render as a clickable hyperlink. The URL is not printed inline,\n\t\t\t\t\t\t// so we always show only the link text regardless of whether it matches href.\n\t\t\t\t\t\tresult += hyperlink(styledLink, token.href) + stylePrefix;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Fallback: print URL in parentheses when text differs from href.\n\t\t\t\t\t\t// Compare raw token.text (not styled) against href for the equality check.\n\t\t\t\t\t\t// For mailto: links strip the prefix (autolinked emails use text=\"foo@bar.com\"\n\t\t\t\t\t\t// but href=\"mailto:foo@bar.com\").\n\t\t\t\t\t\tconst hrefForComparison = token.href.startsWith(\"mailto:\") ? token.href.slice(7) : token.href;\n\t\t\t\t\t\tif (token.text === token.href || token.text === hrefForComparison) {\n\t\t\t\t\t\t\tresult += styledLink + stylePrefix;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult += styledLink + this.theme.linkUrl(` (${token.href})`) + stylePrefix;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase \"br\":\n\t\t\t\t\tresult += \"\\n\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"del\": {\n\t\t\t\t\tconst delContent = this.renderInlineTokens(token.tokens || [], resolvedStyleContext);\n\t\t\t\t\tresult += this.theme.strikethrough(delContent) + stylePrefix;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase \"html\":\n\t\t\t\t\t// Render inline HTML as plain text\n\t\t\t\t\tif (\"raw\" in token && typeof token.raw === \"string\") {\n\t\t\t\t\t\tresult += applyTextWithNewlines(token.raw);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t// Handle any other inline token types as plain text\n\t\t\t\t\tif (\"text\" in token && typeof token.text === \"string\") {\n\t\t\t\t\t\tresult += applyTextWithNewlines(token.text);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twhile (stylePrefix && result.endsWith(stylePrefix)) {\n\t\t\tresult = result.slice(0, -stylePrefix.length);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tprivate getOrderedListMarker(item: Tokens.ListItem): string | undefined {\n\t\tconst match = /^(?: {0,3})(\\d{1,9}[.)])[ \\t]+/.exec(item.raw);\n\t\treturn match ? `${match[1]} ` : undefined;\n\t}\n\n\tprivate getUnorderedListMarker(item: Tokens.ListItem): string | undefined {\n\t\tconst match = /^(?: {0,3})([-+*])(?:[ \\t]+|(?=\\r?\\n|$))/.exec(item.raw);\n\t\treturn match ? `${match[1]} ` : undefined;\n\t}\n\n\t/**\n\t * Render a list with proper nesting support\n\t */\n\tprivate renderList(token: Tokens.List, depth: number, width: number, styleContext?: InlineStyleContext): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst indent = \" \".repeat(depth);\n\t\t// Use the list's start property (defaults to 1 for ordered lists)\n\t\tconst startNumber = typeof token.start === \"number\" ? token.start : 1;\n\n\t\tfor (let i = 0; i < token.items.length; i++) {\n\t\t\tconst item = token.items[i];\n\t\t\tconst isLastItem = i === token.items.length - 1;\n\t\t\tconst bullet = token.ordered\n\t\t\t\t? this.options.preserveOrderedListMarkers\n\t\t\t\t\t? (this.getOrderedListMarker(item) ?? `${startNumber + i}. `)\n\t\t\t\t\t: `${startNumber + i}. `\n\t\t\t\t: this.options.preserveOrderedListMarkers\n\t\t\t\t\t? (this.getUnorderedListMarker(item) ?? \"- \")\n\t\t\t\t\t: \"- \";\n\t\t\tconst taskMarker = item.task ? `[${item.checked ? \"x\" : \" \"}] ` : \"\";\n\t\t\tconst marker = bullet + taskMarker;\n\t\t\tconst firstPrefix = indent + this.theme.listBullet(marker);\n\t\t\tconst continuationPrefix = indent + \" \".repeat(visibleWidth(marker));\n\t\t\tconst itemWidth = Math.max(1, width - visibleWidth(firstPrefix));\n\t\t\tlet renderedAnyLine = false;\n\n\t\t\tfor (const itemToken of item.tokens) {\n\t\t\t\tif (itemToken.type === \"list\") {\n\t\t\t\t\tlines.push(...this.renderList(itemToken as Tokens.List, depth + 1, width, styleContext));\n\t\t\t\t\trenderedAnyLine = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tconst itemLines = this.renderToken(itemToken, itemWidth, undefined, styleContext);\n\t\t\t\tfor (const line of itemLines) {\n\t\t\t\t\tfor (const wrappedLine of wrapTextWithAnsi(line, itemWidth)) {\n\t\t\t\t\t\tconst linePrefix = renderedAnyLine ? continuationPrefix : firstPrefix;\n\t\t\t\t\t\tlines.push(linePrefix + wrappedLine);\n\t\t\t\t\t\trenderedAnyLine = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!renderedAnyLine) {\n\t\t\t\tlines.push(firstPrefix);\n\t\t\t}\n\n\t\t\tif (token.loose && !isLastItem) {\n\t\t\t\tlines.push(\"\");\n\t\t\t}\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\t/**\n\t * Get the visible width of the longest word in a string.\n\t */\n\tprivate getLongestWordWidth(text: string, maxWidth?: number): number {\n\t\tconst words = text.split(/\\s+/).filter((word) => word.length > 0);\n\t\tlet longest = 0;\n\t\tfor (const word of words) {\n\t\t\tlongest = Math.max(longest, visibleWidth(word));\n\t\t}\n\t\tif (maxWidth === undefined) {\n\t\t\treturn longest;\n\t\t}\n\t\treturn Math.min(longest, maxWidth);\n\t}\n\n\t/**\n\t * Wrap a table cell to fit into a column.\n\t *\n\t * Delegates to wrapTextWithAnsi() so ANSI codes + long tokens are handled\n\t * consistently with the rest of the renderer.\n\t */\n\tprivate wrapCellText(text: string, maxWidth: number, stylePrefix = \"\"): string[] {\n\t\tconst lines = wrapTextWithAnsi(text, Math.max(1, maxWidth));\n\t\treturn lines.map((line, index) => {\n\t\t\t// Reset text styles after each non-final fragment, then restore the surrounding style before padding and borders.\n\t\t\tconst styleReset = index < lines.length - 1 ? \"\\x1b[22;23;24;25;27;28;29;39m\" : \"\";\n\t\t\treturn `${line}${styleReset}${stylePrefix}`;\n\t\t});\n\t}\n\n\t/**\n\t * Render a table with width-aware cell wrapping.\n\t * Cells that don't fit are wrapped to multiple lines.\n\t */\n\tprivate renderTable(\n\t\ttoken: Tokens.Table,\n\t\tavailableWidth: number,\n\t\tnextTokenType?: string,\n\t\tstyleContext?: InlineStyleContext,\n\t): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst numCols = token.header.length;\n\n\t\tif (numCols === 0) {\n\t\t\treturn lines;\n\t\t}\n\n\t\t// Calculate border overhead: \"│ \" + (n-1) * \" │ \" + \" │\"\n\t\t// = 2 + (n-1) * 3 + 2 = 3n + 1\n\t\tconst borderOverhead = 3 * numCols + 1;\n\t\tconst availableForCells = availableWidth - borderOverhead;\n\t\tif (availableForCells < numCols) {\n\t\t\t// Too narrow to render a stable table. Fall back to raw markdown.\n\t\t\tconst fallbackLines = token.raw ? wrapTextWithAnsi(token.raw, availableWidth) : [];\n\t\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\t\tfallbackLines.push(\"\");\n\t\t\t}\n\t\t\treturn fallbackLines;\n\t\t}\n\n\t\tconst maxUnbrokenWordWidth = 30;\n\n\t\t// Calculate natural column widths (what each column needs without constraints)\n\t\tconst naturalWidths: number[] = [];\n\t\tconst minWordWidths: number[] = [];\n\t\tfor (let i = 0; i < numCols; i++) {\n\t\t\tconst headerText = this.renderInlineTokens(token.header[i].tokens || [], styleContext);\n\t\t\tnaturalWidths[i] = visibleWidth(headerText);\n\t\t\tminWordWidths[i] = Math.max(1, this.getLongestWordWidth(headerText, maxUnbrokenWordWidth));\n\t\t}\n\t\tfor (const row of token.rows) {\n\t\t\tfor (let i = 0; i < row.length; i++) {\n\t\t\t\tconst cellText = this.renderInlineTokens(row[i].tokens || [], styleContext);\n\t\t\t\tnaturalWidths[i] = Math.max(naturalWidths[i] || 0, visibleWidth(cellText));\n\t\t\t\tminWordWidths[i] = Math.max(\n\t\t\t\t\tminWordWidths[i] || 1,\n\t\t\t\t\tthis.getLongestWordWidth(cellText, maxUnbrokenWordWidth),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tlet minColumnWidths = minWordWidths;\n\t\tlet minCellsWidth = minColumnWidths.reduce((a, b) => a + b, 0);\n\n\t\tif (minCellsWidth > availableForCells) {\n\t\t\tminColumnWidths = new Array(numCols).fill(1);\n\t\t\tconst remaining = availableForCells - numCols;\n\n\t\t\tif (remaining > 0) {\n\t\t\t\tconst totalWeight = minWordWidths.reduce((total, width) => total + Math.max(0, width - 1), 0);\n\t\t\t\tconst growth = minWordWidths.map((width) => {\n\t\t\t\t\tconst weight = Math.max(0, width - 1);\n\t\t\t\t\treturn totalWeight > 0 ? Math.floor((weight / totalWeight) * remaining) : 0;\n\t\t\t\t});\n\n\t\t\t\tfor (let i = 0; i < numCols; i++) {\n\t\t\t\t\tminColumnWidths[i] += growth[i] ?? 0;\n\t\t\t\t}\n\n\t\t\t\tconst allocated = growth.reduce((total, width) => total + width, 0);\n\t\t\t\tlet leftover = remaining - allocated;\n\t\t\t\tfor (let i = 0; leftover > 0 && i < numCols; i++) {\n\t\t\t\t\tminColumnWidths[i]++;\n\t\t\t\t\tleftover--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tminCellsWidth = minColumnWidths.reduce((a, b) => a + b, 0);\n\t\t}\n\n\t\t// Calculate column widths that fit within available width\n\t\tconst totalNaturalWidth = naturalWidths.reduce((a, b) => a + b, 0) + borderOverhead;\n\t\tlet columnWidths: number[];\n\n\t\tif (totalNaturalWidth <= availableWidth) {\n\t\t\t// Everything fits naturally\n\t\t\tcolumnWidths = naturalWidths.map((width, index) => Math.max(width, minColumnWidths[index]));\n\t\t} else {\n\t\t\t// Need to shrink columns to fit\n\t\t\tconst totalGrowPotential = naturalWidths.reduce((total, width, index) => {\n\t\t\t\treturn total + Math.max(0, width - minColumnWidths[index]);\n\t\t\t}, 0);\n\t\t\tconst extraWidth = Math.max(0, availableForCells - minCellsWidth);\n\t\t\tcolumnWidths = minColumnWidths.map((minWidth, index) => {\n\t\t\t\tconst naturalWidth = naturalWidths[index];\n\t\t\t\tconst minWidthDelta = Math.max(0, naturalWidth - minWidth);\n\t\t\t\tlet grow = 0;\n\t\t\t\tif (totalGrowPotential > 0) {\n\t\t\t\t\tgrow = Math.floor((minWidthDelta / totalGrowPotential) * extraWidth);\n\t\t\t\t}\n\t\t\t\treturn minWidth + grow;\n\t\t\t});\n\n\t\t\t// Adjust for rounding errors - distribute remaining space\n\t\t\tconst allocated = columnWidths.reduce((a, b) => a + b, 0);\n\t\t\tlet remaining = availableForCells - allocated;\n\t\t\twhile (remaining > 0) {\n\t\t\t\tlet grew = false;\n\t\t\t\tfor (let i = 0; i < numCols && remaining > 0; i++) {\n\t\t\t\t\tif (columnWidths[i] < naturalWidths[i]) {\n\t\t\t\t\t\tcolumnWidths[i]++;\n\t\t\t\t\t\tremaining--;\n\t\t\t\t\t\tgrew = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!grew) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Render top border\n\t\tconst topBorderCells = columnWidths.map((w) => \"─\".repeat(w));\n\t\tlines.push(`┌─${topBorderCells.join(\"─┬─\")}─┐`);\n\n\t\t// Render header with wrapping\n\t\tconst headerCellLines: string[][] = token.header.map((cell, i) => {\n\t\t\tconst text = this.renderInlineTokens(cell.tokens || [], styleContext);\n\t\t\treturn this.wrapCellText(text, columnWidths[i], styleContext?.stylePrefix);\n\t\t});\n\t\tconst headerLineCount = Math.max(...headerCellLines.map((c) => c.length));\n\n\t\tfor (let lineIdx = 0; lineIdx < headerLineCount; lineIdx++) {\n\t\t\tconst rowParts = headerCellLines.map((cellLines, colIdx) => {\n\t\t\t\tconst text = cellLines[lineIdx] || \"\";\n\t\t\t\tconst padded = text + \" \".repeat(Math.max(0, columnWidths[colIdx] - visibleWidth(text)));\n\t\t\t\treturn this.theme.bold(padded);\n\t\t\t});\n\t\t\tlines.push(`│ ${rowParts.join(\" │ \")} │`);\n\t\t}\n\n\t\t// Render separator\n\t\tconst separatorCells = columnWidths.map((w) => \"─\".repeat(w));\n\t\tconst separatorLine = `├─${separatorCells.join(\"─┼─\")}─┤`;\n\t\tlines.push(separatorLine);\n\n\t\t// Render rows with wrapping\n\t\tfor (let rowIndex = 0; rowIndex < token.rows.length; rowIndex++) {\n\t\t\tconst row = token.rows[rowIndex];\n\t\t\tconst rowCellLines: string[][] = row.map((cell, i) => {\n\t\t\t\tconst text = this.renderInlineTokens(cell.tokens || [], styleContext);\n\t\t\t\treturn this.wrapCellText(text, columnWidths[i], styleContext?.stylePrefix);\n\t\t\t});\n\t\t\tconst rowLineCount = Math.max(...rowCellLines.map((c) => c.length));\n\n\t\t\tfor (let lineIdx = 0; lineIdx < rowLineCount; lineIdx++) {\n\t\t\t\tconst rowParts = rowCellLines.map((cellLines, colIdx) => {\n\t\t\t\t\tconst text = cellLines[lineIdx] || \"\";\n\t\t\t\t\treturn text + \" \".repeat(Math.max(0, columnWidths[colIdx] - visibleWidth(text)));\n\t\t\t\t});\n\t\t\t\tlines.push(`│ ${rowParts.join(\" │ \")} │`);\n\t\t\t}\n\n\t\t\tif (rowIndex < token.rows.length - 1) {\n\t\t\t\tlines.push(separatorLine);\n\t\t\t}\n\t\t}\n\n\t\t// Render bottom border\n\t\tconst bottomBorderCells = columnWidths.map((w) => \"─\".repeat(w));\n\t\tlines.push(`└─${bottomBorderCells.join(\"─┴─\")}─┘`);\n\n\t\tif (nextTokenType && nextTokenType !== \"space\") {\n\t\t\tlines.push(\"\"); // Add spacing after table\n\t\t}\n\t\treturn lines;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Component, type TuiMouseDispatchResult, type TuiMouseEvent, type TuiMouseEventResult } from "../tui.ts";
|
|
2
|
+
export type MouseRegionHandler = (event: TuiMouseEvent) => TuiMouseEventResult | undefined;
|
|
3
|
+
/** Adds mouse handling to an existing component without changing its rendering. */
|
|
4
|
+
export declare class MouseRegion implements Component {
|
|
5
|
+
private readonly child;
|
|
6
|
+
private readonly onMouse;
|
|
7
|
+
constructor(child: Component, onMouse: MouseRegionHandler);
|
|
8
|
+
render(width: number): string[];
|
|
9
|
+
handleMouse(event: TuiMouseEvent): TuiMouseDispatchResult | TuiMouseEventResult | undefined;
|
|
10
|
+
invalidate(): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=mouse-region.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouse-region.d.ts","sourceRoot":"","sources":["../../src/components/mouse-region.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,SAAS,EAEd,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,mBAAmB,GAAG,SAAS,CAAC;AAE3F,mFAAmF;AACnF,qBAAa,WAAY,YAAW,SAAS;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YAAY,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAGxD;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAE9B;IAED,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,SAAS,CAG1F;IAED,UAAU,IAAI,IAAI,CAEjB;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"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { dispatchMouseEvent, } from "../tui.js";
|
|
2
|
+
/** Adds mouse handling to an existing component without changing its rendering. */
|
|
3
|
+
export class MouseRegion {
|
|
4
|
+
child;
|
|
5
|
+
onMouse;
|
|
6
|
+
constructor(child, onMouse) {
|
|
7
|
+
this.child = child;
|
|
8
|
+
this.onMouse = onMouse;
|
|
9
|
+
}
|
|
10
|
+
render(width) {
|
|
11
|
+
return this.child.render(width);
|
|
12
|
+
}
|
|
13
|
+
handleMouse(event) {
|
|
14
|
+
const childResult = dispatchMouseEvent(this.child, event);
|
|
15
|
+
return childResult ?? this.onMouse(event);
|
|
16
|
+
}
|
|
17
|
+
invalidate() {
|
|
18
|
+
this.child.invalidate();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=mouse-region.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-view.d.ts","sourceRoot":"","sources":["../../src/components/scroll-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,UAAU,CAAC;IA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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"]}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { LAYOUT_NODE } from "../layout-node.js";
|
|
2
|
+
import { Container } from "../tui.js";
|
|
3
|
+
export class ScrollView extends Container {
|
|
4
|
+
child;
|
|
5
|
+
followEnd;
|
|
6
|
+
primary;
|
|
7
|
+
overscroll;
|
|
8
|
+
scrollbarTrackStyle;
|
|
9
|
+
scrollbarThumbStyle;
|
|
10
|
+
currentScrollbar;
|
|
11
|
+
scrollbarHideDelayMs;
|
|
12
|
+
currentScrollTop = 0;
|
|
13
|
+
contentHeight = 0;
|
|
14
|
+
currentViewportHeight = 0;
|
|
15
|
+
followingEnd;
|
|
16
|
+
followSuppressedAtEnd = false;
|
|
17
|
+
unreadLines = 0;
|
|
18
|
+
trackedContentHeight = 0;
|
|
19
|
+
hasLaidOut = false;
|
|
20
|
+
requestRenderCallback;
|
|
21
|
+
transientScrollbarVisible = false;
|
|
22
|
+
scrollbarActive = false;
|
|
23
|
+
scrollbarHideTimer;
|
|
24
|
+
constructor(component, options = {}) {
|
|
25
|
+
super();
|
|
26
|
+
if (options.axis !== undefined && options.axis !== "vertical") {
|
|
27
|
+
throw new Error(`Unsupported ScrollView axis: ${options.axis}`);
|
|
28
|
+
}
|
|
29
|
+
this.child = component;
|
|
30
|
+
this.children.push(component);
|
|
31
|
+
this.followEnd = (options.follow ?? "none") === "end";
|
|
32
|
+
this.followingEnd = this.followEnd;
|
|
33
|
+
this.primary = options.primary ?? false;
|
|
34
|
+
this.overscroll = options.overscroll ?? "chain";
|
|
35
|
+
this.currentScrollbar = options.scrollbar ?? "hidden";
|
|
36
|
+
this.scrollbarTrackStyle = options.scrollbarTrackStyle ?? ((text) => `\x1b[90m${text}\x1b[39m`);
|
|
37
|
+
this.scrollbarThumbStyle = options.scrollbarThumbStyle ?? ((text) => `\x1b[37m${text}\x1b[39m`);
|
|
38
|
+
this.scrollbarHideDelayMs = Math.max(0, Math.floor(options.scrollbarHideDelayMs ?? 1000));
|
|
39
|
+
}
|
|
40
|
+
get scrollTop() {
|
|
41
|
+
return this.currentScrollTop;
|
|
42
|
+
}
|
|
43
|
+
get isFollowingEnd() {
|
|
44
|
+
return this.followingEnd;
|
|
45
|
+
}
|
|
46
|
+
get unreadCount() {
|
|
47
|
+
return this.unreadLines;
|
|
48
|
+
}
|
|
49
|
+
get viewportHeight() {
|
|
50
|
+
return this.currentViewportHeight;
|
|
51
|
+
}
|
|
52
|
+
get scrollbar() {
|
|
53
|
+
return this.currentScrollbar;
|
|
54
|
+
}
|
|
55
|
+
get isScrollbarVisible() {
|
|
56
|
+
if (this.scrollbar === "always")
|
|
57
|
+
return this.currentViewportHeight > 0;
|
|
58
|
+
return (this.scrollbar === "auto" && this.contentHeight > this.currentViewportHeight && this.transientScrollbarVisible);
|
|
59
|
+
}
|
|
60
|
+
get isScrollbarActive() {
|
|
61
|
+
return this.scrollbarActive;
|
|
62
|
+
}
|
|
63
|
+
setScrollbar(scrollbar) {
|
|
64
|
+
if (scrollbar === this.currentScrollbar)
|
|
65
|
+
return;
|
|
66
|
+
this.currentScrollbar = scrollbar;
|
|
67
|
+
if (scrollbar !== "auto")
|
|
68
|
+
this.hideTransientScrollbar();
|
|
69
|
+
else if (this.scrollbarActive)
|
|
70
|
+
this.markScrollbarActivity();
|
|
71
|
+
this.requestRenderCallback?.();
|
|
72
|
+
}
|
|
73
|
+
getContentWidth(width) {
|
|
74
|
+
return this.scrollbar === "always" && width > 1 ? width - 1 : width;
|
|
75
|
+
}
|
|
76
|
+
markScrollbarActivity() {
|
|
77
|
+
if (this.scrollbar !== "auto" || this.contentHeight <= this.currentViewportHeight)
|
|
78
|
+
return;
|
|
79
|
+
this.transientScrollbarVisible = true;
|
|
80
|
+
if (this.scrollbarHideTimer) {
|
|
81
|
+
clearTimeout(this.scrollbarHideTimer);
|
|
82
|
+
this.scrollbarHideTimer = undefined;
|
|
83
|
+
}
|
|
84
|
+
if (this.scrollbarActive)
|
|
85
|
+
return;
|
|
86
|
+
this.scrollbarHideTimer = setTimeout(() => {
|
|
87
|
+
this.scrollbarHideTimer = undefined;
|
|
88
|
+
this.transientScrollbarVisible = false;
|
|
89
|
+
this.requestRenderCallback?.();
|
|
90
|
+
}, this.scrollbarHideDelayMs);
|
|
91
|
+
this.scrollbarHideTimer.unref();
|
|
92
|
+
}
|
|
93
|
+
hideTransientScrollbar() {
|
|
94
|
+
this.transientScrollbarVisible = false;
|
|
95
|
+
if (!this.scrollbarHideTimer)
|
|
96
|
+
return;
|
|
97
|
+
clearTimeout(this.scrollbarHideTimer);
|
|
98
|
+
this.scrollbarHideTimer = undefined;
|
|
99
|
+
}
|
|
100
|
+
setScrollbarActive(active) {
|
|
101
|
+
if (active === this.scrollbarActive)
|
|
102
|
+
return;
|
|
103
|
+
this.scrollbarActive = active;
|
|
104
|
+
this.markScrollbarActivity();
|
|
105
|
+
this.requestRenderCallback?.();
|
|
106
|
+
}
|
|
107
|
+
scrollTo(scrollTop, options = {}) {
|
|
108
|
+
const requested = Number.isFinite(scrollTop) ? Math.trunc(scrollTop) : this.currentScrollTop;
|
|
109
|
+
const maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);
|
|
110
|
+
const next = Math.max(0, Math.min(maxScrollTop, requested));
|
|
111
|
+
const nextFollowSuppressedAtEnd = options.disableFollow === true && next === maxScrollTop;
|
|
112
|
+
const nextFollowingEnd = !nextFollowSuppressedAtEnd && this.followEnd && next === maxScrollTop;
|
|
113
|
+
if (next === this.currentScrollTop &&
|
|
114
|
+
nextFollowingEnd === this.followingEnd &&
|
|
115
|
+
nextFollowSuppressedAtEnd === this.followSuppressedAtEnd) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const moved = next !== this.currentScrollTop;
|
|
119
|
+
this.currentScrollTop = next;
|
|
120
|
+
this.followingEnd = nextFollowingEnd;
|
|
121
|
+
this.followSuppressedAtEnd = nextFollowSuppressedAtEnd;
|
|
122
|
+
if (this.followingEnd)
|
|
123
|
+
this.unreadLines = 0;
|
|
124
|
+
if (moved)
|
|
125
|
+
this.markScrollbarActivity();
|
|
126
|
+
this.requestRenderCallback?.();
|
|
127
|
+
}
|
|
128
|
+
scrollBy(lines) {
|
|
129
|
+
const requested = Number.isFinite(lines) ? Math.trunc(lines) : 0;
|
|
130
|
+
if (requested === 0)
|
|
131
|
+
return 0;
|
|
132
|
+
const maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);
|
|
133
|
+
const start = this.followingEnd ? maxScrollTop : this.currentScrollTop;
|
|
134
|
+
const next = Math.max(0, Math.min(maxScrollTop, start + requested));
|
|
135
|
+
const moved = next - start;
|
|
136
|
+
const wasFollowingEnd = this.followingEnd;
|
|
137
|
+
this.currentScrollTop = next;
|
|
138
|
+
this.followingEnd = this.followEnd && next === maxScrollTop;
|
|
139
|
+
this.followSuppressedAtEnd = false;
|
|
140
|
+
if (this.followingEnd)
|
|
141
|
+
this.unreadLines = 0;
|
|
142
|
+
if (moved !== 0)
|
|
143
|
+
this.markScrollbarActivity();
|
|
144
|
+
if (moved !== 0 || this.followingEnd !== wasFollowingEnd)
|
|
145
|
+
this.requestRenderCallback?.();
|
|
146
|
+
return requested - moved;
|
|
147
|
+
}
|
|
148
|
+
scrollToStart() {
|
|
149
|
+
const changed = this.currentScrollTop !== 0 ||
|
|
150
|
+
this.followingEnd !== (this.followEnd && this.contentHeight <= this.currentViewportHeight);
|
|
151
|
+
this.currentScrollTop = 0;
|
|
152
|
+
this.followingEnd = this.followEnd && this.contentHeight <= this.currentViewportHeight;
|
|
153
|
+
this.followSuppressedAtEnd = false;
|
|
154
|
+
if (this.followingEnd)
|
|
155
|
+
this.unreadLines = 0;
|
|
156
|
+
if (changed) {
|
|
157
|
+
this.markScrollbarActivity();
|
|
158
|
+
this.requestRenderCallback?.();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
scrollToEnd() {
|
|
162
|
+
const next = Math.max(0, this.contentHeight - this.currentViewportHeight);
|
|
163
|
+
const changed = this.currentScrollTop !== next || this.followingEnd !== this.followEnd;
|
|
164
|
+
this.currentScrollTop = next;
|
|
165
|
+
this.followingEnd = this.followEnd;
|
|
166
|
+
this.followSuppressedAtEnd = false;
|
|
167
|
+
this.unreadLines = 0;
|
|
168
|
+
if (changed) {
|
|
169
|
+
this.markScrollbarActivity();
|
|
170
|
+
this.requestRenderCallback?.();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
updateLayout(contentHeight, viewportHeight, requestRender) {
|
|
174
|
+
const nextHeight = Math.max(0, Math.floor(contentHeight));
|
|
175
|
+
if (this.hasLaidOut && !this.followingEnd && nextHeight > this.trackedContentHeight) {
|
|
176
|
+
this.unreadLines += nextHeight - this.trackedContentHeight;
|
|
177
|
+
}
|
|
178
|
+
this.hasLaidOut = true;
|
|
179
|
+
this.trackedContentHeight = nextHeight;
|
|
180
|
+
this.contentHeight = nextHeight;
|
|
181
|
+
this.currentViewportHeight = Math.max(0, Math.floor(viewportHeight));
|
|
182
|
+
this.requestRenderCallback = requestRender;
|
|
183
|
+
const maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);
|
|
184
|
+
if (this.followingEnd)
|
|
185
|
+
this.currentScrollTop = maxScrollTop;
|
|
186
|
+
else
|
|
187
|
+
this.currentScrollTop = Math.max(0, Math.min(this.currentScrollTop, maxScrollTop));
|
|
188
|
+
if (this.currentScrollTop < maxScrollTop)
|
|
189
|
+
this.followSuppressedAtEnd = false;
|
|
190
|
+
if (this.followEnd && this.currentScrollTop === maxScrollTop && !this.followSuppressedAtEnd) {
|
|
191
|
+
this.followingEnd = true;
|
|
192
|
+
}
|
|
193
|
+
if (this.followingEnd)
|
|
194
|
+
this.unreadLines = 0;
|
|
195
|
+
if (this.contentHeight <= this.currentViewportHeight)
|
|
196
|
+
this.hideTransientScrollbar();
|
|
197
|
+
}
|
|
198
|
+
addChild(_component) {
|
|
199
|
+
throw new Error("ScrollView has exactly one child");
|
|
200
|
+
}
|
|
201
|
+
removeChild(_component) {
|
|
202
|
+
throw new Error("ScrollView child cannot be removed");
|
|
203
|
+
}
|
|
204
|
+
clear() {
|
|
205
|
+
throw new Error("ScrollView child cannot be cleared");
|
|
206
|
+
}
|
|
207
|
+
render(width) {
|
|
208
|
+
const contentWidth = this.getContentWidth(width);
|
|
209
|
+
const lines = this.child.render(contentWidth);
|
|
210
|
+
return contentWidth === width ? lines : lines.map((line) => `${line} `);
|
|
211
|
+
}
|
|
212
|
+
[LAYOUT_NODE]() {
|
|
213
|
+
return { type: "scroll", component: this.child, state: this };
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=scroll-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-view.js","sourceRoot":"","sources":["../../src/components/scroll-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAkB,SAAS,EAAE,MAAM,WAAW,CAAC;AAoBtD,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvB,KAAK,CAAY;IACzB,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,UAAU,CAAsB;IAChC,mBAAmB,CAA2B;IAC9C,mBAAmB,CAA2B;IAC/C,gBAAgB,CAAsB;IAC7B,oBAAoB,CAAS;IACtC,gBAAgB,GAAG,CAAC,CAAC;IACrB,aAAa,GAAG,CAAC,CAAC;IAClB,qBAAqB,GAAG,CAAC,CAAC;IAC1B,YAAY,CAAU;IACtB,qBAAqB,GAAG,KAAK,CAAC;IAC9B,WAAW,GAAG,CAAC,CAAC;IAChB,oBAAoB,GAAG,CAAC,CAAC;IACzB,UAAU,GAAG,KAAK,CAAC;IACnB,qBAAqB,CAA2B;IAChD,yBAAyB,GAAG,KAAK,CAAC;IAClC,eAAe,GAAG,KAAK,CAAC;IACxB,kBAAkB,CAA6B;IAEvD,YAAY,SAAoB,EAAE,OAAO,GAAsB,EAAE,EAAE;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,gCAAgC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QACjE,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,K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,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,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"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|