omegon-pi 0.12.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/.gitattributes +3 -0
- package/.omegon/profile.json +7 -0
- package/AGENTS.md +16 -0
- package/ARCHIVE_NOTE.md +28 -0
- package/LICENSE +15 -0
- package/README.md +296 -0
- package/bin/omegon-pi.mjs +244 -0
- package/bin/pi.mjs +9 -0
- package/extensions/00-secrets/index.ts +1239 -0
- package/extensions/00-splash/index.ts +604 -0
- package/extensions/00-splash/logo.ts +246 -0
- package/extensions/01-auth/auth.ts +476 -0
- package/extensions/01-auth/index.ts +289 -0
- package/extensions/auto-compact.ts +42 -0
- package/extensions/bootstrap/deps.ts +451 -0
- package/extensions/bootstrap/index.ts +1123 -0
- package/extensions/chronos/chronos.ts +324 -0
- package/extensions/chronos/index.ts +127 -0
- package/extensions/cleave/assessment.ts +768 -0
- package/extensions/cleave/bridge.ts +31 -0
- package/extensions/cleave/conflicts.ts +250 -0
- package/extensions/cleave/dispatcher.ts +1367 -0
- package/extensions/cleave/guardrails.ts +426 -0
- package/extensions/cleave/index.ts +3114 -0
- package/extensions/cleave/lifecycle-emitter.ts +20 -0
- package/extensions/cleave/native-dispatch.ts +218 -0
- package/extensions/cleave/openspec.ts +811 -0
- package/extensions/cleave/planner.ts +260 -0
- package/extensions/cleave/review.ts +580 -0
- package/extensions/cleave/rpc-child.ts +269 -0
- package/extensions/cleave/skills.ts +355 -0
- package/extensions/cleave/subprocess-tracker.ts +205 -0
- package/extensions/cleave/types.ts +315 -0
- package/extensions/cleave/workspace.ts +865 -0
- package/extensions/cleave/worktree.ts +243 -0
- package/extensions/core-renderers.ts +193 -0
- package/extensions/dashboard/context-gauge.ts +58 -0
- package/extensions/dashboard/file-watch.ts +14 -0
- package/extensions/dashboard/footer.ts +1375 -0
- package/extensions/dashboard/git.ts +193 -0
- package/extensions/dashboard/index.ts +481 -0
- package/extensions/dashboard/memory-audit.ts +34 -0
- package/extensions/dashboard/overlay-data.ts +705 -0
- package/extensions/dashboard/overlay.ts +365 -0
- package/extensions/dashboard/render-utils.ts +54 -0
- package/extensions/dashboard/types.ts +206 -0
- package/extensions/dashboard/uri-helper.ts +45 -0
- package/extensions/defaults.ts +274 -0
- package/extensions/design-tree/dashboard-state.ts +161 -0
- package/extensions/design-tree/design-card.ts +362 -0
- package/extensions/design-tree/index.ts +2181 -0
- package/extensions/design-tree/lifecycle-emitter.ts +41 -0
- package/extensions/design-tree/tree.ts +1720 -0
- package/extensions/design-tree/types.ts +165 -0
- package/extensions/effort/index.ts +532 -0
- package/extensions/effort/tiers.ts +146 -0
- package/extensions/effort/types.ts +105 -0
- package/extensions/igor/client.ts +167 -0
- package/extensions/igor/context.ts +61 -0
- package/extensions/igor/index.ts +259 -0
- package/extensions/igor/intents.ts +78 -0
- package/extensions/lib/debug.ts +69 -0
- package/extensions/lib/git-state.ts +227 -0
- package/extensions/lib/local-models.ts +157 -0
- package/extensions/lib/model-preferences.ts +51 -0
- package/extensions/lib/model-routing.ts +992 -0
- package/extensions/lib/omegon-subprocess.ts +152 -0
- package/extensions/lib/operator-fallback.ts +205 -0
- package/extensions/lib/operator-profile.ts +360 -0
- package/extensions/lib/provider-env.ts +163 -0
- package/extensions/lib/sci-ui.ts +421 -0
- package/extensions/lib/shared-state.ts +174 -0
- package/extensions/lib/slash-command-bridge.ts +262 -0
- package/extensions/lib/splash-state.ts +25 -0
- package/extensions/lib/typebox-helpers.ts +16 -0
- package/extensions/lib/types.d.ts +9 -0
- package/extensions/local-inference/index.ts +727 -0
- package/extensions/mcp-bridge/README.md +220 -0
- package/extensions/mcp-bridge/index.ts +956 -0
- package/extensions/mcp-bridge/lib.ts +365 -0
- package/extensions/mcp-bridge/mcp.json +3 -0
- package/extensions/mcp-bridge/package.json +11 -0
- package/extensions/model-budget.ts +752 -0
- package/extensions/offline-driver.ts +410 -0
- package/extensions/openspec/archive-gate.ts +164 -0
- package/extensions/openspec/branch-cleanup.ts +64 -0
- package/extensions/openspec/dashboard-state.ts +50 -0
- package/extensions/openspec/index.ts +1942 -0
- package/extensions/openspec/lifecycle-emitter.ts +65 -0
- package/extensions/openspec/lifecycle-files.ts +120 -0
- package/extensions/openspec/lifecycle.ts +50 -0
- package/extensions/openspec/reconcile.ts +187 -0
- package/extensions/openspec/spec.ts +1392 -0
- package/extensions/openspec/types.ts +98 -0
- package/extensions/project-memory/DESIGN-global-mind.md +198 -0
- package/extensions/project-memory/README.md +204 -0
- package/extensions/project-memory/api-types.ts +382 -0
- package/extensions/project-memory/compaction-policy.ts +29 -0
- package/extensions/project-memory/core.ts +164 -0
- package/extensions/project-memory/embeddings.ts +230 -0
- package/extensions/project-memory/extraction-v2.ts +636 -0
- package/extensions/project-memory/factstore.ts +2317 -0
- package/extensions/project-memory/index.ts +3517 -0
- package/extensions/project-memory/injection-metrics.ts +123 -0
- package/extensions/project-memory/jsonl-io.ts +36 -0
- package/extensions/project-memory/lifecycle.ts +340 -0
- package/extensions/project-memory/llm-direct.ts +260 -0
- package/extensions/project-memory/migration.ts +293 -0
- package/extensions/project-memory/package.json +9 -0
- package/extensions/project-memory/sci-renderers.ts +7 -0
- package/extensions/project-memory/template.ts +103 -0
- package/extensions/project-memory/triggers.ts +52 -0
- package/extensions/project-memory/types.ts +102 -0
- package/extensions/render/composition/fonts/Inter-Bold.ttf +0 -0
- package/extensions/render/composition/fonts/Inter-Regular.ttf +0 -0
- package/extensions/render/composition/fonts/Tomorrow-Bold.ttf +0 -0
- package/extensions/render/composition/fonts/Tomorrow-Regular.ttf +0 -0
- package/extensions/render/composition/package.json +22 -0
- package/extensions/render/composition/render.mjs +246 -0
- package/extensions/render/composition/test-comp.tsx +87 -0
- package/extensions/render/composition/types.ts +24 -0
- package/extensions/render/excalidraw/UPSTREAM.md +81 -0
- package/extensions/render/excalidraw/elements.ts +764 -0
- package/extensions/render/excalidraw/index.ts +66 -0
- package/extensions/render/excalidraw/types.ts +223 -0
- package/extensions/render/excalidraw-renderer/pyproject.toml +8 -0
- package/extensions/render/excalidraw-renderer/render_excalidraw.py +182 -0
- package/extensions/render/excalidraw-renderer/render_template.html +59 -0
- package/extensions/render/index.ts +830 -0
- package/extensions/render/native-diagrams/index.ts +57 -0
- package/extensions/render/native-diagrams/motifs.ts +542 -0
- package/extensions/render/native-diagrams/raster.ts +8 -0
- package/extensions/render/native-diagrams/scene.ts +75 -0
- package/extensions/render/native-diagrams/spec.ts +204 -0
- package/extensions/render/native-diagrams/svg.ts +116 -0
- package/extensions/sermon-widget.ts +144 -0
- package/extensions/sermon.ts +154 -0
- package/extensions/session-log.ts +174 -0
- package/extensions/spinner-verbs.ts +312 -0
- package/extensions/style.ts +281 -0
- package/extensions/terminal-title.ts +191 -0
- package/extensions/tool-profile/index.ts +296 -0
- package/extensions/tool-profile/profiles.ts +290 -0
- package/extensions/vault/index.ts +185 -0
- package/extensions/version-check.ts +94 -0
- package/extensions/view/index.ts +859 -0
- package/extensions/view/uri-resolver.ts +148 -0
- package/extensions/web-search/index.ts +185 -0
- package/extensions/web-search/providers.ts +121 -0
- package/extensions/web-ui/index.ts +110 -0
- package/extensions/web-ui/server.ts +265 -0
- package/extensions/web-ui/state.ts +462 -0
- package/extensions/web-ui/static/index.html +145 -0
- package/extensions/web-ui/types.ts +284 -0
- package/graphics/g140.png +0 -0
- package/graphics/icon.jpg +0 -0
- package/graphics/icon.svg +562 -0
- package/graphics/path1-4.jpg +0 -0
- package/node_modules/@mariozechner/clipboard/.yarnrc.yml +1 -0
- package/node_modules/@mariozechner/clipboard/Cargo.toml +26 -0
- package/node_modules/@mariozechner/clipboard/README.md +58 -0
- package/node_modules/@mariozechner/clipboard/build.rs +5 -0
- package/node_modules/@mariozechner/clipboard/exp.ts +12 -0
- package/node_modules/@mariozechner/clipboard/index.d.ts +23 -0
- package/node_modules/@mariozechner/clipboard/index.js +317 -0
- package/node_modules/@mariozechner/clipboard/package.json +56 -0
- package/node_modules/@mariozechner/clipboard/src/lib.rs +191 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/package.json +22 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.d.ts +55 -0
- package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.js +670 -0
- package/node_modules/@sinclair/typebox/build/cjs/compiler/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/compiler/index.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/errors.d.ts +91 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/errors.js +599 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/function.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/function.js +153 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/errors/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/index.d.ts +71 -0
- package/node_modules/@sinclair/typebox/build/cjs/index.js +97 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/index.js +39 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.d.ts +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.js +86 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.js +45 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.js +160 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.d.ts +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.js +230 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.d.ts +98 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.js +71 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.js +43 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.d.ts +108 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.d.ts +69 -0
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.d.ts +167 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.js +491 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.d.ts +162 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.js +191 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.js +54 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/policy.d.ts +29 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/policy.js +58 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/system.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/system/system.js +43 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/any/any.d.ts +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/any/any.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/any/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/any/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/array/array.d.ts +28 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/array/array.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/array/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/array/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.d.ts +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js +41 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js +73 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.d.ts +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js +46 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/const/const.d.ts +27 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/const/const.js +58 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/const/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/const/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.d.ts +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.d.ts +7 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js +44 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js +70 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/type.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/create/type.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/date/date.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/date/date.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/date/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/date/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.d.ts +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/error/error.d.ts +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/error/error.js +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/error/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/error/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js +29 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js +641 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.d.ts +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js +29 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js +24 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js +27 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js +29 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/function/function.d.ts +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/function/function.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/function/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/function/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js +40 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.d.ts +147 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js +320 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.d.ts +152 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js +597 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.d.ts +34 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js +89 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.d.ts +42 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/index.d.ts +71 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/index.js +88 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.d.ts +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js +26 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js +24 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.d.ts +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js +36 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.d.ts +52 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js +98 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js +44 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.d.ts +50 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.js +153 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js +42 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.d.ts +15 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.d.ts +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js +30 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js +68 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.d.ts +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.d.ts +7 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.d.ts +24 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js +78 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js +40 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.d.ts +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.d.ts +47 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js +107 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.d.ts +59 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.js +205 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.d.ts +49 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/module.d.ts +27 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/module/module.js +38 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/never/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/never/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/never/never.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/never/never.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/not/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/not/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/not/not.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/not/not.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/null/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/null/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/null/null.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/null/null.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/number/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/number/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/number/number.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/number/number.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/object/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/object/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/object/object.d.ts +51 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/object/object.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js +26 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.d.ts +36 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js +75 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js +26 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.d.ts +7 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js +44 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.d.ts +35 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js +111 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.d.ts +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js +28 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.d.ts +36 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js +70 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js +26 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/record/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/record/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/record/record.d.ts +71 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/record/record.js +123 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.d.ts +41 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js +35 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js +39 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js +35 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required.d.ts +35 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required.js +110 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js +44 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.d.ts +33 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts +29 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.d.ts +28 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js +59 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/static/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/static/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/static/static.d.ts +39 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/static/static.js +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/string/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/string/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/string/string.d.ts +25 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/string/string.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.d.ts +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.d.ts +19 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js +56 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.d.ts +21 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js +60 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.d.ts +7 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js +24 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js +174 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js +39 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js +59 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.d.ts +30 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js +17 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.d.ts +30 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js +47 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/index.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/index.js +51 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.d.ts +64 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js +104 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/json.d.ts +208 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/json.js +226 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/type.d.ts +59 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/type/type.js +129 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.d.ts +13 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js +40 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js +4 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.d.ts +8 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/void/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/void/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/void/void.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/type/void/void.js +10 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.d.ts +15 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.js +55 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.js +241 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/check/check.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/check/check.js +476 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/check/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/check/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.js +149 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.js +60 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.js +264 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/create/create.d.ts +11 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/create/create.js +474 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/create/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/create/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.js +14 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/default/default.d.ts +5 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/default/default.js +176 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/default/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/default/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.d.ts +32 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.js +178 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.d.ts +12 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js +36 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.d.ts +6 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.js +15 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.d.ts +2 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.js +50 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.d.ts +74 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js +195 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.d.ts +7 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js +152 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/index.d.ts +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/index.js +53 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.d.ts +9 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.js +104 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.js +18 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.d.ts +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.js +87 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.js +38 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.d.ts +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.js +126 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.d.ts +22 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.js +214 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.d.ts +23 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.js +225 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.js +133 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.d.ts +3 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.js +20 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/value/index.d.ts +1 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/value/index.js +38 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/value/value.d.ts +16 -0
- package/node_modules/@sinclair/typebox/build/cjs/value/value/value.js +39 -0
- package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.d.mts +55 -0
- package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs +663 -0
- package/node_modules/@sinclair/typebox/build/esm/compiler/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/compiler/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/errors.d.mts +91 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs +592 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/function.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/function.mjs +147 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/errors/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/index.d.mts +71 -0
- package/node_modules/@sinclair/typebox/build/esm/index.mjs +80 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.d.mts +23 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.mjs +72 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.mjs +17 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.mjs +123 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.d.mts +8 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.mjs +223 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.d.mts +98 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.mjs +55 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/token.d.mts +108 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/token.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/types.d.mts +69 -0
- package/node_modules/@sinclair/typebox/build/esm/parser/static/types.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.d.mts +167 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.mjs +386 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/parser.d.mts +162 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/parser.mjs +78 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.mjs +16 -0
- package/node_modules/@sinclair/typebox/build/esm/system/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/system/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/system/policy.d.mts +29 -0
- package/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
- package/node_modules/@sinclair/typebox/build/esm/system/system.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/system/system.mjs +37 -0
- package/node_modules/@sinclair/typebox/build/esm/type/any/any.d.mts +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/any/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/argument/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/array/array.d.mts +28 -0
- package/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/array/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.d.mts +14 -0
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/type.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/value.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
- package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.d.mts +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
- package/node_modules/@sinclair/typebox/build/esm/type/composite/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/computed/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/const/const.d.mts +27 -0
- package/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
- package/node_modules/@sinclair/typebox/build/esm/type/const/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.d.mts +23 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.d.mts +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/type.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
- package/node_modules/@sinclair/typebox/build/esm/type/date/date.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/date/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/discard/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.d.mts +14 -0
- package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/enum/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/error/error.d.mts +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/error/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.d.mts +14 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/index.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/function/function.d.mts +23 -0
- package/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/function/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.d.mts +147 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +235 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/type.d.mts +152 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +509 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/value.d.mts +34 -0
- package/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.d.mts +42 -0
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/index.d.mts +71 -0
- package/node_modules/@sinclair/typebox/build/esm/type/index.mjs +71 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.d.mts +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.d.mts +14 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.d.mts +52 -0
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.d.mts +50 -0
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +115 -0
- package/node_modules/@sinclair/typebox/build/esm/type/integer/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.d.mts +15 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.d.mts +14 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.d.mts +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.d.mts +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.d.mts +24 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
- package/node_modules/@sinclair/typebox/build/esm/type/literal/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.d.mts +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.d.mts +47 -0
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/compute.d.mts +59 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +166 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/infer.d.mts +49 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/infer.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/module.d.mts +27 -0
- package/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
- package/node_modules/@sinclair/typebox/build/esm/type/never/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/never/never.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/not/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/not/not.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/null/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/null/null.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/number/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/number/number.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/object/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/object/object.d.mts +51 -0
- package/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.d.mts +36 -0
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.d.mts +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.d.mts +35 -0
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +74 -0
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.d.mts +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.d.mts +36 -0
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
- package/node_modules/@sinclair/typebox/build/esm/type/promise/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/record/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/record/record.d.mts +71 -0
- package/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +116 -0
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
- package/node_modules/@sinclair/typebox/build/esm/type/ref/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.d.mts +41 -0
- package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/format.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/type.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/required.d.mts +35 -0
- package/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +73 -0
- package/node_modules/@sinclair/typebox/build/esm/type/rest/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.d.mts +33 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/index.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.d.mts +29 -0
- package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/sets/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/sets/set.d.mts +28 -0
- package/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
- package/node_modules/@sinclair/typebox/build/esm/type/static/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/static/static.d.mts +39 -0
- package/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/string/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/string/string.d.mts +25 -0
- package/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.d.mts +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.d.mts +19 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.d.mts +21 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.d.mts +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.d.mts +30 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/transform/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.d.mts +30 -0
- package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/index.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.d.mts +64 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +99 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/json.d.mts +208 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/type.d.mts +59 -0
- package/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +62 -0
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.d.mts +13 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.d.mts +8 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/type/void/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/type/void/void.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
- package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.d.mts +15 -0
- package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.mjs +49 -0
- package/node_modules/@sinclair/typebox/build/esm/value/assert/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/assert/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.mjs +235 -0
- package/node_modules/@sinclair/typebox/build/esm/value/cast/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/cast/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/check/check.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs +470 -0
- package/node_modules/@sinclair/typebox/build/esm/value/check/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/check/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.mjs +145 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clean/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clean/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.mjs +56 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clone/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/clone/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.mjs +260 -0
- package/node_modules/@sinclair/typebox/build/esm/value/convert/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/convert/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/create/create.d.mts +11 -0
- package/node_modules/@sinclair/typebox/build/esm/value/create/create.mjs +468 -0
- package/node_modules/@sinclair/typebox/build/esm/value/create/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/create/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.mjs +10 -0
- package/node_modules/@sinclair/typebox/build/esm/value/decode/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/decode/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/default/default.d.mts +5 -0
- package/node_modules/@sinclair/typebox/build/esm/value/default/default.mjs +172 -0
- package/node_modules/@sinclair/typebox/build/esm/value/default/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/default/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.d.mts +32 -0
- package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.mjs +171 -0
- package/node_modules/@sinclair/typebox/build/esm/value/delta/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/delta/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.d.mts +12 -0
- package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs +29 -0
- package/node_modules/@sinclair/typebox/build/esm/value/deref/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/deref/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.d.mts +6 -0
- package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.mjs +11 -0
- package/node_modules/@sinclair/typebox/build/esm/value/encode/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/encode/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.d.mts +2 -0
- package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.mjs +46 -0
- package/node_modules/@sinclair/typebox/build/esm/value/equal/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/equal/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.d.mts +74 -0
- package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
- package/node_modules/@sinclair/typebox/build/esm/value/guard/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.d.mts +7 -0
- package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs +146 -0
- package/node_modules/@sinclair/typebox/build/esm/value/hash/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/hash/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/index.d.mts +20 -0
- package/node_modules/@sinclair/typebox/build/esm/value/index.mjs +32 -0
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.d.mts +9 -0
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.mjs +98 -0
- package/node_modules/@sinclair/typebox/build/esm/value/parse/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/parse/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.d.mts +22 -0
- package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.mjs +81 -0
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.d.mts +22 -0
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs +115 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.d.mts +22 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs +207 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.d.mts +23 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs +218 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/has.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs +129 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/index.d.mts +3 -0
- package/node_modules/@sinclair/typebox/build/esm/value/transform/index.mjs +3 -0
- package/node_modules/@sinclair/typebox/build/esm/value/value/index.d.mts +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/value/index.mjs +1 -0
- package/node_modules/@sinclair/typebox/build/esm/value/value/value.d.mts +16 -0
- package/node_modules/@sinclair/typebox/build/esm/value/value/value.mjs +16 -0
- package/node_modules/@sinclair/typebox/compiler/package.json +4 -0
- package/node_modules/@sinclair/typebox/errors/package.json +4 -0
- package/node_modules/@sinclair/typebox/license +25 -0
- package/node_modules/@sinclair/typebox/package.json +116 -0
- package/node_modules/@sinclair/typebox/parser/package.json +4 -0
- package/node_modules/@sinclair/typebox/readme.md +1865 -0
- package/node_modules/@sinclair/typebox/syntax/package.json +4 -0
- package/node_modules/@sinclair/typebox/system/package.json +4 -0
- package/node_modules/@sinclair/typebox/type/package.json +4 -0
- package/node_modules/@sinclair/typebox/value/package.json +4 -0
- package/node_modules/@styrene-lab/pi-agent-core/README.md +446 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.d.ts +24 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.js +447 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.js.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent.d.ts +171 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent.js +417 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/agent.js.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/index.d.ts +5 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/index.js +9 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.d.ts +85 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.js +268 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.js.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/types.d.ts +286 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/types.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/types.js +2 -0
- package/node_modules/@styrene-lab/pi-agent-core/dist/types.js.map +1 -0
- package/node_modules/@styrene-lab/pi-agent-core/package.json +44 -0
- package/node_modules/@styrene-lab/pi-ai/README.md +1201 -0
- package/node_modules/@styrene-lab/pi-ai/bedrock-provider.d.ts +1 -0
- package/node_modules/@styrene-lab/pi-ai/bedrock-provider.js +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/api-registry.d.ts +20 -0
- package/node_modules/@styrene-lab/pi-ai/dist/api-registry.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/api-registry.js +44 -0
- package/node_modules/@styrene-lab/pi-ai/dist/api-registry.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.d.ts +5 -0
- package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.js +6 -0
- package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/cli.d.ts +3 -0
- package/node_modules/@styrene-lab/pi-ai/dist/cli.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/cli.js +116 -0
- package/node_modules/@styrene-lab/pi-ai/dist/cli.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.js +110 -0
- package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/index.d.ts +23 -0
- package/node_modules/@styrene-lab/pi-ai/dist/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/index.js +21 -0
- package/node_modules/@styrene-lab/pi-ai/dist/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.d.ts +24 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.generated.d.ts +14058 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.generated.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.generated.js +13846 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.generated.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.js +55 -0
- package/node_modules/@styrene-lab/pi-ai/dist/models.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/oauth.d.ts +2 -0
- package/node_modules/@styrene-lab/pi-ai/dist/oauth.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/oauth.js +2 -0
- package/node_modules/@styrene-lab/pi-ai/dist/oauth.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.js +610 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.d.ts +33 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.js +753 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.js +187 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.js +29 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.d.ts +74 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.js +757 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.d.ts +65 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.js +300 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.js +392 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google.d.ts +13 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google.js +355 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/google.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.d.ts +22 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.js +498 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.js +741 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.js +710 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.js +447 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.d.ts +13 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.js +201 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.d.ts +11 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.js +138 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.js +35 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.js +155 -0
- package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/stream.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-ai/dist/stream.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/stream.js +27 -0
- package/node_modules/@styrene-lab/pi-ai/dist/stream.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/types.d.ts +293 -0
- package/node_modules/@styrene-lab/pi-ai/dist/types.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/types.js +2 -0
- package/node_modules/@styrene-lab/pi-ai/dist/types.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.d.ts +21 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.js +81 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.d.ts +3 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.js +14 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.js +29 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.d.ts +25 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.js +343 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.d.ts +22 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.js +42 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.d.ts +30 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.js +292 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.js +374 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.js +479 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.d.ts +61 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.js +131 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.d.ts +35 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.js +382 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.d.ts +13 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.js +31 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.d.ts +47 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.js +2 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.d.ts +52 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.js +117 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.d.ts +22 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.js +26 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.js +21 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.d.ts +18 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.js +72 -0
- package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.js.map +1 -0
- package/node_modules/@styrene-lab/pi-ai/package.json +80 -0
- package/node_modules/@styrene-lab/pi-coding-agent/CHANGELOG.md +3105 -0
- package/node_modules/@styrene-lab/pi-coding-agent/README.md +583 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.d.ts +48 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.js +300 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.d.ts +14 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.js +31 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.js +79 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.js +92 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.js +34 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.d.ts +3 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.js +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/config.d.ts +68 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/config.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/config.js +203 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/config.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.d.ts +591 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.js +2542 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.d.ts +130 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.js +419 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.d.ts +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.js +212 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +86 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.js +242 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.d.ts +121 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.js +610 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.d.ts +7 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.js +7 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.d.ts +38 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.js +153 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.d.ts +3 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.js +2 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.js +2 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.js +25 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.d.ts +29 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.js +71 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.js +249 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.d.ts +37 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.js +223 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.css +971 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.html +54 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.js +1583 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts +38 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.js +70 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +6 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.d.ts +11 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.js +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.d.ts +25 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.js +430 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.d.ts +152 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.js +688 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.d.ts +1048 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.js +35 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.d.ts +20 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.js +28 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.d.ts +32 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.js +134 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.js +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.d.ts +55 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.js +153 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.d.ts +77 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.js +123 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.d.ts +113 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.js +554 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.d.ts +104 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.js +462 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.d.ts +155 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.js +1480 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.d.ts +50 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.js +251 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.js +94 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.d.ts +184 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.js +670 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.d.ts +90 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.js +242 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.d.ts +324 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.js +1098 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.d.ts +235 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.js +699 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.d.ts +59 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.js +385 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.js +22 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.d.ts +28 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.js +150 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.d.ts +7 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.js +25 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.d.ts +59 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.js +249 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.d.ts +63 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.js +243 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.js +146 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.js +209 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.d.ts +45 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.js +239 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.d.ts +73 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.js +61 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.d.ts +40 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.js +118 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.js +81 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.js +166 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.d.ts +70 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.js +205 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.d.ts +29 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.js +78 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/index.d.ts +27 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/index.js +42 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/main.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/main.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/main.js +700 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/main.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.d.ts +33 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.js +261 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.js +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.d.ts +34 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.js +333 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +96 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +35 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +162 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +51 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.js +479 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +70 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.js +79 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.js +140 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.d.ts +12 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.js +133 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts +20 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +111 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.js +61 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts +24 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +78 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.js +198 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.d.ts +32 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.js +33 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +41 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +61 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +42 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +145 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.js +271 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +19 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +97 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +49 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +275 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.js +851 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +58 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +301 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +50 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +51 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +89 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +976 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +87 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +1040 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +113 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.js +27 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +317 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.js +3832 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/dark.json +85 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/light.json +84 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +78 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.js +957 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.d.ts +28 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.js +101 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.js +49 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +217 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.js +401 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.js +509 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +409 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.js +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.d.ts +21 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.js +87 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.d.ts +11 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.js +286 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.js +20 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.d.ts +2 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.js +68 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.d.ts +5 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.js +158 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.d.ts +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.js +26 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.js +163 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.d.ts +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.js +39 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.d.ts +36 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.js +186 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.d.ts +2 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.js +26 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.d.ts +21 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.js +121 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.js +186 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.d.ts +5 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.js +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.d.ts +3 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.js +252 -0
- package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.js.map +1 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/compaction.md +392 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/custom-provider.md +596 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/development.md +69 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/extensions.md +2034 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/images/doom-extension.png +0 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/images/exy.png +0 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/images/interactive-mode.png +0 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/images/tree-view.png +0 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/json.md +79 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/keybindings.md +182 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/models.md +309 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/packages.md +218 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/prompt-templates.md +67 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/providers.md +188 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/rpc.md +1354 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/sdk.md +968 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/session.md +412 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/settings.md +234 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/shell-aliases.md +13 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/skills.md +231 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/terminal-setup.md +95 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/termux.md +127 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/themes.md +295 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/tmux.md +61 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/tree.md +228 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/tui.md +887 -0
- package/node_modules/@styrene-lab/pi-coding-agent/docs/windows.md +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/README.md +25 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/README.md +205 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/antigravity-image-gen.ts +416 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/bash-spawn-hook.ts +30 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/bookmark.ts +50 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/built-in-tool-renderer.ts +246 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/claude-rules.ts +86 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/commands.ts +72 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/confirm-destructive.ts +59 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-compaction.ts +114 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-footer.ts +64 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-header.ts +73 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-qwen-cli/index.ts +345 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dirty-repo-guard.ts +56 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/README.md +46 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/index.ts +74 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/index.ts +15 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-tools.ts +74 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/event-bus.ts +43 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/file-trigger.ts +41 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/git-checkpoint.ts +53 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/handoff.ts +150 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/hello.ts +25 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/inline-bash.ts +94 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/input-transform.ts +43 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/interactive-shell.ts +196 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/mac-system-theme.ts +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/message-renderer.ts +59 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/minimal-mode.ts +426 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/modal-editor.ts +85 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/model-status.ts +31 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/notify.ts +55 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +1348 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/overlay-test.ts +150 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/permission-gate.ts +34 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/pirate.ts +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/README.md +65 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/index.ts +340 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/utils.ts +168 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/preset.ts +397 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/protected-paths.ts +30 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/provider-payload.ts +14 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/qna.ts +119 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/question.ts +264 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/questionnaire.ts +427 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/rainbow-editor.ts +88 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/reload-runtime.ts +37 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/rpc-demo.ts +124 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/index.ts +317 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/package-lock.json +92 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/package.json +19 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/send-user-message.ts +97 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/session-name.ts +27 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/shutdown-command.ts +63 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/snake.ts +343 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/space-invaders.ts +560 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/ssh.ts +220 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/status-line.ts +40 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/README.md +172 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/planner.md +37 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/scout.md +50 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/worker.md +24 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents.ts +126 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/index.ts +964 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/implement.md +10 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/summarize.ts +195 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/system-prompt-header.ts +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/timed-confirm.ts +70 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/titlebar-spinner.ts +58 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/todo.ts +299 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/tool-override.ts +142 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/tools.ts +146 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/trigger-compact.ts +40 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/truncated-tool.ts +192 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/widget-placement.ts +17 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/index.ts +32 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/package-lock.json +31 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/package.json +22 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/rpc-extension-ui.ts +632 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/01-minimal.ts +22 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/02-custom-model.ts +49 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/03-custom-prompt.ts +55 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/04-skills.ts +46 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/05-tools.ts +56 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/06-extensions.ts +88 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/07-context-files.ts +40 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/08-prompt-templates.ts +47 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/10-settings.ts +51 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/11-sessions.ts +48 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/12-full-control.ts +82 -0
- package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/README.md +144 -0
- package/node_modules/@styrene-lab/pi-coding-agent/package.json +99 -0
- package/node_modules/@styrene-lab/pi-tui/README.md +767 -0
- package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.d.ts +50 -0
- package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.js +635 -0
- package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/box.d.ts +30 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/box.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/box.js +122 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/box.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.d.ts +22 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.js +35 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/editor.d.ts +233 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/editor.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/editor.js +1844 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/editor.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/image.d.ts +28 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/image.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/image.js +69 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/image.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/input.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/input.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/input.js +464 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/input.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/loader.d.ts +21 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/loader.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/loader.js +49 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/loader.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.d.ts +95 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.js +655 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.d.ts +50 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.js +159 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.d.ts +50 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.js +185 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.d.ts +12 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.js +23 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/text.d.ts +26 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/text.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/text.js +107 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/text.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.d.ts +13 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.js +51 -0
- package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/editor-component.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-tui/dist/editor-component.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/editor-component.js +2 -0
- package/node_modules/@styrene-lab/pi-tui/dist/editor-component.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.d.ts +16 -0
- package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.js +107 -0
- package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/index.d.ts +23 -0
- package/node_modules/@styrene-lab/pi-tui/dist/index.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/index.js +32 -0
- package/node_modules/@styrene-lab/pi-tui/dist/index.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keybindings.d.ts +39 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keybindings.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keybindings.js +117 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keybindings.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keys.d.ts +172 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keys.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keys.js +1097 -0
- package/node_modules/@styrene-lab/pi-tui/dist/keys.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.d.ts +28 -0
- package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.js +44 -0
- package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.d.ts +62 -0
- package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.js +337 -0
- package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.d.ts +68 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.js +288 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal.d.ts +85 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal.js +309 -0
- package/node_modules/@styrene-lab/pi-tui/dist/terminal.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/tui.d.ts +220 -0
- package/node_modules/@styrene-lab/pi-tui/dist/tui.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/tui.js +977 -0
- package/node_modules/@styrene-lab/pi-tui/dist/tui.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.d.ts +17 -0
- package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.js +25 -0
- package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/utils.d.ts +78 -0
- package/node_modules/@styrene-lab/pi-tui/dist/utils.d.ts.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/dist/utils.js +815 -0
- package/node_modules/@styrene-lab/pi-tui/dist/utils.js.map +1 -0
- package/node_modules/@styrene-lab/pi-tui/package.json +52 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +127 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/.stale.yml +21 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +101 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +32 -0
- package/node_modules/fast-uri/README.md +143 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +340 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +336 -0
- package/node_modules/fast-uri/package.json +69 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +108 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +318 -0
- package/node_modules/fast-uri/test/resolve.test.js +78 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/node_modules/zod-to-json-schema/LICENSE +15 -0
- package/node_modules/zod-to-json-schema/README.md +390 -0
- package/node_modules/zod-to-json-schema/changelog.md +82 -0
- package/node_modules/zod-to-json-schema/contributing.md +9 -0
- package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
- package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
- package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
- package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
- package/node_modules/zod-to-json-schema/package.json +78 -0
- package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/npm/platform-packages/darwin-arm64/README.md +8 -0
- package/npm/platform-packages/darwin-arm64/package.json +26 -0
- package/npm/platform-packages/darwin-x64/README.md +8 -0
- package/npm/platform-packages/darwin-x64/package.json +20 -0
- package/npm/platform-packages/linux-arm64/README.md +8 -0
- package/npm/platform-packages/linux-arm64/package.json +20 -0
- package/npm/platform-packages/linux-x64/README.md +8 -0
- package/npm/platform-packages/linux-x64/package.json +20 -0
- package/package.json +105 -0
- package/prompts/init.md +75 -0
- package/prompts/new-repo.md +54 -0
- package/prompts/oci-login.md +56 -0
- package/prompts/status.md +50 -0
- package/scripts/build-platform-packages.sh +80 -0
- package/scripts/check-provider-drift.sh +82 -0
- package/scripts/check-vendor-dist.mjs +54 -0
- package/scripts/check-vendor-dist.test.mjs +129 -0
- package/scripts/extract-provider-contracts.sh +133 -0
- package/scripts/preinstall.sh +60 -0
- package/scripts/publish-pi-mono.sh +76 -0
- package/skills/cleave/SKILL.md +284 -0
- package/skills/git/SKILL.md +217 -0
- package/skills/git/_reference/ci-validation.md +204 -0
- package/skills/oci/SKILL.md +338 -0
- package/skills/openspec/SKILL.md +346 -0
- package/skills/pi-extensions/SKILL.md +191 -0
- package/skills/pi-tui/SKILL.md +517 -0
- package/skills/python/SKILL.md +189 -0
- package/skills/rust/SKILL.md +268 -0
- package/skills/security/SKILL.md +206 -0
- package/skills/style/SKILL.md +264 -0
- package/skills/typescript/SKILL.md +225 -0
- package/skills/vault/SKILL.md +102 -0
- package/themes/alpharius-legacy.json +85 -0
- package/themes/alpharius.conf +59 -0
- package/themes/alpharius.json +89 -0
|
@@ -0,0 +1,2542 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentSession - Core abstraction for agent lifecycle and session management.
|
|
3
|
+
*
|
|
4
|
+
* This class is shared between all run modes (interactive, print, rpc).
|
|
5
|
+
* It encapsulates:
|
|
6
|
+
* - Agent state access
|
|
7
|
+
* - Event subscription with automatic session persistence
|
|
8
|
+
* - Model and thinking level management
|
|
9
|
+
* - Compaction (manual and auto)
|
|
10
|
+
* - Bash execution
|
|
11
|
+
* - Session switching and branching
|
|
12
|
+
*
|
|
13
|
+
* Modes use this class and add their own I/O layer on top.
|
|
14
|
+
*/
|
|
15
|
+
import { readFileSync } from "node:fs";
|
|
16
|
+
import { basename, dirname, join } from "node:path";
|
|
17
|
+
import { isContextOverflow, modelsAreEqual, resetApiProviders, supportsXhigh } from "@styrene-lab/pi-ai";
|
|
18
|
+
import { getDocsPath } from "../config.js";
|
|
19
|
+
import { theme } from "../modes/interactive/theme/theme.js";
|
|
20
|
+
import { stripFrontmatter } from "../utils/frontmatter.js";
|
|
21
|
+
import { sleep } from "../utils/sleep.js";
|
|
22
|
+
import { executeBash as executeBashCommand, executeBashWithOperations } from "./bash-executor.js";
|
|
23
|
+
import { calculateContextTokens, collectEntriesForBranchSummary, compact, estimateContextTokens, generateBranchSummary, prepareCompaction, shouldCompact, } from "./compaction/index.js";
|
|
24
|
+
import { DEFAULT_THINKING_LEVEL } from "./defaults.js";
|
|
25
|
+
import { exportSessionToHtml } from "./export-html/index.js";
|
|
26
|
+
import { createToolHtmlRenderer } from "./export-html/tool-renderer.js";
|
|
27
|
+
import { ExtensionRunner, wrapRegisteredTools, } from "./extensions/index.js";
|
|
28
|
+
import { expandPromptTemplate } from "./prompt-templates.js";
|
|
29
|
+
import { getLatestCompactionEntry } from "./session-manager.js";
|
|
30
|
+
import { BUILTIN_SLASH_COMMANDS } from "./slash-commands.js";
|
|
31
|
+
import { buildSystemPrompt } from "./system-prompt.js";
|
|
32
|
+
import { createAllTools } from "./tools/index.js";
|
|
33
|
+
/**
|
|
34
|
+
* Parse a skill block from message text.
|
|
35
|
+
* Returns null if the text doesn't contain a skill block.
|
|
36
|
+
*/
|
|
37
|
+
export function parseSkillBlock(text) {
|
|
38
|
+
const match = text.match(/^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/);
|
|
39
|
+
if (!match)
|
|
40
|
+
return null;
|
|
41
|
+
return {
|
|
42
|
+
name: match[1],
|
|
43
|
+
location: match[2],
|
|
44
|
+
content: match[3],
|
|
45
|
+
userMessage: match[4]?.trim() || undefined,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// ============================================================================
|
|
49
|
+
// Constants
|
|
50
|
+
// ============================================================================
|
|
51
|
+
/** Standard thinking levels */
|
|
52
|
+
const THINKING_LEVELS = ["off", "minimal", "low", "medium", "high"];
|
|
53
|
+
/** Thinking levels including xhigh (for supported models) */
|
|
54
|
+
const THINKING_LEVELS_WITH_XHIGH = ["off", "minimal", "low", "medium", "high", "xhigh"];
|
|
55
|
+
// ============================================================================
|
|
56
|
+
// AgentSession Class
|
|
57
|
+
// ============================================================================
|
|
58
|
+
export class AgentSession {
|
|
59
|
+
agent;
|
|
60
|
+
sessionManager;
|
|
61
|
+
settingsManager;
|
|
62
|
+
_scopedModels;
|
|
63
|
+
// Event subscription state
|
|
64
|
+
_unsubscribeAgent;
|
|
65
|
+
_eventListeners = [];
|
|
66
|
+
_agentEventQueue = Promise.resolve();
|
|
67
|
+
/** Tracks pending steering messages for UI display. Removed when delivered. */
|
|
68
|
+
_steeringMessages = [];
|
|
69
|
+
/** Tracks pending follow-up messages for UI display. Removed when delivered. */
|
|
70
|
+
_followUpMessages = [];
|
|
71
|
+
/** Messages queued to be included with the next user prompt as context ("asides"). */
|
|
72
|
+
_pendingNextTurnMessages = [];
|
|
73
|
+
// Compaction state
|
|
74
|
+
_compactionAbortController = undefined;
|
|
75
|
+
_autoCompactionAbortController = undefined;
|
|
76
|
+
_overflowRecoveryAttempted = false;
|
|
77
|
+
// Branch summarization state
|
|
78
|
+
_branchSummaryAbortController = undefined;
|
|
79
|
+
// Retry state
|
|
80
|
+
_retryAbortController = undefined;
|
|
81
|
+
_retryAttempt = 0;
|
|
82
|
+
_retryPromise = undefined;
|
|
83
|
+
_retryResolve = undefined;
|
|
84
|
+
// Bash execution state
|
|
85
|
+
_bashAbortController = undefined;
|
|
86
|
+
_pendingBashMessages = [];
|
|
87
|
+
// Extension system
|
|
88
|
+
_extensionRunner = undefined;
|
|
89
|
+
_turnIndex = 0;
|
|
90
|
+
_resourceLoader;
|
|
91
|
+
_customTools;
|
|
92
|
+
_baseToolRegistry = new Map();
|
|
93
|
+
_cwd;
|
|
94
|
+
_extensionRunnerRef;
|
|
95
|
+
_initialActiveToolNames;
|
|
96
|
+
_baseToolsOverride;
|
|
97
|
+
_extensionUIContext;
|
|
98
|
+
_extensionCommandContextActions;
|
|
99
|
+
_extensionShutdownHandler;
|
|
100
|
+
_extensionErrorListener;
|
|
101
|
+
_extensionErrorUnsubscriber;
|
|
102
|
+
// Model registry for API key resolution
|
|
103
|
+
_modelRegistry;
|
|
104
|
+
// Tool registry for extension getTools/setTools
|
|
105
|
+
_toolRegistry = new Map();
|
|
106
|
+
_toolPromptSnippets = new Map();
|
|
107
|
+
_toolPromptGuidelines = new Map();
|
|
108
|
+
// Base system prompt (without extension appends) - used to apply fresh appends each turn
|
|
109
|
+
_baseSystemPrompt = "";
|
|
110
|
+
constructor(config) {
|
|
111
|
+
this.agent = config.agent;
|
|
112
|
+
this.sessionManager = config.sessionManager;
|
|
113
|
+
this.settingsManager = config.settingsManager;
|
|
114
|
+
this._scopedModels = config.scopedModels ?? [];
|
|
115
|
+
this._resourceLoader = config.resourceLoader;
|
|
116
|
+
this._customTools = config.customTools ?? [];
|
|
117
|
+
this._cwd = config.cwd;
|
|
118
|
+
this._modelRegistry = config.modelRegistry;
|
|
119
|
+
this._extensionRunnerRef = config.extensionRunnerRef;
|
|
120
|
+
this._initialActiveToolNames = config.initialActiveToolNames;
|
|
121
|
+
this._baseToolsOverride = config.baseToolsOverride;
|
|
122
|
+
// Always subscribe to agent events for internal handling
|
|
123
|
+
// (session persistence, extensions, auto-compaction, retry logic)
|
|
124
|
+
this._unsubscribeAgent = this.agent.subscribe(this._handleAgentEvent);
|
|
125
|
+
this._installAgentToolHooks();
|
|
126
|
+
this._buildRuntime({
|
|
127
|
+
activeToolNames: this._initialActiveToolNames,
|
|
128
|
+
includeAllExtensionTools: true,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/** Model registry for API key resolution and model discovery */
|
|
132
|
+
get modelRegistry() {
|
|
133
|
+
return this._modelRegistry;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Install tool hooks once on the Agent instance.
|
|
137
|
+
*
|
|
138
|
+
* The callbacks read `this._extensionRunner` at execution time, so extension reload swaps in the
|
|
139
|
+
* new runner without reinstalling hooks. Extension-specific tool wrappers are still used to adapt
|
|
140
|
+
* registered tool execution to the extension context. Tool call and tool result interception now
|
|
141
|
+
* happens here instead of in wrappers.
|
|
142
|
+
*/
|
|
143
|
+
_installAgentToolHooks() {
|
|
144
|
+
this.agent.setBeforeToolCall(async ({ toolCall, args }) => {
|
|
145
|
+
const runner = this._extensionRunner;
|
|
146
|
+
if (!runner?.hasHandlers("tool_call")) {
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
await this._agentEventQueue;
|
|
150
|
+
try {
|
|
151
|
+
return await runner.emitToolCall({
|
|
152
|
+
type: "tool_call",
|
|
153
|
+
toolName: toolCall.name,
|
|
154
|
+
toolCallId: toolCall.id,
|
|
155
|
+
input: args,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
catch (err) {
|
|
159
|
+
if (err instanceof Error) {
|
|
160
|
+
throw err;
|
|
161
|
+
}
|
|
162
|
+
throw new Error(`Extension failed, blocking execution: ${String(err)}`);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
this.agent.setAfterToolCall(async ({ toolCall, args, result, isError }) => {
|
|
166
|
+
const runner = this._extensionRunner;
|
|
167
|
+
if (!runner?.hasHandlers("tool_result")) {
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
const hookResult = await runner.emitToolResult({
|
|
171
|
+
type: "tool_result",
|
|
172
|
+
toolName: toolCall.name,
|
|
173
|
+
toolCallId: toolCall.id,
|
|
174
|
+
input: args,
|
|
175
|
+
content: result.content,
|
|
176
|
+
details: isError ? undefined : result.details,
|
|
177
|
+
isError,
|
|
178
|
+
});
|
|
179
|
+
if (!hookResult || isError) {
|
|
180
|
+
return undefined;
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
content: hookResult.content,
|
|
184
|
+
details: hookResult.details,
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
// =========================================================================
|
|
189
|
+
// Event Subscription
|
|
190
|
+
// =========================================================================
|
|
191
|
+
/** Emit an event to all listeners */
|
|
192
|
+
_emit(event) {
|
|
193
|
+
for (const l of this._eventListeners) {
|
|
194
|
+
l(event);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
// Track last assistant message for auto-compaction check
|
|
198
|
+
_lastAssistantMessage = undefined;
|
|
199
|
+
/** Internal handler for agent events - shared by subscribe and reconnect */
|
|
200
|
+
_handleAgentEvent = (event) => {
|
|
201
|
+
// Create retry promise synchronously before queueing async processing.
|
|
202
|
+
// Agent.emit() calls this handler synchronously, and prompt() calls waitForRetry()
|
|
203
|
+
// as soon as agent.prompt() resolves. If _retryPromise is created only inside
|
|
204
|
+
// _processAgentEvent, slow earlier queued events can delay agent_end processing
|
|
205
|
+
// and waitForRetry() can miss the in-flight retry.
|
|
206
|
+
this._createRetryPromiseForAgentEnd(event);
|
|
207
|
+
this._agentEventQueue = this._agentEventQueue.then(() => this._processAgentEvent(event), () => this._processAgentEvent(event));
|
|
208
|
+
// Keep queue alive if an event handler fails
|
|
209
|
+
this._agentEventQueue.catch(() => { });
|
|
210
|
+
};
|
|
211
|
+
_createRetryPromiseForAgentEnd(event) {
|
|
212
|
+
if (event.type !== "agent_end" || this._retryPromise) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const settings = this.settingsManager.getRetrySettings();
|
|
216
|
+
if (!settings.enabled) {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const lastAssistant = this._findLastAssistantInMessages(event.messages);
|
|
220
|
+
if (!lastAssistant || !this._isRetryableError(lastAssistant)) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
this._retryPromise = new Promise((resolve) => {
|
|
224
|
+
this._retryResolve = resolve;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
_findLastAssistantInMessages(messages) {
|
|
228
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
229
|
+
const message = messages[i];
|
|
230
|
+
if (message.role === "assistant") {
|
|
231
|
+
return message;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return undefined;
|
|
235
|
+
}
|
|
236
|
+
async _processAgentEvent(event) {
|
|
237
|
+
// When a user message starts, check if it's from either queue and remove it BEFORE emitting
|
|
238
|
+
// This ensures the UI sees the updated queue state
|
|
239
|
+
if (event.type === "message_start" && event.message.role === "user") {
|
|
240
|
+
this._overflowRecoveryAttempted = false;
|
|
241
|
+
const messageText = this._getUserMessageText(event.message);
|
|
242
|
+
if (messageText) {
|
|
243
|
+
// Check steering queue first
|
|
244
|
+
const steeringIndex = this._steeringMessages.indexOf(messageText);
|
|
245
|
+
if (steeringIndex !== -1) {
|
|
246
|
+
this._steeringMessages.splice(steeringIndex, 1);
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
// Check follow-up queue
|
|
250
|
+
const followUpIndex = this._followUpMessages.indexOf(messageText);
|
|
251
|
+
if (followUpIndex !== -1) {
|
|
252
|
+
this._followUpMessages.splice(followUpIndex, 1);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// Emit to extensions first
|
|
258
|
+
await this._emitExtensionEvent(event);
|
|
259
|
+
// Notify all listeners
|
|
260
|
+
this._emit(event);
|
|
261
|
+
// Handle session persistence
|
|
262
|
+
if (event.type === "message_end") {
|
|
263
|
+
// Check if this is a custom message from extensions
|
|
264
|
+
if (event.message.role === "custom") {
|
|
265
|
+
// Persist as CustomMessageEntry
|
|
266
|
+
this.sessionManager.appendCustomMessageEntry(event.message.customType, event.message.content, event.message.display, event.message.details);
|
|
267
|
+
}
|
|
268
|
+
else if (event.message.role === "user" ||
|
|
269
|
+
event.message.role === "assistant" ||
|
|
270
|
+
event.message.role === "toolResult") {
|
|
271
|
+
// Regular LLM message - persist as SessionMessageEntry
|
|
272
|
+
this.sessionManager.appendMessage(event.message);
|
|
273
|
+
}
|
|
274
|
+
// Other message types (bashExecution, compactionSummary, branchSummary) are persisted elsewhere
|
|
275
|
+
// Track assistant message for auto-compaction (checked on agent_end)
|
|
276
|
+
if (event.message.role === "assistant") {
|
|
277
|
+
this._lastAssistantMessage = event.message;
|
|
278
|
+
const assistantMsg = event.message;
|
|
279
|
+
if (assistantMsg.stopReason !== "error") {
|
|
280
|
+
this._overflowRecoveryAttempted = false;
|
|
281
|
+
}
|
|
282
|
+
// Reset retry counter immediately on successful assistant response
|
|
283
|
+
// This prevents accumulation across multiple LLM calls within a turn
|
|
284
|
+
if (assistantMsg.stopReason !== "error" && this._retryAttempt > 0) {
|
|
285
|
+
this._emit({
|
|
286
|
+
type: "auto_retry_end",
|
|
287
|
+
success: true,
|
|
288
|
+
attempt: this._retryAttempt,
|
|
289
|
+
});
|
|
290
|
+
this._retryAttempt = 0;
|
|
291
|
+
this._resolveRetry();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
// Check auto-retry and auto-compaction after agent completes
|
|
296
|
+
if (event.type === "agent_end" && this._lastAssistantMessage) {
|
|
297
|
+
const msg = this._lastAssistantMessage;
|
|
298
|
+
this._lastAssistantMessage = undefined;
|
|
299
|
+
// Check for retryable errors first (overloaded, rate limit, server errors)
|
|
300
|
+
if (this._isRetryableError(msg)) {
|
|
301
|
+
const didRetry = await this._handleRetryableError(msg);
|
|
302
|
+
if (didRetry)
|
|
303
|
+
return; // Retry was initiated, don't proceed to compaction
|
|
304
|
+
}
|
|
305
|
+
await this._checkCompaction(msg);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
/** Resolve the pending retry promise */
|
|
309
|
+
_resolveRetry() {
|
|
310
|
+
if (this._retryResolve) {
|
|
311
|
+
this._retryResolve();
|
|
312
|
+
this._retryResolve = undefined;
|
|
313
|
+
this._retryPromise = undefined;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/** Extract text content from a message */
|
|
317
|
+
_getUserMessageText(message) {
|
|
318
|
+
if (message.role !== "user")
|
|
319
|
+
return "";
|
|
320
|
+
const content = message.content;
|
|
321
|
+
if (typeof content === "string")
|
|
322
|
+
return content;
|
|
323
|
+
const textBlocks = content.filter((c) => c.type === "text");
|
|
324
|
+
return textBlocks.map((c) => c.text).join("");
|
|
325
|
+
}
|
|
326
|
+
/** Find the last assistant message in agent state (including aborted ones) */
|
|
327
|
+
_findLastAssistantMessage() {
|
|
328
|
+
const messages = this.agent.state.messages;
|
|
329
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
330
|
+
const msg = messages[i];
|
|
331
|
+
if (msg.role === "assistant") {
|
|
332
|
+
return msg;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return undefined;
|
|
336
|
+
}
|
|
337
|
+
/** Emit extension events based on agent events */
|
|
338
|
+
async _emitExtensionEvent(event) {
|
|
339
|
+
if (!this._extensionRunner)
|
|
340
|
+
return;
|
|
341
|
+
if (event.type === "agent_start") {
|
|
342
|
+
this._turnIndex = 0;
|
|
343
|
+
await this._extensionRunner.emit({ type: "agent_start" });
|
|
344
|
+
}
|
|
345
|
+
else if (event.type === "agent_end") {
|
|
346
|
+
await this._extensionRunner.emit({ type: "agent_end", messages: event.messages });
|
|
347
|
+
}
|
|
348
|
+
else if (event.type === "turn_start") {
|
|
349
|
+
const extensionEvent = {
|
|
350
|
+
type: "turn_start",
|
|
351
|
+
turnIndex: this._turnIndex,
|
|
352
|
+
timestamp: Date.now(),
|
|
353
|
+
};
|
|
354
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
355
|
+
}
|
|
356
|
+
else if (event.type === "turn_end") {
|
|
357
|
+
const extensionEvent = {
|
|
358
|
+
type: "turn_end",
|
|
359
|
+
turnIndex: this._turnIndex,
|
|
360
|
+
message: event.message,
|
|
361
|
+
toolResults: event.toolResults,
|
|
362
|
+
};
|
|
363
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
364
|
+
this._turnIndex++;
|
|
365
|
+
}
|
|
366
|
+
else if (event.type === "message_start") {
|
|
367
|
+
const extensionEvent = {
|
|
368
|
+
type: "message_start",
|
|
369
|
+
message: event.message,
|
|
370
|
+
};
|
|
371
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
372
|
+
}
|
|
373
|
+
else if (event.type === "message_update") {
|
|
374
|
+
const extensionEvent = {
|
|
375
|
+
type: "message_update",
|
|
376
|
+
message: event.message,
|
|
377
|
+
assistantMessageEvent: event.assistantMessageEvent,
|
|
378
|
+
};
|
|
379
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
380
|
+
}
|
|
381
|
+
else if (event.type === "message_end") {
|
|
382
|
+
const extensionEvent = {
|
|
383
|
+
type: "message_end",
|
|
384
|
+
message: event.message,
|
|
385
|
+
};
|
|
386
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
387
|
+
}
|
|
388
|
+
else if (event.type === "tool_execution_start") {
|
|
389
|
+
const extensionEvent = {
|
|
390
|
+
type: "tool_execution_start",
|
|
391
|
+
toolCallId: event.toolCallId,
|
|
392
|
+
toolName: event.toolName,
|
|
393
|
+
args: event.args,
|
|
394
|
+
};
|
|
395
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
396
|
+
}
|
|
397
|
+
else if (event.type === "tool_execution_update") {
|
|
398
|
+
const extensionEvent = {
|
|
399
|
+
type: "tool_execution_update",
|
|
400
|
+
toolCallId: event.toolCallId,
|
|
401
|
+
toolName: event.toolName,
|
|
402
|
+
args: event.args,
|
|
403
|
+
partialResult: event.partialResult,
|
|
404
|
+
};
|
|
405
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
406
|
+
}
|
|
407
|
+
else if (event.type === "tool_execution_end") {
|
|
408
|
+
const extensionEvent = {
|
|
409
|
+
type: "tool_execution_end",
|
|
410
|
+
toolCallId: event.toolCallId,
|
|
411
|
+
toolName: event.toolName,
|
|
412
|
+
result: event.result,
|
|
413
|
+
isError: event.isError,
|
|
414
|
+
};
|
|
415
|
+
await this._extensionRunner.emit(extensionEvent);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Subscribe to agent events.
|
|
420
|
+
* Session persistence is handled internally (saves messages on message_end).
|
|
421
|
+
* Multiple listeners can be added. Returns unsubscribe function for this listener.
|
|
422
|
+
*/
|
|
423
|
+
subscribe(listener) {
|
|
424
|
+
this._eventListeners.push(listener);
|
|
425
|
+
// Return unsubscribe function for this specific listener
|
|
426
|
+
return () => {
|
|
427
|
+
const index = this._eventListeners.indexOf(listener);
|
|
428
|
+
if (index !== -1) {
|
|
429
|
+
this._eventListeners.splice(index, 1);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Temporarily disconnect from agent events.
|
|
435
|
+
* User listeners are preserved and will receive events again after resubscribe().
|
|
436
|
+
* Used internally during operations that need to pause event processing.
|
|
437
|
+
*/
|
|
438
|
+
_disconnectFromAgent() {
|
|
439
|
+
if (this._unsubscribeAgent) {
|
|
440
|
+
this._unsubscribeAgent();
|
|
441
|
+
this._unsubscribeAgent = undefined;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Reconnect to agent events after _disconnectFromAgent().
|
|
446
|
+
* Preserves all existing listeners.
|
|
447
|
+
*/
|
|
448
|
+
_reconnectToAgent() {
|
|
449
|
+
if (this._unsubscribeAgent)
|
|
450
|
+
return; // Already connected
|
|
451
|
+
this._unsubscribeAgent = this.agent.subscribe(this._handleAgentEvent);
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Remove all listeners and disconnect from agent.
|
|
455
|
+
* Call this when completely done with the session.
|
|
456
|
+
*/
|
|
457
|
+
dispose() {
|
|
458
|
+
this._disconnectFromAgent();
|
|
459
|
+
this._eventListeners = [];
|
|
460
|
+
}
|
|
461
|
+
// =========================================================================
|
|
462
|
+
// Read-only State Access
|
|
463
|
+
// =========================================================================
|
|
464
|
+
/** Full agent state */
|
|
465
|
+
get state() {
|
|
466
|
+
return this.agent.state;
|
|
467
|
+
}
|
|
468
|
+
/** Current model (may be undefined if not yet selected) */
|
|
469
|
+
get model() {
|
|
470
|
+
return this.agent.state.model;
|
|
471
|
+
}
|
|
472
|
+
/** Current thinking level */
|
|
473
|
+
get thinkingLevel() {
|
|
474
|
+
return this.agent.state.thinkingLevel;
|
|
475
|
+
}
|
|
476
|
+
/** Whether agent is currently streaming a response */
|
|
477
|
+
get isStreaming() {
|
|
478
|
+
return this.agent.state.isStreaming;
|
|
479
|
+
}
|
|
480
|
+
/** Current effective system prompt (includes any per-turn extension modifications) */
|
|
481
|
+
get systemPrompt() {
|
|
482
|
+
return this.agent.state.systemPrompt;
|
|
483
|
+
}
|
|
484
|
+
/** Current retry attempt (0 if not retrying) */
|
|
485
|
+
get retryAttempt() {
|
|
486
|
+
return this._retryAttempt;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Get the names of currently active tools.
|
|
490
|
+
* Returns the names of tools currently set on the agent.
|
|
491
|
+
*/
|
|
492
|
+
getActiveToolNames() {
|
|
493
|
+
return this.agent.state.tools.map((t) => t.name);
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Get all configured tools with name, description, and parameter schema.
|
|
497
|
+
*/
|
|
498
|
+
getAllTools() {
|
|
499
|
+
return Array.from(this._toolRegistry.values()).map((t) => ({
|
|
500
|
+
name: t.name,
|
|
501
|
+
description: t.description,
|
|
502
|
+
parameters: t.parameters,
|
|
503
|
+
}));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Set active tools by name.
|
|
507
|
+
* Only tools in the registry can be enabled. Unknown tool names are ignored.
|
|
508
|
+
* Also rebuilds the system prompt to reflect the new tool set.
|
|
509
|
+
* Changes take effect on the next agent turn.
|
|
510
|
+
*/
|
|
511
|
+
setActiveToolsByName(toolNames) {
|
|
512
|
+
const tools = [];
|
|
513
|
+
const validToolNames = [];
|
|
514
|
+
for (const name of toolNames) {
|
|
515
|
+
const tool = this._toolRegistry.get(name);
|
|
516
|
+
if (tool) {
|
|
517
|
+
tools.push(tool);
|
|
518
|
+
validToolNames.push(name);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
this.agent.setTools(tools);
|
|
522
|
+
// Rebuild base system prompt with new tool set
|
|
523
|
+
this._baseSystemPrompt = this._rebuildSystemPrompt(validToolNames);
|
|
524
|
+
this.agent.setSystemPrompt(this._baseSystemPrompt);
|
|
525
|
+
}
|
|
526
|
+
/** Whether compaction or branch summarization is currently running */
|
|
527
|
+
get isCompacting() {
|
|
528
|
+
return (this._autoCompactionAbortController !== undefined ||
|
|
529
|
+
this._compactionAbortController !== undefined ||
|
|
530
|
+
this._branchSummaryAbortController !== undefined);
|
|
531
|
+
}
|
|
532
|
+
/** All messages including custom types like BashExecutionMessage */
|
|
533
|
+
get messages() {
|
|
534
|
+
return this.agent.state.messages;
|
|
535
|
+
}
|
|
536
|
+
/** Current steering mode */
|
|
537
|
+
get steeringMode() {
|
|
538
|
+
return this.agent.getSteeringMode();
|
|
539
|
+
}
|
|
540
|
+
/** Current follow-up mode */
|
|
541
|
+
get followUpMode() {
|
|
542
|
+
return this.agent.getFollowUpMode();
|
|
543
|
+
}
|
|
544
|
+
/** Current session file path, or undefined if sessions are disabled */
|
|
545
|
+
get sessionFile() {
|
|
546
|
+
return this.sessionManager.getSessionFile();
|
|
547
|
+
}
|
|
548
|
+
/** Current session ID */
|
|
549
|
+
get sessionId() {
|
|
550
|
+
return this.sessionManager.getSessionId();
|
|
551
|
+
}
|
|
552
|
+
/** Current session display name, if set */
|
|
553
|
+
get sessionName() {
|
|
554
|
+
return this.sessionManager.getSessionName();
|
|
555
|
+
}
|
|
556
|
+
/** Scoped models for cycling (from --models flag) */
|
|
557
|
+
get scopedModels() {
|
|
558
|
+
return this._scopedModels;
|
|
559
|
+
}
|
|
560
|
+
/** Update scoped models for cycling */
|
|
561
|
+
setScopedModels(scopedModels) {
|
|
562
|
+
this._scopedModels = scopedModels;
|
|
563
|
+
}
|
|
564
|
+
/** File-based prompt templates */
|
|
565
|
+
get promptTemplates() {
|
|
566
|
+
return this._resourceLoader.getPrompts().prompts;
|
|
567
|
+
}
|
|
568
|
+
_normalizePromptSnippet(text) {
|
|
569
|
+
if (!text)
|
|
570
|
+
return undefined;
|
|
571
|
+
const oneLine = text
|
|
572
|
+
.replace(/[\r\n]+/g, " ")
|
|
573
|
+
.replace(/\s+/g, " ")
|
|
574
|
+
.trim();
|
|
575
|
+
return oneLine.length > 0 ? oneLine : undefined;
|
|
576
|
+
}
|
|
577
|
+
_normalizePromptGuidelines(guidelines) {
|
|
578
|
+
if (!guidelines || guidelines.length === 0) {
|
|
579
|
+
return [];
|
|
580
|
+
}
|
|
581
|
+
const unique = new Set();
|
|
582
|
+
for (const guideline of guidelines) {
|
|
583
|
+
const normalized = guideline.trim();
|
|
584
|
+
if (normalized.length > 0) {
|
|
585
|
+
unique.add(normalized);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
return Array.from(unique);
|
|
589
|
+
}
|
|
590
|
+
_rebuildSystemPrompt(toolNames) {
|
|
591
|
+
const validToolNames = toolNames.filter((name) => this._toolRegistry.has(name));
|
|
592
|
+
const toolSnippets = {};
|
|
593
|
+
const promptGuidelines = [];
|
|
594
|
+
for (const name of validToolNames) {
|
|
595
|
+
const snippet = this._toolPromptSnippets.get(name);
|
|
596
|
+
if (snippet) {
|
|
597
|
+
toolSnippets[name] = snippet;
|
|
598
|
+
}
|
|
599
|
+
const toolGuidelines = this._toolPromptGuidelines.get(name);
|
|
600
|
+
if (toolGuidelines) {
|
|
601
|
+
promptGuidelines.push(...toolGuidelines);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
const loaderSystemPrompt = this._resourceLoader.getSystemPrompt();
|
|
605
|
+
const loaderAppendSystemPrompt = this._resourceLoader.getAppendSystemPrompt();
|
|
606
|
+
const appendSystemPrompt = loaderAppendSystemPrompt.length > 0 ? loaderAppendSystemPrompt.join("\n\n") : undefined;
|
|
607
|
+
const loadedSkills = this._resourceLoader.getSkills().skills;
|
|
608
|
+
const loadedContextFiles = this._resourceLoader.getAgentsFiles().agentsFiles;
|
|
609
|
+
return buildSystemPrompt({
|
|
610
|
+
cwd: this._cwd,
|
|
611
|
+
skills: loadedSkills,
|
|
612
|
+
contextFiles: loadedContextFiles,
|
|
613
|
+
customPrompt: loaderSystemPrompt,
|
|
614
|
+
appendSystemPrompt,
|
|
615
|
+
selectedTools: validToolNames,
|
|
616
|
+
toolSnippets,
|
|
617
|
+
promptGuidelines,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
// =========================================================================
|
|
621
|
+
// Prompting
|
|
622
|
+
// =========================================================================
|
|
623
|
+
/**
|
|
624
|
+
* Send a prompt to the agent.
|
|
625
|
+
* - Handles extension commands (registered via pi.registerCommand) immediately, even during streaming
|
|
626
|
+
* - Expands file-based prompt templates by default
|
|
627
|
+
* - During streaming, queues via steer() or followUp() based on streamingBehavior option
|
|
628
|
+
* - Validates model and API key before sending (when not streaming)
|
|
629
|
+
* @throws Error if streaming and no streamingBehavior specified
|
|
630
|
+
* @throws Error if no model selected or no API key available (when not streaming)
|
|
631
|
+
*/
|
|
632
|
+
async prompt(text, options) {
|
|
633
|
+
const expandPromptTemplates = options?.expandPromptTemplates ?? true;
|
|
634
|
+
// Handle extension commands first (execute immediately, even during streaming)
|
|
635
|
+
// Extension commands manage their own LLM interaction via pi.sendMessage()
|
|
636
|
+
if (expandPromptTemplates && text.startsWith("/")) {
|
|
637
|
+
const handled = await this._tryExecuteExtensionCommand(text);
|
|
638
|
+
if (handled) {
|
|
639
|
+
// Extension command executed, no prompt to send
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
// Emit input event for extension interception (before skill/template expansion)
|
|
644
|
+
let currentText = text;
|
|
645
|
+
let currentImages = options?.images;
|
|
646
|
+
if (this._extensionRunner?.hasHandlers("input")) {
|
|
647
|
+
const inputResult = await this._extensionRunner.emitInput(currentText, currentImages, options?.source ?? "interactive");
|
|
648
|
+
if (inputResult.action === "handled") {
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
if (inputResult.action === "transform") {
|
|
652
|
+
currentText = inputResult.text;
|
|
653
|
+
currentImages = inputResult.images ?? currentImages;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
// Expand skill commands (/skill:name args) and prompt templates (/template args)
|
|
657
|
+
let expandedText = currentText;
|
|
658
|
+
if (expandPromptTemplates) {
|
|
659
|
+
expandedText = this._expandSkillCommand(expandedText);
|
|
660
|
+
expandedText = expandPromptTemplate(expandedText, [...this.promptTemplates]);
|
|
661
|
+
}
|
|
662
|
+
// If streaming, queue via steer() or followUp() based on option
|
|
663
|
+
if (this.isStreaming) {
|
|
664
|
+
if (!options?.streamingBehavior) {
|
|
665
|
+
throw new Error("Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message.");
|
|
666
|
+
}
|
|
667
|
+
if (options.streamingBehavior === "followUp") {
|
|
668
|
+
await this._queueFollowUp(expandedText, currentImages);
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
await this._queueSteer(expandedText, currentImages);
|
|
672
|
+
}
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
// Flush any pending bash messages before the new prompt
|
|
676
|
+
this._flushPendingBashMessages();
|
|
677
|
+
// Validate model
|
|
678
|
+
if (!this.model) {
|
|
679
|
+
throw new Error("No model selected.\n\n" +
|
|
680
|
+
`Use /login or set an API key environment variable. See ${join(getDocsPath(), "providers.md")}\n\n` +
|
|
681
|
+
"Then use /model to select a model.");
|
|
682
|
+
}
|
|
683
|
+
// Validate API key
|
|
684
|
+
const apiKey = await this._modelRegistry.getApiKey(this.model);
|
|
685
|
+
if (!apiKey) {
|
|
686
|
+
const isOAuth = this._modelRegistry.isUsingOAuth(this.model);
|
|
687
|
+
if (isOAuth) {
|
|
688
|
+
throw new Error(`Authentication failed for "${this.model.provider}". ` +
|
|
689
|
+
`Credentials may have expired or network is unavailable. ` +
|
|
690
|
+
`Run '/login ${this.model.provider}' to re-authenticate.`);
|
|
691
|
+
}
|
|
692
|
+
throw new Error(`No API key found for ${this.model.provider}.\n\n` +
|
|
693
|
+
`Use /login or set an API key environment variable. See ${join(getDocsPath(), "providers.md")}`);
|
|
694
|
+
}
|
|
695
|
+
// Check if we need to compact before sending (catches aborted responses)
|
|
696
|
+
const lastAssistant = this._findLastAssistantMessage();
|
|
697
|
+
if (lastAssistant) {
|
|
698
|
+
await this._checkCompaction(lastAssistant, false);
|
|
699
|
+
}
|
|
700
|
+
// Build messages array (custom message if any, then user message)
|
|
701
|
+
const messages = [];
|
|
702
|
+
// Add user message
|
|
703
|
+
const userContent = [{ type: "text", text: expandedText }];
|
|
704
|
+
if (currentImages) {
|
|
705
|
+
userContent.push(...currentImages);
|
|
706
|
+
}
|
|
707
|
+
messages.push({
|
|
708
|
+
role: "user",
|
|
709
|
+
content: userContent,
|
|
710
|
+
timestamp: Date.now(),
|
|
711
|
+
});
|
|
712
|
+
// Inject any pending "nextTurn" messages as context alongside the user message
|
|
713
|
+
for (const msg of this._pendingNextTurnMessages) {
|
|
714
|
+
messages.push(msg);
|
|
715
|
+
}
|
|
716
|
+
this._pendingNextTurnMessages = [];
|
|
717
|
+
// Emit before_agent_start extension event
|
|
718
|
+
if (this._extensionRunner) {
|
|
719
|
+
const result = await this._extensionRunner.emitBeforeAgentStart(expandedText, currentImages, this._baseSystemPrompt);
|
|
720
|
+
// Add all custom messages from extensions
|
|
721
|
+
if (result?.messages) {
|
|
722
|
+
for (const msg of result.messages) {
|
|
723
|
+
messages.push({
|
|
724
|
+
role: "custom",
|
|
725
|
+
customType: msg.customType,
|
|
726
|
+
content: msg.content,
|
|
727
|
+
display: msg.display,
|
|
728
|
+
details: msg.details,
|
|
729
|
+
timestamp: Date.now(),
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
// Apply extension-modified system prompt, or reset to base
|
|
734
|
+
if (result?.systemPrompt) {
|
|
735
|
+
this.agent.setSystemPrompt(result.systemPrompt);
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
// Ensure we're using the base prompt (in case previous turn had modifications)
|
|
739
|
+
this.agent.setSystemPrompt(this._baseSystemPrompt);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
await this.agent.prompt(messages);
|
|
743
|
+
await this.waitForRetry();
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Try to execute an extension command. Returns true if command was found and executed.
|
|
747
|
+
*/
|
|
748
|
+
async _tryExecuteExtensionCommand(text) {
|
|
749
|
+
if (!this._extensionRunner)
|
|
750
|
+
return false;
|
|
751
|
+
// Parse command name and args
|
|
752
|
+
const spaceIndex = text.indexOf(" ");
|
|
753
|
+
const commandName = spaceIndex === -1 ? text.slice(1) : text.slice(1, spaceIndex);
|
|
754
|
+
const args = spaceIndex === -1 ? "" : text.slice(spaceIndex + 1);
|
|
755
|
+
const command = this._extensionRunner.getCommand(commandName);
|
|
756
|
+
if (!command)
|
|
757
|
+
return false;
|
|
758
|
+
// Get command context from extension runner (includes session control methods)
|
|
759
|
+
const ctx = this._extensionRunner.createCommandContext();
|
|
760
|
+
try {
|
|
761
|
+
await command.handler(args, ctx);
|
|
762
|
+
return true;
|
|
763
|
+
}
|
|
764
|
+
catch (err) {
|
|
765
|
+
// Emit error via extension runner
|
|
766
|
+
this._extensionRunner.emitError({
|
|
767
|
+
extensionPath: `command:${commandName}`,
|
|
768
|
+
event: "command",
|
|
769
|
+
error: err instanceof Error ? err.message : String(err),
|
|
770
|
+
});
|
|
771
|
+
return true;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Expand skill commands (/skill:name args) to their full content.
|
|
776
|
+
* Returns the expanded text, or the original text if not a skill command or skill not found.
|
|
777
|
+
* Emits errors via extension runner if file read fails.
|
|
778
|
+
*/
|
|
779
|
+
_expandSkillCommand(text) {
|
|
780
|
+
if (!text.startsWith("/skill:"))
|
|
781
|
+
return text;
|
|
782
|
+
const spaceIndex = text.indexOf(" ");
|
|
783
|
+
const skillName = spaceIndex === -1 ? text.slice(7) : text.slice(7, spaceIndex);
|
|
784
|
+
const args = spaceIndex === -1 ? "" : text.slice(spaceIndex + 1).trim();
|
|
785
|
+
const skill = this.resourceLoader.getSkills().skills.find((s) => s.name === skillName);
|
|
786
|
+
if (!skill)
|
|
787
|
+
return text; // Unknown skill, pass through
|
|
788
|
+
try {
|
|
789
|
+
const content = readFileSync(skill.filePath, "utf-8");
|
|
790
|
+
const body = stripFrontmatter(content).trim();
|
|
791
|
+
const skillBlock = `<skill name="${skill.name}" location="${skill.filePath}">\nReferences are relative to ${skill.baseDir}.\n\n${body}\n</skill>`;
|
|
792
|
+
return args ? `${skillBlock}\n\n${args}` : skillBlock;
|
|
793
|
+
}
|
|
794
|
+
catch (err) {
|
|
795
|
+
// Emit error like extension commands do
|
|
796
|
+
this._extensionRunner?.emitError({
|
|
797
|
+
extensionPath: skill.filePath,
|
|
798
|
+
event: "skill_expansion",
|
|
799
|
+
error: err instanceof Error ? err.message : String(err),
|
|
800
|
+
});
|
|
801
|
+
return text; // Return original on error
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Queue a steering message to interrupt the agent mid-run.
|
|
806
|
+
* Delivered after current tool execution, skips remaining tools.
|
|
807
|
+
* Expands skill commands and prompt templates. Errors on extension commands.
|
|
808
|
+
* @param images Optional image attachments to include with the message
|
|
809
|
+
* @throws Error if text is an extension command
|
|
810
|
+
*/
|
|
811
|
+
async steer(text, images) {
|
|
812
|
+
// Check for extension commands (cannot be queued)
|
|
813
|
+
if (text.startsWith("/")) {
|
|
814
|
+
this._throwIfExtensionCommand(text);
|
|
815
|
+
}
|
|
816
|
+
// Expand skill commands and prompt templates
|
|
817
|
+
let expandedText = this._expandSkillCommand(text);
|
|
818
|
+
expandedText = expandPromptTemplate(expandedText, [...this.promptTemplates]);
|
|
819
|
+
await this._queueSteer(expandedText, images);
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Queue a follow-up message to be processed after the agent finishes.
|
|
823
|
+
* Delivered only when agent has no more tool calls or steering messages.
|
|
824
|
+
* Expands skill commands and prompt templates. Errors on extension commands.
|
|
825
|
+
* @param images Optional image attachments to include with the message
|
|
826
|
+
* @throws Error if text is an extension command
|
|
827
|
+
*/
|
|
828
|
+
async followUp(text, images) {
|
|
829
|
+
// Check for extension commands (cannot be queued)
|
|
830
|
+
if (text.startsWith("/")) {
|
|
831
|
+
this._throwIfExtensionCommand(text);
|
|
832
|
+
}
|
|
833
|
+
// Expand skill commands and prompt templates
|
|
834
|
+
let expandedText = this._expandSkillCommand(text);
|
|
835
|
+
expandedText = expandPromptTemplate(expandedText, [...this.promptTemplates]);
|
|
836
|
+
await this._queueFollowUp(expandedText, images);
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Internal: Queue a steering message (already expanded, no extension command check).
|
|
840
|
+
*/
|
|
841
|
+
async _queueSteer(text, images) {
|
|
842
|
+
this._steeringMessages.push(text);
|
|
843
|
+
const content = [{ type: "text", text }];
|
|
844
|
+
if (images) {
|
|
845
|
+
content.push(...images);
|
|
846
|
+
}
|
|
847
|
+
this.agent.steer({
|
|
848
|
+
role: "user",
|
|
849
|
+
content,
|
|
850
|
+
timestamp: Date.now(),
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Internal: Queue a follow-up message (already expanded, no extension command check).
|
|
855
|
+
*/
|
|
856
|
+
async _queueFollowUp(text, images) {
|
|
857
|
+
this._followUpMessages.push(text);
|
|
858
|
+
const content = [{ type: "text", text }];
|
|
859
|
+
if (images) {
|
|
860
|
+
content.push(...images);
|
|
861
|
+
}
|
|
862
|
+
this.agent.followUp({
|
|
863
|
+
role: "user",
|
|
864
|
+
content,
|
|
865
|
+
timestamp: Date.now(),
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Throw an error if the text is an extension command.
|
|
870
|
+
*/
|
|
871
|
+
_throwIfExtensionCommand(text) {
|
|
872
|
+
if (!this._extensionRunner)
|
|
873
|
+
return;
|
|
874
|
+
const spaceIndex = text.indexOf(" ");
|
|
875
|
+
const commandName = spaceIndex === -1 ? text.slice(1) : text.slice(1, spaceIndex);
|
|
876
|
+
const command = this._extensionRunner.getCommand(commandName);
|
|
877
|
+
if (command) {
|
|
878
|
+
throw new Error(`Extension command "/${commandName}" cannot be queued. Use prompt() or execute the command when not streaming.`);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Send a custom message to the session. Creates a CustomMessageEntry.
|
|
883
|
+
*
|
|
884
|
+
* Handles three cases:
|
|
885
|
+
* - Streaming: queues message, processed when loop pulls from queue
|
|
886
|
+
* - Not streaming + triggerTurn: appends to state/session, starts new turn
|
|
887
|
+
* - Not streaming + no trigger: appends to state/session, no turn
|
|
888
|
+
*
|
|
889
|
+
* @param message Custom message with customType, content, display, details
|
|
890
|
+
* @param options.triggerTurn If true and not streaming, triggers a new LLM turn
|
|
891
|
+
* @param options.deliverAs Delivery mode: "steer", "followUp", or "nextTurn"
|
|
892
|
+
*/
|
|
893
|
+
async sendCustomMessage(message, options) {
|
|
894
|
+
const appMessage = {
|
|
895
|
+
role: "custom",
|
|
896
|
+
customType: message.customType,
|
|
897
|
+
content: message.content,
|
|
898
|
+
display: message.display,
|
|
899
|
+
details: message.details,
|
|
900
|
+
timestamp: Date.now(),
|
|
901
|
+
};
|
|
902
|
+
if (options?.deliverAs === "nextTurn") {
|
|
903
|
+
this._pendingNextTurnMessages.push(appMessage);
|
|
904
|
+
}
|
|
905
|
+
else if (this.isStreaming) {
|
|
906
|
+
if (options?.deliverAs === "followUp") {
|
|
907
|
+
this.agent.followUp(appMessage);
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
this.agent.steer(appMessage);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
else if (options?.triggerTurn) {
|
|
914
|
+
await this.agent.prompt(appMessage);
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
917
|
+
this.agent.appendMessage(appMessage);
|
|
918
|
+
this.sessionManager.appendCustomMessageEntry(message.customType, message.content, message.display, message.details);
|
|
919
|
+
this._emit({ type: "message_start", message: appMessage });
|
|
920
|
+
this._emit({ type: "message_end", message: appMessage });
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Send a user message to the agent. Always triggers a turn.
|
|
925
|
+
* When the agent is streaming, use deliverAs to specify how to queue the message.
|
|
926
|
+
*
|
|
927
|
+
* @param content User message content (string or content array)
|
|
928
|
+
* @param options.deliverAs Delivery mode when streaming: "steer" or "followUp"
|
|
929
|
+
*/
|
|
930
|
+
async sendUserMessage(content, options) {
|
|
931
|
+
// Normalize content to text string + optional images
|
|
932
|
+
let text;
|
|
933
|
+
let images;
|
|
934
|
+
if (typeof content === "string") {
|
|
935
|
+
text = content;
|
|
936
|
+
}
|
|
937
|
+
else {
|
|
938
|
+
const textParts = [];
|
|
939
|
+
images = [];
|
|
940
|
+
for (const part of content) {
|
|
941
|
+
if (part.type === "text") {
|
|
942
|
+
textParts.push(part.text);
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
images.push(part);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
text = textParts.join("\n");
|
|
949
|
+
if (images.length === 0)
|
|
950
|
+
images = undefined;
|
|
951
|
+
}
|
|
952
|
+
// Use prompt() with expandPromptTemplates: false to skip command handling and template expansion
|
|
953
|
+
await this.prompt(text, {
|
|
954
|
+
expandPromptTemplates: false,
|
|
955
|
+
streamingBehavior: options?.deliverAs,
|
|
956
|
+
images,
|
|
957
|
+
source: "extension",
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Clear all queued messages and return them.
|
|
962
|
+
* Useful for restoring to editor when user aborts.
|
|
963
|
+
* @returns Object with steering and followUp arrays
|
|
964
|
+
*/
|
|
965
|
+
clearQueue() {
|
|
966
|
+
const steering = [...this._steeringMessages];
|
|
967
|
+
const followUp = [...this._followUpMessages];
|
|
968
|
+
this._steeringMessages = [];
|
|
969
|
+
this._followUpMessages = [];
|
|
970
|
+
this.agent.clearAllQueues();
|
|
971
|
+
return { steering, followUp };
|
|
972
|
+
}
|
|
973
|
+
/** Number of pending messages (includes both steering and follow-up) */
|
|
974
|
+
get pendingMessageCount() {
|
|
975
|
+
return this._steeringMessages.length + this._followUpMessages.length;
|
|
976
|
+
}
|
|
977
|
+
/** Get pending steering messages (read-only) */
|
|
978
|
+
getSteeringMessages() {
|
|
979
|
+
return this._steeringMessages;
|
|
980
|
+
}
|
|
981
|
+
/** Get pending follow-up messages (read-only) */
|
|
982
|
+
getFollowUpMessages() {
|
|
983
|
+
return this._followUpMessages;
|
|
984
|
+
}
|
|
985
|
+
get resourceLoader() {
|
|
986
|
+
return this._resourceLoader;
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Abort current operation and wait for agent to become idle.
|
|
990
|
+
*/
|
|
991
|
+
async abort() {
|
|
992
|
+
this.abortRetry();
|
|
993
|
+
this.agent.abort();
|
|
994
|
+
await this.agent.waitForIdle();
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Start a new session, optionally with initial messages and parent tracking.
|
|
998
|
+
* Clears all messages and starts a new session.
|
|
999
|
+
* Listeners are preserved and will continue receiving events.
|
|
1000
|
+
* @param options.parentSession - Optional parent session path for tracking
|
|
1001
|
+
* @param options.setup - Optional callback to initialize session (e.g., append messages)
|
|
1002
|
+
* @returns true if completed, false if cancelled by extension
|
|
1003
|
+
*/
|
|
1004
|
+
async newSession(options) {
|
|
1005
|
+
const previousSessionFile = this.sessionFile;
|
|
1006
|
+
// Emit session_before_switch event with reason "new" (can be cancelled)
|
|
1007
|
+
if (this._extensionRunner?.hasHandlers("session_before_switch")) {
|
|
1008
|
+
const result = (await this._extensionRunner.emit({
|
|
1009
|
+
type: "session_before_switch",
|
|
1010
|
+
reason: "new",
|
|
1011
|
+
}));
|
|
1012
|
+
if (result?.cancel) {
|
|
1013
|
+
return false;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
this._disconnectFromAgent();
|
|
1017
|
+
await this.abort();
|
|
1018
|
+
this.agent.reset();
|
|
1019
|
+
this.sessionManager.newSession({ parentSession: options?.parentSession });
|
|
1020
|
+
this.agent.sessionId = this.sessionManager.getSessionId();
|
|
1021
|
+
this._steeringMessages = [];
|
|
1022
|
+
this._followUpMessages = [];
|
|
1023
|
+
this._pendingNextTurnMessages = [];
|
|
1024
|
+
this.sessionManager.appendThinkingLevelChange(this.thinkingLevel);
|
|
1025
|
+
// Run setup callback if provided (e.g., to append initial messages)
|
|
1026
|
+
if (options?.setup) {
|
|
1027
|
+
await options.setup(this.sessionManager);
|
|
1028
|
+
// Sync agent state with session manager after setup
|
|
1029
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
1030
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
1031
|
+
}
|
|
1032
|
+
this._reconnectToAgent();
|
|
1033
|
+
// Emit session_switch event with reason "new" to extensions
|
|
1034
|
+
if (this._extensionRunner) {
|
|
1035
|
+
await this._extensionRunner.emit({
|
|
1036
|
+
type: "session_switch",
|
|
1037
|
+
reason: "new",
|
|
1038
|
+
previousSessionFile,
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
// Emit session event to custom tools
|
|
1042
|
+
return true;
|
|
1043
|
+
}
|
|
1044
|
+
// =========================================================================
|
|
1045
|
+
// Model Management
|
|
1046
|
+
// =========================================================================
|
|
1047
|
+
async _emitModelSelect(nextModel, previousModel, source) {
|
|
1048
|
+
if (!this._extensionRunner)
|
|
1049
|
+
return;
|
|
1050
|
+
if (modelsAreEqual(previousModel, nextModel))
|
|
1051
|
+
return;
|
|
1052
|
+
await this._extensionRunner.emit({
|
|
1053
|
+
type: "model_select",
|
|
1054
|
+
model: nextModel,
|
|
1055
|
+
previousModel,
|
|
1056
|
+
source,
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Set model directly.
|
|
1061
|
+
* Validates API key, saves to session and settings.
|
|
1062
|
+
* @throws Error if no API key available for the model
|
|
1063
|
+
*/
|
|
1064
|
+
async setModel(model) {
|
|
1065
|
+
const apiKey = await this._modelRegistry.getApiKey(model);
|
|
1066
|
+
if (!apiKey) {
|
|
1067
|
+
throw new Error(`No API key for ${model.provider}/${model.id}`);
|
|
1068
|
+
}
|
|
1069
|
+
const previousModel = this.model;
|
|
1070
|
+
const thinkingLevel = this._getThinkingLevelForModelSwitch();
|
|
1071
|
+
this.agent.setModel(model);
|
|
1072
|
+
this.sessionManager.appendModelChange(model.provider, model.id);
|
|
1073
|
+
this.settingsManager.setDefaultModelAndProvider(model.provider, model.id);
|
|
1074
|
+
// Re-clamp thinking level for new model's capabilities
|
|
1075
|
+
this.setThinkingLevel(thinkingLevel);
|
|
1076
|
+
await this._emitModelSelect(model, previousModel, "set");
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Cycle to next/previous model.
|
|
1080
|
+
* Uses scoped models (from --models flag) if available, otherwise all available models.
|
|
1081
|
+
* @param direction - "forward" (default) or "backward"
|
|
1082
|
+
* @returns The new model info, or undefined if only one model available
|
|
1083
|
+
*/
|
|
1084
|
+
async cycleModel(direction = "forward") {
|
|
1085
|
+
if (this._scopedModels.length > 0) {
|
|
1086
|
+
return this._cycleScopedModel(direction);
|
|
1087
|
+
}
|
|
1088
|
+
return this._cycleAvailableModel(direction);
|
|
1089
|
+
}
|
|
1090
|
+
async _getScopedModelsWithApiKey() {
|
|
1091
|
+
const apiKeysByProvider = new Map();
|
|
1092
|
+
const result = [];
|
|
1093
|
+
for (const scoped of this._scopedModels) {
|
|
1094
|
+
const provider = scoped.model.provider;
|
|
1095
|
+
let apiKey;
|
|
1096
|
+
if (apiKeysByProvider.has(provider)) {
|
|
1097
|
+
apiKey = apiKeysByProvider.get(provider);
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
apiKey = await this._modelRegistry.getApiKeyForProvider(provider);
|
|
1101
|
+
apiKeysByProvider.set(provider, apiKey);
|
|
1102
|
+
}
|
|
1103
|
+
if (apiKey) {
|
|
1104
|
+
result.push(scoped);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return result;
|
|
1108
|
+
}
|
|
1109
|
+
async _cycleScopedModel(direction) {
|
|
1110
|
+
const scopedModels = await this._getScopedModelsWithApiKey();
|
|
1111
|
+
if (scopedModels.length <= 1)
|
|
1112
|
+
return undefined;
|
|
1113
|
+
const currentModel = this.model;
|
|
1114
|
+
let currentIndex = scopedModels.findIndex((sm) => modelsAreEqual(sm.model, currentModel));
|
|
1115
|
+
if (currentIndex === -1)
|
|
1116
|
+
currentIndex = 0;
|
|
1117
|
+
const len = scopedModels.length;
|
|
1118
|
+
const nextIndex = direction === "forward" ? (currentIndex + 1) % len : (currentIndex - 1 + len) % len;
|
|
1119
|
+
const next = scopedModels[nextIndex];
|
|
1120
|
+
const thinkingLevel = this._getThinkingLevelForModelSwitch(next.thinkingLevel);
|
|
1121
|
+
// Apply model
|
|
1122
|
+
this.agent.setModel(next.model);
|
|
1123
|
+
this.sessionManager.appendModelChange(next.model.provider, next.model.id);
|
|
1124
|
+
this.settingsManager.setDefaultModelAndProvider(next.model.provider, next.model.id);
|
|
1125
|
+
// Apply thinking level.
|
|
1126
|
+
// - Explicit scoped model thinking level overrides current session level
|
|
1127
|
+
// - Undefined scoped model thinking level inherits the current session preference
|
|
1128
|
+
// setThinkingLevel clamps to model capabilities.
|
|
1129
|
+
this.setThinkingLevel(thinkingLevel);
|
|
1130
|
+
await this._emitModelSelect(next.model, currentModel, "cycle");
|
|
1131
|
+
return { model: next.model, thinkingLevel: this.thinkingLevel, isScoped: true };
|
|
1132
|
+
}
|
|
1133
|
+
async _cycleAvailableModel(direction) {
|
|
1134
|
+
const availableModels = await this._modelRegistry.getAvailable();
|
|
1135
|
+
if (availableModels.length <= 1)
|
|
1136
|
+
return undefined;
|
|
1137
|
+
const currentModel = this.model;
|
|
1138
|
+
let currentIndex = availableModels.findIndex((m) => modelsAreEqual(m, currentModel));
|
|
1139
|
+
if (currentIndex === -1)
|
|
1140
|
+
currentIndex = 0;
|
|
1141
|
+
const len = availableModels.length;
|
|
1142
|
+
const nextIndex = direction === "forward" ? (currentIndex + 1) % len : (currentIndex - 1 + len) % len;
|
|
1143
|
+
const nextModel = availableModels[nextIndex];
|
|
1144
|
+
const apiKey = await this._modelRegistry.getApiKey(nextModel);
|
|
1145
|
+
if (!apiKey) {
|
|
1146
|
+
throw new Error(`No API key for ${nextModel.provider}/${nextModel.id}`);
|
|
1147
|
+
}
|
|
1148
|
+
const thinkingLevel = this._getThinkingLevelForModelSwitch();
|
|
1149
|
+
this.agent.setModel(nextModel);
|
|
1150
|
+
this.sessionManager.appendModelChange(nextModel.provider, nextModel.id);
|
|
1151
|
+
this.settingsManager.setDefaultModelAndProvider(nextModel.provider, nextModel.id);
|
|
1152
|
+
// Re-clamp thinking level for new model's capabilities
|
|
1153
|
+
this.setThinkingLevel(thinkingLevel);
|
|
1154
|
+
await this._emitModelSelect(nextModel, currentModel, "cycle");
|
|
1155
|
+
return { model: nextModel, thinkingLevel: this.thinkingLevel, isScoped: false };
|
|
1156
|
+
}
|
|
1157
|
+
// =========================================================================
|
|
1158
|
+
// Thinking Level Management
|
|
1159
|
+
// =========================================================================
|
|
1160
|
+
/**
|
|
1161
|
+
* Set thinking level.
|
|
1162
|
+
* Clamps to model capabilities based on available thinking levels.
|
|
1163
|
+
* Saves to session and settings only if the level actually changes.
|
|
1164
|
+
*/
|
|
1165
|
+
setThinkingLevel(level) {
|
|
1166
|
+
const availableLevels = this.getAvailableThinkingLevels();
|
|
1167
|
+
const effectiveLevel = availableLevels.includes(level) ? level : this._clampThinkingLevel(level, availableLevels);
|
|
1168
|
+
// Only persist if actually changing
|
|
1169
|
+
const isChanging = effectiveLevel !== this.agent.state.thinkingLevel;
|
|
1170
|
+
this.agent.setThinkingLevel(effectiveLevel);
|
|
1171
|
+
if (isChanging) {
|
|
1172
|
+
this.sessionManager.appendThinkingLevelChange(effectiveLevel);
|
|
1173
|
+
if (this.supportsThinking() || effectiveLevel !== "off") {
|
|
1174
|
+
this.settingsManager.setDefaultThinkingLevel(effectiveLevel);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Cycle to next thinking level.
|
|
1180
|
+
* @returns New level, or undefined if model doesn't support thinking
|
|
1181
|
+
*/
|
|
1182
|
+
cycleThinkingLevel() {
|
|
1183
|
+
if (!this.supportsThinking())
|
|
1184
|
+
return undefined;
|
|
1185
|
+
const levels = this.getAvailableThinkingLevels();
|
|
1186
|
+
const currentIndex = levels.indexOf(this.thinkingLevel);
|
|
1187
|
+
const nextIndex = (currentIndex + 1) % levels.length;
|
|
1188
|
+
const nextLevel = levels[nextIndex];
|
|
1189
|
+
this.setThinkingLevel(nextLevel);
|
|
1190
|
+
return nextLevel;
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Get available thinking levels for current model.
|
|
1194
|
+
* The provider will clamp to what the specific model supports internally.
|
|
1195
|
+
*/
|
|
1196
|
+
getAvailableThinkingLevels() {
|
|
1197
|
+
if (!this.supportsThinking())
|
|
1198
|
+
return ["off"];
|
|
1199
|
+
return this.supportsXhighThinking() ? THINKING_LEVELS_WITH_XHIGH : THINKING_LEVELS;
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Check if current model supports xhigh thinking level.
|
|
1203
|
+
*/
|
|
1204
|
+
supportsXhighThinking() {
|
|
1205
|
+
return this.model ? supportsXhigh(this.model) : false;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Check if current model supports thinking/reasoning.
|
|
1209
|
+
*/
|
|
1210
|
+
supportsThinking() {
|
|
1211
|
+
return !!this.model?.reasoning;
|
|
1212
|
+
}
|
|
1213
|
+
_getThinkingLevelForModelSwitch(explicitLevel) {
|
|
1214
|
+
if (explicitLevel !== undefined) {
|
|
1215
|
+
return explicitLevel;
|
|
1216
|
+
}
|
|
1217
|
+
if (!this.supportsThinking()) {
|
|
1218
|
+
return this.settingsManager.getDefaultThinkingLevel() ?? DEFAULT_THINKING_LEVEL;
|
|
1219
|
+
}
|
|
1220
|
+
return this.thinkingLevel;
|
|
1221
|
+
}
|
|
1222
|
+
_clampThinkingLevel(level, availableLevels) {
|
|
1223
|
+
const ordered = THINKING_LEVELS_WITH_XHIGH;
|
|
1224
|
+
const available = new Set(availableLevels);
|
|
1225
|
+
const requestedIndex = ordered.indexOf(level);
|
|
1226
|
+
if (requestedIndex === -1) {
|
|
1227
|
+
return availableLevels[0] ?? "off";
|
|
1228
|
+
}
|
|
1229
|
+
for (let i = requestedIndex; i < ordered.length; i++) {
|
|
1230
|
+
const candidate = ordered[i];
|
|
1231
|
+
if (available.has(candidate))
|
|
1232
|
+
return candidate;
|
|
1233
|
+
}
|
|
1234
|
+
for (let i = requestedIndex - 1; i >= 0; i--) {
|
|
1235
|
+
const candidate = ordered[i];
|
|
1236
|
+
if (available.has(candidate))
|
|
1237
|
+
return candidate;
|
|
1238
|
+
}
|
|
1239
|
+
return availableLevels[0] ?? "off";
|
|
1240
|
+
}
|
|
1241
|
+
// =========================================================================
|
|
1242
|
+
// Queue Mode Management
|
|
1243
|
+
// =========================================================================
|
|
1244
|
+
/**
|
|
1245
|
+
* Set steering message mode.
|
|
1246
|
+
* Saves to settings.
|
|
1247
|
+
*/
|
|
1248
|
+
setSteeringMode(mode) {
|
|
1249
|
+
this.agent.setSteeringMode(mode);
|
|
1250
|
+
this.settingsManager.setSteeringMode(mode);
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* Set follow-up message mode.
|
|
1254
|
+
* Saves to settings.
|
|
1255
|
+
*/
|
|
1256
|
+
setFollowUpMode(mode) {
|
|
1257
|
+
this.agent.setFollowUpMode(mode);
|
|
1258
|
+
this.settingsManager.setFollowUpMode(mode);
|
|
1259
|
+
}
|
|
1260
|
+
// =========================================================================
|
|
1261
|
+
// Compaction
|
|
1262
|
+
// =========================================================================
|
|
1263
|
+
/**
|
|
1264
|
+
* Manually compact the session context.
|
|
1265
|
+
* Aborts current agent operation first.
|
|
1266
|
+
* @param customInstructions Optional instructions for the compaction summary
|
|
1267
|
+
*/
|
|
1268
|
+
async compact(customInstructions) {
|
|
1269
|
+
this._disconnectFromAgent();
|
|
1270
|
+
await this.abort();
|
|
1271
|
+
this._compactionAbortController = new AbortController();
|
|
1272
|
+
try {
|
|
1273
|
+
if (!this.model) {
|
|
1274
|
+
throw new Error("No model selected");
|
|
1275
|
+
}
|
|
1276
|
+
const apiKey = await this._modelRegistry.getApiKey(this.model);
|
|
1277
|
+
if (!apiKey) {
|
|
1278
|
+
throw new Error(`No API key for ${this.model.provider}`);
|
|
1279
|
+
}
|
|
1280
|
+
const pathEntries = this.sessionManager.getBranch();
|
|
1281
|
+
const settings = this.settingsManager.getCompactionSettings();
|
|
1282
|
+
const preparation = prepareCompaction(pathEntries, settings);
|
|
1283
|
+
if (!preparation) {
|
|
1284
|
+
// Check why we can't compact
|
|
1285
|
+
const lastEntry = pathEntries[pathEntries.length - 1];
|
|
1286
|
+
if (lastEntry?.type === "compaction") {
|
|
1287
|
+
throw new Error("Already compacted");
|
|
1288
|
+
}
|
|
1289
|
+
throw new Error("Nothing to compact (session too small)");
|
|
1290
|
+
}
|
|
1291
|
+
let extensionCompaction;
|
|
1292
|
+
let fromExtension = false;
|
|
1293
|
+
if (this._extensionRunner?.hasHandlers("session_before_compact")) {
|
|
1294
|
+
const result = (await this._extensionRunner.emit({
|
|
1295
|
+
type: "session_before_compact",
|
|
1296
|
+
preparation,
|
|
1297
|
+
branchEntries: pathEntries,
|
|
1298
|
+
customInstructions,
|
|
1299
|
+
signal: this._compactionAbortController.signal,
|
|
1300
|
+
}));
|
|
1301
|
+
if (result?.cancel) {
|
|
1302
|
+
throw new Error("Compaction cancelled");
|
|
1303
|
+
}
|
|
1304
|
+
if (result?.compaction) {
|
|
1305
|
+
extensionCompaction = result.compaction;
|
|
1306
|
+
fromExtension = true;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
let summary;
|
|
1310
|
+
let firstKeptEntryId;
|
|
1311
|
+
let tokensBefore;
|
|
1312
|
+
let details;
|
|
1313
|
+
if (extensionCompaction) {
|
|
1314
|
+
// Extension provided compaction content
|
|
1315
|
+
summary = extensionCompaction.summary;
|
|
1316
|
+
firstKeptEntryId = extensionCompaction.firstKeptEntryId;
|
|
1317
|
+
tokensBefore = extensionCompaction.tokensBefore;
|
|
1318
|
+
details = extensionCompaction.details;
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
// Generate compaction result
|
|
1322
|
+
const result = await compact(preparation, this.model, apiKey, customInstructions, this._compactionAbortController.signal);
|
|
1323
|
+
summary = result.summary;
|
|
1324
|
+
firstKeptEntryId = result.firstKeptEntryId;
|
|
1325
|
+
tokensBefore = result.tokensBefore;
|
|
1326
|
+
details = result.details;
|
|
1327
|
+
}
|
|
1328
|
+
if (this._compactionAbortController.signal.aborted) {
|
|
1329
|
+
throw new Error("Compaction cancelled");
|
|
1330
|
+
}
|
|
1331
|
+
this.sessionManager.appendCompaction(summary, firstKeptEntryId, tokensBefore, details, fromExtension);
|
|
1332
|
+
const newEntries = this.sessionManager.getEntries();
|
|
1333
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
1334
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
1335
|
+
// Get the saved compaction entry for the extension event
|
|
1336
|
+
const savedCompactionEntry = newEntries.find((e) => e.type === "compaction" && e.summary === summary);
|
|
1337
|
+
if (this._extensionRunner && savedCompactionEntry) {
|
|
1338
|
+
await this._extensionRunner.emit({
|
|
1339
|
+
type: "session_compact",
|
|
1340
|
+
compactionEntry: savedCompactionEntry,
|
|
1341
|
+
fromExtension,
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
return {
|
|
1345
|
+
summary,
|
|
1346
|
+
firstKeptEntryId,
|
|
1347
|
+
tokensBefore,
|
|
1348
|
+
details,
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
finally {
|
|
1352
|
+
this._compactionAbortController = undefined;
|
|
1353
|
+
this._reconnectToAgent();
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Cancel in-progress compaction (manual or auto).
|
|
1358
|
+
*/
|
|
1359
|
+
abortCompaction() {
|
|
1360
|
+
this._compactionAbortController?.abort();
|
|
1361
|
+
this._autoCompactionAbortController?.abort();
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Cancel in-progress branch summarization.
|
|
1365
|
+
*/
|
|
1366
|
+
abortBranchSummary() {
|
|
1367
|
+
this._branchSummaryAbortController?.abort();
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Check if compaction is needed and run it.
|
|
1371
|
+
* Called after agent_end and before prompt submission.
|
|
1372
|
+
*
|
|
1373
|
+
* Two cases:
|
|
1374
|
+
* 1. Overflow: LLM returned context overflow error, remove error message from agent state, compact, auto-retry
|
|
1375
|
+
* 2. Threshold: Context over threshold, compact, NO auto-retry (user continues manually)
|
|
1376
|
+
*
|
|
1377
|
+
* @param assistantMessage The assistant message to check
|
|
1378
|
+
* @param skipAbortedCheck If false, include aborted messages (for pre-prompt check). Default: true
|
|
1379
|
+
*/
|
|
1380
|
+
async _checkCompaction(assistantMessage, skipAbortedCheck = true) {
|
|
1381
|
+
const settings = this.settingsManager.getCompactionSettings();
|
|
1382
|
+
if (!settings.enabled)
|
|
1383
|
+
return;
|
|
1384
|
+
// Skip if message was aborted (user cancelled) - unless skipAbortedCheck is false
|
|
1385
|
+
if (skipAbortedCheck && assistantMessage.stopReason === "aborted")
|
|
1386
|
+
return;
|
|
1387
|
+
const contextWindow = this.model?.contextWindow ?? 0;
|
|
1388
|
+
// Skip overflow check if the message came from a different model.
|
|
1389
|
+
// This handles the case where user switched from a smaller-context model (e.g. opus)
|
|
1390
|
+
// to a larger-context model (e.g. codex) - the overflow error from the old model
|
|
1391
|
+
// shouldn't trigger compaction for the new model.
|
|
1392
|
+
const sameModel = this.model && assistantMessage.provider === this.model.provider && assistantMessage.model === this.model.id;
|
|
1393
|
+
// Skip compaction checks if this assistant message is older than the latest
|
|
1394
|
+
// compaction boundary. This prevents a stale pre-compaction usage/error
|
|
1395
|
+
// from retriggering compaction on the first prompt after compaction.
|
|
1396
|
+
const compactionEntry = getLatestCompactionEntry(this.sessionManager.getBranch());
|
|
1397
|
+
const assistantIsFromBeforeCompaction = compactionEntry !== null && assistantMessage.timestamp <= new Date(compactionEntry.timestamp).getTime();
|
|
1398
|
+
if (assistantIsFromBeforeCompaction) {
|
|
1399
|
+
return;
|
|
1400
|
+
}
|
|
1401
|
+
// Case 1: Overflow - LLM returned context overflow error
|
|
1402
|
+
if (sameModel && isContextOverflow(assistantMessage, contextWindow)) {
|
|
1403
|
+
if (this._overflowRecoveryAttempted) {
|
|
1404
|
+
this._emit({
|
|
1405
|
+
type: "auto_compaction_end",
|
|
1406
|
+
result: undefined,
|
|
1407
|
+
aborted: false,
|
|
1408
|
+
willRetry: false,
|
|
1409
|
+
errorMessage: "Context overflow recovery failed after one compact-and-retry attempt. Try reducing context or switching to a larger-context model.",
|
|
1410
|
+
});
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
this._overflowRecoveryAttempted = true;
|
|
1414
|
+
// Remove the error message from agent state (it IS saved to session for history,
|
|
1415
|
+
// but we don't want it in context for the retry)
|
|
1416
|
+
const messages = this.agent.state.messages;
|
|
1417
|
+
if (messages.length > 0 && messages[messages.length - 1].role === "assistant") {
|
|
1418
|
+
this.agent.replaceMessages(messages.slice(0, -1));
|
|
1419
|
+
}
|
|
1420
|
+
await this._runAutoCompaction("overflow", true);
|
|
1421
|
+
return;
|
|
1422
|
+
}
|
|
1423
|
+
// Case 2: Threshold - context is getting large
|
|
1424
|
+
// For error messages (no usage data), estimate from last successful response.
|
|
1425
|
+
// This ensures sessions that hit persistent API errors (e.g. 529) can still compact.
|
|
1426
|
+
let contextTokens;
|
|
1427
|
+
if (assistantMessage.stopReason === "error") {
|
|
1428
|
+
const messages = this.agent.state.messages;
|
|
1429
|
+
const estimate = estimateContextTokens(messages);
|
|
1430
|
+
if (estimate.lastUsageIndex === null)
|
|
1431
|
+
return; // No usage data at all
|
|
1432
|
+
// Verify the usage source is post-compaction. Kept pre-compaction messages
|
|
1433
|
+
// have stale usage reflecting the old (larger) context and would falsely
|
|
1434
|
+
// trigger compaction right after one just finished.
|
|
1435
|
+
const usageMsg = messages[estimate.lastUsageIndex];
|
|
1436
|
+
if (compactionEntry &&
|
|
1437
|
+
usageMsg.role === "assistant" &&
|
|
1438
|
+
usageMsg.timestamp <= new Date(compactionEntry.timestamp).getTime()) {
|
|
1439
|
+
return;
|
|
1440
|
+
}
|
|
1441
|
+
contextTokens = estimate.tokens;
|
|
1442
|
+
}
|
|
1443
|
+
else {
|
|
1444
|
+
contextTokens = calculateContextTokens(assistantMessage.usage);
|
|
1445
|
+
}
|
|
1446
|
+
if (shouldCompact(contextTokens, contextWindow, settings)) {
|
|
1447
|
+
await this._runAutoCompaction("threshold", false);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* Internal: Run auto-compaction with events.
|
|
1452
|
+
*/
|
|
1453
|
+
async _runAutoCompaction(reason, willRetry) {
|
|
1454
|
+
const settings = this.settingsManager.getCompactionSettings();
|
|
1455
|
+
this._emit({ type: "auto_compaction_start", reason });
|
|
1456
|
+
this._autoCompactionAbortController = new AbortController();
|
|
1457
|
+
try {
|
|
1458
|
+
if (!this.model) {
|
|
1459
|
+
this._emit({ type: "auto_compaction_end", result: undefined, aborted: false, willRetry: false });
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
1462
|
+
const apiKey = await this._modelRegistry.getApiKey(this.model);
|
|
1463
|
+
if (!apiKey) {
|
|
1464
|
+
this._emit({ type: "auto_compaction_end", result: undefined, aborted: false, willRetry: false });
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
const pathEntries = this.sessionManager.getBranch();
|
|
1468
|
+
const preparation = prepareCompaction(pathEntries, settings);
|
|
1469
|
+
if (!preparation) {
|
|
1470
|
+
this._emit({ type: "auto_compaction_end", result: undefined, aborted: false, willRetry: false });
|
|
1471
|
+
return;
|
|
1472
|
+
}
|
|
1473
|
+
let extensionCompaction;
|
|
1474
|
+
let fromExtension = false;
|
|
1475
|
+
if (this._extensionRunner?.hasHandlers("session_before_compact")) {
|
|
1476
|
+
const extensionResult = (await this._extensionRunner.emit({
|
|
1477
|
+
type: "session_before_compact",
|
|
1478
|
+
preparation,
|
|
1479
|
+
branchEntries: pathEntries,
|
|
1480
|
+
customInstructions: undefined,
|
|
1481
|
+
signal: this._autoCompactionAbortController.signal,
|
|
1482
|
+
}));
|
|
1483
|
+
if (extensionResult?.cancel) {
|
|
1484
|
+
this._emit({ type: "auto_compaction_end", result: undefined, aborted: true, willRetry: false });
|
|
1485
|
+
return;
|
|
1486
|
+
}
|
|
1487
|
+
if (extensionResult?.compaction) {
|
|
1488
|
+
extensionCompaction = extensionResult.compaction;
|
|
1489
|
+
fromExtension = true;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
let summary;
|
|
1493
|
+
let firstKeptEntryId;
|
|
1494
|
+
let tokensBefore;
|
|
1495
|
+
let details;
|
|
1496
|
+
if (extensionCompaction) {
|
|
1497
|
+
// Extension provided compaction content
|
|
1498
|
+
summary = extensionCompaction.summary;
|
|
1499
|
+
firstKeptEntryId = extensionCompaction.firstKeptEntryId;
|
|
1500
|
+
tokensBefore = extensionCompaction.tokensBefore;
|
|
1501
|
+
details = extensionCompaction.details;
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
// Generate compaction result
|
|
1505
|
+
const compactResult = await compact(preparation, this.model, apiKey, undefined, this._autoCompactionAbortController.signal);
|
|
1506
|
+
summary = compactResult.summary;
|
|
1507
|
+
firstKeptEntryId = compactResult.firstKeptEntryId;
|
|
1508
|
+
tokensBefore = compactResult.tokensBefore;
|
|
1509
|
+
details = compactResult.details;
|
|
1510
|
+
}
|
|
1511
|
+
if (this._autoCompactionAbortController.signal.aborted) {
|
|
1512
|
+
this._emit({ type: "auto_compaction_end", result: undefined, aborted: true, willRetry: false });
|
|
1513
|
+
return;
|
|
1514
|
+
}
|
|
1515
|
+
this.sessionManager.appendCompaction(summary, firstKeptEntryId, tokensBefore, details, fromExtension);
|
|
1516
|
+
const newEntries = this.sessionManager.getEntries();
|
|
1517
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
1518
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
1519
|
+
// Get the saved compaction entry for the extension event
|
|
1520
|
+
const savedCompactionEntry = newEntries.find((e) => e.type === "compaction" && e.summary === summary);
|
|
1521
|
+
if (this._extensionRunner && savedCompactionEntry) {
|
|
1522
|
+
await this._extensionRunner.emit({
|
|
1523
|
+
type: "session_compact",
|
|
1524
|
+
compactionEntry: savedCompactionEntry,
|
|
1525
|
+
fromExtension,
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
const result = {
|
|
1529
|
+
summary,
|
|
1530
|
+
firstKeptEntryId,
|
|
1531
|
+
tokensBefore,
|
|
1532
|
+
details,
|
|
1533
|
+
};
|
|
1534
|
+
this._emit({ type: "auto_compaction_end", result, aborted: false, willRetry });
|
|
1535
|
+
if (willRetry) {
|
|
1536
|
+
const messages = this.agent.state.messages;
|
|
1537
|
+
const lastMsg = messages[messages.length - 1];
|
|
1538
|
+
if (lastMsg?.role === "assistant" && lastMsg.stopReason === "error") {
|
|
1539
|
+
this.agent.replaceMessages(messages.slice(0, -1));
|
|
1540
|
+
}
|
|
1541
|
+
setTimeout(() => {
|
|
1542
|
+
this.agent.continue().catch(() => { });
|
|
1543
|
+
}, 100);
|
|
1544
|
+
}
|
|
1545
|
+
else if (this.agent.hasQueuedMessages()) {
|
|
1546
|
+
// Auto-compaction can complete while follow-up/steering/custom messages are waiting.
|
|
1547
|
+
// Kick the loop so queued messages are actually delivered.
|
|
1548
|
+
setTimeout(() => {
|
|
1549
|
+
this.agent.continue().catch(() => { });
|
|
1550
|
+
}, 100);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
catch (error) {
|
|
1554
|
+
const errorMessage = error instanceof Error ? error.message : "compaction failed";
|
|
1555
|
+
this._emit({
|
|
1556
|
+
type: "auto_compaction_end",
|
|
1557
|
+
result: undefined,
|
|
1558
|
+
aborted: false,
|
|
1559
|
+
willRetry: false,
|
|
1560
|
+
errorMessage: reason === "overflow"
|
|
1561
|
+
? `Context overflow recovery failed: ${errorMessage}`
|
|
1562
|
+
: `Auto-compaction failed: ${errorMessage}`,
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
finally {
|
|
1566
|
+
this._autoCompactionAbortController = undefined;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Toggle auto-compaction setting.
|
|
1571
|
+
*/
|
|
1572
|
+
setAutoCompactionEnabled(enabled) {
|
|
1573
|
+
this.settingsManager.setCompactionEnabled(enabled);
|
|
1574
|
+
}
|
|
1575
|
+
/** Whether auto-compaction is enabled */
|
|
1576
|
+
get autoCompactionEnabled() {
|
|
1577
|
+
return this.settingsManager.getCompactionEnabled();
|
|
1578
|
+
}
|
|
1579
|
+
async bindExtensions(bindings) {
|
|
1580
|
+
if (bindings.uiContext !== undefined) {
|
|
1581
|
+
this._extensionUIContext = bindings.uiContext;
|
|
1582
|
+
}
|
|
1583
|
+
if (bindings.commandContextActions !== undefined) {
|
|
1584
|
+
this._extensionCommandContextActions = bindings.commandContextActions;
|
|
1585
|
+
}
|
|
1586
|
+
if (bindings.shutdownHandler !== undefined) {
|
|
1587
|
+
this._extensionShutdownHandler = bindings.shutdownHandler;
|
|
1588
|
+
}
|
|
1589
|
+
if (bindings.onError !== undefined) {
|
|
1590
|
+
this._extensionErrorListener = bindings.onError;
|
|
1591
|
+
}
|
|
1592
|
+
if (this._extensionRunner) {
|
|
1593
|
+
this._applyExtensionBindings(this._extensionRunner);
|
|
1594
|
+
await this._extensionRunner.emit({ type: "session_start" });
|
|
1595
|
+
await this.extendResourcesFromExtensions("startup");
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
async extendResourcesFromExtensions(reason) {
|
|
1599
|
+
if (!this._extensionRunner?.hasHandlers("resources_discover")) {
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
const { skillPaths, promptPaths, themePaths } = await this._extensionRunner.emitResourcesDiscover(this._cwd, reason);
|
|
1603
|
+
if (skillPaths.length === 0 && promptPaths.length === 0 && themePaths.length === 0) {
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
const extensionPaths = {
|
|
1607
|
+
skillPaths: this.buildExtensionResourcePaths(skillPaths),
|
|
1608
|
+
promptPaths: this.buildExtensionResourcePaths(promptPaths),
|
|
1609
|
+
themePaths: this.buildExtensionResourcePaths(themePaths),
|
|
1610
|
+
};
|
|
1611
|
+
this._resourceLoader.extendResources(extensionPaths);
|
|
1612
|
+
this._baseSystemPrompt = this._rebuildSystemPrompt(this.getActiveToolNames());
|
|
1613
|
+
this.agent.setSystemPrompt(this._baseSystemPrompt);
|
|
1614
|
+
}
|
|
1615
|
+
buildExtensionResourcePaths(entries) {
|
|
1616
|
+
return entries.map((entry) => {
|
|
1617
|
+
const source = this.getExtensionSourceLabel(entry.extensionPath);
|
|
1618
|
+
const baseDir = entry.extensionPath.startsWith("<") ? undefined : dirname(entry.extensionPath);
|
|
1619
|
+
return {
|
|
1620
|
+
path: entry.path,
|
|
1621
|
+
metadata: {
|
|
1622
|
+
source,
|
|
1623
|
+
scope: "temporary",
|
|
1624
|
+
origin: "top-level",
|
|
1625
|
+
baseDir,
|
|
1626
|
+
},
|
|
1627
|
+
};
|
|
1628
|
+
});
|
|
1629
|
+
}
|
|
1630
|
+
getExtensionSourceLabel(extensionPath) {
|
|
1631
|
+
if (extensionPath.startsWith("<")) {
|
|
1632
|
+
return `extension:${extensionPath.replace(/[<>]/g, "")}`;
|
|
1633
|
+
}
|
|
1634
|
+
const base = basename(extensionPath);
|
|
1635
|
+
const name = base.replace(/\.(ts|js)$/, "");
|
|
1636
|
+
return `extension:${name}`;
|
|
1637
|
+
}
|
|
1638
|
+
_applyExtensionBindings(runner) {
|
|
1639
|
+
runner.setUIContext(this._extensionUIContext);
|
|
1640
|
+
runner.bindCommandContext(this._extensionCommandContextActions);
|
|
1641
|
+
this._extensionErrorUnsubscriber?.();
|
|
1642
|
+
this._extensionErrorUnsubscriber = this._extensionErrorListener
|
|
1643
|
+
? runner.onError(this._extensionErrorListener)
|
|
1644
|
+
: undefined;
|
|
1645
|
+
}
|
|
1646
|
+
_bindExtensionCore(runner) {
|
|
1647
|
+
const normalizeLocation = (source) => {
|
|
1648
|
+
if (source === "user" || source === "project" || source === "path") {
|
|
1649
|
+
return source;
|
|
1650
|
+
}
|
|
1651
|
+
return undefined;
|
|
1652
|
+
};
|
|
1653
|
+
const reservedBuiltins = new Set(BUILTIN_SLASH_COMMANDS.map((command) => command.name));
|
|
1654
|
+
const getCommands = () => {
|
|
1655
|
+
const extensionCommands = runner
|
|
1656
|
+
.getRegisteredCommandsWithPaths()
|
|
1657
|
+
.filter(({ command }) => !reservedBuiltins.has(command.name))
|
|
1658
|
+
.map(({ command, extensionPath }) => ({
|
|
1659
|
+
name: command.name,
|
|
1660
|
+
description: command.description,
|
|
1661
|
+
source: "extension",
|
|
1662
|
+
path: extensionPath,
|
|
1663
|
+
}));
|
|
1664
|
+
const templates = this.promptTemplates.map((template) => ({
|
|
1665
|
+
name: template.name,
|
|
1666
|
+
description: template.description,
|
|
1667
|
+
source: "prompt",
|
|
1668
|
+
location: normalizeLocation(template.source),
|
|
1669
|
+
path: template.filePath,
|
|
1670
|
+
}));
|
|
1671
|
+
const skills = this._resourceLoader.getSkills().skills.map((skill) => ({
|
|
1672
|
+
name: `skill:${skill.name}`,
|
|
1673
|
+
description: skill.description,
|
|
1674
|
+
source: "skill",
|
|
1675
|
+
location: normalizeLocation(skill.source),
|
|
1676
|
+
path: skill.filePath,
|
|
1677
|
+
}));
|
|
1678
|
+
return [...extensionCommands, ...templates, ...skills];
|
|
1679
|
+
};
|
|
1680
|
+
runner.bindCore({
|
|
1681
|
+
sendMessage: (message, options) => {
|
|
1682
|
+
this.sendCustomMessage(message, options).catch((err) => {
|
|
1683
|
+
runner.emitError({
|
|
1684
|
+
extensionPath: "<runtime>",
|
|
1685
|
+
event: "send_message",
|
|
1686
|
+
error: err instanceof Error ? err.message : String(err),
|
|
1687
|
+
});
|
|
1688
|
+
});
|
|
1689
|
+
},
|
|
1690
|
+
sendUserMessage: (content, options) => {
|
|
1691
|
+
this.sendUserMessage(content, options).catch((err) => {
|
|
1692
|
+
runner.emitError({
|
|
1693
|
+
extensionPath: "<runtime>",
|
|
1694
|
+
event: "send_user_message",
|
|
1695
|
+
error: err instanceof Error ? err.message : String(err),
|
|
1696
|
+
});
|
|
1697
|
+
});
|
|
1698
|
+
},
|
|
1699
|
+
appendEntry: (customType, data) => {
|
|
1700
|
+
this.sessionManager.appendCustomEntry(customType, data);
|
|
1701
|
+
},
|
|
1702
|
+
setSessionName: (name) => {
|
|
1703
|
+
this.sessionManager.appendSessionInfo(name);
|
|
1704
|
+
},
|
|
1705
|
+
getSessionName: () => {
|
|
1706
|
+
return this.sessionManager.getSessionName();
|
|
1707
|
+
},
|
|
1708
|
+
setLabel: (entryId, label) => {
|
|
1709
|
+
this.sessionManager.appendLabelChange(entryId, label);
|
|
1710
|
+
},
|
|
1711
|
+
getActiveTools: () => this.getActiveToolNames(),
|
|
1712
|
+
getAllTools: () => this.getAllTools(),
|
|
1713
|
+
setActiveTools: (toolNames) => this.setActiveToolsByName(toolNames),
|
|
1714
|
+
refreshTools: () => this._refreshToolRegistry(),
|
|
1715
|
+
getCommands,
|
|
1716
|
+
setModel: async (model) => {
|
|
1717
|
+
const key = await this.modelRegistry.getApiKey(model);
|
|
1718
|
+
if (!key)
|
|
1719
|
+
return false;
|
|
1720
|
+
await this.setModel(model);
|
|
1721
|
+
return true;
|
|
1722
|
+
},
|
|
1723
|
+
getThinkingLevel: () => this.thinkingLevel,
|
|
1724
|
+
setThinkingLevel: (level) => this.setThinkingLevel(level),
|
|
1725
|
+
}, {
|
|
1726
|
+
getModel: () => this.model,
|
|
1727
|
+
isIdle: () => !this.isStreaming,
|
|
1728
|
+
abort: () => this.abort(),
|
|
1729
|
+
hasPendingMessages: () => this.pendingMessageCount > 0,
|
|
1730
|
+
shutdown: () => {
|
|
1731
|
+
this._extensionShutdownHandler?.();
|
|
1732
|
+
},
|
|
1733
|
+
getContextUsage: () => this.getContextUsage(),
|
|
1734
|
+
compact: (options) => {
|
|
1735
|
+
void (async () => {
|
|
1736
|
+
try {
|
|
1737
|
+
const result = await this.compact(options?.customInstructions);
|
|
1738
|
+
options?.onComplete?.(result);
|
|
1739
|
+
}
|
|
1740
|
+
catch (error) {
|
|
1741
|
+
const err = error instanceof Error ? error : new Error(String(error));
|
|
1742
|
+
options?.onError?.(err);
|
|
1743
|
+
}
|
|
1744
|
+
})();
|
|
1745
|
+
},
|
|
1746
|
+
getSystemPrompt: () => this.systemPrompt,
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
_refreshToolRegistry(options) {
|
|
1750
|
+
const previousRegistryNames = new Set(this._toolRegistry.keys());
|
|
1751
|
+
const previousActiveToolNames = this.getActiveToolNames();
|
|
1752
|
+
const registeredTools = this._extensionRunner?.getAllRegisteredTools() ?? [];
|
|
1753
|
+
const allCustomTools = [
|
|
1754
|
+
...registeredTools,
|
|
1755
|
+
...this._customTools.map((def) => ({ definition: def, extensionPath: "<sdk>" })),
|
|
1756
|
+
];
|
|
1757
|
+
this._toolPromptSnippets = new Map(allCustomTools
|
|
1758
|
+
.map((registeredTool) => {
|
|
1759
|
+
const snippet = this._normalizePromptSnippet(registeredTool.definition.promptSnippet ?? registeredTool.definition.description);
|
|
1760
|
+
return snippet ? [registeredTool.definition.name, snippet] : undefined;
|
|
1761
|
+
})
|
|
1762
|
+
.filter((entry) => entry !== undefined));
|
|
1763
|
+
this._toolPromptGuidelines = new Map(allCustomTools
|
|
1764
|
+
.map((registeredTool) => {
|
|
1765
|
+
const guidelines = this._normalizePromptGuidelines(registeredTool.definition.promptGuidelines);
|
|
1766
|
+
return guidelines.length > 0 ? [registeredTool.definition.name, guidelines] : undefined;
|
|
1767
|
+
})
|
|
1768
|
+
.filter((entry) => entry !== undefined));
|
|
1769
|
+
const wrappedExtensionTools = this._extensionRunner
|
|
1770
|
+
? wrapRegisteredTools(allCustomTools, this._extensionRunner)
|
|
1771
|
+
: [];
|
|
1772
|
+
const toolRegistry = new Map(this._baseToolRegistry);
|
|
1773
|
+
for (const tool of wrappedExtensionTools) {
|
|
1774
|
+
toolRegistry.set(tool.name, tool);
|
|
1775
|
+
}
|
|
1776
|
+
this._toolRegistry = toolRegistry;
|
|
1777
|
+
const nextActiveToolNames = options?.activeToolNames
|
|
1778
|
+
? [...options.activeToolNames]
|
|
1779
|
+
: [...previousActiveToolNames];
|
|
1780
|
+
if (options?.includeAllExtensionTools) {
|
|
1781
|
+
for (const tool of wrappedExtensionTools) {
|
|
1782
|
+
nextActiveToolNames.push(tool.name);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
else if (!options?.activeToolNames) {
|
|
1786
|
+
for (const toolName of this._toolRegistry.keys()) {
|
|
1787
|
+
if (!previousRegistryNames.has(toolName)) {
|
|
1788
|
+
nextActiveToolNames.push(toolName);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
this.setActiveToolsByName([...new Set(nextActiveToolNames)]);
|
|
1793
|
+
}
|
|
1794
|
+
_buildRuntime(options) {
|
|
1795
|
+
const autoResizeImages = this.settingsManager.getImageAutoResize();
|
|
1796
|
+
const shellCommandPrefix = this.settingsManager.getShellCommandPrefix();
|
|
1797
|
+
const baseTools = this._baseToolsOverride
|
|
1798
|
+
? this._baseToolsOverride
|
|
1799
|
+
: createAllTools(this._cwd, {
|
|
1800
|
+
read: { autoResizeImages },
|
|
1801
|
+
bash: { commandPrefix: shellCommandPrefix },
|
|
1802
|
+
});
|
|
1803
|
+
this._baseToolRegistry = new Map(Object.entries(baseTools).map(([name, tool]) => [name, tool]));
|
|
1804
|
+
const extensionsResult = this._resourceLoader.getExtensions();
|
|
1805
|
+
if (options.flagValues) {
|
|
1806
|
+
for (const [name, value] of options.flagValues) {
|
|
1807
|
+
extensionsResult.runtime.flagValues.set(name, value);
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
const hasExtensions = extensionsResult.extensions.length > 0;
|
|
1811
|
+
const hasCustomTools = this._customTools.length > 0;
|
|
1812
|
+
this._extensionRunner =
|
|
1813
|
+
hasExtensions || hasCustomTools
|
|
1814
|
+
? new ExtensionRunner(extensionsResult.extensions, extensionsResult.runtime, this._cwd, this.sessionManager, this._modelRegistry)
|
|
1815
|
+
: undefined;
|
|
1816
|
+
if (this._extensionRunnerRef) {
|
|
1817
|
+
this._extensionRunnerRef.current = this._extensionRunner;
|
|
1818
|
+
}
|
|
1819
|
+
if (this._extensionRunner) {
|
|
1820
|
+
this._bindExtensionCore(this._extensionRunner);
|
|
1821
|
+
this._applyExtensionBindings(this._extensionRunner);
|
|
1822
|
+
}
|
|
1823
|
+
const defaultActiveToolNames = this._baseToolsOverride
|
|
1824
|
+
? Object.keys(this._baseToolsOverride)
|
|
1825
|
+
: ["read", "bash", "edit", "write"];
|
|
1826
|
+
const baseActiveToolNames = options.activeToolNames ?? defaultActiveToolNames;
|
|
1827
|
+
this._refreshToolRegistry({
|
|
1828
|
+
activeToolNames: baseActiveToolNames,
|
|
1829
|
+
includeAllExtensionTools: options.includeAllExtensionTools,
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
async reload() {
|
|
1833
|
+
const previousFlagValues = this._extensionRunner?.getFlagValues();
|
|
1834
|
+
await this._extensionRunner?.emit({ type: "session_shutdown" });
|
|
1835
|
+
this.settingsManager.reload();
|
|
1836
|
+
resetApiProviders();
|
|
1837
|
+
await this._resourceLoader.reload();
|
|
1838
|
+
this._buildRuntime({
|
|
1839
|
+
activeToolNames: this.getActiveToolNames(),
|
|
1840
|
+
flagValues: previousFlagValues,
|
|
1841
|
+
includeAllExtensionTools: true,
|
|
1842
|
+
});
|
|
1843
|
+
const hasBindings = this._extensionUIContext ||
|
|
1844
|
+
this._extensionCommandContextActions ||
|
|
1845
|
+
this._extensionShutdownHandler ||
|
|
1846
|
+
this._extensionErrorListener;
|
|
1847
|
+
if (this._extensionRunner && hasBindings) {
|
|
1848
|
+
await this._extensionRunner.emit({ type: "session_start" });
|
|
1849
|
+
await this.extendResourcesFromExtensions("reload");
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
// =========================================================================
|
|
1853
|
+
// Auto-Retry
|
|
1854
|
+
// =========================================================================
|
|
1855
|
+
/**
|
|
1856
|
+
* Check if an error is retryable (overloaded, rate limit, server errors).
|
|
1857
|
+
* Context overflow errors are NOT retryable (handled by compaction instead).
|
|
1858
|
+
*/
|
|
1859
|
+
_isRetryableError(message) {
|
|
1860
|
+
if (message.stopReason !== "error" || !message.errorMessage)
|
|
1861
|
+
return false;
|
|
1862
|
+
// Context overflow is handled by compaction, not retry
|
|
1863
|
+
const contextWindow = this.model?.contextWindow ?? 0;
|
|
1864
|
+
if (isContextOverflow(message, contextWindow))
|
|
1865
|
+
return false;
|
|
1866
|
+
const err = message.errorMessage;
|
|
1867
|
+
// Match: overloaded_error, rate limit, 429, 500, 502, 503, 504, service unavailable, connection errors, fetch failed, terminated, retry delay exceeded
|
|
1868
|
+
return /overloaded|rate.?limit|too many requests|429|500|502|503|504|service.?unavailable|server.?error|internal.?error|connection.?error|connection.?refused|other side closed|fetch failed|upstream.?connect|reset before headers|terminated|retry delay/i.test(err);
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Handle retryable errors with exponential backoff.
|
|
1872
|
+
* @returns true if retry was initiated, false if max retries exceeded or disabled
|
|
1873
|
+
*/
|
|
1874
|
+
async _handleRetryableError(message) {
|
|
1875
|
+
const settings = this.settingsManager.getRetrySettings();
|
|
1876
|
+
if (!settings.enabled) {
|
|
1877
|
+
this._resolveRetry();
|
|
1878
|
+
return false;
|
|
1879
|
+
}
|
|
1880
|
+
// Retry promise is created synchronously in _handleAgentEvent for agent_end.
|
|
1881
|
+
// Keep a defensive fallback here in case a future refactor bypasses that path.
|
|
1882
|
+
if (!this._retryPromise) {
|
|
1883
|
+
this._retryPromise = new Promise((resolve) => {
|
|
1884
|
+
this._retryResolve = resolve;
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
this._retryAttempt++;
|
|
1888
|
+
if (this._retryAttempt > settings.maxRetries) {
|
|
1889
|
+
// Max retries exceeded, emit final failure and reset
|
|
1890
|
+
this._emit({
|
|
1891
|
+
type: "auto_retry_end",
|
|
1892
|
+
success: false,
|
|
1893
|
+
attempt: this._retryAttempt - 1,
|
|
1894
|
+
finalError: message.errorMessage,
|
|
1895
|
+
});
|
|
1896
|
+
this._retryAttempt = 0;
|
|
1897
|
+
this._resolveRetry(); // Resolve so waitForRetry() completes
|
|
1898
|
+
return false;
|
|
1899
|
+
}
|
|
1900
|
+
const delayMs = settings.baseDelayMs * 2 ** (this._retryAttempt - 1);
|
|
1901
|
+
this._emit({
|
|
1902
|
+
type: "auto_retry_start",
|
|
1903
|
+
attempt: this._retryAttempt,
|
|
1904
|
+
maxAttempts: settings.maxRetries,
|
|
1905
|
+
delayMs,
|
|
1906
|
+
errorMessage: message.errorMessage || "Unknown error",
|
|
1907
|
+
});
|
|
1908
|
+
// Remove error message from agent state (keep in session for history)
|
|
1909
|
+
const messages = this.agent.state.messages;
|
|
1910
|
+
if (messages.length > 0 && messages[messages.length - 1].role === "assistant") {
|
|
1911
|
+
this.agent.replaceMessages(messages.slice(0, -1));
|
|
1912
|
+
}
|
|
1913
|
+
// Wait with exponential backoff (abortable)
|
|
1914
|
+
this._retryAbortController = new AbortController();
|
|
1915
|
+
try {
|
|
1916
|
+
await sleep(delayMs, this._retryAbortController.signal);
|
|
1917
|
+
}
|
|
1918
|
+
catch {
|
|
1919
|
+
// Aborted during sleep - emit end event so UI can clean up
|
|
1920
|
+
const attempt = this._retryAttempt;
|
|
1921
|
+
this._retryAttempt = 0;
|
|
1922
|
+
this._retryAbortController = undefined;
|
|
1923
|
+
this._emit({
|
|
1924
|
+
type: "auto_retry_end",
|
|
1925
|
+
success: false,
|
|
1926
|
+
attempt,
|
|
1927
|
+
finalError: "Retry cancelled",
|
|
1928
|
+
});
|
|
1929
|
+
this._resolveRetry();
|
|
1930
|
+
return false;
|
|
1931
|
+
}
|
|
1932
|
+
this._retryAbortController = undefined;
|
|
1933
|
+
// Retry via continue() - use setTimeout to break out of event handler chain
|
|
1934
|
+
setTimeout(() => {
|
|
1935
|
+
this.agent.continue().catch(() => {
|
|
1936
|
+
// Retry failed - will be caught by next agent_end
|
|
1937
|
+
});
|
|
1938
|
+
}, 0);
|
|
1939
|
+
return true;
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* Cancel in-progress retry.
|
|
1943
|
+
*/
|
|
1944
|
+
abortRetry() {
|
|
1945
|
+
this._retryAbortController?.abort();
|
|
1946
|
+
// Note: _retryAttempt is reset in the catch block of _autoRetry
|
|
1947
|
+
this._resolveRetry();
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Wait for any in-progress retry to complete.
|
|
1951
|
+
* Returns immediately if no retry is in progress.
|
|
1952
|
+
*/
|
|
1953
|
+
async waitForRetry() {
|
|
1954
|
+
if (this._retryPromise) {
|
|
1955
|
+
await this._retryPromise;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
/** Whether auto-retry is currently in progress */
|
|
1959
|
+
get isRetrying() {
|
|
1960
|
+
return this._retryPromise !== undefined;
|
|
1961
|
+
}
|
|
1962
|
+
/** Whether auto-retry is enabled */
|
|
1963
|
+
get autoRetryEnabled() {
|
|
1964
|
+
return this.settingsManager.getRetryEnabled();
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Toggle auto-retry setting.
|
|
1968
|
+
*/
|
|
1969
|
+
setAutoRetryEnabled(enabled) {
|
|
1970
|
+
this.settingsManager.setRetryEnabled(enabled);
|
|
1971
|
+
}
|
|
1972
|
+
// =========================================================================
|
|
1973
|
+
// Bash Execution
|
|
1974
|
+
// =========================================================================
|
|
1975
|
+
/**
|
|
1976
|
+
* Execute a bash command.
|
|
1977
|
+
* Adds result to agent context and session.
|
|
1978
|
+
* @param command The bash command to execute
|
|
1979
|
+
* @param onChunk Optional streaming callback for output
|
|
1980
|
+
* @param options.excludeFromContext If true, command output won't be sent to LLM (!! prefix)
|
|
1981
|
+
* @param options.operations Custom BashOperations for remote execution
|
|
1982
|
+
*/
|
|
1983
|
+
async executeBash(command, onChunk, options) {
|
|
1984
|
+
this._bashAbortController = new AbortController();
|
|
1985
|
+
// Apply command prefix if configured (e.g., "shopt -s expand_aliases" for alias support)
|
|
1986
|
+
const prefix = this.settingsManager.getShellCommandPrefix();
|
|
1987
|
+
const resolvedCommand = prefix ? `${prefix}\n${command}` : command;
|
|
1988
|
+
try {
|
|
1989
|
+
const result = options?.operations
|
|
1990
|
+
? await executeBashWithOperations(resolvedCommand, process.cwd(), options.operations, {
|
|
1991
|
+
onChunk,
|
|
1992
|
+
signal: this._bashAbortController.signal,
|
|
1993
|
+
})
|
|
1994
|
+
: await executeBashCommand(resolvedCommand, {
|
|
1995
|
+
onChunk,
|
|
1996
|
+
signal: this._bashAbortController.signal,
|
|
1997
|
+
});
|
|
1998
|
+
this.recordBashResult(command, result, options);
|
|
1999
|
+
return result;
|
|
2000
|
+
}
|
|
2001
|
+
finally {
|
|
2002
|
+
this._bashAbortController = undefined;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Record a bash execution result in session history.
|
|
2007
|
+
* Used by executeBash and by extensions that handle bash execution themselves.
|
|
2008
|
+
*/
|
|
2009
|
+
recordBashResult(command, result, options) {
|
|
2010
|
+
const bashMessage = {
|
|
2011
|
+
role: "bashExecution",
|
|
2012
|
+
command,
|
|
2013
|
+
output: result.output,
|
|
2014
|
+
exitCode: result.exitCode,
|
|
2015
|
+
cancelled: result.cancelled,
|
|
2016
|
+
truncated: result.truncated,
|
|
2017
|
+
fullOutputPath: result.fullOutputPath,
|
|
2018
|
+
timestamp: Date.now(),
|
|
2019
|
+
excludeFromContext: options?.excludeFromContext,
|
|
2020
|
+
};
|
|
2021
|
+
// If agent is streaming, defer adding to avoid breaking tool_use/tool_result ordering
|
|
2022
|
+
if (this.isStreaming) {
|
|
2023
|
+
// Queue for later - will be flushed on agent_end
|
|
2024
|
+
this._pendingBashMessages.push(bashMessage);
|
|
2025
|
+
}
|
|
2026
|
+
else {
|
|
2027
|
+
// Add to agent state immediately
|
|
2028
|
+
this.agent.appendMessage(bashMessage);
|
|
2029
|
+
// Save to session
|
|
2030
|
+
this.sessionManager.appendMessage(bashMessage);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Cancel running bash command.
|
|
2035
|
+
*/
|
|
2036
|
+
abortBash() {
|
|
2037
|
+
this._bashAbortController?.abort();
|
|
2038
|
+
}
|
|
2039
|
+
/** Whether a bash command is currently running */
|
|
2040
|
+
get isBashRunning() {
|
|
2041
|
+
return this._bashAbortController !== undefined;
|
|
2042
|
+
}
|
|
2043
|
+
/** Whether there are pending bash messages waiting to be flushed */
|
|
2044
|
+
get hasPendingBashMessages() {
|
|
2045
|
+
return this._pendingBashMessages.length > 0;
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* Flush pending bash messages to agent state and session.
|
|
2049
|
+
* Called after agent turn completes to maintain proper message ordering.
|
|
2050
|
+
*/
|
|
2051
|
+
_flushPendingBashMessages() {
|
|
2052
|
+
if (this._pendingBashMessages.length === 0)
|
|
2053
|
+
return;
|
|
2054
|
+
for (const bashMessage of this._pendingBashMessages) {
|
|
2055
|
+
// Add to agent state
|
|
2056
|
+
this.agent.appendMessage(bashMessage);
|
|
2057
|
+
// Save to session
|
|
2058
|
+
this.sessionManager.appendMessage(bashMessage);
|
|
2059
|
+
}
|
|
2060
|
+
this._pendingBashMessages = [];
|
|
2061
|
+
}
|
|
2062
|
+
// =========================================================================
|
|
2063
|
+
// Session Management
|
|
2064
|
+
// =========================================================================
|
|
2065
|
+
/**
|
|
2066
|
+
* Switch to a different session file.
|
|
2067
|
+
* Aborts current operation, loads messages, restores model/thinking.
|
|
2068
|
+
* Listeners are preserved and will continue receiving events.
|
|
2069
|
+
* @returns true if switch completed, false if cancelled by extension
|
|
2070
|
+
*/
|
|
2071
|
+
async switchSession(sessionPath) {
|
|
2072
|
+
const previousSessionFile = this.sessionManager.getSessionFile();
|
|
2073
|
+
// Emit session_before_switch event (can be cancelled)
|
|
2074
|
+
if (this._extensionRunner?.hasHandlers("session_before_switch")) {
|
|
2075
|
+
const result = (await this._extensionRunner.emit({
|
|
2076
|
+
type: "session_before_switch",
|
|
2077
|
+
reason: "resume",
|
|
2078
|
+
targetSessionFile: sessionPath,
|
|
2079
|
+
}));
|
|
2080
|
+
if (result?.cancel) {
|
|
2081
|
+
return false;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
this._disconnectFromAgent();
|
|
2085
|
+
await this.abort();
|
|
2086
|
+
this._steeringMessages = [];
|
|
2087
|
+
this._followUpMessages = [];
|
|
2088
|
+
this._pendingNextTurnMessages = [];
|
|
2089
|
+
// Set new session
|
|
2090
|
+
this.sessionManager.setSessionFile(sessionPath);
|
|
2091
|
+
this.agent.sessionId = this.sessionManager.getSessionId();
|
|
2092
|
+
// Reload messages
|
|
2093
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
2094
|
+
// Emit session_switch event to extensions
|
|
2095
|
+
if (this._extensionRunner) {
|
|
2096
|
+
await this._extensionRunner.emit({
|
|
2097
|
+
type: "session_switch",
|
|
2098
|
+
reason: "resume",
|
|
2099
|
+
previousSessionFile,
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
// Emit session event to custom tools
|
|
2103
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
2104
|
+
// Restore model if saved
|
|
2105
|
+
if (sessionContext.model) {
|
|
2106
|
+
const previousModel = this.model;
|
|
2107
|
+
const availableModels = await this._modelRegistry.getAvailable();
|
|
2108
|
+
const match = availableModels.find((m) => m.provider === sessionContext.model.provider && m.id === sessionContext.model.modelId);
|
|
2109
|
+
if (match) {
|
|
2110
|
+
this.agent.setModel(match);
|
|
2111
|
+
await this._emitModelSelect(match, previousModel, "restore");
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
const hasThinkingEntry = this.sessionManager.getBranch().some((entry) => entry.type === "thinking_level_change");
|
|
2115
|
+
const defaultThinkingLevel = this.settingsManager.getDefaultThinkingLevel() ?? DEFAULT_THINKING_LEVEL;
|
|
2116
|
+
if (hasThinkingEntry) {
|
|
2117
|
+
// Restore thinking level if saved (setThinkingLevel clamps to model capabilities)
|
|
2118
|
+
this.setThinkingLevel(sessionContext.thinkingLevel);
|
|
2119
|
+
}
|
|
2120
|
+
else {
|
|
2121
|
+
const availableLevels = this.getAvailableThinkingLevels();
|
|
2122
|
+
const effectiveLevel = availableLevels.includes(defaultThinkingLevel)
|
|
2123
|
+
? defaultThinkingLevel
|
|
2124
|
+
: this._clampThinkingLevel(defaultThinkingLevel, availableLevels);
|
|
2125
|
+
this.agent.setThinkingLevel(effectiveLevel);
|
|
2126
|
+
this.sessionManager.appendThinkingLevelChange(effectiveLevel);
|
|
2127
|
+
}
|
|
2128
|
+
this._reconnectToAgent();
|
|
2129
|
+
return true;
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Set a display name for the current session.
|
|
2133
|
+
*/
|
|
2134
|
+
setSessionName(name) {
|
|
2135
|
+
this.sessionManager.appendSessionInfo(name);
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Create a fork from a specific entry.
|
|
2139
|
+
* Emits before_fork/fork session events to extensions.
|
|
2140
|
+
*
|
|
2141
|
+
* @param entryId ID of the entry to fork from
|
|
2142
|
+
* @returns Object with:
|
|
2143
|
+
* - selectedText: The text of the selected user message (for editor pre-fill)
|
|
2144
|
+
* - cancelled: True if an extension cancelled the fork
|
|
2145
|
+
*/
|
|
2146
|
+
async fork(entryId) {
|
|
2147
|
+
const previousSessionFile = this.sessionFile;
|
|
2148
|
+
const selectedEntry = this.sessionManager.getEntry(entryId);
|
|
2149
|
+
if (!selectedEntry || selectedEntry.type !== "message" || selectedEntry.message.role !== "user") {
|
|
2150
|
+
throw new Error("Invalid entry ID for forking");
|
|
2151
|
+
}
|
|
2152
|
+
const selectedText = this._extractUserMessageText(selectedEntry.message.content);
|
|
2153
|
+
let skipConversationRestore = false;
|
|
2154
|
+
// Emit session_before_fork event (can be cancelled)
|
|
2155
|
+
if (this._extensionRunner?.hasHandlers("session_before_fork")) {
|
|
2156
|
+
const result = (await this._extensionRunner.emit({
|
|
2157
|
+
type: "session_before_fork",
|
|
2158
|
+
entryId,
|
|
2159
|
+
}));
|
|
2160
|
+
if (result?.cancel) {
|
|
2161
|
+
return { selectedText, cancelled: true };
|
|
2162
|
+
}
|
|
2163
|
+
skipConversationRestore = result?.skipConversationRestore ?? false;
|
|
2164
|
+
}
|
|
2165
|
+
// Clear pending messages (bound to old session state)
|
|
2166
|
+
this._pendingNextTurnMessages = [];
|
|
2167
|
+
if (!selectedEntry.parentId) {
|
|
2168
|
+
this.sessionManager.newSession({ parentSession: previousSessionFile });
|
|
2169
|
+
}
|
|
2170
|
+
else {
|
|
2171
|
+
this.sessionManager.createBranchedSession(selectedEntry.parentId);
|
|
2172
|
+
}
|
|
2173
|
+
this.agent.sessionId = this.sessionManager.getSessionId();
|
|
2174
|
+
// Reload messages from entries (works for both file and in-memory mode)
|
|
2175
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
2176
|
+
// Emit session_fork event to extensions (after fork completes)
|
|
2177
|
+
if (this._extensionRunner) {
|
|
2178
|
+
await this._extensionRunner.emit({
|
|
2179
|
+
type: "session_fork",
|
|
2180
|
+
previousSessionFile,
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
// Emit session event to custom tools (with reason "fork")
|
|
2184
|
+
if (!skipConversationRestore) {
|
|
2185
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
2186
|
+
}
|
|
2187
|
+
return { selectedText, cancelled: false };
|
|
2188
|
+
}
|
|
2189
|
+
// =========================================================================
|
|
2190
|
+
// Tree Navigation
|
|
2191
|
+
// =========================================================================
|
|
2192
|
+
/**
|
|
2193
|
+
* Navigate to a different node in the session tree.
|
|
2194
|
+
* Unlike fork() which creates a new session file, this stays in the same file.
|
|
2195
|
+
*
|
|
2196
|
+
* @param targetId The entry ID to navigate to
|
|
2197
|
+
* @param options.summarize Whether user wants to summarize abandoned branch
|
|
2198
|
+
* @param options.customInstructions Custom instructions for summarizer
|
|
2199
|
+
* @param options.replaceInstructions If true, customInstructions replaces the default prompt
|
|
2200
|
+
* @param options.label Label to attach to the branch summary entry
|
|
2201
|
+
* @returns Result with editorText (if user message) and cancelled status
|
|
2202
|
+
*/
|
|
2203
|
+
async navigateTree(targetId, options = {}) {
|
|
2204
|
+
const oldLeafId = this.sessionManager.getLeafId();
|
|
2205
|
+
// No-op if already at target
|
|
2206
|
+
if (targetId === oldLeafId) {
|
|
2207
|
+
return { cancelled: false };
|
|
2208
|
+
}
|
|
2209
|
+
// Model required for summarization
|
|
2210
|
+
if (options.summarize && !this.model) {
|
|
2211
|
+
throw new Error("No model available for summarization");
|
|
2212
|
+
}
|
|
2213
|
+
const targetEntry = this.sessionManager.getEntry(targetId);
|
|
2214
|
+
if (!targetEntry) {
|
|
2215
|
+
throw new Error(`Entry ${targetId} not found`);
|
|
2216
|
+
}
|
|
2217
|
+
// Collect entries to summarize (from old leaf to common ancestor)
|
|
2218
|
+
const { entries: entriesToSummarize, commonAncestorId } = collectEntriesForBranchSummary(this.sessionManager, oldLeafId, targetId);
|
|
2219
|
+
// Prepare event data - mutable so extensions can override
|
|
2220
|
+
let customInstructions = options.customInstructions;
|
|
2221
|
+
let replaceInstructions = options.replaceInstructions;
|
|
2222
|
+
let label = options.label;
|
|
2223
|
+
const preparation = {
|
|
2224
|
+
targetId,
|
|
2225
|
+
oldLeafId,
|
|
2226
|
+
commonAncestorId,
|
|
2227
|
+
entriesToSummarize,
|
|
2228
|
+
userWantsSummary: options.summarize ?? false,
|
|
2229
|
+
customInstructions,
|
|
2230
|
+
replaceInstructions,
|
|
2231
|
+
label,
|
|
2232
|
+
};
|
|
2233
|
+
// Set up abort controller for summarization
|
|
2234
|
+
this._branchSummaryAbortController = new AbortController();
|
|
2235
|
+
let extensionSummary;
|
|
2236
|
+
let fromExtension = false;
|
|
2237
|
+
// Emit session_before_tree event
|
|
2238
|
+
if (this._extensionRunner?.hasHandlers("session_before_tree")) {
|
|
2239
|
+
const result = (await this._extensionRunner.emit({
|
|
2240
|
+
type: "session_before_tree",
|
|
2241
|
+
preparation,
|
|
2242
|
+
signal: this._branchSummaryAbortController.signal,
|
|
2243
|
+
}));
|
|
2244
|
+
if (result?.cancel) {
|
|
2245
|
+
return { cancelled: true };
|
|
2246
|
+
}
|
|
2247
|
+
if (result?.summary && options.summarize) {
|
|
2248
|
+
extensionSummary = result.summary;
|
|
2249
|
+
fromExtension = true;
|
|
2250
|
+
}
|
|
2251
|
+
// Allow extensions to override instructions and label
|
|
2252
|
+
if (result?.customInstructions !== undefined) {
|
|
2253
|
+
customInstructions = result.customInstructions;
|
|
2254
|
+
}
|
|
2255
|
+
if (result?.replaceInstructions !== undefined) {
|
|
2256
|
+
replaceInstructions = result.replaceInstructions;
|
|
2257
|
+
}
|
|
2258
|
+
if (result?.label !== undefined) {
|
|
2259
|
+
label = result.label;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
// Run default summarizer if needed
|
|
2263
|
+
let summaryText;
|
|
2264
|
+
let summaryDetails;
|
|
2265
|
+
if (options.summarize && entriesToSummarize.length > 0 && !extensionSummary) {
|
|
2266
|
+
const model = this.model;
|
|
2267
|
+
const apiKey = await this._modelRegistry.getApiKey(model);
|
|
2268
|
+
if (!apiKey) {
|
|
2269
|
+
throw new Error(`No API key for ${model.provider}`);
|
|
2270
|
+
}
|
|
2271
|
+
const branchSummarySettings = this.settingsManager.getBranchSummarySettings();
|
|
2272
|
+
const result = await generateBranchSummary(entriesToSummarize, {
|
|
2273
|
+
model,
|
|
2274
|
+
apiKey,
|
|
2275
|
+
signal: this._branchSummaryAbortController.signal,
|
|
2276
|
+
customInstructions,
|
|
2277
|
+
replaceInstructions,
|
|
2278
|
+
reserveTokens: branchSummarySettings.reserveTokens,
|
|
2279
|
+
});
|
|
2280
|
+
this._branchSummaryAbortController = undefined;
|
|
2281
|
+
if (result.aborted) {
|
|
2282
|
+
return { cancelled: true, aborted: true };
|
|
2283
|
+
}
|
|
2284
|
+
if (result.error) {
|
|
2285
|
+
throw new Error(result.error);
|
|
2286
|
+
}
|
|
2287
|
+
summaryText = result.summary;
|
|
2288
|
+
summaryDetails = {
|
|
2289
|
+
readFiles: result.readFiles || [],
|
|
2290
|
+
modifiedFiles: result.modifiedFiles || [],
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
else if (extensionSummary) {
|
|
2294
|
+
summaryText = extensionSummary.summary;
|
|
2295
|
+
summaryDetails = extensionSummary.details;
|
|
2296
|
+
}
|
|
2297
|
+
// Determine the new leaf position based on target type
|
|
2298
|
+
let newLeafId;
|
|
2299
|
+
let editorText;
|
|
2300
|
+
if (targetEntry.type === "message" && targetEntry.message.role === "user") {
|
|
2301
|
+
// User message: leaf = parent (null if root), text goes to editor
|
|
2302
|
+
newLeafId = targetEntry.parentId;
|
|
2303
|
+
editorText = this._extractUserMessageText(targetEntry.message.content);
|
|
2304
|
+
}
|
|
2305
|
+
else if (targetEntry.type === "custom_message") {
|
|
2306
|
+
// Custom message: leaf = parent (null if root), text goes to editor
|
|
2307
|
+
newLeafId = targetEntry.parentId;
|
|
2308
|
+
editorText =
|
|
2309
|
+
typeof targetEntry.content === "string"
|
|
2310
|
+
? targetEntry.content
|
|
2311
|
+
: targetEntry.content
|
|
2312
|
+
.filter((c) => c.type === "text")
|
|
2313
|
+
.map((c) => c.text)
|
|
2314
|
+
.join("");
|
|
2315
|
+
}
|
|
2316
|
+
else {
|
|
2317
|
+
// Non-user message: leaf = selected node
|
|
2318
|
+
newLeafId = targetId;
|
|
2319
|
+
}
|
|
2320
|
+
// Switch leaf (with or without summary)
|
|
2321
|
+
// Summary is attached at the navigation target position (newLeafId), not the old branch
|
|
2322
|
+
let summaryEntry;
|
|
2323
|
+
if (summaryText) {
|
|
2324
|
+
// Create summary at target position (can be null for root)
|
|
2325
|
+
const summaryId = this.sessionManager.branchWithSummary(newLeafId, summaryText, summaryDetails, fromExtension);
|
|
2326
|
+
summaryEntry = this.sessionManager.getEntry(summaryId);
|
|
2327
|
+
// Attach label to the summary entry
|
|
2328
|
+
if (label) {
|
|
2329
|
+
this.sessionManager.appendLabelChange(summaryId, label);
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
else if (newLeafId === null) {
|
|
2333
|
+
// No summary, navigating to root - reset leaf
|
|
2334
|
+
this.sessionManager.resetLeaf();
|
|
2335
|
+
}
|
|
2336
|
+
else {
|
|
2337
|
+
// No summary, navigating to non-root
|
|
2338
|
+
this.sessionManager.branch(newLeafId);
|
|
2339
|
+
}
|
|
2340
|
+
// Attach label to target entry when not summarizing (no summary entry to label)
|
|
2341
|
+
if (label && !summaryText) {
|
|
2342
|
+
this.sessionManager.appendLabelChange(targetId, label);
|
|
2343
|
+
}
|
|
2344
|
+
// Update agent state
|
|
2345
|
+
const sessionContext = this.sessionManager.buildSessionContext();
|
|
2346
|
+
this.agent.replaceMessages(sessionContext.messages);
|
|
2347
|
+
// Emit session_tree event
|
|
2348
|
+
if (this._extensionRunner) {
|
|
2349
|
+
await this._extensionRunner.emit({
|
|
2350
|
+
type: "session_tree",
|
|
2351
|
+
newLeafId: this.sessionManager.getLeafId(),
|
|
2352
|
+
oldLeafId,
|
|
2353
|
+
summaryEntry,
|
|
2354
|
+
fromExtension: summaryText ? fromExtension : undefined,
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
// Emit to custom tools
|
|
2358
|
+
this._branchSummaryAbortController = undefined;
|
|
2359
|
+
return { editorText, cancelled: false, summaryEntry };
|
|
2360
|
+
}
|
|
2361
|
+
/**
|
|
2362
|
+
* Get all user messages from session for fork selector.
|
|
2363
|
+
*/
|
|
2364
|
+
getUserMessagesForForking() {
|
|
2365
|
+
const entries = this.sessionManager.getEntries();
|
|
2366
|
+
const result = [];
|
|
2367
|
+
for (const entry of entries) {
|
|
2368
|
+
if (entry.type !== "message")
|
|
2369
|
+
continue;
|
|
2370
|
+
if (entry.message.role !== "user")
|
|
2371
|
+
continue;
|
|
2372
|
+
const text = this._extractUserMessageText(entry.message.content);
|
|
2373
|
+
if (text) {
|
|
2374
|
+
result.push({ entryId: entry.id, text });
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
return result;
|
|
2378
|
+
}
|
|
2379
|
+
_extractUserMessageText(content) {
|
|
2380
|
+
if (typeof content === "string")
|
|
2381
|
+
return content;
|
|
2382
|
+
if (Array.isArray(content)) {
|
|
2383
|
+
return content
|
|
2384
|
+
.filter((c) => c.type === "text")
|
|
2385
|
+
.map((c) => c.text)
|
|
2386
|
+
.join("");
|
|
2387
|
+
}
|
|
2388
|
+
return "";
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* Get session statistics.
|
|
2392
|
+
*/
|
|
2393
|
+
getSessionStats() {
|
|
2394
|
+
const state = this.state;
|
|
2395
|
+
const userMessages = state.messages.filter((m) => m.role === "user").length;
|
|
2396
|
+
const assistantMessages = state.messages.filter((m) => m.role === "assistant").length;
|
|
2397
|
+
const toolResults = state.messages.filter((m) => m.role === "toolResult").length;
|
|
2398
|
+
let toolCalls = 0;
|
|
2399
|
+
let totalInput = 0;
|
|
2400
|
+
let totalOutput = 0;
|
|
2401
|
+
let totalCacheRead = 0;
|
|
2402
|
+
let totalCacheWrite = 0;
|
|
2403
|
+
let totalCost = 0;
|
|
2404
|
+
for (const message of state.messages) {
|
|
2405
|
+
if (message.role === "assistant") {
|
|
2406
|
+
const assistantMsg = message;
|
|
2407
|
+
toolCalls += assistantMsg.content.filter((c) => c.type === "toolCall").length;
|
|
2408
|
+
totalInput += assistantMsg.usage.input;
|
|
2409
|
+
totalOutput += assistantMsg.usage.output;
|
|
2410
|
+
totalCacheRead += assistantMsg.usage.cacheRead;
|
|
2411
|
+
totalCacheWrite += assistantMsg.usage.cacheWrite;
|
|
2412
|
+
totalCost += assistantMsg.usage.cost.total;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
return {
|
|
2416
|
+
sessionFile: this.sessionFile,
|
|
2417
|
+
sessionId: this.sessionId,
|
|
2418
|
+
userMessages,
|
|
2419
|
+
assistantMessages,
|
|
2420
|
+
toolCalls,
|
|
2421
|
+
toolResults,
|
|
2422
|
+
totalMessages: state.messages.length,
|
|
2423
|
+
tokens: {
|
|
2424
|
+
input: totalInput,
|
|
2425
|
+
output: totalOutput,
|
|
2426
|
+
cacheRead: totalCacheRead,
|
|
2427
|
+
cacheWrite: totalCacheWrite,
|
|
2428
|
+
total: totalInput + totalOutput + totalCacheRead + totalCacheWrite,
|
|
2429
|
+
},
|
|
2430
|
+
cost: totalCost,
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
getContextUsage() {
|
|
2434
|
+
const model = this.model;
|
|
2435
|
+
if (!model)
|
|
2436
|
+
return undefined;
|
|
2437
|
+
const contextWindow = model.contextWindow ?? 0;
|
|
2438
|
+
if (contextWindow <= 0)
|
|
2439
|
+
return undefined;
|
|
2440
|
+
// After compaction, the last assistant usage reflects pre-compaction context size.
|
|
2441
|
+
// We can only trust usage from an assistant that responded after the latest compaction.
|
|
2442
|
+
// If no such assistant exists, context token count is unknown until the next LLM response.
|
|
2443
|
+
const branchEntries = this.sessionManager.getBranch();
|
|
2444
|
+
const latestCompaction = getLatestCompactionEntry(branchEntries);
|
|
2445
|
+
if (latestCompaction) {
|
|
2446
|
+
// Check if there's a valid assistant usage after the compaction boundary
|
|
2447
|
+
const compactionIndex = branchEntries.lastIndexOf(latestCompaction);
|
|
2448
|
+
let hasPostCompactionUsage = false;
|
|
2449
|
+
for (let i = branchEntries.length - 1; i > compactionIndex; i--) {
|
|
2450
|
+
const entry = branchEntries[i];
|
|
2451
|
+
if (entry.type === "message" && entry.message.role === "assistant") {
|
|
2452
|
+
const assistant = entry.message;
|
|
2453
|
+
if (assistant.stopReason !== "aborted" && assistant.stopReason !== "error") {
|
|
2454
|
+
const contextTokens = calculateContextTokens(assistant.usage);
|
|
2455
|
+
if (contextTokens > 0) {
|
|
2456
|
+
hasPostCompactionUsage = true;
|
|
2457
|
+
}
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
if (!hasPostCompactionUsage) {
|
|
2463
|
+
return { tokens: null, contextWindow, percent: null };
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
const estimate = estimateContextTokens(this.messages);
|
|
2467
|
+
const percent = (estimate.tokens / contextWindow) * 100;
|
|
2468
|
+
return {
|
|
2469
|
+
tokens: estimate.tokens,
|
|
2470
|
+
contextWindow,
|
|
2471
|
+
percent,
|
|
2472
|
+
};
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* Export session to HTML.
|
|
2476
|
+
* @param outputPath Optional output path (defaults to session directory)
|
|
2477
|
+
* @returns Path to exported file
|
|
2478
|
+
*/
|
|
2479
|
+
async exportToHtml(outputPath) {
|
|
2480
|
+
const themeName = this.settingsManager.getTheme();
|
|
2481
|
+
// Create tool renderer if we have an extension runner (for custom tool HTML rendering)
|
|
2482
|
+
let toolRenderer;
|
|
2483
|
+
if (this._extensionRunner) {
|
|
2484
|
+
toolRenderer = createToolHtmlRenderer({
|
|
2485
|
+
getToolDefinition: (name) => this._extensionRunner.getToolDefinition(name),
|
|
2486
|
+
theme,
|
|
2487
|
+
});
|
|
2488
|
+
}
|
|
2489
|
+
return await exportSessionToHtml(this.sessionManager, this.state, {
|
|
2490
|
+
outputPath,
|
|
2491
|
+
themeName,
|
|
2492
|
+
toolRenderer,
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
// =========================================================================
|
|
2496
|
+
// Utilities
|
|
2497
|
+
// =========================================================================
|
|
2498
|
+
/**
|
|
2499
|
+
* Get text content of last assistant message.
|
|
2500
|
+
* Useful for /copy command.
|
|
2501
|
+
* @returns Text content, or undefined if no assistant message exists
|
|
2502
|
+
*/
|
|
2503
|
+
getLastAssistantText() {
|
|
2504
|
+
const lastAssistant = this.messages
|
|
2505
|
+
.slice()
|
|
2506
|
+
.reverse()
|
|
2507
|
+
.find((m) => {
|
|
2508
|
+
if (m.role !== "assistant")
|
|
2509
|
+
return false;
|
|
2510
|
+
const msg = m;
|
|
2511
|
+
// Skip aborted messages with no content
|
|
2512
|
+
if (msg.stopReason === "aborted" && msg.content.length === 0)
|
|
2513
|
+
return false;
|
|
2514
|
+
return true;
|
|
2515
|
+
});
|
|
2516
|
+
if (!lastAssistant)
|
|
2517
|
+
return undefined;
|
|
2518
|
+
let text = "";
|
|
2519
|
+
for (const content of lastAssistant.content) {
|
|
2520
|
+
if (content.type === "text") {
|
|
2521
|
+
text += content.text;
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
return text.trim() || undefined;
|
|
2525
|
+
}
|
|
2526
|
+
// =========================================================================
|
|
2527
|
+
// Extension System
|
|
2528
|
+
// =========================================================================
|
|
2529
|
+
/**
|
|
2530
|
+
* Check if extensions have handlers for a specific event type.
|
|
2531
|
+
*/
|
|
2532
|
+
hasExtensionHandlers(eventType) {
|
|
2533
|
+
return this._extensionRunner?.hasHandlers(eventType) ?? false;
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* Get the extension runner (for setting UI context and error handlers).
|
|
2537
|
+
*/
|
|
2538
|
+
get extensionRunner() {
|
|
2539
|
+
return this._extensionRunner;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
//# sourceMappingURL=agent-session.js.map
|