indusagi-coding-agent 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19250 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SessionLibrary — the catalog-and-navigation layer over persisted transcripts.
|
|
3
|
+
*
|
|
4
|
+
* The conductor owns a single session at a time as a {@link TranscriptStore}.
|
|
5
|
+
* The library owns the *collection*: it scans the workspace `sessions/`
|
|
6
|
+
* directory for the NDJSON files the conductor's filesystem backend writes,
|
|
7
|
+
* lists them as {@link SavedSession} catalog rows, opens any one back into a
|
|
8
|
+
* live store via the store's own loader + {@link replay} reducer, and offers the
|
|
9
|
+
* two read projections a chooser UI needs — a flattened {@link BranchNode} tree
|
|
10
|
+
* for a branch navigator and a {@link PriorTurn} list for re-asking an earlier
|
|
11
|
+
* prompt. It also performs the two file-level mutations a manager needs:
|
|
12
|
+
* renaming and deleting a session on disk.
|
|
13
|
+
*
|
|
14
|
+
* The library never re-implements transcript parsing or message serialization —
|
|
15
|
+
* it delegates entirely to the conductor's transcript-store surface
|
|
16
|
+
* ({@link TranscriptStore}, {@link fsBackend}, {@link replay}). Its own logic is
|
|
17
|
+
* purely the directory enumeration, the tree flatten, and the text reduction.
|
|
18
|
+
*/
|
|
19
|
+
import { TranscriptStore } from "../conductor";
|
|
20
|
+
import type { BranchNode, PriorTurn, SavedSession } from "./contract";
|
|
21
|
+
/** Construction inputs — just the directory sessions live under. */
|
|
22
|
+
export interface SessionLibraryOptions {
|
|
23
|
+
/** Absolute path to the workspace `sessions/` directory. */
|
|
24
|
+
readonly sessionsDir: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The collection-level handle over a workspace's persisted sessions.
|
|
28
|
+
*
|
|
29
|
+
* Construct it with the resolved `sessionsDir` (from the workspace locator),
|
|
30
|
+
* then call {@link list} / {@link open} / {@link rename} / {@link remove} to
|
|
31
|
+
* manage files, and {@link tree} / {@link priorTurns} to project a loaded
|
|
32
|
+
* transcript for navigation and forking.
|
|
33
|
+
*/
|
|
34
|
+
export declare class SessionLibrary {
|
|
35
|
+
#private;
|
|
36
|
+
constructor(options: SessionLibraryOptions);
|
|
37
|
+
/** The sessions directory this library is rooted at. */
|
|
38
|
+
get directory(): string;
|
|
39
|
+
/**
|
|
40
|
+
* Enumerate persisted sessions as catalog rows, newest-modified first.
|
|
41
|
+
*
|
|
42
|
+
* Scans the directory for `*.ndjson` files and `stat`s each for its size and
|
|
43
|
+
* modification time. When `deep` is set, it also opens each file to fill in
|
|
44
|
+
* `messageCount` and the opening-turn `preview`; otherwise it returns the
|
|
45
|
+
* shallow rows (id/path/size/lastModified) so a large directory lists fast.
|
|
46
|
+
* A missing directory yields an empty list rather than an error.
|
|
47
|
+
*/
|
|
48
|
+
list(options?: {
|
|
49
|
+
readonly deep?: boolean;
|
|
50
|
+
}): Promise<SavedSession[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Open a persisted session back into a live, hydrated {@link TranscriptStore},
|
|
53
|
+
* or return `null` when no file with that id exists.
|
|
54
|
+
*
|
|
55
|
+
* Delegates to the store's own static opener, which reads the backend and
|
|
56
|
+
* rebuilds state through the {@link replay} reducer — the library adds nothing
|
|
57
|
+
* to the rehydration beyond binding the filesystem backend.
|
|
58
|
+
*/
|
|
59
|
+
open(id: string): Promise<TranscriptStore | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Rename a session file from one id to another, returning the new absolute
|
|
62
|
+
* path. The on-disk identifier *is* the filename stem, so this is a plain file
|
|
63
|
+
* move; the in-file head still names the old id, which the store tolerates on
|
|
64
|
+
* the next load (the head's leaf is what matters, not its session label).
|
|
65
|
+
*
|
|
66
|
+
* @throws if the source file is missing or the target id already exists.
|
|
67
|
+
*/
|
|
68
|
+
rename(fromId: string, toId: string): Promise<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Delete a session file. Returns `true` when a file was removed, `false` when
|
|
71
|
+
* there was nothing to delete — never throws on an already-absent session.
|
|
72
|
+
*/
|
|
73
|
+
remove(id: string): Promise<boolean>;
|
|
74
|
+
/** Absolute path a session id persists to. */
|
|
75
|
+
pathOf(id: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* Flatten a loaded transcript into an ordered {@link BranchNode} list for a
|
|
78
|
+
* tree navigator.
|
|
79
|
+
*
|
|
80
|
+
* Walks every node from each root downward in a stable depth-first order,
|
|
81
|
+
* emitting one row per node with its render label, depth indentation, leaf
|
|
82
|
+
* flag, and a current-marker derived from the store's active head. A node is a
|
|
83
|
+
* leaf when no other node names it as `parent`.
|
|
84
|
+
*/
|
|
85
|
+
tree(store: TranscriptStore): BranchNode[];
|
|
86
|
+
/**
|
|
87
|
+
* Extract the user prompts along a loaded transcript's active branch as fork
|
|
88
|
+
* candidates, in chronological order.
|
|
89
|
+
*
|
|
90
|
+
* Reads the root→leaf branch the store currently points at (the conversation
|
|
91
|
+
* the agent would replay) and keeps only the user-role nodes that carry real
|
|
92
|
+
* text, projecting each to a {@link PriorTurn} a forking picker can offer.
|
|
93
|
+
*/
|
|
94
|
+
priorTurns(store: TranscriptStore): PriorTurn[];
|
|
95
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SessionLibrary behavioral tests.
|
|
3
|
+
*
|
|
4
|
+
* Exercises the catalog-and-navigation layer end-to-end against a real temp
|
|
5
|
+
* `sessions/` directory: we seed a couple of sessions by driving real
|
|
6
|
+
* {@link TranscriptStore}s over a filesystem backend (so the on-disk NDJSON is
|
|
7
|
+
* the genuine format), then assert the library lists them, opens them, flattens
|
|
8
|
+
* the branch tree, and extracts prior user turns. File mutations (rename/remove)
|
|
9
|
+
* are checked too. No network, no framework agent — just disk + the store.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings subsystem — the typed surface of the user-tunable preferences an
|
|
3
|
+
* interactive coding-agent session reads at startup and while it runs.
|
|
4
|
+
*
|
|
5
|
+
* This module declares *only* shapes and frozen defaults — no I/O, no class, no
|
|
6
|
+
* filesystem. It is the single place every preference key is named, typed, and
|
|
7
|
+
* given a fallback. The two-tier manager ({@link "./manager"}) is written
|
|
8
|
+
* against the {@link Preferences} record declared here, and any console surface
|
|
9
|
+
* that toggles a preference reads its value through the same record.
|
|
10
|
+
*
|
|
11
|
+
* Design stance:
|
|
12
|
+
* - Every key is optional on the record so a partially-written file is a
|
|
13
|
+
* legal {@link Preferences} value; the manager fills the gaps from
|
|
14
|
+
* {@link DEFAULT_PREFERENCES} when a reader asks for a concrete value.
|
|
15
|
+
* - Reasoning-effort vocabulary is borrowed from the framework
|
|
16
|
+
* ({@link ThinkingLevel}) rather than re-declared, so the agent and the UI
|
|
17
|
+
* speak the same words.
|
|
18
|
+
* - The other small string unions ({@link ColourScheme} is a free string,
|
|
19
|
+
* while {@link EscapeAction}) pin the surfaces a console reads.
|
|
20
|
+
*/
|
|
21
|
+
import type { ThinkingLevel } from "indusagi/agent";
|
|
22
|
+
/** Re-exported framework reasoning vocabulary, surfaced through this contract. */
|
|
23
|
+
export type { ThinkingLevel };
|
|
24
|
+
/**
|
|
25
|
+
* What a double-tap of the escape key does in the interactive console.
|
|
26
|
+
*
|
|
27
|
+
* - `tree` — open the turn history as a navigable tree of branches.
|
|
28
|
+
* - `fork` — open the prior-turn picker to branch off an earlier turn.
|
|
29
|
+
* - `clear` — wipe the composer buffer.
|
|
30
|
+
*
|
|
31
|
+
* The legacy `rewind` / `branch` aliases are still accepted and treated as
|
|
32
|
+
* `fork` / `tree` respectively so an older preference file keeps working.
|
|
33
|
+
*/
|
|
34
|
+
export type EscapeAction = "tree" | "fork" | "clear" | "rewind" | "branch";
|
|
35
|
+
/** Every {@link EscapeAction} value, as a frozen tuple for menus and guards. */
|
|
36
|
+
export declare const ESCAPE_ACTIONS: readonly EscapeAction[];
|
|
37
|
+
/** Narrow an arbitrary value to a known {@link EscapeAction}. */
|
|
38
|
+
export declare function isEscapeAction(value: unknown): value is EscapeAction;
|
|
39
|
+
/**
|
|
40
|
+
* How a queue of pending turns (steering corrections or follow-up prompts) is
|
|
41
|
+
* drained back into the run.
|
|
42
|
+
*
|
|
43
|
+
* - `all` — release every queued turn at once on the next handoff.
|
|
44
|
+
* - `one-at-a-time` — release a single queued turn per handoff.
|
|
45
|
+
*/
|
|
46
|
+
export type DeliveryMode = "all" | "one-at-a-time";
|
|
47
|
+
/** Every {@link DeliveryMode} value, as a frozen tuple for menus and guards. */
|
|
48
|
+
export declare const DELIVERY_MODES: readonly DeliveryMode[];
|
|
49
|
+
/** Narrow an arbitrary value to a known {@link DeliveryMode}. */
|
|
50
|
+
export declare function isDeliveryMode(value: unknown): value is DeliveryMode;
|
|
51
|
+
/**
|
|
52
|
+
* Every preference an interactive coding-agent session reads, as one flat,
|
|
53
|
+
* fully-optional record.
|
|
54
|
+
*
|
|
55
|
+
* A value of this type may be the empty object (a brand-new install), a sparse
|
|
56
|
+
* project override, or a fully-populated global file — all three are legal.
|
|
57
|
+
* Concrete reads always go through the manager, which layers the project file
|
|
58
|
+
* over the global file over {@link DEFAULT_PREFERENCES}, so a reader never sees
|
|
59
|
+
* `undefined` for a key with a default.
|
|
60
|
+
*/
|
|
61
|
+
export interface Preferences {
|
|
62
|
+
/** Named colour scheme the console renders with (e.g. `"midnight"`). */
|
|
63
|
+
colourScheme?: string;
|
|
64
|
+
/** Whether inline image content is rendered in the transcript. */
|
|
65
|
+
showImages?: boolean;
|
|
66
|
+
/** Whether the model's reasoning / thinking text is shown as it streams. */
|
|
67
|
+
showReasoning?: boolean;
|
|
68
|
+
/** When true, the reasoning block is folded away even if the model emits one. */
|
|
69
|
+
hideThinking?: boolean;
|
|
70
|
+
/** Whether oversized images are shrunk to fit before being handed to a provider. */
|
|
71
|
+
imageAutoResize?: boolean;
|
|
72
|
+
/** When true, image content is withheld from providers entirely. */
|
|
73
|
+
blockImages?: boolean;
|
|
74
|
+
/** Whether discovered skills are surfaced as their own slash commands. */
|
|
75
|
+
enableSkillCommands?: boolean;
|
|
76
|
+
/** How queued steering corrections are released back into the run. */
|
|
77
|
+
steeringMode?: DeliveryMode;
|
|
78
|
+
/** How queued follow-up prompts are released back into the run. */
|
|
79
|
+
followUpMode?: DeliveryMode;
|
|
80
|
+
/** Prefer a condensed changelog after the console updates itself. */
|
|
81
|
+
collapseChangelog?: boolean;
|
|
82
|
+
/** Reveal the terminal's own cursor instead of the software-drawn caret. */
|
|
83
|
+
showHardwareCursor?: boolean;
|
|
84
|
+
/** Horizontal padding, in columns, around the prompt editor. */
|
|
85
|
+
editorPaddingX?: number;
|
|
86
|
+
/** Glob / id patterns selecting which models appear in the picker; empty means all. */
|
|
87
|
+
enabledModels?: string[];
|
|
88
|
+
/** Provider id the session defaults to when none is named (e.g. `"anthropic"`). */
|
|
89
|
+
defaultProvider?: string;
|
|
90
|
+
/** Model id the session opens with under {@link defaultProvider}. */
|
|
91
|
+
defaultModel?: string;
|
|
92
|
+
/** Reasoning effort the session requests by default. */
|
|
93
|
+
defaultThinkingLevel?: ThinkingLevel;
|
|
94
|
+
/** Suppress the banner / tips shown on a normal interactive launch. */
|
|
95
|
+
quietStartup?: boolean;
|
|
96
|
+
/** Whether the window-budget manager compacts the transcript automatically. */
|
|
97
|
+
autoCompact?: boolean;
|
|
98
|
+
/** What a double-escape does in the console. */
|
|
99
|
+
doubleEscapeAction?: EscapeAction;
|
|
100
|
+
/** Extension-package sources the launcher installs and loads (npm / git / local). */
|
|
101
|
+
extensionPackages?: string[];
|
|
102
|
+
}
|
|
103
|
+
/** The set of legal preference keys, derived from {@link Preferences}. */
|
|
104
|
+
export type SettingKey = keyof Preferences;
|
|
105
|
+
/**
|
|
106
|
+
* The fallback value for every preference, used whenever neither the project
|
|
107
|
+
* nor the global tier supplies a key.
|
|
108
|
+
*
|
|
109
|
+
* Frozen so it can be shared without a defensive copy; the manager spreads it
|
|
110
|
+
* rather than mutating it. Every key in {@link Preferences} appears here with a
|
|
111
|
+
* concrete (non-`undefined`) value, which is what lets a typed reader resolve a
|
|
112
|
+
* guaranteed result.
|
|
113
|
+
*/
|
|
114
|
+
export declare const DEFAULT_PREFERENCES: Required<Preferences>;
|
|
115
|
+
/** Every preference key, as a frozen tuple for iteration and validation. */
|
|
116
|
+
export declare const SETTING_KEYS: readonly SettingKey[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* One import site for the typed {@link Preferences} record and its
|
|
5
|
+
* {@link SettingKey} / {@link EscapeAction} / {@link ThinkingLevel}
|
|
6
|
+
* vocabularies, the frozen {@link DEFAULT_PREFERENCES}, and the two-tier
|
|
7
|
+
* {@link PreferenceStore} reader/writer. Console surfaces and boot stages depend
|
|
8
|
+
* on this module rather than reaching into the individual files.
|
|
9
|
+
*/
|
|
10
|
+
export type { Preferences, SettingKey, EscapeAction, DeliveryMode, ThinkingLevel, } from "./contract";
|
|
11
|
+
export { DEFAULT_PREFERENCES, SETTING_KEYS, ESCAPE_ACTIONS, isEscapeAction, DELIVERY_MODES, isDeliveryMode, } from "./contract";
|
|
12
|
+
export { PreferenceStore } from "./manager";
|
|
13
|
+
export type { PreferenceLocations } from "./manager";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings manager — the two-tier reader/writer over the preference record.
|
|
3
|
+
*
|
|
4
|
+
* Two files back the same {@link Preferences} shape:
|
|
5
|
+
*
|
|
6
|
+
* - the **global** file, one per machine, living in the resolved workspace
|
|
7
|
+
* profile directory ({@link Workspace.settingsPath});
|
|
8
|
+
* - the **project** file, one per checkout, living beside the working tree in
|
|
9
|
+
* a brand-named config directory.
|
|
10
|
+
*
|
|
11
|
+
* A read layers the project tier over the global tier over
|
|
12
|
+
* {@link DEFAULT_PREFERENCES}: a key set in the project file wins, then the
|
|
13
|
+
* global file, then the built-in default — so a reader of {@link PreferenceStore.get}
|
|
14
|
+
* always receives a concrete value. A write through {@link PreferenceStore.set}
|
|
15
|
+
* lands in the **project** tier only; the global file is left untouched, which
|
|
16
|
+
* keeps a per-checkout override from silently leaking machine-wide.
|
|
17
|
+
*
|
|
18
|
+
* Loading is tolerant: a missing file is the empty record, and a corrupt file
|
|
19
|
+
* (bad JSON, or a JSON value that is not an object) degrades to the empty record
|
|
20
|
+
* rather than throwing, so one mangled file never blocks startup.
|
|
21
|
+
*
|
|
22
|
+
* Construction is injectable. {@link PreferenceStore.fromWorkspace} resolves the
|
|
23
|
+
* two paths from a {@link Workspace} and the working directory; {@link PreferenceStore.atPaths}
|
|
24
|
+
* pins both paths directly, which is what the tests drive against a temp dir so
|
|
25
|
+
* the real home is never read or written.
|
|
26
|
+
*/
|
|
27
|
+
import type { Workspace } from "../boot/contract";
|
|
28
|
+
import { type Preferences, type SettingKey } from "./contract";
|
|
29
|
+
/**
|
|
30
|
+
* The resolved location of the two preference tiers.
|
|
31
|
+
*
|
|
32
|
+
* Both are absolute paths. The {@link global} file is machine-wide; the
|
|
33
|
+
* {@link project} file is per-checkout. Either may be absent on disk — the
|
|
34
|
+
* store treats a missing file as the empty record.
|
|
35
|
+
*/
|
|
36
|
+
export interface PreferenceLocations {
|
|
37
|
+
/** Machine-wide preference file (the global tier). */
|
|
38
|
+
readonly global: string;
|
|
39
|
+
/** Per-checkout preference file (the project tier). */
|
|
40
|
+
readonly project: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Two-tier preference store: project-over-global-over-default on read, and a
|
|
44
|
+
* project-tier write on save.
|
|
45
|
+
*
|
|
46
|
+
* Construct via {@link fromWorkspace} (resolve from the workspace + cwd) or
|
|
47
|
+
* {@link atPaths} (pin both files explicitly, as the tests do). Internally the
|
|
48
|
+
* two tiers are held in memory and refreshed from disk on construction and on
|
|
49
|
+
* {@link reload}; {@link set} stages a change into the in-memory project tier
|
|
50
|
+
* and {@link save} flushes it.
|
|
51
|
+
*/
|
|
52
|
+
export declare class PreferenceStore {
|
|
53
|
+
private readonly locations;
|
|
54
|
+
private globalTier;
|
|
55
|
+
private projectTier;
|
|
56
|
+
private constructor();
|
|
57
|
+
/**
|
|
58
|
+
* Build a store whose two tiers are pinned to explicit absolute paths.
|
|
59
|
+
*
|
|
60
|
+
* The direct seam used by tests: point both files at a temp dir and the real
|
|
61
|
+
* home is never touched. Neither file needs to exist yet.
|
|
62
|
+
*/
|
|
63
|
+
static atPaths(locations: PreferenceLocations): PreferenceStore;
|
|
64
|
+
/**
|
|
65
|
+
* Build a store from a resolved {@link Workspace} (global tier) and a working
|
|
66
|
+
* directory (project tier).
|
|
67
|
+
*
|
|
68
|
+
* The global file is {@link Workspace.settingsPath}; the project file is
|
|
69
|
+
* `<cwd>/<brand profile dir>/settings.json`, so a checkout carries its own
|
|
70
|
+
* overrides next to its source. `cwd` defaults to the process working
|
|
71
|
+
* directory.
|
|
72
|
+
*/
|
|
73
|
+
static fromWorkspace(workspace: Workspace, cwd?: string): PreferenceStore;
|
|
74
|
+
/** The two resolved file locations this store reads and writes. */
|
|
75
|
+
paths(): PreferenceLocations;
|
|
76
|
+
/** Re-read both tiers from disk, discarding any unsaved staged change. */
|
|
77
|
+
reload(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Read one preference, resolved across the tiers.
|
|
80
|
+
*
|
|
81
|
+
* Precedence is project → global → {@link DEFAULT_PREFERENCES}: the first tier
|
|
82
|
+
* that defines the key (with a non-`undefined` value) wins. The return type is
|
|
83
|
+
* the concrete default-backed type for the key, so callers never branch on
|
|
84
|
+
* `undefined`.
|
|
85
|
+
*/
|
|
86
|
+
get<K extends SettingKey>(key: K): Required<Preferences>[K];
|
|
87
|
+
/**
|
|
88
|
+
* Stage a preference into the in-memory **project** tier.
|
|
89
|
+
*
|
|
90
|
+
* Does not write to disk on its own — call {@link save} to persist. Setting a
|
|
91
|
+
* key to `undefined` clears the project-tier override for it, letting the
|
|
92
|
+
* value fall back to the global tier or the default on the next read.
|
|
93
|
+
*/
|
|
94
|
+
set<K extends SettingKey>(key: K, value: Preferences[K]): void;
|
|
95
|
+
/** The fully-resolved snapshot: defaults under global under project. */
|
|
96
|
+
snapshot(): Required<Preferences>;
|
|
97
|
+
/** The raw in-memory project tier (the keys a checkout overrides). */
|
|
98
|
+
projectOverrides(): Preferences;
|
|
99
|
+
/** The raw in-memory global tier (machine-wide keys). */
|
|
100
|
+
globalDefaults(): Preferences;
|
|
101
|
+
/**
|
|
102
|
+
* Persist the staged in-memory **project** tier to its file.
|
|
103
|
+
*
|
|
104
|
+
* Writes the project tier only; the global file is never rewritten here, so a
|
|
105
|
+
* per-checkout `set` cannot mutate machine-wide preferences. Creates the
|
|
106
|
+
* containing directory if it is missing.
|
|
107
|
+
*/
|
|
108
|
+
save(): void;
|
|
109
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings subsystem — unit tests.
|
|
3
|
+
*
|
|
4
|
+
* Everything runs against a temp directory pinned through
|
|
5
|
+
* {@link PreferenceStore.atPaths}; the real home is never read or written. The
|
|
6
|
+
* tests pin the public store behaviour:
|
|
7
|
+
*
|
|
8
|
+
* 1. Defaults load: a store over two non-existent files resolves every key to
|
|
9
|
+
* its {@link DEFAULT_PREFERENCES} value.
|
|
10
|
+
* 2. Precedence: a key present in both tiers reads from the project tier, and
|
|
11
|
+
* a key present only globally still resolves; a corrupt project file falls
|
|
12
|
+
* back to defaults without throwing.
|
|
13
|
+
* 3. Round-trip: a `set` + `save` writes the project file, and a fresh store
|
|
14
|
+
* over the same paths reads the persisted value back.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transcript-export subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* The HTML transcript publisher and its supporting machinery: the table-driven
|
|
5
|
+
* SGR painter ({@link paintSgr}) that turns terminal-styled output into safe HTML
|
|
6
|
+
* spans, the {@link ThemeBridge} that computes export colors from an
|
|
7
|
+
* {@link ExportTheme} via a WCAG luminance LUT, the regenerated page-shell
|
|
8
|
+
* {@link PAGE_SHELL} template with its `{{TOKEN}}` slots and {@link fill} helper,
|
|
9
|
+
* and {@link publishTranscript} which renders a session transcript to a
|
|
10
|
+
* standalone HTML document using `marked`, `highlight.js`, and the painter.
|
|
11
|
+
*
|
|
12
|
+
* Consumers import the publish surface from `src/transcript-export` rather than
|
|
13
|
+
* reaching into individual modules.
|
|
14
|
+
*/
|
|
15
|
+
export { paintSgr, tokenizeSgr, foldSgr, SGR_CODE_TABLE } from "./sgr";
|
|
16
|
+
export { DefaultThemeBridge, createThemeBridge, buildLuminanceLut, parseColor, formatColor, } from "./theme-bridge";
|
|
17
|
+
export { PAGE_SHELL, PAGE_STYLES, CLIENT_SCRIPT, fill, type SlotValues, } from "./template";
|
|
18
|
+
export { publishTranscript, type PublishEntry, type PublishMessage, type PublishRole, type MessagePart, } from "./publish";
|
|
19
|
+
export { FALLBACK_EXPORT_THEME, SHELL_SLOTS, SGR_INITIAL_STATE, briefingFault, } from "../briefing/contract";
|
|
20
|
+
export type { ExportTheme, ThemeBridge, ThemeMode, LuminanceLut, Rgb, SgrState, SgrToken, SgrMutation, PublishOptions, WidgetRender, TranscriptPart, ShellSlot, } from "../briefing/contract";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* publishTranscript — render a session transcript to a standalone, self-contained
|
|
3
|
+
* HTML document.
|
|
4
|
+
*
|
|
5
|
+
* The publisher takes a list of transcript entries (each carrying a framework
|
|
6
|
+
* message) and produces one HTML string with no external dependencies: prose is
|
|
7
|
+
* rendered to HTML with `marked`, fenced code is syntax-highlighted with
|
|
8
|
+
* `highlight.js`, terminal-styled tool output is painted to spans by
|
|
9
|
+
* {@link paintSgr}, and all colors come from a {@link ThemeBridge} over an
|
|
10
|
+
* {@link ExportTheme}. Markdown and highlighting are run *here*, at publish time,
|
|
11
|
+
* so the rendered HTML is baked into the page payload and the page needs no
|
|
12
|
+
* client-side parser to display — the page ships ready to read.
|
|
13
|
+
*
|
|
14
|
+
* The two third-party libraries this layer leans on are MIT (`marked`) and
|
|
15
|
+
* BSD-3-Clause (`highlight.js`); their license notices are preserved verbatim in
|
|
16
|
+
* the emitted document (the `MARKED_LIB` / `HIGHLIGHT_LIB` shell slots) as the
|
|
17
|
+
* licenses require, while the libraries themselves are used, never reimplemented.
|
|
18
|
+
*/
|
|
19
|
+
import { type ImageContent, type PublishOptions, type TextContent } from "../briefing/contract";
|
|
20
|
+
/**
|
|
21
|
+
* The conversational role a published turn carries. Mirrors the conductor's node
|
|
22
|
+
* roles but is declared locally so the publisher depends only on the briefing
|
|
23
|
+
* contract, not on the conductor subsystem.
|
|
24
|
+
*/
|
|
25
|
+
export type PublishRole = "user" | "assistant" | "tool" | "system" | "condense" | "note";
|
|
26
|
+
/**
|
|
27
|
+
* One transcript node the publisher consumes. Structurally a subset of the
|
|
28
|
+
* conductor's persisted entry: a `role` for attribution and a `message` carrying
|
|
29
|
+
* the framework content this node renders. The `message` is read with narrow
|
|
30
|
+
* structural access so the publisher never imports the framework message union.
|
|
31
|
+
*/
|
|
32
|
+
export interface PublishEntry {
|
|
33
|
+
/** Attribution role for this node. */
|
|
34
|
+
readonly role: PublishRole;
|
|
35
|
+
/** The framework message payload to render. */
|
|
36
|
+
readonly message: PublishMessage;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The narrow view of a framework message the publisher reads. Covers the three
|
|
40
|
+
* concrete message roles' content shapes plus the tool-call linkage a tool result
|
|
41
|
+
* carries, without redeclaring the whole framework union.
|
|
42
|
+
*/
|
|
43
|
+
export interface PublishMessage {
|
|
44
|
+
/** The framework message role. */
|
|
45
|
+
readonly role: string;
|
|
46
|
+
/** The message content — a bare string or a list of content parts. */
|
|
47
|
+
readonly content: string | readonly MessagePart[];
|
|
48
|
+
/** Present on tool-result messages; links the node to its originating call. */
|
|
49
|
+
readonly toolCallId?: string;
|
|
50
|
+
/** Present on tool-result messages; the invoked tool's display name. */
|
|
51
|
+
readonly toolName?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The content-part union the publisher renders. Text and image parts alias the
|
|
55
|
+
* framework's; thinking and tool-call parts are read structurally so the
|
|
56
|
+
* assistant turn can surface a call's name and arguments.
|
|
57
|
+
*/
|
|
58
|
+
export type MessagePart = TextContent | ImageContent | {
|
|
59
|
+
readonly type: "thinking";
|
|
60
|
+
readonly thinking: string;
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: "toolCall";
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly name: string;
|
|
65
|
+
readonly arguments: Readonly<Record<string, unknown>>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Render a session transcript to a standalone HTML document.
|
|
69
|
+
*
|
|
70
|
+
* Configures the markdown + highlight pipeline, renders every entry to a turn,
|
|
71
|
+
* serializes the turns into a base64 payload, resolves the theme through a
|
|
72
|
+
* {@link ThemeBridge}, and fills the page shell. The returned string is a complete
|
|
73
|
+
* `<!doctype html>` document with all styling, content, and the preserved library
|
|
74
|
+
* notices inlined — it can be written to disk and opened directly.
|
|
75
|
+
*
|
|
76
|
+
* @param entries the transcript nodes to publish, in display order
|
|
77
|
+
* @param opts optional theme, title, output directory, and widget overrides
|
|
78
|
+
* @returns the rendered standalone HTML document
|
|
79
|
+
* @throws a {@link briefingFault} of kind `"publish"` if assembly fails
|
|
80
|
+
*/
|
|
81
|
+
export declare function publishTranscript(entries: readonly PublishEntry[], opts?: PublishOptions): string;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SGR painter — a table-driven ANSI Select-Graphic-Rendition state machine that
|
|
3
|
+
* converts a terminal byte stream into a sequence of styled HTML spans.
|
|
4
|
+
*
|
|
5
|
+
* Terminal programs encode color and emphasis with CSI sequences of the form
|
|
6
|
+
* `ESC [ p1 ; p2 ; … m` (the trailing `m` is the SGR final byte). The parameters
|
|
7
|
+
* are small integers whose meaning is fixed by ECMA-48 / ISO 6429: `0` resets,
|
|
8
|
+
* `1`/`3`/`4` switch on weight/italic/underline, `30`–`37` and `90`–`97` set the
|
|
9
|
+
* foreground from the sixteen-color palette, `40`–`47` and `100`–`107` set the
|
|
10
|
+
* background, and the two extended introducers `38`/`48` pull a 256-index or a
|
|
11
|
+
* 24-bit triple out of the following parameters.
|
|
12
|
+
*
|
|
13
|
+
* Rather than a long `switch`, the semantics live in a *table*: each handled code
|
|
14
|
+
* maps to an {@link SgrMutation} — the partial {@link SgrState} that code imposes —
|
|
15
|
+
* and the painter folds the matched mutation over the running state. Extending the
|
|
16
|
+
* machine is adding a row, never editing control flow. The two extended
|
|
17
|
+
* introducers are the only parametric cases and are handled by a small reader
|
|
18
|
+
* that consumes their trailing parameters.
|
|
19
|
+
*
|
|
20
|
+
* The pipeline is three stages:
|
|
21
|
+
* 1. {@link tokenizeSgr} splits the raw stream into an alternation of text runs
|
|
22
|
+
* and SGR parameter lists ({@link SgrToken}s).
|
|
23
|
+
* 2. {@link foldSgr} folds an SGR parameter list into the running
|
|
24
|
+
* {@link SgrState} using the {@link SGR_CODE_TABLE} dispatch table.
|
|
25
|
+
* 3. {@link paintSgr} drives the two over the whole stream, wrapping each text
|
|
26
|
+
* run in a `<span>` whose class list and inline color style reflect the state
|
|
27
|
+
* in force.
|
|
28
|
+
*
|
|
29
|
+
* The {@link SgrState} / {@link SgrToken} / {@link SgrMutation} vocabulary is the
|
|
30
|
+
* briefing contract's; the SGR code meanings are the published standard's.
|
|
31
|
+
*/
|
|
32
|
+
import { type SgrMutation, type SgrState, type SgrToken } from "../briefing/contract";
|
|
33
|
+
/**
|
|
34
|
+
* The read-only public view of the SGR dispatch table — each fixed-meaning SGR
|
|
35
|
+
* code mapped to the {@link SgrMutation} it imposes. Exported so callers can
|
|
36
|
+
* introspect the handled code space (the extended `38`/`48` introducers are not
|
|
37
|
+
* present here; they are parametric and resolved by the painter).
|
|
38
|
+
*/
|
|
39
|
+
export declare const SGR_CODE_TABLE: ReadonlyMap<number, SgrMutation>;
|
|
40
|
+
/**
|
|
41
|
+
* Fold one SGR parameter list into a running {@link SgrState}, returning the next
|
|
42
|
+
* state.
|
|
43
|
+
*
|
|
44
|
+
* Walks the parameters left to right. A fixed-meaning code is resolved through
|
|
45
|
+
* the {@link CODE_TABLE} and its mutation merged over the state. The two extended
|
|
46
|
+
* introducers `38` (foreground) and `48` (background) are handled inline: the
|
|
47
|
+
* reader consumes their trailing `5;n` or `2;r;g;b` parameters and the resolved
|
|
48
|
+
* color is written to the matching channel. An empty list is the bare `ESC[m`
|
|
49
|
+
* form and is treated as a reset, matching terminal behavior.
|
|
50
|
+
*
|
|
51
|
+
* Pure: the input state is never mutated; a fresh object is returned.
|
|
52
|
+
*
|
|
53
|
+
* @param state the style in force before this sequence
|
|
54
|
+
* @param params the numeric parameter list of one SGR sequence
|
|
55
|
+
*/
|
|
56
|
+
export declare function foldSgr(state: SgrState, params: readonly number[]): SgrState;
|
|
57
|
+
/**
|
|
58
|
+
* Split a raw terminal stream into an ordered list of {@link SgrToken}s.
|
|
59
|
+
*
|
|
60
|
+
* Scans for CSI sequences of the form `ESC [ … m`. Each such sequence becomes an
|
|
61
|
+
* `sgr` token carrying its parsed numeric parameters (an empty selector yields an
|
|
62
|
+
* empty list, the bare-reset form). The runs of ordinary characters between
|
|
63
|
+
* sequences become `text` tokens. Non-SGR control sequences — any CSI whose final
|
|
64
|
+
* byte is not `m`, plus bare escapes — are dropped: they carry cursor and screen
|
|
65
|
+
* commands that have no place in flowed HTML, so swallowing them keeps the output
|
|
66
|
+
* clean while preserving every printable character.
|
|
67
|
+
*
|
|
68
|
+
* Empty `text` runs are never emitted, so the token stream is dense.
|
|
69
|
+
*
|
|
70
|
+
* @param input the raw ANSI/terminal byte stream
|
|
71
|
+
*/
|
|
72
|
+
export declare function tokenizeSgr(input: string): SgrToken[];
|
|
73
|
+
/**
|
|
74
|
+
* Paint an ANSI/terminal byte stream into a string of styled HTML spans.
|
|
75
|
+
*
|
|
76
|
+
* Drives the three stages end to end: tokenize the stream, fold each SGR sequence
|
|
77
|
+
* into the running {@link SgrState}, and wrap each intervening text run in a span
|
|
78
|
+
* reflecting the state in force when that run was emitted. Text is HTML-escaped;
|
|
79
|
+
* non-SGR control sequences are dropped; runs under the neutral state are emitted
|
|
80
|
+
* without a wrapping span. The result is safe to splice directly into a transcript
|
|
81
|
+
* page.
|
|
82
|
+
*
|
|
83
|
+
* The state resets to {@link SGR_INITIAL_STATE} only on an explicit reset code (or
|
|
84
|
+
* a bare `ESC[m`); it otherwise persists across text runs, so a color set once
|
|
85
|
+
* stays in force until changed, exactly as a terminal renders it.
|
|
86
|
+
*
|
|
87
|
+
* @param input the raw ANSI/terminal byte stream to convert
|
|
88
|
+
* @returns an HTML fragment of escaped text and styled `<span>`s
|
|
89
|
+
*/
|
|
90
|
+
export declare function paintSgr(input: string): string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page-shell template — the standalone HTML/CSS scaffold the transcript publisher
|
|
3
|
+
* fills.
|
|
4
|
+
*
|
|
5
|
+
* This module is a freshly authored single-file page: its own element names
|
|
6
|
+
* (`<main class="xscript">`, `.turn`, `.turn-tag`, `.turn-body`, `.tool-frame`,
|
|
7
|
+
* `.aside-note`), its own stylesheet, and its own `{{TOKEN}}` placeholder names —
|
|
8
|
+
* the {@link SHELL_SLOTS} values from the briefing contract
|
|
9
|
+
* (`THEME_VARS`/`PAGE_SURFACE`/…/`MARKED_LIB`/`HIGHLIGHT_LIB`). None of the class
|
|
10
|
+
* names, DOM structure, placeholder tokens, or color values are carried over from
|
|
11
|
+
* any prior export template.
|
|
12
|
+
*
|
|
13
|
+
* The publisher computes a value for every slot and calls {@link fill} to splice
|
|
14
|
+
* them in. The page is self-contained: theme colors arrive as CSS custom
|
|
15
|
+
* properties in `:root`, the markdown and syntax-highlight libraries are inlined,
|
|
16
|
+
* the session payload is embedded as base64, and a small client renderer
|
|
17
|
+
* (the `SCRIPT` slot) hydrates the transcript on load.
|
|
18
|
+
*/
|
|
19
|
+
import { type ShellSlot } from "../briefing/contract";
|
|
20
|
+
/**
|
|
21
|
+
* The page stylesheet, emitted into the `STYLES` slot. Reads its colors from the
|
|
22
|
+
* `--x-*` custom properties the `THEME_VARS` slot defines, so re-theming is a
|
|
23
|
+
* matter of changing the variables, not the rules. Class names are this page's
|
|
24
|
+
* own (`xscript`, `turn`, `tool-frame`, `aside-note`, the `sgr-*` family the
|
|
25
|
+
* painter emits, and the highlight `xhl` block).
|
|
26
|
+
*/
|
|
27
|
+
export declare const PAGE_STYLES: string;
|
|
28
|
+
/**
|
|
29
|
+
* The client-side renderer, emitted into the `SCRIPT` slot. Decodes the base64
|
|
30
|
+
* session payload, walks its turns, and renders each into the `.xscript` root
|
|
31
|
+
* using the inlined `marked` (markdown) and `highlight.js` (code) libraries. Code
|
|
32
|
+
* fences are highlighted into the page's own `xhl-*` classes; prose is parsed by
|
|
33
|
+
* marked. Pre-rendered tool widgets and SGR-painted text arrive already-HTML in
|
|
34
|
+
* the payload and are inserted verbatim.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CLIENT_SCRIPT: string;
|
|
37
|
+
/**
|
|
38
|
+
* The HTML page shell carrying every {@link SHELL_SLOTS} placeholder as a
|
|
39
|
+
* `{{TOKEN}}` marker. {@link fill} replaces each marker with its computed value.
|
|
40
|
+
* The structure: a themed `:root`, the inlined stylesheet, the two vendored
|
|
41
|
+
* libraries, the base64 payload bound to `window.__XSCRIPT_PAYLOAD__`, and the
|
|
42
|
+
* client renderer that hydrates `#xscript-root`.
|
|
43
|
+
*/
|
|
44
|
+
export declare const PAGE_SHELL = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<title>Session Transcript</title>\n<style>\n:root {\n{{THEME_VARS}}\n --x-page-surface: {{PAGE_SURFACE}};\n --x-card-surface: {{CARD_SURFACE}};\n --x-note-surface: {{NOTE_SURFACE}};\n}\n{{STYLES}}\n</style>\n</head>\n<body>\n<main class=\"xscript\">\n <header class=\"xscript-head\">\n <h1>Session Transcript</h1>\n <div class=\"xscript-meta\">Self-contained HTML export</div>\n </header>\n <div id=\"xscript-root\"></div>\n</main>\n<script>\n/* {{MARKED_LIB}} */\n</script>\n<script>\n/* {{HIGHLIGHT_LIB}} */\n</script>\n<script>\nwindow.__XSCRIPT_PAYLOAD__ = \"{{PAYLOAD}}\";\n</script>\n<script>\n{{SCRIPT}}\n</script>\n</body>\n</html>";
|
|
45
|
+
/**
|
|
46
|
+
* The map a {@link fill} call supplies — one value per {@link ShellSlot} token. A
|
|
47
|
+
* value may be omitted, in which case its placeholder is replaced with the empty
|
|
48
|
+
* string (so a partial fill leaves no stray `{{TOKEN}}` in the output).
|
|
49
|
+
*/
|
|
50
|
+
export type SlotValues = Partial<Record<ShellSlot, string>>;
|
|
51
|
+
/**
|
|
52
|
+
* Replace every `{{TOKEN}}` placeholder in a template with the value supplied for
|
|
53
|
+
* that slot, returning the filled string.
|
|
54
|
+
*
|
|
55
|
+
* Walks the known {@link SHELL_SLOTS} (not an open scan), so only sanctioned
|
|
56
|
+
* placeholders are substituted and a stray `{{…}}` in user content is left
|
|
57
|
+
* untouched. Each token is replaced globally; a slot with no supplied value
|
|
58
|
+
* collapses to the empty string. The replacement is value-literal — a `$` in a
|
|
59
|
+
* value does not trigger regex backreference expansion.
|
|
60
|
+
*
|
|
61
|
+
* @param template the shell carrying `{{TOKEN}}` markers
|
|
62
|
+
* @param values the per-slot values to splice in
|
|
63
|
+
*/
|
|
64
|
+
export declare function fill(template: string, values: SlotValues): string;
|