indusagi-coding-agent 0.1.58 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19250 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -231
- 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 -113
- 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,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ThemeBridge — the color service behind the HTML transcript export.
|
|
3
|
+
*
|
|
4
|
+
* Everything the publisher needs to turn an {@link ExportTheme} token bag into
|
|
5
|
+
* concrete page colors lives here: parsing CSS colors into {@link Rgb}, measuring
|
|
6
|
+
* a color's WCAG relative luminance through a precomputed lookup table, deciding
|
|
7
|
+
* whether the theme reads {@link ThemeMode} light or dark, deriving lighter/darker
|
|
8
|
+
* surface variants from a base, and projecting the whole theme to the CSS custom
|
|
9
|
+
* properties the page shell consumes.
|
|
10
|
+
*
|
|
11
|
+
* Two facts are interface-dictated and kept faithful:
|
|
12
|
+
* - The WCAG relative-luminance formula — linearize each sRGB channel with the
|
|
13
|
+
* gamma piecewise curve, then weight `0.2126 R + 0.7152 G + 0.0722 B`. The
|
|
14
|
+
* per-channel linearization is precomputed once into {@link buildLuminanceLut}
|
|
15
|
+
* (a {@link LuminanceLut}) so a luminance read is three table lookups plus a
|
|
16
|
+
* weighted sum, never a `pow` per pixel.
|
|
17
|
+
* - Readable foreground selection — given a background, pick the foreground
|
|
18
|
+
* (from the theme's own ink choices) whose contrast against that background is
|
|
19
|
+
* the larger, so text on any derived surface stays legible.
|
|
20
|
+
*
|
|
21
|
+
* Every default color the bridge falls back to is this rebuild's own
|
|
22
|
+
* {@link FALLBACK_EXPORT_THEME} (a deep-slate palette), never a legacy export's
|
|
23
|
+
* magic constant.
|
|
24
|
+
*/
|
|
25
|
+
import { type ExportTheme, type LuminanceLut, type Rgb, type ThemeBridge, type ThemeMode } from "../briefing/contract";
|
|
26
|
+
/**
|
|
27
|
+
* Build the 256-entry sRGB→linear lookup table the WCAG relative-luminance
|
|
28
|
+
* formula needs for each channel.
|
|
29
|
+
*
|
|
30
|
+
* For a channel value `v` in `0–255`, normalize to `s = v / 255`, then apply the
|
|
31
|
+
* standard gamma-expansion: `s ≤ 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ^
|
|
32
|
+
* 2.4`. The table holds the linearized value at each integer channel so a
|
|
33
|
+
* luminance read avoids the per-call `pow`. The math is the published standard's;
|
|
34
|
+
* the table is this module's.
|
|
35
|
+
*/
|
|
36
|
+
export declare function buildLuminanceLut(): Float64Array;
|
|
37
|
+
/**
|
|
38
|
+
* Parse a CSS color string into its {@link Rgb} channels. Recognizes `#rgb`,
|
|
39
|
+
* `#rrggbb` (and their alpha-bearing `#rgba` / `#rrggbbaa` forms, alpha dropped)
|
|
40
|
+
* and the functional `rgb(r, g, b)` / `rgba(r, g, b, a)` notations. Any
|
|
41
|
+
* unrecognized input resolves to `null`, which the bridge treats as "fall back to
|
|
42
|
+
* the theme default" rather than throwing.
|
|
43
|
+
*
|
|
44
|
+
* @param color a CSS color string
|
|
45
|
+
*/
|
|
46
|
+
export declare function parseColor(color: string): Rgb | null;
|
|
47
|
+
/** Render an {@link Rgb} back to a `#rrggbb` CSS string. */
|
|
48
|
+
export declare function formatColor(rgb: Rgb): string;
|
|
49
|
+
/**
|
|
50
|
+
* The concrete {@link ThemeBridge}. Holds a resolved {@link ExportTheme} and a
|
|
51
|
+
* {@link LuminanceLut}, and serves every color query the publisher makes against
|
|
52
|
+
* them. Pure with respect to its inputs — construction resolves the theme once and
|
|
53
|
+
* the methods only read.
|
|
54
|
+
*/
|
|
55
|
+
export declare class DefaultThemeBridge implements ThemeBridge {
|
|
56
|
+
readonly theme: ExportTheme;
|
|
57
|
+
private readonly lut;
|
|
58
|
+
/**
|
|
59
|
+
* @param theme an {@link ExportTheme} to serve; defaults to the rebuild's own
|
|
60
|
+
* {@link FALLBACK_EXPORT_THEME}.
|
|
61
|
+
* @param lut the luminance lookup table to read; defaults to the shared
|
|
62
|
+
* module-level table.
|
|
63
|
+
*/
|
|
64
|
+
constructor(theme?: ExportTheme, lut?: LuminanceLut);
|
|
65
|
+
/** The WCAG relative luminance (0–1) of a CSS color; unparseable input reads 0. */
|
|
66
|
+
luminance(color: string): number;
|
|
67
|
+
/** Whether the theme's page surface reads light or dark. */
|
|
68
|
+
mode(): ThemeMode;
|
|
69
|
+
/**
|
|
70
|
+
* Derive a surface variant from a base color. The `amount` is a signed lightness
|
|
71
|
+
* delta in channel space; the sign is honored directly so a caller can lighten
|
|
72
|
+
* (`+`) or darken (`−`) explicitly. When `amount` is `0` the base is returned
|
|
73
|
+
* formatted but unchanged. Unparseable bases fall through to the theme's card
|
|
74
|
+
* surface so a derivation never yields an empty string.
|
|
75
|
+
*
|
|
76
|
+
* @param base the base CSS color to adjust
|
|
77
|
+
* @param amount signed lightness delta (positive lightens, negative darkens)
|
|
78
|
+
*/
|
|
79
|
+
deriveSurface(base: string, amount: number): string;
|
|
80
|
+
/**
|
|
81
|
+
* Pick the more readable of the theme's two ink colors for a given background by
|
|
82
|
+
* comparing each ink's WCAG contrast against it and returning the higher. This
|
|
83
|
+
* is the bridge's own readable-foreground chooser — used when text sits on a
|
|
84
|
+
* derived surface whose lightness is not known ahead of time.
|
|
85
|
+
*
|
|
86
|
+
* @param background the surface the text will sit on
|
|
87
|
+
*/
|
|
88
|
+
readableInk(background: string): string;
|
|
89
|
+
/** Project the theme to its CSS custom properties, keyed by token name. */
|
|
90
|
+
toCssVars(): Readonly<Record<string, string>>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Build a {@link ThemeBridge} over an optional {@link ExportTheme}. The convenience
|
|
94
|
+
* factory the publisher calls; omitting the theme yields a bridge over the
|
|
95
|
+
* rebuild's own fallback palette.
|
|
96
|
+
*
|
|
97
|
+
* @param theme an export palette to serve, or undefined for the fallback
|
|
98
|
+
*/
|
|
99
|
+
export declare function createThemeBridge(theme?: ExportTheme): ThemeBridge;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transcript-export subsystem — Phase 9 behavioral tests.
|
|
3
|
+
*
|
|
4
|
+
* Three concerns, exercised purely (no disk, no network):
|
|
5
|
+
* 1. {@link paintSgr} — the table-driven SGR machine turns an ANSI string
|
|
6
|
+
* (bold + red foreground + a 256-color index) into HTML spans carrying this
|
|
7
|
+
* page's own `sgr-*` classes and resolved colors, and a reset returns the
|
|
8
|
+
* text to a bare (span-less) run.
|
|
9
|
+
* 2. {@link DefaultThemeBridge} — picks a readable foreground for a dark and a
|
|
10
|
+
* light background through the WCAG luminance LUT, and never resolves to a
|
|
11
|
+
* forbidden upstream color (#343541 / rgb(24,24,30)).
|
|
12
|
+
* 3. {@link publishTranscript} — renders a small transcript to a self-contained
|
|
13
|
+
* HTML string carrying the new token/class names, the marked-rendered
|
|
14
|
+
* markdown, and none of the upstream magic colors.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token estimation — the heuristic "meter stick" for the window-budget
|
|
3
|
+
* subsystem.
|
|
4
|
+
*
|
|
5
|
+
* Before we can decide whether the transcript is over budget (gate.ts) or where
|
|
6
|
+
* to slice it (slice.ts), we need a cheap, deterministic estimate of how many
|
|
7
|
+
* tokens each {@link AgentMessage} occupies. We do *not* call a tokenizer; we
|
|
8
|
+
* walk the serialized content and apply a small, transparent weighting model.
|
|
9
|
+
*
|
|
10
|
+
* Design notes (clean-room, deliberately distinct from any chars/4 + flat-image
|
|
11
|
+
* baseline):
|
|
12
|
+
* - The estimate is computed over a *serialization* of each message's
|
|
13
|
+
* payload, not over a JSON blob of the whole object — structural framing
|
|
14
|
+
* (braces, quotes, field names) is accounted for with small per-block adds
|
|
15
|
+
* rather than being measured character-for-character.
|
|
16
|
+
* - Constants below are this module's OWN tunables (a fractional
|
|
17
|
+
* bytes-per-token divisor plus per-block framing adds and a flat image
|
|
18
|
+
* cost). They are intentionally not the legacy fingerprint values.
|
|
19
|
+
* - The estimator is conservative (rounds up, adds framing) so the gate fires
|
|
20
|
+
* a little early rather than a little late — overflowing the window is worse
|
|
21
|
+
* than condensing one turn sooner than strictly necessary.
|
|
22
|
+
*/
|
|
23
|
+
import type { AgentMessage } from "../contract.js";
|
|
24
|
+
/**
|
|
25
|
+
* Estimate the token cost of one message in isolation. Exposed so the slice
|
|
26
|
+
* planner can build a prefix-sum without re-deriving the per-message weight.
|
|
27
|
+
*
|
|
28
|
+
* Cost = `ceil(serialized_chars / CHARS_PER_TOKEN)` + framing tokens +
|
|
29
|
+
* `images * IMAGE_TOKENS`. Always `>= 0` and biased high (conservative).
|
|
30
|
+
*/
|
|
31
|
+
export declare function estimateMessageTokens(message: AgentMessage): number;
|
|
32
|
+
/**
|
|
33
|
+
* Estimate the total token cost of a transcript: the sum of every message's
|
|
34
|
+
* {@link estimateMessageTokens}. This is a pure heuristic — the gate prefers a
|
|
35
|
+
* provider-anchored figure when one exists, and only falls back to this.
|
|
36
|
+
*/
|
|
37
|
+
export declare function estimateTokens(messages: AgentMessage[]): number;
|
|
38
|
+
/**
|
|
39
|
+
* Build a FORWARD prefix-sum array of per-message token estimates.
|
|
40
|
+
*
|
|
41
|
+
* Returns an array of length `messages.length + 1` where `result[i]` is the
|
|
42
|
+
* total estimated tokens of `messages[0 .. i)` (so `result[0] === 0` and
|
|
43
|
+
* `result[messages.length] === estimateTokens(messages)`). This monotonically
|
|
44
|
+
* non-decreasing array is exactly what {@link planSlice} binary-searches to find
|
|
45
|
+
* the cut boundary in O(log n).
|
|
46
|
+
*/
|
|
47
|
+
export declare function prefixTokens(messages: AgentMessage[]): number[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Budget gate — the trigger predicate for the window-budget subsystem.
|
|
3
|
+
*
|
|
4
|
+
* {@link isOverBudget} answers the single question "is the transcript large
|
|
5
|
+
* enough that we should condense before the next turn?" by comparing a token
|
|
6
|
+
* estimate against a window-relative threshold derived from the model's
|
|
7
|
+
* `contextWindow` and the caller-supplied {@link BudgetPolicy}.
|
|
8
|
+
*
|
|
9
|
+
* The threshold is computed as:
|
|
10
|
+
*
|
|
11
|
+
* limit = (contextWindow - reserveTokens?) * triggerRatio
|
|
12
|
+
*
|
|
13
|
+
* i.e. optional fixed headroom is carved off the window first, then the
|
|
14
|
+
* remaining capacity is scaled by the window-relative trigger ratio. This keeps
|
|
15
|
+
* the trigger free of baked-in token counts — `triggerRatio` lives in `(0, 1]`
|
|
16
|
+
* and `reserveTokens` is an optional config value, never a fingerprint constant.
|
|
17
|
+
*/
|
|
18
|
+
import type { AgentMessage, BudgetPolicy, Model } from "../contract.js";
|
|
19
|
+
import type { Api } from "indusagi/ai";
|
|
20
|
+
/**
|
|
21
|
+
* Compute the absolute token limit at which condensing should fire for a given
|
|
22
|
+
* model and policy. Exposed for callers that want the number itself (e.g. to
|
|
23
|
+
* display headroom) rather than just the boolean.
|
|
24
|
+
*
|
|
25
|
+
* `reserveTokens` (when present) is subtracted from the window before the ratio
|
|
26
|
+
* is applied; the result is floored at `0` so a misconfigured reserve larger
|
|
27
|
+
* than the window can never yield a negative limit.
|
|
28
|
+
*/
|
|
29
|
+
export declare function budgetLimit(model: Model<Api>, policy: BudgetPolicy): number;
|
|
30
|
+
/**
|
|
31
|
+
* Decide whether the transcript is over budget for the given model and policy.
|
|
32
|
+
*
|
|
33
|
+
* Uses the heuristic {@link estimateTokens} over the serialized transcript and
|
|
34
|
+
* compares it to {@link budgetLimit}. Returns `true` once the estimate strictly
|
|
35
|
+
* exceeds the limit — the signal the conductor uses to kick off a condense.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isOverBudget(messages: AgentMessage[], model: Model<Api>, policy: BudgetPolicy): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget / budget — pure budget math.
|
|
3
|
+
*
|
|
4
|
+
* The arithmetic core of the window-budget subsystem, free of I/O, prompts, and
|
|
5
|
+
* model calls:
|
|
6
|
+
* - {@link estimateTokens} / {@link estimateMessageTokens} / {@link prefixTokens}
|
|
7
|
+
* — heuristic token measurement and the forward cumulative-token array.
|
|
8
|
+
* - {@link isOverBudget} / {@link budgetLimit} — the window-relative trigger.
|
|
9
|
+
* - {@link planSlice} — forward prefix-sum + binary-search cut planning that
|
|
10
|
+
* never splits a tool_call from its tool_result.
|
|
11
|
+
*/
|
|
12
|
+
export { estimateMessageTokens, estimateTokens, prefixTokens } from "./estimate.js";
|
|
13
|
+
export { budgetLimit, isOverBudget } from "./gate.js";
|
|
14
|
+
export { planSlice } from "./slice.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slice planner — decides *where* to cut the transcript when it is over budget.
|
|
3
|
+
*
|
|
4
|
+
* {@link planSlice} partitions a transcript into a `dropped` prefix (older
|
|
5
|
+
* messages destined for a summary) and a `kept` suffix (the verbatim recent
|
|
6
|
+
* tail), choosing the boundary so the tail holds roughly `policy.keepRecent`
|
|
7
|
+
* tokens. It does this with a FORWARD prefix-sum + BINARY SEARCH (not a backward
|
|
8
|
+
* accumulate-and-snap):
|
|
9
|
+
*
|
|
10
|
+
* 1. Build the cumulative-token array `prefix` (forward, monotonic).
|
|
11
|
+
* 2. The total is `prefix[n]`; we want the tail to be ~`keepRecent` tokens, so
|
|
12
|
+
* the *ideal* cut sits at the first index `i` whose suffix
|
|
13
|
+
* `prefix[n] - prefix[i]` has fallen to `<= keepRecent`. Equivalently, the
|
|
14
|
+
* first `i` with `prefix[i] >= prefix[n] - keepRecent`. That predicate is
|
|
15
|
+
* monotonic in `i`, so we BINARY-SEARCH the lower bound of the threshold
|
|
16
|
+
* `prefix[n] - keepRecent` over `prefix`.
|
|
17
|
+
* 3. Snap the resulting index FORWARD to the nearest *legal* boundary so we
|
|
18
|
+
* never land between a tool_call and its matching tool_result. A boundary
|
|
19
|
+
* is legal iff the message it lands on is not a `toolResult` (a tool result
|
|
20
|
+
* always belongs with the assistant turn that issued the call, so the tail
|
|
21
|
+
* may never begin with one).
|
|
22
|
+
*
|
|
23
|
+
* If the whole transcript already fits within `keepRecent`, or snapping forward
|
|
24
|
+
* consumes everything, the cut is `0` (nothing condensable — keep it all).
|
|
25
|
+
*/
|
|
26
|
+
import type { AgentMessage, BudgetPolicy, CondensePlan } from "../contract.js";
|
|
27
|
+
/**
|
|
28
|
+
* Plan the condense slice for a transcript under a {@link BudgetPolicy}.
|
|
29
|
+
*
|
|
30
|
+
* Chooses the cut via forward prefix-sum + binary search for the boundary that
|
|
31
|
+
* keeps ~`policy.keepRecent` recent tokens, then snaps that boundary forward to
|
|
32
|
+
* a legal point (never between a tool_call and its tool_result).
|
|
33
|
+
*
|
|
34
|
+
* @returns a {@link CondensePlan} with the chosen `cut`, the `kept` tail
|
|
35
|
+
* (`messages.slice(cut)`) and the `dropped` head (`messages.slice(0, cut)`).
|
|
36
|
+
* `cut === 0` when nothing is condensable.
|
|
37
|
+
*/
|
|
38
|
+
export declare function planSlice(messages: AgentMessage[], policy: BudgetPolicy): CondensePlan;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget — the condenser factory (the conductor-consumable seam).
|
|
3
|
+
*
|
|
4
|
+
* {@link createCondenser} ties the three pure pieces together into a single
|
|
5
|
+
* function the conductor can drop into its auto-compaction hook:
|
|
6
|
+
*
|
|
7
|
+
* 1. **Gate** — {@link isOverBudget} asks "is this transcript large enough to
|
|
8
|
+
* condense?" against the bound model's window and the {@link BudgetPolicy}.
|
|
9
|
+
* 2. **Slice** — {@link planSlice} splits the transcript into a `dropped` head
|
|
10
|
+
* (older turns to fold away) and a verbatim `kept` tail, never cutting
|
|
11
|
+
* between a `toolCall` and its `toolResult`.
|
|
12
|
+
* 3. **Condense** — {@link summarize} turns the dropped head into one synthetic
|
|
13
|
+
* digest message (scope `"session"`), via the injectable model completer.
|
|
14
|
+
*
|
|
15
|
+
* The returned value is a {@link Condenser} — structurally a conductor
|
|
16
|
+
* `CondenseFn` `(messages) => AgentMessage[] | Promise<AgentMessage[]>`:
|
|
17
|
+
* - When over budget it returns `[summaryMessage, ...kept]` (a strictly smaller
|
|
18
|
+
* transcript: one digest in place of the dropped prefix, plus the recent tail).
|
|
19
|
+
* - Otherwise it returns the input list unchanged (the no-op identity the
|
|
20
|
+
* conductor expects when nothing needs doing).
|
|
21
|
+
*
|
|
22
|
+
* It is **network-free-testable**: with no `model` bound the gate cannot measure a
|
|
23
|
+
* window, so the condenser is an identity transform; inject a {@link CompleteFn}
|
|
24
|
+
* stub (and a `model`) to drive the summary path with no real API call.
|
|
25
|
+
*
|
|
26
|
+
* Branch-archival is *not* a second engine — {@link condenseScope} forwards to the
|
|
27
|
+
* shared {@link summarize} core pinned to scope `"branch"`. {@link condense} is the
|
|
28
|
+
* matching session-scope entrypoint. Both are re-exported here so callers can
|
|
29
|
+
* summarize a slice directly without building a full {@link Condenser}.
|
|
30
|
+
*/
|
|
31
|
+
import type { AgentMessage, CondenserDeps, Condenser, Summary } from "./contract.js";
|
|
32
|
+
import { condenseScope, type SummarizeDeps } from "./summarize/index.js";
|
|
33
|
+
/**
|
|
34
|
+
* Build a {@link Condenser} from a {@link CondenserDeps} bundle. The result plugs
|
|
35
|
+
* straight into the conductor's `CondenseFn` seam.
|
|
36
|
+
*
|
|
37
|
+
* Behavior of the returned condenser, given a transcript `messages`:
|
|
38
|
+
* - If no `model` is bound (so the window is unknown), or the transcript is
|
|
39
|
+
* **not** over budget, return `messages` **unchanged**.
|
|
40
|
+
* - Otherwise {@link planSlice} the transcript; if there is nothing to drop
|
|
41
|
+
* (`cut === 0`) return it unchanged; else {@link summarize} the dropped head
|
|
42
|
+
* (scope `"session"`) and return `[summary.message, ...plan.kept]`.
|
|
43
|
+
*
|
|
44
|
+
* All dependencies are optional, so `createCondenser()` yields a working,
|
|
45
|
+
* network-free condenser (a no-op until a model and policy are supplied).
|
|
46
|
+
*/
|
|
47
|
+
export declare function createCondenser(deps?: CondenserDeps): Condenser;
|
|
48
|
+
/**
|
|
49
|
+
* Session-scope summarization: fold a slice of dropped messages into one digest
|
|
50
|
+
* for the active session. A thin wrapper over the shared {@link summarize} core
|
|
51
|
+
* pinned to scope `"session"` (the default), so callers don't pass the flag.
|
|
52
|
+
*/
|
|
53
|
+
export declare function condense(messages: AgentMessage[], deps?: Omit<SummarizeDeps, "scope">): Promise<Summary>;
|
|
54
|
+
/**
|
|
55
|
+
* Branch-scope summarization: archive an abandoned branch into one digest. Folds
|
|
56
|
+
* branch-summarization into the same machinery behind the scope flag — re-exported
|
|
57
|
+
* from the summarize subsystem so this module is the single condenser entrypoint.
|
|
58
|
+
*/
|
|
59
|
+
export { condenseScope };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget contract — the FROZEN type surface of the context-window
|
|
3
|
+
* budgeting subsystem (Phase 3, subsystem 05).
|
|
4
|
+
*
|
|
5
|
+
* A long-running coding session accrues messages — user turns, assistant turns,
|
|
6
|
+
* tool calls and their results — until the transcript approaches the model's
|
|
7
|
+
* context window. This subsystem keeps the session usable by *condensing* older
|
|
8
|
+
* history into a single structured summary message while keeping a verbatim
|
|
9
|
+
* tail of the most-recent turns. It answers three questions:
|
|
10
|
+
*
|
|
11
|
+
* 1. **Budget** — *when* are we over budget? A {@link BudgetPolicy} carries
|
|
12
|
+
* config-sourced thresholds (no magic literals); {@link isOverBudget}
|
|
13
|
+
* decides from a real {@link TokenEstimate}.
|
|
14
|
+
* 2. **Slice** — *where* do we cut? {@link planSlice} computes a
|
|
15
|
+
* {@link CondensePlan} via a forward prefix-sum + binary search over a
|
|
16
|
+
* cumulative-token array, never splitting a tool_call from its tool_result.
|
|
17
|
+
* 3. **Condense** — *how* do we compress the dropped portion? A
|
|
18
|
+
* {@link Condenser} flattens the dropped messages, asks an injectable model
|
|
19
|
+
* completer for a structured {@link Summary}, and returns the rebuilt
|
|
20
|
+
* transcript (summary + kept tail).
|
|
21
|
+
*
|
|
22
|
+
* This file declares *only* shapes plus the function-type seams — no behavior,
|
|
23
|
+
* no I/O, no prompt strings. Every later window-budget module (the meter, the
|
|
24
|
+
* slice planner, the condenser, the branch archivist, the prompt templates, and
|
|
25
|
+
* the public barrel) is written against the names declared here.
|
|
26
|
+
*
|
|
27
|
+
* Design stance:
|
|
28
|
+
* - Thresholds are **configuration, not constants**. {@link BudgetPolicy}
|
|
29
|
+
* fields are supplied by the caller; this module bakes in no fixed token
|
|
30
|
+
* fingerprints. Defaults, if any, live in the implementation and are
|
|
31
|
+
* computed relative to the model's own context window.
|
|
32
|
+
* - Branch-summarization is **not a separate engine**. It collapses into the
|
|
33
|
+
* condenser behind a {@link CondenseScope} flag (`"session" | "branch"`),
|
|
34
|
+
* so there is one prompt-assembly path, one token estimator, one slicer.
|
|
35
|
+
* - The model completer is **injectable** ({@link CompleteFn}, default the
|
|
36
|
+
* framework's `completeSimple`) so the condenser runs in tests with no
|
|
37
|
+
* network.
|
|
38
|
+
* - The produced condenser is **conductor-consumable**: a {@link Condenser}
|
|
39
|
+
* is structurally a conductor `CondenseFn`
|
|
40
|
+
* (`(messages: AgentMessage[]) => AgentMessage[] | Promise<AgentMessage[]>`),
|
|
41
|
+
* so a {@link CondenserDeps}-built condenser plugs straight into the
|
|
42
|
+
* conductor's auto-compaction seam.
|
|
43
|
+
*
|
|
44
|
+
* Framework anchors (all from the `indusagi` package — the sibling rebuilt
|
|
45
|
+
* framework this app targets):
|
|
46
|
+
* - `AgentMessage` ← `indusagi/agent`
|
|
47
|
+
* - `Model`, `Usage`, `completeSimple` (and its `Api`/`AssistantMessage`/
|
|
48
|
+
* `Context`/`SimpleStreamOptions`/`StreamLogger` shapes) ← `indusagi/ai`
|
|
49
|
+
*
|
|
50
|
+
* This module never re-declares these; it composes them.
|
|
51
|
+
*/
|
|
52
|
+
import type { AgentMessage } from "indusagi/agent";
|
|
53
|
+
import type { Api, AssistantMessage, Context, Model, SimpleStreamOptions, StreamLogger, Usage } from "indusagi/ai";
|
|
54
|
+
/** Re-exported framework vocabulary window-budget consumers routinely need. */
|
|
55
|
+
export type { AgentMessage, Model, Usage };
|
|
56
|
+
/**
|
|
57
|
+
* The config-sourced thresholds that govern when and how the transcript is
|
|
58
|
+
* condensed. Every field is a *number the caller supplies* — there are no magic
|
|
59
|
+
* token literals baked into this contract. An implementation may
|
|
60
|
+
* provide defaults, but they are configuration values, not protected constants,
|
|
61
|
+
* and deliberately differ from the legacy fingerprints.
|
|
62
|
+
*/
|
|
63
|
+
export interface BudgetPolicy {
|
|
64
|
+
/**
|
|
65
|
+
* Fraction of the model's `contextWindow` at which condensing is triggered,
|
|
66
|
+
* in `(0, 1]`. The meter is "over budget" once the estimated context tokens
|
|
67
|
+
* cross `contextWindow * triggerRatio`. Expressing the trigger as a ratio
|
|
68
|
+
* (rather than an absolute reserve) keeps it window-relative and free of
|
|
69
|
+
* baked-in token counts.
|
|
70
|
+
*/
|
|
71
|
+
readonly triggerRatio: number;
|
|
72
|
+
/**
|
|
73
|
+
* How much of the recent transcript to keep verbatim, measured in estimated
|
|
74
|
+
* tokens. The slice planner preserves a tail of at least this many tokens
|
|
75
|
+
* (snapped to a legal boundary) and condenses everything before it.
|
|
76
|
+
*/
|
|
77
|
+
readonly keepRecent: number;
|
|
78
|
+
/**
|
|
79
|
+
* Optional token headroom to subtract from the window before the trigger is
|
|
80
|
+
* evaluated — a safety margin so a condense fires *before* the very next turn
|
|
81
|
+
* would overflow. When omitted, only {@link triggerRatio} governs the trigger.
|
|
82
|
+
*/
|
|
83
|
+
readonly reserveTokens?: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The outcome of measuring a transcript against a model's window. Anchors on the
|
|
87
|
+
* provider's authoritative `usage` count when available (`anchored: true`) and
|
|
88
|
+
* falls back to a rough char/role estimate otherwise; either way `contextTokens`
|
|
89
|
+
* is the figure {@link isOverBudget} compares to `contextWindow`.
|
|
90
|
+
*/
|
|
91
|
+
export interface TokenEstimate {
|
|
92
|
+
/** Best estimate of tokens currently occupying the context window. */
|
|
93
|
+
readonly contextTokens: number;
|
|
94
|
+
/** The model's total context window, in tokens (`Model.contextWindow`). */
|
|
95
|
+
readonly contextWindow: number;
|
|
96
|
+
/**
|
|
97
|
+
* `true` when {@link contextTokens} is anchored on a real provider `usage`
|
|
98
|
+
* figure (only trailing, post-usage messages are estimated); `false` when the
|
|
99
|
+
* whole figure is a heuristic estimate.
|
|
100
|
+
*/
|
|
101
|
+
readonly anchored: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The pre-computed result of {@link planSlice}: the chosen cut index and the
|
|
105
|
+
* resulting partition of the transcript.
|
|
106
|
+
*
|
|
107
|
+
* The cut is found by a *forward* prefix-sum + binary search: build a cumulative
|
|
108
|
+
* estimated-token array over the messages, binary-search for the boundary index
|
|
109
|
+
* nearest `total - keepRecent`, then nudge to the closest *legal* boundary —
|
|
110
|
+
* never landing between a `toolCall` and its `toolResult`.
|
|
111
|
+
*
|
|
112
|
+
* Invariants:
|
|
113
|
+
* - `kept.length + dropped.length === messages.length`
|
|
114
|
+
* - `dropped` is the prefix `messages[0 .. cut)` (the older slice to condense)
|
|
115
|
+
* - `kept` is the suffix `messages[cut ..]` (the verbatim recent tail)
|
|
116
|
+
* - `cut` is `0` when nothing is condensable (everything kept).
|
|
117
|
+
*/
|
|
118
|
+
export interface CondensePlan {
|
|
119
|
+
/** Index of the legal cut boundary: `dropped = messages.slice(0, cut)`. */
|
|
120
|
+
readonly cut: number;
|
|
121
|
+
/** The verbatim recent tail preserved as-is (`messages.slice(cut)`). */
|
|
122
|
+
readonly kept: AgentMessage[];
|
|
123
|
+
/** The older slice to be folded into a {@link Summary} (`messages.slice(0, cut)`). */
|
|
124
|
+
readonly dropped: AgentMessage[];
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Which kind of condensing run this is — the flag that collapses
|
|
128
|
+
* branch-summarization into the single condenser path:
|
|
129
|
+
* - `"session"` — condense the *active* transcript in place (the trigger /
|
|
130
|
+
* overflow path); keeps a recent tail, summarizes the head.
|
|
131
|
+
* - `"branch"` — archive an *abandoned* branch into one summary message so its
|
|
132
|
+
* context isn't lost on tree navigation; no verbatim tail is retained.
|
|
133
|
+
*/
|
|
134
|
+
export type CondenseScope = "session" | "branch";
|
|
135
|
+
/**
|
|
136
|
+
* The structured result of summarizing a slice of dropped messages: a single
|
|
137
|
+
* synthetic {@link AgentMessage} that stands in for the messages it covers.
|
|
138
|
+
*/
|
|
139
|
+
export interface Summary {
|
|
140
|
+
/** The synthetic summary message to splice into the rebuilt transcript. */
|
|
141
|
+
readonly message: AgentMessage;
|
|
142
|
+
/** How many source messages this summary replaces. */
|
|
143
|
+
readonly coveredCount: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The injectable model-completion function. Structurally identical to the
|
|
147
|
+
* framework's `completeSimple`, so the real `completeSimple` is the drop-in
|
|
148
|
+
* default and a test can pass a no-network stub of the same shape. The
|
|
149
|
+
* condenser uses this single call to turn flattened transcript text into a
|
|
150
|
+
* {@link Summary}.
|
|
151
|
+
*/
|
|
152
|
+
export type CompleteFn = <TApi extends Api>(model: Model<TApi>, context: Context, options?: SimpleStreamOptions, logger?: StreamLogger) => Promise<AssistantMessage>;
|
|
153
|
+
/**
|
|
154
|
+
* A condenser: takes the active branch's messages and returns the rebuilt
|
|
155
|
+
* transcript (condensed head + verbatim tail, or the input unchanged when there
|
|
156
|
+
* is nothing to do).
|
|
157
|
+
*
|
|
158
|
+
* This type is **structurally compatible with the conductor's `CondenseFn`**
|
|
159
|
+
* (`(messages: AgentMessage[]) => AgentMessage[] | Promise<AgentMessage[]>`), so
|
|
160
|
+
* the result of the condenser factory plugs directly into the conductor's
|
|
161
|
+
* auto-compaction seam with no adapter.
|
|
162
|
+
*/
|
|
163
|
+
export type Condenser = (messages: AgentMessage[]) => AgentMessage[] | Promise<AgentMessage[]>;
|
|
164
|
+
/**
|
|
165
|
+
* Dependencies for building a {@link Condenser}. All fields are optional so a
|
|
166
|
+
* bare `createCondenser()` yields a working, network-free-testable condenser:
|
|
167
|
+
* - `complete` defaults to the framework's `completeSimple`.
|
|
168
|
+
* - `policy` defaults to the implementation's config-sourced thresholds.
|
|
169
|
+
* - `model` is the summarization model; when omitted the condenser may fall
|
|
170
|
+
* back to a no-op (return input unchanged) rather than guess a model.
|
|
171
|
+
*/
|
|
172
|
+
export interface CondenserDeps {
|
|
173
|
+
/**
|
|
174
|
+
* The injectable model completer (default: framework `completeSimple`). Inject
|
|
175
|
+
* a stub of {@link CompleteFn} shape to run the condenser with no network.
|
|
176
|
+
*/
|
|
177
|
+
readonly complete?: CompleteFn;
|
|
178
|
+
/** The model used to write the summary. When omitted, condensing is a no-op. */
|
|
179
|
+
readonly model?: Model<Api>;
|
|
180
|
+
/** The config-sourced budget thresholds (default: implementation defaults). */
|
|
181
|
+
readonly policy?: BudgetPolicy;
|
|
182
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* The context-window budgeting subsystem: token measurement, slice planning,
|
|
5
|
+
* and transcript condensing (with branch-archival collapsed in behind a scope
|
|
6
|
+
* flag). Re-exports the frozen contract types plus the live functions: the
|
|
7
|
+
* budget math (estimateTokens / isOverBudget / planSlice), the summarization core
|
|
8
|
+
* (summarize / condenseScope), and the conductor-consumable condenser factory
|
|
9
|
+
* (createCondenser / condense).
|
|
10
|
+
*/
|
|
11
|
+
export type { AgentMessage, BudgetPolicy, CompleteFn, CondensePlan, Condenser, CondenserDeps, CondenseScope, Model, Summary, TokenEstimate, Usage, } from "./contract.js";
|
|
12
|
+
export { budgetLimit, estimateMessageTokens, estimateTokens, isOverBudget, planSlice, prefixTokens, } from "./budget/index.js";
|
|
13
|
+
export { buildSummaryPrompt, CONDENSER_BRIEF, flattenTranscript, summarize, } from "./summarize/index.js";
|
|
14
|
+
export type { SummarizeDeps } from "./summarize/index.js";
|
|
15
|
+
export { condense, condenseScope, createCondenser } from "./condenser.js";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget — model-driven summarization.
|
|
3
|
+
*
|
|
4
|
+
* {@link summarize} is the single condensing primitive: given the dropped prefix
|
|
5
|
+
* of a transcript and a {@link SummarizeDeps} bundle, it flattens those messages,
|
|
6
|
+
* asks the injectable model completer to write a structured digest, and returns a
|
|
7
|
+
* synthetic {@link Summary} message that stands in for the slice it covers.
|
|
8
|
+
*
|
|
9
|
+
* Both condensing scopes flow through this one function:
|
|
10
|
+
* - `"session"` — the active-session checkpoint (head condensed, tail kept by
|
|
11
|
+
* the caller).
|
|
12
|
+
* - `"branch"` — an abandoned branch archived into one message.
|
|
13
|
+
* The only difference is the scope flag forwarded into {@link buildSummaryPrompt}
|
|
14
|
+
* (which selects the framing line). {@link condenseScope} is the thin
|
|
15
|
+
* branch-archival entrypoint that pins `scope: "branch"`.
|
|
16
|
+
*
|
|
17
|
+
* The completer is injectable ({@link SummarizeDeps.complete}, default the
|
|
18
|
+
* framework's `completeSimple`) so tests run with no network — pass a stub that
|
|
19
|
+
* returns a canned {@link AssistantMessage}. When no `model` is supplied there is
|
|
20
|
+
* nothing to call, so {@link summarize} degrades to a deterministic local digest
|
|
21
|
+
* rather than guessing a model — keeping it usable in a bare/offline build.
|
|
22
|
+
*/
|
|
23
|
+
import type { AgentMessage, CompleteFn, CondenseScope, Model, Summary } from "../contract.js";
|
|
24
|
+
import { flattenTranscript } from "./prompt.js";
|
|
25
|
+
/**
|
|
26
|
+
* What {@link summarize} needs. Every field is optional so the function is
|
|
27
|
+
* network-free-testable: omit `model` for a local fallback digest, or inject a
|
|
28
|
+
* `complete` stub for a scripted model response.
|
|
29
|
+
*/
|
|
30
|
+
export interface SummarizeDeps {
|
|
31
|
+
/** Injectable completer (default: framework `completeSimple`). */
|
|
32
|
+
readonly complete?: CompleteFn;
|
|
33
|
+
/** The summarization model. When omitted, a deterministic local digest is used. */
|
|
34
|
+
readonly model?: Model<Model<string>["api"]>;
|
|
35
|
+
/** Which kind of condense this is; defaults to `"session"`. */
|
|
36
|
+
readonly scope?: CondenseScope;
|
|
37
|
+
/** An earlier digest to refresh/extend (iterative-refresh / branch carry-in). */
|
|
38
|
+
readonly priorDigest?: string;
|
|
39
|
+
/** Cancellation signal forwarded to the completer. */
|
|
40
|
+
readonly signal?: AbortSignal;
|
|
41
|
+
/**
|
|
42
|
+
* Optional cap on the digest size, in tokens, forwarded to the completer's
|
|
43
|
+
* `maxTokens`. A modest ceiling keeps the summary itself from eating the
|
|
44
|
+
* window. When omitted the model's own default applies.
|
|
45
|
+
*/
|
|
46
|
+
readonly maxTokens?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Summarize a slice of dropped messages into a single synthetic {@link Summary}.
|
|
50
|
+
*
|
|
51
|
+
* One code path for both scopes — `deps.scope` (default `"session"`) only changes
|
|
52
|
+
* the prompt framing. With a `model` bound it calls `deps.complete`
|
|
53
|
+
* (default `completeSimple`) once with {@link CONDENSER_BRIEF} as the system
|
|
54
|
+
* prompt and {@link buildSummaryPrompt} as the user turn; otherwise it returns a
|
|
55
|
+
* deterministic local digest. Never throws on an empty model reply — it falls
|
|
56
|
+
* back to the local digest so a {@link Summary} is always produced.
|
|
57
|
+
*
|
|
58
|
+
* @returns a {@link Summary} whose `message` replaces the `coveredCount` source
|
|
59
|
+
* messages it summarizes.
|
|
60
|
+
*/
|
|
61
|
+
export declare function summarize(messages: AgentMessage[], deps?: SummarizeDeps): Promise<Summary>;
|
|
62
|
+
/**
|
|
63
|
+
* Branch-archival entrypoint: condense an abandoned branch into one summary
|
|
64
|
+
* message. A thin wrapper that pins `scope: "branch"` and delegates to
|
|
65
|
+
* {@link summarize} — the branch case is the same machinery, not a separate
|
|
66
|
+
* engine.
|
|
67
|
+
*/
|
|
68
|
+
export declare function condenseScope(messages: AgentMessage[], deps?: Omit<SummarizeDeps, "scope">): Promise<Summary>;
|
|
69
|
+
/** Re-export the flattener so callers can preview what the model will receive. */
|
|
70
|
+
export { flattenTranscript };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget — summarization subsystem barrel.
|
|
3
|
+
*
|
|
4
|
+
* Model-driven condensing of the dropped transcript prefix into one synthetic
|
|
5
|
+
* summary message, with re-authored prompts (new section names + a new tag
|
|
6
|
+
* vocabulary). Branch-archival folds in behind the scope flag — `condenseScope`
|
|
7
|
+
* is the branch entrypoint over the same `summarize` core.
|
|
8
|
+
*/
|
|
9
|
+
export { buildSummaryPrompt, CONDENSER_BRIEF, flattenTranscript, } from "./prompt.js";
|
|
10
|
+
export { condenseScope, summarize } from "./condense.js";
|
|
11
|
+
export type { SummarizeDeps } from "./condense.js";
|
|
12
|
+
export type { AgentMessage, CompleteFn, CondenseScope, Model, Summary, } from "../contract.js";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Window-budget — summarization prompt assembly (re-authored).
|
|
3
|
+
*
|
|
4
|
+
* When the transcript crosses budget, the older head is *condensed* into one
|
|
5
|
+
* synthetic message. This module turns the dropped slice of {@link AgentMessage}s
|
|
6
|
+
* into the single text payload handed to the model completer. Two pieces ship
|
|
7
|
+
* here:
|
|
8
|
+
*
|
|
9
|
+
* 1. {@link CONDENSER_BRIEF} — the system-prompt brief that frames the model as
|
|
10
|
+
* a *recorder*, not a continuation of the chat: read the transcript as data
|
|
11
|
+
* and emit only the structured digest.
|
|
12
|
+
* 2. {@link buildSummaryPrompt} — flattens the dropped messages into a tagged
|
|
13
|
+
* block and appends the section template the model fills in.
|
|
14
|
+
*
|
|
15
|
+
* OWN VOCABULARY (an original prompt design):
|
|
16
|
+
* - Section headings are `# Objective / # Guardrails /
|
|
17
|
+
* # Status (Shipped / Active / Stuck) / # Rationale / # Plan / # Carryover`.
|
|
18
|
+
* - The transcript is wrapped in `<scrollback>…</scrollback>` and a prior digest
|
|
19
|
+
* (the branch-archival / iterative-refresh path) in
|
|
20
|
+
* `<carried-digest>…</carried-digest>`.
|
|
21
|
+
* - Per-message lines use `» role:` markers (`» you`, `» agent`,
|
|
22
|
+
* `» agent.plan`, `» agent.call`, `» tool`).
|
|
23
|
+
*
|
|
24
|
+
* No token math, no model calls, no I/O here — only string assembly. The scope
|
|
25
|
+
* flag selects the framing line (active-session checkpoint vs abandoned-branch
|
|
26
|
+
* archive); everything else is one code path.
|
|
27
|
+
*/
|
|
28
|
+
import type { AgentMessage, CondenseScope } from "../contract.js";
|
|
29
|
+
/**
|
|
30
|
+
* The system-prompt brief for the condenser model. Frames the request as a
|
|
31
|
+
* record-keeping task — the model must NOT answer, continue, or act on the
|
|
32
|
+
* conversation; it only transcribes it into the fixed section layout. Re-authored
|
|
33
|
+
* wording; shares no sentences with the legacy `SUMMARIZATION_SYSTEM_PROMPT`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CONDENSER_BRIEF: string;
|
|
36
|
+
/**
|
|
37
|
+
* Flatten a list of messages into a single `\n`-joined block of `» role:` lines.
|
|
38
|
+
* Exported so the condenser can reuse it for diagnostics/tests.
|
|
39
|
+
*/
|
|
40
|
+
export declare function flattenTranscript(messages: AgentMessage[]): string;
|
|
41
|
+
/**
|
|
42
|
+
* Build the full summarization prompt for a slice of dropped messages.
|
|
43
|
+
*
|
|
44
|
+
* The result is one string: the scope framing, the flattened transcript wrapped
|
|
45
|
+
* in `<scrollback>`, an optional carried digest wrapped in `<carried-digest>`
|
|
46
|
+
* (the iterative-refresh / branch-archival input), and the section template the
|
|
47
|
+
* model fills in. Pass this as the user turn to the injectable completer; pair it
|
|
48
|
+
* with {@link CONDENSER_BRIEF} as the system prompt.
|
|
49
|
+
*
|
|
50
|
+
* @param messages the dropped prefix to summarize
|
|
51
|
+
* @param scope `"session"` (active checkpoint) or `"branch"` (archive)
|
|
52
|
+
* @param priorDigest an optional earlier digest to refresh/extend, threaded in
|
|
53
|
+
* under `<carried-digest>` so the model merges rather than
|
|
54
|
+
* re-derives. Omit for a first-pass condense.
|
|
55
|
+
*/
|
|
56
|
+
export declare function buildSummaryPrompt(messages: AgentMessage[], scope: CondenseScope, priorDigest?: string): string;
|