@dungle-scrubs/tallow 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +309 -0
- package/dist/atomic-write.d.ts +41 -0
- package/dist/atomic-write.d.ts.map +1 -0
- package/dist/atomic-write.js +109 -0
- package/dist/atomic-write.js.map +1 -0
- package/dist/auth-hardening.d.ts +86 -0
- package/dist/auth-hardening.d.ts.map +1 -0
- package/dist/auth-hardening.js +350 -0
- package/dist/auth-hardening.js.map +1 -0
- package/dist/cli.d.ts +13 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +353 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +46 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +267 -0
- package/dist/config.js.map +1 -0
- package/dist/fatal-errors.d.ts +21 -0
- package/dist/fatal-errors.d.ts.map +1 -0
- package/dist/fatal-errors.js +112 -0
- package/dist/fatal-errors.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/install.d.ts +24 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +606 -0
- package/dist/install.js.map +1 -0
- package/dist/pid-manager.d.ts +41 -0
- package/dist/pid-manager.d.ts.map +1 -0
- package/dist/pid-manager.js +123 -0
- package/dist/pid-manager.js.map +1 -0
- package/dist/plugins.d.ts +212 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +489 -0
- package/dist/plugins.js.map +1 -0
- package/dist/process-cleanup.d.ts +25 -0
- package/dist/process-cleanup.d.ts.map +1 -0
- package/dist/process-cleanup.js +89 -0
- package/dist/process-cleanup.js.map +1 -0
- package/dist/sdk.d.ts +112 -0
- package/dist/sdk.d.ts.map +1 -0
- package/dist/sdk.js +627 -0
- package/dist/sdk.js.map +1 -0
- package/dist/session-migration.d.ts +31 -0
- package/dist/session-migration.d.ts.map +1 -0
- package/dist/session-migration.js +70 -0
- package/dist/session-migration.js.map +1 -0
- package/dist/session-utils.d.ts +33 -0
- package/dist/session-utils.d.ts.map +1 -0
- package/dist/session-utils.js +96 -0
- package/dist/session-utils.js.map +1 -0
- package/extensions/__integration__/cancellation.test.ts +164 -0
- package/extensions/__integration__/error-paths.test.ts +171 -0
- package/extensions/__integration__/hooks.test.ts +161 -0
- package/extensions/__integration__/interop-state-flow.test.ts +187 -0
- package/extensions/__integration__/lifecycle.test.ts +127 -0
- package/extensions/__integration__/mcp-sse-transport.test.ts +270 -0
- package/extensions/__integration__/mcp-streamable-http-transport.test.ts +198 -0
- package/extensions/__integration__/module-boundaries-and-size.test.ts +152 -0
- package/extensions/__integration__/shell-policy-confirm.test.ts +372 -0
- package/extensions/__integration__/slash-command-bridge.test.ts +138 -0
- package/extensions/__integration__/tasks-runtime.test.ts +224 -0
- package/extensions/__integration__/teams-runtime.test.ts +291 -0
- package/extensions/__integration__/tools.test.ts +189 -0
- package/extensions/_icons/__tests__/icons.test.ts +67 -0
- package/extensions/_icons/extension.json +8 -0
- package/extensions/_icons/index.ts +167 -0
- package/extensions/_shared/__tests__/inline-preview.test.ts +54 -0
- package/extensions/_shared/__tests__/permissions.test.ts +773 -0
- package/extensions/_shared/__tests__/pid-registry.test.ts +143 -0
- package/extensions/_shared/__tests__/shell-policy.test.ts +326 -0
- package/extensions/_shared/atomic-write.ts +6 -0
- package/extensions/_shared/inline-preview.ts +57 -0
- package/extensions/_shared/interop-events.ts +390 -0
- package/extensions/_shared/permissions.ts +1070 -0
- package/extensions/_shared/pid-registry.ts +169 -0
- package/extensions/_shared/shell-policy.ts +1059 -0
- package/extensions/agent-commands-tool/__tests__/parsing.test.ts +244 -0
- package/extensions/agent-commands-tool/extension.json +16 -0
- package/extensions/agent-commands-tool/index.ts +403 -0
- package/extensions/ask-user-question-tool/__tests__/error-paths.test.ts +105 -0
- package/extensions/ask-user-question-tool/extension.json +10 -0
- package/extensions/ask-user-question-tool/index.ts +357 -0
- package/extensions/background-task-tool/__tests__/lifecycle.test.ts +373 -0
- package/extensions/background-task-tool/__tests__/shell-detection.test.ts +129 -0
- package/extensions/background-task-tool/__tests__/utils.test.ts +64 -0
- package/extensions/background-task-tool/extension.json +16 -0
- package/extensions/background-task-tool/index.ts +1572 -0
- package/extensions/bash-tool-enhanced/__tests__/auto-background.test.ts +96 -0
- package/extensions/bash-tool-enhanced/__tests__/extract-exit-code.test.ts +25 -0
- package/extensions/bash-tool-enhanced/__tests__/maintain-project-dir.test.ts +28 -0
- package/extensions/bash-tool-enhanced/__tests__/osc-strip.test.ts +114 -0
- package/extensions/bash-tool-enhanced/__tests__/progress-message.test.ts +111 -0
- package/extensions/bash-tool-enhanced/extension.json +21 -0
- package/extensions/bash-tool-enhanced/index.ts +662 -0
- package/extensions/cd-tool/extension.json +10 -0
- package/extensions/cd-tool/index.ts +130 -0
- package/extensions/cheatsheet/extension.json +10 -0
- package/extensions/cheatsheet/index.ts +262 -0
- package/extensions/claude-bridge/__tests__/claude-bridge.test.ts +206 -0
- package/extensions/claude-bridge/extension.json +16 -0
- package/extensions/claude-bridge/index.ts +188 -0
- package/extensions/clear/extension.json +10 -0
- package/extensions/clear/index.ts +20 -0
- package/extensions/command-expansion/__tests__/expansion.test.ts +123 -0
- package/extensions/command-expansion/extension.json +10 -0
- package/extensions/command-expansion/index.ts +343 -0
- package/extensions/command-prompt/extension.json +10 -0
- package/extensions/command-prompt/index.ts +635 -0
- package/extensions/context-files/__tests__/add-dir.test.ts +198 -0
- package/extensions/context-files/__tests__/nested-rules.test.ts +247 -0
- package/extensions/context-files/__tests__/resolve-imports.test.ts +96 -0
- package/extensions/context-files/extension.json +10 -0
- package/extensions/context-files/index.ts +613 -0
- package/extensions/context-fork/__tests__/context-fork.test.ts +341 -0
- package/extensions/context-fork/extension.json +26 -0
- package/extensions/context-fork/frontmatter-index.ts +301 -0
- package/extensions/context-fork/index.ts +485 -0
- package/extensions/context-fork/model-resolver.ts +48 -0
- package/extensions/context-fork/spawn.ts +234 -0
- package/extensions/context-usage/__tests__/tokens.test.ts +108 -0
- package/extensions/context-usage/extension.json +9 -0
- package/extensions/context-usage/index.ts +483 -0
- package/extensions/custom-footer/extension.json +10 -0
- package/extensions/custom-footer/index.ts +388 -0
- package/extensions/debug/__tests__/analysis.test.ts +353 -0
- package/extensions/debug/__tests__/extension.test.ts +177 -0
- package/extensions/debug/__tests__/logger.test.ts +202 -0
- package/extensions/debug/__tests__/query-log.test.ts +180 -0
- package/extensions/debug/analysis.ts +294 -0
- package/extensions/debug/extension.json +21 -0
- package/extensions/debug/index.ts +629 -0
- package/extensions/debug/logger.ts +291 -0
- package/extensions/edit-tool-enhanced/__tests__/diff-link.test.ts +86 -0
- package/extensions/edit-tool-enhanced/extension.json +10 -0
- package/extensions/edit-tool-enhanced/index.ts +151 -0
- package/extensions/file-reference/__tests__/file-reference.test.ts +200 -0
- package/extensions/file-reference/extension.json +10 -0
- package/extensions/file-reference/index.ts +325 -0
- package/extensions/git-status/extension.json +10 -0
- package/extensions/git-status/index.ts +233 -0
- package/extensions/health/__tests__/diagnostics.test.ts +145 -0
- package/extensions/health/extension.json +10 -0
- package/extensions/health/index.ts +727 -0
- package/extensions/hooks/__tests__/multi-source.test.ts +228 -0
- package/extensions/hooks/__tests__/once-hooks.test.ts +222 -0
- package/extensions/hooks/extension.json +11 -0
- package/extensions/hooks/hooks.example.json +77 -0
- package/extensions/hooks/hooks.schema.json +214 -0
- package/extensions/hooks/index.ts +995 -0
- package/extensions/hooks/state-manager.ts +137 -0
- package/extensions/init/__tests__/init.test.ts +306 -0
- package/extensions/init/extension.json +10 -0
- package/extensions/init/index.ts +339 -0
- package/extensions/lsp/extension.json +13 -0
- package/extensions/lsp/index.ts +981 -0
- package/extensions/lsp/node_modules/.package-lock.json +48 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.d.ts +55 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.js +670 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/compiler/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/compiler/index.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/errors.d.ts +91 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/errors.js +599 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/function.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/function.js +153 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/errors/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/index.d.ts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/index.js +97 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/index.js +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.d.ts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.js +86 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.js +45 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.js +160 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.d.ts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.js +230 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.d.ts +98 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.js +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/index.js +43 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/token.d.ts +108 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/token.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/types.d.ts +69 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/parser/static/types.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.d.ts +167 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.js +491 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/parser.d.ts +162 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/parser.js +191 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.js +54 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/policy.d.ts +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/policy.js +58 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/system.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/system/system.js +43 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/any/any.d.ts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/any/any.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/any/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/any/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/argument/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/argument/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/array/array.d.ts +28 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/array/array.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/array/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/array/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.d.ts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js +41 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/type.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/value.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js +73 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.d.ts +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js +46 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/composite/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/computed/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/computed/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/const/const.d.ts +27 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/const/const.js +58 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/const/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/const/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.d.ts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.d.ts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js +44 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js +70 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/type.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/create/type.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/date/date.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/date/date.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/date/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/date/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/discard/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.d.ts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/enum/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/error/error.d.ts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/error/error.js +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/error/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/error/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js +641 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.d.ts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js +27 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/index.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/function/function.d.ts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/function/function.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/function/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/function/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js +40 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.d.ts +147 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js +320 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/type.d.ts +152 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js +597 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/value.d.ts +34 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js +89 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.d.ts +42 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/index.d.ts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/index.js +88 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.d.ts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.d.ts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.d.ts +52 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js +98 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js +44 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.d.ts +50 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.js +153 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/integer/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js +42 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.d.ts +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.d.ts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js +30 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js +68 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.d.ts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.d.ts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.d.ts +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js +78 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js +40 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/literal/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.d.ts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.d.ts +47 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js +107 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/compute.d.ts +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/compute.js +205 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/infer.d.ts +49 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/infer.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/module.d.ts +27 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/module/module.js +38 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/never/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/never/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/never/never.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/never/never.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/not/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/not/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/not/not.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/not/not.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/null/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/null/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/null/null.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/null/null.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/number/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/number/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/number/number.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/number/number.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/object/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/object/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/object/object.d.ts +51 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/object/object.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.d.ts +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js +75 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.d.ts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js +44 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.d.ts +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js +111 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.d.ts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js +28 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.d.ts +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js +70 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/promise/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/record/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/record/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/record/record.d.ts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/record/record.js +123 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/ref/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.d.ts +41 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/format.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/type.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/required.d.ts +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/required/required.js +110 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/rest/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js +44 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.d.ts +33 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/index.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/sets/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/sets/set.d.ts +28 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/static/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/static/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/static/static.d.ts +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/static/static.js +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/string/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/string/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/string/string.d.ts +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/string/string.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.d.ts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.d.ts +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js +56 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.d.ts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js +60 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.d.ts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js +174 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.d.ts +30 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js +17 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/transform/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.d.ts +30 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js +47 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/index.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/index.js +51 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.d.ts +64 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js +104 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/json.d.ts +208 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/json.js +226 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/type.d.ts +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/type/type.js +129 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.d.ts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js +40 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/union/union.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.d.ts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/void/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/void/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/void/void.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/type/void/void.js +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.d.ts +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.js +55 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/assert/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/assert/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.js +241 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/cast/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/cast/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/check/check.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/check/check.js +476 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/check/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/check/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.js +149 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clean/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clean/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.js +60 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clone/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/clone/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.js +264 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/convert/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/convert/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/create/create.d.ts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/create/create.js +474 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/create/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/create/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.js +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/decode/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/decode/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/default/default.d.ts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/default/default.js +176 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/default/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/default/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.d.ts +32 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.js +178 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/delta/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/delta/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.d.ts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/deref/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.d.ts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.js +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/encode/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/encode/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.d.ts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.js +50 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/equal/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/equal/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.d.ts +74 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js +195 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/guard/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.d.ts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js +152 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/hash/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/index.d.ts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/index.js +53 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.d.ts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.js +104 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/parse/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/parse/index.js +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.d.ts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.js +87 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.js +38 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.d.ts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.js +126 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.d.ts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.js +214 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.d.ts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.js +225 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/has.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/has.js +133 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/index.d.ts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/transform/index.js +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/value/index.d.ts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/value/index.js +38 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/value/value.d.ts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/cjs/value/value/value.js +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/compiler/compiler.d.mts +55 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs +663 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/compiler/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/compiler/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/errors.d.mts +91 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs +592 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/function.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/function.mjs +147 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/errors/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/index.d.mts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/index.mjs +80 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.d.mts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.mjs +72 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.mjs +17 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.mjs +123 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.d.mts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.mjs +223 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.d.mts +98 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.mjs +55 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/parse.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/parse.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/token.d.mts +108 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/token.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/types.d.mts +69 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/parser/static/types.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/mapping.d.mts +167 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/mapping.mjs +386 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/parser.d.mts +162 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/parser.mjs +78 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/syntax.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/syntax/syntax.mjs +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/policy.d.mts +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/system.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/system/system.mjs +37 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/any/any.d.mts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/any/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/argument/argument.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/argument/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/array/array.d.mts +28 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/array/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.d.mts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/awaited/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/bigint/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/boolean/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/type.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/value.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/composite/composite.d.mts +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/composite/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/computed/computed.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/computed/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/const/const.d.mts +27 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/const/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.d.mts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.d.mts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/immutable.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/type.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/date/date.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/date/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/discard/discard.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/discard/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/enum/enum.d.mts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/enum/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/error/error.d.mts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/error/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.d.mts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/index.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/function/function.d.mts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/function/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/kind.d.mts +147 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +235 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/type.d.mts +152 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +509 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/value.d.mts +34 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.d.mts +42 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/helpers/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/index.d.mts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/index.mjs +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/index.d.mts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.d.mts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.d.mts +52 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.d.mts +50 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +115 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/integer/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/integer/integer.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.d.mts +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.d.mts +14 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/iterator/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/index.d.mts +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.d.mts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.d.mts +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/literal/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/literal/literal.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.d.mts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.d.mts +47 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/compute.d.mts +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +166 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/infer.d.mts +49 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/infer.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/module.d.mts +27 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/never/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/never/never.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/not/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/not/not.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/null/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/null/null.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/number/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/number/number.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/object/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/object/object.d.mts +51 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit.d.mts +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/optional.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/parameters/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.d.mts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/partial.d.mts +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +74 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/patterns/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.d.mts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick.d.mts +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/promise/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/promise/promise.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/record/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/record/record.d.mts +71 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +116 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/recursive/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/ref/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/ref/ref.d.mts +41 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/regexp/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/format.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/type.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/required.d.mts +35 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +73 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/rest/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/rest/rest.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/return-type/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.d.mts +33 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/index.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/schema.d.mts +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/sets/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/sets/set.d.mts +28 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/static/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/static/static.d.mts +39 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/string/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/string/string.d.mts +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbol/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbols/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.d.mts +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.d.mts +19 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.d.mts +21 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.d.mts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.d.mts +30 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/transform/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/transform/transform.d.mts +30 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/tuple/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/index.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/javascript.d.mts +64 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +99 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/json.d.mts +208 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/type.d.mts +59 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +62 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/undefined/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-create.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.d.mts +13 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-type.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unknown/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.d.mts +8 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/void/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/void/void.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/assert/assert.d.mts +15 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/assert/assert.mjs +49 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/assert/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/assert/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/cast/cast.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/cast/cast.mjs +235 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/cast/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/cast/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/check/check.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs +470 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/check/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/check/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clean/clean.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clean/clean.mjs +145 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clean/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clean/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clone/clone.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clone/clone.mjs +56 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clone/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/clone/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/convert/convert.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/convert/convert.mjs +260 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/convert/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/convert/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/create/create.d.mts +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/create/create.mjs +468 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/create/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/create/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/decode/decode.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/decode/decode.mjs +10 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/decode/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/decode/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/default/default.d.mts +5 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/default/default.mjs +172 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/default/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/default/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/delta/delta.d.mts +32 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/delta/delta.mjs +171 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/delta/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/delta/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/deref/deref.d.mts +12 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs +29 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/deref/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/deref/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/encode/encode.d.mts +6 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/encode/encode.mjs +11 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/encode/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/encode/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/equal/equal.d.mts +2 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/equal/equal.mjs +46 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/equal/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/equal/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/guard/guard.d.mts +74 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/guard/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/hash/hash.d.mts +7 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs +146 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/hash/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/hash/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/index.d.mts +20 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/index.mjs +32 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/mutate/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/mutate/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.d.mts +9 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.mjs +98 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/parse/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/parse/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/parse/parse.d.mts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/parse/parse.mjs +81 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/pointer/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/pointer/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.d.mts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs +115 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/decode.d.mts +22 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs +207 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/encode.d.mts +23 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs +218 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/has.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs +129 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/index.d.mts +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/transform/index.mjs +3 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/value/index.d.mts +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/value/index.mjs +1 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/value/value.d.mts +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/build/esm/value/value/value.mjs +16 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/compiler/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/errors/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/license +25 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/package.json +116 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/parser/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/readme.md +1865 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/syntax/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/system/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/type/package.json +4 -0
- package/extensions/lsp/node_modules/@sinclair/typebox/value/package.json +4 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/License.txt +11 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/README.md +69 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/browser.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/browser.js +7 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/browser/main.js +76 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +12 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/browser/ril.js +156 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/api.js +81 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/cancellation.js +96 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +358 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/connection.js +1214 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/events.js +128 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/is.js +35 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +53 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +398 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +152 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageReader.js +197 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +115 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/messages.js +306 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/semaphore.js +68 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +76 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/node/main.d.ts +63 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/node/main.js +257 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +13 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/lib/node/ril.js +161 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/node.cmd +5 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/node.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/node.js +7 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/package.json +45 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/thirdpartynotices.txt +16 -0
- package/extensions/lsp/node_modules/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/License.txt +11 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/README.md +16 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/browser.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/browser.js +7 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/browser/main.d.ts +4 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/browser/main.js +28 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +58 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/api.js +77 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +187 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/connection.js +15 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +51 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/messages.js +44 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.d.ts +1 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.js +43 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +86 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +42 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +66 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +32 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +35 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +24 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +3252 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +37 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +22 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +341 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +74 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +306 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +101 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +109 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +30 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +38 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +21 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +110 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +43 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +57 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +22 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +86 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +30 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +943 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +52 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +19 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +106 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +68 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +400 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +214 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +107 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +37 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +41 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +20 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +223 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +57 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +72 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +22 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +38 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +21 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +83 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +42 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +74 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +27 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/utils/is.d.ts +9 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +46 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/lib/node/main.js +28 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/metaModel.schema.json +783 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node.cmd +5 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node.js +7 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/License.txt +11 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/README.md +69 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +7 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +76 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +12 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +156 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +81 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +96 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +358 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +1212 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +128 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +35 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +53 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +398 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +152 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +197 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +115 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +306 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +68 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +76 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.d.ts +63 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.js +257 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +13 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.js +161 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.cmd +5 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.d.ts +6 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.js +7 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/package.json +45 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/thirdpartynotices.txt +16 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/package.json +45 -0
- package/extensions/lsp/node_modules/vscode-languageserver-protocol/thirdpartynotices.txt +31 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/License.txt +11 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/README.md +17 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +3139 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/lib/esm/main.js +2222 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/lib/esm/package.json +3 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +3139 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/lib/umd/main.js +2272 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/package.json +38 -0
- package/extensions/lsp/node_modules/vscode-languageserver-types/thirdpartynotices.txt +16 -0
- package/extensions/lsp/package.json +10 -0
- package/extensions/lsp/types.d.ts +27 -0
- package/extensions/mcp-adapter-tool/__tests__/config.test.ts +102 -0
- package/extensions/mcp-adapter-tool/__tests__/map-content.test.ts +158 -0
- package/extensions/mcp-adapter-tool/__tests__/reconnect.test.ts +123 -0
- package/extensions/mcp-adapter-tool/__tests__/transport.test.ts +201 -0
- package/extensions/mcp-adapter-tool/extension.json +10 -0
- package/extensions/mcp-adapter-tool/index.ts +1482 -0
- package/extensions/minimal-skill-display/extension.json +10 -0
- package/extensions/minimal-skill-display/index.ts +127 -0
- package/extensions/output-styles-tool/__tests__/utils.test.ts +304 -0
- package/extensions/output-styles-tool/extension.json +10 -0
- package/extensions/output-styles-tool/index.ts +286 -0
- package/extensions/output-styles-tool/utils.ts +143 -0
- package/extensions/permissions/extension.json +26 -0
- package/extensions/permissions/index.ts +398 -0
- package/extensions/plan-mode-tool/__tests__/e2e.mjs +258 -0
- package/extensions/plan-mode-tool/__tests__/utils.test.ts +238 -0
- package/extensions/plan-mode-tool/extension.json +10 -0
- package/extensions/plan-mode-tool/index.ts +577 -0
- package/extensions/plan-mode-tool/utils.ts +200 -0
- package/extensions/progress-indicator/extension.json +10 -0
- package/extensions/progress-indicator/index.ts +52 -0
- package/extensions/prompt-suggestions/__tests__/autocomplete.test.ts +506 -0
- package/extensions/prompt-suggestions/__tests__/conversation-context.test.ts +254 -0
- package/extensions/prompt-suggestions/__tests__/templates.test.ts +41 -0
- package/extensions/prompt-suggestions/autocomplete.ts +270 -0
- package/extensions/prompt-suggestions/extension.json +10 -0
- package/extensions/prompt-suggestions/index.ts +333 -0
- package/extensions/prompt-suggestions/templates.ts +48 -0
- package/extensions/random-spinner/extension.json +16 -0
- package/extensions/random-spinner/index.ts +651 -0
- package/extensions/read-tool-enhanced/__tests__/error-paths.test.ts +116 -0
- package/extensions/read-tool-enhanced/__tests__/pdf.test.ts +268 -0
- package/extensions/read-tool-enhanced/__tests__/skill-icon.test.ts +53 -0
- package/extensions/read-tool-enhanced/extension.json +18 -0
- package/extensions/read-tool-enhanced/index.ts +691 -0
- package/extensions/read-tool-enhanced/pdf.ts +354 -0
- package/extensions/rewind/__tests__/snapshots.test.ts +231 -0
- package/extensions/rewind/__tests__/tracker.test.ts +145 -0
- package/extensions/rewind/extension.json +16 -0
- package/extensions/rewind/index.ts +202 -0
- package/extensions/rewind/snapshots.ts +281 -0
- package/extensions/rewind/tracker.ts +148 -0
- package/extensions/rewind/ui.ts +97 -0
- package/extensions/session-memory/ROADMAP.md +68 -0
- package/extensions/session-memory/__tests__/debug-fts.ts +0 -0
- package/extensions/session-memory/__tests__/indexer.test.ts +231 -0
- package/extensions/session-memory/curator-prompt.ts +23 -0
- package/extensions/session-memory/extension.json +9 -0
- package/extensions/session-memory/index.ts +453 -0
- package/extensions/session-memory/indexer.ts +433 -0
- package/extensions/session-memory/sqlite-adapter.ts +167 -0
- package/extensions/session-memory/types.ts +41 -0
- package/extensions/session-namer/__tests__/session-namer.test.ts +100 -0
- package/extensions/session-namer/extension.json +16 -0
- package/extensions/session-namer/index.ts +227 -0
- package/extensions/shell-interpolation/__tests__/interpolation.test.ts +171 -0
- package/extensions/shell-interpolation/extension.json +10 -0
- package/extensions/shell-interpolation/index.ts +117 -0
- package/extensions/show-system-prompt/extension.json +10 -0
- package/extensions/show-system-prompt/index.ts +29 -0
- package/extensions/skill-commands/__tests__/skill-commands.test.ts +68 -0
- package/extensions/skill-commands/extension.json +10 -0
- package/extensions/skill-commands/index.ts +191 -0
- package/extensions/slash-command-bridge/__tests__/slash-command-bridge.test.ts +343 -0
- package/extensions/slash-command-bridge/extension.json +13 -0
- package/extensions/slash-command-bridge/index.ts +271 -0
- package/extensions/stats/__tests__/aggregator.test.ts +281 -0
- package/extensions/stats/__tests__/stats-log.test.ts +142 -0
- package/extensions/stats/aggregator.ts +363 -0
- package/extensions/stats/extension.json +9 -0
- package/extensions/stats/formatters.ts +251 -0
- package/extensions/stats/index.ts +316 -0
- package/extensions/stats/stats-log.ts +129 -0
- package/extensions/subagent-tool/__tests__/auto-cheap-model.test.ts +164 -0
- package/extensions/subagent-tool/__tests__/centipede-mode.test.ts +228 -0
- package/extensions/subagent-tool/__tests__/coerce-array.test.ts +104 -0
- package/extensions/subagent-tool/__tests__/denial-detection.test.ts +210 -0
- package/extensions/subagent-tool/__tests__/discovery-defaults.test.ts +321 -0
- package/extensions/subagent-tool/__tests__/model-matrix.test.ts +86 -0
- package/extensions/subagent-tool/__tests__/model-resolver.test.ts +93 -0
- package/extensions/subagent-tool/__tests__/model-router.test.ts +19 -0
- package/extensions/subagent-tool/__tests__/task-restriction.test.ts +143 -0
- package/extensions/subagent-tool/agents.ts +513 -0
- package/extensions/subagent-tool/extension.json +16 -0
- package/extensions/subagent-tool/formatting.ts +257 -0
- package/extensions/subagent-tool/index.ts +1317 -0
- package/extensions/subagent-tool/model-matrix.ts +8 -0
- package/extensions/subagent-tool/model-resolver.ts +12 -0
- package/extensions/subagent-tool/model-router.ts +310 -0
- package/extensions/subagent-tool/process.ts +826 -0
- package/extensions/subagent-tool/schema.ts +171 -0
- package/extensions/subagent-tool/task-classifier.ts +87 -0
- package/extensions/subagent-tool/widget.ts +223 -0
- package/extensions/tasks/__tests__/parsing.test.ts +246 -0
- package/extensions/tasks/__tests__/state-transitions.test.ts +428 -0
- package/extensions/tasks/__tests__/state-ui.test.ts +123 -0
- package/extensions/tasks/__tests__/store.test.ts +236 -0
- package/extensions/tasks/agents/index.ts +202 -0
- package/extensions/tasks/commands/register-tasks-extension.ts +1971 -0
- package/extensions/tasks/extension.json +24 -0
- package/extensions/tasks/index.ts +57 -0
- package/extensions/tasks/parsing/index.ts +103 -0
- package/extensions/tasks/state/index.ts +423 -0
- package/extensions/tasks/ui/index.ts +85 -0
- package/extensions/teams-tool/__tests__/auto-dispatch.test.ts +229 -0
- package/extensions/teams-tool/__tests__/dashboard.test.ts +118 -0
- package/extensions/teams-tool/__tests__/e2e.mjs +253 -0
- package/extensions/teams-tool/__tests__/events.test.ts +136 -0
- package/extensions/teams-tool/__tests__/interrupt.test.ts +340 -0
- package/extensions/teams-tool/__tests__/peer-messaging.test.ts +256 -0
- package/extensions/teams-tool/__tests__/store-logic.test.ts +347 -0
- package/extensions/teams-tool/__tests__/team-view.test.ts +139 -0
- package/extensions/teams-tool/__tests__/unit.test.ts +695 -0
- package/extensions/teams-tool/dashboard/feed.ts +49 -0
- package/extensions/teams-tool/dashboard/state.ts +376 -0
- package/extensions/teams-tool/dashboard.ts +1443 -0
- package/extensions/teams-tool/dispatch/auto-dispatch.ts +123 -0
- package/extensions/teams-tool/extension.json +22 -0
- package/extensions/teams-tool/index.ts +54 -0
- package/extensions/teams-tool/sessions/spawn.ts +129 -0
- package/extensions/teams-tool/state/team-view.ts +168 -0
- package/extensions/teams-tool/state/types.ts +25 -0
- package/extensions/teams-tool/store.ts +368 -0
- package/extensions/teams-tool/tools/register-extension.ts +952 -0
- package/extensions/teams-tool/tools/teammate-tools.ts +222 -0
- package/extensions/theme-selector/__tests__/tags.test.ts +392 -0
- package/extensions/theme-selector/extension.json +10 -0
- package/extensions/theme-selector/index.ts +647 -0
- package/extensions/tool-display/__tests__/sanitize-tabs.test.ts +91 -0
- package/extensions/tool-display/extension.json +31 -0
- package/extensions/tool-display/index.ts +246 -0
- package/extensions/upstream-check/extension.json +8 -0
- package/extensions/upstream-check/index.ts +107 -0
- package/extensions/web-fetch-tool/extension.json +10 -0
- package/extensions/web-fetch-tool/index.ts +142 -0
- package/extensions/web-search-tool/__tests__/brave-provider.test.ts +256 -0
- package/extensions/web-search-tool/extension.json +21 -0
- package/extensions/web-search-tool/index.ts +240 -0
- package/extensions/web-search-tool/providers/brave.ts +155 -0
- package/extensions/web-search-tool/providers/interface.ts +94 -0
- package/extensions/wezterm-pane-control/__tests__/index.test.ts +271 -0
- package/extensions/wezterm-pane-control/extension.json +10 -0
- package/extensions/wezterm-pane-control/index.ts +631 -0
- package/extensions/write-tool-enhanced/extension.json +17 -0
- package/extensions/write-tool-enhanced/index.ts +82 -0
- package/package.json +106 -0
- package/schemas/settings.schema.json +357 -0
- package/skills/.gitkeep +0 -0
- package/skills/tallow-expert/SKILL.md +204 -0
- package/templates/agents/_defaults.md +58 -0
- package/templates/agents/architect.md +23 -0
- package/templates/agents/debug.md +21 -0
- package/templates/agents/explore.md +39 -0
- package/templates/agents/planner.md +38 -0
- package/templates/agents/refactor.md +25 -0
- package/templates/agents/reviewer.md +36 -0
- package/templates/agents/scout.md +51 -0
- package/templates/agents/tallow-expert.md +35 -0
- package/templates/agents/worker.md +26 -0
- package/templates/commands/fix.md +16 -0
- package/templates/commands/implement-and-review.md +10 -0
- package/templates/commands/implement.md +10 -0
- package/templates/commands/question.md +19 -0
- package/templates/commands/review.md +14 -0
- package/templates/commands/scaffold.md +16 -0
- package/templates/commands/scout-and-plan.md +9 -0
- package/templates/commands/test.md +16 -0
- package/themes/.gitkeep +0 -0
- package/themes/apprentice.json +75 -0
- package/themes/ayu-mirage.json +74 -0
- package/themes/bluloco-dark.json +76 -0
- package/themes/catppuccin-frappe.json +88 -0
- package/themes/catppuccin-macchiato.json +88 -0
- package/themes/catppuccin-mocha.json +88 -0
- package/themes/dracula.json +74 -0
- package/themes/everforest-dark.json +74 -0
- package/themes/flexoki-dark.json +85 -0
- package/themes/github-dark.json +76 -0
- package/themes/gruvbox-dark.json +75 -0
- package/themes/horizon.json +77 -0
- package/themes/iceberg.json +75 -0
- package/themes/kanagawa-wave.json +74 -0
- package/themes/material-ocean.json +74 -0
- package/themes/mellow.json +75 -0
- package/themes/modus-vivendi.json +76 -0
- package/themes/monokai-pro.json +74 -0
- package/themes/moonlight.json +76 -0
- package/themes/night-owl.json +74 -0
- package/themes/nord.json +78 -0
- package/themes/one-dark.json +74 -0
- package/themes/oxocarbon-dark.json +74 -0
- package/themes/palenight.json +75 -0
- package/themes/poimandres.json +74 -0
- package/themes/rose-pine.json +74 -0
- package/themes/solarized-dark.json +78 -0
- package/themes/spaceduck.json +76 -0
- package/themes/synthwave-84.json +77 -0
- package/themes/tokyo-night.json +77 -0
- package/themes/trash-panda.json +77 -0
- package/themes/vesper.json +74 -0
- package/themes/vitesse-dark.json +77 -0
- package/themes/zenburn-dark.json +74 -0
|
@@ -0,0 +1,1572 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Background Tasks Extension for Pi
|
|
3
|
+
*
|
|
4
|
+
* Enables running bash commands in the background.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - `bg_bash` tool: Run commands in background, returns task ID immediately
|
|
8
|
+
* - `task_output` tool: Retrieve output from a background task
|
|
9
|
+
* - `task_status` tool: Check if a task is running or completed
|
|
10
|
+
* - `/bg` command: List and manage background tasks
|
|
11
|
+
* - Status widget shows running background tasks
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* Ask the agent to "run npm test in the background"
|
|
15
|
+
* Or use the bg_bash tool directly with a command
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { type ChildProcess, spawn } from "node:child_process";
|
|
19
|
+
import * as fs from "node:fs";
|
|
20
|
+
import * as os from "node:os";
|
|
21
|
+
import * as path from "node:path";
|
|
22
|
+
import { type ExtensionAPI, type ExtensionContext, keyHint } from "@mariozechner/pi-coding-agent";
|
|
23
|
+
import {
|
|
24
|
+
Container,
|
|
25
|
+
Key,
|
|
26
|
+
Loader,
|
|
27
|
+
matchesKey,
|
|
28
|
+
Text,
|
|
29
|
+
type TUI,
|
|
30
|
+
truncateToWidth,
|
|
31
|
+
visibleWidth,
|
|
32
|
+
} from "@mariozechner/pi-tui";
|
|
33
|
+
import { Type } from "@sinclair/typebox";
|
|
34
|
+
import { getIcon, getSpinner } from "../_icons/index.js";
|
|
35
|
+
import { extractPreview, isInlineResultsEnabled } from "../_shared/inline-preview.js";
|
|
36
|
+
import {
|
|
37
|
+
emitInteropEvent,
|
|
38
|
+
INTEROP_API_CHANNELS,
|
|
39
|
+
INTEROP_EVENT_NAMES,
|
|
40
|
+
type InteropBackgroundTaskView,
|
|
41
|
+
onInteropEvent,
|
|
42
|
+
} from "../_shared/interop-events.js";
|
|
43
|
+
import { registerPid, unregisterPid } from "../_shared/pid-registry.js";
|
|
44
|
+
import { enforceExplicitPolicy, recordAudit } from "../_shared/shell-policy.js";
|
|
45
|
+
|
|
46
|
+
// ANSI escape codes for Catppuccin Macchiato colors (medium-dark variant)
|
|
47
|
+
// Crust bg: #181926, Mauve: #c6a0f6, Text: #cad3f5
|
|
48
|
+
const BG_DARK_GRAY = "\x1b[48;2;24;25;38m"; // Catppuccin Macchiato crust #181926
|
|
49
|
+
const FG_PURPLE = "\x1b[38;2;198;160;246m"; // Catppuccin Macchiato mauve #c6a0f6
|
|
50
|
+
const FG_PURPLE_MUTED = "\x1b[38;2;165;173;203m"; // Catppuccin Macchiato subtext0 #a5adcb
|
|
51
|
+
const FG_LIGHT_GREEN = "\x1b[38;2;166;218;149m"; // Catppuccin Macchiato green #a6da95
|
|
52
|
+
const FG_LIGHT_RED = "\x1b[38;2;237;135;150m"; // Catppuccin Macchiato red #ed8796
|
|
53
|
+
const FG_WHITE = "\x1b[38;2;202;211;245m"; // Catppuccin Macchiato text #cad3f5
|
|
54
|
+
const RESET_ALL = "\x1b[0m";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Applies dark blue background with light text to a line, padding to full width.
|
|
58
|
+
* @param line - Line content to style
|
|
59
|
+
* @param width - Total width to pad to
|
|
60
|
+
* @returns Styled line with ANSI escape codes
|
|
61
|
+
*/
|
|
62
|
+
function withDarkBlueBg(line: string, width: number): string {
|
|
63
|
+
const visLen = visibleWidth(line);
|
|
64
|
+
const padding = " ".repeat(Math.max(0, width - visLen));
|
|
65
|
+
// Reset any existing colors, then apply dark blue bg + white text
|
|
66
|
+
return `${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}${line}${padding}${RESET_ALL}`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface BackgroundTask {
|
|
70
|
+
id: string;
|
|
71
|
+
command: string;
|
|
72
|
+
cwd: string;
|
|
73
|
+
startTime: number;
|
|
74
|
+
endTime?: number;
|
|
75
|
+
exitCode?: number | null;
|
|
76
|
+
output: string[];
|
|
77
|
+
outputBytes: number;
|
|
78
|
+
process: ChildProcess | null;
|
|
79
|
+
status: "running" | "completed" | "failed" | "killed";
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const MAX_OUTPUT_BYTES = 1024 * 1024; // 1MB max buffered output per task
|
|
83
|
+
const MAX_TASKS = 20; // Max concurrent/recent tasks
|
|
84
|
+
|
|
85
|
+
/** Reference to pi events bus, set when the extension initializes. */
|
|
86
|
+
let piEventsRef: ExtensionAPI["events"] | null = null;
|
|
87
|
+
|
|
88
|
+
/** Reference to pi extension API, for sendMessage from async close handlers. */
|
|
89
|
+
let piRef: ExtensionAPI | null = null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Abort controllers for promoted tasks (bash → background handoff).
|
|
93
|
+
* Regular bg_bash tasks use ChildProcess.kill(); promoted tasks use AbortController.
|
|
94
|
+
*/
|
|
95
|
+
const promotedAbortControllers = new Map<string, AbortController>();
|
|
96
|
+
|
|
97
|
+
// TUI reference captured at session_start for Loader in renderResult
|
|
98
|
+
let tuiRef: TUI | null = null;
|
|
99
|
+
|
|
100
|
+
// Persistent Loader instances per streaming task (avoids leaking intervals)
|
|
101
|
+
const activeLoaders = new Map<string, InstanceType<typeof Loader>>();
|
|
102
|
+
|
|
103
|
+
// In-memory task registry (published via typed interop events)
|
|
104
|
+
const tasks = new Map<string, BackgroundTask>();
|
|
105
|
+
let taskCounter = 0;
|
|
106
|
+
let interopStateRequestCleanup: (() => void) | undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Build a serializable background task snapshot for cross-extension consumers.
|
|
110
|
+
*
|
|
111
|
+
* @returns Array of task views in insertion order
|
|
112
|
+
*/
|
|
113
|
+
function buildBackgroundTaskSnapshot(): InteropBackgroundTaskView[] {
|
|
114
|
+
return [...tasks.values()].map((task) => ({
|
|
115
|
+
command: task.command,
|
|
116
|
+
id: task.id,
|
|
117
|
+
startTime: task.startTime,
|
|
118
|
+
status: task.status,
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Publish the current background task snapshot over the interop event bus.
|
|
124
|
+
*
|
|
125
|
+
* @param events - Shared extension event bus
|
|
126
|
+
* @returns void
|
|
127
|
+
*/
|
|
128
|
+
function publishBackgroundTaskSnapshot(events: ExtensionAPI["events"]): void {
|
|
129
|
+
emitInteropEvent(events, INTEROP_EVENT_NAMES.backgroundTasksSnapshot, {
|
|
130
|
+
tasks: buildBackgroundTaskSnapshot(),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Generates a unique task ID combining counter and timestamp.
|
|
136
|
+
* @returns Unique task identifier string
|
|
137
|
+
*/
|
|
138
|
+
function generateTaskId(): string {
|
|
139
|
+
taskCounter++;
|
|
140
|
+
return `bg_${taskCounter}_${Date.now().toString(36)}`;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Removes oldest completed tasks when task count exceeds MAX_TASKS.
|
|
145
|
+
*/
|
|
146
|
+
function cleanupOldTasks(): void {
|
|
147
|
+
if (tasks.size <= MAX_TASKS) return;
|
|
148
|
+
|
|
149
|
+
// Remove oldest completed tasks
|
|
150
|
+
const completed = [...tasks.entries()]
|
|
151
|
+
.filter(([_, t]) => t.status !== "running")
|
|
152
|
+
.sort((a, b) => (a[1].endTime || 0) - (b[1].endTime || 0));
|
|
153
|
+
|
|
154
|
+
while (tasks.size > MAX_TASKS && completed.length > 0) {
|
|
155
|
+
const entry = completed.shift();
|
|
156
|
+
if (entry) tasks.delete(entry[0]);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ── Promoted Task API ────────────────────────────────────────────────────────
|
|
161
|
+
|
|
162
|
+
/** Handle for updating a task that was promoted from bash to background. */
|
|
163
|
+
export interface PromotedTaskHandle {
|
|
164
|
+
/** The background task ID. */
|
|
165
|
+
readonly id: string;
|
|
166
|
+
/** Replace the task's entire output buffer (bash streams full text, not deltas). */
|
|
167
|
+
replaceOutput(text: string): void;
|
|
168
|
+
/** Mark the task as completed with the given exit code. */
|
|
169
|
+
complete(exitCode: number | null): void;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Promote a running bash command to a tracked background task.
|
|
174
|
+
*
|
|
175
|
+
* Called by bash-tool-enhanced when a command exceeds the auto-background
|
|
176
|
+
* timeout. Creates a BackgroundTask entry in the shared registry so that
|
|
177
|
+
* task_status, task_output, and task_kill all work on it.
|
|
178
|
+
*
|
|
179
|
+
* @param opts.command - The shell command string
|
|
180
|
+
* @param opts.cwd - Working directory where the command was started
|
|
181
|
+
* @param opts.startTime - Timestamp (ms) when the command originally started
|
|
182
|
+
* @param opts.initialOutput - Output captured before promotion
|
|
183
|
+
* @param opts.abortController - Controller to abort the underlying bash execution
|
|
184
|
+
* @returns Handle for streaming updates and marking completion
|
|
185
|
+
*/
|
|
186
|
+
export function promoteToBackground(opts: {
|
|
187
|
+
command: string;
|
|
188
|
+
cwd: string;
|
|
189
|
+
startTime: number;
|
|
190
|
+
initialOutput: string;
|
|
191
|
+
abortController: AbortController;
|
|
192
|
+
}): PromotedTaskHandle {
|
|
193
|
+
const taskId = generateTaskId();
|
|
194
|
+
const task: BackgroundTask = {
|
|
195
|
+
id: taskId,
|
|
196
|
+
command: opts.command,
|
|
197
|
+
cwd: opts.cwd,
|
|
198
|
+
startTime: opts.startTime,
|
|
199
|
+
output: opts.initialOutput ? [opts.initialOutput] : [],
|
|
200
|
+
outputBytes: opts.initialOutput?.length ?? 0,
|
|
201
|
+
process: null,
|
|
202
|
+
status: "running",
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
promotedAbortControllers.set(taskId, opts.abortController);
|
|
206
|
+
tasks.set(taskId, task);
|
|
207
|
+
cleanupOldTasks();
|
|
208
|
+
|
|
209
|
+
if (piEventsRef) publishBackgroundTaskSnapshot(piEventsRef);
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
id: taskId,
|
|
213
|
+
replaceOutput(text: string) {
|
|
214
|
+
task.output = [text];
|
|
215
|
+
task.outputBytes = text.length;
|
|
216
|
+
},
|
|
217
|
+
complete(exitCode: number | null) {
|
|
218
|
+
task.endTime = Date.now();
|
|
219
|
+
task.exitCode = exitCode;
|
|
220
|
+
task.status = exitCode === 0 ? "completed" : "failed";
|
|
221
|
+
promotedAbortControllers.delete(taskId);
|
|
222
|
+
if (piEventsRef) publishBackgroundTaskSnapshot(piEventsRef);
|
|
223
|
+
// Post inline result for promoted tasks (bash → background handoff)
|
|
224
|
+
if (piRef && isInlineResultsEnabled()) {
|
|
225
|
+
const duration = formatDuration((task.endTime ?? Date.now()) - task.startTime);
|
|
226
|
+
const output = task.output.join("");
|
|
227
|
+
const preview = extractPreview(output, 3, 80);
|
|
228
|
+
piRef.sendMessage({
|
|
229
|
+
customType: "background-task-complete",
|
|
230
|
+
content: `Task ${task.id} ${task.status} (${duration})`,
|
|
231
|
+
display: true,
|
|
232
|
+
details: {
|
|
233
|
+
taskId: task.id,
|
|
234
|
+
command: task.command,
|
|
235
|
+
exitCode: task.exitCode ?? null,
|
|
236
|
+
duration,
|
|
237
|
+
preview,
|
|
238
|
+
status: task.status as "completed" | "failed",
|
|
239
|
+
timestamp: Date.now(),
|
|
240
|
+
} satisfies BgTaskCompleteDetails,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Formats milliseconds into human-readable duration (e.g., "5s", "2m 30s", "1h 15m").
|
|
249
|
+
* @param ms - Duration in milliseconds
|
|
250
|
+
* @returns Formatted duration string
|
|
251
|
+
*/
|
|
252
|
+
export function formatDuration(ms: number): string {
|
|
253
|
+
const seconds = Math.floor(ms / 1000);
|
|
254
|
+
if (seconds < 60) return `${seconds}s`;
|
|
255
|
+
const minutes = Math.floor(seconds / 60);
|
|
256
|
+
const secs = seconds % 60;
|
|
257
|
+
if (minutes < 60) return `${minutes}m ${secs}s`;
|
|
258
|
+
const hours = Math.floor(minutes / 60);
|
|
259
|
+
const mins = minutes % 60;
|
|
260
|
+
return `${hours}h ${mins}m`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Truncates a command string with ellipsis if it exceeds max length.
|
|
265
|
+
* @param cmd - Command string to truncate
|
|
266
|
+
* @param maxLen - Maximum length (default 40)
|
|
267
|
+
* @returns Truncated command or original if short enough
|
|
268
|
+
*/
|
|
269
|
+
export function truncateCommand(cmd: string, maxLen = 40): string {
|
|
270
|
+
if (cmd.length <= maxLen) return cmd;
|
|
271
|
+
return `${cmd.substring(0, maxLen - 3)}...`;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// ── Exported detection patterns (testable) ───────────────────────────────────
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Regex detecting a backgrounding `&` in a shell command.
|
|
278
|
+
* Matches single `&` not preceded by `&` (excludes `&&`) and not followed by `>` (excludes `&>`).
|
|
279
|
+
*/
|
|
280
|
+
export const BACKGROUND_AMPERSAND_PATTERN = /(?<!&)&(?!>)(?!&)(\s*$|\s*\n|\s*;|\s*\)|\s+[a-zA-Z])/;
|
|
281
|
+
|
|
282
|
+
/** Regex detecting heredoc markers — used to exempt `&` inside heredocs. */
|
|
283
|
+
export const HEREDOC_PATTERN = /<<[-]?\s*['"]?\w+['"]?/;
|
|
284
|
+
|
|
285
|
+
/** Pattern/reason pairs for commands likely to hang. */
|
|
286
|
+
export const HANG_PATTERNS: ReadonlyArray<{ pattern: RegExp; reason: string }> = [
|
|
287
|
+
{
|
|
288
|
+
pattern: /docker exec[^|]*node -e/,
|
|
289
|
+
reason: "docker exec with inline node script may hang if connections aren't closed",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
pattern: /docker exec[^|]*python -c/,
|
|
293
|
+
reason: "docker exec with inline python script may hang if connections aren't closed",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
pattern: /docker exec[^|]*-it\s/,
|
|
297
|
+
reason: "docker exec with interactive flag will hang",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
pattern: /docker exec[^|]*--interactive/,
|
|
301
|
+
reason: "docker exec with --interactive will hang",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
pattern: /\bpsql\b[^|]*-c\s+["']/,
|
|
305
|
+
reason: "psql with inline query may hang on connection issues",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
pattern: /\bmysql\b[^|]*-e\s+["']/,
|
|
309
|
+
reason: "mysql with inline query may hang on connection issues",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
pattern: /\bnc\b[^|]*-l/,
|
|
313
|
+
reason: "netcat listen mode will hang waiting for connections",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
pattern: /\btail\b[^|]*-f/,
|
|
317
|
+
reason: "tail -f will run forever - use bg_bash",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
pattern: /\bwatch\b\s/,
|
|
321
|
+
reason: "watch command runs forever - use bg_bash",
|
|
322
|
+
},
|
|
323
|
+
];
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Detect if a command uses `&` for backgrounding (which hangs in pi).
|
|
327
|
+
*
|
|
328
|
+
* @param command - Shell command string
|
|
329
|
+
* @returns True if the command backgrounds a process with `&`
|
|
330
|
+
*/
|
|
331
|
+
export function detectsBackgroundAmpersand(command: string): boolean {
|
|
332
|
+
const hasAmpersand = BACKGROUND_AMPERSAND_PATTERN.test(command);
|
|
333
|
+
const hasHeredoc = HEREDOC_PATTERN.test(command);
|
|
334
|
+
return hasAmpersand && !hasHeredoc;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Check if a command matches any known hang pattern.
|
|
339
|
+
*
|
|
340
|
+
* @param command - Shell command string
|
|
341
|
+
* @returns The matching reason if found, or null
|
|
342
|
+
*/
|
|
343
|
+
export function detectsHangPattern(command: string): string | null {
|
|
344
|
+
for (const { pattern, reason } of HANG_PATTERNS) {
|
|
345
|
+
if (pattern.test(command)) return reason;
|
|
346
|
+
}
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Registers background task tools (bg_bash, task_output, task_status, task_kill) and /bg command.
|
|
352
|
+
* @param pi - Extension API for registering tools and commands
|
|
353
|
+
*/
|
|
354
|
+
/** Details for inline background-task-complete messages. */
|
|
355
|
+
interface BgTaskCompleteDetails {
|
|
356
|
+
readonly taskId: string;
|
|
357
|
+
readonly command: string;
|
|
358
|
+
readonly exitCode: number | null;
|
|
359
|
+
readonly duration: string;
|
|
360
|
+
readonly preview: string[];
|
|
361
|
+
readonly status: "completed" | "failed" | "killed";
|
|
362
|
+
readonly timestamp: number;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export default function backgroundTasksExtension(pi: ExtensionAPI): void {
|
|
366
|
+
piEventsRef = pi.events;
|
|
367
|
+
piRef = pi;
|
|
368
|
+
|
|
369
|
+
// Register inline result renderer for fire-and-forget task completions
|
|
370
|
+
pi.registerMessageRenderer<BgTaskCompleteDetails>(
|
|
371
|
+
"background-task-complete",
|
|
372
|
+
(message, _options, theme) => {
|
|
373
|
+
const d = message.details;
|
|
374
|
+
if (!d) return undefined;
|
|
375
|
+
|
|
376
|
+
const icon =
|
|
377
|
+
d.status === "completed"
|
|
378
|
+
? theme.fg("success", getIcon("success"))
|
|
379
|
+
: theme.fg("error", getIcon("error"));
|
|
380
|
+
const label = d.status === "completed" ? "completed" : d.status;
|
|
381
|
+
|
|
382
|
+
let text = `${icon} ${theme.fg("muted", "⚙ Task")} ${theme.fg("accent", d.taskId)} ${theme.fg("muted", label)} ${theme.fg("dim", `(exit ${d.exitCode ?? "?"}, ${d.duration})`)}`;
|
|
383
|
+
|
|
384
|
+
if (d.preview.length > 0) {
|
|
385
|
+
for (const line of d.preview) {
|
|
386
|
+
text += `\n ${theme.fg("dim", line)}`;
|
|
387
|
+
}
|
|
388
|
+
} else {
|
|
389
|
+
text += `\n ${theme.fg("dim", "(no output)")}`;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
text += `\n ${theme.fg("muted", `Use task_output("${d.taskId}") to view full output`)}`;
|
|
393
|
+
|
|
394
|
+
return new Text(text, 0, 0);
|
|
395
|
+
}
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Post an inline notification when a fire-and-forget task completes.
|
|
400
|
+
*
|
|
401
|
+
* Checks the inlineAgentResults setting before posting.
|
|
402
|
+
* Only fires for fire-and-forget tasks (background: true).
|
|
403
|
+
*
|
|
404
|
+
* @param task - Completed background task
|
|
405
|
+
* @returns void
|
|
406
|
+
*/
|
|
407
|
+
function postInlineResult(task: BackgroundTask): void {
|
|
408
|
+
if (!piRef || !isInlineResultsEnabled()) return;
|
|
409
|
+
// Skip killed tasks
|
|
410
|
+
if (task.status === "killed") return;
|
|
411
|
+
|
|
412
|
+
const duration = formatDuration((task.endTime ?? Date.now()) - task.startTime);
|
|
413
|
+
const output = task.output.join("");
|
|
414
|
+
const preview = extractPreview(output, 3, 80);
|
|
415
|
+
|
|
416
|
+
piRef.sendMessage({
|
|
417
|
+
customType: "background-task-complete",
|
|
418
|
+
content: `Task ${task.id} ${task.status} (${duration})`,
|
|
419
|
+
display: true,
|
|
420
|
+
details: {
|
|
421
|
+
taskId: task.id,
|
|
422
|
+
command: task.command,
|
|
423
|
+
exitCode: task.exitCode ?? null,
|
|
424
|
+
duration,
|
|
425
|
+
preview,
|
|
426
|
+
status: task.status as "completed" | "failed",
|
|
427
|
+
timestamp: Date.now(),
|
|
428
|
+
} satisfies BgTaskCompleteDetails,
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Updates the status bar indicator for running background tasks.
|
|
434
|
+
* @param ctx - Extension context for UI access
|
|
435
|
+
*/
|
|
436
|
+
function updateWidget(ctx: ExtensionContext): void {
|
|
437
|
+
// Guard: ctx.ui may be undefined if context is stale (e.g., from async callback after shutdown)
|
|
438
|
+
if (!ctx?.ui) return;
|
|
439
|
+
|
|
440
|
+
const running = [...tasks.values()].filter((t) => t.status === "running");
|
|
441
|
+
|
|
442
|
+
if (running.length === 0) {
|
|
443
|
+
ctx.ui.setStatus("bg-tasks", undefined);
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// Status bar only - widget is rendered by tasks extension
|
|
448
|
+
ctx.ui.setStatus("bg-tasks", `${FG_PURPLE}⚙ ${running.length} bg${RESET_ALL}`);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Sync background-task state to both local UI and cross-extension event consumers.
|
|
453
|
+
*
|
|
454
|
+
* @param ctx - Extension context for widget updates
|
|
455
|
+
* @returns void
|
|
456
|
+
*/
|
|
457
|
+
function syncTaskState(ctx: ExtensionContext): void {
|
|
458
|
+
updateWidget(ctx);
|
|
459
|
+
publishBackgroundTaskSnapshot(pi.events);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
interopStateRequestCleanup?.();
|
|
463
|
+
interopStateRequestCleanup = onInteropEvent(pi.events, INTEROP_EVENT_NAMES.stateRequest, () => {
|
|
464
|
+
publishBackgroundTaskSnapshot(pi.events);
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
// Expose promoteToBackground to other extensions via event bus.
|
|
468
|
+
// This avoids cross-extension static imports that break under jiti's
|
|
469
|
+
// moduleCache:false (each extension gets its own module instance).
|
|
470
|
+
const publishPromoteApi = () => {
|
|
471
|
+
pi.events.emit(INTEROP_API_CHANNELS.promoteToBackgroundApi, { promote: promoteToBackground });
|
|
472
|
+
};
|
|
473
|
+
publishPromoteApi();
|
|
474
|
+
pi.events.on(INTEROP_API_CHANNELS.promoteToBackgroundApiRequest, publishPromoteApi);
|
|
475
|
+
|
|
476
|
+
// Tool: Run bash in background
|
|
477
|
+
pi.registerTool({
|
|
478
|
+
name: "bg_bash",
|
|
479
|
+
label: "bg_bash",
|
|
480
|
+
description:
|
|
481
|
+
"Run a bash command in the background. By default, streams live output and waits for completion. Set background=true for fire-and-forget daemons/servers.\n\nWHEN TO USE:\n- Starting daemons or servers (with background: true)\n- Long-running builds or tests (default: streams output)\n- Any process you want to run independently\n\nWARNING: Never use bash tool with & to background processes - it will hang. Use bg_bash instead.",
|
|
482
|
+
parameters: Type.Object({
|
|
483
|
+
command: Type.String({
|
|
484
|
+
description: "Bash command to run in background",
|
|
485
|
+
}),
|
|
486
|
+
timeout: Type.Optional(
|
|
487
|
+
Type.Number({
|
|
488
|
+
description: "Timeout in seconds (optional, default: no timeout)",
|
|
489
|
+
})
|
|
490
|
+
),
|
|
491
|
+
background: Type.Optional(
|
|
492
|
+
Type.Boolean({
|
|
493
|
+
description:
|
|
494
|
+
"If true, return immediately without streaming output. Use for daemons/servers.",
|
|
495
|
+
})
|
|
496
|
+
),
|
|
497
|
+
}),
|
|
498
|
+
async execute(_toolCallId, params, signal, onUpdate, ctx) {
|
|
499
|
+
const taskId = generateTaskId();
|
|
500
|
+
const cwd = ctx.cwd;
|
|
501
|
+
const fireAndForget = params.background === true;
|
|
502
|
+
|
|
503
|
+
const task: BackgroundTask = {
|
|
504
|
+
id: taskId,
|
|
505
|
+
command: params.command,
|
|
506
|
+
cwd,
|
|
507
|
+
startTime: Date.now(),
|
|
508
|
+
output: [],
|
|
509
|
+
outputBytes: 0,
|
|
510
|
+
process: null,
|
|
511
|
+
status: "running",
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
// Spawn the process
|
|
515
|
+
const shell = process.env.SHELL || "/bin/bash";
|
|
516
|
+
const child = spawn(shell, ["-c", params.command], {
|
|
517
|
+
cwd,
|
|
518
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
519
|
+
detached: true,
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
task.process = child;
|
|
523
|
+
tasks.set(taskId, task);
|
|
524
|
+
cleanupOldTasks();
|
|
525
|
+
|
|
526
|
+
// Track PID for orphan cleanup if parent is killed (SIGKILL, OOM, crash)
|
|
527
|
+
if (child.pid != null) {
|
|
528
|
+
registerPid(child.pid, params.command);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// Buffer output (and stream if not fire-and-forget)
|
|
532
|
+
const onData = (data: Buffer) => {
|
|
533
|
+
// Guard: ignore data arriving after task is no longer running
|
|
534
|
+
if (task.status !== "running") return;
|
|
535
|
+
|
|
536
|
+
if (task.outputBytes < MAX_OUTPUT_BYTES) {
|
|
537
|
+
const text = data.toString();
|
|
538
|
+
task.output.push(text);
|
|
539
|
+
task.outputBytes += data.length;
|
|
540
|
+
|
|
541
|
+
if (task.outputBytes >= MAX_OUTPUT_BYTES) {
|
|
542
|
+
task.output.push("\n[Output truncated - max buffer size reached]\n");
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// Stream live updates to the TUI
|
|
547
|
+
if (!fireAndForget) {
|
|
548
|
+
const output = task.output.join("");
|
|
549
|
+
onUpdate?.({
|
|
550
|
+
content: [{ type: "text", text: output || "(no output yet)" }],
|
|
551
|
+
details: { taskId },
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
child.stdout?.on("data", onData);
|
|
557
|
+
child.stderr?.on("data", onData);
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Remove onData listeners from child streams to prevent leaks
|
|
561
|
+
* in long sessions with many background tasks.
|
|
562
|
+
*/
|
|
563
|
+
const cleanupStreams = () => {
|
|
564
|
+
child.stdout?.removeListener("data", onData);
|
|
565
|
+
child.stderr?.removeListener("data", onData);
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
// Handle timeout
|
|
569
|
+
if (params.timeout && params.timeout > 0) {
|
|
570
|
+
setTimeout(() => {
|
|
571
|
+
if (task.status === "running" && task.process) {
|
|
572
|
+
task.process.kill("SIGTERM");
|
|
573
|
+
task.status = "killed";
|
|
574
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
575
|
+
task.output.push(`\n[Killed: timeout after ${params.timeout}s]\n`);
|
|
576
|
+
syncTaskState(ctx);
|
|
577
|
+
}
|
|
578
|
+
}, params.timeout * 1000);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// Fire-and-forget: return immediately
|
|
582
|
+
if (fireAndForget) {
|
|
583
|
+
// Handle completion in background
|
|
584
|
+
child.on("close", (code) => {
|
|
585
|
+
cleanupStreams();
|
|
586
|
+
task.endTime = Date.now();
|
|
587
|
+
task.exitCode = code;
|
|
588
|
+
task.status = code === 0 ? "completed" : "failed";
|
|
589
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
590
|
+
task.process = null;
|
|
591
|
+
syncTaskState(ctx);
|
|
592
|
+
postInlineResult(task);
|
|
593
|
+
});
|
|
594
|
+
child.on("error", (err) => {
|
|
595
|
+
cleanupStreams();
|
|
596
|
+
task.endTime = Date.now();
|
|
597
|
+
task.status = "failed";
|
|
598
|
+
task.output.push(`\nError: ${err.message}\n`);
|
|
599
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
600
|
+
task.process = null;
|
|
601
|
+
syncTaskState(ctx);
|
|
602
|
+
postInlineResult(task);
|
|
603
|
+
});
|
|
604
|
+
child.unref();
|
|
605
|
+
syncTaskState(ctx);
|
|
606
|
+
|
|
607
|
+
return {
|
|
608
|
+
details: { taskId, command: params.command, fireAndForget: true },
|
|
609
|
+
content: [
|
|
610
|
+
{
|
|
611
|
+
type: "text",
|
|
612
|
+
text: `Background task started (fire-and-forget).\nTask ID: ${taskId}\nCommand: ${params.command}\nUse task_output("${taskId}") to check later.`,
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// Streaming mode: wait for process to complete
|
|
619
|
+
syncTaskState(ctx);
|
|
620
|
+
|
|
621
|
+
const result = await new Promise<{
|
|
622
|
+
exitCode: number | null;
|
|
623
|
+
error?: string;
|
|
624
|
+
}>((resolve) => {
|
|
625
|
+
child.on("close", (code) => {
|
|
626
|
+
cleanupStreams();
|
|
627
|
+
task.endTime = Date.now();
|
|
628
|
+
task.exitCode = code;
|
|
629
|
+
task.status = code === 0 ? "completed" : "failed";
|
|
630
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
631
|
+
task.process = null;
|
|
632
|
+
syncTaskState(ctx);
|
|
633
|
+
resolve({ exitCode: code });
|
|
634
|
+
});
|
|
635
|
+
child.on("error", (err) => {
|
|
636
|
+
cleanupStreams();
|
|
637
|
+
task.endTime = Date.now();
|
|
638
|
+
task.status = "failed";
|
|
639
|
+
task.output.push(`\nError: ${err.message}\n`);
|
|
640
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
641
|
+
task.process = null;
|
|
642
|
+
syncTaskState(ctx);
|
|
643
|
+
resolve({ exitCode: null, error: err.message });
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
// Kill on abort signal (e.g., user presses Escape)
|
|
647
|
+
signal?.addEventListener("abort", () => {
|
|
648
|
+
if (task.status === "running" && task.process) {
|
|
649
|
+
task.process.kill("SIGTERM");
|
|
650
|
+
task.status = "killed";
|
|
651
|
+
task.endTime = Date.now();
|
|
652
|
+
if (child.pid != null) unregisterPid(child.pid);
|
|
653
|
+
task.output.push("\n[Killed: aborted by user]\n");
|
|
654
|
+
syncTaskState(ctx);
|
|
655
|
+
resolve({ exitCode: null, error: "Aborted" });
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
// Stop and clean up the persistent Loader for this task
|
|
661
|
+
const loader = activeLoaders.get(taskId);
|
|
662
|
+
if (loader) {
|
|
663
|
+
loader.stop();
|
|
664
|
+
activeLoaders.delete(taskId);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const output = task.output.join("");
|
|
668
|
+
const duration = formatDuration((task.endTime || Date.now()) - task.startTime);
|
|
669
|
+
|
|
670
|
+
return {
|
|
671
|
+
details: {
|
|
672
|
+
taskId,
|
|
673
|
+
command: params.command,
|
|
674
|
+
status: task.status,
|
|
675
|
+
duration,
|
|
676
|
+
exitCode: result.exitCode,
|
|
677
|
+
output,
|
|
678
|
+
},
|
|
679
|
+
content: [
|
|
680
|
+
{
|
|
681
|
+
type: "text",
|
|
682
|
+
text: output || "(no output)",
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
};
|
|
686
|
+
},
|
|
687
|
+
|
|
688
|
+
renderCall(args, theme) {
|
|
689
|
+
const cmd = truncateCommand(args.command as string, 60);
|
|
690
|
+
const bg = args.background ? theme.fg("dim", " (detached)") : "";
|
|
691
|
+
return new Text(
|
|
692
|
+
theme.fg("toolTitle", theme.bold("bg_bash ")) + theme.fg("muted", cmd) + bg,
|
|
693
|
+
0,
|
|
694
|
+
0
|
|
695
|
+
);
|
|
696
|
+
},
|
|
697
|
+
|
|
698
|
+
renderResult(result, { expanded, isPartial }, theme) {
|
|
699
|
+
const details = result.details as { fireAndForget?: boolean; taskId?: string } | undefined;
|
|
700
|
+
|
|
701
|
+
// Fire-and-forget: compact one-liner
|
|
702
|
+
if (details?.fireAndForget) {
|
|
703
|
+
return new Text(theme.fg("success", "⚙ Started (detached)"), 0, 0);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
const COLLAPSED_LINES = 10;
|
|
707
|
+
const EXPANDED_LINES = 50;
|
|
708
|
+
|
|
709
|
+
// Extract output (available during streaming via onUpdate and after completion)
|
|
710
|
+
const text = result.content[0];
|
|
711
|
+
const output = text?.type === "text" ? text.text : "";
|
|
712
|
+
|
|
713
|
+
// While running: show streamed output + loader spinner at bottom
|
|
714
|
+
if (isPartial) {
|
|
715
|
+
const container = new Container();
|
|
716
|
+
|
|
717
|
+
if (output) {
|
|
718
|
+
const allLines = output.split("\n").filter((l: string) => l.length > 0);
|
|
719
|
+
const maxLines = COLLAPSED_LINES;
|
|
720
|
+
const truncated = allLines.length > maxLines;
|
|
721
|
+
const tail = truncated ? allLines.slice(-maxLines) : allLines;
|
|
722
|
+
|
|
723
|
+
let rendered = "";
|
|
724
|
+
if (truncated) {
|
|
725
|
+
rendered += `${theme.fg("dim", `... ${allLines.length - maxLines} more lines above`)}\n`;
|
|
726
|
+
}
|
|
727
|
+
for (let i = 0; i < tail.length; i++) {
|
|
728
|
+
rendered += theme.fg("muted", tail[i]);
|
|
729
|
+
if (i < tail.length - 1) rendered += "\n";
|
|
730
|
+
}
|
|
731
|
+
container.addChild(new Text(rendered, 0, 0));
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
// Reuse persistent Loader (one per task, avoids leaking intervals)
|
|
735
|
+
const tid = details?.taskId ?? "__bg_default";
|
|
736
|
+
let loader = activeLoaders.get(tid);
|
|
737
|
+
if (!loader && tuiRef) {
|
|
738
|
+
loader = new Loader(
|
|
739
|
+
tuiRef,
|
|
740
|
+
(s) => theme.fg("warning", s),
|
|
741
|
+
(s) => theme.fg("muted", s),
|
|
742
|
+
"Running..."
|
|
743
|
+
);
|
|
744
|
+
(loader as unknown as Record<string, string[]>).frames = getSpinner();
|
|
745
|
+
activeLoaders.set(tid, loader);
|
|
746
|
+
}
|
|
747
|
+
if (loader) {
|
|
748
|
+
container.addChild(loader);
|
|
749
|
+
} else {
|
|
750
|
+
container.addChild(new Text(theme.fg("bashMode", "Running..."), 0, 0));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
return container;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Completed: show output
|
|
757
|
+
if (!output) return new Text(theme.fg("dim", "(no output)"), 0, 0);
|
|
758
|
+
|
|
759
|
+
const allLines = output.split("\n").filter((l: string) => l.length > 0);
|
|
760
|
+
const maxLines = expanded ? EXPANDED_LINES : COLLAPSED_LINES;
|
|
761
|
+
const truncated = allLines.length > maxLines;
|
|
762
|
+
const tail = truncated ? allLines.slice(-maxLines) : allLines;
|
|
763
|
+
|
|
764
|
+
let rendered = "";
|
|
765
|
+
if (truncated) {
|
|
766
|
+
rendered += `${theme.fg("dim", `... ${allLines.length - maxLines} more lines above`)}\n`;
|
|
767
|
+
}
|
|
768
|
+
for (let i = 0; i < tail.length; i++) {
|
|
769
|
+
rendered += theme.fg("toolOutput", tail[i]);
|
|
770
|
+
if (i < tail.length - 1) rendered += "\n";
|
|
771
|
+
}
|
|
772
|
+
if (truncated && !expanded) {
|
|
773
|
+
rendered += `\n${theme.fg("dim", `... ${allLines.length - maxLines} more lines`)} ${keyHint("expandTools", "to expand")}`;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
return new Text(rendered, 0, 0);
|
|
777
|
+
},
|
|
778
|
+
});
|
|
779
|
+
|
|
780
|
+
// Tool: Get task output
|
|
781
|
+
pi.registerTool({
|
|
782
|
+
name: "task_output",
|
|
783
|
+
label: "task_output",
|
|
784
|
+
description:
|
|
785
|
+
"Retrieve the output from a background task. Can be called while task is still running to get partial output.",
|
|
786
|
+
parameters: Type.Object({
|
|
787
|
+
taskId: Type.String({ description: "Task ID returned by bg_bash" }),
|
|
788
|
+
tail: Type.Optional(Type.Number({ description: "Only return last N lines (optional)" })),
|
|
789
|
+
}),
|
|
790
|
+
async execute(_toolCallId, params, _signal, _onUpdate, _ctx) {
|
|
791
|
+
const task = tasks.get(params.taskId);
|
|
792
|
+
|
|
793
|
+
if (!task) {
|
|
794
|
+
return {
|
|
795
|
+
details: { error: true },
|
|
796
|
+
content: [
|
|
797
|
+
{
|
|
798
|
+
type: "text",
|
|
799
|
+
text: `Task not found: ${params.taskId}\n\nAvailable tasks:\n${[...tasks.keys()].join("\n") || "(none)"}`,
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
let output = task.output.join("");
|
|
806
|
+
|
|
807
|
+
if (params.tail && params.tail > 0) {
|
|
808
|
+
const lines = output.split("\n");
|
|
809
|
+
output = lines.slice(-params.tail).join("\n");
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
const duration = formatDuration((task.endTime || Date.now()) - task.startTime);
|
|
813
|
+
const statusLine =
|
|
814
|
+
task.status === "running"
|
|
815
|
+
? `Status: running (${duration})`
|
|
816
|
+
: `Status: ${task.status} (exit code: ${task.exitCode}, duration: ${duration})`;
|
|
817
|
+
|
|
818
|
+
return {
|
|
819
|
+
details: {
|
|
820
|
+
taskId: params.taskId,
|
|
821
|
+
command: task.command,
|
|
822
|
+
status: task.status,
|
|
823
|
+
exitCode: task.exitCode,
|
|
824
|
+
duration,
|
|
825
|
+
outputLines: output.split("\n").length,
|
|
826
|
+
outputBytes: task.outputBytes,
|
|
827
|
+
output,
|
|
828
|
+
},
|
|
829
|
+
content: [
|
|
830
|
+
{
|
|
831
|
+
type: "text",
|
|
832
|
+
text: `Task: ${params.taskId}\nCommand: ${task.command}\n${statusLine}\n\n--- Output ---\n${output || "(no output yet)"}`,
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
};
|
|
836
|
+
},
|
|
837
|
+
|
|
838
|
+
renderCall(args, theme) {
|
|
839
|
+
const taskId = args.taskId as string;
|
|
840
|
+
const task = tasks.get(taskId);
|
|
841
|
+
const cmd = task ? truncateCommand(task.command, 40) : "";
|
|
842
|
+
let text = theme.fg("toolTitle", theme.bold("task_output ")) + theme.fg("accent", taskId);
|
|
843
|
+
if (cmd) text += theme.fg("dim", ` ${cmd}`);
|
|
844
|
+
return new Text(text, 0, 0);
|
|
845
|
+
},
|
|
846
|
+
|
|
847
|
+
renderResult(result, { expanded }, theme) {
|
|
848
|
+
const COLLAPSED_LINES = 10;
|
|
849
|
+
const EXPANDED_LINES = 50;
|
|
850
|
+
|
|
851
|
+
const details = result.details as
|
|
852
|
+
| {
|
|
853
|
+
taskId?: string;
|
|
854
|
+
command?: string;
|
|
855
|
+
status?: string;
|
|
856
|
+
exitCode?: number | null;
|
|
857
|
+
duration?: string;
|
|
858
|
+
outputLines?: number;
|
|
859
|
+
outputBytes?: number;
|
|
860
|
+
output?: string;
|
|
861
|
+
error?: boolean;
|
|
862
|
+
}
|
|
863
|
+
| undefined;
|
|
864
|
+
|
|
865
|
+
// Error case — show full text
|
|
866
|
+
if (details?.error) {
|
|
867
|
+
const text = result.content[0];
|
|
868
|
+
return new Text(theme.fg("error", text?.type === "text" ? text.text : "Error"), 0, 0);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
const status = details?.status ?? "unknown";
|
|
872
|
+
const duration = details?.duration ?? "";
|
|
873
|
+
|
|
874
|
+
// Status icon
|
|
875
|
+
let icon: string;
|
|
876
|
+
let statusColor: "success" | "warning" | "error" | "accent";
|
|
877
|
+
switch (status) {
|
|
878
|
+
case "running":
|
|
879
|
+
icon = getIcon("in_progress");
|
|
880
|
+
statusColor = "accent";
|
|
881
|
+
break;
|
|
882
|
+
case "completed":
|
|
883
|
+
icon = getIcon("success");
|
|
884
|
+
statusColor = "success";
|
|
885
|
+
break;
|
|
886
|
+
default:
|
|
887
|
+
icon = getIcon("error");
|
|
888
|
+
statusColor = "error";
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
// Header line
|
|
892
|
+
let text = theme.fg(statusColor, `${icon} ${status}`) + theme.fg("muted", ` (${duration})`);
|
|
893
|
+
|
|
894
|
+
// Show output tail (always — collapsed=10 lines, expanded=50)
|
|
895
|
+
if (details?.output) {
|
|
896
|
+
const allLines = details.output.split("\n").filter((l) => l.length > 0);
|
|
897
|
+
const maxLines = expanded ? EXPANDED_LINES : COLLAPSED_LINES;
|
|
898
|
+
const truncated = allLines.length > maxLines;
|
|
899
|
+
const tail = truncated ? allLines.slice(-maxLines) : allLines;
|
|
900
|
+
|
|
901
|
+
if (truncated) {
|
|
902
|
+
text += `\n${theme.fg("dim", ` ... ${allLines.length - maxLines} more lines above`)}`;
|
|
903
|
+
}
|
|
904
|
+
for (const line of tail) {
|
|
905
|
+
text += `\n${theme.fg("dim", ` ${line}`)}`;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
if (!expanded && truncated) {
|
|
909
|
+
text += `\n${keyHint("expandTools", "to show more")}`;
|
|
910
|
+
}
|
|
911
|
+
} else {
|
|
912
|
+
text += theme.fg("dim", " (no output yet)");
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
return new Text(text, 0, 0);
|
|
916
|
+
},
|
|
917
|
+
});
|
|
918
|
+
|
|
919
|
+
// Tool: Check task status
|
|
920
|
+
pi.registerTool({
|
|
921
|
+
name: "task_status",
|
|
922
|
+
label: "task_status",
|
|
923
|
+
description: "Check if a background task is still running or has completed.",
|
|
924
|
+
parameters: Type.Object({
|
|
925
|
+
taskId: Type.String({ description: "Task ID returned by bg_bash" }),
|
|
926
|
+
}),
|
|
927
|
+
async execute(_toolCallId, params, _signal, _onUpdate, _ctx) {
|
|
928
|
+
const task = tasks.get(params.taskId);
|
|
929
|
+
|
|
930
|
+
if (!task) {
|
|
931
|
+
return {
|
|
932
|
+
details: { error: true },
|
|
933
|
+
content: [
|
|
934
|
+
{
|
|
935
|
+
type: "text",
|
|
936
|
+
text: `Task not found: ${params.taskId}`,
|
|
937
|
+
},
|
|
938
|
+
],
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
const duration = formatDuration((task.endTime || Date.now()) - task.startTime);
|
|
943
|
+
|
|
944
|
+
return {
|
|
945
|
+
details: {
|
|
946
|
+
taskId: task.id,
|
|
947
|
+
status: task.status,
|
|
948
|
+
exitCode: task.exitCode,
|
|
949
|
+
duration,
|
|
950
|
+
},
|
|
951
|
+
content: [
|
|
952
|
+
{
|
|
953
|
+
type: "text",
|
|
954
|
+
text: JSON.stringify(
|
|
955
|
+
{
|
|
956
|
+
taskId: task.id,
|
|
957
|
+
command: task.command,
|
|
958
|
+
status: task.status,
|
|
959
|
+
exitCode: task.exitCode,
|
|
960
|
+
duration,
|
|
961
|
+
outputBytes: task.outputBytes,
|
|
962
|
+
},
|
|
963
|
+
null,
|
|
964
|
+
2
|
|
965
|
+
),
|
|
966
|
+
},
|
|
967
|
+
],
|
|
968
|
+
};
|
|
969
|
+
},
|
|
970
|
+
|
|
971
|
+
renderCall(args, theme) {
|
|
972
|
+
return new Text(
|
|
973
|
+
theme.fg("toolTitle", theme.bold("task_status ")) +
|
|
974
|
+
theme.fg("accent", args.taskId as string),
|
|
975
|
+
0,
|
|
976
|
+
0
|
|
977
|
+
);
|
|
978
|
+
},
|
|
979
|
+
|
|
980
|
+
renderResult(result, _options, theme) {
|
|
981
|
+
const details = result.details as
|
|
982
|
+
| { status?: string; duration?: string; error?: boolean }
|
|
983
|
+
| undefined;
|
|
984
|
+
if (details?.error) {
|
|
985
|
+
const text = result.content[0];
|
|
986
|
+
return new Text(theme.fg("error", text?.type === "text" ? text.text : "Not found"), 0, 0);
|
|
987
|
+
}
|
|
988
|
+
const status = details?.status ?? "unknown";
|
|
989
|
+
const duration = details?.duration ?? "";
|
|
990
|
+
const icon =
|
|
991
|
+
status === "running"
|
|
992
|
+
? getIcon("in_progress")
|
|
993
|
+
: status === "completed"
|
|
994
|
+
? getIcon("success")
|
|
995
|
+
: getIcon("error");
|
|
996
|
+
const color: "success" | "accent" | "error" =
|
|
997
|
+
status === "completed" ? "success" : status === "running" ? "accent" : "error";
|
|
998
|
+
return new Text(
|
|
999
|
+
theme.fg(color, `${icon} ${status}`) + theme.fg("muted", ` (${duration})`),
|
|
1000
|
+
0,
|
|
1001
|
+
0
|
|
1002
|
+
);
|
|
1003
|
+
},
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
// Tool: Kill a background task
|
|
1007
|
+
pi.registerTool({
|
|
1008
|
+
name: "task_kill",
|
|
1009
|
+
label: "task_kill",
|
|
1010
|
+
description: "Kill a running background task.",
|
|
1011
|
+
parameters: Type.Object({
|
|
1012
|
+
taskId: Type.String({ description: "Task ID to kill" }),
|
|
1013
|
+
}),
|
|
1014
|
+
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
1015
|
+
const task = tasks.get(params.taskId);
|
|
1016
|
+
|
|
1017
|
+
if (!task) {
|
|
1018
|
+
return {
|
|
1019
|
+
details: { error: true },
|
|
1020
|
+
content: [{ type: "text", text: `Task not found: ${params.taskId}` }],
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
if (task.status !== "running") {
|
|
1025
|
+
return {
|
|
1026
|
+
details: { error: true },
|
|
1027
|
+
content: [
|
|
1028
|
+
{
|
|
1029
|
+
type: "text",
|
|
1030
|
+
text: `Task ${params.taskId} is not running (status: ${task.status})`,
|
|
1031
|
+
},
|
|
1032
|
+
],
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// Kill via ChildProcess (regular bg_bash) or AbortController (promoted from bash)
|
|
1037
|
+
if (task.process) {
|
|
1038
|
+
if (task.process.pid != null) unregisterPid(task.process.pid);
|
|
1039
|
+
task.process.kill("SIGTERM");
|
|
1040
|
+
} else {
|
|
1041
|
+
const abort = promotedAbortControllers.get(params.taskId);
|
|
1042
|
+
if (abort) {
|
|
1043
|
+
abort.abort();
|
|
1044
|
+
promotedAbortControllers.delete(params.taskId);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
task.status = "killed";
|
|
1048
|
+
task.endTime = Date.now();
|
|
1049
|
+
task.output.push("\n[Killed by user]\n");
|
|
1050
|
+
|
|
1051
|
+
syncTaskState(ctx);
|
|
1052
|
+
|
|
1053
|
+
return {
|
|
1054
|
+
details: { taskId: params.taskId, killed: true },
|
|
1055
|
+
content: [{ type: "text", text: `Killed task ${params.taskId}` }],
|
|
1056
|
+
};
|
|
1057
|
+
},
|
|
1058
|
+
|
|
1059
|
+
renderCall(args, theme) {
|
|
1060
|
+
return new Text(
|
|
1061
|
+
theme.fg("toolTitle", theme.bold("task_kill ")) + theme.fg("error", args.taskId as string),
|
|
1062
|
+
0,
|
|
1063
|
+
0
|
|
1064
|
+
);
|
|
1065
|
+
},
|
|
1066
|
+
|
|
1067
|
+
renderResult(result, _options, theme) {
|
|
1068
|
+
const details = result.details as { killed?: boolean; error?: boolean } | undefined;
|
|
1069
|
+
if (details?.error) {
|
|
1070
|
+
const text = result.content[0];
|
|
1071
|
+
return new Text(theme.fg("error", text?.type === "text" ? text.text : "Error"), 0, 0);
|
|
1072
|
+
}
|
|
1073
|
+
return new Text(theme.fg("warning", `${getIcon("error")} Killed`), 0, 0);
|
|
1074
|
+
},
|
|
1075
|
+
});
|
|
1076
|
+
|
|
1077
|
+
// Command: /bg - List and manage background tasks with interactive viewer
|
|
1078
|
+
pi.registerCommand("bg", {
|
|
1079
|
+
description: "List and manage background tasks (interactive viewer)",
|
|
1080
|
+
handler: async (args, ctx) => {
|
|
1081
|
+
const parts = args.trim().split(/\s+/);
|
|
1082
|
+
const subcommand = parts[0]?.toLowerCase() || "";
|
|
1083
|
+
const rest = parts.slice(1).join(" ");
|
|
1084
|
+
|
|
1085
|
+
// Quick subcommands
|
|
1086
|
+
if (subcommand === "kill" && rest) {
|
|
1087
|
+
const task = tasks.get(rest);
|
|
1088
|
+
if (!task) {
|
|
1089
|
+
ctx.ui.notify(`Task not found: ${rest}`, "error");
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
if (task.status !== "running") {
|
|
1093
|
+
ctx.ui.notify(`Task ${rest} is not running`, "error");
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
if (task.process) {
|
|
1097
|
+
if (task.process.pid != null) unregisterPid(task.process.pid);
|
|
1098
|
+
task.process.kill("SIGTERM");
|
|
1099
|
+
} else {
|
|
1100
|
+
const abort = promotedAbortControllers.get(rest);
|
|
1101
|
+
if (abort) {
|
|
1102
|
+
abort.abort();
|
|
1103
|
+
promotedAbortControllers.delete(rest);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
task.status = "killed";
|
|
1107
|
+
task.endTime = Date.now();
|
|
1108
|
+
syncTaskState(ctx);
|
|
1109
|
+
ctx.ui.notify(`Killed task ${rest}`, "info");
|
|
1110
|
+
return;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
if (subcommand === "clear") {
|
|
1114
|
+
const completed = [...tasks.entries()].filter(([_, t]) => t.status !== "running");
|
|
1115
|
+
for (const [id] of completed) {
|
|
1116
|
+
tasks.delete(id);
|
|
1117
|
+
}
|
|
1118
|
+
syncTaskState(ctx);
|
|
1119
|
+
ctx.ui.notify(`Cleared ${completed.length} completed tasks`, "info");
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// No tasks? Show message
|
|
1124
|
+
if (tasks.size === 0) {
|
|
1125
|
+
ctx.ui.notify(
|
|
1126
|
+
"No background tasks.\n\n" +
|
|
1127
|
+
"To run a command in background, ask the agent to use bg_bash,\n" +
|
|
1128
|
+
"or say 'run [command] in the background'.",
|
|
1129
|
+
"info"
|
|
1130
|
+
);
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
// Hide the widget and status BEFORE opening the viewer (avoid duplication)
|
|
1135
|
+
ctx.ui.setWidget("bg-tasks", undefined);
|
|
1136
|
+
ctx.ui.setStatus("bg-tasks", undefined);
|
|
1137
|
+
|
|
1138
|
+
// Interactive task viewer
|
|
1139
|
+
await ctx.ui.custom<void>((tui, theme, _kb, done) => {
|
|
1140
|
+
type ViewMode = "list" | "output";
|
|
1141
|
+
let mode: ViewMode = "list";
|
|
1142
|
+
let selectedIndex = 0;
|
|
1143
|
+
let selectedTaskId: string | null = null;
|
|
1144
|
+
let scrollOffset = 0;
|
|
1145
|
+
let cachedLines: string[] | undefined;
|
|
1146
|
+
let refreshInterval: NodeJS.Timeout | null = null;
|
|
1147
|
+
|
|
1148
|
+
// Start auto-refresh for live output
|
|
1149
|
+
refreshInterval = setInterval(() => {
|
|
1150
|
+
cachedLines = undefined;
|
|
1151
|
+
tui.requestRender();
|
|
1152
|
+
}, 500);
|
|
1153
|
+
|
|
1154
|
+
function getTaskList(): BackgroundTask[] {
|
|
1155
|
+
return [...tasks.values()].sort((a, b) => b.startTime - a.startTime);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
function refresh() {
|
|
1159
|
+
cachedLines = undefined;
|
|
1160
|
+
tui.requestRender();
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function cleanup() {
|
|
1164
|
+
if (refreshInterval) {
|
|
1165
|
+
clearInterval(refreshInterval);
|
|
1166
|
+
refreshInterval = null;
|
|
1167
|
+
}
|
|
1168
|
+
// Restore the widget when closing the viewer
|
|
1169
|
+
syncTaskState(ctx);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
function handleInput(data: string) {
|
|
1173
|
+
const taskList = getTaskList();
|
|
1174
|
+
|
|
1175
|
+
if (mode === "list") {
|
|
1176
|
+
// List mode navigation
|
|
1177
|
+
if (matchesKey(data, Key.up)) {
|
|
1178
|
+
selectedIndex = Math.max(0, selectedIndex - 1);
|
|
1179
|
+
refresh();
|
|
1180
|
+
return true;
|
|
1181
|
+
}
|
|
1182
|
+
if (matchesKey(data, Key.down)) {
|
|
1183
|
+
selectedIndex = Math.min(taskList.length - 1, selectedIndex + 1);
|
|
1184
|
+
refresh();
|
|
1185
|
+
return true;
|
|
1186
|
+
}
|
|
1187
|
+
if (matchesKey(data, Key.enter)) {
|
|
1188
|
+
if (taskList.length > 0) {
|
|
1189
|
+
selectedTaskId = taskList[selectedIndex].id;
|
|
1190
|
+
mode = "output";
|
|
1191
|
+
scrollOffset = 0;
|
|
1192
|
+
refresh();
|
|
1193
|
+
}
|
|
1194
|
+
return true;
|
|
1195
|
+
}
|
|
1196
|
+
if (matchesKey(data, Key.escape) || matchesKey(data, "q")) {
|
|
1197
|
+
cleanup();
|
|
1198
|
+
done();
|
|
1199
|
+
return true;
|
|
1200
|
+
}
|
|
1201
|
+
// Kill with 'k' or 'x'
|
|
1202
|
+
if ((data === "k" || data === "x") && taskList.length > 0) {
|
|
1203
|
+
const task = taskList[selectedIndex];
|
|
1204
|
+
if (task.status === "running") {
|
|
1205
|
+
if (task.process) {
|
|
1206
|
+
if (task.process.pid != null) unregisterPid(task.process.pid);
|
|
1207
|
+
task.process.kill("SIGTERM");
|
|
1208
|
+
} else {
|
|
1209
|
+
const abort = promotedAbortControllers.get(task.id);
|
|
1210
|
+
if (abort) {
|
|
1211
|
+
abort.abort();
|
|
1212
|
+
promotedAbortControllers.delete(task.id);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
task.status = "killed";
|
|
1216
|
+
task.endTime = Date.now();
|
|
1217
|
+
publishBackgroundTaskSnapshot(pi.events);
|
|
1218
|
+
refresh();
|
|
1219
|
+
}
|
|
1220
|
+
return true;
|
|
1221
|
+
}
|
|
1222
|
+
} else if (mode === "output") {
|
|
1223
|
+
// Output view navigation
|
|
1224
|
+
if (
|
|
1225
|
+
matchesKey(data, Key.escape) ||
|
|
1226
|
+
matchesKey(data, "q") ||
|
|
1227
|
+
matchesKey(data, Key.left)
|
|
1228
|
+
) {
|
|
1229
|
+
mode = "list";
|
|
1230
|
+
selectedTaskId = null;
|
|
1231
|
+
refresh();
|
|
1232
|
+
return true;
|
|
1233
|
+
}
|
|
1234
|
+
if (matchesKey(data, Key.up)) {
|
|
1235
|
+
scrollOffset = Math.max(0, scrollOffset - 1);
|
|
1236
|
+
refresh();
|
|
1237
|
+
return true;
|
|
1238
|
+
}
|
|
1239
|
+
if (matchesKey(data, Key.down)) {
|
|
1240
|
+
scrollOffset++;
|
|
1241
|
+
refresh();
|
|
1242
|
+
return true;
|
|
1243
|
+
}
|
|
1244
|
+
if (matchesKey(data, Key.pageUp)) {
|
|
1245
|
+
scrollOffset = Math.max(0, scrollOffset - 10);
|
|
1246
|
+
refresh();
|
|
1247
|
+
return true;
|
|
1248
|
+
}
|
|
1249
|
+
if (matchesKey(data, Key.pageDown)) {
|
|
1250
|
+
scrollOffset += 10;
|
|
1251
|
+
refresh();
|
|
1252
|
+
return true;
|
|
1253
|
+
}
|
|
1254
|
+
// Kill with 'k' or 'x'
|
|
1255
|
+
if ((data === "k" || data === "x") && selectedTaskId) {
|
|
1256
|
+
const task = tasks.get(selectedTaskId);
|
|
1257
|
+
if (task && task.status === "running") {
|
|
1258
|
+
if (task.process) {
|
|
1259
|
+
if (task.process.pid != null) unregisterPid(task.process.pid);
|
|
1260
|
+
task.process.kill("SIGTERM");
|
|
1261
|
+
} else {
|
|
1262
|
+
const abort = promotedAbortControllers.get(selectedTaskId);
|
|
1263
|
+
if (abort) {
|
|
1264
|
+
abort.abort();
|
|
1265
|
+
promotedAbortControllers.delete(selectedTaskId);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
task.status = "killed";
|
|
1269
|
+
task.endTime = Date.now();
|
|
1270
|
+
publishBackgroundTaskSnapshot(pi.events);
|
|
1271
|
+
refresh();
|
|
1272
|
+
}
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1275
|
+
// 'g' to go to top, 'G' to go to bottom
|
|
1276
|
+
if (data === "g") {
|
|
1277
|
+
scrollOffset = 0;
|
|
1278
|
+
refresh();
|
|
1279
|
+
return true;
|
|
1280
|
+
}
|
|
1281
|
+
if (data === "G") {
|
|
1282
|
+
scrollOffset = 99_999; // Will be clamped in render
|
|
1283
|
+
refresh();
|
|
1284
|
+
return true;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
return true;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
function render(width: number): string[] {
|
|
1291
|
+
if (cachedLines && cachedLines.length > 0) return cachedLines;
|
|
1292
|
+
|
|
1293
|
+
const rawLines: string[] = [];
|
|
1294
|
+
const height = tui.terminal.rows - 4; // Leave room for header/footer
|
|
1295
|
+
const taskList = getTaskList();
|
|
1296
|
+
|
|
1297
|
+
if (mode === "list") {
|
|
1298
|
+
// Header - light blue on dark blue bg
|
|
1299
|
+
rawLines.push(
|
|
1300
|
+
`${FG_PURPLE_MUTED}${theme.bold(" Background Tasks")} (${taskList.length})${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`
|
|
1301
|
+
);
|
|
1302
|
+
rawLines.push("");
|
|
1303
|
+
|
|
1304
|
+
// Task list - light colors for contrast on dark blue bg
|
|
1305
|
+
for (let i = 0; i < taskList.length; i++) {
|
|
1306
|
+
const task = taskList[i];
|
|
1307
|
+
const isSelected = i === selectedIndex;
|
|
1308
|
+
const duration = formatDuration((task.endTime || Date.now()) - task.startTime);
|
|
1309
|
+
|
|
1310
|
+
let statusIcon: string;
|
|
1311
|
+
let iconColor: string;
|
|
1312
|
+
switch (task.status) {
|
|
1313
|
+
case "running":
|
|
1314
|
+
statusIcon = getIcon("in_progress");
|
|
1315
|
+
iconColor = FG_PURPLE; // Light blue dot
|
|
1316
|
+
break;
|
|
1317
|
+
case "completed":
|
|
1318
|
+
statusIcon = getIcon("success");
|
|
1319
|
+
iconColor = FG_LIGHT_GREEN; // Light green
|
|
1320
|
+
break;
|
|
1321
|
+
case "killed":
|
|
1322
|
+
statusIcon = getIcon("error");
|
|
1323
|
+
iconColor = FG_LIGHT_RED; // Light red
|
|
1324
|
+
break;
|
|
1325
|
+
default:
|
|
1326
|
+
statusIcon = "!";
|
|
1327
|
+
iconColor = FG_LIGHT_RED;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
const prefix = isSelected
|
|
1331
|
+
? `${FG_PURPLE} > ${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`
|
|
1332
|
+
: " ";
|
|
1333
|
+
const icon = `${iconColor}${statusIcon}${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`;
|
|
1334
|
+
const cmd = truncateCommand(task.command, width - 30);
|
|
1335
|
+
const info = ` [${task.status}, ${duration}]`;
|
|
1336
|
+
|
|
1337
|
+
if (isSelected) {
|
|
1338
|
+
rawLines.push(
|
|
1339
|
+
`${prefix + icon} ${FG_PURPLE}${cmd}${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}${info}`
|
|
1340
|
+
);
|
|
1341
|
+
} else {
|
|
1342
|
+
rawLines.push(`${prefix + icon} ${cmd}${info}`);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
rawLines.push("");
|
|
1347
|
+
rawLines.push(" ↑↓ navigate • Enter view output • k kill • q close");
|
|
1348
|
+
} else if (mode === "output" && selectedTaskId) {
|
|
1349
|
+
const task = tasks.get(selectedTaskId);
|
|
1350
|
+
if (!task) {
|
|
1351
|
+
mode = "list";
|
|
1352
|
+
return render(width);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
const duration = formatDuration((task.endTime || Date.now()) - task.startTime);
|
|
1356
|
+
let statusText: string;
|
|
1357
|
+
switch (task.status) {
|
|
1358
|
+
case "running":
|
|
1359
|
+
statusText = `${FG_PURPLE}${getIcon("in_progress")} RUNNING${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`;
|
|
1360
|
+
break;
|
|
1361
|
+
case "completed":
|
|
1362
|
+
statusText = `${FG_LIGHT_GREEN}${getIcon("success")} COMPLETED${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`;
|
|
1363
|
+
break;
|
|
1364
|
+
case "killed":
|
|
1365
|
+
statusText = `${FG_LIGHT_RED}${getIcon("error")} KILLED${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`;
|
|
1366
|
+
break;
|
|
1367
|
+
default:
|
|
1368
|
+
statusText = `${FG_LIGHT_RED}! FAILED${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE}`;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
// Header - light blue on dark blue
|
|
1372
|
+
rawLines.push(
|
|
1373
|
+
`${FG_PURPLE}${theme.bold(" Task Output")}${RESET_ALL}${BG_DARK_GRAY}${FG_WHITE} ${statusText} (${duration})`
|
|
1374
|
+
);
|
|
1375
|
+
rawLines.push(` ${truncateCommand(task.command, width - 4)}`);
|
|
1376
|
+
rawLines.push("");
|
|
1377
|
+
|
|
1378
|
+
// Output content
|
|
1379
|
+
const outputText = task.output.join("");
|
|
1380
|
+
const outputLines = outputText.split("\n");
|
|
1381
|
+
|
|
1382
|
+
// Clamp scroll offset
|
|
1383
|
+
const maxScroll = Math.max(0, outputLines.length - (height - 8));
|
|
1384
|
+
scrollOffset = Math.min(scrollOffset, maxScroll);
|
|
1385
|
+
|
|
1386
|
+
const visibleLines = outputLines.slice(scrollOffset, scrollOffset + height - 8);
|
|
1387
|
+
|
|
1388
|
+
if (visibleLines.length === 0) {
|
|
1389
|
+
rawLines.push(" (no output yet)");
|
|
1390
|
+
} else {
|
|
1391
|
+
for (const line of visibleLines) {
|
|
1392
|
+
rawLines.push(` ${truncateToWidth(line, width - 2)}`);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
// Scroll indicator
|
|
1397
|
+
if (outputLines.length > height - 8) {
|
|
1398
|
+
const scrollPct = Math.round((scrollOffset / maxScroll) * 100);
|
|
1399
|
+
rawLines.push("");
|
|
1400
|
+
rawLines.push(
|
|
1401
|
+
` [${scrollOffset + 1}-${Math.min(scrollOffset + height - 8, outputLines.length)}/${outputLines.length}] ${scrollPct}%`
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
rawLines.push("");
|
|
1406
|
+
const killHint = task.status === "running" ? " • k kill" : "";
|
|
1407
|
+
rawLines.push(` Esc/q back • ↑↓ scroll • g/G top/bottom${killHint}`);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
// Apply dark blue background to all lines
|
|
1411
|
+
cachedLines = rawLines.map((line) => withDarkBlueBg(line, width));
|
|
1412
|
+
return cachedLines;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
return {
|
|
1416
|
+
render,
|
|
1417
|
+
invalidate: () => {
|
|
1418
|
+
cachedLines = undefined;
|
|
1419
|
+
},
|
|
1420
|
+
handleInput,
|
|
1421
|
+
};
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
// Force a full re-render to clean up stale content from the full-screen viewer.
|
|
1425
|
+
// showExtensionCustom only calls requestRender() (non-force) when restoring the editor,
|
|
1426
|
+
// which leaves stale lines on screen because clearOnShrink is off by default.
|
|
1427
|
+
tuiRef?.requestRender(true);
|
|
1428
|
+
syncTaskState(ctx);
|
|
1429
|
+
},
|
|
1430
|
+
});
|
|
1431
|
+
|
|
1432
|
+
// Command: /toggle-inline-results — Enable or disable inline completion notifications
|
|
1433
|
+
pi.registerCommand("toggle-inline-results", {
|
|
1434
|
+
description: "Toggle inline result notifications for background tasks and subagents",
|
|
1435
|
+
handler: async (_args, ctx) => {
|
|
1436
|
+
const settingsPath = path.join(os.homedir(), ".tallow", "settings.json");
|
|
1437
|
+
let settings: Record<string, unknown> = {};
|
|
1438
|
+
try {
|
|
1439
|
+
const raw = fs.readFileSync(settingsPath, "utf-8");
|
|
1440
|
+
settings = JSON.parse(raw) as Record<string, unknown>;
|
|
1441
|
+
} catch {
|
|
1442
|
+
/* no settings file yet */
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
const current = settings.inlineAgentResults !== false;
|
|
1446
|
+
settings.inlineAgentResults = !current;
|
|
1447
|
+
|
|
1448
|
+
fs.mkdirSync(path.dirname(settingsPath), { recursive: true });
|
|
1449
|
+
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, "\t"), "utf-8");
|
|
1450
|
+
|
|
1451
|
+
const state = settings.inlineAgentResults ? "enabled" : "disabled";
|
|
1452
|
+
ctx.ui.notify(`Inline agent results: ${state}`, "info");
|
|
1453
|
+
},
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
// Cleanup on session end
|
|
1457
|
+
pi.on("session_shutdown", async () => {
|
|
1458
|
+
// Kill all running tasks and unregister PIDs
|
|
1459
|
+
for (const task of tasks.values()) {
|
|
1460
|
+
if (task.status === "running") {
|
|
1461
|
+
if (task.process) {
|
|
1462
|
+
if (task.process.pid != null) unregisterPid(task.process.pid);
|
|
1463
|
+
task.process.kill("SIGTERM");
|
|
1464
|
+
} else {
|
|
1465
|
+
const abort = promotedAbortControllers.get(task.id);
|
|
1466
|
+
if (abort) abort.abort();
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
tasks.clear();
|
|
1471
|
+
promotedAbortControllers.clear();
|
|
1472
|
+
publishBackgroundTaskSnapshot(pi.events);
|
|
1473
|
+
interopStateRequestCleanup?.();
|
|
1474
|
+
interopStateRequestCleanup = undefined;
|
|
1475
|
+
});
|
|
1476
|
+
|
|
1477
|
+
// Capture TUI reference and update status on session start
|
|
1478
|
+
pi.on("session_start", async (_event, ctx) => {
|
|
1479
|
+
// Capture TUI via a throwaway widget so Loader can be used in renderResult
|
|
1480
|
+
ctx.ui.setWidget("bg-tasks-tui-capture", (tui, _theme) => {
|
|
1481
|
+
tuiRef = tui;
|
|
1482
|
+
return { render: () => [], invalidate: () => {} };
|
|
1483
|
+
});
|
|
1484
|
+
// Immediately remove — we just needed the reference
|
|
1485
|
+
ctx.ui.setWidget("bg-tasks-tui-capture", undefined);
|
|
1486
|
+
|
|
1487
|
+
ctx.ui.setStatus("bg-tasks", undefined);
|
|
1488
|
+
syncTaskState(ctx);
|
|
1489
|
+
});
|
|
1490
|
+
|
|
1491
|
+
// Register Ctrl+Shift+B shortcut for background tasks
|
|
1492
|
+
// Note: only works when TUI is idle, not during tool execution
|
|
1493
|
+
pi.registerShortcut(Key.ctrlShift("b"), {
|
|
1494
|
+
description: "Show background tasks (Note: use bg_bash tool to run commands in background)",
|
|
1495
|
+
handler: async (ctx) => {
|
|
1496
|
+
const running = [...tasks.values()].filter((t) => t.status === "running");
|
|
1497
|
+
|
|
1498
|
+
if (running.length === 0) {
|
|
1499
|
+
ctx.ui.notify(
|
|
1500
|
+
"No background tasks running.\n\n" +
|
|
1501
|
+
"To run a command in background, ask the agent to use the bg_bash tool,\n" +
|
|
1502
|
+
"or say 'run [command] in the background'.",
|
|
1503
|
+
"info"
|
|
1504
|
+
);
|
|
1505
|
+
} else {
|
|
1506
|
+
const lines = running.map((t) => {
|
|
1507
|
+
const duration = formatDuration(Date.now() - t.startTime);
|
|
1508
|
+
return `${getIcon("in_progress")} ${t.id}: ${truncateCommand(t.command, 40)} (${duration})`;
|
|
1509
|
+
});
|
|
1510
|
+
ctx.ui.notify(`Running Background Tasks:\n${lines.join("\n")}`, "info");
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1515
|
+
// Enforce shell policy for bg_bash tool calls — denies denylist hits outright
|
|
1516
|
+
// and prompts for confirmation on high-risk commands in interactive mode.
|
|
1517
|
+
pi.on("tool_call", async (event, ctx) => {
|
|
1518
|
+
if (event.toolName !== "bg_bash") return;
|
|
1519
|
+
|
|
1520
|
+
const command = (event.input as Record<string, unknown>).command as string | undefined;
|
|
1521
|
+
if (!command) return;
|
|
1522
|
+
|
|
1523
|
+
return enforceExplicitPolicy(command, "bg_bash", ctx.cwd, ctx.hasUI, (msg) =>
|
|
1524
|
+
ctx.ui.confirm("Shell Policy", msg)
|
|
1525
|
+
);
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
pi.on("tool_result", async (event, ctx) => {
|
|
1529
|
+
if (event.toolName !== "bg_bash") return;
|
|
1530
|
+
const command = (event.input as Record<string, unknown>).command;
|
|
1531
|
+
if (typeof command !== "string" || command.trim().length === 0) return;
|
|
1532
|
+
|
|
1533
|
+
const details = (
|
|
1534
|
+
event as unknown as { details?: { exitCode?: number | null; status?: string } }
|
|
1535
|
+
).details;
|
|
1536
|
+
recordAudit({
|
|
1537
|
+
timestamp: Date.now(),
|
|
1538
|
+
command: command.trim(),
|
|
1539
|
+
source: "bg_bash",
|
|
1540
|
+
trustLevel: "explicit",
|
|
1541
|
+
cwd: ctx.cwd,
|
|
1542
|
+
outcome: event.isError || details?.status === "failed" ? "failed" : "executed",
|
|
1543
|
+
exitCode: details?.exitCode ?? null,
|
|
1544
|
+
});
|
|
1545
|
+
});
|
|
1546
|
+
|
|
1547
|
+
// Intercept bash commands with & backgrounding and block them
|
|
1548
|
+
// This prevents the common mistake of using `bash &` which hangs forever
|
|
1549
|
+
pi.on("tool_call", async (event, _ctx) => {
|
|
1550
|
+
if (event.toolName !== "bash") return;
|
|
1551
|
+
|
|
1552
|
+
const command = event.input?.command as string | undefined;
|
|
1553
|
+
if (!command) return;
|
|
1554
|
+
|
|
1555
|
+
if (detectsBackgroundAmpersand(command)) {
|
|
1556
|
+
return {
|
|
1557
|
+
block: true,
|
|
1558
|
+
reason:
|
|
1559
|
+
"Cannot use & to background processes in bash - it will hang forever.\n" +
|
|
1560
|
+
"Use the bg_bash tool instead for background tasks.",
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
const hangReason = detectsHangPattern(command);
|
|
1565
|
+
if (hangReason) {
|
|
1566
|
+
return {
|
|
1567
|
+
block: true,
|
|
1568
|
+
reason: `This command is likely to hang: ${hangReason}\n\nUse bg_bash instead for commands that may not exit promptly.`,
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1572
|
+
}
|