indusagi-coding-agent 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19250 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dialog bridge — the ask / tell seam over the link transport.
|
|
3
|
+
*
|
|
4
|
+
* The agent (and the extensions it hosts) needs to interact with whoever drives
|
|
5
|
+
* the channel: ask a multiple-choice question, confirm a destructive action,
|
|
6
|
+
* prompt for free text, flash a notice, set a status line. Rather than a
|
|
7
|
+
* per-interaction handler ladder, the whole surface reduces to two primitives:
|
|
8
|
+
*
|
|
9
|
+
* - {@link DialogBridge.ask} — one generic round-trip: emit an {@link Ask}
|
|
10
|
+
* frame, suspend until a correlated {@link AskAnswer} arrives, and resolve
|
|
11
|
+
* with its value (or a caller-supplied fallback when the deadline lapses or
|
|
12
|
+
* the driver dismisses the request).
|
|
13
|
+
* - {@link DialogBridge.tell} — one generic fire-and-forget: emit a {@link Tell}
|
|
14
|
+
* frame and return immediately.
|
|
15
|
+
*
|
|
16
|
+
* Concrete dialog methods (select / confirm / input / notify / status / title)
|
|
17
|
+
* are expressed as a *data table* of named entries keyed by interaction kind, not
|
|
18
|
+
* as bespoke method bodies. {@link makeDialogMethods} closes that table over a
|
|
19
|
+
* single bridge so a caller gets typed conveniences while the bridge keeps the
|
|
20
|
+
* lone round-trip / fire-and-forget implementation.
|
|
21
|
+
*/
|
|
22
|
+
import type { AskAnswer, ChannelTimings, DialogBridge, NdjsonFramer, WritableLine } from "../contract";
|
|
23
|
+
/** Everything {@link createDialogBridge} needs to emit frames and time out. */
|
|
24
|
+
export interface DialogBridgeDeps {
|
|
25
|
+
/** Sink the ask/tell frames are written to (already framed). */
|
|
26
|
+
readonly out: WritableLine;
|
|
27
|
+
/** Framer used to encode each frame to a line. */
|
|
28
|
+
readonly framer: NdjsonFramer;
|
|
29
|
+
/** Timings; only {@link ChannelTimings.dialogMs} is consulted here. */
|
|
30
|
+
readonly timings: ChannelTimings;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A {@link DialogBridge} whose pending answers are fed by an external reader.
|
|
34
|
+
*
|
|
35
|
+
* The bridge itself does not read the stream — the server owns the single
|
|
36
|
+
* decode loop and routes any inbound {@link AskAnswer} frame to
|
|
37
|
+
* {@link LinkedDialogBridge.deliver}. This keeps one reader over the transport
|
|
38
|
+
* (the server) rather than competing consumers.
|
|
39
|
+
*/
|
|
40
|
+
export interface LinkedDialogBridge extends DialogBridge {
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the pending {@link DialogBridge.ask} that minted `answer.id`.
|
|
43
|
+
*
|
|
44
|
+
* A no-op when no ask is pending under that id (a late or duplicate answer),
|
|
45
|
+
* so a misbehaving driver cannot throw into the read loop.
|
|
46
|
+
*
|
|
47
|
+
* @param answer the inbound answer frame
|
|
48
|
+
* @returns whether a pending ask was settled by this answer
|
|
49
|
+
*/
|
|
50
|
+
deliver(answer: AskAnswer): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Reject every still-pending ask with its fallback (used on shutdown), so no
|
|
53
|
+
* awaiting handler is left suspended when the link closes.
|
|
54
|
+
*/
|
|
55
|
+
drain(): void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Construct a {@link LinkedDialogBridge} over an injected sink + framer.
|
|
59
|
+
*
|
|
60
|
+
* `ask` writes an {@link Ask} frame, registers the pending resolver under a
|
|
61
|
+
* fresh id, and arms a fallback timer; `deliver` settles the matching pending
|
|
62
|
+
* resolver when the answer returns. `tell` writes a {@link Tell} frame and
|
|
63
|
+
* returns at once. No stdio, no global state — every dependency is injected.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createDialogBridge(deps: DialogBridgeDeps): LinkedDialogBridge;
|
|
66
|
+
/**
|
|
67
|
+
* One concrete dialog method expressed as data, not code.
|
|
68
|
+
*
|
|
69
|
+
* `kind` is the wire interaction kind; `mode` selects which primitive carries
|
|
70
|
+
* it (a round-trip `ask` or a fire-and-forget `tell`); `fallback` is the value a
|
|
71
|
+
* round-trip resolves with on timeout / dismissal (unused for `tell`). The whole
|
|
72
|
+
* dialog surface is this table — adding an interaction is adding a row.
|
|
73
|
+
*/
|
|
74
|
+
export interface DialogSpec {
|
|
75
|
+
/** The wire interaction kind (the `Ask.kind` / `Tell.kind`). */
|
|
76
|
+
readonly kind: string;
|
|
77
|
+
/** Whether the method round-trips for an answer or is fire-and-forget. */
|
|
78
|
+
readonly mode: "ask" | "tell";
|
|
79
|
+
/** The value an `ask` resolves with when no answer arrives in time. */
|
|
80
|
+
readonly fallback?: unknown;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The canonical dialog table: every concrete interaction the channel exposes,
|
|
84
|
+
* each one row of data over the two primitives.
|
|
85
|
+
*
|
|
86
|
+
* Replaces a copied switch of bespoke UI-context methods: the bridge has exactly
|
|
87
|
+
* one round-trip and one fire-and-forget body, and this table names the kinds.
|
|
88
|
+
*/
|
|
89
|
+
export declare const DIALOG_TABLE: Readonly<{
|
|
90
|
+
select: {
|
|
91
|
+
kind: string;
|
|
92
|
+
mode: "ask";
|
|
93
|
+
fallback: null;
|
|
94
|
+
};
|
|
95
|
+
confirm: {
|
|
96
|
+
kind: string;
|
|
97
|
+
mode: "ask";
|
|
98
|
+
fallback: boolean;
|
|
99
|
+
};
|
|
100
|
+
input: {
|
|
101
|
+
kind: string;
|
|
102
|
+
mode: "ask";
|
|
103
|
+
fallback: null;
|
|
104
|
+
};
|
|
105
|
+
editor: {
|
|
106
|
+
kind: string;
|
|
107
|
+
mode: "ask";
|
|
108
|
+
fallback: null;
|
|
109
|
+
};
|
|
110
|
+
notify: {
|
|
111
|
+
kind: string;
|
|
112
|
+
mode: "tell";
|
|
113
|
+
};
|
|
114
|
+
status: {
|
|
115
|
+
kind: string;
|
|
116
|
+
mode: "tell";
|
|
117
|
+
};
|
|
118
|
+
title: {
|
|
119
|
+
kind: string;
|
|
120
|
+
mode: "tell";
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
/** The set of named dialog methods derived from {@link DIALOG_TABLE}. */
|
|
124
|
+
export type DialogMethods = {
|
|
125
|
+
[K in keyof typeof DIALOG_TABLE]: (typeof DIALOG_TABLE)[K]["mode"] extends "ask" ? (payload?: unknown) => Promise<unknown> : (payload?: unknown) => void;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Close the {@link DIALOG_TABLE} over one {@link DialogBridge} into typed,
|
|
129
|
+
* named convenience methods.
|
|
130
|
+
*
|
|
131
|
+
* Each `ask` row becomes a thunk that round-trips through `bridge.ask` with the
|
|
132
|
+
* row fallback; each `tell` row becomes a thunk that fires through `bridge.tell`.
|
|
133
|
+
* There is no per-method choreography — the bodies are generated from the table.
|
|
134
|
+
*
|
|
135
|
+
* @param bridge the round-trip / fire-and-forget primitive pair
|
|
136
|
+
* @returns the named method object projected from the table
|
|
137
|
+
*/
|
|
138
|
+
export declare function makeDialogMethods(bridge: DialogBridge): DialogMethods;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link driver — the generated client over the JSON-RPC link.
|
|
3
|
+
*
|
|
4
|
+
* The driver is the mirror of the server: it writes framed requests and reads
|
|
5
|
+
* framed replies. Crucially it is *generated*, not hand-written — there is no
|
|
6
|
+
* per-op client method. A {@link Proxy} turns any property access into a thunk
|
|
7
|
+
* that frames `{ id, method, params } -> awaits { id, result | error }`, so the
|
|
8
|
+
* driver satisfies the {@link LinkDriver} type projected from a registry with a
|
|
9
|
+
* single body. Adding an op to the registry adds a callable method to the driver
|
|
10
|
+
* for free.
|
|
11
|
+
*
|
|
12
|
+
* The driver owns the single reader over the inbound stream. Every decoded frame
|
|
13
|
+
* is one of: a correlated {@link Reply} (settles the pending request under its
|
|
14
|
+
* id), an uncorrelated {@link Signal} (fanned out to subscribers), or an
|
|
15
|
+
* {@link Ask} (handed to an answerer that posts an {@link AskAnswer} back). One
|
|
16
|
+
* reader, three routes — no competing consumers of the transport.
|
|
17
|
+
*/
|
|
18
|
+
import { type Ask, type ChannelTimings, type LinkDriver, type NdjsonFramer, type OpError, type OpRegistry, type ReadableChunks, type Signal, type WritableLine } from "../contract";
|
|
19
|
+
/** The injectable transport pair the driver writes to and reads from. */
|
|
20
|
+
export interface LinkDriverIo {
|
|
21
|
+
/** Sink the driver writes framed requests to (defaults to the child stdin). */
|
|
22
|
+
readonly out: WritableLine;
|
|
23
|
+
/** Source the driver reads framed replies / signals from (defaults to child stdout). */
|
|
24
|
+
readonly in: ReadableChunks;
|
|
25
|
+
}
|
|
26
|
+
/** Optional overrides for a driver: a framer, the timings, and hooks. */
|
|
27
|
+
export interface LinkDriverConfig {
|
|
28
|
+
/** Override the NDJSON framer (defaults to the shared one). */
|
|
29
|
+
readonly framer?: NdjsonFramer;
|
|
30
|
+
/** Override any subset of the channel timings. */
|
|
31
|
+
readonly timings?: Partial<ChannelTimings>;
|
|
32
|
+
/** Invoked for every uncorrelated {@link Signal} the server streams. */
|
|
33
|
+
readonly onSignal?: (signal: Signal) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Invoked when the server asks a question; returns the answer value. When
|
|
36
|
+
* omitted the driver dismisses every ask (posts `null`), so a non-interactive
|
|
37
|
+
* driver never wedges the server.
|
|
38
|
+
*/
|
|
39
|
+
readonly onAsk?: (ask: Ask) => unknown | Promise<unknown>;
|
|
40
|
+
}
|
|
41
|
+
/** A failed reply turned into a throwable error that carries the wire code. */
|
|
42
|
+
export declare class LinkRequestError extends Error {
|
|
43
|
+
/** The JSON-RPC error code from the {@link OpError}. */
|
|
44
|
+
readonly code: number;
|
|
45
|
+
/** The structured detail, when the server supplied any. */
|
|
46
|
+
readonly data: unknown;
|
|
47
|
+
constructor(error: OpError);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A live driver: the generated client plus its lifecycle.
|
|
51
|
+
*
|
|
52
|
+
* `client` is the {@link Proxy} typed as a {@link LinkDriver} for the registry
|
|
53
|
+
* `Ops`; `done` resolves when the inbound stream ends; `close` rejects every
|
|
54
|
+
* still-pending request and stops the reader.
|
|
55
|
+
*
|
|
56
|
+
* @typeParam Ops the {@link OpRegistry} the client type is projected from
|
|
57
|
+
*/
|
|
58
|
+
export interface LinkDriverHandle<Ops extends OpRegistry> {
|
|
59
|
+
/** The generated, registry-typed client. */
|
|
60
|
+
readonly client: LinkDriver<Ops>;
|
|
61
|
+
/** Resolves when the reader loop drains (the inbound stream ended). */
|
|
62
|
+
readonly done: Promise<void>;
|
|
63
|
+
/** Reject all pending requests with `reason` and stop accepting replies. */
|
|
64
|
+
close(reason?: string): void;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Build a {@link LinkDriverHandle} over an injected transport.
|
|
68
|
+
*
|
|
69
|
+
* The returned `client` is a {@link Proxy}: reading property `m` yields a thunk
|
|
70
|
+
* `(params?) => Promise<result>` that mints an id (prefixed with
|
|
71
|
+
* {@link REQUEST_ID_PREFIX}), writes the framed request, and resolves when the
|
|
72
|
+
* matching {@link Reply} arrives (or rejects on a {@link ReplyErr} or timeout).
|
|
73
|
+
* No method is hand-written; the registry type parameter only shapes the static
|
|
74
|
+
* face. The reader loop classifies inbound frames into replies, signals, and
|
|
75
|
+
* asks and routes each.
|
|
76
|
+
*
|
|
77
|
+
* @typeParam Ops the registry whose method set types the client
|
|
78
|
+
* @param io the injected request sink + reply source
|
|
79
|
+
* @param config optional framer / timing / hook overrides
|
|
80
|
+
*/
|
|
81
|
+
export declare function createLinkDriver<Ops extends OpRegistry = OpRegistry>(io: LinkDriverIo, config?: LinkDriverConfig): LinkDriverHandle<Ops>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link channel — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* The link channel is the long-lived, bidirectional half of the channels
|
|
5
|
+
* subsystem: a JSON-RPC 2.0 server that dispatches framed requests through an
|
|
6
|
+
* {@link OpRegistry} (`server.ts`), a generated {@link LinkDriver} client built
|
|
7
|
+
* from a {@link Proxy} rather than hand-written methods (`driver.ts`), and the
|
|
8
|
+
* ask / tell dialog bridge that both ends share (`dialog.ts`). Consumers import
|
|
9
|
+
* the link surface from `src/channels/link` rather than the individual modules.
|
|
10
|
+
*/
|
|
11
|
+
export { createLinkServer, type LinkServer, type LinkServerIo, type LinkServerConfig, } from "./server";
|
|
12
|
+
export { createLinkDriver, LinkRequestError, type LinkDriverHandle, type LinkDriverIo, type LinkDriverConfig, } from "./driver";
|
|
13
|
+
export { createDialogBridge, makeDialogMethods, DIALOG_TABLE, type LinkedDialogBridge, type DialogBridgeDeps, type DialogSpec, type DialogMethods, } from "./dialog";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link server — the data-driven JSON-RPC 2.0 dispatch loop.
|
|
3
|
+
*
|
|
4
|
+
* The server owns the single reader over the inbound stream. For each framed
|
|
5
|
+
* line it decides what the frame is and routes it: a request frame is dispatched
|
|
6
|
+
* through the {@link OpRegistry} (a map lookup, not a command switch) and its
|
|
7
|
+
* outcome is framed back as a {@link Reply}; an inbound {@link AskAnswer} frame
|
|
8
|
+
* is routed to the {@link DialogBridge} to settle a suspended `ask`. One round of
|
|
9
|
+
* the protocol is `{ id, method, params } -> { id, result | error }`.
|
|
10
|
+
*
|
|
11
|
+
* Everything that touches the outside world is injected: the request source, the
|
|
12
|
+
* reply sink, the framer, and the conductor all arrive through the context and
|
|
13
|
+
* options, so a test serves the link over an in-memory pipe pair with no stdio.
|
|
14
|
+
* The dispatch itself is delegated to {@link dispatch} from the ops module, so
|
|
15
|
+
* the server holds no per-method knowledge.
|
|
16
|
+
*/
|
|
17
|
+
import { type ChannelTimings, type NdjsonFramer, type OpRegistry, type ReadableChunks, type SessionConductor, type WritableLine } from "../contract";
|
|
18
|
+
import { type LinkedDialogBridge } from "./dialog";
|
|
19
|
+
/**
|
|
20
|
+
* The injectable transport pair the server reads from and writes to.
|
|
21
|
+
*
|
|
22
|
+
* Named `io` at the call site; bundles the inbound request source and the
|
|
23
|
+
* outbound reply/signal sink so tests pass in-memory pipes and production passes
|
|
24
|
+
* stdin / stdout.
|
|
25
|
+
*/
|
|
26
|
+
export interface LinkServerIo {
|
|
27
|
+
/** Framed inbound request / answer lines (defaults to stdin). */
|
|
28
|
+
readonly in: ReadableChunks;
|
|
29
|
+
/** Framed outbound reply / signal / dialog sink (defaults to stdout). */
|
|
30
|
+
readonly out: WritableLine;
|
|
31
|
+
}
|
|
32
|
+
/** Optional overrides for a server: a framer and the timings. */
|
|
33
|
+
export interface LinkServerConfig {
|
|
34
|
+
/** Override the NDJSON framer (defaults to the shared one). */
|
|
35
|
+
readonly framer?: NdjsonFramer;
|
|
36
|
+
/** Override any subset of the channel timings. */
|
|
37
|
+
readonly timings?: Partial<ChannelTimings>;
|
|
38
|
+
}
|
|
39
|
+
/** A running server: a promise that settles when the inbound stream ends. */
|
|
40
|
+
export interface LinkServer {
|
|
41
|
+
/** Resolves when the request stream is exhausted and the loop has drained. */
|
|
42
|
+
readonly done: Promise<void>;
|
|
43
|
+
/** The dialog bridge the running server feeds inbound answers to. */
|
|
44
|
+
readonly dialog: LinkedDialogBridge;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Start a link server over an op registry, a conductor, and an injected
|
|
48
|
+
* transport.
|
|
49
|
+
*
|
|
50
|
+
* Builds the shared {@link ChannelContext} (conductor + framer + the freshly
|
|
51
|
+
* wired {@link DialogBridge}), then consumes the inbound stream with a single
|
|
52
|
+
* `for await` loop. Each frame is classified:
|
|
53
|
+
*
|
|
54
|
+
* - an answer frame is delivered to the dialog bridge;
|
|
55
|
+
* - a request frame is dispatched through `registry`; a request carrying an
|
|
56
|
+
* `id` gets exactly one correlated reply (result or error); a notification
|
|
57
|
+
* (no `id`) is dispatched for its effect and never replied to;
|
|
58
|
+
* - any other frame is ignored (a forward-compatible no-op).
|
|
59
|
+
*
|
|
60
|
+
* Parse failures from the framer surface as a thrown error in the loop and are
|
|
61
|
+
* framed as a {@link OP_ERROR.parse} reply with no id (the offending frame had
|
|
62
|
+
* none to correlate).
|
|
63
|
+
*
|
|
64
|
+
* @param registry the frozen {@link OpRegistry} that drives dispatch
|
|
65
|
+
* @param conductor the session every op delegates to
|
|
66
|
+
* @param io the injected request source + reply sink
|
|
67
|
+
* @param config optional framer / timing overrides
|
|
68
|
+
* @returns a handle whose `done` resolves when the inbound stream ends
|
|
69
|
+
*/
|
|
70
|
+
export declare function createLinkServer(registry: OpRegistry, conductor: SessionConductor, io: LinkServerIo, config?: LinkServerConfig): LinkServer;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oneshot channel — a single non-interactive run to settlement.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the print mode. Given a {@link ChannelContext} and an
|
|
5
|
+
* {@link OneshotRequest}, it submits every prompt to the conductor in order,
|
|
6
|
+
* streams the answer to the channel sink, and resolves a process exit code.
|
|
7
|
+
*
|
|
8
|
+
* The shape (clean final text vs a streamed NDJSON event log) is chosen by
|
|
9
|
+
* selecting an {@link OneshotStrategy} object rather than branching on a flag
|
|
10
|
+
* through the runner body: each strategy supplies an optional `onStart`, an
|
|
11
|
+
* optional `onSignal`, and a mandatory `finish` that turns the settled state
|
|
12
|
+
* into the exit code. The runner itself is shape-agnostic — it subscribes the
|
|
13
|
+
* strategy to the conductor signal stream, runs the prompts, and hands the final
|
|
14
|
+
* state to `finish`.
|
|
15
|
+
*/
|
|
16
|
+
import type { ChannelContext, DialogBridge, OneshotRequest } from "./contract";
|
|
17
|
+
/**
|
|
18
|
+
* A dialog bridge for a non-interactive oneshot run: no driver is attached to
|
|
19
|
+
* answer a question, so every `ask` resolves immediately with its caller-supplied
|
|
20
|
+
* fallback and every `tell` is dropped. Keeps the agent from wedging on a prompt
|
|
21
|
+
* during a headless single run while never writing dialog frames to the sink.
|
|
22
|
+
*/
|
|
23
|
+
export declare const inertDialog: DialogBridge;
|
|
24
|
+
/**
|
|
25
|
+
* Run one non-interactive request to settlement.
|
|
26
|
+
*
|
|
27
|
+
* Selects the {@link OneshotStrategy} for `opts.shape`, subscribes it to the
|
|
28
|
+
* conductor signal stream, runs `onStart`, then submits each prompt in order and
|
|
29
|
+
* awaits its settlement. The state from the final prompt is handed to the
|
|
30
|
+
* strategy's `finish`, whose return value is the resolved exit code. The
|
|
31
|
+
* subscription is always torn down before returning.
|
|
32
|
+
*
|
|
33
|
+
* @param ctx the channel context (conductor, sink, framer, dialog) — fully injected
|
|
34
|
+
* @param opts the request: output shape, the prompts to run, and any images
|
|
35
|
+
* @returns the process exit code (0 on a clean settlement, 1 on a fault)
|
|
36
|
+
*/
|
|
37
|
+
export declare function runOneshot(ctx: ChannelContext, opts: OneshotRequest): Promise<number>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Operation registry — the single declarative source both halves of the link
|
|
3
|
+
* consume.
|
|
4
|
+
*
|
|
5
|
+
* The contract defines {@link defineOps} (freeze a record of {@link Op}s into an
|
|
6
|
+
* {@link OpRegistry}) and the {@link LinkDriver} type projected from a registry.
|
|
7
|
+
* This module adds the runtime face the server needs and the driver leans on: a
|
|
8
|
+
* built registry carries its `methods` list (so a {@link LinkDriver} can be
|
|
9
|
+
* generated by walking the keys, never hand-written) and a `dispatch` seam that
|
|
10
|
+
* looks an op up by `method` and runs its `handle` — the data-driven replacement
|
|
11
|
+
* for a copied command switch.
|
|
12
|
+
*
|
|
13
|
+
* Nothing here knows about transport or framing: dispatch takes the already
|
|
14
|
+
* parsed `method`/`params` and the shared {@link ChannelContext}, runs the op,
|
|
15
|
+
* and returns its resolved result (or throws {@link UnknownOpError} when no op is
|
|
16
|
+
* registered). The server frames the outcome into a {@link Reply}; the driver
|
|
17
|
+
* uses `methods` to build its thunks. One frozen registry drives both.
|
|
18
|
+
*/
|
|
19
|
+
import { defineOps } from "./contract";
|
|
20
|
+
import type { ChannelContext, Op, OpRegistry } from "./contract";
|
|
21
|
+
/** Re-exported so consumers mint registries from one module. */
|
|
22
|
+
export { defineOps };
|
|
23
|
+
/**
|
|
24
|
+
* Thrown by {@link dispatch} (and {@link OpRegistryHandle.dispatch}) when the
|
|
25
|
+
* requested `method` has no registered {@link Op}.
|
|
26
|
+
*
|
|
27
|
+
* Carries the frozen {@link OP_ERROR.unknownOp} code so the server can frame it
|
|
28
|
+
* into a {@link ReplyErr} without re-deriving the category, and records the
|
|
29
|
+
* offending `method` for logging.
|
|
30
|
+
*/
|
|
31
|
+
export declare class UnknownOpError extends Error {
|
|
32
|
+
/** The JSON-RPC error category for an unregistered method. */
|
|
33
|
+
readonly code: number;
|
|
34
|
+
/** The method name that resolved to no operation. */
|
|
35
|
+
readonly method: string;
|
|
36
|
+
constructor(method: string);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Run one operation by name against the shared context.
|
|
40
|
+
*
|
|
41
|
+
* Looks `method` up in `registry`, then awaits its `handle(params, ctx)`. The
|
|
42
|
+
* lone dispatch path for the server: there is no per-method branch, only a map
|
|
43
|
+
* lookup. Throws {@link UnknownOpError} when the method is not registered and
|
|
44
|
+
* propagates whatever the handler throws (the server maps that to a
|
|
45
|
+
* {@link ReplyErr}).
|
|
46
|
+
*
|
|
47
|
+
* @param registry the frozen {@link OpRegistry} to dispatch within
|
|
48
|
+
* @param method the wire method name to invoke
|
|
49
|
+
* @param params the already-parsed request payload (passed through verbatim)
|
|
50
|
+
* @param ctx the shared {@link ChannelContext}
|
|
51
|
+
* @returns the operation result
|
|
52
|
+
*/
|
|
53
|
+
export declare function dispatch(registry: OpRegistry, method: string, params: unknown, ctx: ChannelContext): Promise<unknown>;
|
|
54
|
+
/** Whether `method` resolves to a registered {@link Op} in `registry`. */
|
|
55
|
+
export declare function hasOp(registry: OpRegistry, method: string): boolean;
|
|
56
|
+
/** The sorted wire method names a registry exposes — the driver's method set. */
|
|
57
|
+
export declare function methodsOf<T extends OpRegistry>(registry: T): ReadonlyArray<keyof T & string>;
|
|
58
|
+
/**
|
|
59
|
+
* A built registry plus its runtime face: the method list and a bound
|
|
60
|
+
* `dispatch`.
|
|
61
|
+
*
|
|
62
|
+
* `methods` is what a generated {@link LinkDriver} walks to build its thunks;
|
|
63
|
+
* `dispatch` is what the server calls per request. Both are bound to the one
|
|
64
|
+
* frozen `registry`, so the server-side dispatch and the client-side method set
|
|
65
|
+
* can never drift from each other.
|
|
66
|
+
*
|
|
67
|
+
* @typeParam T the concrete registry shape (preserved for the generated driver)
|
|
68
|
+
*/
|
|
69
|
+
export interface OpRegistryHandle<T extends OpRegistry> {
|
|
70
|
+
/** The frozen registry — the single source of truth. */
|
|
71
|
+
readonly registry: T;
|
|
72
|
+
/** The sorted method names this registry exposes. */
|
|
73
|
+
readonly methods: ReadonlyArray<keyof T & string>;
|
|
74
|
+
/** Invoke an op by name against `ctx`; see {@link dispatch}. */
|
|
75
|
+
dispatch(method: string, params: unknown, ctx: ChannelContext): Promise<unknown>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Build an {@link OpRegistryHandle} from a record of operation declarations.
|
|
79
|
+
*
|
|
80
|
+
* Freezes the input with {@link defineOps}, then bundles it with its derived
|
|
81
|
+
* method list and a `dispatch` bound to that frozen registry. This is the lone
|
|
82
|
+
* sanctioned way to produce the object the server and the driver both consume,
|
|
83
|
+
* so the dispatch map and the driver method set always derive from one source.
|
|
84
|
+
*
|
|
85
|
+
* @param ops a record of method-name → {@link Op}
|
|
86
|
+
* @returns the frozen registry handle, with the input's exact key/value types
|
|
87
|
+
* preserved for the generated {@link LinkDriver}
|
|
88
|
+
*/
|
|
89
|
+
export declare function buildOps<T extends Record<string, Op<any, any>>>(ops: T): OpRegistryHandle<Readonly<T>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session ops — the concrete operation registry that drives the link.
|
|
3
|
+
*
|
|
4
|
+
* This is the single declarative source of every operation the link server
|
|
5
|
+
* dispatches and the {@link LinkDriver} client is generated from. Each op binds a
|
|
6
|
+
* wire `method` name to a `handle` that delegates to the {@link SessionConductor}
|
|
7
|
+
* carried on the {@link ChannelContext}; there is no per-method dispatch ladder
|
|
8
|
+
* and no hand-written parallel client method. Adding a row here adds both a
|
|
9
|
+
* server-handled method and a callable driver method.
|
|
10
|
+
*
|
|
11
|
+
* The ops also own the {@link LinkSnapshot} projection: the conductor exposes its
|
|
12
|
+
* internal {@link ConductorState}, and {@link projectSnapshot} reshapes that into
|
|
13
|
+
* the flat, serializable wire vocabulary a remote driver mirrors without holding
|
|
14
|
+
* a live conductor.
|
|
15
|
+
*/
|
|
16
|
+
import type { ConductorState, LinkSnapshot, Op, ThinkingLevel } from "./contract";
|
|
17
|
+
/**
|
|
18
|
+
* Project a conductor {@link ConductorState} onto the wire {@link LinkSnapshot}.
|
|
19
|
+
*
|
|
20
|
+
* The snapshot is the link vocabulary: flat, serializable, and derived from — not
|
|
21
|
+
* a passthrough of — the conductor state. Busy flags are read off the coarse
|
|
22
|
+
* phase, the model and session identity off the state and its head, and the
|
|
23
|
+
* cumulative usage carried straight through.
|
|
24
|
+
*
|
|
25
|
+
* @param state the immutable conductor state
|
|
26
|
+
* @param extra optional fields the conductor does not surface on its state
|
|
27
|
+
*/
|
|
28
|
+
export declare function projectSnapshot(state: ConductorState, extra?: {
|
|
29
|
+
readonly thinking?: ThinkingLevel;
|
|
30
|
+
readonly sessionFile?: string;
|
|
31
|
+
readonly autoCondense?: boolean;
|
|
32
|
+
readonly messageCount?: number;
|
|
33
|
+
readonly queuedCount?: number;
|
|
34
|
+
}): LinkSnapshot;
|
|
35
|
+
/** Parameters for the {@link sessionOps.submit} op. */
|
|
36
|
+
export interface SubmitParams {
|
|
37
|
+
/** The user message text for this turn. */
|
|
38
|
+
readonly input: string;
|
|
39
|
+
}
|
|
40
|
+
/** Parameters for the {@link sessionOps.resume} op. */
|
|
41
|
+
export interface ResumeParams {
|
|
42
|
+
/** The persisted session to restore. */
|
|
43
|
+
readonly sessionId: string;
|
|
44
|
+
}
|
|
45
|
+
/** Parameters for the {@link sessionOps.cycleModel} op. */
|
|
46
|
+
export interface CycleModelParams {
|
|
47
|
+
/** Canonical id of the model to switch to. */
|
|
48
|
+
readonly modelId: string;
|
|
49
|
+
}
|
|
50
|
+
/** One model entry returned by the {@link sessionOps.listModels} op. */
|
|
51
|
+
export interface ModelEntry {
|
|
52
|
+
/** Canonical model id. */
|
|
53
|
+
readonly id: string;
|
|
54
|
+
/** Whether this is the model currently bound to the session. */
|
|
55
|
+
readonly active: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The frozen link op set: every operation a driver can invoke, each delegating
|
|
59
|
+
* to the conductor on the context.
|
|
60
|
+
*
|
|
61
|
+
* - `submit` — run a user turn to settlement and reply with a snapshot.
|
|
62
|
+
* - `abort` — cancel the in-flight turn and reply with a snapshot.
|
|
63
|
+
* - `snapshot` — read the current state, projected to a {@link LinkSnapshot}.
|
|
64
|
+
* - `resume` — restore a persisted session and reply with a snapshot.
|
|
65
|
+
* - `listModels` — list the model bound to the session (the active entry).
|
|
66
|
+
* - `cycleModel` — rotate the active model and reply with a snapshot.
|
|
67
|
+
*
|
|
68
|
+
* The map is consumed verbatim by the server (data-driven dispatch) and by the
|
|
69
|
+
* generated {@link LinkDriver} (its method set is exactly these keys).
|
|
70
|
+
*/
|
|
71
|
+
export declare const SESSION_OPS: Readonly<{
|
|
72
|
+
submit: Op<SubmitParams, LinkSnapshot>;
|
|
73
|
+
abort: Op<void, LinkSnapshot>;
|
|
74
|
+
snapshot: Op<void, LinkSnapshot>;
|
|
75
|
+
resume: Op<ResumeParams, LinkSnapshot>;
|
|
76
|
+
listModels: Op<void, readonly ModelEntry[]>;
|
|
77
|
+
cycleModel: Op<CycleModelParams, LinkSnapshot>;
|
|
78
|
+
}>;
|
|
79
|
+
/** The concrete op-set type, for typing a {@link LinkDriver} over this surface. */
|
|
80
|
+
export type SessionOps = typeof SESSION_OPS;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model catalog — `ModelCatalog`.
|
|
3
|
+
*
|
|
4
|
+
* A transform pipeline over the framework model list. The framework publishes
|
|
5
|
+
* its catalog per provider via `getModels(provider)` from `indusagi/ai`; each
|
|
6
|
+
* entry is a rich {@link Model} record. This module **re-derives** that data
|
|
7
|
+
* into the conductor's own normalized shape — a {@link CatalogCard} — through a
|
|
8
|
+
* validate → normalize → key pipeline, then exposes a small lookup surface
|
|
9
|
+
* (`all`, `byProvider`, `get`) keyed by a canonical `"provider/modelId"` id.
|
|
10
|
+
*
|
|
11
|
+
* This replaces pi's `model-registry` / `ModelRegistry`. It is intentionally
|
|
12
|
+
* *not* a re-export of the framework registry: the field order and shape are
|
|
13
|
+
* the conductor's, the data is run back through a zod gate, and the public
|
|
14
|
+
* methods read differently. The full framework {@link Model} is retained on each
|
|
15
|
+
* card so the conductor can hand a complete model object to the agent without a
|
|
16
|
+
* second registry round-trip.
|
|
17
|
+
*/
|
|
18
|
+
import { type KnownProvider, type Model } from "indusagi/ai";
|
|
19
|
+
import type { ModelCardRef } from "../contract";
|
|
20
|
+
/**
|
|
21
|
+
* One normalized entry in the catalog.
|
|
22
|
+
*
|
|
23
|
+
* Extends the lightweight {@link ModelCardRef} identity projection with the
|
|
24
|
+
* extra capability facets the matcher filters on, plus the original framework
|
|
25
|
+
* {@link Model}. `ref` is the slice a UI lists/labels with; `model` is the full
|
|
26
|
+
* record the conductor binds to the agent.
|
|
27
|
+
*/
|
|
28
|
+
export interface CatalogCard {
|
|
29
|
+
/** Canonical `"provider/modelId"` identifier — the catalog key. */
|
|
30
|
+
readonly id: string;
|
|
31
|
+
/** Owning provider slug. */
|
|
32
|
+
readonly provider: KnownProvider | string;
|
|
33
|
+
/** Provider-scoped model id (e.g. `"claude-sonnet-4"`). */
|
|
34
|
+
readonly modelId: string;
|
|
35
|
+
/** Human-readable display name. */
|
|
36
|
+
readonly name: string;
|
|
37
|
+
/** Whether the model exposes a reasoning/thinking budget. */
|
|
38
|
+
readonly reasoning: boolean;
|
|
39
|
+
/** Whether the model accepts image input. */
|
|
40
|
+
readonly acceptsImages: boolean;
|
|
41
|
+
/** Context window size in tokens (0 when the framework omits it). */
|
|
42
|
+
readonly contextTokens: number;
|
|
43
|
+
/** The framework model record, retained verbatim for binding. */
|
|
44
|
+
readonly model: Model<Model<string>["api"]>;
|
|
45
|
+
}
|
|
46
|
+
/** Project a {@link CatalogCard} down to its public {@link ModelCardRef} slice. */
|
|
47
|
+
export declare function toCardRef(card: CatalogCard): ModelCardRef;
|
|
48
|
+
/** Compose the canonical catalog key from a provider + model id. */
|
|
49
|
+
export declare function canonicalId(provider: string, modelId: string): string;
|
|
50
|
+
/** Injection seam for tests: how the catalog sources its raw data. */
|
|
51
|
+
export interface CatalogSource {
|
|
52
|
+
/** Enumerate the providers to scan. */
|
|
53
|
+
readonly providers: () => readonly (KnownProvider | string)[];
|
|
54
|
+
/** Pull the raw model list for one provider. */
|
|
55
|
+
readonly models: (provider: string) => readonly Model<string>[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A normalized, validated view of the framework model list.
|
|
59
|
+
*
|
|
60
|
+
* Construct once (the build pipeline runs eagerly in the constructor) and query
|
|
61
|
+
* many times. The instance is immutable after construction; call
|
|
62
|
+
* {@link ModelCatalog.refreshed} to rebuild against the current framework state.
|
|
63
|
+
*/
|
|
64
|
+
export declare class ModelCatalog {
|
|
65
|
+
#private;
|
|
66
|
+
/**
|
|
67
|
+
* @param source raw-data seam; defaults to the live `indusagi/ai` registry.
|
|
68
|
+
*/
|
|
69
|
+
constructor(source?: CatalogSource);
|
|
70
|
+
/** Total number of cards in the catalog. */
|
|
71
|
+
get size(): number;
|
|
72
|
+
/** Every card, in insertion order (provider scan order). */
|
|
73
|
+
all(): readonly CatalogCard[];
|
|
74
|
+
/** Cards owned by one provider (empty array if the provider has none). */
|
|
75
|
+
byProvider(provider: KnownProvider | string): readonly CatalogCard[];
|
|
76
|
+
/** The providers that contributed at least one card, in scan order. */
|
|
77
|
+
providers(): readonly string[];
|
|
78
|
+
/**
|
|
79
|
+
* Look up one card by its canonical `"provider/modelId"` id. Also accepts a
|
|
80
|
+
* bare provider-scoped model id when it is unambiguous across providers.
|
|
81
|
+
*/
|
|
82
|
+
get(id: string): CatalogCard | undefined;
|
|
83
|
+
/** True when the canonical id resolves to a card. */
|
|
84
|
+
has(id: string): boolean;
|
|
85
|
+
/** Rebuild against the current framework state, returning a fresh catalog. */
|
|
86
|
+
refreshed(source?: CatalogSource): ModelCatalog;
|
|
87
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model catalog subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Bundles the {@link ModelCatalog} (a normalized, validated transform over the
|
|
5
|
+
* framework model list) and the {@link ModelMatcher} (a scored-candidate query
|
|
6
|
+
* resolver). Consumers import both — plus the {@link CatalogCard} shape and the
|
|
7
|
+
* `canonicalId` / `toCardRef` helpers — from `src/conductor/catalog` rather than
|
|
8
|
+
* reaching into the individual modules.
|
|
9
|
+
*
|
|
10
|
+
* This pairing replaces pi's `model-registry` + `model-resolver`; the catalog
|
|
11
|
+
* key, card shape, and resolution algorithm are all the conductor's own.
|
|
12
|
+
*/
|
|
13
|
+
export { ModelCatalog, canonicalId, toCardRef, type CatalogCard, type CatalogSource, } from "./catalog";
|
|
14
|
+
export { ModelMatcher, type ResolveInput, } from "./matcher";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model matcher — `ModelMatcher`.
|
|
3
|
+
*
|
|
4
|
+
* A scored-candidate resolver over a {@link ModelCatalog}. Given a free-form
|
|
5
|
+
* query (a string, or a structured {@link MatchQuery}), it produces the single
|
|
6
|
+
* best-matching {@link ModelCardRef}, or `undefined` when nothing clears the bar.
|
|
7
|
+
*
|
|
8
|
+
* It is an independent implementation: resolution is a *prioritized scoring
|
|
9
|
+
* pipeline*, not a chain of single-purpose match helpers with recursive
|
|
10
|
+
* colon-splitting. Each candidate card is scored against the query by a set of
|
|
11
|
+
* independent strategy probes (exact-canonical, exact-id, provider-prefix,
|
|
12
|
+
* alias-substring, glob), the capability filters gate the field, and the highest
|
|
13
|
+
* scorer (with deterministic tie-breaks) wins. Every helper name here is fresh.
|
|
14
|
+
*/
|
|
15
|
+
import type { MatchQuery, ModelCardRef } from "../contract";
|
|
16
|
+
import { type CatalogCard, type ModelCatalog } from "./catalog";
|
|
17
|
+
/** Either a raw selector string or the structured {@link MatchQuery}. */
|
|
18
|
+
export type ResolveInput = string | MatchQuery;
|
|
19
|
+
/**
|
|
20
|
+
* Resolves model queries against a {@link ModelCatalog} by scored candidates.
|
|
21
|
+
*
|
|
22
|
+
* Construct once with a catalog, then call {@link ModelMatcher.resolve} per
|
|
23
|
+
* query. The matcher holds no mutable state; it is safe to share.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ModelMatcher {
|
|
26
|
+
#private;
|
|
27
|
+
constructor(catalog: ModelCatalog);
|
|
28
|
+
/**
|
|
29
|
+
* Resolve a query to the single best {@link ModelCardRef}, or `undefined`.
|
|
30
|
+
*
|
|
31
|
+
* Pipeline:
|
|
32
|
+
* 1. lift the input to a {@link MatchQuery};
|
|
33
|
+
* 2. honor an explicit `provider`+`modelId` *pin* (highest tier) up front;
|
|
34
|
+
* 3. gate every card through {@link clearsConstraints};
|
|
35
|
+
* 4. with no pattern, return the leading surviving candidate (default pick);
|
|
36
|
+
* 5. otherwise score each survivor via {@link probePattern} + {@link tieBonus}
|
|
37
|
+
* and return the top scorer (deterministic tie-break by tier, bonus, id).
|
|
38
|
+
*/
|
|
39
|
+
resolve(input: ResolveInput): ModelCardRef | undefined;
|
|
40
|
+
/** As {@link resolve}, but returns the full {@link CatalogCard}. */
|
|
41
|
+
resolveCard(input: ResolveInput): CatalogCard | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Resolve, returning *all* surviving candidates ranked best-first (the field
|
|
44
|
+
* a "did you mean" picker would show). Useful for ambiguous selectors.
|
|
45
|
+
*/
|
|
46
|
+
resolveAll(input: ResolveInput): readonly ModelCardRef[];
|
|
47
|
+
}
|