indusagi-coding-agent 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19251 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Insight contract — the FROZEN type surface of the unified tracing system.
|
|
3
|
+
*
|
|
4
|
+
* `insight/` is the single observability plane of the coding agent. It collapses
|
|
5
|
+
* what used to be two overlapping tracing systems into one with a fresh, OTel-free
|
|
6
|
+
* vocabulary:
|
|
7
|
+
*
|
|
8
|
+
* - a {@link Trail} is a whole trace (the tree of work for one logical activity);
|
|
9
|
+
* - a {@link Probe} is one immutable timed segment within a trail (a span);
|
|
10
|
+
* - a {@link Signal} is one lifecycle event on the wire (open / update / close);
|
|
11
|
+
* - a {@link Recorder} mints trails and probes through a {@link SampleGate};
|
|
12
|
+
* - a {@link Sink} drains a stream of signals somewhere (console / file / network);
|
|
13
|
+
* - a {@link SecretRedactor} scrubs sensitive values before they reach a sink.
|
|
14
|
+
*
|
|
15
|
+
* This module declares *only* shapes plus a handful of inert, pure constants and
|
|
16
|
+
* guards — no I/O, no timers, no batching, no network. Every behaviour module in
|
|
17
|
+
* `insight/` (the recorder, the flush buffer, the sinks, the redactor, the agent
|
|
18
|
+
* bridges, the session rehydrator, the ledger, and the dashboard panel) is written
|
|
19
|
+
* against the names declared here, so this file is intentionally small,
|
|
20
|
+
* append-mostly, and stable.
|
|
21
|
+
*
|
|
22
|
+
* Design stance:
|
|
23
|
+
* - A {@link Probe} is a plain frozen value object, never a class instance and
|
|
24
|
+
* never mutated in place. The lifecycle (open -> note -> close) is expressed by
|
|
25
|
+
* producing *new* probe values; the behavioural face is the functional
|
|
26
|
+
* {@link ProbeHandle} (a small bag of closures: `note` / `child` / `fail` /
|
|
27
|
+
* `close`). There is no `BaseSpan` / `DefaultSpan` / `NoopSpan` inheritance
|
|
28
|
+
* shape: a sampled-out handle is the single frozen {@link NOOP_HANDLE} value.
|
|
29
|
+
* - Ids follow the W3C Trace Context sizing (128-bit trail ids, 64-bit probe
|
|
30
|
+
* ids) without depending on any OTel SDK. {@link TrailId} / {@link ProbeId}
|
|
31
|
+
* are nominal-ish branded strings so a probe id is never mistaken for a trail
|
|
32
|
+
* id at a call site.
|
|
33
|
+
* - The wire form is a closed {@link Signal} union discriminated by `phase`.
|
|
34
|
+
* A sink consumes signals; it never reaches into recorder internals.
|
|
35
|
+
* - Redaction is an attribute *processor* contract ({@link SecretRedactor}),
|
|
36
|
+
* applied by the pipeline before a signal reaches a sink, with the agent's
|
|
37
|
+
* own patterns and its own {@link REDACTED_TOKEN}.
|
|
38
|
+
*
|
|
39
|
+
* Nothing here imports the framework; `insight/` is framework-agnostic at the
|
|
40
|
+
* contract layer. The agent/ai-coupled bridges live in sibling modules and depend
|
|
41
|
+
* on `indusagi/agent` + `indusagi/ai` there, not here.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* A branded string naming a {@link Trail}.
|
|
45
|
+
*
|
|
46
|
+
* Lowercase hex, 32 chars (128 bits) by convention — the W3C Trace Context
|
|
47
|
+
* trace-id width. The brand is a phantom marker that exists only in the type
|
|
48
|
+
* system; at runtime a {@link TrailId} is just a `string`.
|
|
49
|
+
*/
|
|
50
|
+
export type TrailId = string & {
|
|
51
|
+
readonly __brand: "TrailId";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A branded string naming a {@link Probe}.
|
|
55
|
+
*
|
|
56
|
+
* Lowercase hex, 16 chars (64 bits) by convention — the W3C Trace Context
|
|
57
|
+
* span-id width. Distinct from {@link TrailId} so the two cannot be transposed.
|
|
58
|
+
*/
|
|
59
|
+
export type ProbeId = string & {
|
|
60
|
+
readonly __brand: "ProbeId";
|
|
61
|
+
};
|
|
62
|
+
/** The byte widths the id minter uses, kept as the single source of truth. */
|
|
63
|
+
export declare const ID_WIDTHS: {
|
|
64
|
+
/** A trail id is 16 random bytes -> 32 hex chars (128-bit). */
|
|
65
|
+
readonly trail: 16;
|
|
66
|
+
/** A probe id is 8 random bytes -> 16 hex chars (64-bit). */
|
|
67
|
+
readonly probe: 8;
|
|
68
|
+
};
|
|
69
|
+
/** Coerce a raw string into a {@link TrailId}. Inert — performs no validation. */
|
|
70
|
+
export declare function asTrailId(raw: string): TrailId;
|
|
71
|
+
/** Coerce a raw string into a {@link ProbeId}. Inert — performs no validation. */
|
|
72
|
+
export declare function asProbeId(raw: string): ProbeId;
|
|
73
|
+
/**
|
|
74
|
+
* The kind of work a {@link Probe} records.
|
|
75
|
+
*
|
|
76
|
+
* A small, closed set chosen for a coding agent rather than a generic span tree:
|
|
77
|
+
* - `run` — a whole agent run / top-level invocation (the trail root).
|
|
78
|
+
* - `turn` — one request/response turn inside a run.
|
|
79
|
+
* - `tool` — a single tool or side-effecting action execution.
|
|
80
|
+
* - `model` — a single model / LLM generation call.
|
|
81
|
+
* - `custom` — anything a caller wants to time that does not fit above.
|
|
82
|
+
*/
|
|
83
|
+
export type ProbeKind = "run" | "turn" | "tool" | "model" | "custom";
|
|
84
|
+
/** The closed set of {@link ProbeKind} values, ordered for display / iteration. */
|
|
85
|
+
export declare const PROBE_KINDS: readonly ProbeKind[];
|
|
86
|
+
/**
|
|
87
|
+
* The lifecycle status of a {@link Probe}.
|
|
88
|
+
*
|
|
89
|
+
* `open` while in flight; on close it becomes one of the two terminal states.
|
|
90
|
+
*/
|
|
91
|
+
export type ProbeStatus = "open" | "ok" | "error";
|
|
92
|
+
/** The two terminal {@link ProbeStatus} values a close may carry. */
|
|
93
|
+
export type ProbeOutcome = "ok" | "error";
|
|
94
|
+
/**
|
|
95
|
+
* A captured failure attached to a probe.
|
|
96
|
+
*
|
|
97
|
+
* Intentionally minimal and serializable — a message plus optional name and a
|
|
98
|
+
* pre-rendered stack string. A redactor may rewrite any of these fields.
|
|
99
|
+
*/
|
|
100
|
+
export interface ProbeFault {
|
|
101
|
+
/** Human-readable failure summary. Always present. */
|
|
102
|
+
readonly message: string;
|
|
103
|
+
/** The error constructor / category name, when known. */
|
|
104
|
+
readonly name?: string;
|
|
105
|
+
/** A pre-rendered stack trace, when captured. */
|
|
106
|
+
readonly stack?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* An arbitrary structured annotation bag attached to a probe.
|
|
110
|
+
*
|
|
111
|
+
* A frozen, read-only map of JSON-ish values. The pipeline runs every bag
|
|
112
|
+
* through a {@link SecretRedactor} before it reaches a {@link Sink}.
|
|
113
|
+
*/
|
|
114
|
+
export type ProbeAttributes = Readonly<Record<string, unknown>>;
|
|
115
|
+
/**
|
|
116
|
+
* An immutable timed segment within a {@link Trail}.
|
|
117
|
+
*
|
|
118
|
+
* Every field is `readonly`; a probe value is frozen at construction and never
|
|
119
|
+
* mutated in place. Transitions (note / close) are modelled as *new* frozen
|
|
120
|
+
* values derived from a prior one, which keeps the data model trivially
|
|
121
|
+
* serializable. A probe with `endedAt === undefined` is still in flight.
|
|
122
|
+
*/
|
|
123
|
+
export interface Probe {
|
|
124
|
+
/** This probe's own id, unique within its trail. */
|
|
125
|
+
readonly id: ProbeId;
|
|
126
|
+
/** The trail this probe belongs to; shared by all of its kin. */
|
|
127
|
+
readonly trailId: TrailId;
|
|
128
|
+
/** The enclosing probe's {@link ProbeId}, or `null` for a trail root. */
|
|
129
|
+
readonly parentId: ProbeId | null;
|
|
130
|
+
/** What kind of work this probe records. */
|
|
131
|
+
readonly kind: ProbeKind;
|
|
132
|
+
/** Human-readable label for the probe. */
|
|
133
|
+
readonly name: string;
|
|
134
|
+
/** Wall-clock start, in epoch milliseconds. */
|
|
135
|
+
readonly startedAt: number;
|
|
136
|
+
/** Wall-clock end, in epoch milliseconds; `undefined` while still open. */
|
|
137
|
+
readonly endedAt?: number;
|
|
138
|
+
/** Lifecycle status. */
|
|
139
|
+
readonly status: ProbeStatus;
|
|
140
|
+
/** Arbitrary structured annotations; a frozen, read-only bag. */
|
|
141
|
+
readonly attributes: ProbeAttributes;
|
|
142
|
+
/** Present only once a probe has failed. */
|
|
143
|
+
readonly fault?: ProbeFault;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The exported, serializable form of a *closed* {@link Probe}.
|
|
147
|
+
*
|
|
148
|
+
* Structurally a {@link Probe} guaranteed terminal: `endedAt` is a number (not
|
|
149
|
+
* `undefined`) and `status` is one of the two {@link ProbeOutcome} values. This
|
|
150
|
+
* is what a close {@link Signal} carries and what a {@link Sink} persists; it
|
|
151
|
+
* never appears for a probe still in flight.
|
|
152
|
+
*/
|
|
153
|
+
export interface ClosedProbe extends Probe {
|
|
154
|
+
readonly endedAt: number;
|
|
155
|
+
readonly status: ProbeOutcome;
|
|
156
|
+
}
|
|
157
|
+
/** Type guard: narrow a {@link Probe} to a terminal {@link ClosedProbe}. */
|
|
158
|
+
export declare function isClosedProbe(probe: Probe): probe is ClosedProbe;
|
|
159
|
+
/**
|
|
160
|
+
* The behavioural face of a single in-flight {@link Probe}.
|
|
161
|
+
*
|
|
162
|
+
* Where {@link Probe} is the immutable data, a {@link ProbeHandle} is the small
|
|
163
|
+
* bag of closures a caller actually uses. Each operation derives the next frozen
|
|
164
|
+
* probe value and emits a {@link Signal} onto an injected emit closure. There is
|
|
165
|
+
* no class hierarchy: a sampled-in handle is a plain object of closures and a
|
|
166
|
+
* sampled-out handle is the single frozen {@link NOOP_HANDLE}.
|
|
167
|
+
*
|
|
168
|
+
* Forgiving lifecycle: `note`, `child`, and `fail` are no-ops after `close`, and
|
|
169
|
+
* `close` itself is idempotent (first call wins). This makes double-close in a
|
|
170
|
+
* `finally` block harmless.
|
|
171
|
+
*/
|
|
172
|
+
export interface ProbeHandle {
|
|
173
|
+
/** The trail this handle's probe belongs to. Stable across the trail. */
|
|
174
|
+
readonly trailId: TrailId;
|
|
175
|
+
/** This probe's own id. The empty {@link ProbeId} for the {@link NOOP_HANDLE}. */
|
|
176
|
+
readonly id: ProbeId;
|
|
177
|
+
/** Whether this handle does real work (`true`) or is the sampled-out no-op. */
|
|
178
|
+
readonly sampled: boolean;
|
|
179
|
+
/** Amend the probe's attributes (last-writer-wins); emits an `update` signal. */
|
|
180
|
+
note(attributes: ProbeAttributes): void;
|
|
181
|
+
/** Open a child probe under this one, sharing the trail; returns its handle. */
|
|
182
|
+
child(kind: ProbeKind, name: string, attributes?: ProbeAttributes): ProbeHandle;
|
|
183
|
+
/** Record a failure (sets the closing status to `error`). Does not close. */
|
|
184
|
+
fail(error: unknown): void;
|
|
185
|
+
/** Close the probe; emits a `close` signal carrying the {@link ClosedProbe}. */
|
|
186
|
+
close(outcome?: ProbeOutcome): void;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* The single shared sampled-out handle.
|
|
190
|
+
*
|
|
191
|
+
* A frozen no-op satisfying {@link ProbeHandle}: it emits nothing, allocates
|
|
192
|
+
* nothing per call, and returns *itself* from `child` so an entire sampled-out
|
|
193
|
+
* subtree costs nothing. This is the whole no-op story — there is no class to
|
|
194
|
+
* subclass.
|
|
195
|
+
*/
|
|
196
|
+
export declare const NOOP_HANDLE: ProbeHandle;
|
|
197
|
+
/**
|
|
198
|
+
* The lifecycle phase a {@link Signal} reports.
|
|
199
|
+
*
|
|
200
|
+
* - `open` — a probe was just opened (carries the fresh open {@link Probe}).
|
|
201
|
+
* - `update` — an open probe gained attributes or a fault (carries the new
|
|
202
|
+
* value, still open).
|
|
203
|
+
* - `close` — a probe reached a terminal state (carries a {@link ClosedProbe}).
|
|
204
|
+
*/
|
|
205
|
+
export type SignalPhase = "open" | "update" | "close";
|
|
206
|
+
/** A probe-open event on the wire. */
|
|
207
|
+
export interface OpenSignal {
|
|
208
|
+
readonly phase: "open";
|
|
209
|
+
/** The freshly opened, still-in-flight probe. */
|
|
210
|
+
readonly probe: Probe;
|
|
211
|
+
/** Emission clock, epoch ms. */
|
|
212
|
+
readonly at: number;
|
|
213
|
+
}
|
|
214
|
+
/** A probe-update event on the wire (attributes amended or a fault recorded). */
|
|
215
|
+
export interface UpdateSignal {
|
|
216
|
+
readonly phase: "update";
|
|
217
|
+
/** The derived probe value; still open. */
|
|
218
|
+
readonly probe: Probe;
|
|
219
|
+
/** Emission clock, epoch ms. */
|
|
220
|
+
readonly at: number;
|
|
221
|
+
}
|
|
222
|
+
/** A probe-close event on the wire (terminal). */
|
|
223
|
+
export interface CloseSignal {
|
|
224
|
+
readonly phase: "close";
|
|
225
|
+
/** The terminal probe value a sink persists. */
|
|
226
|
+
readonly probe: ClosedProbe;
|
|
227
|
+
/** Emission clock, epoch ms. */
|
|
228
|
+
readonly at: number;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The closed union of trace events, discriminated by `phase`.
|
|
232
|
+
*
|
|
233
|
+
* This is the only thing that crosses the pipeline: the recorder emits
|
|
234
|
+
* {@link Signal}s, the flush buffer batches them, the redactor scrubs the
|
|
235
|
+
* carried probe attributes, and every {@link Sink} consumes them. Renaming a
|
|
236
|
+
* recorder internal never changes this surface.
|
|
237
|
+
*/
|
|
238
|
+
export type Signal = OpenSignal | UpdateSignal | CloseSignal;
|
|
239
|
+
/** Type guard: narrow a {@link Signal} to a terminal {@link CloseSignal}. */
|
|
240
|
+
export declare function isCloseSignal(signal: Signal): signal is CloseSignal;
|
|
241
|
+
/**
|
|
242
|
+
* The emit closure a recorder hands to its probe handles.
|
|
243
|
+
*
|
|
244
|
+
* A handle calls this once per lifecycle transition; the recorder routes it to
|
|
245
|
+
* the redactor and flush buffer. Kept as a bare function so the contract layer
|
|
246
|
+
* stays I/O-free.
|
|
247
|
+
*/
|
|
248
|
+
export type SignalEmit = (signal: Signal) => void;
|
|
249
|
+
/**
|
|
250
|
+
* Admission control for trail roots.
|
|
251
|
+
*
|
|
252
|
+
* A {@link SampleGate} decides, once per *trail*, whether work is recorded
|
|
253
|
+
* (returning live handles) or collapsed to {@link NOOP_HANDLE}. The decision is
|
|
254
|
+
* keyed on the trail name so that named activities can be sampled at different
|
|
255
|
+
* rates; the verdict is sticky for the whole trail — a probe never disagrees
|
|
256
|
+
* with its enclosing trail about whether it is sampled.
|
|
257
|
+
*/
|
|
258
|
+
export interface SampleGate {
|
|
259
|
+
/**
|
|
260
|
+
* Decide whether a new trail with the given root name is recorded.
|
|
261
|
+
*
|
|
262
|
+
* `true` admits the trail (live handles); `false` collapses it to no-ops.
|
|
263
|
+
*/
|
|
264
|
+
admit(rootName: string): boolean;
|
|
265
|
+
}
|
|
266
|
+
/** The two well-known fixed gates the recorder can fall back to. */
|
|
267
|
+
export interface FixedGates {
|
|
268
|
+
/** A gate that admits every trail. */
|
|
269
|
+
readonly always: SampleGate;
|
|
270
|
+
/** A gate that rejects every trail. */
|
|
271
|
+
readonly never: SampleGate;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* An async iterable stream of signals handed to a {@link Sink}.
|
|
275
|
+
*
|
|
276
|
+
* The pipeline owns production; a sink owns consumption. Modelling the boundary
|
|
277
|
+
* as an async iterable (rather than a callback) lets a sink apply natural
|
|
278
|
+
* back-pressure simply by awaiting between pulls.
|
|
279
|
+
*/
|
|
280
|
+
export type SignalStream = AsyncIterable<Signal>;
|
|
281
|
+
/**
|
|
282
|
+
* A terminal consumer of trace signals.
|
|
283
|
+
*
|
|
284
|
+
* A sink {@link Sink.drain | drains} a {@link SignalStream} to completion,
|
|
285
|
+
* writing each signal somewhere — the terminal, an NDJSON file, a network
|
|
286
|
+
* endpoint, an in-memory buffer for tests. `drain` resolves when the stream is
|
|
287
|
+
* exhausted (or rejects if the underlying writer fails); it is the sink's whole
|
|
288
|
+
* obligation.
|
|
289
|
+
*/
|
|
290
|
+
export interface Sink {
|
|
291
|
+
/** A short identifier used in diagnostics and config (e.g. `"console"`). */
|
|
292
|
+
readonly id: string;
|
|
293
|
+
/** Consume the stream to completion, writing each signal to the target. */
|
|
294
|
+
drain(stream: SignalStream): Promise<void>;
|
|
295
|
+
}
|
|
296
|
+
/** Inputs for opening a fresh trail root. */
|
|
297
|
+
export interface OpenTrailInput {
|
|
298
|
+
/** Human-readable label for the root probe (the activity name). */
|
|
299
|
+
readonly name: string;
|
|
300
|
+
/** The root probe's kind; defaults to `run` when omitted. */
|
|
301
|
+
readonly kind?: ProbeKind;
|
|
302
|
+
/** Pre-assigned trail id; one is minted when omitted. */
|
|
303
|
+
readonly trailId?: TrailId;
|
|
304
|
+
/** Initial annotations on the root probe. */
|
|
305
|
+
readonly attributes?: ProbeAttributes;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* The single recorder facade the agent talks to.
|
|
309
|
+
*
|
|
310
|
+
* A {@link Recorder} mints trails and routes their signals through the pipeline.
|
|
311
|
+
* It owns the {@link SampleGate}, the {@link SecretRedactor}, and the configured
|
|
312
|
+
* {@link Sink}s; callers only ever see {@link ProbeHandle}s. The two opening
|
|
313
|
+
* methods differ only in whether a parent trail already exists:
|
|
314
|
+
* - {@link Recorder.openTrail} starts a *new* trail and returns its root
|
|
315
|
+
* handle (or {@link NOOP_HANDLE} when the gate rejects it);
|
|
316
|
+
* - {@link Recorder.scope} returns a per-trail recorder view bound to one
|
|
317
|
+
* trail id, used by the bridges and rehydrator that already know the trail.
|
|
318
|
+
*/
|
|
319
|
+
export interface Recorder {
|
|
320
|
+
/** The service name stamped on emitted signals (e.g. for a dashboard panel). */
|
|
321
|
+
readonly service: string;
|
|
322
|
+
/** Whether this recorder records at all (a disabled recorder is all no-ops). */
|
|
323
|
+
readonly enabled: boolean;
|
|
324
|
+
/** Open a brand-new trail; returns its root {@link ProbeHandle}. */
|
|
325
|
+
openTrail(input: OpenTrailInput): ProbeHandle;
|
|
326
|
+
/** Bind a {@link TrailRecorder} view to an existing trail id. */
|
|
327
|
+
scope(trailId: TrailId): TrailRecorder;
|
|
328
|
+
/** Flush any buffered signals to all sinks and resolve when settled. */
|
|
329
|
+
flush(): Promise<void>;
|
|
330
|
+
/** Flush, then detach all sinks; the recorder is unusable afterwards. */
|
|
331
|
+
shutdown(): Promise<void>;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* A recorder view bound to one trail.
|
|
335
|
+
*
|
|
336
|
+
* Bridges and the session rehydrator obtain a {@link TrailRecorder} via
|
|
337
|
+
* {@link Recorder.scope} so they can open probes onto a known trail without
|
|
338
|
+
* re-minting the trail id on every event. `open` adds a root-level probe to the
|
|
339
|
+
* bound trail; `child` adds a probe under a known parent.
|
|
340
|
+
*/
|
|
341
|
+
export interface TrailRecorder {
|
|
342
|
+
/** The trail this view is bound to. */
|
|
343
|
+
readonly trailId: TrailId;
|
|
344
|
+
/** Whether the bound trail is sampled in (false -> every call is a no-op). */
|
|
345
|
+
readonly sampled: boolean;
|
|
346
|
+
/** Open a probe at the trail root level; returns its handle. */
|
|
347
|
+
open(kind: ProbeKind, name: string, attributes?: ProbeAttributes): ProbeHandle;
|
|
348
|
+
/** Open a probe under the given parent probe id; returns its handle. */
|
|
349
|
+
child(parentId: ProbeId, kind: ProbeKind, name: string, attributes?: ProbeAttributes): ProbeHandle;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* The token a {@link SecretRedactor} substitutes for a removed value.
|
|
353
|
+
*
|
|
354
|
+
* A single, distinctive sentinel so redacted output is greppable and never
|
|
355
|
+
* collides with a plausible real value.
|
|
356
|
+
*/
|
|
357
|
+
export declare const REDACTED_TOKEN: "[insight:scrubbed]";
|
|
358
|
+
/** The literal type of {@link REDACTED_TOKEN}. */
|
|
359
|
+
export type RedactedToken = typeof REDACTED_TOKEN;
|
|
360
|
+
/**
|
|
361
|
+
* A single redaction rule.
|
|
362
|
+
*
|
|
363
|
+
* A rule fires when either the attribute *key* matches {@link RedactionRule.key}
|
|
364
|
+
* (case-insensitive substring or regex) or a string *value* matches
|
|
365
|
+
* {@link RedactionRule.value}; the matched span is replaced with the
|
|
366
|
+
* {@link REDACTED_TOKEN}. Rules are evaluated in order and are additive.
|
|
367
|
+
*/
|
|
368
|
+
export interface RedactionRule {
|
|
369
|
+
/** A label for diagnostics (e.g. `"bearer-token"`). */
|
|
370
|
+
readonly id: string;
|
|
371
|
+
/** Matches against attribute keys; a string is a case-insensitive substring. */
|
|
372
|
+
readonly key?: string | RegExp;
|
|
373
|
+
/** Matches against string values; the matched run is replaced. */
|
|
374
|
+
readonly value?: RegExp;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Options that bound a {@link SecretRedactor}.
|
|
378
|
+
*/
|
|
379
|
+
export interface RedactionOptions {
|
|
380
|
+
/** Hard cap on retained string length; longer values are truncated. */
|
|
381
|
+
readonly maxStringLength?: number;
|
|
382
|
+
/** Attribute keys dropped entirely rather than tokenized. */
|
|
383
|
+
readonly omitKeys?: readonly string[];
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* The attribute-processor contract applied before signals reach a sink.
|
|
387
|
+
*
|
|
388
|
+
* A {@link SecretRedactor} owns the agent's own patterns ({@link RedactionRule}s)
|
|
389
|
+
* and the {@link REDACTED_TOKEN}. The pipeline calls {@link SecretRedactor.scrub}
|
|
390
|
+
* on every probe carried by a {@link Signal}; the redactor returns a new probe
|
|
391
|
+
* with a scrubbed attribute bag and a scrubbed {@link ProbeFault}, leaving the
|
|
392
|
+
* original frozen value untouched.
|
|
393
|
+
*/
|
|
394
|
+
export interface SecretRedactor {
|
|
395
|
+
/** The rules this redactor applies, in evaluation order. */
|
|
396
|
+
readonly rules: readonly RedactionRule[];
|
|
397
|
+
/** Scrub a single value (string / object / array), recursively. */
|
|
398
|
+
scrubValue(value: unknown): unknown;
|
|
399
|
+
/** Scrub a probe's attribute bag, returning a new frozen bag. */
|
|
400
|
+
scrubAttributes(attributes: ProbeAttributes): ProbeAttributes;
|
|
401
|
+
/** Scrub a whole probe (attributes + fault), returning a new frozen probe. */
|
|
402
|
+
scrub(probe: Probe): Probe;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* A redactor that performs no redaction.
|
|
406
|
+
*
|
|
407
|
+
* The frozen identity processor used when redaction is disabled: every method
|
|
408
|
+
* returns its input unchanged. Distinct from a configured {@link SecretRedactor}
|
|
409
|
+
* with an empty rule set only in intent — both are safe defaults.
|
|
410
|
+
*/
|
|
411
|
+
export declare const PASSTHRU_REDACTOR: SecretRedactor;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Insight subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* `insight/` is the agent's single observability plane. It re-exports the FROZEN
|
|
5
|
+
* contract: the id model ({@link TrailId} / {@link ProbeId}), the immutable
|
|
6
|
+
* {@link Probe} value and its functional {@link ProbeHandle} (with the shared
|
|
7
|
+
* sampled-out {@link NOOP_HANDLE}), the wire {@link Signal} union, the
|
|
8
|
+
* {@link SampleGate} admission contract, the {@link Sink} drain interface, the
|
|
9
|
+
* {@link Recorder} / {@link TrailRecorder} facades, and the
|
|
10
|
+
* {@link SecretRedactor} attribute processor (with its {@link REDACTED_TOKEN}).
|
|
11
|
+
*
|
|
12
|
+
* Behaviour modules (the recorder, the flush buffer, the console / file / stream
|
|
13
|
+
* sinks, the redactor implementation, the agent and stream bridges, the session
|
|
14
|
+
* rehydrator, the ledger, and the dashboard panel) are added to this barrel as
|
|
15
|
+
* they land; consumers import the insight surface from `src/insight` rather than
|
|
16
|
+
* reaching into individual modules.
|
|
17
|
+
*/
|
|
18
|
+
export type { TrailId, ProbeId, ProbeKind, ProbeStatus, ProbeOutcome, ProbeFault, ProbeAttributes, Probe, ClosedProbe, ProbeHandle, SignalPhase, OpenSignal, UpdateSignal, CloseSignal, Signal, SignalEmit, SampleGate, FixedGates, SignalStream, Sink, OpenTrailInput, Recorder, TrailRecorder, RedactedToken, RedactionRule, RedactionOptions, SecretRedactor, } from "./contract";
|
|
19
|
+
export { ID_WIDTHS, asTrailId, asProbeId, PROBE_KINDS, isClosedProbe, NOOP_HANDLE, isCloseSignal, REDACTED_TOKEN, PASSTHRU_REDACTOR, } from "./contract";
|
|
20
|
+
export { alwaysGate, neverGate, ratioGate, isRatioGate, hash32, trailScore, FIXED_GATES, type RatioGate, } from "./sampling";
|
|
21
|
+
export { createChannel, type SignalChannel } from "./channel";
|
|
22
|
+
export { createRecorder, mintTrailId, mintProbeId, faultOf, type RecorderOptions, type InsightRecorder, } from "./recorder";
|
|
23
|
+
export { createRedactor, DEFAULT_REDACTOR, DEFAULT_REDACTION_RULES, } from "./redaction";
|
|
24
|
+
export { encodeRecord, decodeRecord, signalToRecord, recordIsClose, RECORD_VERSION, LINE_FEED, type TraceRecord, } from "./serialize";
|
|
25
|
+
export { createConsoleSink, createFileSink, createStreamSink, createCollectorSink, type ConsoleSinkOptions, type LineWriter, type FileSinkOptions, type StreamSinkOptions, type SignalWriter, type CollectorSink, } from "./sinks/index";
|
|
26
|
+
export { readLines, readRecords, replaySignals, replayProbes, replayTrails, type ChunkSource, type ReplayOptions, type ReplayedTrail, } from "./replay";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase 11 insight — behavioral tests for the unified tracing plane.
|
|
3
|
+
*
|
|
4
|
+
* Four independent surfaces, all driven in-memory (plus one tmpdir round-trip)
|
|
5
|
+
* with no real stdio and no framework imports:
|
|
6
|
+
*
|
|
7
|
+
* 1. a Recorder with an always-admitting gate opens a run Probe, a child probe,
|
|
8
|
+
* and closes both; the channel is collected and the open/close Signals are
|
|
9
|
+
* asserted for parent linkage and non-decreasing timing;
|
|
10
|
+
* 2. a never-admitting SampleGate collapses a trail to NOOP_HANDLE (no signals),
|
|
11
|
+
* and the ratio gate verdict is deterministic for a given trail id;
|
|
12
|
+
* 3. a FileSink writes one NDJSON record per closed probe into a tmpdir; the
|
|
13
|
+
* lines parse and replay reconstructs the probes;
|
|
14
|
+
* 4. a SecretRedactor replaces an api-key-ish value with the contract token,
|
|
15
|
+
* leaves plain prose alone, and returns a fresh (non-mutated) object.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recorder — the trail/probe factory at the head of the pipeline.
|
|
3
|
+
*
|
|
4
|
+
* {@link createRecorder} returns the single {@link Recorder} the agent talks to.
|
|
5
|
+
* Opening a trail consults the {@link SampleGate}: a sampled-out trail collapses
|
|
6
|
+
* to {@link NOOP_HANDLE} (and its whole probe subtree is free), while a sampled-in
|
|
7
|
+
* trail mints a {@link TrailId}, a root {@link Probe}, and emits an `open`
|
|
8
|
+
* {@link Signal} onto the {@link SignalChannel}. Each live {@link ProbeHandle}
|
|
9
|
+
* carries closures that derive the next frozen probe value on `note` / `fail` /
|
|
10
|
+
* `close` and push the matching signal; `child` mints a sub-probe sharing the
|
|
11
|
+
* trail. The contract's forgiving lifecycle is honoured here: `note` / `child` /
|
|
12
|
+
* `fail` are no-ops after `close`, and `close` is idempotent (first call wins).
|
|
13
|
+
*
|
|
14
|
+
* The recorder runs every probe through a {@link SecretRedactor} just before the
|
|
15
|
+
* signal hits the channel, so no sink ever sees an unscrubbed value. Ids are
|
|
16
|
+
* minted from `node:crypto` random bytes at the W3C-derived widths in
|
|
17
|
+
* {@link ID_WIDTHS}; nothing here imports the framework.
|
|
18
|
+
*/
|
|
19
|
+
import { SignalChannel } from "./channel";
|
|
20
|
+
import { ProbeFault, ProbeId, Recorder, SampleGate, SecretRedactor, Sink, TrailId } from "./contract";
|
|
21
|
+
/** Mint a fresh 128-bit {@link TrailId} (32 hex chars). */
|
|
22
|
+
export declare function mintTrailId(): TrailId;
|
|
23
|
+
/** Mint a fresh 64-bit {@link ProbeId} (16 hex chars). */
|
|
24
|
+
export declare function mintProbeId(): ProbeId;
|
|
25
|
+
/** Construction options for {@link createRecorder}. */
|
|
26
|
+
export interface RecorderOptions {
|
|
27
|
+
/** Service name stamped on the recorder (e.g. for a dashboard panel). */
|
|
28
|
+
readonly service?: string;
|
|
29
|
+
/** Master switch; a disabled recorder is all no-ops regardless of the gate. */
|
|
30
|
+
readonly enabled?: boolean;
|
|
31
|
+
/** Admission gate; defaults to {@link alwaysGate} when enabled. */
|
|
32
|
+
readonly gate?: SampleGate;
|
|
33
|
+
/** Attribute processor run before signals reach a sink; defaults to passthrough. */
|
|
34
|
+
readonly redactor?: SecretRedactor;
|
|
35
|
+
/** Sinks attached at construction; each drains an independent stream. */
|
|
36
|
+
readonly sinks?: readonly Sink[];
|
|
37
|
+
/** Clock source, in epoch ms; defaults to {@link Date.now}. Useful for tests. */
|
|
38
|
+
readonly now?: () => number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A {@link Recorder} that also exposes its underlying {@link SignalChannel}.
|
|
42
|
+
*
|
|
43
|
+
* Tests and the pipeline can attach extra streams after construction; the agent
|
|
44
|
+
* only ever sees the {@link Recorder} face.
|
|
45
|
+
*/
|
|
46
|
+
export interface InsightRecorder extends Recorder {
|
|
47
|
+
/** The channel every live handle emits onto; one stream per attached sink. */
|
|
48
|
+
readonly channel: SignalChannel;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Create the recorder at the head of the insight pipeline.
|
|
52
|
+
*
|
|
53
|
+
* @param options see {@link RecorderOptions}
|
|
54
|
+
* @returns a live {@link InsightRecorder}
|
|
55
|
+
*/
|
|
56
|
+
export declare function createRecorder(options?: RecorderOptions): InsightRecorder;
|
|
57
|
+
/**
|
|
58
|
+
* Coerce an arbitrary thrown value into a serializable {@link ProbeFault}.
|
|
59
|
+
*
|
|
60
|
+
* An `Error` contributes its message, constructor name, and stack; any other
|
|
61
|
+
* value is rendered to a string message. The result is a plain frozen record.
|
|
62
|
+
*/
|
|
63
|
+
export declare function faultOf(error: unknown): ProbeFault;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret redaction — the attribute processor the pipeline runs before a sink.
|
|
3
|
+
*
|
|
4
|
+
* A {@link SecretRedactor} (contract) walks a probe's attribute bag and its
|
|
5
|
+
* fault, replacing sensitive values with the {@link REDACTED_TOKEN}. Three things
|
|
6
|
+
* can trigger a redaction:
|
|
7
|
+
*
|
|
8
|
+
* 1. a *key-path* match — the attribute key (or a nested object key) looks like
|
|
9
|
+
* a secret holder (`apiKey`, `password`, `authorization`, ...);
|
|
10
|
+
* 2. a *value* match — a string looks like a credential regardless of its key
|
|
11
|
+
* (a bearer token, an `sk-` key, a private-key block, ...);
|
|
12
|
+
* 3. an *omit* — a key listed in {@link RedactionOptions.omitKeys} is dropped
|
|
13
|
+
* from the output entirely rather than tokenized.
|
|
14
|
+
*
|
|
15
|
+
* The scrubber is *streaming* in the sense that it walks structures depth-first,
|
|
16
|
+
* tracking the current key as it descends so nested secrets (`{ http: { headers:
|
|
17
|
+
* { authorization: "..." } } }`) are caught by key without the caller flattening
|
|
18
|
+
* anything. Output is always freshly allocated and frozen; the input probe is
|
|
19
|
+
* never mutated. The default rule set and token are the agent's own — they do not
|
|
20
|
+
* mirror any upstream redactor.
|
|
21
|
+
*/
|
|
22
|
+
import { RedactionOptions, RedactionRule, SecretRedactor } from "./contract";
|
|
23
|
+
/**
|
|
24
|
+
* The agent's own default redaction rule set.
|
|
25
|
+
*
|
|
26
|
+
* One key rule covering every secret-bearing key fragment, plus one value rule
|
|
27
|
+
* per credential shape. Exposed so callers can extend rather than replace it.
|
|
28
|
+
*/
|
|
29
|
+
export declare const DEFAULT_REDACTION_RULES: readonly RedactionRule[];
|
|
30
|
+
/**
|
|
31
|
+
* Build a {@link SecretRedactor} from a rule set and options.
|
|
32
|
+
*
|
|
33
|
+
* @param rules the redaction rules to apply, in order; defaults to
|
|
34
|
+
* {@link DEFAULT_REDACTION_RULES}
|
|
35
|
+
* @param options length cap and key omissions; see {@link RedactionOptions}
|
|
36
|
+
* @returns a frozen redactor; its `scrub*` methods never mutate their inputs
|
|
37
|
+
*/
|
|
38
|
+
export declare function createRedactor(rules?: readonly RedactionRule[], options?: RedactionOptions): SecretRedactor;
|
|
39
|
+
/**
|
|
40
|
+
* A ready-built redactor using the agent's default rules and default caps.
|
|
41
|
+
*
|
|
42
|
+
* The pipeline installs this when redaction is enabled but unconfigured.
|
|
43
|
+
*/
|
|
44
|
+
export declare const DEFAULT_REDACTOR: SecretRedactor;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replay — read an NDJSON trace file back into probes and trails.
|
|
3
|
+
*
|
|
4
|
+
* The file sink writes one {@link TraceRecord} per line; replay is the inverse.
|
|
5
|
+
* It parses a chunk or line stream, validates each record, and exposes the
|
|
6
|
+
* recovered probes in three increasingly cooked forms:
|
|
7
|
+
*
|
|
8
|
+
* - {@link replaySignals} — the raw {@link Signal} stream, in file order;
|
|
9
|
+
* - {@link replayProbes} — the final probe value per id (close wins over open),
|
|
10
|
+
* which is what you usually want for offline analysis;
|
|
11
|
+
* - {@link replayTrails} — the probes grouped into per-trail trees, each with a
|
|
12
|
+
* root and a parent->children map, ready to render.
|
|
13
|
+
*
|
|
14
|
+
* Replay never imports the framework and performs no recording — it is a pure
|
|
15
|
+
* reader over the durable format pinned in `serialize.ts`. A malformed line is,
|
|
16
|
+
* by default, skipped rather than fatal, so a trace truncated by a crash still
|
|
17
|
+
* yields everything written before the break.
|
|
18
|
+
*/
|
|
19
|
+
import { Probe, ProbeId, Signal, TrailId } from "./contract";
|
|
20
|
+
import { TraceRecord } from "./serialize";
|
|
21
|
+
/** A source of raw bytes/text chunks (a file read stream, stdin, a buffer). */
|
|
22
|
+
export type ChunkSource = AsyncIterable<string | Uint8Array> | Iterable<string | Uint8Array>;
|
|
23
|
+
/** Options shared by the replay readers. */
|
|
24
|
+
export interface ReplayOptions {
|
|
25
|
+
/** Throw on a malformed line instead of skipping it; defaults to `false`. */
|
|
26
|
+
readonly strict?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Split a chunk source into complete text lines.
|
|
30
|
+
*
|
|
31
|
+
* Buffers across chunks, splits on `\n` only, and emits a trailing unterminated
|
|
32
|
+
* line at end-of-stream so a final non-newline frame is not dropped.
|
|
33
|
+
*/
|
|
34
|
+
export declare function readLines(source: ChunkSource): AsyncGenerator<string, void, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Decode a chunk source into a stream of validated {@link TraceRecord}s.
|
|
37
|
+
*
|
|
38
|
+
* Malformed JSON or a record failing the shape check is skipped (or rethrown
|
|
39
|
+
* when `strict`).
|
|
40
|
+
*/
|
|
41
|
+
export declare function readRecords(source: ChunkSource, options?: ReplayOptions): AsyncGenerator<TraceRecord, void, unknown>;
|
|
42
|
+
/** Reconstruct the {@link Signal} stream from a chunk source, in file order. */
|
|
43
|
+
export declare function replaySignals(source: ChunkSource, options?: ReplayOptions): AsyncGenerator<Signal, void, unknown>;
|
|
44
|
+
/**
|
|
45
|
+
* Collapse a trace into the final value of each probe, keyed by id.
|
|
46
|
+
*
|
|
47
|
+
* Records arrive in lifecycle order (open -> update* -> close); the last record
|
|
48
|
+
* for an id wins, so a closed probe supersedes its open. The returned map
|
|
49
|
+
* preserves first-seen insertion order.
|
|
50
|
+
*/
|
|
51
|
+
export declare function replayProbes(source: ChunkSource, options?: ReplayOptions): Promise<Map<ProbeId, Probe>>;
|
|
52
|
+
/** One reconstructed trail: its root probe plus the parent->children index. */
|
|
53
|
+
export interface ReplayedTrail {
|
|
54
|
+
/** The trail id every probe in this tree shares. */
|
|
55
|
+
readonly trailId: TrailId;
|
|
56
|
+
/** The root probe (parentId === null), or `null` if the root was never seen. */
|
|
57
|
+
readonly root: Probe | null;
|
|
58
|
+
/** Every probe in the trail, keyed by id, in first-seen order. */
|
|
59
|
+
readonly probes: ReadonlyMap<ProbeId, Probe>;
|
|
60
|
+
/** Child probe ids per parent id; roots are listed under the empty key. */
|
|
61
|
+
readonly children: ReadonlyMap<ProbeId | null, readonly ProbeId[]>;
|
|
62
|
+
/** Whether every probe in the trail reached a terminal state. */
|
|
63
|
+
readonly complete: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Group a trace into per-trail trees.
|
|
67
|
+
*
|
|
68
|
+
* Each {@link ReplayedTrail} carries its probes, a parent->children adjacency
|
|
69
|
+
* map (so a renderer can walk the tree without re-scanning), the located root,
|
|
70
|
+
* and a completeness flag. Trails appear in the order their first probe was
|
|
71
|
+
* seen.
|
|
72
|
+
*
|
|
73
|
+
* @param source the NDJSON chunk source
|
|
74
|
+
* @param options see {@link ReplayOptions}
|
|
75
|
+
* @returns one {@link ReplayedTrail} per distinct trail id
|
|
76
|
+
*/
|
|
77
|
+
export declare function replayTrails(source: ChunkSource, options?: ReplayOptions): Promise<ReplayedTrail[]>;
|