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,686 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Briefing contract — the FROZEN type surface of the prompt-and-presentation
|
|
3
|
+
* layer (Phase 9 / subsystem 10).
|
|
4
|
+
*
|
|
5
|
+
* This module is the single typed seam between the coding-agent's runtime state
|
|
6
|
+
* and the two strings that layer produces: the LLM-facing **briefing** (the
|
|
7
|
+
* system prompt) and the human-facing **transcript** (the published HTML
|
|
8
|
+
* session). It declares *only* shapes plus a handful of tiny inert helpers — no
|
|
9
|
+
* filesystem walks, no string assembly, no theme math — so every later module
|
|
10
|
+
* (the section pipeline, the macro scanner, the capability-card loader, the SGR
|
|
11
|
+
* painter, and the transcript publisher) is written against the names declared
|
|
12
|
+
* here. The file is intentionally small, append-mostly, and stable.
|
|
13
|
+
*
|
|
14
|
+
* Design stance:
|
|
15
|
+
* - The briefing is **declarative, not a string template**. A {@link Briefing}
|
|
16
|
+
* is an ordered list of {@link BriefingSection}s, each a small descriptor
|
|
17
|
+
* that decides whether it applies to a {@link BriefingContext} and renders
|
|
18
|
+
* its own fragment. `composeBriefing` folds the enabled sections into the
|
|
19
|
+
* final prompt; there is no mega-literal with `{{TOKEN}}` placeholders.
|
|
20
|
+
* - Macros are a **single-pass `$arg` model**. A {@link Macro} carries a body
|
|
21
|
+
* and a source label; expansion is one left-to-right scan over the body that
|
|
22
|
+
* resolves `$1` / `$@` / `$ARGUMENTS` / `${@:N:L}` against a
|
|
23
|
+
* {@link MacroScope}. The contract names the token kinds and the scope; it
|
|
24
|
+
* does not run regexes.
|
|
25
|
+
* - A {@link SkillCard} is a CapabilityCard parsed from a `SKILL.md` document.
|
|
26
|
+
* The Agent-Skills *format* (frontmatter keys, name/description limits) is a
|
|
27
|
+
* public spec and is kept; the validation prose and field policy are the
|
|
28
|
+
* briefing's own.
|
|
29
|
+
* - ANSI styling is a **table-driven SGR machine**. {@link SgrState} is the
|
|
30
|
+
* running style; a {@link SgrToken} is one parsed unit (a text run or an SGR
|
|
31
|
+
* command); the SGR semantics are a published standard, the state shape is
|
|
32
|
+
* ours.
|
|
33
|
+
* - HTML-export color is computed behind a {@link ThemeBridge} over an
|
|
34
|
+
* {@link ExportTheme} token bag, with luminance read from a precomputed
|
|
35
|
+
* {@link LuminanceLut} (the WCAG relative-luminance formula is a standard;
|
|
36
|
+
* the LUT and the fallback colors are ours).
|
|
37
|
+
*
|
|
38
|
+
* Framework anchors (all from the `indusagi` package — the sibling rebuilt
|
|
39
|
+
* framework this app targets):
|
|
40
|
+
* - `AgentState`, `AgentTool` ← `indusagi/agent`
|
|
41
|
+
* - `TextContent`, `ImageContent` ← `indusagi/ai`
|
|
42
|
+
*
|
|
43
|
+
* The briefing never re-declares these; it composes them.
|
|
44
|
+
*/
|
|
45
|
+
import type { AgentState, AgentTool } from "indusagi/agent";
|
|
46
|
+
import type { ImageContent, TextContent } from "indusagi/ai";
|
|
47
|
+
/** Re-exported framework vocabulary that briefing consumers routinely need. */
|
|
48
|
+
export type { AgentState, AgentTool, TextContent, ImageContent };
|
|
49
|
+
/**
|
|
50
|
+
* The working context a {@link BriefingSection} reads when it decides whether to
|
|
51
|
+
* apply and what to render.
|
|
52
|
+
*
|
|
53
|
+
* This is the data-driven replacement for the old string-template's placeholder
|
|
54
|
+
* bag. Every field is optional so a section that does not need a given input
|
|
55
|
+
* simply ignores it, and a caller can compose a partial briefing (e.g. one with
|
|
56
|
+
* no skills, or no project docs) without populating the whole shape. A section
|
|
57
|
+
* is pure with respect to this context: it reads, it never mutates.
|
|
58
|
+
*
|
|
59
|
+
* - `workspace` — absolute working directory the session is scoped to; the
|
|
60
|
+
* footer section surfaces it and skills resolve relative paths against it.
|
|
61
|
+
* - `tools` — the capabilities advertised this turn; the tools/guidelines
|
|
62
|
+
* sections gate themselves on which ids are present.
|
|
63
|
+
* - `cwd` — alias kept distinct from `workspace` for sections that want
|
|
64
|
+
* the *display* path (may be relativized) versus the absolute root.
|
|
65
|
+
* - `skills` — the {@link SkillCard}s eligible for model invocation; the
|
|
66
|
+
* skills section renders these into its block.
|
|
67
|
+
* - `subagents` — the named delegate roles to advertise in the delegate block.
|
|
68
|
+
* - `contextDocs` — project context documents (AGENTS-style files) to inline.
|
|
69
|
+
* - `now` — the timestamp the footer stamps; injectable for determinism.
|
|
70
|
+
* - `extras` — an open bag for app-novel sections to read bespoke inputs
|
|
71
|
+
* without widening this contract on every addition.
|
|
72
|
+
*/
|
|
73
|
+
export interface BriefingContext {
|
|
74
|
+
/** Absolute working directory the session's briefing is scoped to. */
|
|
75
|
+
readonly workspace?: string;
|
|
76
|
+
/** The capabilities advertised this turn, by their wire-facing descriptors. */
|
|
77
|
+
readonly tools?: readonly AgentTool[];
|
|
78
|
+
/** Display path for the working directory (may be relativized). */
|
|
79
|
+
readonly cwd?: string;
|
|
80
|
+
/** Capability cards eligible for model invocation, for the skills block. */
|
|
81
|
+
readonly skills?: readonly SkillCard[];
|
|
82
|
+
/** Named delegate roles to advertise in the subagent/delegate section. */
|
|
83
|
+
readonly subagents?: readonly SubagentBrief[];
|
|
84
|
+
/** Project context documents to inline under a project-context section. */
|
|
85
|
+
readonly contextDocs?: readonly ContextDoc[];
|
|
86
|
+
/** Timestamp the footer stamps; injectable so renders are deterministic. */
|
|
87
|
+
readonly now?: Date;
|
|
88
|
+
/** Open bag for app-novel sections to read bespoke inputs. */
|
|
89
|
+
readonly extras?: Readonly<Record<string, unknown>>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A named delegate role advertised in the subagent section of the briefing.
|
|
93
|
+
*
|
|
94
|
+
* The minimum a section needs to list a delegate the primary agent may hand work
|
|
95
|
+
* to: a stable invocation `name`, a one-line `purpose`, and an optional `when`
|
|
96
|
+
* hint describing the situations the role is suited to.
|
|
97
|
+
*/
|
|
98
|
+
export interface SubagentBrief {
|
|
99
|
+
/** Stable name the primary agent uses to delegate to this role. */
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** One-line description of what the role is for. */
|
|
102
|
+
readonly purpose: string;
|
|
103
|
+
/** Optional hint describing when delegating to this role is appropriate. */
|
|
104
|
+
readonly when?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A project-context document inlined into the briefing.
|
|
108
|
+
*
|
|
109
|
+
* Project files (AGENTS-style guidance) are surfaced under their own section so
|
|
110
|
+
* the model can read repository conventions. `path` labels the source; `body` is
|
|
111
|
+
* the verbatim text to inline.
|
|
112
|
+
*/
|
|
113
|
+
export interface ContextDoc {
|
|
114
|
+
/** Source path of the document, used as its heading label. */
|
|
115
|
+
readonly path: string;
|
|
116
|
+
/** Verbatim document text to inline into the briefing. */
|
|
117
|
+
readonly body: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* One declarative section of the briefing.
|
|
121
|
+
*
|
|
122
|
+
* The unit of the data-driven pipeline that replaces the old string template:
|
|
123
|
+
* an ordered array of these is composed by `composeBriefing`, which renders each
|
|
124
|
+
* applicable section and joins the fragments. A section owns its own gating —
|
|
125
|
+
* via the optional {@link BriefingSection.applies} predicate — and its own
|
|
126
|
+
* rendering, so adding a section is adding one descriptor to the array, not
|
|
127
|
+
* editing a central literal.
|
|
128
|
+
*
|
|
129
|
+
* - `id` — stable identifier for ordering, dedup, and selective inclusion.
|
|
130
|
+
* - `title` — optional human-facing heading the section may emit.
|
|
131
|
+
* - `applies`— optional predicate; when omitted the section always renders.
|
|
132
|
+
* - `render` — produce the section's fragment for a context. Returning an
|
|
133
|
+
* empty string is allowed and is dropped from the composed output.
|
|
134
|
+
*/
|
|
135
|
+
export interface BriefingSection {
|
|
136
|
+
/** Stable identifier for ordering, dedup, and selective inclusion. */
|
|
137
|
+
readonly id: string;
|
|
138
|
+
/** Optional human-facing heading the section may emit. */
|
|
139
|
+
readonly title?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Decide whether this section contributes to a given context. When omitted
|
|
142
|
+
* the section is treated as always applicable.
|
|
143
|
+
*
|
|
144
|
+
* @param ctx the working context to test against
|
|
145
|
+
*/
|
|
146
|
+
applies?(ctx: BriefingContext): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Render this section's fragment for a context.
|
|
149
|
+
*
|
|
150
|
+
* Pure: reads `ctx`, returns a string, performs no I/O and mutates nothing.
|
|
151
|
+
* An empty return is valid and is omitted from the composed briefing.
|
|
152
|
+
*
|
|
153
|
+
* @param ctx the working context to render against
|
|
154
|
+
*/
|
|
155
|
+
render(ctx: BriefingContext): string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* An ordered briefing recipe: the sections, in render order.
|
|
159
|
+
*
|
|
160
|
+
* `composeBriefing` walks this list, skips sections whose {@link
|
|
161
|
+
* BriefingSection.applies} returns `false`, renders the rest, and joins the
|
|
162
|
+
* non-empty fragments. The recipe is data; swapping the section set (or its
|
|
163
|
+
* order) reconfigures the whole prompt without touching the composer.
|
|
164
|
+
*/
|
|
165
|
+
export type Briefing = readonly BriefingSection[];
|
|
166
|
+
/**
|
|
167
|
+
* Inputs handed to `composeBriefing` to assemble a full briefing string.
|
|
168
|
+
*
|
|
169
|
+
* Pairs the {@link Briefing} recipe with the {@link BriefingContext} to render
|
|
170
|
+
* it against, plus two override hooks that mirror the legacy custom-prompt path:
|
|
171
|
+
* `prelude` text prepended ahead of the sections, and `append` text added after
|
|
172
|
+
* them. Both are optional; the common case passes only `sections` and `context`.
|
|
173
|
+
*/
|
|
174
|
+
export interface BriefingInputs {
|
|
175
|
+
/** The ordered section recipe to render. */
|
|
176
|
+
readonly sections: Briefing;
|
|
177
|
+
/** The context the sections render against. */
|
|
178
|
+
readonly context: BriefingContext;
|
|
179
|
+
/** Optional text prepended ahead of the rendered sections. */
|
|
180
|
+
readonly prelude?: string;
|
|
181
|
+
/** Optional text appended after the rendered sections. */
|
|
182
|
+
readonly append?: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Where a {@link Macro} was discovered, for labelling and precedence.
|
|
186
|
+
*
|
|
187
|
+
* - `user` — the per-user macro directory.
|
|
188
|
+
* - `project` — the project-local macro directory.
|
|
189
|
+
* - `path` — an explicitly supplied path outside the standard roots.
|
|
190
|
+
* - `builtin` — a macro shipped with the app.
|
|
191
|
+
*/
|
|
192
|
+
export type MacroOrigin = "user" | "project" | "path" | "builtin";
|
|
193
|
+
/**
|
|
194
|
+
* A user-defined slash macro: a named prompt body with `$arg` placeholders.
|
|
195
|
+
*
|
|
196
|
+
* Discovered from `*.md` files (frontmatter + body) under the user/project/path
|
|
197
|
+
* roots. Invoking `/<name> args…` resolves the body against a {@link MacroScope}
|
|
198
|
+
* built from the args, substituting the `$arg` tokens in one pass. The field
|
|
199
|
+
* names are the briefing's own; the placeholder *syntax* is the shared cross-tool
|
|
200
|
+
* convention and is preserved.
|
|
201
|
+
*
|
|
202
|
+
* - `name` — the invocation name (without the leading slash).
|
|
203
|
+
* - `description` — one-line summary for command listings; derived from
|
|
204
|
+
* frontmatter or the body's opening, with an `origin`-derived label.
|
|
205
|
+
* - `body` — the prompt text containing the `$arg` placeholders.
|
|
206
|
+
* - `origin` — where the macro was found, for labelling and precedence.
|
|
207
|
+
* - `source` — absolute path of the file the macro was loaded from.
|
|
208
|
+
*/
|
|
209
|
+
export interface Macro {
|
|
210
|
+
/** Invocation name, without the leading slash. */
|
|
211
|
+
readonly name: string;
|
|
212
|
+
/** One-line description for command listings. */
|
|
213
|
+
readonly description: string;
|
|
214
|
+
/** Prompt body containing `$arg` placeholders. */
|
|
215
|
+
readonly body: string;
|
|
216
|
+
/** Where the macro was discovered. */
|
|
217
|
+
readonly origin: MacroOrigin;
|
|
218
|
+
/** Absolute path of the file the macro was loaded from. */
|
|
219
|
+
readonly source: string;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* The argument environment a {@link Macro} body is resolved against.
|
|
223
|
+
*
|
|
224
|
+
* Built from a parsed invocation: `args` is the positional vector (1-based in the
|
|
225
|
+
* `$N` syntax, 0-based in this array), `all` is the original joined argument
|
|
226
|
+
* string the `$@` / `$ARGUMENTS` tokens expand to, and `raw` is the untouched
|
|
227
|
+
* text after the command name (kept for diagnostics and for tokens that want the
|
|
228
|
+
* pre-split form). A token references this scope; the scanner reads it.
|
|
229
|
+
*/
|
|
230
|
+
export interface MacroScope {
|
|
231
|
+
/** Positional arguments, in order; `$1` maps to index 0. */
|
|
232
|
+
readonly args: readonly string[];
|
|
233
|
+
/** The joined argument string `$@` / `$ARGUMENTS` expand to. */
|
|
234
|
+
readonly all: string;
|
|
235
|
+
/** The verbatim text following the command name, before splitting. */
|
|
236
|
+
readonly raw: string;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The kinds of unit the single-pass `$arg` scanner emits.
|
|
240
|
+
*
|
|
241
|
+
* - `literal` — a run of ordinary text copied through unchanged.
|
|
242
|
+
* - `positional` — a `$N` reference to one positional argument.
|
|
243
|
+
* - `all` — a `$@` or `$ARGUMENTS` reference to the joined arguments.
|
|
244
|
+
* - `slice` — a `${@:N}` / `${@:N:L}` reference to an argument sub-range.
|
|
245
|
+
*/
|
|
246
|
+
export type MacroTokenKind = "literal" | "positional" | "all" | "slice";
|
|
247
|
+
/**
|
|
248
|
+
* One unit produced by the single-pass macro scanner.
|
|
249
|
+
*
|
|
250
|
+
* The body is scanned left-to-right into a flat token stream; resolving the
|
|
251
|
+
* stream against a {@link MacroScope} and concatenating yields the expanded text.
|
|
252
|
+
* This replaces the legacy multi-pass regex substitution with one scan emitting
|
|
253
|
+
* these discriminated tokens.
|
|
254
|
+
*
|
|
255
|
+
* - `literal` carries its verbatim `text`.
|
|
256
|
+
* - `positional` carries the 1-based `index` of the argument it names.
|
|
257
|
+
* - `all` carries nothing beyond its kind.
|
|
258
|
+
* - `slice` carries the `start` offset and an optional `length`.
|
|
259
|
+
*/
|
|
260
|
+
export type MacroToken = {
|
|
261
|
+
readonly kind: "literal";
|
|
262
|
+
readonly text: string;
|
|
263
|
+
} | {
|
|
264
|
+
readonly kind: "positional";
|
|
265
|
+
readonly index: number;
|
|
266
|
+
} | {
|
|
267
|
+
readonly kind: "all";
|
|
268
|
+
} | {
|
|
269
|
+
readonly kind: "slice";
|
|
270
|
+
readonly start: number;
|
|
271
|
+
readonly length?: number;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* The parsed frontmatter of a `SKILL.md` document.
|
|
275
|
+
*
|
|
276
|
+
* The Agent-Skills format is a public spec, so these keys are kept; the policy
|
|
277
|
+
* over them (which are required, which are allowed) is the briefing's own. Only
|
|
278
|
+
* `name` and `description` carry semantics for the prompt; the rest are metadata
|
|
279
|
+
* the loader preserves but does not interpret.
|
|
280
|
+
*
|
|
281
|
+
* - `name` — the skill's invocation name; must match its
|
|
282
|
+
* directory and use lowercase hyphenated segments.
|
|
283
|
+
* - `description` — required, single-line summary the model reads to
|
|
284
|
+
* decide when the skill applies.
|
|
285
|
+
* - `license` — optional SPDX-style license tag.
|
|
286
|
+
* - `compatibility` — optional free-form compatibility note.
|
|
287
|
+
* - `metadata` — optional open key/value bag.
|
|
288
|
+
* - `allowedTools` — optional restriction on which tools the skill
|
|
289
|
+
* may use while active.
|
|
290
|
+
* - `disableModelInvocation` — when true the skill is hidden from the briefing
|
|
291
|
+
* and exposed only as an explicit `/skill:<name>` command.
|
|
292
|
+
*/
|
|
293
|
+
export interface SkillFrontmatter {
|
|
294
|
+
/** Invocation name; must match the parent directory, lowercase-hyphenated. */
|
|
295
|
+
readonly name?: string;
|
|
296
|
+
/** Required single-line summary the model reads to gate the skill. */
|
|
297
|
+
readonly description?: string;
|
|
298
|
+
/** Optional SPDX-style license tag. */
|
|
299
|
+
readonly license?: string;
|
|
300
|
+
/** Optional free-form compatibility note. */
|
|
301
|
+
readonly compatibility?: string;
|
|
302
|
+
/** Optional open metadata bag. */
|
|
303
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
304
|
+
/** Optional restriction on tools the skill may use while active. */
|
|
305
|
+
readonly allowedTools?: readonly string[];
|
|
306
|
+
/** Hide from the briefing; expose only as an explicit command. */
|
|
307
|
+
readonly disableModelInvocation?: boolean;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* A capability card loaded from a `SKILL.md` document.
|
|
311
|
+
*
|
|
312
|
+
* The resolved, validated form of one skill: its `name`, the `description` the
|
|
313
|
+
* model reads, the markdown `body` (instructions loaded on demand), and the
|
|
314
|
+
* on-disk `location` of the file. `origin` records where it was discovered and
|
|
315
|
+
* `frontmatter` retains the parsed header for introspection. Unlike a deck
|
|
316
|
+
* capability, a skill card is *documentation the model reads*, not a callable —
|
|
317
|
+
* the model loads `location` with the reader when a task matches `description`.
|
|
318
|
+
*
|
|
319
|
+
* - `name` — the validated invocation name.
|
|
320
|
+
* - `description` — the single-line summary surfaced in the briefing.
|
|
321
|
+
* - `body` — the markdown instruction text below the frontmatter.
|
|
322
|
+
* - `location` — absolute path of the `SKILL.md` file.
|
|
323
|
+
* - `origin` — where the card was discovered.
|
|
324
|
+
* - `frontmatter` — the parsed frontmatter, retained for introspection.
|
|
325
|
+
*/
|
|
326
|
+
export interface SkillCard {
|
|
327
|
+
/** Validated invocation name. */
|
|
328
|
+
readonly name: string;
|
|
329
|
+
/** Single-line summary surfaced in the briefing. */
|
|
330
|
+
readonly description: string;
|
|
331
|
+
/** Markdown instruction text below the frontmatter. */
|
|
332
|
+
readonly body: string;
|
|
333
|
+
/** Absolute path of the `SKILL.md` file. */
|
|
334
|
+
readonly location: string;
|
|
335
|
+
/** Where the card was discovered. */
|
|
336
|
+
readonly origin: MacroOrigin;
|
|
337
|
+
/** Parsed frontmatter, retained for introspection. */
|
|
338
|
+
readonly frontmatter: SkillFrontmatter;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Outcome categories the skill loader can attach to a candidate file.
|
|
342
|
+
*
|
|
343
|
+
* - `loaded` — a valid card was produced.
|
|
344
|
+
* - `skipped` — the file was ignored by policy (e.g. not a `SKILL.md`).
|
|
345
|
+
* - `invalid` — the file was a skill but failed validation.
|
|
346
|
+
* - `collision` — a card with the same name already won; this one was dropped.
|
|
347
|
+
*/
|
|
348
|
+
export type SkillOutcomeKind = "loaded" | "skipped" | "invalid" | "collision";
|
|
349
|
+
/**
|
|
350
|
+
* A single diagnostic the skill loader emits for one candidate file.
|
|
351
|
+
*
|
|
352
|
+
* Replaces the legacy parallel `{skills, diagnostics}` arrays with one tagged
|
|
353
|
+
* record per candidate: `kind` is the outcome, `location` the file it concerns,
|
|
354
|
+
* and `detail` a human-readable explanation written in the briefing's own voice.
|
|
355
|
+
*/
|
|
356
|
+
export interface SkillDiagnostic {
|
|
357
|
+
/** Outcome category for the candidate. */
|
|
358
|
+
readonly kind: SkillOutcomeKind;
|
|
359
|
+
/** Absolute path of the candidate file the diagnostic concerns. */
|
|
360
|
+
readonly location: string;
|
|
361
|
+
/** Human-readable explanation of the outcome. */
|
|
362
|
+
readonly detail: string;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* The aggregate result of loading skills from a set of roots.
|
|
366
|
+
*
|
|
367
|
+
* `cards` are the validated, deduped cards (first writer wins per name);
|
|
368
|
+
* `diagnostics` is the flat stream of per-candidate outcomes for surfacing in a
|
|
369
|
+
* load report. A consumer renders `cards` into the briefing and may show
|
|
370
|
+
* `diagnostics` to the user.
|
|
371
|
+
*/
|
|
372
|
+
export interface SkillLoad {
|
|
373
|
+
/** Validated, deduped cards in discovery order. */
|
|
374
|
+
readonly cards: readonly SkillCard[];
|
|
375
|
+
/** Per-candidate outcomes accumulated during the load. */
|
|
376
|
+
readonly diagnostics: readonly SkillDiagnostic[];
|
|
377
|
+
}
|
|
378
|
+
/** Maximum length of a validated skill name, per the Agent-Skills format. */
|
|
379
|
+
export declare const SKILL_NAME_LIMIT = 64;
|
|
380
|
+
/** Maximum length of a validated skill description, per the format. */
|
|
381
|
+
export declare const SKILL_DESCRIPTION_LIMIT = 1024;
|
|
382
|
+
/**
|
|
383
|
+
* The running display style of the table-driven SGR machine.
|
|
384
|
+
*
|
|
385
|
+
* As the painter scans an ANSI stream it folds each SGR command into this state
|
|
386
|
+
* via the mutation table, then emits a styled span whenever a text run follows.
|
|
387
|
+
* Colors are stored as resolved CSS color strings (or `null` for "inherit");
|
|
388
|
+
* the boolean flags track the standard attribute set. The shape is the
|
|
389
|
+
* briefing's own; the SGR *semantics* (which code sets which attribute) are the
|
|
390
|
+
* published standard.
|
|
391
|
+
*
|
|
392
|
+
* - `fg` / `bg` — foreground / background color, or `null` for the default.
|
|
393
|
+
* - `bold` — increased weight (SGR 1).
|
|
394
|
+
* - `dim` — decreased intensity (SGR 2).
|
|
395
|
+
* - `italic` — italic (SGR 3).
|
|
396
|
+
* - `underline` — underline (SGR 4).
|
|
397
|
+
* - `blink` — blink (SGR 5/6), rendered as an attribute hook.
|
|
398
|
+
* - `inverse` — swap fg/bg at render time (SGR 7).
|
|
399
|
+
* - `hidden` — concealed text (SGR 8).
|
|
400
|
+
* - `strike` — crossed-out (SGR 9).
|
|
401
|
+
*/
|
|
402
|
+
export interface SgrState {
|
|
403
|
+
/** Foreground color as a CSS color string, or `null` for the default. */
|
|
404
|
+
readonly fg: string | null;
|
|
405
|
+
/** Background color as a CSS color string, or `null` for the default. */
|
|
406
|
+
readonly bg: string | null;
|
|
407
|
+
/** Increased weight (SGR 1). */
|
|
408
|
+
readonly bold: boolean;
|
|
409
|
+
/** Decreased intensity (SGR 2). */
|
|
410
|
+
readonly dim: boolean;
|
|
411
|
+
/** Italic (SGR 3). */
|
|
412
|
+
readonly italic: boolean;
|
|
413
|
+
/** Underline (SGR 4). */
|
|
414
|
+
readonly underline: boolean;
|
|
415
|
+
/** Blink (SGR 5/6). */
|
|
416
|
+
readonly blink: boolean;
|
|
417
|
+
/** Swap foreground and background at render time (SGR 7). */
|
|
418
|
+
readonly inverse: boolean;
|
|
419
|
+
/** Concealed text (SGR 8). */
|
|
420
|
+
readonly hidden: boolean;
|
|
421
|
+
/** Crossed-out (SGR 9). */
|
|
422
|
+
readonly strike: boolean;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* The neutral starting style of the SGR machine — every attribute off and both
|
|
426
|
+
* colors at their default. A reset (SGR 0) returns the state to exactly this.
|
|
427
|
+
*/
|
|
428
|
+
export declare const SGR_INITIAL_STATE: SgrState;
|
|
429
|
+
/**
|
|
430
|
+
* One unit produced by the SGR tokenizer.
|
|
431
|
+
*
|
|
432
|
+
* Scanning an ANSI stream splits it into an alternation of plain text runs and
|
|
433
|
+
* SGR command sequences. The painter walks these tokens, applying `sgr`
|
|
434
|
+
* parameter lists to the running {@link SgrState} and wrapping `text` runs in a
|
|
435
|
+
* span styled by the state in force.
|
|
436
|
+
*
|
|
437
|
+
* - `text` carries a run of printable characters to wrap.
|
|
438
|
+
* - `sgr` carries the numeric parameter list of one `ESC[...m` sequence (an
|
|
439
|
+
* empty list means a bare `ESC[m`, equivalent to a reset).
|
|
440
|
+
*/
|
|
441
|
+
export type SgrToken = {
|
|
442
|
+
readonly kind: "text";
|
|
443
|
+
readonly text: string;
|
|
444
|
+
} | {
|
|
445
|
+
readonly kind: "sgr";
|
|
446
|
+
readonly params: readonly number[];
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* A field-level mutation an SGR code applies to the running {@link SgrState}.
|
|
450
|
+
*
|
|
451
|
+
* The painter's dispatch table maps each handled SGR parameter to one of these
|
|
452
|
+
* partial states; folding it over the current state yields the next state. This
|
|
453
|
+
* is the data form of the SGR semantics — a table, not a switch — so the set of
|
|
454
|
+
* handled codes is extended by adding table rows, not by editing control flow.
|
|
455
|
+
*/
|
|
456
|
+
export type SgrMutation = Partial<SgrState>;
|
|
457
|
+
/**
|
|
458
|
+
* The color token bag the HTML transcript is themed with.
|
|
459
|
+
*
|
|
460
|
+
* These are the briefing's *own* token names and default values — deliberately
|
|
461
|
+
* not the legacy export's. The publisher emits them as CSS custom properties and
|
|
462
|
+
* the page shell reads them. `surface` family tokens are the large backgrounds;
|
|
463
|
+
* `ink` is the body text color; `accent` tints interactive affordances; the
|
|
464
|
+
* `role` tokens tint message attribution. Values are any CSS color string.
|
|
465
|
+
*
|
|
466
|
+
* - `pageSurface` — the outermost page background.
|
|
467
|
+
* - `cardSurface` — the surface of a message card.
|
|
468
|
+
* - `noteSurface` — the surface of an informational/system note.
|
|
469
|
+
* - `ink` — primary body text color.
|
|
470
|
+
* - `inkMuted` — secondary/de-emphasized text color.
|
|
471
|
+
* - `accent` — interactive affordance tint.
|
|
472
|
+
* - `border` — hairline/separator color.
|
|
473
|
+
* - `userRole` — attribution tint for user turns.
|
|
474
|
+
* - `agentRole` — attribution tint for assistant turns.
|
|
475
|
+
* - `toolRole` — attribution tint for tool turns.
|
|
476
|
+
*/
|
|
477
|
+
export interface ExportTheme {
|
|
478
|
+
/** Outermost page background. */
|
|
479
|
+
readonly pageSurface: string;
|
|
480
|
+
/** Surface of a message card. */
|
|
481
|
+
readonly cardSurface: string;
|
|
482
|
+
/** Surface of an informational/system note. */
|
|
483
|
+
readonly noteSurface: string;
|
|
484
|
+
/** Primary body text color. */
|
|
485
|
+
readonly ink: string;
|
|
486
|
+
/** Secondary/de-emphasized text color. */
|
|
487
|
+
readonly inkMuted: string;
|
|
488
|
+
/** Interactive affordance tint. */
|
|
489
|
+
readonly accent: string;
|
|
490
|
+
/** Hairline/separator color. */
|
|
491
|
+
readonly border: string;
|
|
492
|
+
/** Attribution tint for user turns. */
|
|
493
|
+
readonly userRole: string;
|
|
494
|
+
/** Attribution tint for assistant turns. */
|
|
495
|
+
readonly agentRole: string;
|
|
496
|
+
/** Attribution tint for tool turns. */
|
|
497
|
+
readonly toolRole: string;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* The briefing's own fallback {@link ExportTheme} — a calm dark palette used
|
|
501
|
+
* when the active UI theme supplies no export colors.
|
|
502
|
+
*
|
|
503
|
+
* Chosen fresh for this rebuild (a deep slate page over a muted blue accent);
|
|
504
|
+
* none of these values are the legacy export's magic constants. The
|
|
505
|
+
* {@link ThemeBridge} derives surface variants from these when a richer source
|
|
506
|
+
* is unavailable.
|
|
507
|
+
*/
|
|
508
|
+
export declare const FALLBACK_EXPORT_THEME: ExportTheme;
|
|
509
|
+
/**
|
|
510
|
+
* An RGB color decomposed into its 0–255 channels.
|
|
511
|
+
*
|
|
512
|
+
* The neutral intermediate the {@link ThemeBridge} parses a CSS color into
|
|
513
|
+
* before computing luminance or deriving a brighter/darker variant. `parseColor`
|
|
514
|
+
* produces one; `formatColor` renders one back to a CSS string.
|
|
515
|
+
*/
|
|
516
|
+
export interface Rgb {
|
|
517
|
+
/** Red channel, 0–255. */
|
|
518
|
+
readonly r: number;
|
|
519
|
+
/** Green channel, 0–255. */
|
|
520
|
+
readonly g: number;
|
|
521
|
+
/** Blue channel, 0–255. */
|
|
522
|
+
readonly b: number;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* A precomputed lookup table for the per-channel sRGB→linear step of the WCAG
|
|
526
|
+
* relative-luminance formula.
|
|
527
|
+
*
|
|
528
|
+
* The formula is a published standard; computing it per pixel is wasteful, so
|
|
529
|
+
* the {@link ThemeBridge} reads the linearized value of each 0–255 channel from
|
|
530
|
+
* this table — one entry per channel value — and combines the three with the
|
|
531
|
+
* standard weights. The table is ours (an implementation choice, expected to be
|
|
532
|
+
* 256 entries long); the math it encodes is the standard.
|
|
533
|
+
*/
|
|
534
|
+
export type LuminanceLut = ArrayLike<number>;
|
|
535
|
+
/**
|
|
536
|
+
* Whether a theme reads as light or dark, by the luminance of its page surface.
|
|
537
|
+
*
|
|
538
|
+
* The {@link ThemeBridge} branches surface derivation on this: a `light` base
|
|
539
|
+
* darkens its variants, a `dark` base lightens them. The threshold is a fixed
|
|
540
|
+
* midpoint of the relative-luminance range.
|
|
541
|
+
*/
|
|
542
|
+
export type ThemeMode = "light" | "dark";
|
|
543
|
+
/**
|
|
544
|
+
* The color service behind the HTML transcript export.
|
|
545
|
+
*
|
|
546
|
+
* Replaces the legacy export's loose color functions and `{{TOKEN}}` string
|
|
547
|
+
* replacement with one small typed service: it resolves an {@link ExportTheme},
|
|
548
|
+
* reports the theme's {@link ThemeMode}, derives surface variants via luminance,
|
|
549
|
+
* computes relative luminance through a {@link LuminanceLut}, and projects the
|
|
550
|
+
* theme to the CSS custom properties the page shell consumes. Implementations
|
|
551
|
+
* are pure with respect to their inputs.
|
|
552
|
+
*/
|
|
553
|
+
export interface ThemeBridge {
|
|
554
|
+
/** The resolved export theme this bridge serves. */
|
|
555
|
+
readonly theme: ExportTheme;
|
|
556
|
+
/** Whether the theme reads as light or dark by page-surface luminance. */
|
|
557
|
+
mode(): ThemeMode;
|
|
558
|
+
/**
|
|
559
|
+
* Compute the WCAG relative luminance (0–1) of a CSS color, reading the
|
|
560
|
+
* per-channel sRGB→linear step from the bridge's {@link LuminanceLut}.
|
|
561
|
+
*
|
|
562
|
+
* @param color a CSS color string to measure
|
|
563
|
+
*/
|
|
564
|
+
luminance(color: string): number;
|
|
565
|
+
/**
|
|
566
|
+
* Derive a surface variant from a base color by stepping its lightness toward
|
|
567
|
+
* or away from the theme's {@link ThemeMode}.
|
|
568
|
+
*
|
|
569
|
+
* @param base the base CSS color to adjust
|
|
570
|
+
* @param amount signed lightness delta (positive lightens, negative darkens)
|
|
571
|
+
*/
|
|
572
|
+
deriveSurface(base: string, amount: number): string;
|
|
573
|
+
/**
|
|
574
|
+
* Project the theme to the CSS custom properties the page shell reads, keyed
|
|
575
|
+
* by their token name (e.g. `"pageSurface"`) with CSS color string values.
|
|
576
|
+
*/
|
|
577
|
+
toCssVars(): Readonly<Record<string, string>>;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* A message payload fragment as it appears in a transcript node — the union the
|
|
581
|
+
* publisher renders into a message card.
|
|
582
|
+
*
|
|
583
|
+
* Aliases the framework content parts (`TextContent` for prose, `ImageContent`
|
|
584
|
+
* for inline images) so a persisted transcript node round-trips into the
|
|
585
|
+
* publisher without a parallel content type. The publisher walks these and emits
|
|
586
|
+
* the corresponding HTML fragment.
|
|
587
|
+
*/
|
|
588
|
+
export type TranscriptPart = TextContent | ImageContent;
|
|
589
|
+
/**
|
|
590
|
+
* The pre-rendered HTML a custom (non-builtin) tool contributes to the
|
|
591
|
+
* transcript, keyed back to its tool-call.
|
|
592
|
+
*
|
|
593
|
+
* Custom tools render their call and result through the widget rasterizer ahead
|
|
594
|
+
* of page assembly; the publisher looks the result up by `callId` when it emits
|
|
595
|
+
* that tool's card. A single `html` string carries the rendered block (the
|
|
596
|
+
* legacy collapsed/expanded pair is intentionally flattened to one).
|
|
597
|
+
*/
|
|
598
|
+
export interface WidgetRender {
|
|
599
|
+
/** The tool-call id this rendered block belongs to. */
|
|
600
|
+
readonly callId: string;
|
|
601
|
+
/** The rendered HTML block for the tool's call/result. */
|
|
602
|
+
readonly html: string;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Options that configure a single transcript publish.
|
|
606
|
+
*
|
|
607
|
+
* `theme` overrides the export palette (otherwise the fallback is used);
|
|
608
|
+
* `title` labels the document; `outDir` chooses where the file is written; and
|
|
609
|
+
* `widgets` supplies any pre-rendered custom-tool blocks to splice in. All are
|
|
610
|
+
* optional — publishing a transcript with no options produces a themed,
|
|
611
|
+
* self-contained file under the default location.
|
|
612
|
+
*/
|
|
613
|
+
export interface PublishOptions {
|
|
614
|
+
/** Override export palette; defaults to {@link FALLBACK_EXPORT_THEME}. */
|
|
615
|
+
readonly theme?: ExportTheme;
|
|
616
|
+
/** Document title for the published page. */
|
|
617
|
+
readonly title?: string;
|
|
618
|
+
/** Directory to write the published file into. */
|
|
619
|
+
readonly outDir?: string;
|
|
620
|
+
/** Pre-rendered custom-tool blocks, keyed by their tool-call id. */
|
|
621
|
+
readonly widgets?: readonly WidgetRender[];
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* The placeholder token names the page shell template carries.
|
|
625
|
+
*
|
|
626
|
+
* The publisher interpolates each of these into the shell with a typed
|
|
627
|
+
* substitution keyed off this object — replacing the legacy ad-hoc `{{TOKEN}}`
|
|
628
|
+
* string replacement. The names are the briefing's own; the values are computed
|
|
629
|
+
* at publish time (theme vars, surface colors, inlined CSS/JS, the base64
|
|
630
|
+
* session payload, and the vendored library bodies).
|
|
631
|
+
*/
|
|
632
|
+
export declare const SHELL_SLOTS: {
|
|
633
|
+
/** CSS custom-property block derived from the {@link ThemeBridge}. */
|
|
634
|
+
readonly themeVars: "THEME_VARS";
|
|
635
|
+
/** Resolved page-surface color. */
|
|
636
|
+
readonly pageSurface: "PAGE_SURFACE";
|
|
637
|
+
/** Resolved card-surface color. */
|
|
638
|
+
readonly cardSurface: "CARD_SURFACE";
|
|
639
|
+
/** Resolved note-surface color. */
|
|
640
|
+
readonly noteSurface: "NOTE_SURFACE";
|
|
641
|
+
/** Inlined stylesheet body. */
|
|
642
|
+
readonly styles: "STYLES";
|
|
643
|
+
/** Inlined client renderer body. */
|
|
644
|
+
readonly script: "SCRIPT";
|
|
645
|
+
/** Base64-encoded session payload. */
|
|
646
|
+
readonly payload: "PAYLOAD";
|
|
647
|
+
/** Inlined `marked` library body (MIT, license header preserved). */
|
|
648
|
+
readonly markedLib: "MARKED_LIB";
|
|
649
|
+
/** Inlined `highlight.js` library body (MIT, license header preserved). */
|
|
650
|
+
readonly highlightLib: "HIGHLIGHT_LIB";
|
|
651
|
+
};
|
|
652
|
+
/** The literal slot-name type of {@link SHELL_SLOTS}. */
|
|
653
|
+
export type ShellSlot = (typeof SHELL_SLOTS)[keyof typeof SHELL_SLOTS];
|
|
654
|
+
/**
|
|
655
|
+
* The closed set of failure categories this layer can surface.
|
|
656
|
+
*
|
|
657
|
+
* - `skill_invalid` — a `SKILL.md` failed format validation.
|
|
658
|
+
* - `macro_invalid` — a macro file could not be parsed.
|
|
659
|
+
* - `publish` — building or writing the HTML transcript failed.
|
|
660
|
+
* - `theme` — a theme color could not be parsed or derived.
|
|
661
|
+
*/
|
|
662
|
+
export type BriefingFaultKind = "skill_invalid" | "macro_invalid" | "publish" | "theme";
|
|
663
|
+
/**
|
|
664
|
+
* A typed, discriminated failure raised by the briefing/transcript layer.
|
|
665
|
+
*
|
|
666
|
+
* `kind` selects the category, `message` is a human-readable summary, and the
|
|
667
|
+
* optional `cause` carries the underlying error for logging without forcing
|
|
668
|
+
* consumers to parse the message. Construct one with {@link briefingFault}.
|
|
669
|
+
*/
|
|
670
|
+
export interface BriefingFault {
|
|
671
|
+
/** Failure category — the discriminant consumers switch on. */
|
|
672
|
+
readonly kind: BriefingFaultKind;
|
|
673
|
+
/** Human-readable, single-line summary of what went wrong. */
|
|
674
|
+
readonly message: string;
|
|
675
|
+
/** Underlying error or structured detail, if any. */
|
|
676
|
+
readonly cause?: unknown;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Construct a {@link BriefingFault}. The single sanctioned way to mint one, so
|
|
680
|
+
* the shape stays uniform across every producer.
|
|
681
|
+
*
|
|
682
|
+
* @param kind the failure category
|
|
683
|
+
* @param message a human-readable, single-line summary
|
|
684
|
+
* @param cause optional underlying error or structured detail
|
|
685
|
+
*/
|
|
686
|
+
export declare function briefingFault(kind: BriefingFaultKind, message: string, cause?: unknown): BriefingFault;
|