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,2317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project Memory — Fact Store
|
|
3
|
+
*
|
|
4
|
+
* SQLite-backed storage for memory facts with decay-based reinforcement.
|
|
5
|
+
* Replaces the markdown-based MemoryStorage for structured persistence.
|
|
6
|
+
*
|
|
7
|
+
* Schema:
|
|
8
|
+
* facts — individual knowledge atoms with confidence decay
|
|
9
|
+
* minds — named memory stores with lifecycle
|
|
10
|
+
* facts_fts — FTS5 virtual table for full-text search
|
|
11
|
+
*
|
|
12
|
+
* Rendering:
|
|
13
|
+
* Active facts are rendered to Markdown-KV for LLM context injection.
|
|
14
|
+
* The LLM never sees the database directly.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import * as path from "node:path";
|
|
18
|
+
import * as fs from "node:fs";
|
|
19
|
+
import * as crypto from "node:crypto";
|
|
20
|
+
import { SECTIONS, type SectionName } from "./template.ts";
|
|
21
|
+
import { cosineSimilarity, vectorToBlob, blobToVector } from "./embeddings.ts";
|
|
22
|
+
import {
|
|
23
|
+
computeConfidence as coreComputeConfidence,
|
|
24
|
+
contentHash as coreContentHash,
|
|
25
|
+
normalizeForHash as coreNormalizeForHash,
|
|
26
|
+
type DecayProfile as CoreDecayProfile,
|
|
27
|
+
type DecayProfileName,
|
|
28
|
+
resolveDecayProfile,
|
|
29
|
+
DECAY as CORE_DECAY,
|
|
30
|
+
GLOBAL_DECAY as CORE_GLOBAL_DECAY,
|
|
31
|
+
RECENT_WORK_DECAY as CORE_RECENT_WORK_DECAY,
|
|
32
|
+
} from "./core.ts";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Resolve the SQLite database constructor.
|
|
36
|
+
* Prefers better-sqlite3 (native, battle-tested), falls back to node:sqlite.
|
|
37
|
+
*/
|
|
38
|
+
function loadDatabase(): any {
|
|
39
|
+
try {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
41
|
+
const BetterSqlite3 = require("better-sqlite3");
|
|
42
|
+
// Verify the native addon loads (ABI mismatch throws here, not at require time).
|
|
43
|
+
// Create a throwaway in-memory DB to exercise the native binding.
|
|
44
|
+
const test = new BetterSqlite3(":memory:");
|
|
45
|
+
test.close();
|
|
46
|
+
return BetterSqlite3;
|
|
47
|
+
} catch {
|
|
48
|
+
// Fallback: wrap node:sqlite DatabaseSync to match better-sqlite3 API subset.
|
|
49
|
+
// Triggers when better-sqlite3 is missing OR its native addon was compiled
|
|
50
|
+
// against a different Node.js version (ERR_DLOPEN_FAILED).
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
52
|
+
const { DatabaseSync } = require("node:sqlite");
|
|
53
|
+
return class NodeSqliteWrapper {
|
|
54
|
+
private db: any;
|
|
55
|
+
constructor(filepath: string) {
|
|
56
|
+
this.db = new DatabaseSync(filepath);
|
|
57
|
+
}
|
|
58
|
+
pragma(stmt: string) {
|
|
59
|
+
return this.db.prepare(`PRAGMA ${stmt}`).get();
|
|
60
|
+
}
|
|
61
|
+
exec(sql: string) {
|
|
62
|
+
this.db.exec(sql);
|
|
63
|
+
}
|
|
64
|
+
prepare(sql: string) {
|
|
65
|
+
const s = this.db.prepare(sql);
|
|
66
|
+
return {
|
|
67
|
+
run: (...args: any[]) => s.run(...args),
|
|
68
|
+
get: (...args: any[]) => s.get(...args),
|
|
69
|
+
all: (...args: any[]) => s.all(...args),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
close() {
|
|
73
|
+
this.db.close();
|
|
74
|
+
}
|
|
75
|
+
transaction(fn: Function) {
|
|
76
|
+
return (...args: any[]) => {
|
|
77
|
+
this.db.exec("BEGIN");
|
|
78
|
+
try {
|
|
79
|
+
const result = fn(...args);
|
|
80
|
+
this.db.exec("COMMIT");
|
|
81
|
+
return result;
|
|
82
|
+
} catch (e) {
|
|
83
|
+
this.db.exec("ROLLBACK");
|
|
84
|
+
throw e;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const Database = loadDatabase();
|
|
93
|
+
|
|
94
|
+
function buildSafeFtsQuery(query: string, joiner: "AND" | "OR" = "AND"): string {
|
|
95
|
+
const tokens = query
|
|
96
|
+
.split(/\s+/)
|
|
97
|
+
.map(token => token.trim())
|
|
98
|
+
.filter(token => token.length > 0)
|
|
99
|
+
.map(token => token.replace(/"/g, '""'))
|
|
100
|
+
.filter(token => /[\p{L}\p{N}]/u.test(token))
|
|
101
|
+
.map(token => `"${token}"`);
|
|
102
|
+
|
|
103
|
+
return tokens.join(` ${joiner} `);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function isIgnorableFtsQueryError(error: unknown): boolean {
|
|
107
|
+
if (!(error instanceof Error)) return false;
|
|
108
|
+
const message = error.message.toLowerCase();
|
|
109
|
+
return (
|
|
110
|
+
message.includes("fts5")
|
|
111
|
+
|| message.includes("malformed match expression")
|
|
112
|
+
|| message.includes("syntax error")
|
|
113
|
+
|| message.includes("unterminated string")
|
|
114
|
+
|| message.includes("no such column")
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Generate a short unique ID */
|
|
119
|
+
function nanoid(size = 12): string {
|
|
120
|
+
const bytes = crypto.randomBytes(size);
|
|
121
|
+
return bytes.toString("base64url").slice(0, size);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Normalize content for dedup hashing — delegates to core.ts */
|
|
125
|
+
const normalizeForHash = coreNormalizeForHash;
|
|
126
|
+
|
|
127
|
+
/** Compute content hash for dedup — delegates to core.ts */
|
|
128
|
+
const contentHash = coreContentHash;
|
|
129
|
+
|
|
130
|
+
// --- Types ---
|
|
131
|
+
|
|
132
|
+
export interface Fact {
|
|
133
|
+
id: string;
|
|
134
|
+
mind: string;
|
|
135
|
+
section: string;
|
|
136
|
+
content: string;
|
|
137
|
+
status: "active" | "superseded" | "archived";
|
|
138
|
+
created_at: string;
|
|
139
|
+
created_session: string | null;
|
|
140
|
+
supersedes: string | null;
|
|
141
|
+
superseded_at: string | null;
|
|
142
|
+
archived_at: string | null;
|
|
143
|
+
source: "manual" | "extraction" | "ingest" | "migration" | "lifecycle" | "tool-call";
|
|
144
|
+
content_hash: string;
|
|
145
|
+
confidence: number;
|
|
146
|
+
last_reinforced: string;
|
|
147
|
+
reinforcement_count: number;
|
|
148
|
+
decay_rate: number;
|
|
149
|
+
/** Decay profile discriminant — stored per-fact for correct read-time decay. */
|
|
150
|
+
decay_profile: DecayProfileName;
|
|
151
|
+
/** Lamport logical timestamp — incremented on every mutation. Higher version wins on git-sync. */
|
|
152
|
+
version: number;
|
|
153
|
+
/** Last time this fact was returned by semanticSearch. Null if never accessed. */
|
|
154
|
+
last_accessed: string | null;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface MindRecord {
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
status: "active" | "refined" | "retired";
|
|
161
|
+
origin_type: "local" | "link" | "remote";
|
|
162
|
+
origin_path: string | null;
|
|
163
|
+
origin_url: string | null;
|
|
164
|
+
readonly: number; // 0 or 1
|
|
165
|
+
parent: string | null;
|
|
166
|
+
created_at: string;
|
|
167
|
+
last_sync: string | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface StoreFactOptions {
|
|
171
|
+
mind?: string;
|
|
172
|
+
section: SectionName;
|
|
173
|
+
content: string;
|
|
174
|
+
source?: Fact["source"];
|
|
175
|
+
session?: string | null;
|
|
176
|
+
supersedes?: string | null;
|
|
177
|
+
confidence?: number;
|
|
178
|
+
reinforcement_count?: number;
|
|
179
|
+
decay_rate?: number;
|
|
180
|
+
/** Decay profile discriminant — stored per-fact so read-time decay uses the correct profile. */
|
|
181
|
+
decayProfile?: DecayProfileName;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface ReinforcementResult {
|
|
185
|
+
reinforced: number;
|
|
186
|
+
added: number;
|
|
187
|
+
newFactIds: string[];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface Episode {
|
|
191
|
+
id: string;
|
|
192
|
+
mind: string;
|
|
193
|
+
title: string;
|
|
194
|
+
narrative: string;
|
|
195
|
+
date: string;
|
|
196
|
+
session_id: string | null;
|
|
197
|
+
created_at: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface Edge {
|
|
201
|
+
id: string;
|
|
202
|
+
source_fact_id: string;
|
|
203
|
+
target_fact_id: string;
|
|
204
|
+
relation: string;
|
|
205
|
+
description: string;
|
|
206
|
+
confidence: number;
|
|
207
|
+
last_reinforced: string;
|
|
208
|
+
reinforcement_count: number;
|
|
209
|
+
decay_rate: number;
|
|
210
|
+
status: "active" | "archived";
|
|
211
|
+
created_at: string;
|
|
212
|
+
created_session: string | null;
|
|
213
|
+
source_mind: string | null;
|
|
214
|
+
target_mind: string | null;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface EdgeResult {
|
|
218
|
+
added: number;
|
|
219
|
+
reinforced: number;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// --- Decay math (delegated to core.ts — the Rust port target) ---
|
|
223
|
+
|
|
224
|
+
/** Re-export canonical decay profiles from core.ts so existing importers are unaffected. */
|
|
225
|
+
export const DECAY = CORE_DECAY;
|
|
226
|
+
export const GLOBAL_DECAY = CORE_GLOBAL_DECAY;
|
|
227
|
+
export const RECENT_WORK_DECAY = CORE_RECENT_WORK_DECAY;
|
|
228
|
+
export type DecayProfile = CoreDecayProfile;
|
|
229
|
+
export { DecayProfileName, resolveDecayProfile };
|
|
230
|
+
|
|
231
|
+
/** Section-specific decay overrides — keyed by section name */
|
|
232
|
+
const SECTION_DECAY_OVERRIDES: Partial<Record<string, typeof RECENT_WORK_DECAY>> = {
|
|
233
|
+
"Recent Work": RECENT_WORK_DECAY,
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/** Delegates to core.ts::computeConfidence — single source of truth. */
|
|
237
|
+
export const computeConfidence = coreComputeConfidence;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Determine the decay profile name for a section.
|
|
241
|
+
* Recent Work → "recent_work" (halfLife=2d). All others → undefined (uses storeFact's default "standard").
|
|
242
|
+
* Centralizes the mapping so it's not duplicated across processExtraction call sites.
|
|
243
|
+
*/
|
|
244
|
+
function decayProfileForSection(section: string): DecayProfileName | undefined {
|
|
245
|
+
return section === "Recent Work" ? "recent_work" : undefined;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// --- FactStore ---
|
|
249
|
+
|
|
250
|
+
export class FactStore {
|
|
251
|
+
private db: any;
|
|
252
|
+
private dbPath: string;
|
|
253
|
+
private decayProfile: DecayProfile;
|
|
254
|
+
|
|
255
|
+
constructor(memoryDir: string, opts?: { decay?: DecayProfile; dbName?: string }) {
|
|
256
|
+
this.decayProfile = opts?.decay ?? DECAY;
|
|
257
|
+
this.dbPath = path.join(memoryDir, opts?.dbName ?? "facts.db");
|
|
258
|
+
fs.mkdirSync(memoryDir, { recursive: true });
|
|
259
|
+
this.db = new Database(this.dbPath);
|
|
260
|
+
this.db.pragma("journal_mode = WAL");
|
|
261
|
+
this.db.pragma("busy_timeout = 10000");
|
|
262
|
+
this.db.pragma("foreign_keys = ON");
|
|
263
|
+
this.initSchema();
|
|
264
|
+
this.runMigrations();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** Current schema version — bump when adding migrations */
|
|
268
|
+
static readonly SCHEMA_VERSION = 4;
|
|
269
|
+
|
|
270
|
+
private getSchemaVersion(): number {
|
|
271
|
+
try {
|
|
272
|
+
const row = this.db.prepare(`SELECT version FROM schema_version ORDER BY version DESC LIMIT 1`).get();
|
|
273
|
+
return row?.version ?? 0;
|
|
274
|
+
} catch {
|
|
275
|
+
return 0; // Table doesn't exist yet
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
private setSchemaVersion(version: number): void {
|
|
280
|
+
this.db.prepare(
|
|
281
|
+
`INSERT INTO schema_version (version, applied_at) VALUES (?, ?)`
|
|
282
|
+
).run(version, new Date().toISOString());
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Run schema migrations incrementally.
|
|
287
|
+
* Each migration is idempotent and tagged with a version number.
|
|
288
|
+
* Version 1 = initial schema (CREATE TABLE IF NOT EXISTS in initSchema).
|
|
289
|
+
* Version 2+ = incremental ALTER/CREATE statements.
|
|
290
|
+
*/
|
|
291
|
+
private runMigrations(): void {
|
|
292
|
+
const current = this.getSchemaVersion();
|
|
293
|
+
const target = FactStore.SCHEMA_VERSION;
|
|
294
|
+
|
|
295
|
+
if (current >= target) return;
|
|
296
|
+
|
|
297
|
+
// Migration 1→2: Add vector and episode tables (v3 Hippocampus)
|
|
298
|
+
// These use CREATE TABLE IF NOT EXISTS so they're idempotent even for
|
|
299
|
+
// databases that already have them from the original non-versioned code.
|
|
300
|
+
if (current < 2) {
|
|
301
|
+
this.db.exec(`
|
|
302
|
+
CREATE TABLE IF NOT EXISTS facts_vec (
|
|
303
|
+
fact_id TEXT PRIMARY KEY,
|
|
304
|
+
embedding BLOB NOT NULL,
|
|
305
|
+
model TEXT NOT NULL,
|
|
306
|
+
dims INTEGER NOT NULL,
|
|
307
|
+
created_at TEXT NOT NULL,
|
|
308
|
+
FOREIGN KEY (fact_id) REFERENCES facts(id) ON DELETE CASCADE
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
CREATE TABLE IF NOT EXISTS episodes (
|
|
312
|
+
id TEXT PRIMARY KEY,
|
|
313
|
+
mind TEXT NOT NULL DEFAULT 'default',
|
|
314
|
+
title TEXT NOT NULL,
|
|
315
|
+
narrative TEXT NOT NULL,
|
|
316
|
+
date TEXT NOT NULL,
|
|
317
|
+
session_id TEXT,
|
|
318
|
+
created_at TEXT NOT NULL,
|
|
319
|
+
FOREIGN KEY (mind) REFERENCES minds(name) ON DELETE CASCADE
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
CREATE TABLE IF NOT EXISTS episode_facts (
|
|
323
|
+
episode_id TEXT NOT NULL,
|
|
324
|
+
fact_id TEXT NOT NULL,
|
|
325
|
+
PRIMARY KEY (episode_id, fact_id),
|
|
326
|
+
FOREIGN KEY (episode_id) REFERENCES episodes(id) ON DELETE CASCADE,
|
|
327
|
+
FOREIGN KEY (fact_id) REFERENCES facts(id) ON DELETE CASCADE
|
|
328
|
+
);
|
|
329
|
+
|
|
330
|
+
CREATE INDEX IF NOT EXISTS idx_episodes_mind
|
|
331
|
+
ON episodes(mind, date DESC);
|
|
332
|
+
CREATE INDEX IF NOT EXISTS idx_episodes_date
|
|
333
|
+
ON episodes(date DESC);
|
|
334
|
+
|
|
335
|
+
CREATE TABLE IF NOT EXISTS episodes_vec (
|
|
336
|
+
episode_id TEXT PRIMARY KEY,
|
|
337
|
+
embedding BLOB NOT NULL,
|
|
338
|
+
model TEXT NOT NULL,
|
|
339
|
+
dims INTEGER NOT NULL,
|
|
340
|
+
created_at TEXT NOT NULL,
|
|
341
|
+
FOREIGN KEY (episode_id) REFERENCES episodes(id) ON DELETE CASCADE
|
|
342
|
+
);
|
|
343
|
+
`);
|
|
344
|
+
this.setSchemaVersion(2);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// Migration 2→3: Correctness and Rust-migration prerequisites
|
|
348
|
+
//
|
|
349
|
+
// decay_profile: fixes the wrong-profile decay bug — stores which decay
|
|
350
|
+
// profile was used at write time so read-time computeConfidence uses the
|
|
351
|
+
// correct profile. Existing facts get 'standard' (matches the effective
|
|
352
|
+
// behaviour since DECAY was always the default).
|
|
353
|
+
//
|
|
354
|
+
// version (Lamport timestamp): fixes git-sync conflict resolution bug where
|
|
355
|
+
// archived facts could be resurrected by concurrent reinforcement on
|
|
356
|
+
// another machine. Higher version always wins on import. Existing facts
|
|
357
|
+
// get version=0; new mutations start at MAX(version)+1.
|
|
358
|
+
//
|
|
359
|
+
// last_accessed: enables access-pattern reinforcement — decay timer resets
|
|
360
|
+
// when a fact is retrieved by memory_recall, independent of explicit
|
|
361
|
+
// memory_store reinforcement. Nullable; null means "never accessed".
|
|
362
|
+
//
|
|
363
|
+
// embedding_metadata: versions the embedding model + dimension in the DB.
|
|
364
|
+
// Dimension mismatch is now a detectable error rather than a silent skip.
|
|
365
|
+
// facts_vec gains model_name FK so multi-model coexistence is tracked.
|
|
366
|
+
if (current < 3) {
|
|
367
|
+
this.db.exec(`
|
|
368
|
+
ALTER TABLE facts ADD COLUMN decay_profile TEXT NOT NULL DEFAULT 'standard';
|
|
369
|
+
ALTER TABLE facts ADD COLUMN version INTEGER NOT NULL DEFAULT 0;
|
|
370
|
+
ALTER TABLE facts ADD COLUMN last_accessed TEXT;
|
|
371
|
+
|
|
372
|
+
CREATE INDEX IF NOT EXISTS idx_facts_version
|
|
373
|
+
ON facts(version DESC);
|
|
374
|
+
|
|
375
|
+
CREATE TABLE IF NOT EXISTS embedding_metadata (
|
|
376
|
+
model_name TEXT PRIMARY KEY,
|
|
377
|
+
dims INTEGER NOT NULL,
|
|
378
|
+
inserted_at TEXT NOT NULL
|
|
379
|
+
);
|
|
380
|
+
|
|
381
|
+
ALTER TABLE facts_vec ADD COLUMN model_name TEXT NOT NULL DEFAULT '';
|
|
382
|
+
ALTER TABLE episodes_vec ADD COLUMN model_name TEXT NOT NULL DEFAULT '';
|
|
383
|
+
`);
|
|
384
|
+
this.setSchemaVersion(3);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// --- Schema v4: Fix existing Recent Work facts with wrong decay_profile ---
|
|
388
|
+
// Before this fix, all Recent Work facts were stored with decay_profile='standard'
|
|
389
|
+
// (halfLife=14d) instead of 'recent_work' (halfLife=2d). This made Recent Work
|
|
390
|
+
// facts persist 7× longer than intended and disagree with SECTION_DECAY_OVERRIDES
|
|
391
|
+
// (which correctly applied RECENT_WORK_DECAY at read time by section name).
|
|
392
|
+
// This migration aligns the stored column with the read-time behaviour.
|
|
393
|
+
if (current < 4) {
|
|
394
|
+
this.db.prepare(
|
|
395
|
+
`UPDATE facts SET decay_profile = 'recent_work' WHERE section = 'Recent Work' AND decay_profile = 'standard'`
|
|
396
|
+
).run();
|
|
397
|
+
this.setSchemaVersion(4);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
private initSchema(): void {
|
|
402
|
+
// Schema version tracking — must be first so migrations can read it
|
|
403
|
+
this.db.exec(`
|
|
404
|
+
CREATE TABLE IF NOT EXISTS schema_version (
|
|
405
|
+
version INTEGER PRIMARY KEY,
|
|
406
|
+
applied_at TEXT NOT NULL
|
|
407
|
+
);
|
|
408
|
+
`);
|
|
409
|
+
|
|
410
|
+
// Version 1 tables — core schema
|
|
411
|
+
this.db.exec(`
|
|
412
|
+
CREATE TABLE IF NOT EXISTS minds (
|
|
413
|
+
name TEXT PRIMARY KEY,
|
|
414
|
+
description TEXT NOT NULL DEFAULT '',
|
|
415
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
416
|
+
origin_type TEXT NOT NULL DEFAULT 'local',
|
|
417
|
+
origin_path TEXT,
|
|
418
|
+
origin_url TEXT,
|
|
419
|
+
readonly INTEGER NOT NULL DEFAULT 0,
|
|
420
|
+
parent TEXT,
|
|
421
|
+
created_at TEXT NOT NULL,
|
|
422
|
+
last_sync TEXT
|
|
423
|
+
);
|
|
424
|
+
|
|
425
|
+
CREATE TABLE IF NOT EXISTS facts (
|
|
426
|
+
id TEXT PRIMARY KEY,
|
|
427
|
+
mind TEXT NOT NULL DEFAULT 'default',
|
|
428
|
+
section TEXT NOT NULL,
|
|
429
|
+
content TEXT NOT NULL,
|
|
430
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
431
|
+
created_at TEXT NOT NULL,
|
|
432
|
+
created_session TEXT,
|
|
433
|
+
supersedes TEXT,
|
|
434
|
+
superseded_at TEXT,
|
|
435
|
+
archived_at TEXT,
|
|
436
|
+
source TEXT NOT NULL DEFAULT 'manual',
|
|
437
|
+
content_hash TEXT NOT NULL,
|
|
438
|
+
confidence REAL NOT NULL DEFAULT 1.0,
|
|
439
|
+
last_reinforced TEXT NOT NULL,
|
|
440
|
+
reinforcement_count INTEGER NOT NULL DEFAULT 1,
|
|
441
|
+
decay_rate REAL NOT NULL DEFAULT ${DECAY.baseRate},
|
|
442
|
+
FOREIGN KEY (mind) REFERENCES minds(name) ON DELETE CASCADE
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
CREATE INDEX IF NOT EXISTS idx_facts_active
|
|
446
|
+
ON facts(mind, status) WHERE status = 'active';
|
|
447
|
+
CREATE INDEX IF NOT EXISTS idx_facts_hash
|
|
448
|
+
ON facts(mind, content_hash);
|
|
449
|
+
CREATE INDEX IF NOT EXISTS idx_facts_section
|
|
450
|
+
ON facts(mind, section) WHERE status = 'active';
|
|
451
|
+
CREATE INDEX IF NOT EXISTS idx_facts_supersedes
|
|
452
|
+
ON facts(supersedes);
|
|
453
|
+
CREATE INDEX IF NOT EXISTS idx_facts_temporal
|
|
454
|
+
ON facts(created_at);
|
|
455
|
+
CREATE INDEX IF NOT EXISTS idx_facts_confidence
|
|
456
|
+
ON facts(mind, confidence) WHERE status = 'active';
|
|
457
|
+
CREATE INDEX IF NOT EXISTS idx_facts_session
|
|
458
|
+
ON facts(created_session);
|
|
459
|
+
|
|
460
|
+
CREATE TABLE IF NOT EXISTS edges (
|
|
461
|
+
id TEXT PRIMARY KEY,
|
|
462
|
+
source_fact_id TEXT NOT NULL,
|
|
463
|
+
target_fact_id TEXT NOT NULL,
|
|
464
|
+
relation TEXT NOT NULL,
|
|
465
|
+
description TEXT NOT NULL,
|
|
466
|
+
confidence REAL NOT NULL DEFAULT 1.0,
|
|
467
|
+
last_reinforced TEXT NOT NULL,
|
|
468
|
+
reinforcement_count INTEGER NOT NULL DEFAULT 1,
|
|
469
|
+
decay_rate REAL NOT NULL DEFAULT ${DECAY.baseRate},
|
|
470
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
471
|
+
created_at TEXT NOT NULL,
|
|
472
|
+
created_session TEXT,
|
|
473
|
+
source_mind TEXT,
|
|
474
|
+
target_mind TEXT,
|
|
475
|
+
FOREIGN KEY (source_fact_id) REFERENCES facts(id) ON DELETE CASCADE,
|
|
476
|
+
FOREIGN KEY (target_fact_id) REFERENCES facts(id) ON DELETE CASCADE
|
|
477
|
+
);
|
|
478
|
+
|
|
479
|
+
CREATE INDEX IF NOT EXISTS idx_edges_source
|
|
480
|
+
ON edges(source_fact_id) WHERE status = 'active';
|
|
481
|
+
CREATE INDEX IF NOT EXISTS idx_edges_target
|
|
482
|
+
ON edges(target_fact_id) WHERE status = 'active';
|
|
483
|
+
CREATE INDEX IF NOT EXISTS idx_edges_relation
|
|
484
|
+
ON edges(relation) WHERE status = 'active';
|
|
485
|
+
`);
|
|
486
|
+
|
|
487
|
+
// FTS5 virtual table for full-text search
|
|
488
|
+
this.db.exec(`
|
|
489
|
+
CREATE VIRTUAL TABLE IF NOT EXISTS facts_fts USING fts5(
|
|
490
|
+
id UNINDEXED,
|
|
491
|
+
mind UNINDEXED,
|
|
492
|
+
section UNINDEXED,
|
|
493
|
+
content,
|
|
494
|
+
content='facts',
|
|
495
|
+
content_rowid='rowid'
|
|
496
|
+
);
|
|
497
|
+
`);
|
|
498
|
+
|
|
499
|
+
// Triggers to keep FTS in sync
|
|
500
|
+
// Check if triggers exist before creating (CREATE TRIGGER IF NOT EXISTS not universally supported)
|
|
501
|
+
const triggerExists = this.db.prepare(
|
|
502
|
+
`SELECT 1 FROM sqlite_master WHERE type='trigger' AND name='facts_fts_insert'`
|
|
503
|
+
).get();
|
|
504
|
+
|
|
505
|
+
if (!triggerExists) {
|
|
506
|
+
this.db.exec(`
|
|
507
|
+
CREATE TRIGGER facts_fts_insert AFTER INSERT ON facts BEGIN
|
|
508
|
+
INSERT INTO facts_fts(rowid, id, mind, section, content)
|
|
509
|
+
VALUES (NEW.rowid, NEW.id, NEW.mind, NEW.section, NEW.content);
|
|
510
|
+
END;
|
|
511
|
+
|
|
512
|
+
CREATE TRIGGER facts_fts_delete AFTER DELETE ON facts BEGIN
|
|
513
|
+
INSERT INTO facts_fts(facts_fts, rowid, id, mind, section, content)
|
|
514
|
+
VALUES ('delete', OLD.rowid, OLD.id, OLD.mind, OLD.section, OLD.content);
|
|
515
|
+
END;
|
|
516
|
+
|
|
517
|
+
CREATE TRIGGER facts_fts_update AFTER UPDATE ON facts BEGIN
|
|
518
|
+
INSERT INTO facts_fts(facts_fts, rowid, id, mind, section, content)
|
|
519
|
+
VALUES ('delete', OLD.rowid, OLD.id, OLD.mind, OLD.section, OLD.content);
|
|
520
|
+
INSERT INTO facts_fts(rowid, id, mind, section, content)
|
|
521
|
+
VALUES (NEW.rowid, NEW.id, NEW.mind, NEW.section, NEW.content);
|
|
522
|
+
END;
|
|
523
|
+
`);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// Vector and episode tables are created in runMigrations() (version 2+).
|
|
527
|
+
|
|
528
|
+
// Mark version 1 if this is a fresh database
|
|
529
|
+
if (this.getSchemaVersion() === 0) {
|
|
530
|
+
this.setSchemaVersion(1);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// Ensure 'default' mind exists
|
|
534
|
+
const defaultMind = this.db.prepare(`SELECT 1 FROM minds WHERE name = 'default'`).get();
|
|
535
|
+
if (!defaultMind) {
|
|
536
|
+
this.db.prepare(`
|
|
537
|
+
INSERT INTO minds (name, description, status, origin_type, created_at)
|
|
538
|
+
VALUES ('default', 'Project default memory', 'active', 'local', ?)
|
|
539
|
+
`).run(new Date().toISOString());
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// ---------------------------------------------------------------------------
|
|
544
|
+
// Fact CRUD
|
|
545
|
+
// ---------------------------------------------------------------------------
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Store a fact. Returns the fact ID if stored, or null if duplicate.
|
|
549
|
+
* Handles dedup via content_hash and optional explicit supersession.
|
|
550
|
+
*/
|
|
551
|
+
storeFact(opts: StoreFactOptions): { id: string; duplicate: boolean } {
|
|
552
|
+
const mind = opts.mind ?? "default";
|
|
553
|
+
const now = new Date().toISOString();
|
|
554
|
+
const hash = contentHash(opts.content);
|
|
555
|
+
const source = opts.source ?? "manual";
|
|
556
|
+
const content = opts.content.replace(/^-\s*/, "").trim();
|
|
557
|
+
|
|
558
|
+
// Dedup check — same mind (or parent chain), same hash, still active.
|
|
559
|
+
// Check the full chain so directive minds don't duplicate parent facts.
|
|
560
|
+
const chain = this.resolveMindChain(mind);
|
|
561
|
+
const dedupPlaceholders = chain.map(() => "?").join(", ");
|
|
562
|
+
const existing = this.db.prepare(
|
|
563
|
+
`SELECT id FROM facts WHERE mind IN (${dedupPlaceholders}) AND content_hash = ? AND status = 'active'`
|
|
564
|
+
).get(...chain, hash);
|
|
565
|
+
|
|
566
|
+
if (existing) {
|
|
567
|
+
// Reinforce the existing fact instead of duplicating
|
|
568
|
+
this.reinforceFact(existing.id);
|
|
569
|
+
return { id: existing.id, duplicate: true };
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
const id = nanoid();
|
|
573
|
+
|
|
574
|
+
// Lamport timestamp: MAX(version)+1 ensures this mutation is always "newer"
|
|
575
|
+
// than any existing fact, even on import from another machine.
|
|
576
|
+
const versionRow = this.db.prepare(`SELECT COALESCE(MAX(version), 0) + 1 AS v FROM facts`).get();
|
|
577
|
+
const version = versionRow?.v ?? 1;
|
|
578
|
+
|
|
579
|
+
// Decay profile discriminant — stored so read-time computeConfidence
|
|
580
|
+
// uses the correct profile regardless of which profile is currently active.
|
|
581
|
+
const decayProfileName: DecayProfileName = opts.decayProfile ?? "standard";
|
|
582
|
+
|
|
583
|
+
// If superseding, mark old fact and record its version for conflict detection
|
|
584
|
+
if (opts.supersedes) {
|
|
585
|
+
this.db.prepare(
|
|
586
|
+
`UPDATE facts SET status = 'superseded', superseded_at = ?, version = ? WHERE id = ?`
|
|
587
|
+
).run(now, version, opts.supersedes);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
this.db.prepare(`
|
|
591
|
+
INSERT INTO facts (id, mind, section, content, status, created_at, created_session,
|
|
592
|
+
supersedes, source, content_hash, confidence, last_reinforced,
|
|
593
|
+
reinforcement_count, decay_rate, decay_profile, version)
|
|
594
|
+
VALUES (?, ?, ?, ?, 'active', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
595
|
+
`).run(
|
|
596
|
+
id, mind, opts.section, content, now,
|
|
597
|
+
opts.session ?? null,
|
|
598
|
+
opts.supersedes ?? null,
|
|
599
|
+
source, hash,
|
|
600
|
+
opts.confidence ?? 1.0,
|
|
601
|
+
now,
|
|
602
|
+
opts.reinforcement_count ?? 1,
|
|
603
|
+
opts.decay_rate ?? this.decayProfile.baseRate,
|
|
604
|
+
decayProfileName,
|
|
605
|
+
version,
|
|
606
|
+
);
|
|
607
|
+
|
|
608
|
+
return { id, duplicate: false };
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Reinforce a fact — bump confidence, extend half-life.
|
|
613
|
+
* Updates last_reinforced and increments version (Lamport clock).
|
|
614
|
+
*/
|
|
615
|
+
reinforceFact(id: string): void {
|
|
616
|
+
const now = new Date().toISOString();
|
|
617
|
+
const versionRow = this.db.prepare(`SELECT COALESCE(MAX(version), 0) + 1 AS v FROM facts`).get();
|
|
618
|
+
const version = versionRow?.v ?? 1;
|
|
619
|
+
this.db.prepare(`
|
|
620
|
+
UPDATE facts
|
|
621
|
+
SET confidence = 1.0,
|
|
622
|
+
last_reinforced = ?,
|
|
623
|
+
reinforcement_count = reinforcement_count + 1,
|
|
624
|
+
version = ?
|
|
625
|
+
WHERE id = ?
|
|
626
|
+
`).run(now, version, id);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Update last_accessed for access-pattern reinforcement.
|
|
631
|
+
* Resets the effective decay timer without incrementing reinforcement_count.
|
|
632
|
+
* Called by memory_recall after returning a fact to the agent.
|
|
633
|
+
*/
|
|
634
|
+
touchFact(id: string): void {
|
|
635
|
+
const now = new Date().toISOString();
|
|
636
|
+
this.db.prepare(`UPDATE facts SET last_accessed = ? WHERE id = ?`).run(now, id);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Process extraction output: a list of observed facts and directives.
|
|
641
|
+
* Returns counts of what happened.
|
|
642
|
+
*/
|
|
643
|
+
processExtraction(
|
|
644
|
+
mind: string,
|
|
645
|
+
actions: ExtractionAction[],
|
|
646
|
+
session?: string,
|
|
647
|
+
): ReinforcementResult {
|
|
648
|
+
let reinforced = 0;
|
|
649
|
+
let added = 0;
|
|
650
|
+
const newFactIds: string[] = [];
|
|
651
|
+
|
|
652
|
+
// Resolve chain once for all observe dedup checks (cached, but avoid repeated map/join)
|
|
653
|
+
const observeChain = this.resolveMindChain(mind);
|
|
654
|
+
const observePlaceholders = observeChain.map(() => "?").join(", ");
|
|
655
|
+
|
|
656
|
+
const tx = this.db.transaction(() => {
|
|
657
|
+
for (const action of actions) {
|
|
658
|
+
switch (action.type) {
|
|
659
|
+
case "observe": {
|
|
660
|
+
// Fact observed in session — reinforce if exists (in mind or parent chain), add if new
|
|
661
|
+
const hash = contentHash(action.content ?? "");
|
|
662
|
+
const existing = this.db.prepare(
|
|
663
|
+
`SELECT id FROM facts WHERE mind IN (${observePlaceholders}) AND content_hash = ? AND status = 'active'`
|
|
664
|
+
).get(...observeChain, hash);
|
|
665
|
+
|
|
666
|
+
if (existing) {
|
|
667
|
+
this.reinforceFact((existing as { id: string }).id);
|
|
668
|
+
reinforced++;
|
|
669
|
+
} else if (action.section && action.content) {
|
|
670
|
+
const result = this.storeFact({
|
|
671
|
+
mind,
|
|
672
|
+
section: action.section,
|
|
673
|
+
content: action.content,
|
|
674
|
+
source: "extraction",
|
|
675
|
+
session,
|
|
676
|
+
decayProfile: decayProfileForSection(action.section),
|
|
677
|
+
});
|
|
678
|
+
if (!result.duplicate) newFactIds.push(result.id);
|
|
679
|
+
added++;
|
|
680
|
+
}
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
case "reinforce": {
|
|
684
|
+
// Explicit reinforcement by ID
|
|
685
|
+
if (action.id) {
|
|
686
|
+
this.reinforceFact(action.id);
|
|
687
|
+
reinforced++;
|
|
688
|
+
}
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
case "supersede": {
|
|
692
|
+
// Explicit replacement
|
|
693
|
+
if (action.id && action.content && action.section) {
|
|
694
|
+
const result = this.storeFact({
|
|
695
|
+
mind,
|
|
696
|
+
section: action.section,
|
|
697
|
+
content: action.content,
|
|
698
|
+
source: "extraction",
|
|
699
|
+
session,
|
|
700
|
+
decayProfile: decayProfileForSection(action.section),
|
|
701
|
+
supersedes: action.id,
|
|
702
|
+
});
|
|
703
|
+
if (!result.duplicate) newFactIds.push(result.id);
|
|
704
|
+
added++;
|
|
705
|
+
}
|
|
706
|
+
break;
|
|
707
|
+
}
|
|
708
|
+
case "archive": {
|
|
709
|
+
// Explicit archival
|
|
710
|
+
if (action.id) {
|
|
711
|
+
this.archiveFact(action.id);
|
|
712
|
+
}
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
|
|
719
|
+
tx();
|
|
720
|
+
return { reinforced, added, newFactIds };
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/** Archive a fact and clean up its vector embedding */
|
|
724
|
+
archiveFact(id: string): void {
|
|
725
|
+
const now = new Date().toISOString();
|
|
726
|
+
const versionRow = this.db.prepare(`SELECT COALESCE(MAX(version), 0) + 1 AS v FROM facts`).get();
|
|
727
|
+
const version = versionRow?.v ?? 1;
|
|
728
|
+
this.db.prepare(
|
|
729
|
+
`UPDATE facts SET status = 'archived', archived_at = ?, version = ? WHERE id = ?`
|
|
730
|
+
).run(now, version, id);
|
|
731
|
+
// Clean up orphaned vector (CASCADE only fires on DELETE, not status change)
|
|
732
|
+
this.db.prepare(`DELETE FROM facts_vec WHERE fact_id = ?`).run(id);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Sweep facts that have decayed below their profile's minimum confidence.
|
|
737
|
+
* Archives them in bulk. Returns the number of facts archived.
|
|
738
|
+
*
|
|
739
|
+
* This converts passive decay (lower confidence on read) into active archival.
|
|
740
|
+
* Without this sweep, decayed facts remain status='active' forever — inflating
|
|
741
|
+
* fact counts, consuming vector storage, and cluttering section ceiling checks.
|
|
742
|
+
*
|
|
743
|
+
* Uses getActiveFacts() which already:
|
|
744
|
+
* 1. Computes confidence via computeConfidence (canonical formula from core.ts)
|
|
745
|
+
* 2. Exempts NO_DECAY_SECTIONS (Specs → confidence = 1.0, never archived)
|
|
746
|
+
* 3. Applies SECTION_DECAY_OVERRIDES (Recent Work → RECENT_WORK_DECAY)
|
|
747
|
+
* So fact.confidence is the correct, already-computed value — no re-derivation.
|
|
748
|
+
*
|
|
749
|
+
* Profile resolution uses SECTION_DECAY_OVERRIDES (same as getActiveFacts) so
|
|
750
|
+
* the minimumConfidence threshold is consistent with the confidence computation.
|
|
751
|
+
*/
|
|
752
|
+
sweepDecayedFacts(mind: string): number {
|
|
753
|
+
// Only sweep facts directly in this mind, not inherited from parents.
|
|
754
|
+
// Parent facts are managed by their own mind's sweep cycle.
|
|
755
|
+
const facts = this.db.prepare(
|
|
756
|
+
`SELECT * FROM facts WHERE mind = ? AND status = 'active' ORDER BY section, created_at`
|
|
757
|
+
).all(mind) as Fact[];
|
|
758
|
+
// Apply decay (same logic as getActiveFacts)
|
|
759
|
+
const NO_DECAY_SECTIONS: readonly string[] = ["Specs"];
|
|
760
|
+
const now = Date.now();
|
|
761
|
+
for (const fact of facts) {
|
|
762
|
+
if (NO_DECAY_SECTIONS.includes(fact.section)) {
|
|
763
|
+
fact.confidence = 1.0;
|
|
764
|
+
} else {
|
|
765
|
+
const lastReinforced = new Date(fact.last_reinforced).getTime();
|
|
766
|
+
const daysSince = (now - lastReinforced) / (1000 * 60 * 60 * 24);
|
|
767
|
+
const profile = SECTION_DECAY_OVERRIDES[fact.section] ?? this.decayProfile;
|
|
768
|
+
fact.confidence = computeConfidence(daysSince, fact.reinforcement_count, profile);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
let swept = 0;
|
|
772
|
+
|
|
773
|
+
for (const fact of facts) {
|
|
774
|
+
// Resolve profile the same way getActiveFacts does — by section override
|
|
775
|
+
// first, then per-fact decay_profile column. This ensures the minimum
|
|
776
|
+
// confidence threshold matches the formula that computed fact.confidence.
|
|
777
|
+
const profile = SECTION_DECAY_OVERRIDES[fact.section]
|
|
778
|
+
?? resolveDecayProfile(fact.decay_profile);
|
|
779
|
+
|
|
780
|
+
if (fact.confidence <= profile.minimumConfidence) {
|
|
781
|
+
this.archiveFact(fact.id);
|
|
782
|
+
swept++;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return swept;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/** Archive all facts from a specific session */
|
|
790
|
+
archiveSession(session: string): number {
|
|
791
|
+
const now = new Date().toISOString();
|
|
792
|
+
const result = this.db.prepare(
|
|
793
|
+
`UPDATE facts SET status = 'archived', archived_at = ?
|
|
794
|
+
WHERE created_session = ? AND status = 'active'`
|
|
795
|
+
).run(now, session);
|
|
796
|
+
return result.changes;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// ---------------------------------------------------------------------------
|
|
800
|
+
// Edge CRUD
|
|
801
|
+
// ---------------------------------------------------------------------------
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Store an edge between two facts. Deduplicates by source+target+relation.
|
|
805
|
+
* If the same edge exists, reinforces it instead.
|
|
806
|
+
*/
|
|
807
|
+
storeEdge(opts: {
|
|
808
|
+
sourceFact: string;
|
|
809
|
+
targetFact: string;
|
|
810
|
+
relation: string;
|
|
811
|
+
description: string;
|
|
812
|
+
session?: string;
|
|
813
|
+
sourceMind?: string;
|
|
814
|
+
targetMind?: string;
|
|
815
|
+
}): { id: string; duplicate: boolean } {
|
|
816
|
+
const now = new Date().toISOString();
|
|
817
|
+
|
|
818
|
+
// Dedup: same source, target, and relation
|
|
819
|
+
const existing = this.db.prepare(
|
|
820
|
+
`SELECT id FROM edges
|
|
821
|
+
WHERE source_fact_id = ? AND target_fact_id = ? AND relation = ? AND status = 'active'`
|
|
822
|
+
).get(opts.sourceFact, opts.targetFact, opts.relation);
|
|
823
|
+
|
|
824
|
+
if (existing) {
|
|
825
|
+
this.reinforceEdge(existing.id);
|
|
826
|
+
return { id: existing.id, duplicate: true };
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
const id = nanoid();
|
|
830
|
+
this.db.prepare(`
|
|
831
|
+
INSERT INTO edges (id, source_fact_id, target_fact_id, relation, description,
|
|
832
|
+
confidence, last_reinforced, reinforcement_count, decay_rate,
|
|
833
|
+
status, created_at, created_session, source_mind, target_mind)
|
|
834
|
+
VALUES (?, ?, ?, ?, ?, 1.0, ?, 1, ?, 'active', ?, ?, ?, ?)
|
|
835
|
+
`).run(
|
|
836
|
+
id, opts.sourceFact, opts.targetFact, opts.relation, opts.description,
|
|
837
|
+
now, this.decayProfile.baseRate, now, opts.session ?? null,
|
|
838
|
+
opts.sourceMind ?? null, opts.targetMind ?? null,
|
|
839
|
+
);
|
|
840
|
+
|
|
841
|
+
return { id, duplicate: false };
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/** Reinforce an edge */
|
|
845
|
+
reinforceEdge(id: string): void {
|
|
846
|
+
const now = new Date().toISOString();
|
|
847
|
+
this.db.prepare(`
|
|
848
|
+
UPDATE edges
|
|
849
|
+
SET confidence = 1.0, last_reinforced = ?, reinforcement_count = reinforcement_count + 1
|
|
850
|
+
WHERE id = ?
|
|
851
|
+
`).run(now, id);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/** Archive an edge */
|
|
855
|
+
archiveEdge(id: string): void {
|
|
856
|
+
this.db.prepare(
|
|
857
|
+
`UPDATE edges SET status = 'archived' WHERE id = ?`
|
|
858
|
+
).run(id);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/** Get active edges for a fact (both directions) */
|
|
862
|
+
getEdgesForFact(factId: string): Edge[] {
|
|
863
|
+
const edges = this.db.prepare(`
|
|
864
|
+
SELECT * FROM edges
|
|
865
|
+
WHERE (source_fact_id = ? OR target_fact_id = ?) AND status = 'active'
|
|
866
|
+
`).all(factId, factId) as Edge[];
|
|
867
|
+
|
|
868
|
+
return this.applyEdgeDecay(edges);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/** Get all active edges, optionally filtered by mind */
|
|
872
|
+
getActiveEdges(mind?: string): Edge[] {
|
|
873
|
+
let edges: Edge[];
|
|
874
|
+
if (mind) {
|
|
875
|
+
const chain = this.resolveMindChain(mind);
|
|
876
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
877
|
+
edges = this.db.prepare(`
|
|
878
|
+
SELECT * FROM edges
|
|
879
|
+
WHERE (source_mind IN (${placeholders}) OR target_mind IN (${placeholders})) AND status = 'active'
|
|
880
|
+
`).all(...chain, ...chain) as Edge[];
|
|
881
|
+
} else {
|
|
882
|
+
edges = this.db.prepare(
|
|
883
|
+
`SELECT * FROM edges WHERE status = 'active'`
|
|
884
|
+
).all() as Edge[];
|
|
885
|
+
}
|
|
886
|
+
return this.applyEdgeDecay(edges);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/** Get a single edge by ID */
|
|
890
|
+
getEdge(id: string): Edge | null {
|
|
891
|
+
const edge = this.db.prepare(`SELECT * FROM edges WHERE id = ?`).get(id) as Edge | null;
|
|
892
|
+
if (edge) {
|
|
893
|
+
const [decayed] = this.applyEdgeDecay([edge]);
|
|
894
|
+
return decayed;
|
|
895
|
+
}
|
|
896
|
+
return null;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Get active edges connected to any of the given fact IDs.
|
|
901
|
+
* Returns top N by reinforcement count, filtered by min confidence after decay.
|
|
902
|
+
*/
|
|
903
|
+
getEdgesForFacts(factIds: string[], limit: number = 20, minConfidence: number = DECAY.minimumConfidence): Edge[] {
|
|
904
|
+
if (factIds.length === 0) return [];
|
|
905
|
+
|
|
906
|
+
const placeholders = factIds.map(() => "?").join(",");
|
|
907
|
+
const edges = this.db.prepare(`
|
|
908
|
+
SELECT * FROM edges
|
|
909
|
+
WHERE status = 'active'
|
|
910
|
+
AND (source_fact_id IN (${placeholders}) OR target_fact_id IN (${placeholders}))
|
|
911
|
+
ORDER BY reinforcement_count DESC
|
|
912
|
+
LIMIT ?
|
|
913
|
+
`).all(...factIds, ...factIds, limit * 2) as Edge[]; // fetch extra to account for decay filtering
|
|
914
|
+
|
|
915
|
+
const decayed = this.applyEdgeDecay(edges);
|
|
916
|
+
return decayed
|
|
917
|
+
.filter(e => e.confidence >= minConfidence)
|
|
918
|
+
.slice(0, limit);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/** Apply confidence decay to edges (same decay profile as this store's facts) */
|
|
922
|
+
private applyEdgeDecay(edges: Edge[]): Edge[] {
|
|
923
|
+
const now = Date.now();
|
|
924
|
+
for (const edge of edges) {
|
|
925
|
+
const lastReinforced = new Date(edge.last_reinforced).getTime();
|
|
926
|
+
const daysSince = (now - lastReinforced) / (1000 * 60 * 60 * 24);
|
|
927
|
+
edge.confidence = computeConfidence(daysSince, edge.reinforcement_count, this.decayProfile);
|
|
928
|
+
}
|
|
929
|
+
return edges;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Process edge actions from global extraction.
|
|
934
|
+
* Handles connect and reinforce_edge action types.
|
|
935
|
+
*/
|
|
936
|
+
processEdges(
|
|
937
|
+
actions: ExtractionAction[],
|
|
938
|
+
session?: string,
|
|
939
|
+
): EdgeResult {
|
|
940
|
+
let added = 0;
|
|
941
|
+
let reinforced = 0;
|
|
942
|
+
|
|
943
|
+
const tx = this.db.transaction(() => {
|
|
944
|
+
for (const action of actions) {
|
|
945
|
+
if (action.type !== "connect") continue;
|
|
946
|
+
if (!action.source || !action.target || !action.relation) continue;
|
|
947
|
+
|
|
948
|
+
// Verify both facts exist
|
|
949
|
+
const sourceFact = this.getFact(action.source);
|
|
950
|
+
const targetFact = this.getFact(action.target);
|
|
951
|
+
if (!sourceFact || !targetFact) continue;
|
|
952
|
+
|
|
953
|
+
const result = this.storeEdge({
|
|
954
|
+
sourceFact: action.source,
|
|
955
|
+
targetFact: action.target,
|
|
956
|
+
relation: action.relation,
|
|
957
|
+
description: action.description ?? `${action.relation}: ${sourceFact.content.slice(0, 50)} → ${targetFact.content.slice(0, 50)}`,
|
|
958
|
+
session,
|
|
959
|
+
sourceMind: sourceFact.mind,
|
|
960
|
+
targetMind: targetFact.mind,
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
if (result.duplicate) reinforced++;
|
|
964
|
+
else added++;
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
|
|
968
|
+
tx();
|
|
969
|
+
return { added, reinforced };
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// ---------------------------------------------------------------------------
|
|
973
|
+
// Queries
|
|
974
|
+
// ---------------------------------------------------------------------------
|
|
975
|
+
|
|
976
|
+
private mindChainCache = new Map<string, string[]>();
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Resolve the mind chain: [mind, parent, grandparent, ...].
|
|
980
|
+
* Used to include inherited facts from parent minds.
|
|
981
|
+
* Stops at 'default' or when no parent exists. Max depth 5 to prevent cycles.
|
|
982
|
+
* Cached per-mind since the parent chain is immutable within a session.
|
|
983
|
+
*/
|
|
984
|
+
private resolveMindChain(mind: string): string[] {
|
|
985
|
+
const cached = this.mindChainCache.get(mind);
|
|
986
|
+
if (cached) return cached;
|
|
987
|
+
|
|
988
|
+
const chain: string[] = [mind];
|
|
989
|
+
let current = mind;
|
|
990
|
+
for (let i = 0; i < 5; i++) {
|
|
991
|
+
const rec = this.getMind(current);
|
|
992
|
+
if (!rec?.parent || rec.parent === current) break;
|
|
993
|
+
chain.push(rec.parent);
|
|
994
|
+
current = rec.parent;
|
|
995
|
+
}
|
|
996
|
+
this.mindChainCache.set(mind, chain);
|
|
997
|
+
return chain;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/** Clear the mind chain cache (call after mind creation/deletion). */
|
|
1001
|
+
private invalidateMindChainCache(): void {
|
|
1002
|
+
this.mindChainCache.clear();
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Get active facts for a mind, with confidence decay applied.
|
|
1007
|
+
* If the mind has a parent, includes inherited parent facts (deduped
|
|
1008
|
+
* by content_hash — child facts shadow parent facts with the same content).
|
|
1009
|
+
* Optionally limit to top N by confidence.
|
|
1010
|
+
*/
|
|
1011
|
+
getActiveFacts(mind: string, limit?: number): Fact[] {
|
|
1012
|
+
const chain = this.resolveMindChain(mind);
|
|
1013
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1014
|
+
const allFacts = this.db.prepare(
|
|
1015
|
+
`SELECT * FROM facts WHERE mind IN (${placeholders}) AND status = 'active'
|
|
1016
|
+
ORDER BY section, created_at`
|
|
1017
|
+
).all(...chain) as Fact[];
|
|
1018
|
+
|
|
1019
|
+
// Deduplicate: child facts shadow parent facts with the same content_hash.
|
|
1020
|
+
// Keep the fact from the earliest mind in the chain (= the child).
|
|
1021
|
+
const seen = new Map<string, number>();
|
|
1022
|
+
const facts: Fact[] = [];
|
|
1023
|
+
for (const fact of allFacts) {
|
|
1024
|
+
const chainIdx = chain.indexOf(fact.mind);
|
|
1025
|
+
const existing = seen.get(fact.content_hash);
|
|
1026
|
+
if (existing !== undefined && existing <= chainIdx) continue; // child already present
|
|
1027
|
+
seen.set(fact.content_hash, chainIdx);
|
|
1028
|
+
// Remove any previously added parent fact with same hash
|
|
1029
|
+
if (existing !== undefined) {
|
|
1030
|
+
const idx = facts.findIndex(f => f.content_hash === fact.content_hash);
|
|
1031
|
+
if (idx !== -1) facts.splice(idx, 1);
|
|
1032
|
+
}
|
|
1033
|
+
facts.push(fact);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// Apply time-based confidence decay.
|
|
1037
|
+
// Specs are exempt (binary exist/not-exist).
|
|
1038
|
+
// "Recent Work" uses a fast-decay profile (half-life 2d, no reinforcement extension).
|
|
1039
|
+
// All other sections use the store's default decay profile.
|
|
1040
|
+
const NO_DECAY_SECTIONS: readonly string[] = ["Specs"];
|
|
1041
|
+
const now = Date.now();
|
|
1042
|
+
for (const fact of facts) {
|
|
1043
|
+
if (NO_DECAY_SECTIONS.includes(fact.section)) {
|
|
1044
|
+
fact.confidence = 1.0;
|
|
1045
|
+
} else {
|
|
1046
|
+
const lastReinforced = new Date(fact.last_reinforced).getTime();
|
|
1047
|
+
const daysSince = (now - lastReinforced) / (1000 * 60 * 60 * 24);
|
|
1048
|
+
const profile = SECTION_DECAY_OVERRIDES[fact.section] ?? this.decayProfile;
|
|
1049
|
+
fact.confidence = computeConfidence(daysSince, fact.reinforcement_count, profile);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// Sort by confidence descending within each section
|
|
1054
|
+
facts.sort((a, b) => {
|
|
1055
|
+
if (a.section !== b.section) {
|
|
1056
|
+
const idxA = SECTIONS.indexOf(a.section as SectionName);
|
|
1057
|
+
const idxB = SECTIONS.indexOf(b.section as SectionName);
|
|
1058
|
+
return idxA - idxB;
|
|
1059
|
+
}
|
|
1060
|
+
return b.confidence - a.confidence;
|
|
1061
|
+
});
|
|
1062
|
+
|
|
1063
|
+
if (limit) {
|
|
1064
|
+
return facts.slice(0, limit);
|
|
1065
|
+
}
|
|
1066
|
+
return facts;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/** Get active facts for a specific section, sorted by confidence descending. */
|
|
1070
|
+
getFactsBySection(mind: string, section: string): Fact[] {
|
|
1071
|
+
const chain = this.resolveMindChain(mind);
|
|
1072
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1073
|
+
const allFacts = this.db.prepare(
|
|
1074
|
+
`SELECT * FROM facts WHERE mind IN (${placeholders}) AND section = ? AND status = 'active' ORDER BY created_at`
|
|
1075
|
+
).all(...chain, section) as Fact[];
|
|
1076
|
+
// Deduplicate: child facts shadow parent facts with the same content_hash.
|
|
1077
|
+
const seen = new Map<string, number>();
|
|
1078
|
+
const facts: Fact[] = [];
|
|
1079
|
+
for (const f of allFacts) {
|
|
1080
|
+
const chainIdx = chain.indexOf(f.mind);
|
|
1081
|
+
const existing = seen.get(f.content_hash);
|
|
1082
|
+
if (existing !== undefined && existing <= chainIdx) continue;
|
|
1083
|
+
seen.set(f.content_hash, chainIdx);
|
|
1084
|
+
if (existing !== undefined) {
|
|
1085
|
+
const idx = facts.findIndex(ff => ff.content_hash === f.content_hash);
|
|
1086
|
+
if (idx !== -1) facts.splice(idx, 1);
|
|
1087
|
+
}
|
|
1088
|
+
facts.push(f);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
const NO_DECAY_SECTIONS: readonly string[] = ["Specs"];
|
|
1092
|
+
const now = Date.now();
|
|
1093
|
+
for (const fact of facts) {
|
|
1094
|
+
if (NO_DECAY_SECTIONS.includes(fact.section)) {
|
|
1095
|
+
fact.confidence = 1.0;
|
|
1096
|
+
} else {
|
|
1097
|
+
const lastReinforced = new Date(fact.last_reinforced).getTime();
|
|
1098
|
+
const daysSince = (now - lastReinforced) / (1000 * 60 * 60 * 24);
|
|
1099
|
+
const profile = SECTION_DECAY_OVERRIDES[fact.section] ?? this.decayProfile;
|
|
1100
|
+
fact.confidence = computeConfidence(daysSince, fact.reinforcement_count, profile);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
facts.sort((a, b) => b.confidence - a.confidence);
|
|
1105
|
+
return facts;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/** Get the count of active facts per section for a mind. */
|
|
1109
|
+
getSectionCounts(mind: string): Map<string, number> {
|
|
1110
|
+
const chain = this.resolveMindChain(mind);
|
|
1111
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1112
|
+
const rows = this.db.prepare(
|
|
1113
|
+
`SELECT section, COUNT(DISTINCT content_hash) as count FROM facts WHERE mind IN (${placeholders}) AND status = 'active' GROUP BY section`
|
|
1114
|
+
).all(...chain) as { section: string; count: number }[];
|
|
1115
|
+
return new Map(rows.map(r => [r.section, r.count]));
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/** Count active facts for a mind (including inherited parent facts) */
|
|
1119
|
+
countActiveFacts(mind: string): number {
|
|
1120
|
+
const chain = this.resolveMindChain(mind);
|
|
1121
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1122
|
+
const row = this.db.prepare(
|
|
1123
|
+
`SELECT COUNT(DISTINCT content_hash) as count FROM facts WHERE mind IN (${placeholders}) AND status = 'active'`
|
|
1124
|
+
).get(...chain);
|
|
1125
|
+
return row?.count ?? 0;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/** Find facts whose content starts with a given prefix using a LIKE query (no FTS5, safe for special chars) */
|
|
1129
|
+
findFactsByContentPrefix(prefix: string, mind?: string): Fact[] {
|
|
1130
|
+
// Use LIKE with escaped pattern — only % and _ need escaping in LIKE
|
|
1131
|
+
const escaped = prefix.replace(/\\/g, "\\\\").replace(/%/g, "\\%").replace(/_/g, "\\_");
|
|
1132
|
+
const pattern = `${escaped}%`;
|
|
1133
|
+
|
|
1134
|
+
if (mind) {
|
|
1135
|
+
const chain = this.resolveMindChain(mind);
|
|
1136
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1137
|
+
return this.db.prepare(`
|
|
1138
|
+
SELECT * FROM facts
|
|
1139
|
+
WHERE content LIKE ? ESCAPE '\\' AND mind IN (${placeholders}) AND status = 'active'
|
|
1140
|
+
ORDER BY created_at DESC
|
|
1141
|
+
`).all(pattern, ...chain) as Fact[];
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
return this.db.prepare(`
|
|
1145
|
+
SELECT * FROM facts
|
|
1146
|
+
WHERE content LIKE ? ESCAPE '\\' AND status = 'active'
|
|
1147
|
+
ORDER BY created_at DESC
|
|
1148
|
+
`).all(pattern) as Fact[];
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/** Full-text search across all facts (all minds, all statuses) */
|
|
1152
|
+
searchFacts(query: string, mind?: string): Fact[] {
|
|
1153
|
+
const ftsQuery = buildSafeFtsQuery(query, "AND");
|
|
1154
|
+
if (!ftsQuery) return [];
|
|
1155
|
+
|
|
1156
|
+
try {
|
|
1157
|
+
if (mind) {
|
|
1158
|
+
const chain = this.resolveMindChain(mind);
|
|
1159
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1160
|
+
return this.db.prepare(`
|
|
1161
|
+
SELECT f.* FROM facts f
|
|
1162
|
+
JOIN facts_fts fts ON f.rowid = fts.rowid
|
|
1163
|
+
WHERE facts_fts MATCH ? AND f.mind IN (${placeholders})
|
|
1164
|
+
ORDER BY rank
|
|
1165
|
+
`).all(ftsQuery, ...chain) as Fact[];
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
return this.db.prepare(`
|
|
1169
|
+
SELECT f.* FROM facts f
|
|
1170
|
+
JOIN facts_fts fts ON f.rowid = fts.rowid
|
|
1171
|
+
WHERE facts_fts MATCH ?
|
|
1172
|
+
ORDER BY rank
|
|
1173
|
+
`).all(ftsQuery) as Fact[];
|
|
1174
|
+
} catch (error) {
|
|
1175
|
+
if (isIgnorableFtsQueryError(error)) return [];
|
|
1176
|
+
throw error;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/** Search archived/superseded facts (replaces searchArchive) */
|
|
1181
|
+
searchArchive(query: string, mind?: string): Fact[] {
|
|
1182
|
+
const ftsQuery = buildSafeFtsQuery(query, "AND");
|
|
1183
|
+
if (!ftsQuery) return [];
|
|
1184
|
+
|
|
1185
|
+
try {
|
|
1186
|
+
if (mind) {
|
|
1187
|
+
const chain = this.resolveMindChain(mind);
|
|
1188
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1189
|
+
return this.db.prepare(`
|
|
1190
|
+
SELECT f.* FROM facts f
|
|
1191
|
+
JOIN facts_fts fts ON f.rowid = fts.rowid
|
|
1192
|
+
WHERE facts_fts MATCH ? AND f.mind IN (${placeholders}) AND f.status IN ('archived', 'superseded')
|
|
1193
|
+
ORDER BY f.created_at DESC
|
|
1194
|
+
`).all(ftsQuery, ...chain) as Fact[];
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
return this.db.prepare(`
|
|
1198
|
+
SELECT f.* FROM facts f
|
|
1199
|
+
JOIN facts_fts fts ON f.rowid = fts.rowid
|
|
1200
|
+
WHERE facts_fts MATCH ? AND f.status IN ('archived', 'superseded')
|
|
1201
|
+
ORDER BY f.created_at DESC
|
|
1202
|
+
`).all(ftsQuery) as Fact[];
|
|
1203
|
+
} catch (error) {
|
|
1204
|
+
if (isIgnorableFtsQueryError(error)) return [];
|
|
1205
|
+
throw error;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/** Get a single fact by ID */
|
|
1210
|
+
getFact(id: string): Fact | null {
|
|
1211
|
+
return this.db.prepare(`SELECT * FROM facts WHERE id = ?`).get(id) as Fact | null;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/** Get supersession chain for a fact */
|
|
1215
|
+
getSupersessionChain(id: string): Fact[] {
|
|
1216
|
+
const chain: Fact[] = [];
|
|
1217
|
+
let current = this.getFact(id);
|
|
1218
|
+
while (current) {
|
|
1219
|
+
chain.push(current);
|
|
1220
|
+
if (current.supersedes) {
|
|
1221
|
+
current = this.getFact(current.supersedes);
|
|
1222
|
+
} else {
|
|
1223
|
+
break;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
return chain;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
// ---------------------------------------------------------------------------
|
|
1230
|
+
// Rendering — Markdown-KV for LLM injection
|
|
1231
|
+
// ---------------------------------------------------------------------------
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Render active facts as Markdown-KV for LLM context injection.
|
|
1235
|
+
* Filters by confidence threshold and respects a line budget.
|
|
1236
|
+
*/
|
|
1237
|
+
renderForInjection(mind: string, opts?: { maxFacts?: number; minConfidence?: number; maxEdges?: number; showIds?: boolean }): string {
|
|
1238
|
+
const maxFacts = opts?.maxFacts ?? 50;
|
|
1239
|
+
const maxEdges = opts?.maxEdges ?? 20;
|
|
1240
|
+
const minConfidence = opts?.minConfidence ?? this.decayProfile.minimumConfidence;
|
|
1241
|
+
const showIds = opts?.showIds ?? false;
|
|
1242
|
+
|
|
1243
|
+
// Per-section caps: Architecture is the largest section by volume.
|
|
1244
|
+
// Cap it aggressively so it can't crowd out other sections or blow context.
|
|
1245
|
+
// Remaining sections are capped at reasonable defaults.
|
|
1246
|
+
const SECTION_CAPS: Partial<Record<SectionName, number>> = {
|
|
1247
|
+
Architecture: 12,
|
|
1248
|
+
Decisions: 10,
|
|
1249
|
+
Constraints: 6,
|
|
1250
|
+
"Known Issues": 6,
|
|
1251
|
+
"Patterns & Conventions": 6,
|
|
1252
|
+
Specs: 10,
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1255
|
+
let facts = this.getActiveFacts(mind);
|
|
1256
|
+
|
|
1257
|
+
// Filter by confidence
|
|
1258
|
+
facts = facts.filter(f => f.confidence >= minConfidence);
|
|
1259
|
+
|
|
1260
|
+
// Apply per-section caps (top N by confidence within each section)
|
|
1261
|
+
const cappedFacts: typeof facts = [];
|
|
1262
|
+
for (const section of SECTIONS) {
|
|
1263
|
+
const sectionFacts = facts
|
|
1264
|
+
.filter(f => f.section === section)
|
|
1265
|
+
.sort((a, b) => b.confidence - a.confidence)
|
|
1266
|
+
.slice(0, SECTION_CAPS[section as SectionName] ?? 10);
|
|
1267
|
+
cappedFacts.push(...sectionFacts);
|
|
1268
|
+
}
|
|
1269
|
+
facts = cappedFacts;
|
|
1270
|
+
|
|
1271
|
+
// Apply global cap as a final safety net
|
|
1272
|
+
if (facts.length > maxFacts) {
|
|
1273
|
+
facts.sort((a, b) => b.confidence - a.confidence);
|
|
1274
|
+
facts = facts.slice(0, maxFacts);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// Re-sort by section order for display
|
|
1278
|
+
facts.sort((a, b) => {
|
|
1279
|
+
const idxA = SECTIONS.indexOf(a.section as SectionName);
|
|
1280
|
+
const idxB = SECTIONS.indexOf(b.section as SectionName);
|
|
1281
|
+
if (idxA !== idxB) return idxA - idxB;
|
|
1282
|
+
return b.confidence - a.confidence;
|
|
1283
|
+
});
|
|
1284
|
+
|
|
1285
|
+
const lines: string[] = [
|
|
1286
|
+
"<!-- Project Memory — managed by project-memory extension -->",
|
|
1287
|
+
"",
|
|
1288
|
+
];
|
|
1289
|
+
|
|
1290
|
+
const sectionDescriptions: Record<string, string> = {
|
|
1291
|
+
Architecture: "_System structure, component relationships, key abstractions_",
|
|
1292
|
+
Decisions: "_Choices made and their rationale_",
|
|
1293
|
+
Constraints: "_Requirements, limitations, environment details_",
|
|
1294
|
+
"Known Issues": "_Bugs, flaky tests, workarounds_",
|
|
1295
|
+
"Patterns & Conventions": "_Code style, project conventions, common approaches_",
|
|
1296
|
+
Specs: "_Active specifications, acceptance criteria, and design contracts driving current work_",
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
// Build a set of rendered fact IDs for edge lookup
|
|
1300
|
+
const renderedFactIds = new Set<string>();
|
|
1301
|
+
|
|
1302
|
+
for (const section of SECTIONS) {
|
|
1303
|
+
const sectionFacts = facts.filter(f => f.section === section);
|
|
1304
|
+
lines.push(`## ${section}`);
|
|
1305
|
+
lines.push(sectionDescriptions[section] ?? "");
|
|
1306
|
+
lines.push("");
|
|
1307
|
+
if (sectionFacts.length > 0) {
|
|
1308
|
+
for (const f of sectionFacts) {
|
|
1309
|
+
const date = f.created_at.split("T")[0];
|
|
1310
|
+
lines.push(showIds ? `- [${f.id}] ${f.content} [${date}]` : `- ${f.content} [${date}]`);
|
|
1311
|
+
renderedFactIds.add(f.id);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
lines.push("");
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
// Render edges between rendered facts (capped)
|
|
1318
|
+
const relevantEdges = renderedFactIds.size > 0
|
|
1319
|
+
? this.getEdgesForFacts([...renderedFactIds], maxEdges, minConfidence)
|
|
1320
|
+
: [];
|
|
1321
|
+
|
|
1322
|
+
if (relevantEdges.length > 0) {
|
|
1323
|
+
lines.push("## Connections");
|
|
1324
|
+
lines.push("_Relationships between facts across domains_");
|
|
1325
|
+
lines.push("");
|
|
1326
|
+
for (const edge of relevantEdges) {
|
|
1327
|
+
const sourceFact = this.getFact(edge.source_fact_id);
|
|
1328
|
+
const targetFact = this.getFact(edge.target_fact_id);
|
|
1329
|
+
if (!sourceFact || !targetFact) continue;
|
|
1330
|
+
const srcLabel = sourceFact.content.length > 60
|
|
1331
|
+
? sourceFact.content.slice(0, 57) + "..."
|
|
1332
|
+
: sourceFact.content;
|
|
1333
|
+
const tgtLabel = targetFact.content.length > 60
|
|
1334
|
+
? targetFact.content.slice(0, 57) + "..."
|
|
1335
|
+
: targetFact.content;
|
|
1336
|
+
lines.push(`- ${srcLabel} **—${edge.relation}→** ${tgtLabel}`);
|
|
1337
|
+
}
|
|
1338
|
+
lines.push("");
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
return lines.join("\n");
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* Render an arbitrary list of facts as Markdown-KV.
|
|
1346
|
+
* Unlike renderForInjection, this doesn't query the DB — it formats what you give it.
|
|
1347
|
+
*/
|
|
1348
|
+
renderFactList(facts: Fact[], opts?: { showIds?: boolean }): string {
|
|
1349
|
+
const showIds = opts?.showIds ?? false;
|
|
1350
|
+
|
|
1351
|
+
const lines: string[] = [
|
|
1352
|
+
"<!-- Project Memory — managed by project-memory extension -->",
|
|
1353
|
+
"",
|
|
1354
|
+
];
|
|
1355
|
+
|
|
1356
|
+
const sectionDescriptions: Record<string, string> = {
|
|
1357
|
+
Architecture: "_System structure, component relationships, key abstractions_",
|
|
1358
|
+
Decisions: "_Choices made and their rationale_",
|
|
1359
|
+
Constraints: "_Requirements, limitations, environment details_",
|
|
1360
|
+
"Known Issues": "_Bugs, flaky tests, workarounds_",
|
|
1361
|
+
"Patterns & Conventions": "_Code style, project conventions, common approaches_",
|
|
1362
|
+
Specs: "_Active specifications, acceptance criteria, and design contracts driving current work_",
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
// Group by section, maintaining SECTIONS order
|
|
1366
|
+
for (const section of SECTIONS) {
|
|
1367
|
+
const sectionFacts = facts.filter(f => f.section === section);
|
|
1368
|
+
if (sectionFacts.length === 0) continue;
|
|
1369
|
+
lines.push(`## ${section}`);
|
|
1370
|
+
lines.push(sectionDescriptions[section] ?? "");
|
|
1371
|
+
lines.push("");
|
|
1372
|
+
for (const f of sectionFacts) {
|
|
1373
|
+
const date = f.created_at.split("T")[0];
|
|
1374
|
+
lines.push(showIds ? `- [${f.id}] ${f.content} [${date}]` : `- ${f.content} [${date}]`);
|
|
1375
|
+
}
|
|
1376
|
+
lines.push("");
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
return lines.join("\n");
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
// ---------------------------------------------------------------------------
|
|
1383
|
+
// Mind management
|
|
1384
|
+
// ---------------------------------------------------------------------------
|
|
1385
|
+
|
|
1386
|
+
/** Create a mind */
|
|
1387
|
+
createMind(name: string, description: string, opts?: { parent?: string; origin_type?: string; origin_path?: string; readonly?: boolean }): void {
|
|
1388
|
+
this.db.prepare(`
|
|
1389
|
+
INSERT INTO minds (name, description, status, origin_type, origin_path, readonly, parent, created_at)
|
|
1390
|
+
VALUES (?, ?, 'active', ?, ?, ?, ?, ?)
|
|
1391
|
+
`).run(
|
|
1392
|
+
name, description,
|
|
1393
|
+
opts?.origin_type ?? "local",
|
|
1394
|
+
opts?.origin_path ?? null,
|
|
1395
|
+
opts?.readonly ? 1 : 0,
|
|
1396
|
+
opts?.parent ?? null,
|
|
1397
|
+
new Date().toISOString(),
|
|
1398
|
+
);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/** Get a mind record */
|
|
1402
|
+
getMind(name: string): MindRecord | null {
|
|
1403
|
+
return this.db.prepare(`SELECT * FROM minds WHERE name = ?`).get(name) as MindRecord | null;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/** List all minds */
|
|
1407
|
+
listMinds(): (MindRecord & { factCount: number })[] {
|
|
1408
|
+
return this.db.prepare(`
|
|
1409
|
+
SELECT m.*, COALESCE(fc.count, 0) as factCount
|
|
1410
|
+
FROM minds m
|
|
1411
|
+
LEFT JOIN (
|
|
1412
|
+
SELECT mind, COUNT(*) as count FROM facts WHERE status = 'active' GROUP BY mind
|
|
1413
|
+
) fc ON m.name = fc.mind
|
|
1414
|
+
ORDER BY CASE m.status WHEN 'active' THEN 0 WHEN 'refined' THEN 1 WHEN 'retired' THEN 2 END
|
|
1415
|
+
`).all() as (MindRecord & { factCount: number })[];
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/** Update mind status */
|
|
1419
|
+
setMindStatus(name: string, status: MindRecord["status"]): void {
|
|
1420
|
+
this.db.prepare(`UPDATE minds SET status = ? WHERE name = ?`).run(status, name);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/** Delete a mind and all its facts */
|
|
1424
|
+
deleteMind(name: string): void {
|
|
1425
|
+
if (name === "default") throw new Error("Cannot delete the default mind");
|
|
1426
|
+
const tx = this.db.transaction(() => {
|
|
1427
|
+
this.db.prepare(`DELETE FROM facts WHERE mind = ?`).run(name);
|
|
1428
|
+
this.db.prepare(`DELETE FROM minds WHERE name = ?`).run(name);
|
|
1429
|
+
});
|
|
1430
|
+
tx();
|
|
1431
|
+
this.invalidateMindChainCache();
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/** Check if a mind exists */
|
|
1435
|
+
mindExists(name: string): boolean {
|
|
1436
|
+
return !!this.db.prepare(`SELECT 1 FROM minds WHERE name = ?`).get(name);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
/** Check if a mind is readonly */
|
|
1440
|
+
isMindReadonly(name: string): boolean {
|
|
1441
|
+
const mind = this.getMind(name);
|
|
1442
|
+
return mind?.readonly === 1;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Fork a mind — create a child scope that inherits the parent's facts.
|
|
1447
|
+
*
|
|
1448
|
+
* Lightweight: creates the mind record with `parent` set but copies zero
|
|
1449
|
+
* facts, edges, or embeddings. Query methods (getActiveFacts, vector search)
|
|
1450
|
+
* automatically include parent facts via the parent chain. Only facts
|
|
1451
|
+
* explicitly stored in the child are scoped to it.
|
|
1452
|
+
*
|
|
1453
|
+
* On archive, `ingestMind` copies child-only facts back to the parent.
|
|
1454
|
+
*/
|
|
1455
|
+
forkMind(sourceName: string, newName: string, description: string): void {
|
|
1456
|
+
this.createMind(newName, description, { parent: sourceName });
|
|
1457
|
+
this.invalidateMindChainCache();
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/** Ingest facts from one mind into another */
|
|
1461
|
+
ingestMind(sourceName: string, targetName: string): { factsIngested: number; duplicatesSkipped: number } {
|
|
1462
|
+
// Only ingest facts directly stored in the source mind, not inherited from parents.
|
|
1463
|
+
// Inherited facts already exist in the parent (which is typically the target).
|
|
1464
|
+
const sourceFacts = this.db.prepare(
|
|
1465
|
+
`SELECT * FROM facts WHERE mind = ? AND status = 'active' ORDER BY section, created_at`
|
|
1466
|
+
).all(sourceName) as Fact[];
|
|
1467
|
+
let ingested = 0;
|
|
1468
|
+
let skipped = 0;
|
|
1469
|
+
|
|
1470
|
+
const tx = this.db.transaction(() => {
|
|
1471
|
+
for (const fact of sourceFacts) {
|
|
1472
|
+
const result = this.storeFact({
|
|
1473
|
+
mind: targetName,
|
|
1474
|
+
section: fact.section as SectionName,
|
|
1475
|
+
content: fact.content,
|
|
1476
|
+
source: "ingest",
|
|
1477
|
+
reinforcement_count: fact.reinforcement_count,
|
|
1478
|
+
});
|
|
1479
|
+
if (result.duplicate) {
|
|
1480
|
+
skipped++;
|
|
1481
|
+
} else {
|
|
1482
|
+
ingested++;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
// Retire source if writable
|
|
1487
|
+
if (!this.isMindReadonly(sourceName)) {
|
|
1488
|
+
this.setMindStatus(sourceName, "retired");
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
tx();
|
|
1492
|
+
|
|
1493
|
+
return { factsIngested: ingested, duplicatesSkipped: skipped };
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// ---------------------------------------------------------------------------
|
|
1497
|
+
// Active mind state (persisted in DB via a settings table or pragma)
|
|
1498
|
+
// ---------------------------------------------------------------------------
|
|
1499
|
+
|
|
1500
|
+
/** Get/set active mind using a simple key-value in the DB */
|
|
1501
|
+
getActiveMind(): string | null {
|
|
1502
|
+
// Use a lightweight approach — store in a settings row
|
|
1503
|
+
this.db.exec(`
|
|
1504
|
+
CREATE TABLE IF NOT EXISTS settings (key TEXT PRIMARY KEY, value TEXT)
|
|
1505
|
+
`);
|
|
1506
|
+
const row = this.db.prepare(`SELECT value FROM settings WHERE key = 'active_mind'`).get();
|
|
1507
|
+
if (!row) return null;
|
|
1508
|
+
const name = row.value;
|
|
1509
|
+
if (name && this.mindExists(name)) return name;
|
|
1510
|
+
return null;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
setActiveMind(name: string | null): void {
|
|
1514
|
+
this.db.exec(`
|
|
1515
|
+
CREATE TABLE IF NOT EXISTS settings (key TEXT PRIMARY KEY, value TEXT)
|
|
1516
|
+
`);
|
|
1517
|
+
this.db.prepare(`
|
|
1518
|
+
INSERT OR REPLACE INTO settings (key, value) VALUES ('active_mind', ?)
|
|
1519
|
+
`).run(name);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
// ---------------------------------------------------------------------------
|
|
1523
|
+
// JSONL Export/Import — portable fact sync across machines
|
|
1524
|
+
// ---------------------------------------------------------------------------
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Export all facts and edges to JSONL format.
|
|
1528
|
+
* Each line is a self-contained JSON object with type prefix.
|
|
1529
|
+
* Includes all statuses so the full history is portable.
|
|
1530
|
+
*/
|
|
1531
|
+
exportToJsonl(): string {
|
|
1532
|
+
const lines: string[] = [];
|
|
1533
|
+
|
|
1534
|
+
// Export minds (except default which is auto-created)
|
|
1535
|
+
const minds = this.listMinds();
|
|
1536
|
+
for (const mind of minds) {
|
|
1537
|
+
if (mind.name === "default") continue;
|
|
1538
|
+
lines.push(JSON.stringify({
|
|
1539
|
+
_type: "mind",
|
|
1540
|
+
name: mind.name,
|
|
1541
|
+
description: mind.description,
|
|
1542
|
+
status: mind.status,
|
|
1543
|
+
origin_type: mind.origin_type,
|
|
1544
|
+
created_at: mind.created_at,
|
|
1545
|
+
}));
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
// Export all active facts — deterministic: chronological with id tie-break
|
|
1549
|
+
const allFacts = this.db.prepare(
|
|
1550
|
+
`SELECT * FROM facts WHERE status = 'active' ORDER BY mind, section, created_at, id`
|
|
1551
|
+
).all() as Fact[];
|
|
1552
|
+
|
|
1553
|
+
for (const fact of allFacts) {
|
|
1554
|
+
lines.push(JSON.stringify({
|
|
1555
|
+
_type: "fact",
|
|
1556
|
+
id: fact.id,
|
|
1557
|
+
mind: fact.mind,
|
|
1558
|
+
section: fact.section,
|
|
1559
|
+
content: fact.content,
|
|
1560
|
+
status: fact.status,
|
|
1561
|
+
created_at: fact.created_at,
|
|
1562
|
+
source: fact.source,
|
|
1563
|
+
content_hash: fact.content_hash,
|
|
1564
|
+
supersedes: fact.supersedes,
|
|
1565
|
+
}));
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
// Export active edges — deterministic: chronological with id tie-break
|
|
1569
|
+
const allEdges = this.db.prepare(
|
|
1570
|
+
`SELECT * FROM edges WHERE status = 'active' ORDER BY created_at, id`
|
|
1571
|
+
).all() as Edge[];
|
|
1572
|
+
|
|
1573
|
+
for (const edge of allEdges) {
|
|
1574
|
+
lines.push(JSON.stringify({
|
|
1575
|
+
_type: "edge",
|
|
1576
|
+
id: edge.id,
|
|
1577
|
+
source_fact_id: edge.source_fact_id,
|
|
1578
|
+
target_fact_id: edge.target_fact_id,
|
|
1579
|
+
relation: edge.relation,
|
|
1580
|
+
description: edge.description,
|
|
1581
|
+
source_mind: edge.source_mind,
|
|
1582
|
+
target_mind: edge.target_mind,
|
|
1583
|
+
}));
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
// Export episodes — deterministic: chronological with id tie-break
|
|
1587
|
+
const allEpisodes = this.db.prepare(
|
|
1588
|
+
`SELECT * FROM episodes ORDER BY date, created_at, id`
|
|
1589
|
+
).all() as Episode[];
|
|
1590
|
+
|
|
1591
|
+
for (const ep of allEpisodes) {
|
|
1592
|
+
const factIds = this.getEpisodeFactIds(ep.id);
|
|
1593
|
+
lines.push(JSON.stringify({
|
|
1594
|
+
_type: "episode",
|
|
1595
|
+
id: ep.id,
|
|
1596
|
+
mind: ep.mind,
|
|
1597
|
+
title: ep.title,
|
|
1598
|
+
narrative: ep.narrative,
|
|
1599
|
+
date: ep.date,
|
|
1600
|
+
session_id: ep.session_id,
|
|
1601
|
+
created_at: ep.created_at,
|
|
1602
|
+
fact_ids: factIds,
|
|
1603
|
+
}));
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
return lines.join("\n") + "\n";
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Import from JSONL, merging with existing data.
|
|
1611
|
+
* Uses content_hash dedup for facts — existing facts get reinforced,
|
|
1612
|
+
* new facts get inserted. Edges dedup by source+target+relation.
|
|
1613
|
+
* Returns counts of what happened.
|
|
1614
|
+
*/
|
|
1615
|
+
importFromJsonl(jsonl: string): { factsAdded: number; factsReinforced: number; edgesAdded: number; edgesReinforced: number; mindsCreated: number } {
|
|
1616
|
+
let factsAdded = 0;
|
|
1617
|
+
let factsReinforced = 0;
|
|
1618
|
+
let edgesAdded = 0;
|
|
1619
|
+
let edgesReinforced = 0;
|
|
1620
|
+
let mindsCreated = 0;
|
|
1621
|
+
|
|
1622
|
+
// Map from imported fact ID → local fact ID (for edge remapping)
|
|
1623
|
+
const factIdMap = new Map<string, string>();
|
|
1624
|
+
|
|
1625
|
+
// Pre-dedup: merge=union in git can produce multiple lines with the same id.
|
|
1626
|
+
// Legacy exports may differ in volatile scoring metadata
|
|
1627
|
+
// (reinforcement_count, last_reinforced); newer stable exports may be byte-identical
|
|
1628
|
+
// apart from line duplication. Prefer the record with stronger legacy metadata when
|
|
1629
|
+
// present, otherwise keep the first durable record encountered.
|
|
1630
|
+
const dedupedRecords: any[] = [];
|
|
1631
|
+
const seenById = new Map<string, number>(); // id → index in dedupedRecords
|
|
1632
|
+
for (const line of jsonl.split("\n")) {
|
|
1633
|
+
const trimmed = line.trim();
|
|
1634
|
+
if (!trimmed) continue;
|
|
1635
|
+
let record: any;
|
|
1636
|
+
try {
|
|
1637
|
+
record = JSON.parse(trimmed);
|
|
1638
|
+
} catch {
|
|
1639
|
+
continue;
|
|
1640
|
+
}
|
|
1641
|
+
const id = record.id;
|
|
1642
|
+
if (id && seenById.has(id)) {
|
|
1643
|
+
const idx = seenById.get(id)!;
|
|
1644
|
+
const existing = dedupedRecords[idx];
|
|
1645
|
+
// Keep higher reinforcement_count; tie-break on last_reinforced
|
|
1646
|
+
if ((record.reinforcement_count ?? 0) > (existing.reinforcement_count ?? 0) ||
|
|
1647
|
+
((record.reinforcement_count ?? 0) === (existing.reinforcement_count ?? 0) &&
|
|
1648
|
+
(record.last_reinforced ?? "") > (existing.last_reinforced ?? ""))) {
|
|
1649
|
+
dedupedRecords[idx] = record;
|
|
1650
|
+
}
|
|
1651
|
+
} else {
|
|
1652
|
+
if (id) seenById.set(id, dedupedRecords.length);
|
|
1653
|
+
dedupedRecords.push(record);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
const tx = this.db.transaction(() => {
|
|
1658
|
+
for (const record of dedupedRecords) {
|
|
1659
|
+
|
|
1660
|
+
switch (record._type) {
|
|
1661
|
+
case "mind": {
|
|
1662
|
+
if (!this.mindExists(record.name)) {
|
|
1663
|
+
this.createMind(record.name, record.description ?? "", {
|
|
1664
|
+
origin_type: record.origin_type ?? "local",
|
|
1665
|
+
});
|
|
1666
|
+
mindsCreated++;
|
|
1667
|
+
}
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
case "fact": {
|
|
1671
|
+
const mind = record.mind ?? "default";
|
|
1672
|
+
if (!this.mindExists(mind)) {
|
|
1673
|
+
this.createMind(mind, "", { origin_type: "local" });
|
|
1674
|
+
mindsCreated++;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
// Dedup by content hash — check ALL statuses to avoid resurrecting
|
|
1678
|
+
// archived or superseded facts from stale JSONL snapshots.
|
|
1679
|
+
const hash = record.content_hash ?? contentHash(record.content);
|
|
1680
|
+
const existingAny = this.db.prepare(
|
|
1681
|
+
`SELECT id, status FROM facts WHERE mind = ? AND content_hash = ?`
|
|
1682
|
+
).get(mind, hash) as { id: string; status: string } | undefined;
|
|
1683
|
+
|
|
1684
|
+
if (existingAny) {
|
|
1685
|
+
if (existingAny.status === "active") {
|
|
1686
|
+
// Reinforce, take higher reinforcement count
|
|
1687
|
+
const existingFact = this.getFact(existingAny.id);
|
|
1688
|
+
if (existingFact && record.reinforcement_count > existingFact.reinforcement_count) {
|
|
1689
|
+
this.db.prepare(`
|
|
1690
|
+
UPDATE facts SET reinforcement_count = ?, last_reinforced = ?, confidence = 1.0
|
|
1691
|
+
WHERE id = ?
|
|
1692
|
+
`).run(record.reinforcement_count, record.last_reinforced ?? new Date().toISOString(), existingAny.id);
|
|
1693
|
+
} else {
|
|
1694
|
+
this.reinforceFact(existingAny.id);
|
|
1695
|
+
}
|
|
1696
|
+
factsReinforced++;
|
|
1697
|
+
}
|
|
1698
|
+
// Archived/superseded facts: skip silently (don't resurrect)
|
|
1699
|
+
factIdMap.set(record.id, existingAny.id);
|
|
1700
|
+
} else {
|
|
1701
|
+
const id = nanoid();
|
|
1702
|
+
const now = new Date().toISOString();
|
|
1703
|
+
this.db.prepare(`
|
|
1704
|
+
INSERT INTO facts (id, mind, section, content, status, created_at, created_session,
|
|
1705
|
+
supersedes, source, content_hash, confidence, last_reinforced,
|
|
1706
|
+
reinforcement_count, decay_rate)
|
|
1707
|
+
VALUES (?, ?, ?, ?, 'active', ?, NULL, ?, ?, ?, ?, ?, ?, ?)
|
|
1708
|
+
`).run(
|
|
1709
|
+
id, mind, record.section, record.content,
|
|
1710
|
+
record.created_at ?? now,
|
|
1711
|
+
record.supersedes ?? null,
|
|
1712
|
+
record.source ?? "ingest",
|
|
1713
|
+
hash,
|
|
1714
|
+
record.confidence ?? 1.0,
|
|
1715
|
+
record.last_reinforced ?? now,
|
|
1716
|
+
record.reinforcement_count ?? 1,
|
|
1717
|
+
record.decay_rate ?? this.decayProfile.baseRate,
|
|
1718
|
+
);
|
|
1719
|
+
factIdMap.set(record.id, id);
|
|
1720
|
+
factsAdded++;
|
|
1721
|
+
}
|
|
1722
|
+
break;
|
|
1723
|
+
}
|
|
1724
|
+
case "edge": {
|
|
1725
|
+
// Remap fact IDs
|
|
1726
|
+
const sourceId = factIdMap.get(record.source_fact_id) ?? record.source_fact_id;
|
|
1727
|
+
const targetId = factIdMap.get(record.target_fact_id) ?? record.target_fact_id;
|
|
1728
|
+
|
|
1729
|
+
// Verify both facts exist locally
|
|
1730
|
+
if (!this.getFact(sourceId) || !this.getFact(targetId)) continue;
|
|
1731
|
+
|
|
1732
|
+
const result = this.storeEdge({
|
|
1733
|
+
sourceFact: sourceId,
|
|
1734
|
+
targetFact: targetId,
|
|
1735
|
+
relation: record.relation,
|
|
1736
|
+
description: record.description,
|
|
1737
|
+
sourceMind: record.source_mind,
|
|
1738
|
+
targetMind: record.target_mind,
|
|
1739
|
+
});
|
|
1740
|
+
|
|
1741
|
+
if (result.duplicate) {
|
|
1742
|
+
edgesReinforced++;
|
|
1743
|
+
} else {
|
|
1744
|
+
edgesAdded++;
|
|
1745
|
+
}
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
case "episode": {
|
|
1749
|
+
// Import episode — preserve original ID for cross-machine dedup.
|
|
1750
|
+
// getEpisode checks by ID, so using record.id ensures re-import is idempotent.
|
|
1751
|
+
const existing = this.getEpisode(record.id);
|
|
1752
|
+
if (!existing) {
|
|
1753
|
+
const mind = record.mind ?? "default";
|
|
1754
|
+
if (!this.mindExists(mind)) {
|
|
1755
|
+
this.createMind(mind, "", { origin_type: "local" });
|
|
1756
|
+
mindsCreated++;
|
|
1757
|
+
}
|
|
1758
|
+
// Remap fact IDs
|
|
1759
|
+
const factIds = (record.fact_ids as string[] ?? [])
|
|
1760
|
+
.map((id: string) => factIdMap.get(id) ?? id)
|
|
1761
|
+
.filter((id: string) => !!this.getFact(id));
|
|
1762
|
+
|
|
1763
|
+
this._storeEpisodeInner(record.id, {
|
|
1764
|
+
mind,
|
|
1765
|
+
title: record.title,
|
|
1766
|
+
narrative: record.narrative,
|
|
1767
|
+
date: record.date,
|
|
1768
|
+
sessionId: record.session_id ?? null,
|
|
1769
|
+
factIds,
|
|
1770
|
+
createdAt: record.created_at,
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
break;
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
|
|
1779
|
+
tx();
|
|
1780
|
+
return { factsAdded, factsReinforced, edgesAdded, edgesReinforced, mindsCreated };
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Get the mtime of the database file, or null if it doesn't exist.
|
|
1785
|
+
*/
|
|
1786
|
+
getDbMtime(): Date | null {
|
|
1787
|
+
try {
|
|
1788
|
+
const stat = fs.statSync(this.dbPath);
|
|
1789
|
+
return stat.mtime;
|
|
1790
|
+
} catch {
|
|
1791
|
+
return null;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
// ---------------------------------------------------------------------------
|
|
1796
|
+
// Vector Embeddings — Semantic Retrieval
|
|
1797
|
+
// ---------------------------------------------------------------------------
|
|
1798
|
+
|
|
1799
|
+
/** Register an embedding model in the metadata table (idempotent). */
|
|
1800
|
+
registerEmbeddingModel(model: string, dims: number): void {
|
|
1801
|
+
const now = new Date().toISOString();
|
|
1802
|
+
this.db.prepare(`
|
|
1803
|
+
INSERT OR IGNORE INTO embedding_metadata (model_name, dims, inserted_at)
|
|
1804
|
+
VALUES (?, ?, ?)
|
|
1805
|
+
`).run(model, dims, now);
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
/** Return the active embedding model metadata, or null if no vectors stored. */
|
|
1809
|
+
getActiveEmbeddingModel(): { model_name: string; dims: number } | null {
|
|
1810
|
+
return this.db.prepare(
|
|
1811
|
+
`SELECT model_name, dims FROM embedding_metadata ORDER BY inserted_at DESC LIMIT 1`
|
|
1812
|
+
).get() ?? null;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/** Store an embedding for a fact — also registers the model. */
|
|
1816
|
+
storeFactVector(factId: string, embedding: Float32Array, model: string): void {
|
|
1817
|
+
this.registerEmbeddingModel(model, embedding.length);
|
|
1818
|
+
const blob = vectorToBlob(embedding);
|
|
1819
|
+
const now = new Date().toISOString();
|
|
1820
|
+
this.db.prepare(`
|
|
1821
|
+
INSERT OR REPLACE INTO facts_vec (fact_id, embedding, model, dims, created_at, model_name)
|
|
1822
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
1823
|
+
`).run(factId, blob, model, embedding.length, now, model);
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
/** Get embedding for a fact */
|
|
1827
|
+
getFactVector(factId: string): Float32Array | null {
|
|
1828
|
+
const row = this.db.prepare(
|
|
1829
|
+
`SELECT embedding FROM facts_vec WHERE fact_id = ?`
|
|
1830
|
+
).get(factId);
|
|
1831
|
+
if (!row?.embedding) return null;
|
|
1832
|
+
return blobToVector(row.embedding as Buffer);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/** Check if a fact has a stored vector */
|
|
1836
|
+
hasFactVector(factId: string): boolean {
|
|
1837
|
+
return !!this.db.prepare(
|
|
1838
|
+
`SELECT 1 FROM facts_vec WHERE fact_id = ?`
|
|
1839
|
+
).get(factId);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/** Get all fact IDs that are missing vectors */
|
|
1843
|
+
getFactsMissingVectors(mind: string): string[] {
|
|
1844
|
+
const rows = this.db.prepare(`
|
|
1845
|
+
SELECT f.id FROM facts f
|
|
1846
|
+
LEFT JOIN facts_vec v ON f.id = v.fact_id
|
|
1847
|
+
WHERE f.mind = ? AND f.status = 'active' AND v.fact_id IS NULL
|
|
1848
|
+
`).all(mind) as { id: string }[];
|
|
1849
|
+
return rows.map(r => r.id);
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/** Count facts with vectors for a mind (including parent chain) */
|
|
1853
|
+
countFactVectors(mind: string): number {
|
|
1854
|
+
const chain = this.resolveMindChain(mind);
|
|
1855
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1856
|
+
const row = this.db.prepare(`
|
|
1857
|
+
SELECT COUNT(*) as count FROM facts_vec v
|
|
1858
|
+
JOIN facts f ON v.fact_id = f.id
|
|
1859
|
+
WHERE f.mind IN (${placeholders}) AND f.status = 'active'
|
|
1860
|
+
`).get(...chain);
|
|
1861
|
+
return row?.count ?? 0;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Semantic search: find top-k active facts most similar to a query vector.
|
|
1866
|
+
* Returns facts with similarity scores, filtered by mind and min confidence.
|
|
1867
|
+
* Applies confidence decay and computes final score as similarity × confidence.
|
|
1868
|
+
*
|
|
1869
|
+
* Skips vectors with mismatched dimensions (e.g., from a different embedding model).
|
|
1870
|
+
*/
|
|
1871
|
+
semanticSearch(
|
|
1872
|
+
queryVec: Float32Array,
|
|
1873
|
+
mind: string,
|
|
1874
|
+
opts?: { k?: number; minSimilarity?: number; section?: string },
|
|
1875
|
+
): (Fact & { similarity: number; score: number })[] {
|
|
1876
|
+
const k = opts?.k ?? 10;
|
|
1877
|
+
const minSim = opts?.minSimilarity ?? 0.3;
|
|
1878
|
+
const queryDims = queryVec.length;
|
|
1879
|
+
|
|
1880
|
+
// Get all active facts with vectors for this mind (including parent chain)
|
|
1881
|
+
const chain = this.resolveMindChain(mind);
|
|
1882
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
1883
|
+
let query = `
|
|
1884
|
+
SELECT f.*, v.embedding, v.dims FROM facts f
|
|
1885
|
+
JOIN facts_vec v ON f.id = v.fact_id
|
|
1886
|
+
WHERE f.mind IN (${placeholders}) AND f.status = 'active'
|
|
1887
|
+
`;
|
|
1888
|
+
const params: any[] = [...chain];
|
|
1889
|
+
|
|
1890
|
+
if (opts?.section) {
|
|
1891
|
+
query += ` AND f.section = ?`;
|
|
1892
|
+
params.push(opts.section);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
const rows = this.db.prepare(query).all(...params) as (Fact & { embedding: Buffer; dims: number })[];
|
|
1896
|
+
|
|
1897
|
+
// Compute similarities
|
|
1898
|
+
const NO_DECAY_SECTIONS: readonly string[] = ["Specs"];
|
|
1899
|
+
const now = Date.now();
|
|
1900
|
+
const scored: (Fact & { similarity: number; score: number })[] = [];
|
|
1901
|
+
|
|
1902
|
+
let dimMismatchCount = 0;
|
|
1903
|
+
|
|
1904
|
+
for (const row of rows) {
|
|
1905
|
+
// Dimension mismatch: log warning instead of silently skipping.
|
|
1906
|
+
// This happens when the embedding model changes (e.g., 384-dim → 1024-dim).
|
|
1907
|
+
if (row.dims !== queryDims) {
|
|
1908
|
+
dimMismatchCount++;
|
|
1909
|
+
continue;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
const factVec = blobToVector(row.embedding);
|
|
1913
|
+
const similarity = cosineSimilarity(queryVec, factVec);
|
|
1914
|
+
|
|
1915
|
+
if (similarity < minSim) continue;
|
|
1916
|
+
|
|
1917
|
+
// Apply confidence decay using the fact's stored decay profile (not the
|
|
1918
|
+
// store-wide default). This fixes the wrong-profile decay bug where a
|
|
1919
|
+
// "recent_work" fact was decayed with the "standard" profile.
|
|
1920
|
+
let confidence: number;
|
|
1921
|
+
if (NO_DECAY_SECTIONS.includes(row.section)) {
|
|
1922
|
+
confidence = 1.0;
|
|
1923
|
+
} else {
|
|
1924
|
+
// Use access reinforcement: effective last-active is max(last_reinforced, last_accessed)
|
|
1925
|
+
const lastReinforced = new Date(row.last_reinforced).getTime();
|
|
1926
|
+
const lastAccessed = row.last_accessed ? new Date(row.last_accessed).getTime() : 0;
|
|
1927
|
+
const effectiveLastActive = Math.max(lastReinforced, lastAccessed);
|
|
1928
|
+
const daysSince = (now - effectiveLastActive) / (1000 * 60 * 60 * 24);
|
|
1929
|
+
const profile = resolveDecayProfile(row.decay_profile);
|
|
1930
|
+
confidence = computeConfidence(daysSince, row.reinforcement_count, profile);
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
// Remove embedding from returned object
|
|
1934
|
+
const { embedding: _, dims: _d, ...fact } = row;
|
|
1935
|
+
scored.push({
|
|
1936
|
+
...fact,
|
|
1937
|
+
confidence,
|
|
1938
|
+
similarity,
|
|
1939
|
+
score: similarity * confidence,
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
if (dimMismatchCount > 0) {
|
|
1944
|
+
console.warn(
|
|
1945
|
+
`[project-memory] semanticSearch: ${dimMismatchCount} vectors skipped due to dimension mismatch ` +
|
|
1946
|
+
`(query=${queryDims}d, stored vectors have different dims). ` +
|
|
1947
|
+
`Re-embed with the current model to fix.`
|
|
1948
|
+
);
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
// Sort by combined score descending, return top-k
|
|
1952
|
+
scored.sort((a, b) => b.score - a.score);
|
|
1953
|
+
const results = scored.slice(0, k);
|
|
1954
|
+
|
|
1955
|
+
// Access reinforcement: touch returned facts so their effective decay timer
|
|
1956
|
+
// resets. Fire-and-forget — don't block the search response.
|
|
1957
|
+
for (const fact of results) {
|
|
1958
|
+
try { this.touchFact(fact.id); } catch { /* non-critical */ }
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
return results;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* Hybrid search: combines FTS5 keyword search with embedding-based semantic search
|
|
1966
|
+
* via Reciprocal Rank Fusion (RRF). Produces better recall than either method alone:
|
|
1967
|
+
* - FTS5 catches exact keyword matches (file paths, function names, identifiers)
|
|
1968
|
+
* - Embeddings catch semantic matches (synonyms, paraphrases, conceptual similarity)
|
|
1969
|
+
*
|
|
1970
|
+
* When queryVec is null (embeddings unavailable), degrades to FTS5-only.
|
|
1971
|
+
* RRF formula: score(d) = Σ 1/(k + rank_in_list), where k=60 (standard constant).
|
|
1972
|
+
*
|
|
1973
|
+
* Returns facts scored by RRF rank, with similarity and confidence fields populated.
|
|
1974
|
+
*/
|
|
1975
|
+
hybridSearch(
|
|
1976
|
+
queryText: string,
|
|
1977
|
+
queryVec: Float32Array | null,
|
|
1978
|
+
mind: string,
|
|
1979
|
+
opts?: { k?: number; minSimilarity?: number; section?: string; ftsK?: number; semanticK?: number },
|
|
1980
|
+
): (Fact & { similarity: number; score: number })[] {
|
|
1981
|
+
const k = opts?.k ?? 15;
|
|
1982
|
+
const ftsK = opts?.ftsK ?? 20;
|
|
1983
|
+
const semanticK = opts?.semanticK ?? 20;
|
|
1984
|
+
const RRF_K = 60; // Standard RRF constant
|
|
1985
|
+
|
|
1986
|
+
// --- FTS5 leg ---
|
|
1987
|
+
const ftsRanked: Map<string, number> = new Map(); // fact.id → rank (0-indexed)
|
|
1988
|
+
if (queryText.length > 2) {
|
|
1989
|
+
// Use OR mode for broader recall — AND is too restrictive for injection
|
|
1990
|
+
const ftsQuery = buildSafeFtsQuery(queryText, "OR");
|
|
1991
|
+
if (ftsQuery) {
|
|
1992
|
+
try {
|
|
1993
|
+
const ftsChain = this.resolveMindChain(mind);
|
|
1994
|
+
const ftsPlaceholders = ftsChain.map(() => "?").join(", ");
|
|
1995
|
+
let query = `
|
|
1996
|
+
SELECT f.* FROM facts f
|
|
1997
|
+
JOIN facts_fts fts ON f.rowid = fts.rowid
|
|
1998
|
+
WHERE facts_fts MATCH ? AND f.mind IN (${ftsPlaceholders}) AND f.status = 'active'
|
|
1999
|
+
`;
|
|
2000
|
+
const params: any[] = [ftsQuery, ...ftsChain];
|
|
2001
|
+
if (opts?.section) {
|
|
2002
|
+
query += ` AND f.section = ?`;
|
|
2003
|
+
params.push(opts.section);
|
|
2004
|
+
}
|
|
2005
|
+
query += ` ORDER BY rank LIMIT ?`;
|
|
2006
|
+
params.push(ftsK);
|
|
2007
|
+
const rows = this.db.prepare(query).all(...params) as Fact[];
|
|
2008
|
+
for (let i = 0; i < rows.length; i++) {
|
|
2009
|
+
ftsRanked.set(rows[i].id, i);
|
|
2010
|
+
}
|
|
2011
|
+
} catch {
|
|
2012
|
+
// FTS5 query syntax error (e.g., special characters) — skip FTS leg
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
// --- Embedding leg ---
|
|
2018
|
+
const semanticRanked: Map<string, { rank: number; similarity: number }> = new Map();
|
|
2019
|
+
if (queryVec) {
|
|
2020
|
+
const hits = this.semanticSearch(queryVec, mind, {
|
|
2021
|
+
k: semanticK,
|
|
2022
|
+
minSimilarity: opts?.minSimilarity ?? 0.3,
|
|
2023
|
+
section: opts?.section,
|
|
2024
|
+
});
|
|
2025
|
+
for (let i = 0; i < hits.length; i++) {
|
|
2026
|
+
semanticRanked.set(hits[i].id, { rank: i, similarity: hits[i].similarity });
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
// --- RRF merge ---
|
|
2031
|
+
const allIds = new Set([...ftsRanked.keys(), ...semanticRanked.keys()]);
|
|
2032
|
+
const scored: { id: string; rrfScore: number; similarity: number }[] = [];
|
|
2033
|
+
|
|
2034
|
+
for (const id of allIds) {
|
|
2035
|
+
let rrfScore = 0;
|
|
2036
|
+
let similarity = 0;
|
|
2037
|
+
|
|
2038
|
+
const ftsRank = ftsRanked.get(id);
|
|
2039
|
+
if (ftsRank !== undefined) {
|
|
2040
|
+
rrfScore += 1 / (RRF_K + ftsRank);
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
const semHit = semanticRanked.get(id);
|
|
2044
|
+
if (semHit !== undefined) {
|
|
2045
|
+
rrfScore += 1 / (RRF_K + semHit.rank);
|
|
2046
|
+
similarity = semHit.similarity;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
scored.push({ id, rrfScore, similarity });
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
scored.sort((a, b) => b.rrfScore - a.rrfScore);
|
|
2053
|
+
const topIds = scored.slice(0, k);
|
|
2054
|
+
|
|
2055
|
+
// Hydrate facts with scores
|
|
2056
|
+
const results: (Fact & { similarity: number; score: number })[] = [];
|
|
2057
|
+
for (const { id, rrfScore, similarity } of topIds) {
|
|
2058
|
+
const fact = this.getFact(id);
|
|
2059
|
+
if (!fact || fact.status !== "active") continue;
|
|
2060
|
+
results.push({ ...fact, similarity, score: rrfScore });
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
// Access reinforcement on returned results
|
|
2064
|
+
for (const fact of results) {
|
|
2065
|
+
try { this.touchFact(fact.id); } catch { /* non-critical */ }
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
return results;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Find facts similar to a given fact (for conflict detection).
|
|
2073
|
+
* Returns facts in the same section with high similarity but different content hash.
|
|
2074
|
+
* Skips vectors with mismatched dimensions.
|
|
2075
|
+
*/
|
|
2076
|
+
findSimilarFacts(
|
|
2077
|
+
factContent: string,
|
|
2078
|
+
queryVec: Float32Array,
|
|
2079
|
+
mind: string,
|
|
2080
|
+
section: string,
|
|
2081
|
+
opts?: { threshold?: number; limit?: number },
|
|
2082
|
+
): (Fact & { similarity: number })[] {
|
|
2083
|
+
const threshold = opts?.threshold ?? 0.8;
|
|
2084
|
+
const limit = opts?.limit ?? 5;
|
|
2085
|
+
const queryDims = queryVec.length;
|
|
2086
|
+
const contentHashVal = contentHash(factContent);
|
|
2087
|
+
|
|
2088
|
+
const chain = this.resolveMindChain(mind);
|
|
2089
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
2090
|
+
const rows = this.db.prepare(`
|
|
2091
|
+
SELECT f.*, v.embedding, v.dims FROM facts f
|
|
2092
|
+
JOIN facts_vec v ON f.id = v.fact_id
|
|
2093
|
+
WHERE f.mind IN (${placeholders}) AND f.section = ? AND f.status = 'active'
|
|
2094
|
+
AND f.content_hash != ?
|
|
2095
|
+
`).all(...chain, section, contentHashVal) as (Fact & { embedding: Buffer; dims: number })[];
|
|
2096
|
+
|
|
2097
|
+
const results: (Fact & { similarity: number })[] = [];
|
|
2098
|
+
|
|
2099
|
+
for (const row of rows) {
|
|
2100
|
+
if (row.dims !== queryDims) continue;
|
|
2101
|
+
|
|
2102
|
+
const factVec = blobToVector(row.embedding);
|
|
2103
|
+
const similarity = cosineSimilarity(queryVec, factVec);
|
|
2104
|
+
|
|
2105
|
+
if (similarity >= threshold) {
|
|
2106
|
+
const { embedding: _, dims: _d, ...fact } = row;
|
|
2107
|
+
results.push({ ...fact, similarity });
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
results.sort((a, b) => b.similarity - a.similarity);
|
|
2112
|
+
return results.slice(0, limit);
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Purge vectors with mismatched dimensions. Called when embedding model changes.
|
|
2117
|
+
* Returns number of vectors purged.
|
|
2118
|
+
*/
|
|
2119
|
+
purgeStaleVectors(expectedDims: number): number {
|
|
2120
|
+
const result = this.db.prepare(
|
|
2121
|
+
`DELETE FROM facts_vec WHERE dims != ?`
|
|
2122
|
+
).run(expectedDims);
|
|
2123
|
+
const episodeResult = this.db.prepare(
|
|
2124
|
+
`DELETE FROM episodes_vec WHERE dims != ?`
|
|
2125
|
+
).run(expectedDims);
|
|
2126
|
+
return result.changes + episodeResult.changes;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
// ---------------------------------------------------------------------------
|
|
2130
|
+
// Episodes — Session Narratives
|
|
2131
|
+
// ---------------------------------------------------------------------------
|
|
2132
|
+
|
|
2133
|
+
/** Store an episode */
|
|
2134
|
+
storeEpisode(opts: {
|
|
2135
|
+
mind: string;
|
|
2136
|
+
title: string;
|
|
2137
|
+
narrative: string;
|
|
2138
|
+
date: string;
|
|
2139
|
+
sessionId?: string;
|
|
2140
|
+
factIds?: string[];
|
|
2141
|
+
}): string {
|
|
2142
|
+
const id = nanoid();
|
|
2143
|
+
const tx = this.db.transaction(() => {
|
|
2144
|
+
this._storeEpisodeInner(id, opts);
|
|
2145
|
+
});
|
|
2146
|
+
tx();
|
|
2147
|
+
return id;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* Inner episode insert — no transaction wrapper.
|
|
2152
|
+
* Safe to call inside an existing transaction (e.g. importFromJsonl).
|
|
2153
|
+
*/
|
|
2154
|
+
private _storeEpisodeInner(id: string, opts: {
|
|
2155
|
+
mind: string;
|
|
2156
|
+
title: string;
|
|
2157
|
+
narrative: string;
|
|
2158
|
+
date: string;
|
|
2159
|
+
sessionId?: string | null;
|
|
2160
|
+
factIds?: string[];
|
|
2161
|
+
createdAt?: string;
|
|
2162
|
+
}): void {
|
|
2163
|
+
const now = opts.createdAt ?? new Date().toISOString();
|
|
2164
|
+
this.db.prepare(`
|
|
2165
|
+
INSERT INTO episodes (id, mind, title, narrative, date, session_id, created_at)
|
|
2166
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2167
|
+
`).run(id, opts.mind, opts.title, opts.narrative, opts.date, opts.sessionId ?? null, now);
|
|
2168
|
+
|
|
2169
|
+
if (opts.factIds?.length) {
|
|
2170
|
+
const stmt = this.db.prepare(
|
|
2171
|
+
`INSERT OR IGNORE INTO episode_facts (episode_id, fact_id) VALUES (?, ?)`
|
|
2172
|
+
);
|
|
2173
|
+
for (const factId of opts.factIds) {
|
|
2174
|
+
stmt.run(id, factId);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
/** Get episodes for a mind, ordered by date descending */
|
|
2180
|
+
getEpisodes(mind: string, limit?: number): Episode[] {
|
|
2181
|
+
const chain = this.resolveMindChain(mind);
|
|
2182
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
2183
|
+
const sql = `SELECT * FROM episodes WHERE mind IN (${placeholders}) ORDER BY date DESC` +
|
|
2184
|
+
(limit ? ` LIMIT ${limit}` : "");
|
|
2185
|
+
return this.db.prepare(sql).all(...chain) as Episode[];
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/** Get a single episode by ID */
|
|
2189
|
+
getEpisode(id: string): Episode | null {
|
|
2190
|
+
return this.db.prepare(`SELECT * FROM episodes WHERE id = ?`).get(id) as Episode | null;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
/** Get fact IDs linked to an episode */
|
|
2194
|
+
getEpisodeFactIds(episodeId: string): string[] {
|
|
2195
|
+
const rows = this.db.prepare(
|
|
2196
|
+
`SELECT fact_id FROM episode_facts WHERE episode_id = ?`
|
|
2197
|
+
).all(episodeId) as { fact_id: string }[];
|
|
2198
|
+
return rows.map(r => r.fact_id);
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
/** Get episodes that reference a specific fact */
|
|
2202
|
+
getEpisodesForFact(factId: string): Episode[] {
|
|
2203
|
+
return this.db.prepare(`
|
|
2204
|
+
SELECT e.* FROM episodes e
|
|
2205
|
+
JOIN episode_facts ef ON e.id = ef.episode_id
|
|
2206
|
+
WHERE ef.fact_id = ?
|
|
2207
|
+
ORDER BY e.date DESC
|
|
2208
|
+
`).all(factId) as Episode[];
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
/** Store an episode embedding */
|
|
2212
|
+
storeEpisodeVector(episodeId: string, embedding: Float32Array, model: string): void {
|
|
2213
|
+
const blob = vectorToBlob(embedding);
|
|
2214
|
+
const now = new Date().toISOString();
|
|
2215
|
+
this.db.prepare(`
|
|
2216
|
+
INSERT OR REPLACE INTO episodes_vec (episode_id, embedding, model, dims, created_at)
|
|
2217
|
+
VALUES (?, ?, ?, ?, ?)
|
|
2218
|
+
`).run(episodeId, blob, model, embedding.length, now);
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/** Semantic search over episodes. Skips vectors with mismatched dimensions. */
|
|
2222
|
+
semanticSearchEpisodes(
|
|
2223
|
+
queryVec: Float32Array,
|
|
2224
|
+
mind: string,
|
|
2225
|
+
opts?: { k?: number; minSimilarity?: number },
|
|
2226
|
+
): (Episode & { similarity: number })[] {
|
|
2227
|
+
const k = opts?.k ?? 5;
|
|
2228
|
+
const minSim = opts?.minSimilarity ?? 0.3;
|
|
2229
|
+
const queryDims = queryVec.length;
|
|
2230
|
+
|
|
2231
|
+
const chain = this.resolveMindChain(mind);
|
|
2232
|
+
const ePlaceholders = chain.map(() => "?").join(", ");
|
|
2233
|
+
const rows = this.db.prepare(`
|
|
2234
|
+
SELECT e.*, v.embedding, v.dims FROM episodes e
|
|
2235
|
+
JOIN episodes_vec v ON e.id = v.episode_id
|
|
2236
|
+
WHERE e.mind IN (${ePlaceholders})
|
|
2237
|
+
`).all(...chain) as (Episode & { embedding: Buffer; dims: number })[];
|
|
2238
|
+
|
|
2239
|
+
const results: (Episode & { similarity: number })[] = [];
|
|
2240
|
+
|
|
2241
|
+
for (const row of rows) {
|
|
2242
|
+
if (row.dims !== queryDims) continue;
|
|
2243
|
+
|
|
2244
|
+
const vec = blobToVector(row.embedding);
|
|
2245
|
+
const similarity = cosineSimilarity(queryVec, vec);
|
|
2246
|
+
|
|
2247
|
+
if (similarity >= minSim) {
|
|
2248
|
+
const { embedding: _, dims: _d, ...episode } = row;
|
|
2249
|
+
results.push({ ...episode, similarity });
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
results.sort((a, b) => b.similarity - a.similarity);
|
|
2254
|
+
return results.slice(0, k);
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
/** Count episodes for a mind */
|
|
2258
|
+
countEpisodes(mind: string): number {
|
|
2259
|
+
const chain = this.resolveMindChain(mind);
|
|
2260
|
+
const placeholders = chain.map(() => "?").join(", ");
|
|
2261
|
+
const row = this.db.prepare(
|
|
2262
|
+
`SELECT COUNT(*) as count FROM episodes WHERE mind IN (${placeholders})`
|
|
2263
|
+
).get(...chain);
|
|
2264
|
+
return row?.count ?? 0;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
// ---------------------------------------------------------------------------
|
|
2268
|
+
// Lifecycle
|
|
2269
|
+
// ---------------------------------------------------------------------------
|
|
2270
|
+
|
|
2271
|
+
close(): void {
|
|
2272
|
+
this.db.close();
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
getDbPath(): string {
|
|
2276
|
+
return this.dbPath;
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
// --- Extraction action types ---
|
|
2281
|
+
|
|
2282
|
+
export interface ExtractionAction {
|
|
2283
|
+
type: "observe" | "reinforce" | "supersede" | "archive" | "connect";
|
|
2284
|
+
id?: string;
|
|
2285
|
+
section?: SectionName;
|
|
2286
|
+
content?: string;
|
|
2287
|
+
// connect-specific fields
|
|
2288
|
+
source?: string;
|
|
2289
|
+
target?: string;
|
|
2290
|
+
relation?: string;
|
|
2291
|
+
description?: string;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* Parse extraction agent output (JSONL) into actions.
|
|
2296
|
+
* Tolerant — skips malformed lines.
|
|
2297
|
+
*/
|
|
2298
|
+
export function parseExtractionOutput(output: string): ExtractionAction[] {
|
|
2299
|
+
const actions: ExtractionAction[] = [];
|
|
2300
|
+
for (const line of output.split("\n")) {
|
|
2301
|
+
const trimmed = line.trim();
|
|
2302
|
+
if (!trimmed || trimmed.startsWith("//") || trimmed.startsWith("#")) continue;
|
|
2303
|
+
try {
|
|
2304
|
+
const parsed = JSON.parse(trimmed);
|
|
2305
|
+
if (parsed.type && typeof parsed.type === "string") {
|
|
2306
|
+
actions.push(parsed as ExtractionAction);
|
|
2307
|
+
} else if (parsed.action) {
|
|
2308
|
+
// Accept {action: "observe"} as alias for {type: "observe"}
|
|
2309
|
+
actions.push({ ...parsed, type: parsed.action } as ExtractionAction);
|
|
2310
|
+
}
|
|
2311
|
+
} catch {
|
|
2312
|
+
// Skip malformed lines — best effort
|
|
2313
|
+
continue;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
return actions;
|
|
2317
|
+
}
|