indusagi-coding-agent 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19251 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* translateAgentEvent — the framework-event → {@link SessionSignal} projector.
|
|
3
|
+
*
|
|
4
|
+
* The framework `Agent` emits a fine-grained {@link AgentEvent} stream for its
|
|
5
|
+
* own loop (lifecycle, per-turn, per-message, per-tool). The conductor does not
|
|
6
|
+
* leak that union to consumers; it projects each framework event down to zero or
|
|
7
|
+
* more *product-level* {@link SessionSignal}s, which then flow through the
|
|
8
|
+
* {@link SignalHub}. This module is that projection — and nothing else: it is a
|
|
9
|
+
* pure, side-effect-free function over a single event.
|
|
10
|
+
*
|
|
11
|
+
* Why a table, not a `switch`:
|
|
12
|
+
* - The mapping is keyed on the framework event's `type` discriminant, so it is
|
|
13
|
+
* expressed as a {@link TranslatorTable} — one entry per `AgentEventType`.
|
|
14
|
+
* The table type is `{ [K in AgentEventType]: (ev) => SessionSignal[] }`, so
|
|
15
|
+
* adding a framework event variant is a compile error until a rule exists for
|
|
16
|
+
* it. Exhaustiveness is enforced by the type system, not by a `default` arm.
|
|
17
|
+
* - Each rule receives the precisely-narrowed event member (via
|
|
18
|
+
* {@link ExtractAgentEvent}) and returns the signals it produces.
|
|
19
|
+
*
|
|
20
|
+
* Mapping rules (framework `type` → product signals):
|
|
21
|
+
* - `agent_start` / `turn_start` / `message_start` / `agent_end`
|
|
22
|
+
* → `[]` (loop bookkeeping; not product-visible)
|
|
23
|
+
* - `message_end` → one `prompt` { text } for a *user* message
|
|
24
|
+
* (the turn is now committed), one `fault` for
|
|
25
|
+
* an errored *assistant* message, else `[]`
|
|
26
|
+
* - `tool_execution_start` → one `tool_start` { id, name }
|
|
27
|
+
* - `tool_execution_update` → `[]` (partial tool progress is not surfaced)
|
|
28
|
+
* - `tool_execution_end` → one `tool_end` { id, ok: !isError }
|
|
29
|
+
* - `turn_end` → one `turn_end` { usage }
|
|
30
|
+
* - `message_update` → delegated to the inner streaming dispatch on
|
|
31
|
+
* `assistantMessageEvent.type`:
|
|
32
|
+
* · `text_delta` → one `text` { delta }
|
|
33
|
+
* · `thinking_delta` → one `thinking` { delta }
|
|
34
|
+
* · `error` → one `fault` { model fault }
|
|
35
|
+
* · everything else → `[]`
|
|
36
|
+
*
|
|
37
|
+
* Faults: a streaming `error` sub-event becomes a typed `model` fault. The
|
|
38
|
+
* conductor layers its own `aborted` / `tool` / `persistence` / `overflow`
|
|
39
|
+
* faults elsewhere; the translator only mints the one fault the framework
|
|
40
|
+
* stream actually carries.
|
|
41
|
+
*/
|
|
42
|
+
import type { AgentEvent, AgentEventType, ExtractAgentEvent } from "indusagi/agent";
|
|
43
|
+
import { type SessionSignal } from "../contract";
|
|
44
|
+
/** A rule mapping one narrowed framework event member to product signals. */
|
|
45
|
+
type TranslatorRule<TType extends AgentEventType> = (event: ExtractAgentEvent<TType>) => SessionSignal[];
|
|
46
|
+
/**
|
|
47
|
+
* The dispatch table: exactly one rule per framework {@link AgentEventType}.
|
|
48
|
+
*
|
|
49
|
+
* Declaring it as a full mapped type means the compiler rejects the module until
|
|
50
|
+
* every framework event variant has a rule — the exhaustiveness guarantee.
|
|
51
|
+
*/
|
|
52
|
+
type TranslatorTable = {
|
|
53
|
+
[K in AgentEventType]: TranslatorRule<K>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The frozen mapping from each framework event variant to product signals.
|
|
57
|
+
*
|
|
58
|
+
* Exported for testing/inspection; production code calls
|
|
59
|
+
* {@link translateAgentEvent}, which is the table applied.
|
|
60
|
+
*/
|
|
61
|
+
export declare const TRANSLATOR_TABLE: TranslatorTable;
|
|
62
|
+
/**
|
|
63
|
+
* Translate a single framework {@link AgentEvent} into the product-level
|
|
64
|
+
* {@link SessionSignal}s it produces (zero, one, or — for future fan-out — many).
|
|
65
|
+
*
|
|
66
|
+
* Pure and total: every framework event variant has a rule (enforced by
|
|
67
|
+
* {@link TranslatorTable}), so this never throws on a known event and returns
|
|
68
|
+
* `[]` for events that carry no product meaning.
|
|
69
|
+
*
|
|
70
|
+
* @param event a framework agent loop event
|
|
71
|
+
* @returns the ordered product signals derived from it
|
|
72
|
+
*/
|
|
73
|
+
export declare function translateAgentEvent(event: AgentEvent): SessionSignal[];
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill-parse subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the re-derived skill-invocation block parser: the attribute-scanning
|
|
5
|
+
* {@link parseSkillInvocation} hand parser and its structured {@link SkillInvocation}
|
|
6
|
+
* result. Consumers (the conductor's submit path) import from
|
|
7
|
+
* `src/conductor/skill-parse` rather than reaching into `parse`.
|
|
8
|
+
*/
|
|
9
|
+
export { parseSkillInvocation } from "./parse";
|
|
10
|
+
export type { SkillInvocation } from "./parse";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill-invocation block parser — an attribute-scanning hand parser.
|
|
3
|
+
*
|
|
4
|
+
* The coding agent lets a turn carry a *skill invocation*: an XML-ish opener tag
|
|
5
|
+
* that names a capability card to run, optionally locates its on-disk file, and
|
|
6
|
+
* wraps a trailing user message (the body) the skill should act on. The shape is
|
|
7
|
+
* the framework Agent-Skills convention:
|
|
8
|
+
*
|
|
9
|
+
* ```
|
|
10
|
+
* <skill name="commit-helper" location="/abs/path/SKILL.md">
|
|
11
|
+
* please tidy the staged diff and write a message
|
|
12
|
+
* </skill>
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* This module re-derives that parse from the *format spec*, deliberately NOT as
|
|
16
|
+
* one monolithic capture regex. It is a small hand-written scanner: it walks the
|
|
17
|
+
* input, finds the opener, scans `key=value` attributes one at a time (handling
|
|
18
|
+
* single- or double-quoted and bare values, with `&`/`<`/`>`/`"`/
|
|
19
|
+
* `'` entity decoding), then captures the body up to the matching close tag.
|
|
20
|
+
* Reading attributes incrementally — rather than matching the whole block in a
|
|
21
|
+
* single pattern — is what makes this an independent implementation and lets the
|
|
22
|
+
* parser keep *every* attribute the author wrote, not just a fixed `name`/
|
|
23
|
+
* `location` pair.
|
|
24
|
+
*
|
|
25
|
+
* Block grammar (informal):
|
|
26
|
+
* block := WS? '<' TAG WS attrs? WS? '>' body '</' TAG WS? '>'
|
|
27
|
+
* TAG := 'skill' (case-insensitive)
|
|
28
|
+
* attrs := (attr WS?)*
|
|
29
|
+
* attr := key ('=' value)?
|
|
30
|
+
* key := [A-Za-z_][A-Za-z0-9_:.-]*
|
|
31
|
+
* value := '"' ... '"' | '\'' ... '\'' | bare (bare stops at WS / '>')
|
|
32
|
+
* body := any text, captured verbatim up to the close tag
|
|
33
|
+
*
|
|
34
|
+
* A valid block must (a) be the leading content of the text (only leading
|
|
35
|
+
* whitespace may precede the opener), (b) name the `skill` tag, (c) carry a
|
|
36
|
+
* non-empty `name` attribute, and (d) be closed by `</skill>`. Anything else
|
|
37
|
+
* yields `null`, signalling "this turn is ordinary text, not a skill call".
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* The structured result of a successful parse.
|
|
41
|
+
*
|
|
42
|
+
* - `name` — the value of the required `name` attribute (the skill to run).
|
|
43
|
+
* - `args` — every attribute the opener carried, keyed by (lower-cased) name,
|
|
44
|
+
* including `name` itself and any `location`/custom keys. A bare attribute
|
|
45
|
+
* with no `=value` maps to the empty string.
|
|
46
|
+
* - `body` — the verbatim text between the opener and the `</skill>` close,
|
|
47
|
+
* with a single leading and trailing newline trimmed (the common case where
|
|
48
|
+
* the opener/closer sit on their own lines) but inner whitespace preserved.
|
|
49
|
+
*/
|
|
50
|
+
export interface SkillInvocation {
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly args: Record<string, string>;
|
|
53
|
+
readonly body: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Parse a skill-invocation block out of `text`.
|
|
57
|
+
*
|
|
58
|
+
* Walks the string by hand: skips leading whitespace, confirms a `<skill …>`
|
|
59
|
+
* opener, scans each attribute into an `args` record, captures the body up to the
|
|
60
|
+
* matching `</skill>`, and decodes entities. Returns the structured invocation,
|
|
61
|
+
* or `null` when the text is not a well-formed leading skill block (ordinary
|
|
62
|
+
* turns simply parse to `null`).
|
|
63
|
+
*
|
|
64
|
+
* @param text the raw turn text that may begin with a skill block
|
|
65
|
+
* @returns the parsed `{ name, args, body }`, or `null` if not a skill block
|
|
66
|
+
*/
|
|
67
|
+
export declare function parseSkillInvocation(text: string): SkillInvocation | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase 2 conductor — submit()/resume() BEHAVIORAL tests.
|
|
3
|
+
*
|
|
4
|
+
* These exercise the live turn loop of {@link createSessionConductor} end-to-end,
|
|
5
|
+
* but with zero network and zero disk. Everything heavy is injected:
|
|
6
|
+
*
|
|
7
|
+
* - a scripted fake {@link AgentLike} whose `prompt()` drives a pre-recorded
|
|
8
|
+
* sequence of framework {@link AgentEvent}s through the conductor's stored
|
|
9
|
+
* subscriber and mutates its own `state.messages` (so `#persistTail` has a
|
|
10
|
+
* tail to commit);
|
|
11
|
+
* - an in-memory {@link TranscriptStore} (default {@link memoryBackend}, no disk);
|
|
12
|
+
* - a fresh {@link SignalHub};
|
|
13
|
+
* - a {@link ModelMatcher} over a {@link ModelCatalog} built from a stub
|
|
14
|
+
* {@link CatalogSource} so `options.modelId` resolves;
|
|
15
|
+
* - `deps.sleep` stubbed to a no-op so retry backoff never actually waits.
|
|
16
|
+
*
|
|
17
|
+
* The four behaviors covered (per the Phase 2 plan):
|
|
18
|
+
* 1. multi-turn tool loop — ordered text/tool_start/tool_end/turn_end signals,
|
|
19
|
+
* settled `idle` state with accumulated usage, persisted transcript nodes.
|
|
20
|
+
* 2. fault + retry — transient streaming error auto-retries then settles;
|
|
21
|
+
* a hard model fault lands `faulted` with a typed {@link ConductorFault} and a
|
|
22
|
+
* `{ kind: "fault" }` signal.
|
|
23
|
+
* 3. branch / resume — a second conductor over the same store resumes the
|
|
24
|
+
* session and reconstructs the persisted branch (head/leaf).
|
|
25
|
+
* 4. compaction — autoCompact + a tiny compactAt + a scripted condense
|
|
26
|
+
* fn fire a `{ kind: "compacted" }` signal and invoke condense.
|
|
27
|
+
*/
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* transcript-store — the conductor's persistent, branchable transcript.
|
|
3
|
+
*
|
|
4
|
+
* Two cooperating pieces:
|
|
5
|
+
* - {@link TranscriptStore} — the append-only node tree bound to one session:
|
|
6
|
+
* `append`, `branchAt`, `pathTo`, `load`, with a pluggable storage backend.
|
|
7
|
+
* - the serialization bridge (re-exported below) — encode/decode the
|
|
8
|
+
* `indus/transcript@1` NDJSON line shape and project a branch down to the
|
|
9
|
+
* framework `AgentMessage[]` / LLM `Message[]`.
|
|
10
|
+
*
|
|
11
|
+
* Consumers (the conductor's submit/resume path) import the store and the
|
|
12
|
+
* serialization helpers from `src/conductor/transcript-store` rather than reaching
|
|
13
|
+
* into the individual modules.
|
|
14
|
+
*/
|
|
15
|
+
export { TranscriptStore, memoryBackend, fsBackend, replay, type TranscriptBackend, type TranscriptState, type TranscriptClock, type TranscriptStoreOptions, } from "./store";
|
|
16
|
+
export { roleForMessage, encodeEntry, encodeHead, parseSessionText, branchToMessages, branchToLlmMessages, importLegacyFile, importLegacyText, resolveLegacyMessages, type ParsedSessionFile, } from "./serialize";
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transcript serialization — the bridge between the conductor's on-disk
|
|
3
|
+
* {@link TranscriptEntry} vocabulary and the framework's {@link AgentMessage}
|
|
4
|
+
* shapes.
|
|
5
|
+
*
|
|
6
|
+
* Two distinct directions live here, and the split is deliberate:
|
|
7
|
+
*
|
|
8
|
+
* 1. **Conductor ⇄ conductor** — encoding a {@link TranscriptEntry} to/from a
|
|
9
|
+
* single NDJSON line in the `indus/transcript@1` format. This is the
|
|
10
|
+
* conductor's *own* envelope (`schema`/`id`/`prev`/`role`/`message`/`at`/
|
|
11
|
+
* `meta`). The store owns these field names; they are our own, not any
|
|
12
|
+
* framework-internal session schema.
|
|
13
|
+
*
|
|
14
|
+
* 2. **Conductor ⇄ framework** — projecting a transcript branch down to the
|
|
15
|
+
* `AgentMessage[]` the agent loop consumes, and (for migration) lifting a
|
|
16
|
+
* legacy framework session file *up* into transcript entries. Here we
|
|
17
|
+
* **delegate the actual message serialization to the framework**: the
|
|
18
|
+
* framework's published loader/context helpers know how to parse and resolve
|
|
19
|
+
* the legacy on-disk schema, and we keep those internal schema literals
|
|
20
|
+
* inside the framework package rather than re-declaring them in the app.
|
|
21
|
+
*
|
|
22
|
+
* The role discriminant on a {@link TranscriptEntry} is the conductor's own —
|
|
23
|
+
* `role` here labels the *node*, not the LLM message. We derive it from the
|
|
24
|
+
* carried {@link AgentMessage}'s `role` field so a round-trip is faithful, but
|
|
25
|
+
* the transcript can also hold conductor-only nodes (`condense`, `note`) that the
|
|
26
|
+
* framework message union has no direct counterpart for.
|
|
27
|
+
*/
|
|
28
|
+
import type { AgentMessage } from "indusagi/agent";
|
|
29
|
+
import type { Message } from "indusagi/ai";
|
|
30
|
+
import type { SessionHead, TranscriptEntry, TranscriptRole } from "../contract";
|
|
31
|
+
/**
|
|
32
|
+
* Derive the conductor's node {@link TranscriptRole} from a framework
|
|
33
|
+
* {@link AgentMessage}.
|
|
34
|
+
*
|
|
35
|
+
* The framework message union uses `role` values (`user`/`assistant`/`toolResult`
|
|
36
|
+
* plus the custom app messages). We fold those onto the transcript's own role
|
|
37
|
+
* vocabulary. Anything we don't recognize (custom/notification-style messages)
|
|
38
|
+
* is filed as a `note` node so it persists without claiming an LLM turn role.
|
|
39
|
+
*/
|
|
40
|
+
export declare function roleForMessage(message: AgentMessage): TranscriptRole;
|
|
41
|
+
/** Encode one {@link TranscriptEntry} to its NDJSON entry line (no newline). */
|
|
42
|
+
export declare function encodeEntry(entry: TranscriptEntry): string;
|
|
43
|
+
/** Encode the {@link SessionHead} to its NDJSON head line (no newline). */
|
|
44
|
+
export declare function encodeHead(head: SessionHead): string;
|
|
45
|
+
/** The result of parsing a whole session file: its head plus its entries. */
|
|
46
|
+
export interface ParsedSessionFile {
|
|
47
|
+
readonly head: SessionHead | null;
|
|
48
|
+
readonly entries: TranscriptEntry[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parse the raw text of a conductor session file into a head + entries.
|
|
52
|
+
*
|
|
53
|
+
* Tolerant by design: blank lines are skipped, malformed lines are dropped, and
|
|
54
|
+
* lines whose `schema` does not match `indus/transcript@1` are ignored. The last
|
|
55
|
+
* head line wins (a file should carry exactly one, written first and rewritten on
|
|
56
|
+
* branch). Entries keep file order.
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseSessionText(sessionId: string, text: string): ParsedSessionFile;
|
|
59
|
+
/**
|
|
60
|
+
* Project a resolved transcript branch down to the framework `AgentMessage[]`
|
|
61
|
+
* the agent loop consumes.
|
|
62
|
+
*
|
|
63
|
+
* The branch is the root→leaf node list (the store's reducer produces it). We
|
|
64
|
+
* pull the carried `content` payloads and hand them straight to the agent; they
|
|
65
|
+
* are already framework messages. Conductor-only nodes whose payload is not a
|
|
66
|
+
* real message would be filtered by the framework's own `convertToLlm` at call
|
|
67
|
+
* time, so we keep them here and let the loop's converter decide.
|
|
68
|
+
*/
|
|
69
|
+
export declare function branchToMessages(branch: readonly TranscriptEntry[]): AgentMessage[];
|
|
70
|
+
/**
|
|
71
|
+
* Convert a transcript branch to *LLM-ready* `Message[]`, delegating entirely to
|
|
72
|
+
* the framework's {@link convertToLlm}.
|
|
73
|
+
*
|
|
74
|
+
* This is the one place that must understand how each `AgentMessage` variant
|
|
75
|
+
* (including the framework's custom `bashExecution`/`branchSummary`/… messages)
|
|
76
|
+
* collapses into a plain LLM message — and that knowledge stays in the framework.
|
|
77
|
+
* The conductor never re-implements it.
|
|
78
|
+
*/
|
|
79
|
+
export declare function branchToLlmMessages(branch: readonly TranscriptEntry[]): Message[];
|
|
80
|
+
/**
|
|
81
|
+
* Lift a *legacy framework session file* into conductor {@link TranscriptEntry}
|
|
82
|
+
* nodes, for one-way migration/import.
|
|
83
|
+
*
|
|
84
|
+
* The legacy file is the framework's own internal JSONL format. We do **not**
|
|
85
|
+
* parse its schema ourselves — we call the framework's published loader (or its
|
|
86
|
+
* in-memory text parser), then map only the message-bearing entries onto our
|
|
87
|
+
* envelope. Every framework-internal schema literal stays behind that call.
|
|
88
|
+
*
|
|
89
|
+
* Non-message bookkeeping entries (model/thinking changes, labels, raw
|
|
90
|
+
* compaction markers) are dropped from the imported transcript: their effect is
|
|
91
|
+
* already folded into the resolved messages we keep, and the conductor tracks
|
|
92
|
+
* model/thinking in its own state rather than as transcript nodes.
|
|
93
|
+
*/
|
|
94
|
+
export declare function importLegacyFile(filePath: string): TranscriptEntry[];
|
|
95
|
+
/** As {@link importLegacyFile}, but from already-loaded text (testing/import). */
|
|
96
|
+
export declare function importLegacyText(text: string): TranscriptEntry[];
|
|
97
|
+
/**
|
|
98
|
+
* Resolve a legacy framework file straight to the `AgentMessage[]` of its active
|
|
99
|
+
* branch, delegating to the framework's {@link buildSessionContext}.
|
|
100
|
+
*
|
|
101
|
+
* Useful when the goal is to *seed* a fresh conductor session from a legacy one
|
|
102
|
+
* without reproducing its tree: the framework walks its own parent links and
|
|
103
|
+
* applies its own compaction/branch-summary resolution, and we receive a flat
|
|
104
|
+
* message list to re-append as new transcript nodes.
|
|
105
|
+
*/
|
|
106
|
+
export declare function resolveLegacyMessages(filePath: string): AgentMessage[];
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TranscriptStore — the conductor's persistent, branchable transcript.
|
|
3
|
+
*
|
|
4
|
+
* Replaces pi's `SessionManager`, but with the conductor's own vocabulary and a
|
|
5
|
+
* deliberately different internal model. The transcript is an append-only **tree**
|
|
6
|
+
* of {@link TranscriptEntry} nodes: every node names its `parent`, a single
|
|
7
|
+
* {@link SessionHead} tracks the active `leaf`, and the active conversation is the
|
|
8
|
+
* `parent`-chain walked from that leaf back to a root.
|
|
9
|
+
*
|
|
10
|
+
* Design stance (an independent persistence model):
|
|
11
|
+
* - **Reducer-friendly.** The on-disk form is a flat NDJSON log; the in-memory
|
|
12
|
+
* view is rebuilt by a pure {@link replay} reducer over that log. State is a
|
|
13
|
+
* value derived from the log, never mutated in place behind the scenes.
|
|
14
|
+
* - **Fresh envelope.** Lines carry the `indus/transcript@1` schema with our own
|
|
15
|
+
* field names (`prev`, `at`, `kind`), delegated to {@link module:serialize} —
|
|
16
|
+
* not any framework-internal session-manager schema.
|
|
17
|
+
* - **Branch = move the head.** {@link branchAt} repoints the leaf at an earlier
|
|
18
|
+
* node; the next {@link append} becomes that node's child, forking a new path
|
|
19
|
+
* without rewriting history.
|
|
20
|
+
* - **`pathTo` is the read primitive.** {@link pathTo} resolves the root→leaf
|
|
21
|
+
* branch (the message list the agent replays); the conductor's `resume` calls
|
|
22
|
+
* it to rehydrate.
|
|
23
|
+
*
|
|
24
|
+
* The store is storage-pluggable: a {@link TranscriptBackend} abstracts where bytes
|
|
25
|
+
* live, so tests inject an in-memory backend and the conductor binds a filesystem
|
|
26
|
+
* one. Construction is synchronous and empty; {@link load} hydrates from a backend.
|
|
27
|
+
*/
|
|
28
|
+
import type { AgentMessage, SessionHead, TranscriptEntry, TranscriptRole } from "../contract";
|
|
29
|
+
import { TRANSCRIPT_SCHEMA } from "../contract";
|
|
30
|
+
/**
|
|
31
|
+
* Where a transcript's NDJSON log lives. The store appends lines and, on branch,
|
|
32
|
+
* rewrites the whole file; a backend supplies those three primitives plus a way
|
|
33
|
+
* to resolve a session id to its location. All methods may be async.
|
|
34
|
+
*
|
|
35
|
+
* The default {@link fsBackend} maps a session id to `<dir>/<sessionId>.ndjson`;
|
|
36
|
+
* tests pass an in-memory backend so no disk is touched.
|
|
37
|
+
*/
|
|
38
|
+
export interface TranscriptBackend {
|
|
39
|
+
/** Absolute location (path/key) a session id persists to. */
|
|
40
|
+
locate(sessionId: string): string;
|
|
41
|
+
/** Read the full NDJSON text for a session, or `null` if absent. */
|
|
42
|
+
read(sessionId: string): Promise<string | null>;
|
|
43
|
+
/** Append one already-encoded NDJSON line (no trailing newline) to a session. */
|
|
44
|
+
append(sessionId: string, line: string): Promise<void>;
|
|
45
|
+
/** Replace the whole NDJSON text for a session (used after a branch). */
|
|
46
|
+
rewrite(sessionId: string, text: string): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/** An in-memory backend — the default when no persistence is wired. */
|
|
49
|
+
export declare function memoryBackend(): TranscriptBackend;
|
|
50
|
+
/**
|
|
51
|
+
* A filesystem backend rooted at `dir`. Lazily imports `node:fs`/`node:path` so
|
|
52
|
+
* the module stays usable in non-Node test contexts that pass {@link memoryBackend}.
|
|
53
|
+
*/
|
|
54
|
+
export declare function fsBackend(dir: string): TranscriptBackend;
|
|
55
|
+
/**
|
|
56
|
+
* The immutable derived state of a transcript: the node table keyed by id, plus
|
|
57
|
+
* the current head. A pure value produced by {@link replay}; the store holds one
|
|
58
|
+
* and swaps it wholesale on each mutation rather than mutating fields.
|
|
59
|
+
*/
|
|
60
|
+
export interface TranscriptState {
|
|
61
|
+
/** Every node, keyed by id, in insertion order. */
|
|
62
|
+
readonly nodes: ReadonlyMap<string, TranscriptEntry>;
|
|
63
|
+
/** The active head (session id + current leaf). */
|
|
64
|
+
readonly head: SessionHead;
|
|
65
|
+
}
|
|
66
|
+
/** A clock + id seam so tests get deterministic ids/timestamps. */
|
|
67
|
+
export interface TranscriptClock {
|
|
68
|
+
/** Mint a fresh, sortable node id. */
|
|
69
|
+
readonly id: () => string;
|
|
70
|
+
/** The current instant as an ISO-8601 string. */
|
|
71
|
+
readonly now: () => string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Rebuild a {@link TranscriptState} from an ordered entry list and a leaf.
|
|
75
|
+
*
|
|
76
|
+
* Pure and total: the same inputs always yield the same state. The reducer just
|
|
77
|
+
* indexes the entries by id (later ids overwrite earlier — append-only logs never
|
|
78
|
+
* collide, but a rewrite stays idempotent) and pins the head. Replacing pi's
|
|
79
|
+
* mutate-in-place index with an explicit reducer is the divergence.
|
|
80
|
+
*/
|
|
81
|
+
export declare function replay(sessionId: string, entries: readonly TranscriptEntry[], leaf: string | null): TranscriptState;
|
|
82
|
+
/** Tuning seams for a {@link TranscriptStore}. All optional. */
|
|
83
|
+
export interface TranscriptStoreOptions {
|
|
84
|
+
/** Where bytes live; defaults to {@link memoryBackend}. */
|
|
85
|
+
readonly backend?: TranscriptBackend;
|
|
86
|
+
/** Id/timestamp source; defaults to ULID + wall clock. */
|
|
87
|
+
readonly clock?: TranscriptClock;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* An append-only, branchable transcript bound to one session id.
|
|
91
|
+
*
|
|
92
|
+
* Construct (empty), then either {@link append} fresh nodes or {@link load} a
|
|
93
|
+
* persisted session. Every mutation appends to the backend and swaps the derived
|
|
94
|
+
* {@link TranscriptState}. Reads (`pathTo`, `messages`, `head`) are O(branch
|
|
95
|
+
* depth) walks over the in-memory node table.
|
|
96
|
+
*/
|
|
97
|
+
export declare class TranscriptStore {
|
|
98
|
+
#private;
|
|
99
|
+
constructor(sessionId: string, options?: TranscriptStoreOptions);
|
|
100
|
+
/** The session id this store is bound to. */
|
|
101
|
+
get sessionId(): string;
|
|
102
|
+
/** The current head (session id + active leaf). */
|
|
103
|
+
get head(): SessionHead;
|
|
104
|
+
/** Number of nodes currently in the transcript. */
|
|
105
|
+
get size(): number;
|
|
106
|
+
/** Backend location this session persists to (for diagnostics/UI). */
|
|
107
|
+
locate(sessionId?: string): string;
|
|
108
|
+
/** Look up a single node by id. */
|
|
109
|
+
get(id: string): TranscriptEntry | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Append a framework {@link AgentMessage} as a child of the current leaf and
|
|
112
|
+
* advance the head onto it. The node role is derived from the message (or
|
|
113
|
+
* overridden via `role`). Persists the new line, then returns the new node.
|
|
114
|
+
*
|
|
115
|
+
* This is the conductor's per-message write: one call per produced message in
|
|
116
|
+
* a settled turn.
|
|
117
|
+
*/
|
|
118
|
+
append(content: AgentMessage, role?: TranscriptRole, meta?: Readonly<Record<string, unknown>>): Promise<TranscriptEntry>;
|
|
119
|
+
/**
|
|
120
|
+
* Repoint the head at an earlier node, forking a branch. The next {@link append}
|
|
121
|
+
* becomes a child of `id`; existing nodes are untouched. Rewrites the head line.
|
|
122
|
+
*
|
|
123
|
+
* @throws if `id` is not a known node.
|
|
124
|
+
*/
|
|
125
|
+
branchAt(id: string): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Reset the head to before any node; the next {@link append} starts a new root.
|
|
128
|
+
* Used when re-editing the very first turn.
|
|
129
|
+
*/
|
|
130
|
+
reset(): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Abandon the current conversation and begin a fresh, empty session under a new
|
|
133
|
+
* id. All nodes are dropped and the leaf is reset to null, so {@link messages}
|
|
134
|
+
* is empty and the next {@link append} starts a new root; subsequent writes
|
|
135
|
+
* persist to the new session's backing file (the old one is left intact on
|
|
136
|
+
* disk). This is the `/clear` (new-session) primitive — distinct from
|
|
137
|
+
* {@link reset}, which keeps the nodes and id and only rewinds the head.
|
|
138
|
+
*/
|
|
139
|
+
startNewSession(sessionId: string): void;
|
|
140
|
+
/**
|
|
141
|
+
* Resolve the active branch: the root→leaf node list reached by walking
|
|
142
|
+
* `parent` links up from `leaf` (or from `from` when given), reversed to
|
|
143
|
+
* chronological order.
|
|
144
|
+
*
|
|
145
|
+
* This is the conductor's read primitive — `resume` rehydrates the agent from
|
|
146
|
+
* `pathTo()`, and the turn loop projects it to messages via {@link messages}.
|
|
147
|
+
* Returns `[]` for an empty transcript or a dangling leaf.
|
|
148
|
+
*/
|
|
149
|
+
pathTo(from?: string): TranscriptEntry[];
|
|
150
|
+
/** The active branch projected to the framework {@link AgentMessage} list. */
|
|
151
|
+
messages(from?: string): AgentMessage[];
|
|
152
|
+
/**
|
|
153
|
+
* Hydrate this store from a persisted session, replacing its current state.
|
|
154
|
+
*
|
|
155
|
+
* Reads the backend, parses it with {@link parseSessionText}, and rebuilds state
|
|
156
|
+
* via the {@link replay} reducer. If the file carried no head line, the head is
|
|
157
|
+
* pinned to the deepest leaf reachable from the entries. Returns `true` when a
|
|
158
|
+
* session was found and loaded, `false` when the backend had nothing.
|
|
159
|
+
*/
|
|
160
|
+
load(sessionId?: string): Promise<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Open a persisted session by id, returning a hydrated store (or `null` if the
|
|
163
|
+
* backend has no such session). The static counterpart to {@link load}.
|
|
164
|
+
*/
|
|
165
|
+
static open(sessionId: string, options?: TranscriptStoreOptions): Promise<TranscriptStore | null>;
|
|
166
|
+
/** A point-in-time copy of the derived state (for inspection/testing). */
|
|
167
|
+
state(): TranscriptState;
|
|
168
|
+
}
|
|
169
|
+
/** Re-export the schema literal for callers building stores directly. */
|
|
170
|
+
export { TRANSCRIPT_SCHEMA };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Banner — the masthead the console renders above the transcript.
|
|
3
|
+
*
|
|
4
|
+
* The startup chrome the surface mounts once at the top of a session: an
|
|
5
|
+
* original block-letter wordmark rendered in the box-drawing palette and tinted
|
|
6
|
+
* with the accent/signal role, a version + brand line beneath it, and a compact
|
|
7
|
+
* bordered "Session" panel of at-a-glance facts (the bound model id and the
|
|
8
|
+
* working directory). It reads nothing but its props, holds no state, and runs
|
|
9
|
+
* no effects — purely presentational Ink primitives themed through the framework
|
|
10
|
+
* {@link InkThemeAdapter}.
|
|
11
|
+
*
|
|
12
|
+
* The wordmark is the "INDUS CODE" brand masthead rendered in the ANSI-Shadow
|
|
13
|
+
* block-figlet style from the `█ ║ ═ ╔ ╗ ╚ ╝` box-drawing family — the same
|
|
14
|
+
* masthead the shipped console shows, so both surfaces share one identity. The
|
|
15
|
+
* glyph rows are plain data tinted with the accent role at render time.
|
|
16
|
+
*/
|
|
17
|
+
import { type InkThemeAdapter } from "indusagi/react-ink";
|
|
18
|
+
import type { StartupChangelog, StartupMap, StartupNotice } from "../startup";
|
|
19
|
+
/** What the {@link Banner} renders. */
|
|
20
|
+
export interface BannerProps {
|
|
21
|
+
/** The framework adapter that turns token roles into terminal colours. */
|
|
22
|
+
readonly theme: InkThemeAdapter;
|
|
23
|
+
/** Canonical id of the model bound to the session. */
|
|
24
|
+
readonly modelId: string;
|
|
25
|
+
/** Working directory the session is scoped to. */
|
|
26
|
+
readonly workspace: string;
|
|
27
|
+
/** The product version shown on the brand line (e.g. the package VERSION). */
|
|
28
|
+
readonly version: string;
|
|
29
|
+
/** Whether to render the extra diagnostics line. */
|
|
30
|
+
readonly verbose?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* When set, the big wordmark + Startup Map are suppressed in favour of a
|
|
33
|
+
* single compact header line. Wired from the verbose / quiet-startup flag.
|
|
34
|
+
*/
|
|
35
|
+
readonly quiet?: boolean;
|
|
36
|
+
/** The gathered session resources rendered as the Startup Map panel. */
|
|
37
|
+
readonly startup?: StartupMap;
|
|
38
|
+
/** Out-of-band lines drawn above the wordmark (errors, warnings, info). */
|
|
39
|
+
readonly notices?: readonly StartupNotice[];
|
|
40
|
+
/** The changelog survey rendered as a "What is new" block on a version bump. */
|
|
41
|
+
readonly changelog?: StartupChangelog;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Render the console masthead.
|
|
45
|
+
*
|
|
46
|
+
* In the default (loud) mode this is the block-letter wordmark, the brand /
|
|
47
|
+
* version line, the optional notices region, the bordered Startup Map, and the
|
|
48
|
+
* changelog block. The {@link BannerProps.quiet} flag collapses all of that to a
|
|
49
|
+
* single compact header line (brand + version + model), still carrying the
|
|
50
|
+
* notices and a condensed changelog so nothing important is silently dropped.
|
|
51
|
+
*
|
|
52
|
+
* @param props the wordmark context, version, session facts, and startup chrome
|
|
53
|
+
*/
|
|
54
|
+
export declare function Banner({ theme, modelId, workspace, version, verbose, quiet, startup, notices, changelog, }: BannerProps): JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composer — the prompt-input surface (the renamed input row).
|
|
3
|
+
*
|
|
4
|
+
* Presentational only: it renders the live buffer with a visible caret, a busy
|
|
5
|
+
* affordance while a turn is in flight, and — when the parent has computed one —
|
|
6
|
+
* a completion window of slash/path {@link Suggestion}s with the highlighted
|
|
7
|
+
* entry marked. All key handling lives in the parent {@link TerminalConsole}'s
|
|
8
|
+
* `useInput` handler (which composes the pure keymap / paste / completion
|
|
9
|
+
* modules); the Composer just draws the state it is handed.
|
|
10
|
+
*
|
|
11
|
+
* The caret is drawn by splitting the buffer at the caret offset and inverting
|
|
12
|
+
* the character under it (or a trailing space at end-of-buffer), so the surface
|
|
13
|
+
* needs no terminal cursor control.
|
|
14
|
+
*/
|
|
15
|
+
import type { InkThemeAdapter } from "indusagi/react-ink";
|
|
16
|
+
import type { Suggestion } from "../input";
|
|
17
|
+
/** What the {@link Composer} renders. */
|
|
18
|
+
export interface ComposerProps {
|
|
19
|
+
/** The framework adapter that turns token roles into terminal colours. */
|
|
20
|
+
readonly theme: InkThemeAdapter;
|
|
21
|
+
/** The live composer buffer. */
|
|
22
|
+
readonly buffer: string;
|
|
23
|
+
/** Caret offset within {@link buffer}, in characters. */
|
|
24
|
+
readonly caret: number;
|
|
25
|
+
/** Whether a turn is in flight (input is visually disabled). */
|
|
26
|
+
readonly busy: boolean;
|
|
27
|
+
/** The completion candidates to show, or empty for no window. */
|
|
28
|
+
readonly suggestions: readonly Suggestion[];
|
|
29
|
+
/** Index of the highlighted suggestion within {@link suggestions}. */
|
|
30
|
+
readonly highlight: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Render the prompt-input row plus any completion window.
|
|
34
|
+
*
|
|
35
|
+
* @param props the buffer/caret/suggestion state to display
|
|
36
|
+
*/
|
|
37
|
+
export declare function Composer({ theme, buffer, caret, busy, suggestions, highlight, }: ComposerProps): JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StatusBar — the bottom chrome strip of the console.
|
|
3
|
+
*
|
|
4
|
+
* Composes the framework's `StatusLine` (the transient toast row) above its
|
|
5
|
+
* `Footer` (the persistent session/usage strip), both fed from a projected
|
|
6
|
+
* {@link SessionSnapshot}. The console owns no rendering of its own here — it
|
|
7
|
+
* threads the resolved theme adapter and the current snapshot/status into the
|
|
8
|
+
* framework components, which do the layout. Purely presentational.
|
|
9
|
+
*
|
|
10
|
+
* (Renamed surface: the console's status strip.)
|
|
11
|
+
*/
|
|
12
|
+
import { type InkThemeAdapter, type SessionSnapshot, type StatusMessage } from "indusagi/react-ink";
|
|
13
|
+
/** What the {@link StatusBar} renders. */
|
|
14
|
+
export interface StatusBarProps {
|
|
15
|
+
/** The framework adapter that turns token roles into terminal colours. */
|
|
16
|
+
readonly theme: InkThemeAdapter;
|
|
17
|
+
/** The projected session snapshot the framework strips read. */
|
|
18
|
+
readonly snapshot: SessionSnapshot;
|
|
19
|
+
/** The active VCS branch, or `null` when not in a repo. */
|
|
20
|
+
readonly branch: string | null;
|
|
21
|
+
/** How many auth providers are available (shown in the footer). */
|
|
22
|
+
readonly providerCount: number;
|
|
23
|
+
/** The transient status toast, when one is showing. */
|
|
24
|
+
readonly status?: StatusMessage;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Render the toast row above the footer strip.
|
|
28
|
+
*
|
|
29
|
+
* @param props the snapshot + status to display
|
|
30
|
+
*/
|
|
31
|
+
export declare function StatusBar({ theme, snapshot, branch, providerCount, status, }: StatusBarProps): JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalConsole — the top-level Ink application for the interactive console.
|
|
3
|
+
*
|
|
4
|
+
* This is the surface the host process renders to drive a session from a live
|
|
5
|
+
* terminal. It owns one {@link consoleReducer} store, subscribes to the
|
|
6
|
+
* conductor's {@link SessionSignal} stream and projects each signal into reducer
|
|
7
|
+
* events (so the transcript view grows as the agent streams), renders the
|
|
8
|
+
* framework `MessageList` / `Footer` / `StatusLine` plus the console's own
|
|
9
|
+
* {@link Composer} / {@link StatusBar} / {@link Banner}, and translates raw key
|
|
10
|
+
* events — through the pure keymap / paste / completion modules — into reducer
|
|
11
|
+
* dispatches and conductor calls.
|
|
12
|
+
*
|
|
13
|
+
* The component is deliberately thin: every *decision* lives in a pure module
|
|
14
|
+
* (the reducer, the keymap, the slash resolver, the completion source, the paste
|
|
15
|
+
* coalescer). The surface holds only the live values those pure functions need
|
|
16
|
+
* carried between keystrokes — the chord latch, the paste vault, the highlighted
|
|
17
|
+
* suggestion index — and the timers, and it wires events in and renders state
|
|
18
|
+
* out. Nothing here parses keys or mutates state inline.
|
|
19
|
+
*
|
|
20
|
+
* Hooks note: `useReducer` / `useRef` / `useCallback` are obtained from the
|
|
21
|
+
* default React export of `indusagi/react-host` (only `useState`/`useEffect`/
|
|
22
|
+
* `useMemo` are named exports there). `Box` / `Text` / `useInput` come from
|
|
23
|
+
* `indusagi/react-host/ink`; the message/footer/dialog components from
|
|
24
|
+
* `indusagi/react-ink`.
|
|
25
|
+
*/
|
|
26
|
+
import type { ConsoleProps } from "../contract";
|
|
27
|
+
/**
|
|
28
|
+
* The interactive console surface.
|
|
29
|
+
*
|
|
30
|
+
* @param props the conductor to drive, the resolved theme, and the slash registry
|
|
31
|
+
*/
|
|
32
|
+
export declare function TerminalConsole(props: ConsoleProps): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Console subsystem — unit tests over the PURE modules.
|
|
3
|
+
*
|
|
4
|
+
* The interactive surface itself (the Ink mount) is verified by eye; these tests
|
|
5
|
+
* pin the *decisions* that live in the pure, dependency-free modules the surface
|
|
6
|
+
* composes:
|
|
7
|
+
*
|
|
8
|
+
* 1. the reducer transitions (transcript append, busy toggle, theme switch);
|
|
9
|
+
* 2. the theme having both schemes and an OWN, re-derived accent palette
|
|
10
|
+
* (no forbidden upstream hex appears);
|
|
11
|
+
* 3. slash resolution matching `/model` and `/composio` and parsing args;
|
|
12
|
+
* 4. the keymap mapping Enter / Ctrl-C to the right console intent;
|
|
13
|
+
* 5. paste coalescing batching a large clipboard burst behind a marker;
|
|
14
|
+
* 6. completion suggesting slash names and file paths.
|
|
15
|
+
*
|
|
16
|
+
* Everything under test is a plain function over plain data — no Ink, no timers,
|
|
17
|
+
* no conductor runtime — so the suite needs no React host.
|
|
18
|
+
*/
|
|
19
|
+
export {};
|