indusagi-coding-agent 0.1.59 → 0.1.61
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 +60 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19251 -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,436 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime-bridge contract — the FROZEN type surface of provider *routing*.
|
|
3
|
+
*
|
|
4
|
+
* This module is the single typed seam that decides, per model, **where a turn
|
|
5
|
+
* is actually produced**: by the framework's own network stream
|
|
6
|
+
* (`streamSimple` over an HTTP provider) or by an *external runtime* — a child
|
|
7
|
+
* coding-agent process driven over its own protocol (an Anthropic-flavoured CLI
|
|
8
|
+
* speaking line-delimited JSON, an OpenAI-flavoured CLI emitting `--json`
|
|
9
|
+
* items, or a peer agent reachable over JSON-RPC). The product never calls a
|
|
10
|
+
* bridge or the framework stream directly; it asks the {@link RuntimeBroker} to
|
|
11
|
+
* route, and the broker picks the path.
|
|
12
|
+
*
|
|
13
|
+
* Design stance:
|
|
14
|
+
* - A model is *annotated*, not re-catalogued. The model catalog/matcher
|
|
15
|
+
* (Phase 2) own the {@link Model} list; this layer only attaches an optional
|
|
16
|
+
* {@link ExternalRuntimeSpec} that says "this model is backed by a spawned
|
|
17
|
+
* CLI / a peer agent, here is how to reach it and authenticate". A model
|
|
18
|
+
* with no spec routes normally.
|
|
19
|
+
* - Every external runtime speaks a *different* wire dialect, but the broker
|
|
20
|
+
* should not care. So each bridge is reduced to a **parser** that yields a
|
|
21
|
+
* provider-neutral {@link NormalizedEvent} stream, and the single
|
|
22
|
+
* {@link BridgeEventSink} translates those events into the framework's
|
|
23
|
+
* {@link AssistantMessageEventStream} push shape. The imperative
|
|
24
|
+
* `pushStart/pushTextDelta/pushDone` idiom lives in exactly one place.
|
|
25
|
+
* - The child process / RPC peer a bridge drives is reached through an
|
|
26
|
+
* **injectable** {@link ChildTransport}, never a hard-coded `spawn`. Tests
|
|
27
|
+
* hand the bridge a fake transport so no real `claude`/`codex` binary is
|
|
28
|
+
* launched.
|
|
29
|
+
* - Authentication policy is data, not control flow:
|
|
30
|
+
* {@link RuntimeBridge.requiresCredential} answers "does this model need a
|
|
31
|
+
* key on disk before it can be offered?" — a spawned-CLI runtime that owns
|
|
32
|
+
* its own auth returns `false`, letting the model appear available with no
|
|
33
|
+
* key.
|
|
34
|
+
*
|
|
35
|
+
* Framework anchors (all from the sibling rebuilt framework, the `indusagi`
|
|
36
|
+
* package) — consumed verbatim, never re-derived:
|
|
37
|
+
* - `Model`, `Context`, `AssistantMessage`, `AssistantMessageEventStream`,
|
|
38
|
+
* `Api`, `StopReason`, `ToolCall`, `Usage`, `SimpleStreamOptions`,
|
|
39
|
+
* `KnownProvider` ← `indusagi/ai`
|
|
40
|
+
* - `streamSimple` is the network fallback the broker routes to.
|
|
41
|
+
*
|
|
42
|
+
* Interface-dictated shapes preserved as-is:
|
|
43
|
+
* - the `bridge:<adapter>` synthetic endpoint convention for runtime-backed
|
|
44
|
+
* models (so a catalog entry has a stable, non-HTTP `baseUrl`);
|
|
45
|
+
* - the external CLI protocol vocabularies (Anthropic stream-json content
|
|
46
|
+
* blocks, OpenAI `--json` items, peer JSON-RPC requests) — surfaced only as
|
|
47
|
+
* the opaque payloads a {@link ChildTransport} carries, never re-expressed.
|
|
48
|
+
*/
|
|
49
|
+
import type { Api, AssistantMessage, AssistantMessageEventStream, Context, KnownProvider, Model, SimpleStreamOptions, StopReason, ToolCall } from "indusagi/ai";
|
|
50
|
+
/** Re-exported framework vocabulary routing consumers routinely compose. */
|
|
51
|
+
export type { Api, AssistantMessage, AssistantMessageEventStream, Context, KnownProvider, Model, SimpleStreamOptions, StopReason, ToolCall, };
|
|
52
|
+
/**
|
|
53
|
+
* The set of bridge adapters this layer ships.
|
|
54
|
+
*
|
|
55
|
+
* Each value names a concrete {@link RuntimeBridge} implementation and the wire
|
|
56
|
+
* dialect it speaks:
|
|
57
|
+
* - `"claude-cli"` — drives an Anthropic-flavoured CLI emitting
|
|
58
|
+
* line-delimited stream-json content blocks.
|
|
59
|
+
* - `"codex-cli"` — drives an OpenAI-flavoured CLI emitting `--json`
|
|
60
|
+
* turn/item events.
|
|
61
|
+
* - `"indusagi-cli"` — drives a peer agent over JSON-RPC; the child already
|
|
62
|
+
* speaks the framework event vocabulary, so its events
|
|
63
|
+
* map onto {@link NormalizedEvent} near-directly.
|
|
64
|
+
*
|
|
65
|
+
* Left open (`(string & {})`) so an extension can register a further adapter
|
|
66
|
+
* without editing this union, while the three shipped ids keep autocompletion.
|
|
67
|
+
*/
|
|
68
|
+
export type RuntimeAdapterId = "claude-cli" | "codex-cli" | "indusagi-cli" | (string & {});
|
|
69
|
+
/**
|
|
70
|
+
* How a model bound to an external runtime authenticates.
|
|
71
|
+
*
|
|
72
|
+
* - `"external-cli"` — the spawned child owns its own auth (its own login /
|
|
73
|
+
* keychain); the product needs **no** key on disk, so the model can be
|
|
74
|
+
* offered as available with an empty vault. This is the policy that makes a
|
|
75
|
+
* CLI-backed model "just work" once the underlying tool is logged in.
|
|
76
|
+
* - `"api-key"` — the runtime still needs an API key resolved from the
|
|
77
|
+
* credential vault, same as a normal HTTP provider; only the *transport*
|
|
78
|
+
* differs.
|
|
79
|
+
*/
|
|
80
|
+
export type RuntimeAuthMode = "external-cli" | "api-key";
|
|
81
|
+
/**
|
|
82
|
+
* The annotation that turns an ordinary {@link Model} into an external-runtime
|
|
83
|
+
* model. Attached alongside a catalog card (it is *additive* metadata — the
|
|
84
|
+
* catalog/matcher are unaware of it) and consulted by the {@link RuntimeBroker}
|
|
85
|
+
* to decide routing.
|
|
86
|
+
*
|
|
87
|
+
* All transport fields are optional: a bridge may have a sensible default
|
|
88
|
+
* binary, take no extra args, inherit the parent environment, and route to its
|
|
89
|
+
* own downstream source. Only {@link adapter} is required, because it selects
|
|
90
|
+
* which {@link RuntimeBridge} owns the exchange.
|
|
91
|
+
*/
|
|
92
|
+
export interface ExternalRuntimeSpec {
|
|
93
|
+
/** Which bridge owns this model's exchange (the {@link RuntimeBridge.adapter}). */
|
|
94
|
+
readonly adapter: RuntimeAdapterId;
|
|
95
|
+
/** Whether the runtime needs a key on disk, or owns its own auth. */
|
|
96
|
+
readonly authMode: RuntimeAuthMode;
|
|
97
|
+
/** Override for the child executable to launch (defaults to the bridge's own). */
|
|
98
|
+
readonly binaryPath?: string;
|
|
99
|
+
/** Extra command-line arguments prepended to the bridge's protocol flags. */
|
|
100
|
+
readonly args?: readonly string[];
|
|
101
|
+
/** Environment overrides merged into the child process environment. */
|
|
102
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
103
|
+
/**
|
|
104
|
+
* For a bridge that fronts another source (e.g. a peer agent that itself
|
|
105
|
+
* talks to a downstream provider), the provider slug the child should target.
|
|
106
|
+
* Ignored by bridges that terminate the exchange themselves.
|
|
107
|
+
*/
|
|
108
|
+
readonly delegate?: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The synthetic endpoint scheme stamped onto a runtime-backed model's
|
|
112
|
+
* `baseUrl`. A model annotated with {@link ExternalRuntimeSpec} carries
|
|
113
|
+
* `baseUrl === "${RUNTIME_ENDPOINT_SCHEME}${adapter}"` so it has a stable,
|
|
114
|
+
* non-HTTP address that never resolves to a network host.
|
|
115
|
+
*/
|
|
116
|
+
export declare const RUNTIME_ENDPOINT_SCHEME: "bridge:";
|
|
117
|
+
/** The literal type of {@link RUNTIME_ENDPOINT_SCHEME}. */
|
|
118
|
+
export type RuntimeEndpointScheme = typeof RUNTIME_ENDPOINT_SCHEME;
|
|
119
|
+
/**
|
|
120
|
+
* Compose the synthetic `bridge:<adapter>` endpoint for a runtime-backed model.
|
|
121
|
+
* Inert string helper; the single sanctioned way to mint the convention so it
|
|
122
|
+
* stays uniform across the catalog annotation and the broker's routing check.
|
|
123
|
+
*
|
|
124
|
+
* @param adapter the {@link RuntimeBridge.adapter} owning the model
|
|
125
|
+
*/
|
|
126
|
+
export declare function runtimeEndpoint(adapter: RuntimeAdapterId): string;
|
|
127
|
+
/**
|
|
128
|
+
* A provider-neutral streamed event — the common currency between a bridge's
|
|
129
|
+
* per-dialect parser and the {@link BridgeEventSink}.
|
|
130
|
+
*
|
|
131
|
+
* Each external runtime emits its own wire vocabulary (Anthropic content
|
|
132
|
+
* blocks, OpenAI items, peer JSON-RPC events). A bridge's only job is to map
|
|
133
|
+
* that vocabulary onto this small, closed union; the sink then translates a
|
|
134
|
+
* {@link NormalizedEvent} into the matching framework
|
|
135
|
+
* {@link AssistantMessageEventStream} push call. This is the seam that removes
|
|
136
|
+
* the per-bridge `stream.push*` duplication.
|
|
137
|
+
*
|
|
138
|
+
* Variants:
|
|
139
|
+
* - `text` — a chunk of assistant answer text.
|
|
140
|
+
* - `thinking` — a chunk of reasoning text (runtimes without a thinking
|
|
141
|
+
* channel simply never emit this).
|
|
142
|
+
* - `tool_call`— a fully-formed tool invocation the child decided on.
|
|
143
|
+
* - `resume` — the child reported a session/thread id the bridge can persist
|
|
144
|
+
* to reattach the underlying CLI session after a restart.
|
|
145
|
+
* - `finish` — the exchange settled successfully with a terminal reason.
|
|
146
|
+
* - `failed` — the exchange ended in error.
|
|
147
|
+
*/
|
|
148
|
+
export type NormalizedEvent = {
|
|
149
|
+
readonly kind: "text";
|
|
150
|
+
readonly delta: string;
|
|
151
|
+
} | {
|
|
152
|
+
readonly kind: "thinking";
|
|
153
|
+
readonly delta: string;
|
|
154
|
+
} | {
|
|
155
|
+
readonly kind: "tool_call";
|
|
156
|
+
readonly call: ToolCall;
|
|
157
|
+
} | {
|
|
158
|
+
readonly kind: "resume";
|
|
159
|
+
readonly resumeToken: string;
|
|
160
|
+
} | {
|
|
161
|
+
readonly kind: "finish";
|
|
162
|
+
readonly reason: FinishReason;
|
|
163
|
+
} | {
|
|
164
|
+
readonly kind: "failed";
|
|
165
|
+
readonly error: BridgeFailure;
|
|
166
|
+
};
|
|
167
|
+
/** The discriminant literals of {@link NormalizedEvent}, for filtering/logging. */
|
|
168
|
+
export type NormalizedEventKind = NormalizedEvent["kind"];
|
|
169
|
+
/** Extract a single member of {@link NormalizedEvent} by its `kind`. */
|
|
170
|
+
export type NormalizedEventOf<K extends NormalizedEventKind> = Extract<NormalizedEvent, {
|
|
171
|
+
kind: K;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* The terminal reasons an external exchange can settle on. A subset of the
|
|
175
|
+
* framework's {@link StopReason} — the non-error outcomes a bridge reports to
|
|
176
|
+
* the sink, which then emits the framework `done` event.
|
|
177
|
+
*/
|
|
178
|
+
export type FinishReason = Extract<StopReason, "stop" | "length" | "toolUse">;
|
|
179
|
+
/**
|
|
180
|
+
* A typed failure surfaced by a bridge when an external exchange breaks. The
|
|
181
|
+
* `aborted` flag distinguishes a caller-cancelled exchange (the child was
|
|
182
|
+
* interrupted) from a genuine fault, so the sink can emit the matching
|
|
183
|
+
* framework error reason (`aborted` vs `error`).
|
|
184
|
+
*/
|
|
185
|
+
export interface BridgeFailure {
|
|
186
|
+
/** Human-readable, single-line summary of what went wrong. */
|
|
187
|
+
readonly message: string;
|
|
188
|
+
/** True when the exchange was cancelled rather than failing on its own. */
|
|
189
|
+
readonly aborted?: boolean;
|
|
190
|
+
/** Underlying error or structured detail, if any. */
|
|
191
|
+
readonly cause?: unknown;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The single push-stream helper every bridge writes through.
|
|
195
|
+
*
|
|
196
|
+
* It owns the accumulating {@link AssistantMessage}, the content-block index
|
|
197
|
+
* bookkeeping, and the lazily-started lifecycle (the first emission opens the
|
|
198
|
+
* stream). A bridge never touches {@link AssistantMessageEventStream} directly;
|
|
199
|
+
* it constructs a sink, drives it with normalized events, and returns the
|
|
200
|
+
* sink's {@link stream}. This centralizes the
|
|
201
|
+
* `ensureStarted → push* → finishSuccess/finishError` idiom so the per-bridge
|
|
202
|
+
* code is purely a parser.
|
|
203
|
+
*
|
|
204
|
+
* The convenience methods cover the common path; {@link emit} accepts a raw
|
|
205
|
+
* {@link NormalizedEvent} for parsers that prefer to yield the union directly.
|
|
206
|
+
*/
|
|
207
|
+
export interface BridgeEventSink {
|
|
208
|
+
/**
|
|
209
|
+
* Open the underlying stream and push the framework `start` event, if it has
|
|
210
|
+
* not already started. Idempotent: safe to call before any emission, and a
|
|
211
|
+
* no-op once started. The convenience emitters call it implicitly.
|
|
212
|
+
*/
|
|
213
|
+
start(): void;
|
|
214
|
+
/** Append a chunk of assistant answer text (opens a text block on first call). */
|
|
215
|
+
text(delta: string): void;
|
|
216
|
+
/** Append a chunk of reasoning text (opens a thinking block on first call). */
|
|
217
|
+
thinking(delta: string): void;
|
|
218
|
+
/** Emit a fully-formed tool call as its own content block. */
|
|
219
|
+
toolCall(call: ToolCall): void;
|
|
220
|
+
/**
|
|
221
|
+
* Map one {@link NormalizedEvent} onto the matching push call. The single
|
|
222
|
+
* entry point a parser can drive with the raw union; dispatches to
|
|
223
|
+
* {@link text} / {@link thinking} / {@link toolCall} / {@link finishSuccess} /
|
|
224
|
+
* {@link finishError} by `kind`. A `resume` event is informational and does
|
|
225
|
+
* not touch the stream.
|
|
226
|
+
*/
|
|
227
|
+
emit(event: NormalizedEvent): void;
|
|
228
|
+
/**
|
|
229
|
+
* Settle the exchange successfully: close any open block, finalize the
|
|
230
|
+
* accumulated message, and push the framework `done` event with `reason`.
|
|
231
|
+
* Terminal — no further emissions are valid after this.
|
|
232
|
+
*
|
|
233
|
+
* @param reason the terminal stop reason (defaults to `"stop"`)
|
|
234
|
+
*/
|
|
235
|
+
finishSuccess(reason?: FinishReason): void;
|
|
236
|
+
/**
|
|
237
|
+
* Settle the exchange in error: push the framework `error` event. The
|
|
238
|
+
* {@link BridgeFailure.aborted} flag selects the framework error reason
|
|
239
|
+
* (`aborted` vs `error`). Terminal.
|
|
240
|
+
*
|
|
241
|
+
* @param error the typed bridge failure
|
|
242
|
+
*/
|
|
243
|
+
finishError(error: BridgeFailure): void;
|
|
244
|
+
/**
|
|
245
|
+
* The framework push stream the broker hands back to its caller. Populated
|
|
246
|
+
* asynchronously as the bridge drives the sink; consumers iterate it exactly
|
|
247
|
+
* as they would the stream `streamSimple` returns.
|
|
248
|
+
*/
|
|
249
|
+
readonly stream: AssistantMessageEventStream;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* A single message exchanged with the child runtime over its {@link ChildTransport}.
|
|
253
|
+
*
|
|
254
|
+
* The `payload` is deliberately opaque: it is whatever the underlying protocol
|
|
255
|
+
* carries — a parsed JSON line from a CLI's NDJSON stdout, a JSON-RPC
|
|
256
|
+
* notification from a peer agent, a raw text chunk. The bridge that owns the
|
|
257
|
+
* transport knows how to interpret it; the contract only fixes the envelope so
|
|
258
|
+
* the transport interface itself is dialect-agnostic and mockable.
|
|
259
|
+
*/
|
|
260
|
+
export interface ChildMessage {
|
|
261
|
+
/** The protocol payload (a parsed JSON value, a text line, an RPC frame). */
|
|
262
|
+
readonly payload: unknown;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A request sent *to* the child runtime. The bridge formats the dialect-specific
|
|
266
|
+
* body; the transport only relays it. `body` is opaque for the same reason
|
|
267
|
+
* {@link ChildMessage.payload} is.
|
|
268
|
+
*/
|
|
269
|
+
export interface ChildRequest {
|
|
270
|
+
/** The dialect-specific request body the bridge constructed. */
|
|
271
|
+
readonly body: unknown;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* The injectable boundary between a bridge and the actual child process / RPC
|
|
275
|
+
* peer it drives.
|
|
276
|
+
*
|
|
277
|
+
* A production transport wraps a spawned process (its stdin/stdout, or a
|
|
278
|
+
* JSON-RPC client over that process); a test transport is a hand-written fake
|
|
279
|
+
* that records `send`s and replays canned {@link ChildMessage}s — so a bridge's
|
|
280
|
+
* parser can be exercised with **no real binary launched**. The bridge depends
|
|
281
|
+
* only on this interface, never on `child_process` directly.
|
|
282
|
+
*/
|
|
283
|
+
export interface ChildTransport {
|
|
284
|
+
/**
|
|
285
|
+
* Relay one {@link ChildRequest} to the child (e.g. write a prompt to stdin or
|
|
286
|
+
* issue a JSON-RPC call). Resolves once the request has been handed off.
|
|
287
|
+
*
|
|
288
|
+
* @param request the dialect-specific request to deliver
|
|
289
|
+
*/
|
|
290
|
+
send(request: ChildRequest): Promise<void>;
|
|
291
|
+
/**
|
|
292
|
+
* Register a listener for inbound {@link ChildMessage}s from the child
|
|
293
|
+
* (stdout lines, RPC notifications). Returns an unsubscribe function.
|
|
294
|
+
*
|
|
295
|
+
* @param listener invoked for each inbound message
|
|
296
|
+
* @returns a disposer that removes the listener
|
|
297
|
+
*/
|
|
298
|
+
onMessage(listener: (message: ChildMessage) => void): () => void;
|
|
299
|
+
/**
|
|
300
|
+
* Terminate the child and release the transport. Idempotent; safe to call on
|
|
301
|
+
* an already-closed transport. After `close`, `send` rejects and no further
|
|
302
|
+
* messages are delivered.
|
|
303
|
+
*/
|
|
304
|
+
close(): Promise<void>;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Per-exchange options threaded into {@link RuntimeBridge.runExchange} (and the
|
|
308
|
+
* framework `streamSimple` fallback the broker also drives).
|
|
309
|
+
*
|
|
310
|
+
* Extends the framework's {@link SimpleStreamOptions} (so `signal`, `apiKey`,
|
|
311
|
+
* `reasoning`, etc. flow straight through to the network path) with the
|
|
312
|
+
* routing-layer extras a bridge needs:
|
|
313
|
+
* - {@link sessionId} correlates the exchange with a persisted runtime session
|
|
314
|
+
* so the bridge can resume the underlying CLI session.
|
|
315
|
+
* - {@link cwd} is the working directory the child runtime is scoped to.
|
|
316
|
+
* - {@link resume} carries a previously-persisted token (e.g. a CLI session id
|
|
317
|
+
* / thread id) the bridge reattaches to instead of starting fresh.
|
|
318
|
+
*/
|
|
319
|
+
export interface ExchangeOptions extends SimpleStreamOptions {
|
|
320
|
+
/** Stable session id to correlate / persist the runtime session under. */
|
|
321
|
+
readonly sessionId?: string;
|
|
322
|
+
/** Working directory the child runtime is scoped to (defaults to process cwd). */
|
|
323
|
+
readonly cwd?: string;
|
|
324
|
+
/** A resume token from a prior exchange to reattach the underlying session. */
|
|
325
|
+
readonly resume?: string;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* One external-runtime adapter: the strategy that produces a turn for a model
|
|
329
|
+
* whose {@link ExternalRuntimeSpec} names it.
|
|
330
|
+
*
|
|
331
|
+
* A bridge is the dialect specialist. Given the bound {@link Model}, the
|
|
332
|
+
* {@link Context}, per-exchange {@link ExchangeOptions}, and an **injected**
|
|
333
|
+
* {@link ChildTransport}, it drives the child and returns the framework push
|
|
334
|
+
* stream the turn streams into. The transport is a parameter (not constructed
|
|
335
|
+
* internally) precisely so tests pass a fake and no real CLI is spawned.
|
|
336
|
+
*
|
|
337
|
+
* Bridges hold no per-session state on the contract surface; live session
|
|
338
|
+
* handles and reuse/persistence are the {@link RuntimeBroker}'s concern.
|
|
339
|
+
*/
|
|
340
|
+
export interface RuntimeBridge {
|
|
341
|
+
/** The adapter id this bridge answers to (matched against {@link ExternalRuntimeSpec.adapter}). */
|
|
342
|
+
readonly adapter: RuntimeAdapterId;
|
|
343
|
+
/**
|
|
344
|
+
* Drive one exchange against the external runtime and return the framework
|
|
345
|
+
* push stream it streams into. Returns the stream **synchronously** (the
|
|
346
|
+
* stream is populated asynchronously as the child emits), matching the shape
|
|
347
|
+
* of the framework's own `streamSimple`. The implementation reads inbound
|
|
348
|
+
* {@link ChildMessage}s off `transport`, parses them into
|
|
349
|
+
* {@link NormalizedEvent}s, and feeds a {@link BridgeEventSink}.
|
|
350
|
+
*
|
|
351
|
+
* @param model the bound framework model for this exchange
|
|
352
|
+
* @param context the framework conversation context
|
|
353
|
+
* @param opts per-exchange options (session id, cwd, resume, stream opts)
|
|
354
|
+
* @param transport the injected child boundary to drive
|
|
355
|
+
*/
|
|
356
|
+
runExchange(model: Model<Api>, context: Context, opts: ExchangeOptions, transport: ChildTransport): AssistantMessageEventStream;
|
|
357
|
+
/**
|
|
358
|
+
* Whether a model bound to this bridge needs a credential on disk before it
|
|
359
|
+
* can be offered. Returns `false` for an `"external-cli"` spec whose child
|
|
360
|
+
* owns its own auth (so the model is available with an empty vault), `true`
|
|
361
|
+
* for an `"api-key"` spec. The central auth-routing predicate.
|
|
362
|
+
*
|
|
363
|
+
* @param spec the external-runtime annotation to evaluate
|
|
364
|
+
*/
|
|
365
|
+
requiresCredential(spec: ExternalRuntimeSpec): boolean;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* The outcome of a routing decision: either an external runtime owns the
|
|
369
|
+
* exchange, or it falls through to the framework network stream.
|
|
370
|
+
*
|
|
371
|
+
* - `"external"` carries the chosen {@link RuntimeBridge} and the resolved
|
|
372
|
+
* {@link ExternalRuntimeSpec} the broker will drive `runExchange` with.
|
|
373
|
+
* - `"framework"` signals the caller to run the framework `streamSimple` path
|
|
374
|
+
* unchanged.
|
|
375
|
+
*/
|
|
376
|
+
export type RuntimeRoute = {
|
|
377
|
+
readonly target: "external";
|
|
378
|
+
readonly bridge: RuntimeBridge;
|
|
379
|
+
readonly spec: ExternalRuntimeSpec;
|
|
380
|
+
} | {
|
|
381
|
+
readonly target: "framework";
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* The router and registry over {@link RuntimeBridge}s — the single decision
|
|
385
|
+
* point for "external runtime vs framework stream".
|
|
386
|
+
*
|
|
387
|
+
* The broker is asked to {@link route} every turn. If the model carries an
|
|
388
|
+
* {@link ExternalRuntimeSpec} whose adapter resolves to a registered bridge,
|
|
389
|
+
* the broker returns an `"external"` route the caller drives via the bridge's
|
|
390
|
+
* `runExchange`; otherwise it returns a `"framework"` route and the caller runs
|
|
391
|
+
* `streamSimple`. Bridges are {@link register}ed at assembly time and looked up
|
|
392
|
+
* by adapter id.
|
|
393
|
+
*/
|
|
394
|
+
export interface RuntimeBroker {
|
|
395
|
+
/**
|
|
396
|
+
* Add a {@link RuntimeBridge} to the registry, keyed by its
|
|
397
|
+
* {@link RuntimeBridge.adapter}. Registering an adapter id that already exists
|
|
398
|
+
* replaces the prior bridge.
|
|
399
|
+
*
|
|
400
|
+
* @param bridge the bridge to register
|
|
401
|
+
*/
|
|
402
|
+
register(bridge: RuntimeBridge): void;
|
|
403
|
+
/**
|
|
404
|
+
* Decide how to produce a turn for `model`. Resolves the model's
|
|
405
|
+
* {@link ExternalRuntimeSpec} (via {@link resolveSpec}) and a matching
|
|
406
|
+
* registered bridge; returns an `"external"` route when both are present and
|
|
407
|
+
* the bridge's credential requirement is satisfiable, else a `"framework"`
|
|
408
|
+
* route. The framework `context`/`opts` are accepted so an implementation may
|
|
409
|
+
* factor them into routing, even though the base decision keys on the model.
|
|
410
|
+
*
|
|
411
|
+
* @param model the model the turn is bound to
|
|
412
|
+
* @param context the framework conversation context for the turn
|
|
413
|
+
* @param opts per-exchange options
|
|
414
|
+
*/
|
|
415
|
+
route(model: Model<Api>, context: Context, opts: ExchangeOptions): RuntimeRoute;
|
|
416
|
+
/**
|
|
417
|
+
* Resolve the {@link ExternalRuntimeSpec} annotated onto a model, or
|
|
418
|
+
* `undefined` when the model is a plain HTTP-provider model. How the spec is
|
|
419
|
+
* attached (a side-table keyed by canonical id, a field on a catalog card, a
|
|
420
|
+
* `bridge:<adapter>` baseUrl decode) is the implementation's choice; the
|
|
421
|
+
* contract only fixes the lookup.
|
|
422
|
+
*
|
|
423
|
+
* @param model the model to inspect for a runtime annotation
|
|
424
|
+
*/
|
|
425
|
+
resolveSpec(model: Model<Api>): ExternalRuntimeSpec | undefined;
|
|
426
|
+
/**
|
|
427
|
+
* Whether a runtime-annotated model needs a credential on disk before it can
|
|
428
|
+
* be offered as available. Delegates to the owning bridge's
|
|
429
|
+
* {@link RuntimeBridge.requiresCredential}; returns `false` for a model with
|
|
430
|
+
* no spec only when the caller treats "no runtime" as "framework auth applies
|
|
431
|
+
* elsewhere" — so this answers strictly the *runtime* credential question.
|
|
432
|
+
*
|
|
433
|
+
* @param spec the runtime annotation to evaluate
|
|
434
|
+
*/
|
|
435
|
+
requiresCredential(spec: ExternalRuntimeSpec): boolean;
|
|
436
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime-bridge subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the FROZEN provider-routing contract: the external-runtime
|
|
5
|
+
* annotation ({@link ExternalRuntimeSpec} + the `bridge:<adapter>` endpoint
|
|
6
|
+
* convention), the provider-neutral {@link NormalizedEvent} union, the single
|
|
7
|
+
* {@link BridgeEventSink} push-stream helper, the injectable
|
|
8
|
+
* {@link ChildTransport} boundary, and the routing surface itself
|
|
9
|
+
* ({@link RuntimeBridge}, {@link RuntimeBroker}, {@link RuntimeRoute}).
|
|
10
|
+
*
|
|
11
|
+
* Behavior modules (the concrete bridges under `bridges/`, the sink
|
|
12
|
+
* implementation, the broker) are added to this barrel as they land; consumers
|
|
13
|
+
* import the routing surface from `src/runtime-bridge` rather than reaching into
|
|
14
|
+
* individual modules.
|
|
15
|
+
*/
|
|
16
|
+
export type { RuntimeAdapterId, RuntimeAuthMode, ExternalRuntimeSpec, RuntimeEndpointScheme, NormalizedEvent, NormalizedEventKind, NormalizedEventOf, FinishReason, BridgeFailure, BridgeEventSink, ChildMessage, ChildRequest, ChildTransport, ExchangeOptions, RuntimeBridge, RuntimeBroker, RuntimeRoute, Api, AssistantMessage, AssistantMessageEventStream, Context, KnownProvider, Model, SimpleStreamOptions, StopReason, ToolCall, } from "./contract";
|
|
17
|
+
export { RUNTIME_ENDPOINT_SCHEME, runtimeEndpoint } from "./contract";
|
|
18
|
+
export type { BridgeMessageSeed } from "./sink";
|
|
19
|
+
export { createBridgeSink } from "./sink";
|
|
20
|
+
export { claudeCliBridge, codexCliBridge, indusagiCliBridge, makeIndusagiCliBridge, BUILTIN_RUNTIME_SPECS, BUILTIN_ADAPTERS, builtinRuntimeSpec, annotateCard, withRuntimeEndpoint, specFromModel, type RuntimeAnnotatedModel, driveExchange, seedFromModel, type ChildParser, type ParseStep, } from "./bridges";
|
|
21
|
+
export { createRuntimeBroker, runtimeSourceKey, RUNTIME_LINK_ENTRY, type RuntimeBrokerRuntime, type RuntimeBrokerDeps, type ChildTransportFactory, type TransportContext, type FrameworkStream, type RuntimeLink, type RuntimeLinkStore, type RuntimeLinkEntryTag, type ResumeEvent, } from "./broker";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase 5 runtime-bridge — behavioral tests.
|
|
3
|
+
*
|
|
4
|
+
* Exercises the provider-routing layer end to end with **no real CLI spawned**:
|
|
5
|
+
* every external exchange is driven over a hand-written fake {@link ChildTransport}
|
|
6
|
+
* that replays scripted {@link ChildMessage}s. Four properties are pinned:
|
|
7
|
+
*
|
|
8
|
+
* (1) the single {@link BridgeEventSink} maps a {@link NormalizedEvent} sequence
|
|
9
|
+
* onto the right framework {@link AssistantMessageEventStream} events;
|
|
10
|
+
* (2) the `claude-cli` {@link RuntimeBridge}, driven over a fake transport,
|
|
11
|
+
* produces a text + finish event stream;
|
|
12
|
+
* (3) {@link RuntimeBroker.route} (and the dispatch half, `exchange`) picks the
|
|
13
|
+
* external bridge for a model carrying an {@link ExternalRuntimeSpec} and the
|
|
14
|
+
* framework path otherwise;
|
|
15
|
+
* (4) `requiresCredential` reflects the spec's `authMode`.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The single {@link BridgeEventSink} implementation — the one place the
|
|
3
|
+
* imperative push-stream idiom every bridge shares is written down.
|
|
4
|
+
*
|
|
5
|
+
* Each external runtime emits its own wire dialect; a bridge's parser maps that
|
|
6
|
+
* dialect onto the provider-neutral {@link NormalizedEvent} union and drives a
|
|
7
|
+
* sink. This module owns everything else:
|
|
8
|
+
*
|
|
9
|
+
* - the accumulating {@link AssistantMessage} `partial` that every framework
|
|
10
|
+
* event carries (built in-place exactly like the framework's own producers,
|
|
11
|
+
* so a runtime-backed turn is indistinguishable from a network turn to the
|
|
12
|
+
* consumer);
|
|
13
|
+
* - the content-block index bookkeeping (a block's index is its position in
|
|
14
|
+
* `partial.content`, opened lazily on first emission of its kind);
|
|
15
|
+
* - the lazily-started lifecycle (`start` is implicit on first emission, and
|
|
16
|
+
* idempotent) and the terminal `finishSuccess` / `finishError` settle;
|
|
17
|
+
* - the `NormalizedEvent -> framework event` mapping, in {@link emit}, so the
|
|
18
|
+
* per-bridge code stays a pure parser.
|
|
19
|
+
*
|
|
20
|
+
* The framework push surface this writes through —
|
|
21
|
+
* `pushStart / pushTextStart / pushTextDelta / pushTextEnd /
|
|
22
|
+
* pushThinkingStart / pushThinkingDelta / pushThinkingEnd /
|
|
23
|
+
* pushToolCallStart / pushToolCallDelta / pushToolCallEnd /
|
|
24
|
+
* pushDone / pushError` on {@link AssistantMessageEventStream} — is consumed
|
|
25
|
+
* verbatim from the framework; this module never re-derives event shapes.
|
|
26
|
+
*
|
|
27
|
+
* Streaming contract honored (matching the framework's own adapters): a text or
|
|
28
|
+
* thinking block opens with a `*_start` once the block has been appended to
|
|
29
|
+
* `partial.content`, streams `*_delta`s while the running content accumulates
|
|
30
|
+
* in-place, and closes with a `*_end` carrying the final content. A tool call is
|
|
31
|
+
* a single self-contained block (`start -> delta(args) -> end`). The terminal
|
|
32
|
+
* `done` / `error` event carries the fully-accumulated message.
|
|
33
|
+
*/
|
|
34
|
+
import type { AssistantMessage, BridgeEventSink } from "./contract";
|
|
35
|
+
/**
|
|
36
|
+
* The model-identity fields stamped onto every `partial` {@link AssistantMessage}
|
|
37
|
+
* the sink emits. A bridge supplies these from the bound {@link Model} so a
|
|
38
|
+
* runtime-backed turn reports the same `api` / `provider` / `model` triple a
|
|
39
|
+
* network turn would — keeping the accumulated message uniform regardless of
|
|
40
|
+
* which path produced it.
|
|
41
|
+
*/
|
|
42
|
+
export interface BridgeMessageSeed {
|
|
43
|
+
/** The bound model's `api` dialect identifier. */
|
|
44
|
+
readonly api: AssistantMessage["api"];
|
|
45
|
+
/** The bound model's provider slug. */
|
|
46
|
+
readonly provider: AssistantMessage["provider"];
|
|
47
|
+
/** The bound model's id (the value stamped into `AssistantMessage.model`). */
|
|
48
|
+
readonly model: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Construct a {@link BridgeEventSink} seeded with the bound model's identity.
|
|
52
|
+
* The single sanctioned way a bridge obtains a sink: it creates one, drives it
|
|
53
|
+
* with {@link NormalizedEvent}s (or the convenience emitters), and returns
|
|
54
|
+
* {@link BridgeEventSink.stream}. The imperative push idiom lives entirely
|
|
55
|
+
* inside the returned sink.
|
|
56
|
+
*
|
|
57
|
+
* @param seed the bound model's `api` / `provider` / `model` identity
|
|
58
|
+
*/
|
|
59
|
+
export declare function createBridgeSink(seed: BridgeMessageSeed): BridgeEventSink;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Library contract — the value types the library surface speaks in.
|
|
3
|
+
*
|
|
4
|
+
* The library sits on top of the conductor's persistent transcript store: it
|
|
5
|
+
* enumerates the session files a workspace has accumulated, opens one back into
|
|
6
|
+
* a live {@link TranscriptStore}, and projects the resulting node tree into the
|
|
7
|
+
* flat shapes a navigator and a forking picker consume.
|
|
8
|
+
*
|
|
9
|
+
* These records are the *catalog/navigation* projections — the minimum a chooser
|
|
10
|
+
* UI needs. They deliberately hold no framework message objects: text is already
|
|
11
|
+
* reduced to a short preview, and identity is carried by stable string ids so a
|
|
12
|
+
* caller can list, rename, delete, walk, and fork without rehydrating payloads.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* One persisted session as the library catalogs it — what a chooser shows in a
|
|
16
|
+
* list before anything is opened.
|
|
17
|
+
*
|
|
18
|
+
* `id` is the bare session identifier (the filename stem the conductor's
|
|
19
|
+
* filesystem backend writes to); `path` is its absolute on-disk location. The
|
|
20
|
+
* remaining fields are best-effort enrichments filled when the library is asked
|
|
21
|
+
* to peek inside a file: a derived `name`, file `lastModified`/`size`, the
|
|
22
|
+
* `messageCount` of conversational nodes, and a short `preview` of the opening
|
|
23
|
+
* user turn. Any of them may be absent when only a shallow listing was taken.
|
|
24
|
+
*/
|
|
25
|
+
export interface SavedSession {
|
|
26
|
+
/** Bare session identifier — the filename stem, no extension or directory. */
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/** Absolute on-disk path the session persists to. */
|
|
29
|
+
readonly path: string;
|
|
30
|
+
/** Human-facing label for the session, when one could be derived. */
|
|
31
|
+
readonly name?: string;
|
|
32
|
+
/** Last-modified wall-clock time of the file, in epoch milliseconds. */
|
|
33
|
+
readonly lastModified?: number;
|
|
34
|
+
/** Byte size of the session file on disk. */
|
|
35
|
+
readonly size?: number;
|
|
36
|
+
/** Count of conversational (user/assistant/tool) nodes in the transcript. */
|
|
37
|
+
readonly messageCount?: number;
|
|
38
|
+
/** Short single-line excerpt of the opening turn, for at-a-glance recognition. */
|
|
39
|
+
readonly preview?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One row in the flattened view of a loaded transcript tree.
|
|
43
|
+
*
|
|
44
|
+
* The conductor stores a branchable tree of nodes; a navigator wants a single
|
|
45
|
+
* ordered list it can render and select against. Each {@link BranchNode} names
|
|
46
|
+
* its `id`, its `parent` link (so a caller can still reconstruct the tree),
|
|
47
|
+
* a render-ready `label`, the indentation `depth` from the root, and two flags:
|
|
48
|
+
* `isLeaf` for a tip of the tree and `isCurrent` for the node the active head
|
|
49
|
+
* points at.
|
|
50
|
+
*/
|
|
51
|
+
export interface BranchNode {
|
|
52
|
+
/** Stable id of the underlying transcript node. */
|
|
53
|
+
readonly id: string;
|
|
54
|
+
/** Parent node id, or `null` for a transcript root. */
|
|
55
|
+
readonly parent: string | null;
|
|
56
|
+
/** Render-ready, depth-indented one-line label. */
|
|
57
|
+
readonly label: string;
|
|
58
|
+
/** Distance from the root (a root is depth 0). */
|
|
59
|
+
readonly depth: number;
|
|
60
|
+
/** True when this node has no children — a tip of the tree. */
|
|
61
|
+
readonly isLeaf: boolean;
|
|
62
|
+
/** True when the active head currently points at this node. */
|
|
63
|
+
readonly isCurrent: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A past user turn offered as a fork point.
|
|
67
|
+
*
|
|
68
|
+
* To re-ask or re-edit an earlier prompt, a caller picks one of these and the
|
|
69
|
+
* conductor branches the transcript at `entryId`. `text` is the full prompt
|
|
70
|
+
* text; `preview` is the trimmed single-line form a picker renders.
|
|
71
|
+
*/
|
|
72
|
+
export interface PriorTurn {
|
|
73
|
+
/** Id of the transcript node this user turn lives on (the fork target). */
|
|
74
|
+
readonly entryId: string;
|
|
75
|
+
/** Full text of the user prompt. */
|
|
76
|
+
readonly text: string;
|
|
77
|
+
/** Trimmed single-line excerpt of {@link text}, for display. */
|
|
78
|
+
readonly preview: string;
|
|
79
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sessions subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Exposes the {@link SessionLibrary} (the catalog-and-navigation layer over the
|
|
5
|
+
* conductor's persisted transcripts) and its value contract — the
|
|
6
|
+
* {@link SavedSession} catalog row, the {@link BranchNode} navigator row, and
|
|
7
|
+
* the {@link PriorTurn} fork candidate. Consumers import the session-library
|
|
8
|
+
* surface from `src/sessions` rather than reaching into the individual modules.
|
|
9
|
+
*/
|
|
10
|
+
export type { SavedSession, BranchNode, PriorTurn } from "./contract";
|
|
11
|
+
export { SessionLibrary, type SessionLibraryOptions } from "./library";
|