indusagi-coding-agent 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19250 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conductor contract — the FROZEN type surface of Phase 2 (agent runtime core).
|
|
3
|
+
*
|
|
4
|
+
* This module is the single typed seam between the coding-agent *product* (the
|
|
5
|
+
* UI/channels that drive a session) and the framework `Agent` (the raw LLM
|
|
6
|
+
* conversation loop, published by `indusagi/agent`). It declares *only* shapes
|
|
7
|
+
* plus two tiny inert helpers — no behavior, no I/O, no orchestration. Every
|
|
8
|
+
* later conductor module (the signal hub, the transcript store, the model
|
|
9
|
+
* catalog/matcher, the credential vault, the conductor factory, and the
|
|
10
|
+
* `SessionConductor` itself) is written against the names declared here, so the
|
|
11
|
+
* file is intentionally small, append-mostly, and stable.
|
|
12
|
+
*
|
|
13
|
+
* Design stance:
|
|
14
|
+
* - The conductor *wraps* the framework `Agent`. The framework emits a
|
|
15
|
+
* fine-grained `AgentEvent` stream for its own loop; the conductor consumes
|
|
16
|
+
* that internally and **re-emits a distinct, product-level
|
|
17
|
+
* {@link SessionSignal} stream** to consumers. The two are deliberately not
|
|
18
|
+
* the same union: `SessionSignal` is the stable surface the app renders,
|
|
19
|
+
* free to evolve independently of the framework's loop events.
|
|
20
|
+
* - Faults are **typed discriminated values** ({@link ConductorFault}), never
|
|
21
|
+
* string sentinels. A consumer switches on `fault.kind`, not on substring
|
|
22
|
+
* matching of a message.
|
|
23
|
+
* - Persistence uses a **fresh on-disk vocabulary** ({@link TranscriptEntry},
|
|
24
|
+
* {@link SessionHead}, {@link TRANSCRIPT_SCHEMA}). The node is a `parent`-linked
|
|
25
|
+
* tree, the version is a namespaced string, and the field names are the
|
|
26
|
+
* conductor's own — not the framework's session-manager schema.
|
|
27
|
+
* - State is exposed as an **immutable snapshot** ({@link ConductorState});
|
|
28
|
+
* consumers read it, they never mutate it.
|
|
29
|
+
*
|
|
30
|
+
* Framework anchors (all from the `indusagi` package — the sibling rebuilt
|
|
31
|
+
* framework this app targets):
|
|
32
|
+
* - `AgentMessage`, `ThinkingLevel`, `AgentTool` ← `indusagi/agent`
|
|
33
|
+
* - `Model`, `Usage`, `KnownProvider` ← `indusagi/ai`
|
|
34
|
+
*
|
|
35
|
+
* The conductor never re-declares these; it composes them.
|
|
36
|
+
*/
|
|
37
|
+
import type { AgentMessage, AgentTool, ThinkingLevel } from "indusagi/agent";
|
|
38
|
+
import type { KnownProvider, Model, Usage } from "indusagi/ai";
|
|
39
|
+
/** Re-exported framework vocabulary that conductor consumers routinely need. */
|
|
40
|
+
export type { AgentMessage, AgentTool, ThinkingLevel, Model, Usage, KnownProvider };
|
|
41
|
+
/**
|
|
42
|
+
* The closed set of failure categories the conductor can surface.
|
|
43
|
+
*
|
|
44
|
+
* Each is a distinct recovery story, so the kind is a discriminant — not a
|
|
45
|
+
* free-form string:
|
|
46
|
+
* - `model` — the LLM call itself failed (transport, provider, decode).
|
|
47
|
+
* - `tool` — a tool invocation threw or returned a hard error.
|
|
48
|
+
* - `persistence` — writing/reading the on-disk transcript failed.
|
|
49
|
+
* - `aborted` — the caller cancelled the in-flight turn via {@link SessionConductor.abort}.
|
|
50
|
+
* - `overflow` — the context window was exceeded and could not be condensed.
|
|
51
|
+
*/
|
|
52
|
+
export type FaultKind = "model" | "tool" | "persistence" | "aborted" | "overflow";
|
|
53
|
+
/**
|
|
54
|
+
* A typed, discriminated failure value emitted on the {@link SessionSignal}
|
|
55
|
+
* stream and attached to faulted states.
|
|
56
|
+
*
|
|
57
|
+
* The `kind` selects the category; `message` is a human-readable summary; the
|
|
58
|
+
* optional `cause` carries the underlying error (or any structured detail) for
|
|
59
|
+
* logging without forcing consumers to parse the message string.
|
|
60
|
+
*/
|
|
61
|
+
export interface ConductorFault {
|
|
62
|
+
/** Failure category — the discriminant consumers switch on. */
|
|
63
|
+
readonly kind: FaultKind;
|
|
64
|
+
/** Human-readable, single-line summary of what went wrong. */
|
|
65
|
+
readonly message: string;
|
|
66
|
+
/** Underlying error or structured detail, if any. */
|
|
67
|
+
readonly cause?: unknown;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Construct a {@link ConductorFault}. The single sanctioned way to mint a fault,
|
|
71
|
+
* so the shape stays uniform across every producer.
|
|
72
|
+
*
|
|
73
|
+
* @param kind the failure category
|
|
74
|
+
* @param message a human-readable, single-line summary
|
|
75
|
+
* @param cause optional underlying error or structured detail
|
|
76
|
+
*/
|
|
77
|
+
export declare function conductorFault(kind: FaultKind, message: string, cause?: unknown): ConductorFault;
|
|
78
|
+
/**
|
|
79
|
+
* The product-level event stream the conductor emits to its consumers (the
|
|
80
|
+
* interactive UI, the print/JSON mode, the JSON-RPC link).
|
|
81
|
+
*
|
|
82
|
+
* This is the conductor's **re-emitted surface** — distinct from the framework
|
|
83
|
+
* `AgentEvent` union. The conductor subscribes to the raw framework loop,
|
|
84
|
+
* layers persistence / auto-condense / fault handling on top, and projects the
|
|
85
|
+
* result down to this small, stable set of discriminated signals. Consumers
|
|
86
|
+
* switch on `kind` and never see a framework loop event directly.
|
|
87
|
+
*
|
|
88
|
+
* - `prompt` — the user's turn was committed to the conversation; `text`
|
|
89
|
+
* is the submitted prompt. Emitted the instant the turn is
|
|
90
|
+
* accepted (before the model replies) so a UI can echo the
|
|
91
|
+
* user message immediately rather than waiting for the first
|
|
92
|
+
* assistant token.
|
|
93
|
+
* - `text` — a chunk of assistant answer text streamed in.
|
|
94
|
+
* - `thinking` — a chunk of reasoning/thinking text streamed in.
|
|
95
|
+
* - `tool_start`— a tool invocation began (correlate by `id`).
|
|
96
|
+
* - `tool_end` — a tool invocation finished (`ok` = no error).
|
|
97
|
+
* - `turn_end` — the assistant turn settled; `usage` reports token spend.
|
|
98
|
+
* - `persisted` — the latest node was committed to the transcript (`entryId`).
|
|
99
|
+
* - `compacted` — the transcript was condensed to fit the context window.
|
|
100
|
+
* - `fault` — a typed {@link ConductorFault} occurred.
|
|
101
|
+
* - `queue` — the pending-input queue changed; `count` is its new depth.
|
|
102
|
+
* - `idle` — the conductor has no in-flight work and is ready for input.
|
|
103
|
+
*/
|
|
104
|
+
export type SessionSignal = {
|
|
105
|
+
readonly kind: "prompt";
|
|
106
|
+
readonly text: string;
|
|
107
|
+
} | {
|
|
108
|
+
readonly kind: "text";
|
|
109
|
+
readonly delta: string;
|
|
110
|
+
} | {
|
|
111
|
+
readonly kind: "thinking";
|
|
112
|
+
readonly delta: string;
|
|
113
|
+
} | {
|
|
114
|
+
readonly kind: "tool_start";
|
|
115
|
+
readonly id: string;
|
|
116
|
+
readonly name: string;
|
|
117
|
+
} | {
|
|
118
|
+
readonly kind: "tool_end";
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly ok: boolean;
|
|
121
|
+
} | {
|
|
122
|
+
readonly kind: "turn_end";
|
|
123
|
+
readonly usage: Usage;
|
|
124
|
+
} | {
|
|
125
|
+
readonly kind: "persisted";
|
|
126
|
+
readonly entryId: string;
|
|
127
|
+
} | {
|
|
128
|
+
readonly kind: "compacted";
|
|
129
|
+
} | {
|
|
130
|
+
readonly kind: "fault";
|
|
131
|
+
readonly fault: ConductorFault;
|
|
132
|
+
} | {
|
|
133
|
+
readonly kind: "queue";
|
|
134
|
+
readonly count: number;
|
|
135
|
+
} | {
|
|
136
|
+
readonly kind: "idle";
|
|
137
|
+
};
|
|
138
|
+
/** The discriminant literals of {@link SessionSignal}, for filtering/logging. */
|
|
139
|
+
export type SignalKind = SessionSignal["kind"];
|
|
140
|
+
/** Extract a single member of {@link SessionSignal} by its `kind`. */
|
|
141
|
+
export type SignalOf<K extends SignalKind> = Extract<SessionSignal, {
|
|
142
|
+
kind: K;
|
|
143
|
+
}>;
|
|
144
|
+
/** A subscriber callback registered with {@link SessionConductor.subscribe}. */
|
|
145
|
+
export type SignalHandler = (signal: SessionSignal) => void;
|
|
146
|
+
/**
|
|
147
|
+
* The on-disk transcript schema namespace + version.
|
|
148
|
+
*
|
|
149
|
+
* A namespaced string (not a bare integer) so the format is self-describing and
|
|
150
|
+
* can evolve without colliding with any other versioned artifact in the app.
|
|
151
|
+
* This is deliberately the conductor's own vocabulary.
|
|
152
|
+
*/
|
|
153
|
+
export declare const TRANSCRIPT_SCHEMA: "indus/transcript@1";
|
|
154
|
+
/** The literal type of {@link TRANSCRIPT_SCHEMA}. */
|
|
155
|
+
export type TranscriptSchema = typeof TRANSCRIPT_SCHEMA;
|
|
156
|
+
/**
|
|
157
|
+
* The conversational role a {@link TranscriptEntry} node carries.
|
|
158
|
+
*
|
|
159
|
+
* Spans both the LLM-facing turns (`user`/`assistant`/`tool`) and the
|
|
160
|
+
* conductor's own bookkeeping nodes (`system` seed, `condense` markers, and
|
|
161
|
+
* `note` for app-injected context). Kept open at the product layer so the
|
|
162
|
+
* transcript can hold more than the framework's message roles.
|
|
163
|
+
*/
|
|
164
|
+
export type TranscriptRole = "user" | "assistant" | "tool" | "system" | "condense" | "note";
|
|
165
|
+
/**
|
|
166
|
+
* A single node in the on-disk transcript tree.
|
|
167
|
+
*
|
|
168
|
+
* The transcript is an append-only **tree**: every node names its `parent`
|
|
169
|
+
* (a root has `parent: null`), and the active leaf is tracked separately in
|
|
170
|
+
* {@link SessionHead}. Branching is moving the head to an earlier node; the next
|
|
171
|
+
* append becomes that node's child. `content` holds the framework
|
|
172
|
+
* {@link AgentMessage} payload so the node round-trips back into the agent loop;
|
|
173
|
+
* `meta` carries optional, non-LLM annotations (labels, condense bookkeeping,
|
|
174
|
+
* model/reasoning markers).
|
|
175
|
+
*
|
|
176
|
+
* Field names are the conductor's own (`parent`, `createdAt`, `meta`) — not the
|
|
177
|
+
* framework's persistence schema.
|
|
178
|
+
*/
|
|
179
|
+
export interface TranscriptEntry {
|
|
180
|
+
/** Stable unique node id (e.g. a ULID). */
|
|
181
|
+
readonly id: string;
|
|
182
|
+
/** Parent node id, or `null` for the transcript root. */
|
|
183
|
+
readonly parent: string | null;
|
|
184
|
+
/** Conversational role of this node. */
|
|
185
|
+
readonly role: TranscriptRole;
|
|
186
|
+
/** The framework message payload this node persists. */
|
|
187
|
+
readonly content: AgentMessage;
|
|
188
|
+
/** ISO-8601 creation timestamp. */
|
|
189
|
+
readonly createdAt: string;
|
|
190
|
+
/** Optional, non-LLM annotations keyed by name. */
|
|
191
|
+
readonly meta?: Readonly<Record<string, unknown>>;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The head record of a persisted transcript: which session, and where its
|
|
195
|
+
* active leaf currently points.
|
|
196
|
+
*
|
|
197
|
+
* The `leaf` is the id of the most recently appended (or branched-to) node;
|
|
198
|
+
* walking `parent` links from `leaf` to a root reconstructs the active branch.
|
|
199
|
+
* `null` means an empty transcript (no nodes yet).
|
|
200
|
+
*/
|
|
201
|
+
export interface SessionHead {
|
|
202
|
+
/** Stable identifier of the session this transcript belongs to. */
|
|
203
|
+
readonly sessionId: string;
|
|
204
|
+
/** Id of the active leaf node, or `null` for an empty transcript. */
|
|
205
|
+
readonly leaf: string | null;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* A lightweight, resolved reference to one model card in the catalog.
|
|
209
|
+
*
|
|
210
|
+
* This is the *display/identity* projection of a framework {@link Model} — the
|
|
211
|
+
* minimum a UI needs to list, label, and select a model without holding the
|
|
212
|
+
* full model object. The matcher produces these; the conductor resolves the
|
|
213
|
+
* chosen one back to a full `Model` when it configures the agent.
|
|
214
|
+
*/
|
|
215
|
+
export interface ModelCardRef {
|
|
216
|
+
/** Canonical `"provider/modelId"` identifier (the catalog key). */
|
|
217
|
+
readonly id: string;
|
|
218
|
+
/** Owning provider. */
|
|
219
|
+
readonly provider: KnownProvider | string;
|
|
220
|
+
/** Provider-scoped model id (e.g. `"claude-sonnet-4"`). */
|
|
221
|
+
readonly modelId: string;
|
|
222
|
+
/** Human-readable display name. */
|
|
223
|
+
readonly name: string;
|
|
224
|
+
/** Whether this model exposes a reasoning/thinking budget. */
|
|
225
|
+
readonly reasoning: boolean;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* A query against the model catalog/matcher.
|
|
229
|
+
*
|
|
230
|
+
* Resolution is a prioritized candidate pipeline: an explicit `provider`+`modelId`
|
|
231
|
+
* pins a single card; otherwise `pattern` is matched (exact id, `provider/`
|
|
232
|
+
* prefix, then glob/fuzzy) and narrowed by the optional capability filters.
|
|
233
|
+
* All fields are optional so an empty query means "the default candidate".
|
|
234
|
+
*/
|
|
235
|
+
export interface MatchQuery {
|
|
236
|
+
/** Free-form selector: an id, an alias, or a glob pattern. */
|
|
237
|
+
readonly pattern?: string;
|
|
238
|
+
/** Restrict candidates to this provider. */
|
|
239
|
+
readonly provider?: KnownProvider | string;
|
|
240
|
+
/** Pin a specific provider-scoped model id (used with {@link provider}). */
|
|
241
|
+
readonly modelId?: string;
|
|
242
|
+
/** Require reasoning/thinking support. */
|
|
243
|
+
readonly reasoning?: boolean;
|
|
244
|
+
/** Require image input support. */
|
|
245
|
+
readonly supportsImageInput?: boolean;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* The coarse lifecycle phase of the conductor at a point in time.
|
|
249
|
+
*
|
|
250
|
+
* - `idle` — assembled and ready; no turn in flight.
|
|
251
|
+
* - `streaming` — an assistant turn is producing text/thinking.
|
|
252
|
+
* - `tooling` — a tool invocation is executing mid-turn.
|
|
253
|
+
* - `condensing` — the transcript is being condensed to fit the window.
|
|
254
|
+
* - `faulted` — the last turn ended in a {@link ConductorFault}.
|
|
255
|
+
*/
|
|
256
|
+
export type ConductorPhase = "idle" | "streaming" | "tooling" | "condensing" | "faulted";
|
|
257
|
+
/**
|
|
258
|
+
* An immutable snapshot of the conductor's observable state.
|
|
259
|
+
*
|
|
260
|
+
* Returned by {@link SessionConductor.snapshot} and resolved by
|
|
261
|
+
* {@link SessionConductor.submit}. It is a value, not a live view: every field
|
|
262
|
+
* is read-only and the object reflects the instant it was taken. Re-read with a
|
|
263
|
+
* fresh `snapshot()` to observe later changes.
|
|
264
|
+
*/
|
|
265
|
+
export interface ConductorState {
|
|
266
|
+
/** Coarse lifecycle phase at snapshot time. */
|
|
267
|
+
readonly phase: ConductorPhase;
|
|
268
|
+
/** The active transcript head (session id + current leaf). */
|
|
269
|
+
readonly head: SessionHead;
|
|
270
|
+
/** Cumulative token/cost spend across the session so far. */
|
|
271
|
+
readonly usage: Usage;
|
|
272
|
+
/** Canonical id of the model currently bound to the session. */
|
|
273
|
+
readonly modelId: string;
|
|
274
|
+
/** The fault from the most recent turn, when {@link phase} is `"faulted"`. */
|
|
275
|
+
readonly fault?: ConductorFault;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* How a queued input rejoins the conversation once the active turn settles.
|
|
279
|
+
*
|
|
280
|
+
* - `steer` — interrupt-style input meant to redirect the agent; drained
|
|
281
|
+
* ahead of plain follow-ups.
|
|
282
|
+
* - `followUp` — input that simply waits its turn after the current one ends.
|
|
283
|
+
*
|
|
284
|
+
* The conductor enqueues input under one of these modes when {@link SessionConductor.submit}
|
|
285
|
+
* is called while a turn is in flight, then drains the queue in order.
|
|
286
|
+
*/
|
|
287
|
+
export type QueueMode = "steer" | "followUp";
|
|
288
|
+
/**
|
|
289
|
+
* One entry in the conductor's pending-input queue: the {@link QueueMode} it was
|
|
290
|
+
* filed under and the raw user `text`. Surfaced by
|
|
291
|
+
* {@link SessionConductor.pendingInputs} so a UI can render what is waiting.
|
|
292
|
+
*/
|
|
293
|
+
export interface QueuedInput {
|
|
294
|
+
/** How this input will rejoin the conversation when drained. */
|
|
295
|
+
readonly mode: QueueMode;
|
|
296
|
+
/** The raw user message text held for a later turn. */
|
|
297
|
+
readonly text: string;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* A point-in-time tally of the active session: message counts by role, tool
|
|
301
|
+
* activity, cumulative token spend, and total cost. Computed by
|
|
302
|
+
* {@link SessionConductor.stats} from the live message list plus the running
|
|
303
|
+
* usage carried on {@link ConductorState}.
|
|
304
|
+
*/
|
|
305
|
+
export interface SessionStats {
|
|
306
|
+
/** Identifier of the session these figures describe. */
|
|
307
|
+
readonly sessionId: string;
|
|
308
|
+
/** Number of user-role messages in the active branch. */
|
|
309
|
+
readonly userMessages: number;
|
|
310
|
+
/** Number of assistant-role messages in the active branch. */
|
|
311
|
+
readonly assistantMessages: number;
|
|
312
|
+
/** Number of tool invocations the assistant issued. */
|
|
313
|
+
readonly toolCalls: number;
|
|
314
|
+
/** Number of tool-result messages produced in reply. */
|
|
315
|
+
readonly toolResults: number;
|
|
316
|
+
/** Total message count across all roles. */
|
|
317
|
+
readonly totalMessages: number;
|
|
318
|
+
/** Cumulative token spend, broken out by category and totalled. */
|
|
319
|
+
readonly tokens: {
|
|
320
|
+
readonly input: number;
|
|
321
|
+
readonly output: number;
|
|
322
|
+
readonly cacheRead: number;
|
|
323
|
+
readonly cacheWrite: number;
|
|
324
|
+
readonly total: number;
|
|
325
|
+
};
|
|
326
|
+
/** Cumulative monetary cost of the session so far. */
|
|
327
|
+
readonly cost: number;
|
|
328
|
+
}
|
|
329
|
+
/** Options for {@link SessionConductor.executeBash}. */
|
|
330
|
+
export interface ExecuteBashOptions {
|
|
331
|
+
/**
|
|
332
|
+
* When `true`, the command's output is *not* recorded as a transcript note,
|
|
333
|
+
* so it never re-enters the agent's context. Defaults to `false`.
|
|
334
|
+
*/
|
|
335
|
+
readonly excludeFromContext?: boolean;
|
|
336
|
+
}
|
|
337
|
+
/** The settled result of {@link SessionConductor.executeBash}. */
|
|
338
|
+
export interface BashOutcome {
|
|
339
|
+
/** Combined stdout + stderr of the command. */
|
|
340
|
+
readonly output: string;
|
|
341
|
+
/** Process exit code (`0` on success; non-zero, or `1` on a thrown error). */
|
|
342
|
+
readonly exitCode: number;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Options that configure a {@link SessionConductor} at assembly time.
|
|
346
|
+
*
|
|
347
|
+
* Only {@link modelId} is required; everything else has a sensible default
|
|
348
|
+
* resolved by the conductor factory. The shape is intentionally small — richer
|
|
349
|
+
* wiring (MCP, memory, provider routing) is attached by the factory, not passed
|
|
350
|
+
* through this surface.
|
|
351
|
+
*/
|
|
352
|
+
export interface SessionConductorOptions {
|
|
353
|
+
/** Canonical id of the model to bind the session to. */
|
|
354
|
+
readonly modelId: string;
|
|
355
|
+
/** Initial system prompt seeding the conversation. */
|
|
356
|
+
readonly system?: string;
|
|
357
|
+
/** Tools made available to the agent for this session. */
|
|
358
|
+
readonly tools?: AgentTool[];
|
|
359
|
+
/** Initial reasoning effort for models that support it. */
|
|
360
|
+
readonly thinking?: ThinkingLevel;
|
|
361
|
+
/** Working directory the session is scoped to (defaults to process cwd). */
|
|
362
|
+
readonly workspace?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Directory to persist the transcript into. When set, the conductor backs its
|
|
365
|
+
* {@link TranscriptStore} with a filesystem backend rooted here (one
|
|
366
|
+
* `<sessionId>.ndjson` per session) so the conversation survives the process
|
|
367
|
+
* and can be resumed. Absent (or when a `store` dep is injected) keeps the
|
|
368
|
+
* default in-memory store — nothing is written to disk.
|
|
369
|
+
*/
|
|
370
|
+
readonly sessionsDir?: string;
|
|
371
|
+
/** Condense the transcript automatically when it nears the window (default on). */
|
|
372
|
+
readonly autoCompact?: boolean;
|
|
373
|
+
/**
|
|
374
|
+
* Resolve the credential for a provider on each call. Threaded to the framework
|
|
375
|
+
* `Agent`, which calls it per request so short-lived OAuth access tokens (e.g.
|
|
376
|
+
* `openai-codex`) can be refreshed and providers with no env-var mapping still
|
|
377
|
+
* authenticate. Returning `undefined` lets the framework fall back to its own
|
|
378
|
+
* environment lookup. May be sync or async.
|
|
379
|
+
*/
|
|
380
|
+
readonly getApiKey?: (provider: string) => Promise<string | undefined> | string | undefined;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* The conductor of a single coding-agent session.
|
|
384
|
+
*
|
|
385
|
+
* It owns the framework `Agent`, threads persistence and auto-condense through
|
|
386
|
+
* the turn loop, and exposes a small product API: submit input, subscribe to
|
|
387
|
+
* the {@link SessionSignal} stream, abort the in-flight turn, read an immutable
|
|
388
|
+
* {@link ConductorState} snapshot, resume a persisted session, and optionally
|
|
389
|
+
* rotate the active model. This is the surface all three run modes drive.
|
|
390
|
+
*/
|
|
391
|
+
export interface SessionConductor {
|
|
392
|
+
/**
|
|
393
|
+
* Submit user input as a new turn and run the agent to settle.
|
|
394
|
+
*
|
|
395
|
+
* Streams {@link SessionSignal}s to subscribers as the turn progresses and
|
|
396
|
+
* resolves to the immutable {@link ConductorState} once the turn settles
|
|
397
|
+
* (success or fault).
|
|
398
|
+
*
|
|
399
|
+
* When a turn is already in flight the input is **not** dropped: it is handed
|
|
400
|
+
* to {@link enqueue} and run automatically as a later turn once the current one
|
|
401
|
+
* settles. In that case `submit` resolves immediately with the current
|
|
402
|
+
* snapshot rather than waiting for the queued turn.
|
|
403
|
+
*
|
|
404
|
+
* @param input the user message text for this turn
|
|
405
|
+
*/
|
|
406
|
+
submit(input: string): Promise<ConductorState>;
|
|
407
|
+
/**
|
|
408
|
+
* Queue an input to run as a future turn. Used directly, or reached via
|
|
409
|
+
* {@link submit} when the conductor is busy. Queued items drain in order after
|
|
410
|
+
* the active turn settles, each running as its own turn. Emits a
|
|
411
|
+
* `{ kind: "queue" }` signal so a UI can reflect the new depth.
|
|
412
|
+
*
|
|
413
|
+
* @param input the user message text to hold for a later turn
|
|
414
|
+
* @param mode how it rejoins the conversation when drained (default `"followUp"`)
|
|
415
|
+
*/
|
|
416
|
+
enqueue(input: string, mode?: QueueMode): void;
|
|
417
|
+
/** How many inputs are currently waiting in the pending-input queue. */
|
|
418
|
+
pendingCount(): number;
|
|
419
|
+
/** A read-only view of the queued inputs, oldest first. */
|
|
420
|
+
pendingInputs(): readonly QueuedInput[];
|
|
421
|
+
/** Discard every queued input. Emits a `{ kind: "queue" }` signal. */
|
|
422
|
+
clearQueue(): void;
|
|
423
|
+
/**
|
|
424
|
+
* Remove and return the text of the most-recently queued input, or `undefined`
|
|
425
|
+
* when the queue is empty. Lets a UI pop the last entry back into its prompt.
|
|
426
|
+
*/
|
|
427
|
+
dequeueLast(): string | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* The live transcript messages for the active branch.
|
|
430
|
+
*
|
|
431
|
+
* A read-through onto the wrapped agent's running message list — what the
|
|
432
|
+
* interactive UI renders as the conversation. The returned array is the
|
|
433
|
+
* current contents at call time; re-read to observe later turns.
|
|
434
|
+
*/
|
|
435
|
+
messages(): readonly AgentMessage[];
|
|
436
|
+
/**
|
|
437
|
+
* The full framework {@link Model} object currently bound to the session, or
|
|
438
|
+
* `undefined` when none could be resolved. Tracks the active selection across
|
|
439
|
+
* {@link selectModel}/{@link cycleModel} changes.
|
|
440
|
+
*/
|
|
441
|
+
model(): Model<any> | undefined;
|
|
442
|
+
/** Whether a turn is currently in flight (guards re-entrant submit). */
|
|
443
|
+
isBusy(): boolean;
|
|
444
|
+
/**
|
|
445
|
+
* The model catalog entries a picker lists, best-first. Derived from the
|
|
446
|
+
* configured model matcher; returns `[]` when no matcher is wired in.
|
|
447
|
+
*/
|
|
448
|
+
availableModels(): ModelCardRef[];
|
|
449
|
+
/**
|
|
450
|
+
* Bind a model by canonical id for subsequent turns. The companion of
|
|
451
|
+
* {@link cycleModel}; both route through the same selection path.
|
|
452
|
+
*
|
|
453
|
+
* @param id canonical id of the model to switch to
|
|
454
|
+
*/
|
|
455
|
+
selectModel(id: string): void;
|
|
456
|
+
/**
|
|
457
|
+
* Manually run the same transcript-condense path the auto-compactor uses,
|
|
458
|
+
* emitting the existing `compacted` signal. Safe to call when idle; a no-op
|
|
459
|
+
* when the condense hook returns the branch unchanged.
|
|
460
|
+
*/
|
|
461
|
+
condense(): Promise<void>;
|
|
462
|
+
/**
|
|
463
|
+
* Branch the transcript from a prior node. A new branch is opened whose parent
|
|
464
|
+
* is `entryId`; the agent's message list is rebound to that branch's root→leaf
|
|
465
|
+
* path. The conductor's head advances onto the chosen node.
|
|
466
|
+
*
|
|
467
|
+
* @param entryId the transcript node to branch from
|
|
468
|
+
*/
|
|
469
|
+
fork(entryId: string): Promise<void>;
|
|
470
|
+
/**
|
|
471
|
+
* Move the active leaf to `nodeId`, rebuild that branch's root→leaf path, and
|
|
472
|
+
* rebind the agent's message list to it. Used to walk between existing
|
|
473
|
+
* branches without forking a new one.
|
|
474
|
+
*
|
|
475
|
+
* @param nodeId the transcript node to make the active leaf
|
|
476
|
+
*/
|
|
477
|
+
navigateTree(nodeId: string): Promise<void>;
|
|
478
|
+
/**
|
|
479
|
+
* Run a shell command in the session workspace, returning its combined
|
|
480
|
+
* stdout+stderr and exit code. Unless `opts.excludeFromContext` is set, the
|
|
481
|
+
* output is recorded as a transcript note so it re-enters the agent's context.
|
|
482
|
+
* Never throws: a spawn/exec failure resolves to a non-zero {@link BashOutcome}.
|
|
483
|
+
*
|
|
484
|
+
* @param command the shell command to execute
|
|
485
|
+
* @param opts execution options
|
|
486
|
+
*/
|
|
487
|
+
executeBash(command: string, opts?: ExecuteBashOptions): Promise<BashOutcome>;
|
|
488
|
+
/** A point-in-time {@link SessionStats} tally for the active session. */
|
|
489
|
+
stats(): SessionStats;
|
|
490
|
+
/** The reasoning effort currently applied to the session. */
|
|
491
|
+
thinkingLevel(): ThinkingLevel;
|
|
492
|
+
/**
|
|
493
|
+
* Set the reasoning effort for subsequent turns. Applied to the agent when it
|
|
494
|
+
* exposes a setter; otherwise stored and applied on the next model bind.
|
|
495
|
+
*
|
|
496
|
+
* @param level the reasoning effort to apply
|
|
497
|
+
*/
|
|
498
|
+
setThinkingLevel(level: ThinkingLevel): void;
|
|
499
|
+
/**
|
|
500
|
+
* Advance the reasoning effort to the next level in the cycle, applying it, and
|
|
501
|
+
* return the newly-selected level.
|
|
502
|
+
*/
|
|
503
|
+
cycleThinkingLevel(): ThinkingLevel;
|
|
504
|
+
/** The human-readable session name, or `undefined` when none is set. */
|
|
505
|
+
sessionName(): string | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* Assign a human-readable name to the session.
|
|
508
|
+
*
|
|
509
|
+
* @param name the display name to store
|
|
510
|
+
*/
|
|
511
|
+
setSessionName(name: string): void;
|
|
512
|
+
/**
|
|
513
|
+
* Register a handler for the {@link SessionSignal} stream.
|
|
514
|
+
*
|
|
515
|
+
* @param handler invoked for every emitted signal
|
|
516
|
+
* @returns an unsubscribe function that removes the handler
|
|
517
|
+
*/
|
|
518
|
+
subscribe(handler: SignalHandler): () => void;
|
|
519
|
+
/** Cancel the in-flight turn, if any; emits an `aborted` fault signal. */
|
|
520
|
+
abort(): void;
|
|
521
|
+
/** Read an immutable snapshot of the current {@link ConductorState}. */
|
|
522
|
+
snapshot(): ConductorState;
|
|
523
|
+
/**
|
|
524
|
+
* Restore a previously persisted session, replacing the current transcript
|
|
525
|
+
* and rebinding the agent to the restored model/leaf.
|
|
526
|
+
*
|
|
527
|
+
* @param sessionId the persisted session to resume
|
|
528
|
+
*/
|
|
529
|
+
resume(sessionId: string): Promise<void>;
|
|
530
|
+
/**
|
|
531
|
+
* Abandon the current conversation and start a fresh, empty session.
|
|
532
|
+
*
|
|
533
|
+
* Drops the agent's message history, opens a new session id (so later turns
|
|
534
|
+
* persist separately, leaving the prior transcript intact on disk), zeroes the
|
|
535
|
+
* usage tally, clears the pending-input queue and session name, and settles to
|
|
536
|
+
* `idle`. Emits an `idle` signal so a subscribed UI re-renders the now-empty
|
|
537
|
+
* conversation. This is what `/clear` (and `/new`) drive.
|
|
538
|
+
*/
|
|
539
|
+
newSession(): Promise<void>;
|
|
540
|
+
/**
|
|
541
|
+
* Rotate the active model for subsequent turns. Optional: not every assembly
|
|
542
|
+
* supports mid-session model changes.
|
|
543
|
+
*
|
|
544
|
+
* @param id canonical id of the model to switch to
|
|
545
|
+
*/
|
|
546
|
+
cycleModel?(id: string): void;
|
|
547
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conductor subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the FROZEN Phase-2 contract: the product-level signal stream
|
|
5
|
+
* ({@link SessionSignal}), the typed fault model ({@link ConductorFault} +
|
|
6
|
+
* {@link conductorFault}), the on-disk transcript schema ({@link TranscriptEntry},
|
|
7
|
+
* {@link SessionHead}, {@link TRANSCRIPT_SCHEMA}), the model catalog/matcher
|
|
8
|
+
* reference types ({@link ModelCardRef}, {@link MatchQuery}), the immutable
|
|
9
|
+
* state snapshot ({@link ConductorState}), and the {@link SessionConductor}
|
|
10
|
+
* interface plus its {@link SessionConductorOptions}.
|
|
11
|
+
*
|
|
12
|
+
* Behavior modules (signal hub, transcript store, model catalog/matcher,
|
|
13
|
+
* conductor factory, the conductor itself) are added to this barrel as they
|
|
14
|
+
* land; consumers import the conductor surface from `src/conductor` rather than
|
|
15
|
+
* reaching into individual modules.
|
|
16
|
+
*/
|
|
17
|
+
export type { FaultKind, ConductorFault, SessionSignal, SignalKind, SignalOf, SignalHandler, TranscriptSchema, TranscriptRole, TranscriptEntry, SessionHead, ModelCardRef, MatchQuery, ConductorPhase, ConductorState, QueueMode, QueuedInput, SessionStats, ExecuteBashOptions, BashOutcome, SessionConductor, SessionConductorOptions, AgentMessage, AgentTool, ThinkingLevel, Model, Usage, KnownProvider, } from "./contract";
|
|
18
|
+
export { conductorFault, TRANSCRIPT_SCHEMA } from "./contract";
|
|
19
|
+
export { createSessionConductor, reduceState, noopCondense, type AgentLike, type ConductorDeps, type CondenseFn, type RetryPolicy, } from "./conductor";
|
|
20
|
+
export { SignalHub, translateAgentEvent, type SignalHubOptions } from "./signal-hub";
|
|
21
|
+
export { ModelCatalog, ModelMatcher, canonicalId, toCardRef, type CatalogCard, type CatalogSource, type ResolveInput, } from "./catalog";
|
|
22
|
+
export { TranscriptStore, memoryBackend, fsBackend, replay, type TranscriptBackend, type TranscriptState, type TranscriptClock, type TranscriptStoreOptions, } from "./transcript-store";
|
|
23
|
+
export { parseSkillInvocation, type SkillInvocation } from "./skill-parse";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SignalHub — the conductor's product-event fan-out.
|
|
3
|
+
*
|
|
4
|
+
* A tiny, synchronous publish/subscribe bus over the {@link SessionSignal}
|
|
5
|
+
* stream. The conductor owns one hub per session: behavior modules (the turn
|
|
6
|
+
* loop, the persistence layer, the auto-condense pass) push signals in via
|
|
7
|
+
* {@link SignalHub.emit}, and every registered consumer handler receives them in
|
|
8
|
+
* registration order.
|
|
9
|
+
*
|
|
10
|
+
* Design (deliberately the conductor's own, not the framework's loop emitter):
|
|
11
|
+
* - Handlers live in an insertion-ordered `Set`, so registration order is the
|
|
12
|
+
* delivery order and duplicate handler identities collapse to one slot.
|
|
13
|
+
* - {@link SignalHub.subscribe} returns an unsubscribe thunk; calling it (even
|
|
14
|
+
* during a dispatch, even more than once) is safe and idempotent.
|
|
15
|
+
* - {@link SignalHub.emit} fans out over a *snapshot* of the handler set, so a
|
|
16
|
+
* handler that subscribes or unsubscribes mid-dispatch never corrupts the
|
|
17
|
+
* in-progress iteration — the change takes effect on the next emit.
|
|
18
|
+
* - A throwing handler is isolated: its error is routed to the optional
|
|
19
|
+
* {@link SignalHubOptions.onHandlerError} sink and the remaining handlers
|
|
20
|
+
* still run. One bad consumer never silences the others.
|
|
21
|
+
*
|
|
22
|
+
* The hub is transport-agnostic: it knows nothing about the framework `Agent`,
|
|
23
|
+
* persistence, or how signals are produced. The {@link module:translate}
|
|
24
|
+
* translator is what turns raw framework events into the {@link SessionSignal}s
|
|
25
|
+
* that flow through here.
|
|
26
|
+
*/
|
|
27
|
+
import type { SessionSignal, SignalHandler } from "../contract";
|
|
28
|
+
/** Tuning hooks for a {@link SignalHub}. All optional. */
|
|
29
|
+
export interface SignalHubOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Invoked when a subscribed handler throws during {@link SignalHub.emit}.
|
|
32
|
+
*
|
|
33
|
+
* Lets the owner observe/log faults in consumer code without aborting the
|
|
34
|
+
* fan-out. If omitted, handler errors are swallowed so a misbehaving consumer
|
|
35
|
+
* cannot break signal delivery to the others. This sink is itself guarded —
|
|
36
|
+
* if it throws, the throw is ignored.
|
|
37
|
+
*
|
|
38
|
+
* @param error the value the handler threw
|
|
39
|
+
* @param signal the signal that was being delivered when it threw
|
|
40
|
+
*/
|
|
41
|
+
readonly onHandlerError?: (error: unknown, signal: SessionSignal) => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A synchronous fan-out bus for {@link SessionSignal}s.
|
|
45
|
+
*
|
|
46
|
+
* Construct one per session; subscribe consumers; emit signals. Not a framework
|
|
47
|
+
* type and not wired to one — purely the conductor's own event surface.
|
|
48
|
+
*/
|
|
49
|
+
export declare class SignalHub {
|
|
50
|
+
/** Insertion-ordered live set of subscribed handlers. */
|
|
51
|
+
private readonly handlers;
|
|
52
|
+
private readonly onHandlerError?;
|
|
53
|
+
constructor(options?: SignalHubOptions);
|
|
54
|
+
/**
|
|
55
|
+
* Register a handler to receive every subsequently emitted signal.
|
|
56
|
+
*
|
|
57
|
+
* Registering the same function reference twice is a no-op (the `Set`
|
|
58
|
+
* collapses it). The returned thunk removes the handler; it is idempotent and
|
|
59
|
+
* safe to call during a dispatch.
|
|
60
|
+
*
|
|
61
|
+
* @param handler the consumer callback
|
|
62
|
+
* @returns an unsubscribe function
|
|
63
|
+
*/
|
|
64
|
+
subscribe(handler: SignalHandler): () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Fan a signal out to every currently-subscribed handler, in registration
|
|
67
|
+
* order.
|
|
68
|
+
*
|
|
69
|
+
* Iterates a snapshot of the handler set, so subscribe/unsubscribe performed
|
|
70
|
+
* by a handler mid-dispatch affects only later emits. A throwing handler is
|
|
71
|
+
* isolated via {@link SignalHubOptions.onHandlerError}; the remaining handlers
|
|
72
|
+
* still run.
|
|
73
|
+
*
|
|
74
|
+
* @param signal the signal to deliver
|
|
75
|
+
*/
|
|
76
|
+
emit(signal: SessionSignal): void;
|
|
77
|
+
/** Number of currently-subscribed handlers. */
|
|
78
|
+
get size(): number;
|
|
79
|
+
/** Remove every handler. Subsequent {@link emit} calls deliver to no one. */
|
|
80
|
+
clear(): void;
|
|
81
|
+
/** Route a handler error to the sink, guarding the sink itself. */
|
|
82
|
+
private report;
|
|
83
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* signal-hub — the conductor's product-event hub + framework-event translator.
|
|
3
|
+
*
|
|
4
|
+
* Two cooperating pieces sitting between the framework `Agent` loop and the
|
|
5
|
+
* conductor's consumers:
|
|
6
|
+
*
|
|
7
|
+
* - {@link SignalHub} — a synchronous, insertion-ordered fan-out bus over the
|
|
8
|
+
* {@link SessionSignal} stream. Behavior modules emit into it; UI/print/RPC
|
|
9
|
+
* consumers subscribe to it.
|
|
10
|
+
* - {@link translateAgentEvent} — the pure projection that turns a single
|
|
11
|
+
* framework {@link AgentEvent} into the zero-or-more {@link SessionSignal}s
|
|
12
|
+
* that flow through the hub. {@link TRANSLATOR_TABLE} is the underlying,
|
|
13
|
+
* exhaustiveness-checked dispatch table (exported for inspection/testing).
|
|
14
|
+
*
|
|
15
|
+
* Typical wiring: subscribe the framework loop, run each raw event through
|
|
16
|
+
* `translateAgentEvent`, and `emit` the results on a `SignalHub`.
|
|
17
|
+
*/
|
|
18
|
+
export { SignalHub, type SignalHubOptions } from "./hub";
|
|
19
|
+
export { translateAgentEvent, TRANSLATOR_TABLE } from "./translate";
|