indusagi-coding-agent 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -48
- package/CREDITS.md +19 -0
- package/NOTICE +7 -0
- package/README.md +65 -63
- package/dist/entry.js +19250 -0
- package/dist/types/addons/addons.test.d.ts +21 -0
- package/dist/types/addons/contract.d.ts +640 -0
- package/dist/types/addons/dispatch/event-dispatcher.d.ts +140 -0
- package/dist/types/addons/dispatch/index.d.ts +23 -0
- package/dist/types/addons/dispatch/tool-interceptor.d.ts +128 -0
- package/dist/types/addons/host.d.ts +246 -0
- package/dist/types/addons/index.d.ts +51 -0
- package/dist/types/addons/manifest.d.ts +56 -0
- package/dist/types/addons/sandbox.d.ts +103 -0
- package/dist/types/addons/surface.d.ts +42 -0
- package/dist/types/boot/auth-vault.d.ts +29 -0
- package/dist/types/boot/boot.d.ts +26 -0
- package/dist/types/boot/boot.test.d.ts +15 -0
- package/dist/types/boot/contract.d.ts +234 -0
- package/dist/types/boot/index.d.ts +20 -0
- package/dist/types/boot/invocation.d.ts +40 -0
- package/dist/types/boot/invocation.test.d.ts +8 -0
- package/dist/types/boot/runners/index.d.ts +11 -0
- package/dist/types/boot/runners/link-runner.d.ts +20 -0
- package/dist/types/boot/runners/oneshot-runner.d.ts +19 -0
- package/dist/types/boot/runners/registry.d.ts +30 -0
- package/dist/types/boot/runners/repl-runner.d.ts +19 -0
- package/dist/types/boot/runners/session-persist.test.d.ts +10 -0
- package/dist/types/boot/runners/session.d.ts +45 -0
- package/dist/types/boot/stages.d.ts +92 -0
- package/dist/types/boot/upgrade/apply.d.ts +45 -0
- package/dist/types/boot/upgrade/index.d.ts +13 -0
- package/dist/types/boot/upgrade/upgrades.d.ts +126 -0
- package/dist/types/briefing/briefing.test.d.ts +15 -0
- package/dist/types/briefing/compose.d.ts +37 -0
- package/dist/types/briefing/contract.d.ts +686 -0
- package/dist/types/briefing/index.d.ts +27 -0
- package/dist/types/briefing/macros.d.ts +206 -0
- package/dist/types/briefing/skills.d.ts +67 -0
- package/dist/types/capability-deck/bridge-ledger/index.d.ts +25 -0
- package/dist/types/capability-deck/bridge-ledger/key.d.ts +65 -0
- package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +129 -0
- package/dist/types/capability-deck/bridge-ledger/network.d.ts +115 -0
- package/dist/types/capability-deck/builtin-bridge.d.ts +114 -0
- package/dist/types/capability-deck/capability-deck.test.d.ts +18 -0
- package/dist/types/capability-deck/cards/bg-process-card.d.ts +99 -0
- package/dist/types/capability-deck/cards/index.d.ts +30 -0
- package/dist/types/capability-deck/cards/memory-card.d.ts +69 -0
- package/dist/types/capability-deck/cards/saas-card.d.ts +78 -0
- package/dist/types/capability-deck/cards/task-card.d.ts +82 -0
- package/dist/types/capability-deck/cards/todo-card.d.ts +78 -0
- package/dist/types/capability-deck/contract.d.ts +317 -0
- package/dist/types/capability-deck/index.d.ts +46 -0
- package/dist/types/capability-deck/manifest.d.ts +60 -0
- package/dist/types/capability-deck/provision.d.ts +76 -0
- package/dist/types/channels/channels.test.d.ts +15 -0
- package/dist/types/channels/contract.d.ts +489 -0
- package/dist/types/channels/framer.d.ts +49 -0
- package/dist/types/channels/index.d.ts +24 -0
- package/dist/types/channels/link/dialog.d.ts +138 -0
- package/dist/types/channels/link/driver.d.ts +81 -0
- package/dist/types/channels/link/index.d.ts +13 -0
- package/dist/types/channels/link/server.d.ts +70 -0
- package/dist/types/channels/oneshot.d.ts +37 -0
- package/dist/types/channels/ops.d.ts +89 -0
- package/dist/types/channels/session-ops.d.ts +80 -0
- package/dist/types/conductor/catalog/catalog.d.ts +87 -0
- package/dist/types/conductor/catalog/index.d.ts +14 -0
- package/dist/types/conductor/catalog/matcher.d.ts +47 -0
- package/dist/types/conductor/conductor.d.ts +157 -0
- package/dist/types/conductor/conductor.test.d.ts +10 -0
- package/dist/types/conductor/contract.d.ts +547 -0
- package/dist/types/conductor/index.d.ts +23 -0
- package/dist/types/conductor/signal-hub/hub.d.ts +83 -0
- package/dist/types/conductor/signal-hub/index.d.ts +19 -0
- package/dist/types/conductor/signal-hub/translate.d.ts +74 -0
- package/dist/types/conductor/skill-parse/index.d.ts +10 -0
- package/dist/types/conductor/skill-parse/parse.d.ts +67 -0
- package/dist/types/conductor/submit.test.d.ts +28 -0
- package/dist/types/conductor/transcript-store/index.d.ts +16 -0
- package/dist/types/conductor/transcript-store/serialize.d.ts +106 -0
- package/dist/types/conductor/transcript-store/store.d.ts +170 -0
- package/dist/types/console/components/Banner.d.ts +54 -0
- package/dist/types/console/components/Composer.d.ts +37 -0
- package/dist/types/console/components/StatusBar.d.ts +31 -0
- package/dist/types/console/components/TerminalConsole.d.ts +32 -0
- package/dist/types/console/console.test.d.ts +19 -0
- package/dist/types/console/contract.d.ts +562 -0
- package/dist/types/console/index.d.ts +31 -0
- package/dist/types/console/input/complete.d.ts +120 -0
- package/dist/types/console/input/dir-reader.d.ts +28 -0
- package/dist/types/console/input/index.d.ts +24 -0
- package/dist/types/console/input/input.test.d.ts +14 -0
- package/dist/types/console/input/keymap.d.ts +184 -0
- package/dist/types/console/input/paste.d.ts +131 -0
- package/dist/types/console/mount.d.ts +53 -0
- package/dist/types/console/overlays/auth.d.ts +31 -0
- package/dist/types/console/overlays/host.d.ts +44 -0
- package/dist/types/console/overlays/index.d.ts +13 -0
- package/dist/types/console/overlays/pickers.d.ts +37 -0
- package/dist/types/console/overlays/sessions.d.ts +29 -0
- package/dist/types/console/reducer.d.ts +51 -0
- package/dist/types/console/slash/builtins.d.ts +33 -0
- package/dist/types/console/slash/commands/dynamic.d.ts +57 -0
- package/dist/types/console/slash/commands/dynamic.test.d.ts +9 -0
- package/dist/types/console/slash/commands/integrations.d.ts +28 -0
- package/dist/types/console/slash/commands/integrations.test.d.ts +18 -0
- package/dist/types/console/slash/commands/shared.d.ts +72 -0
- package/dist/types/console/slash/commands/transcript.d.ts +24 -0
- package/dist/types/console/slash/commands/transcript.test.d.ts +10 -0
- package/dist/types/console/slash/commands/workbench.d.ts +21 -0
- package/dist/types/console/slash/commands/workbench.test.d.ts +10 -0
- package/dist/types/console/slash/index.d.ts +34 -0
- package/dist/types/console/slash/registry.d.ts +90 -0
- package/dist/types/console/slash/resolve.d.ts +109 -0
- package/dist/types/console/slash/slash.test.d.ts +18 -0
- package/dist/types/console/startup.d.ts +119 -0
- package/dist/types/console/theme/adapter.d.ts +60 -0
- package/dist/types/console/theme/index.d.ts +18 -0
- package/dist/types/console/theme/palette.d.ts +42 -0
- package/dist/types/console/theme/resolve.d.ts +45 -0
- package/dist/types/console/theme/theme.test.d.ts +16 -0
- package/dist/types/console/theme/tokens.d.ts +40 -0
- package/dist/types/entry.d.ts +17 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/insight/channel.d.ts +45 -0
- package/dist/types/insight/contract.d.ts +411 -0
- package/dist/types/insight/index.d.ts +26 -0
- package/dist/types/insight/insight.test.d.ts +17 -0
- package/dist/types/insight/recorder.d.ts +63 -0
- package/dist/types/insight/redaction.d.ts +44 -0
- package/dist/types/insight/replay.d.ts +77 -0
- package/dist/types/insight/sampling.d.ts +84 -0
- package/dist/types/insight/serialize.d.ts +54 -0
- package/dist/types/insight/sinks/console.d.ts +36 -0
- package/dist/types/insight/sinks/file.d.ts +37 -0
- package/dist/types/insight/sinks/index.d.ts +16 -0
- package/dist/types/insight/sinks/stream.d.ts +53 -0
- package/dist/types/kit/clipboard-image.d.ts +40 -0
- package/dist/types/kit/external-editor.d.ts +35 -0
- package/dist/types/kit/image.d.ts +102 -0
- package/dist/types/kit/index.d.ts +29 -0
- package/dist/types/kit/kit.test.d.ts +13 -0
- package/dist/types/kit/shell.d.ts +50 -0
- package/dist/types/kit/tool-fetch.d.ts +165 -0
- package/dist/types/launch/catalog.d.ts +51 -0
- package/dist/types/launch/contract.d.ts +385 -0
- package/dist/types/launch/credentials.d.ts +112 -0
- package/dist/types/launch/index.d.ts +28 -0
- package/dist/types/launch/invocation/attachments.d.ts +72 -0
- package/dist/types/launch/invocation/flags.d.ts +59 -0
- package/dist/types/launch/invocation/index.d.ts +23 -0
- package/dist/types/launch/invocation/read.d.ts +52 -0
- package/dist/types/launch/invocation/usage.d.ts +25 -0
- package/dist/types/launch/launch.test.d.ts +20 -0
- package/dist/types/launch/oauth.d.ts +88 -0
- package/dist/types/launch/packages.d.ts +75 -0
- package/dist/types/launch/packages.test.d.ts +15 -0
- package/dist/types/launch/pickers.d.ts +97 -0
- package/dist/types/runtime-bridge/bridges/_drive.d.ts +74 -0
- package/dist/types/runtime-bridge/bridges/builtins.d.ts +77 -0
- package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +37 -0
- package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +27 -0
- package/dist/types/runtime-bridge/bridges/index.d.ts +15 -0
- package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +36 -0
- package/dist/types/runtime-bridge/broker.d.ts +182 -0
- package/dist/types/runtime-bridge/contract.d.ts +436 -0
- package/dist/types/runtime-bridge/index.d.ts +21 -0
- package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +17 -0
- package/dist/types/runtime-bridge/sink.d.ts +59 -0
- package/dist/types/sessions/contract.d.ts +79 -0
- package/dist/types/sessions/index.d.ts +11 -0
- package/dist/types/sessions/library.d.ts +95 -0
- package/dist/types/sessions/sessions.test.d.ts +11 -0
- package/dist/types/settings/contract.d.ts +116 -0
- package/dist/types/settings/index.d.ts +13 -0
- package/dist/types/settings/manager.d.ts +109 -0
- package/dist/types/settings/settings.test.d.ts +16 -0
- package/dist/types/transcript-export/index.d.ts +20 -0
- package/dist/types/transcript-export/publish.d.ts +81 -0
- package/dist/types/transcript-export/sgr.d.ts +90 -0
- package/dist/types/transcript-export/template.d.ts +64 -0
- package/dist/types/transcript-export/theme-bridge.d.ts +99 -0
- package/dist/types/transcript-export/transcript-export.test.d.ts +16 -0
- package/dist/types/window-budget/budget/estimate.d.ts +47 -0
- package/dist/types/window-budget/budget/gate.d.ts +37 -0
- package/dist/types/window-budget/budget/index.d.ts +14 -0
- package/dist/types/window-budget/budget/slice.d.ts +38 -0
- package/dist/types/window-budget/condenser.d.ts +59 -0
- package/dist/types/window-budget/contract.d.ts +182 -0
- package/dist/types/window-budget/index.d.ts +15 -0
- package/dist/types/window-budget/summarize/condense.d.ts +70 -0
- package/dist/types/window-budget/summarize/index.d.ts +12 -0
- package/dist/types/window-budget/summarize/prompt.d.ts +56 -0
- package/dist/types/window-budget/window-budget.test.d.ts +18 -0
- package/dist/types/workspace/brand.d.ts +20 -0
- package/dist/types/workspace/index.d.ts +11 -0
- package/dist/types/workspace/locator.d.ts +50 -0
- package/dist/types/workspace/runtime-detect.d.ts +56 -0
- package/package.json +43 -62
- package/LICENSE +0 -8
- package/LICENSE-THIRD-PARTY.txt +0 -30
- package/demos/README.md +0 -12
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -30
- package/dist/cli.js.map +0 -1
- package/dist/command-line/args.d.ts +0 -59
- package/dist/command-line/args.d.ts.map +0 -1
- package/dist/command-line/args.js +0 -332
- package/dist/command-line/args.js.map +0 -1
- package/dist/command-line/config-selector.d.ts +0 -17
- package/dist/command-line/config-selector.d.ts.map +0 -1
- package/dist/command-line/config-selector.js +0 -34
- package/dist/command-line/config-selector.js.map +0 -1
- package/dist/command-line/file-processor.d.ts +0 -15
- package/dist/command-line/file-processor.d.ts.map +0 -1
- package/dist/command-line/file-processor.js +0 -73
- package/dist/command-line/file-processor.js.map +0 -1
- package/dist/command-line/list-models.d.ts +0 -9
- package/dist/command-line/list-models.d.ts.map +0 -1
- package/dist/command-line/list-models.js +0 -74
- package/dist/command-line/list-models.js.map +0 -1
- package/dist/command-line/login-handler.d.ts +0 -94
- package/dist/command-line/login-handler.d.ts.map +0 -1
- package/dist/command-line/login-handler.js +0 -794
- package/dist/command-line/login-handler.js.map +0 -1
- package/dist/command-line/session-picker.d.ts +0 -10
- package/dist/command-line/session-picker.d.ts.map +0 -1
- package/dist/command-line/session-picker.js +0 -60
- package/dist/command-line/session-picker.js.map +0 -1
- package/dist/config.d.ts +0 -31
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -143
- package/dist/config.js.map +0 -1
- package/dist/dev/observe-deep.d.ts +0 -2
- package/dist/dev/observe-deep.d.ts.map +0 -1
- package/dist/dev/observe-deep.js +0 -333
- package/dist/dev/observe-deep.js.map +0 -1
- package/dist/dev/observe-smoke.d.ts +0 -2
- package/dist/dev/observe-smoke.d.ts.map +0 -1
- package/dist/dev/observe-smoke.js +0 -264
- package/dist/dev/observe-smoke.js.map +0 -1
- package/dist/helpers/array.d.ts +0 -438
- package/dist/helpers/array.d.ts.map +0 -1
- package/dist/helpers/array.js +0 -692
- package/dist/helpers/array.js.map +0 -1
- package/dist/helpers/changelog.d.ts +0 -20
- package/dist/helpers/changelog.d.ts.map +0 -1
- package/dist/helpers/changelog.js +0 -79
- package/dist/helpers/changelog.js.map +0 -1
- package/dist/helpers/clipboard-image.d.ts +0 -11
- package/dist/helpers/clipboard-image.d.ts.map +0 -1
- package/dist/helpers/clipboard-image.js +0 -111
- package/dist/helpers/clipboard-image.js.map +0 -1
- package/dist/helpers/clipboard.d.ts +0 -2
- package/dist/helpers/clipboard.d.ts.map +0 -1
- package/dist/helpers/clipboard.js +0 -72
- package/dist/helpers/clipboard.js.map +0 -1
- package/dist/helpers/color-formatter.d.ts +0 -318
- package/dist/helpers/color-formatter.d.ts.map +0 -1
- package/dist/helpers/color-formatter.js +0 -469
- package/dist/helpers/color-formatter.js.map +0 -1
- package/dist/helpers/data-transformer.d.ts +0 -391
- package/dist/helpers/data-transformer.d.ts.map +0 -1
- package/dist/helpers/data-transformer.js +0 -604
- package/dist/helpers/data-transformer.js.map +0 -1
- package/dist/helpers/date-formatter.d.ts +0 -316
- package/dist/helpers/date-formatter.d.ts.map +0 -1
- package/dist/helpers/date-formatter.js +0 -553
- package/dist/helpers/date-formatter.js.map +0 -1
- package/dist/helpers/error-handler.d.ts +0 -541
- package/dist/helpers/error-handler.d.ts.map +0 -1
- package/dist/helpers/error-handler.js +0 -726
- package/dist/helpers/error-handler.js.map +0 -1
- package/dist/helpers/file-operations.d.ts +0 -324
- package/dist/helpers/file-operations.d.ts.map +0 -1
- package/dist/helpers/file-operations.js +0 -543
- package/dist/helpers/file-operations.js.map +0 -1
- package/dist/helpers/frontmatter.d.ts +0 -273
- package/dist/helpers/frontmatter.d.ts.map +0 -1
- package/dist/helpers/frontmatter.js +0 -580
- package/dist/helpers/frontmatter.js.map +0 -1
- package/dist/helpers/git.d.ts +0 -2
- package/dist/helpers/git.d.ts.map +0 -1
- package/dist/helpers/git.js +0 -6
- package/dist/helpers/git.js.map +0 -1
- package/dist/helpers/image-convert.d.ts +0 -9
- package/dist/helpers/image-convert.d.ts.map +0 -1
- package/dist/helpers/image-convert.js +0 -41
- package/dist/helpers/image-convert.js.map +0 -1
- package/dist/helpers/image-resize.d.ts +0 -19
- package/dist/helpers/image-resize.d.ts.map +0 -1
- package/dist/helpers/image-resize.js +0 -143
- package/dist/helpers/image-resize.js.map +0 -1
- package/dist/helpers/json-formatter.d.ts +0 -267
- package/dist/helpers/json-formatter.d.ts.map +0 -1
- package/dist/helpers/json-formatter.js +0 -533
- package/dist/helpers/json-formatter.js.map +0 -1
- package/dist/helpers/logger.d.ts +0 -176
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/logger.js +0 -346
- package/dist/helpers/logger.js.map +0 -1
- package/dist/helpers/markdown-formatter.d.ts +0 -235
- package/dist/helpers/markdown-formatter.d.ts.map +0 -1
- package/dist/helpers/markdown-formatter.js +0 -633
- package/dist/helpers/markdown-formatter.js.map +0 -1
- package/dist/helpers/mime.d.ts +0 -3
- package/dist/helpers/mime.d.ts.map +0 -1
- package/dist/helpers/mime.js +0 -46
- package/dist/helpers/mime.js.map +0 -1
- package/dist/helpers/open-auth-url.d.ts +0 -2
- package/dist/helpers/open-auth-url.d.ts.map +0 -1
- package/dist/helpers/open-auth-url.js +0 -59
- package/dist/helpers/open-auth-url.js.map +0 -1
- package/dist/helpers/path-validator.d.ts +0 -603
- package/dist/helpers/path-validator.d.ts.map +0 -1
- package/dist/helpers/path-validator.js +0 -895
- package/dist/helpers/path-validator.js.map +0 -1
- package/dist/helpers/photon.d.ts +0 -10
- package/dist/helpers/photon.d.ts.map +0 -1
- package/dist/helpers/photon.js +0 -132
- package/dist/helpers/photon.js.map +0 -1
- package/dist/helpers/shell.d.ts +0 -10
- package/dist/helpers/shell.d.ts.map +0 -1
- package/dist/helpers/shell.js +0 -142
- package/dist/helpers/shell.js.map +0 -1
- package/dist/helpers/sleep.d.ts +0 -5
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -41
- package/dist/helpers/sleep.js.map +0 -1
- package/dist/helpers/string-formatter.d.ts +0 -609
- package/dist/helpers/string-formatter.d.ts.map +0 -1
- package/dist/helpers/string-formatter.js +0 -807
- package/dist/helpers/string-formatter.js.map +0 -1
- package/dist/helpers/tools-manager.d.ts +0 -5
- package/dist/helpers/tools-manager.d.ts.map +0 -1
- package/dist/helpers/tools-manager.js +0 -161
- package/dist/helpers/tools-manager.js.map +0 -1
- package/dist/helpers/type-guards.d.ts +0 -634
- package/dist/helpers/type-guards.d.ts.map +0 -1
- package/dist/helpers/type-guards.js +0 -671
- package/dist/helpers/type-guards.js.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -16
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -14
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/print-mode.d.ts +0 -561
- package/dist/interfaces/print-mode.d.ts.map +0 -1
- package/dist/interfaces/print-mode.js +0 -633
- package/dist/interfaces/print-mode.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.d.ts +0 -19
- package/dist/interfaces/react-ink/adapters/command-router.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/command-router.js +0 -674
- package/dist/interfaces/react-ink/adapters/command-router.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.d.ts +0 -5
- package/dist/interfaces/react-ink/adapters/session-events.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-events.js +0 -255
- package/dist/interfaces/react-ink/adapters/session-events.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.d.ts +0 -14
- package/dist/interfaces/react-ink/adapters/session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/session-history.js +0 -83
- package/dist/interfaces/react-ink/adapters/session-history.js.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts +0 -4
- package/dist/interfaces/react-ink/adapters/tool-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/adapters/tool-state.js +0 -67
- package/dist/interfaces/react-ink/adapters/tool-state.js.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.d.ts +0 -17
- package/dist/interfaces/react-ink/components/AppShell.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/AppShell.js +0 -1535
- package/dist/interfaces/react-ink/components/AppShell.js.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/ChangelogBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ChangelogBlock.js +0 -58
- package/dist/interfaces/react-ink/components/ChangelogBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts +0 -9
- package/dist/interfaces/react-ink/components/DisplayBlockView.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/DisplayBlockView.js +0 -11
- package/dist/interfaces/react-ink/components/DisplayBlockView.js.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.d.ts +0 -12
- package/dist/interfaces/react-ink/components/Footer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Footer.js +0 -88
- package/dist/interfaces/react-ink/components/Footer.js.map +0 -1
- package/dist/interfaces/react-ink/components/Header.d.ts +0 -14
- package/dist/interfaces/react-ink/components/Header.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/Header.js +0 -24
- package/dist/interfaces/react-ink/components/Header.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.d.ts +0 -14
- package/dist/interfaces/react-ink/components/MessageList.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageList.js +0 -43
- package/dist/interfaces/react-ink/components/MessageList.js.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.d.ts +0 -13
- package/dist/interfaces/react-ink/components/MessageRow.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/MessageRow.js +0 -35
- package/dist/interfaces/react-ink/components/MessageRow.js.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.d.ts +0 -35
- package/dist/interfaces/react-ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/PromptInput.js +0 -458
- package/dist/interfaces/react-ink/components/PromptInput.js.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts +0 -9
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js +0 -14
- package/dist/interfaces/react-ink/components/StartupDiagnosticsBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.d.ts +0 -10
- package/dist/interfaces/react-ink/components/StatusLine.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/StatusLine.js +0 -39
- package/dist/interfaces/react-ink/components/StatusLine.js.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts +0 -10
- package/dist/interfaces/react-ink/components/TaskPanel.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/TaskPanel.js +0 -23
- package/dist/interfaces/react-ink/components/TaskPanel.js.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts +0 -18
- package/dist/interfaces/react-ink/components/ToolEventBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/ToolEventBlock.js +0 -61
- package/dist/interfaces/react-ink/components/ToolEventBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js +0 -6
- package/dist/interfaces/react-ink/components/dialogs/DialogFrame.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/LoginDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js +0 -64
- package/dist/interfaces/react-ink/components/dialogs/ModelDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js +0 -24
- package/dist/interfaces/react-ink/components/dialogs/OAuthDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js +0 -95
- package/dist/interfaces/react-ink/components/dialogs/ScopedModelsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts +0 -17
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js +0 -66
- package/dist/interfaces/react-ink/components/dialogs/SelectableDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts +0 -11
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js +0 -10
- package/dist/interfaces/react-ink/components/dialogs/SessionDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts +0 -15
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js +0 -79
- package/dist/interfaces/react-ink/components/dialogs/SettingsDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -10
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js +0 -99
- package/dist/interfaces/react-ink/components/dialogs/StartupSessionPicker.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts +0 -8
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/ThemeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/TreeDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -9
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js +0 -7
- package/dist/interfaces/react-ink/components/dialogs/UserMessageDialog.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts +0 -30
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js +0 -106
- package/dist/interfaces/react-ink/components/extensions/ExtensionComponentHost.js.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts +0 -20
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js +0 -145
- package/dist/interfaces/react-ink/components/extensions/ExtensionDialogs.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js +0 -20
- package/dist/interfaces/react-ink/components/messages/AssistantMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BashMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BashMessage.js +0 -11
- package/dist/interfaces/react-ink/components/messages/BashMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/BranchSummaryMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js +0 -6
- package/dist/interfaces/react-ink/components/messages/CompactionMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/CustomMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js +0 -9
- package/dist/interfaces/react-ink/components/messages/CustomMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -8
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js +0 -10
- package/dist/interfaces/react-ink/components/messages/SkillInvocationMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts +0 -9
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolCallMessage.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js +0 -8
- package/dist/interfaces/react-ink/components/messages/ToolResultBlock.js.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts +0 -10
- package/dist/interfaces/react-ink/components/messages/UserMessage.d.ts.map +0 -1
- package/dist/interfaces/react-ink/components/messages/UserMessage.js +0 -7
- package/dist/interfaces/react-ink/components/messages/UserMessage.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-agent-session.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-agent-session.js +0 -34
- package/dist/interfaces/react-ink/hooks/use-agent-session.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts +0 -12
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-app-keybindings.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts +0 -7
- package/dist/interfaces/react-ink/hooks/use-footer-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-footer-data.js +0 -17
- package/dist/interfaces/react-ink/hooks/use-footer-data.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts +0 -17
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js +0 -66
- package/dist/interfaces/react-ink/hooks/use-prompt-submit.js.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.d.ts.map +0 -1
- package/dist/interfaces/react-ink/hooks/use-session-history.js +0 -8
- package/dist/interfaces/react-ink/hooks/use-session-history.js.map +0 -1
- package/dist/interfaces/react-ink/index.d.ts +0 -8
- package/dist/interfaces/react-ink/index.d.ts.map +0 -1
- package/dist/interfaces/react-ink/index.js +0 -8
- package/dist/interfaces/react-ink/index.js.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.d.ts +0 -24
- package/dist/interfaces/react-ink/interactive-mode.d.ts.map +0 -1
- package/dist/interfaces/react-ink/interactive-mode.js +0 -57
- package/dist/interfaces/react-ink/interactive-mode.js.map +0 -1
- package/dist/interfaces/react-ink/render-root.d.ts +0 -19
- package/dist/interfaces/react-ink/render-root.d.ts.map +0 -1
- package/dist/interfaces/react-ink/render-root.js +0 -6
- package/dist/interfaces/react-ink/render-root.js.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.d.ts +0 -51
- package/dist/interfaces/react-ink/state/reducer.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/reducer.js +0 -122
- package/dist/interfaces/react-ink/state/reducer.js.map +0 -1
- package/dist/interfaces/react-ink/state/store.d.ts +0 -4
- package/dist/interfaces/react-ink/state/store.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/store.js +0 -5
- package/dist/interfaces/react-ink/state/store.js.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.d.ts +0 -5
- package/dist/interfaces/react-ink/state/ui-state.d.ts.map +0 -1
- package/dist/interfaces/react-ink/state/ui-state.js +0 -20
- package/dist/interfaces/react-ink/state/ui-state.js.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.d.ts +0 -4
- package/dist/interfaces/react-ink/theme-adapter.d.ts.map +0 -1
- package/dist/interfaces/react-ink/theme-adapter.js +0 -15
- package/dist/interfaces/react-ink/theme-adapter.js.map +0 -1
- package/dist/interfaces/react-ink/types.d.ts +0 -51
- package/dist/interfaces/react-ink/types.d.ts.map +0 -1
- package/dist/interfaces/react-ink/types.js +0 -2
- package/dist/interfaces/react-ink/types.js.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/changelog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/changelog.js +0 -40
- package/dist/interfaces/react-ink/utils/changelog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/key-data.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/key-data.js +0 -123
- package/dist/interfaces/react-ink/utils/key-data.js.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.d.ts +0 -26
- package/dist/interfaces/react-ink/utils/message-groups.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/message-groups.js +0 -230
- package/dist/interfaces/react-ink/utils/message-groups.js.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts +0 -20
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js +0 -46
- package/dist/interfaces/react-ink/utils/prompt-autocomplete.js.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts +0 -3
- package/dist/interfaces/react-ink/utils/selection-dialog.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/selection-dialog.js +0 -18
- package/dist/interfaces/react-ink/utils/selection-dialog.js.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/session-actions.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/session-actions.js +0 -66
- package/dist/interfaces/react-ink/utils/session-actions.js.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts +0 -10
- package/dist/interfaces/react-ink/utils/slash-commands.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/slash-commands.js +0 -111
- package/dist/interfaces/react-ink/utils/slash-commands.js.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts +0 -7
- package/dist/interfaces/react-ink/utils/startup-diagnostics.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js +0 -111
- package/dist/interfaces/react-ink/utils/startup-diagnostics.js.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.d.ts +0 -22
- package/dist/interfaces/react-ink/utils/tool-display.d.ts.map +0 -1
- package/dist/interfaces/react-ink/utils/tool-display.js +0 -349
- package/dist/interfaces/react-ink/utils/tool-display.js.map +0 -1
- package/dist/interfaces/service-api/rpc-client.d.ts +0 -1129
- package/dist/interfaces/service-api/rpc-client.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-client.js +0 -1333
- package/dist/interfaces/service-api/rpc-client.js.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.d.ts +0 -813
- package/dist/interfaces/service-api/rpc-mode.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-mode.js +0 -1229
- package/dist/interfaces/service-api/rpc-mode.js.map +0 -1
- package/dist/interfaces/service-api/rpc-types.d.ts +0 -392
- package/dist/interfaces/service-api/rpc-types.d.ts.map +0 -1
- package/dist/interfaces/service-api/rpc-types.js +0 -22
- package/dist/interfaces/service-api/rpc-types.js.map +0 -1
- package/dist/interfaces/shared.d.ts +0 -386
- package/dist/interfaces/shared.d.ts.map +0 -1
- package/dist/interfaces/shared.js +0 -543
- package/dist/interfaces/shared.js.map +0 -1
- package/dist/interfaces/theme/dark.json +0 -91
- package/dist/interfaces/theme/light.json +0 -90
- package/dist/interfaces/theme/theme-schema.json +0 -339
- package/dist/interfaces/theme/theme.d.ts +0 -500
- package/dist/interfaces/theme/theme.d.ts.map +0 -1
- package/dist/interfaces/theme/theme.js +0 -1511
- package/dist/interfaces/theme/theme.js.map +0 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -750
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -8
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -206
- package/dist/migrations.js.map +0 -1
- package/dist/observe.d.ts +0 -2
- package/dist/observe.d.ts.map +0 -1
- package/dist/observe.js +0 -2
- package/dist/observe.js.map +0 -1
- package/dist/runtime/agent-session.d.ts +0 -988
- package/dist/runtime/agent-session.d.ts.map +0 -1
- package/dist/runtime/agent-session.js +0 -3114
- package/dist/runtime/agent-session.js.map +0 -1
- package/dist/runtime/auth-storage.d.ts +0 -53
- package/dist/runtime/auth-storage.d.ts.map +0 -1
- package/dist/runtime/auth-storage.js +0 -378
- package/dist/runtime/auth-storage.js.map +0 -1
- package/dist/runtime/bash-executor.d.ts +0 -16
- package/dist/runtime/bash-executor.d.ts.map +0 -1
- package/dist/runtime/bash-executor.js +0 -270
- package/dist/runtime/bash-executor.js.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.d.ts +0 -86
- package/dist/runtime/context-compression/branch-summarization.d.ts.map +0 -1
- package/dist/runtime/context-compression/branch-summarization.js +0 -242
- package/dist/runtime/context-compression/branch-summarization.js.map +0 -1
- package/dist/runtime/context-compression/compaction.d.ts +0 -121
- package/dist/runtime/context-compression/compaction.d.ts.map +0 -1
- package/dist/runtime/context-compression/compaction.js +0 -607
- package/dist/runtime/context-compression/compaction.js.map +0 -1
- package/dist/runtime/context-compression/index.d.ts +0 -35
- package/dist/runtime/context-compression/index.d.ts.map +0 -1
- package/dist/runtime/context-compression/index.js +0 -33
- package/dist/runtime/context-compression/index.js.map +0 -1
- package/dist/runtime/context-compression/utils.d.ts +0 -17
- package/dist/runtime/context-compression/utils.d.ts.map +0 -1
- package/dist/runtime/context-compression/utils.js +0 -117
- package/dist/runtime/context-compression/utils.js.map +0 -1
- package/dist/runtime/diagnostics.d.ts +0 -206
- package/dist/runtime/diagnostics.d.ts.map +0 -1
- package/dist/runtime/diagnostics.js +0 -144
- package/dist/runtime/diagnostics.js.map +0 -1
- package/dist/runtime/discover-packages.d.ts +0 -2
- package/dist/runtime/discover-packages.d.ts.map +0 -1
- package/dist/runtime/discover-packages.js +0 -59
- package/dist/runtime/discover-packages.js.map +0 -1
- package/dist/runtime/event-bus.d.ts +0 -9
- package/dist/runtime/event-bus.d.ts.map +0 -1
- package/dist/runtime/event-bus.js +0 -29
- package/dist/runtime/event-bus.js.map +0 -1
- package/dist/runtime/exec.d.ts +0 -13
- package/dist/runtime/exec.d.ts.map +0 -1
- package/dist/runtime/exec.js +0 -62
- package/dist/runtime/exec.js.map +0 -1
- package/dist/runtime/footer-data-provider.d.ts +0 -19
- package/dist/runtime/footer-data-provider.d.ts.map +0 -1
- package/dist/runtime/footer-data-provider.js +0 -122
- package/dist/runtime/footer-data-provider.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.d.ts +0 -26
- package/dist/runtime/html-export/ansi-to-html.d.ts.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.js +0 -253
- package/dist/runtime/html-export/ansi-to-html.js.map +0 -1
- package/dist/runtime/html-export/ansi-to-html.ts +0 -262
- package/dist/runtime/html-export/index.d.ts +0 -162
- package/dist/runtime/html-export/index.d.ts.map +0 -1
- package/dist/runtime/html-export/index.js +0 -350
- package/dist/runtime/html-export/index.js.map +0 -1
- package/dist/runtime/html-export/index.ts +0 -432
- package/dist/runtime/html-export/template.css +0 -905
- package/dist/runtime/html-export/template.html +0 -76
- package/dist/runtime/html-export/template.js +0 -1549
- package/dist/runtime/html-export/tool-renderer.d.ts +0 -18
- package/dist/runtime/html-export/tool-renderer.d.ts.map +0 -1
- package/dist/runtime/html-export/tool-renderer.js +0 -45
- package/dist/runtime/html-export/tool-renderer.js.map +0 -1
- package/dist/runtime/html-export/tool-renderer.ts +0 -80
- package/dist/runtime/html-export/vendor/highlight.min.js +0 -1244
- package/dist/runtime/html-export/vendor/marked.min.js +0 -74
- package/dist/runtime/index.d.ts +0 -35
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -35
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/keybindings.d.ts +0 -20
- package/dist/runtime/keybindings.d.ts.map +0 -1
- package/dist/runtime/keybindings.js +0 -109
- package/dist/runtime/keybindings.js.map +0 -1
- package/dist/runtime/lifecycle/index.d.ts +0 -4
- package/dist/runtime/lifecycle/index.d.ts.map +0 -1
- package/dist/runtime/lifecycle/index.js +0 -3
- package/dist/runtime/lifecycle/index.js.map +0 -1
- package/dist/runtime/lifecycle/loader.d.ts +0 -6
- package/dist/runtime/lifecycle/loader.d.ts.map +0 -1
- package/dist/runtime/lifecycle/loader.js +0 -179
- package/dist/runtime/lifecycle/loader.js.map +0 -1
- package/dist/runtime/lifecycle/runner.d.ts +0 -14
- package/dist/runtime/lifecycle/runner.d.ts.map +0 -1
- package/dist/runtime/lifecycle/runner.js +0 -58
- package/dist/runtime/lifecycle/runner.js.map +0 -1
- package/dist/runtime/lifecycle/types.d.ts +0 -139
- package/dist/runtime/lifecycle/types.d.ts.map +0 -1
- package/dist/runtime/lifecycle/types.js +0 -2
- package/dist/runtime/lifecycle/types.js.map +0 -1
- package/dist/runtime/messages.d.ts +0 -2
- package/dist/runtime/messages.d.ts.map +0 -1
- package/dist/runtime/messages.js +0 -2
- package/dist/runtime/messages.js.map +0 -1
- package/dist/runtime/model-registry.d.ts +0 -62
- package/dist/runtime/model-registry.d.ts.map +0 -1
- package/dist/runtime/model-registry.js +0 -446
- package/dist/runtime/model-registry.js.map +0 -1
- package/dist/runtime/model-resolver.d.ts +0 -35
- package/dist/runtime/model-resolver.d.ts.map +0 -1
- package/dist/runtime/model-resolver.js +0 -232
- package/dist/runtime/model-resolver.js.map +0 -1
- package/dist/runtime/observe.d.ts +0 -50
- package/dist/runtime/observe.d.ts.map +0 -1
- package/dist/runtime/observe.js +0 -233
- package/dist/runtime/observe.js.map +0 -1
- package/dist/runtime/package-manager.d.ts +0 -103
- package/dist/runtime/package-manager.d.ts.map +0 -1
- package/dist/runtime/package-manager.js +0 -583
- package/dist/runtime/package-manager.js.map +0 -1
- package/dist/runtime/plugins/index.d.ts +0 -13
- package/dist/runtime/plugins/index.d.ts.map +0 -1
- package/dist/runtime/plugins/index.js +0 -23
- package/dist/runtime/plugins/index.js.map +0 -1
- package/dist/runtime/plugins/loader.d.ts +0 -19
- package/dist/runtime/plugins/loader.d.ts.map +0 -1
- package/dist/runtime/plugins/loader.js +0 -415
- package/dist/runtime/plugins/loader.js.map +0 -1
- package/dist/runtime/plugins/runner.d.ts +0 -107
- package/dist/runtime/plugins/runner.d.ts.map +0 -1
- package/dist/runtime/plugins/runner.js +0 -468
- package/dist/runtime/plugins/runner.js.map +0 -1
- package/dist/runtime/plugins/types.d.ts +0 -862
- package/dist/runtime/plugins/types.d.ts.map +0 -1
- package/dist/runtime/plugins/types.js +0 -32
- package/dist/runtime/plugins/types.js.map +0 -1
- package/dist/runtime/plugins/wrapper.d.ts +0 -29
- package/dist/runtime/plugins/wrapper.d.ts.map +0 -1
- package/dist/runtime/plugins/wrapper.js +0 -129
- package/dist/runtime/plugins/wrapper.js.map +0 -1
- package/dist/runtime/prompt-templates.d.ts +0 -18
- package/dist/runtime/prompt-templates.d.ts.map +0 -1
- package/dist/runtime/prompt-templates.js +0 -203
- package/dist/runtime/prompt-templates.js.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts +0 -19
- package/dist/runtime/providers/adapters/claude-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/claude-cli-adapter.js +0 -242
- package/dist/runtime/providers/adapters/claude-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts +0 -18
- package/dist/runtime/providers/adapters/codex-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/codex-cli-adapter.js +0 -177
- package/dist/runtime/providers/adapters/codex-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts +0 -21
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js +0 -162
- package/dist/runtime/providers/adapters/indusagi-cli-adapter.js.map +0 -1
- package/dist/runtime/providers/adapters/utils.d.ts +0 -12
- package/dist/runtime/providers/adapters/utils.d.ts.map +0 -1
- package/dist/runtime/providers/adapters/utils.js +0 -122
- package/dist/runtime/providers/adapters/utils.js.map +0 -1
- package/dist/runtime/providers/builtins.d.ts +0 -3
- package/dist/runtime/providers/builtins.d.ts.map +0 -1
- package/dist/runtime/providers/builtins.js +0 -88
- package/dist/runtime/providers/builtins.js.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.d.ts +0 -11
- package/dist/runtime/providers/provider-adapter-registry.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter-registry.js +0 -36
- package/dist/runtime/providers/provider-adapter-registry.js.map +0 -1
- package/dist/runtime/providers/provider-adapter.d.ts +0 -33
- package/dist/runtime/providers/provider-adapter.d.ts.map +0 -1
- package/dist/runtime/providers/provider-adapter.js +0 -2
- package/dist/runtime/providers/provider-adapter.js.map +0 -1
- package/dist/runtime/providers/provider-service.d.ts +0 -33
- package/dist/runtime/providers/provider-service.d.ts.map +0 -1
- package/dist/runtime/providers/provider-service.js +0 -157
- package/dist/runtime/providers/provider-service.js.map +0 -1
- package/dist/runtime/providers/types.d.ts +0 -29
- package/dist/runtime/providers/types.d.ts.map +0 -1
- package/dist/runtime/providers/types.js +0 -9
- package/dist/runtime/providers/types.js.map +0 -1
- package/dist/runtime/resource-loader.d.ts +0 -180
- package/dist/runtime/resource-loader.d.ts.map +0 -1
- package/dist/runtime/resource-loader.js +0 -530
- package/dist/runtime/resource-loader.js.map +0 -1
- package/dist/runtime/sdk.d.ts +0 -65
- package/dist/runtime/sdk.d.ts.map +0 -1
- package/dist/runtime/sdk.js +0 -402
- package/dist/runtime/sdk.js.map +0 -1
- package/dist/runtime/session-manager.d.ts +0 -448
- package/dist/runtime/session-manager.d.ts.map +0 -1
- package/dist/runtime/session-manager.js +0 -1177
- package/dist/runtime/session-manager.js.map +0 -1
- package/dist/runtime/settings-manager.d.ts +0 -234
- package/dist/runtime/settings-manager.d.ts.map +0 -1
- package/dist/runtime/settings-manager.js +0 -298
- package/dist/runtime/settings-manager.js.map +0 -1
- package/dist/runtime/skills.d.ts +0 -33
- package/dist/runtime/skills.d.ts.map +0 -1
- package/dist/runtime/skills.js +0 -277
- package/dist/runtime/skills.js.map +0 -1
- package/dist/runtime/subagents.d.ts +0 -29
- package/dist/runtime/subagents.d.ts.map +0 -1
- package/dist/runtime/subagents.js +0 -163
- package/dist/runtime/subagents.js.map +0 -1
- package/dist/runtime/system-prompt.d.ts +0 -16
- package/dist/runtime/system-prompt.d.ts.map +0 -1
- package/dist/runtime/system-prompt.js +0 -275
- package/dist/runtime/system-prompt.js.map +0 -1
- package/dist/runtime/task-session-manager.d.ts +0 -55
- package/dist/runtime/task-session-manager.d.ts.map +0 -1
- package/dist/runtime/task-session-manager.js +0 -410
- package/dist/runtime/task-session-manager.js.map +0 -1
- package/dist/runtime/timings.d.ts +0 -4
- package/dist/runtime/timings.d.ts.map +0 -1
- package/dist/runtime/timings.js +0 -41
- package/dist/runtime/timings.js.map +0 -1
- package/dist/runtime/todo-store.d.ts +0 -20
- package/dist/runtime/todo-store.d.ts.map +0 -1
- package/dist/runtime/todo-store.js +0 -60
- package/dist/runtime/todo-store.js.map +0 -1
- package/dist/runtime/tooling/bash.d.ts +0 -2
- package/dist/runtime/tooling/bash.d.ts.map +0 -1
- package/dist/runtime/tooling/bash.js +0 -2
- package/dist/runtime/tooling/bash.js.map +0 -1
- package/dist/runtime/tooling/bg-process.d.ts +0 -44
- package/dist/runtime/tooling/bg-process.d.ts.map +0 -1
- package/dist/runtime/tooling/bg-process.js +0 -55
- package/dist/runtime/tooling/bg-process.js.map +0 -1
- package/dist/runtime/tooling/composio-compat.d.ts +0 -169
- package/dist/runtime/tooling/composio-compat.d.ts.map +0 -1
- package/dist/runtime/tooling/composio-compat.js +0 -163
- package/dist/runtime/tooling/composio-compat.js.map +0 -1
- package/dist/runtime/tooling/edit-diff.d.ts +0 -9
- package/dist/runtime/tooling/edit-diff.d.ts.map +0 -1
- package/dist/runtime/tooling/edit-diff.js +0 -2
- package/dist/runtime/tooling/edit-diff.js.map +0 -1
- package/dist/runtime/tooling/edit.d.ts +0 -2
- package/dist/runtime/tooling/edit.d.ts.map +0 -1
- package/dist/runtime/tooling/edit.js +0 -2
- package/dist/runtime/tooling/edit.js.map +0 -1
- package/dist/runtime/tooling/find.d.ts +0 -2
- package/dist/runtime/tooling/find.d.ts.map +0 -1
- package/dist/runtime/tooling/find.js +0 -2
- package/dist/runtime/tooling/find.js.map +0 -1
- package/dist/runtime/tooling/grep.d.ts +0 -2
- package/dist/runtime/tooling/grep.d.ts.map +0 -1
- package/dist/runtime/tooling/grep.js +0 -2
- package/dist/runtime/tooling/grep.js.map +0 -1
- package/dist/runtime/tooling/index.d.ts +0 -248
- package/dist/runtime/tooling/index.d.ts.map +0 -1
- package/dist/runtime/tooling/index.js +0 -325
- package/dist/runtime/tooling/index.js.map +0 -1
- package/dist/runtime/tooling/ls.d.ts +0 -2
- package/dist/runtime/tooling/ls.d.ts.map +0 -1
- package/dist/runtime/tooling/ls.js +0 -2
- package/dist/runtime/tooling/ls.js.map +0 -1
- package/dist/runtime/tooling/memory.d.ts +0 -132
- package/dist/runtime/tooling/memory.d.ts.map +0 -1
- package/dist/runtime/tooling/memory.js +0 -171
- package/dist/runtime/tooling/memory.js.map +0 -1
- package/dist/runtime/tooling/path-utils.d.ts +0 -2
- package/dist/runtime/tooling/path-utils.d.ts.map +0 -1
- package/dist/runtime/tooling/path-utils.js +0 -2
- package/dist/runtime/tooling/path-utils.js.map +0 -1
- package/dist/runtime/tooling/read.d.ts +0 -2
- package/dist/runtime/tooling/read.d.ts.map +0 -1
- package/dist/runtime/tooling/read.js +0 -2
- package/dist/runtime/tooling/read.js.map +0 -1
- package/dist/runtime/tooling/registry.d.ts +0 -18
- package/dist/runtime/tooling/registry.d.ts.map +0 -1
- package/dist/runtime/tooling/registry.js +0 -166
- package/dist/runtime/tooling/registry.js.map +0 -1
- package/dist/runtime/tooling/task.d.ts +0 -37
- package/dist/runtime/tooling/task.d.ts.map +0 -1
- package/dist/runtime/tooling/task.js +0 -65
- package/dist/runtime/tooling/task.js.map +0 -1
- package/dist/runtime/tooling/todo.d.ts +0 -34
- package/dist/runtime/tooling/todo.d.ts.map +0 -1
- package/dist/runtime/tooling/todo.js +0 -96
- package/dist/runtime/tooling/todo.js.map +0 -1
- package/dist/runtime/tooling/truncate.d.ts +0 -2
- package/dist/runtime/tooling/truncate.d.ts.map +0 -1
- package/dist/runtime/tooling/truncate.js +0 -2
- package/dist/runtime/tooling/truncate.js.map +0 -1
- package/dist/runtime/tooling/webfetch.d.ts +0 -2
- package/dist/runtime/tooling/webfetch.d.ts.map +0 -1
- package/dist/runtime/tooling/webfetch.js +0 -2
- package/dist/runtime/tooling/webfetch.js.map +0 -1
- package/dist/runtime/tooling/websearch.d.ts +0 -2
- package/dist/runtime/tooling/websearch.d.ts.map +0 -1
- package/dist/runtime/tooling/websearch.js +0 -2
- package/dist/runtime/tooling/websearch.js.map +0 -1
- package/dist/runtime/tooling/write.d.ts +0 -2
- package/dist/runtime/tooling/write.d.ts.map +0 -1
- package/dist/runtime/tooling/write.js +0 -2
- package/dist/runtime/tooling/write.js.map +0 -1
- package/dist/telemetry/core/config.d.ts +0 -28
- package/dist/telemetry/core/config.d.ts.map +0 -1
- package/dist/telemetry/core/config.js +0 -150
- package/dist/telemetry/core/config.js.map +0 -1
- package/dist/telemetry/core/event-bus.d.ts +0 -15
- package/dist/telemetry/core/event-bus.d.ts.map +0 -1
- package/dist/telemetry/core/event-bus.js +0 -37
- package/dist/telemetry/core/event-bus.js.map +0 -1
- package/dist/telemetry/core/index.d.ts +0 -12
- package/dist/telemetry/core/index.d.ts.map +0 -1
- package/dist/telemetry/core/index.js +0 -14
- package/dist/telemetry/core/index.js.map +0 -1
- package/dist/telemetry/core/observability.d.ts +0 -63
- package/dist/telemetry/core/observability.d.ts.map +0 -1
- package/dist/telemetry/core/observability.js +0 -127
- package/dist/telemetry/core/observability.js.map +0 -1
- package/dist/telemetry/core/span.d.ts +0 -37
- package/dist/telemetry/core/span.d.ts.map +0 -1
- package/dist/telemetry/core/span.js +0 -90
- package/dist/telemetry/core/span.js.map +0 -1
- package/dist/telemetry/core/tracer.d.ts +0 -22
- package/dist/telemetry/core/tracer.d.ts.map +0 -1
- package/dist/telemetry/core/tracer.js +0 -79
- package/dist/telemetry/core/tracer.js.map +0 -1
- package/dist/telemetry/core/types.d.ts +0 -155
- package/dist/telemetry/core/types.d.ts.map +0 -1
- package/dist/telemetry/core/types.js +0 -38
- package/dist/telemetry/core/types.js.map +0 -1
- package/dist/telemetry/exporters/base-exporter.d.ts +0 -16
- package/dist/telemetry/exporters/base-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/base-exporter.js +0 -26
- package/dist/telemetry/exporters/base-exporter.js.map +0 -1
- package/dist/telemetry/exporters/console-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/console-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/console-exporter.js +0 -80
- package/dist/telemetry/exporters/console-exporter.js.map +0 -1
- package/dist/telemetry/exporters/file-exporter.d.ts +0 -31
- package/dist/telemetry/exporters/file-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/file-exporter.js +0 -120
- package/dist/telemetry/exporters/file-exporter.js.map +0 -1
- package/dist/telemetry/exporters/index.d.ts +0 -12
- package/dist/telemetry/exporters/index.d.ts.map +0 -1
- package/dist/telemetry/exporters/index.js +0 -11
- package/dist/telemetry/exporters/index.js.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.d.ts +0 -27
- package/dist/telemetry/exporters/langfuse-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/langfuse-exporter.js +0 -146
- package/dist/telemetry/exporters/langfuse-exporter.js.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.d.ts +0 -22
- package/dist/telemetry/exporters/sentry-exporter.d.ts.map +0 -1
- package/dist/telemetry/exporters/sentry-exporter.js +0 -121
- package/dist/telemetry/exporters/sentry-exporter.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -3
- package/dist/telemetry/index.js.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts +0 -28
- package/dist/vendor/observe/adapters/agent-event-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/agent-event-adapter.js +0 -136
- package/dist/vendor/observe/adapters/agent-event-adapter.js.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts +0 -24
- package/dist/vendor/observe/adapters/ai-stream-adapter.d.ts.map +0 -1
- package/dist/vendor/observe/adapters/ai-stream-adapter.js +0 -118
- package/dist/vendor/observe/adapters/ai-stream-adapter.js.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.d.ts +0 -12
- package/dist/vendor/observe/artifacts/content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/content-store.js +0 -2
- package/dist/vendor/observe/artifacts/content-store.js.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.d.ts +0 -16
- package/dist/vendor/observe/artifacts/file-content-store.d.ts.map +0 -1
- package/dist/vendor/observe/artifacts/file-content-store.js +0 -43
- package/dist/vendor/observe/artifacts/file-content-store.js.map +0 -1
- package/dist/vendor/observe/batcher.d.ts +0 -27
- package/dist/vendor/observe/batcher.d.ts.map +0 -1
- package/dist/vendor/observe/batcher.js +0 -66
- package/dist/vendor/observe/batcher.js.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.d.ts +0 -29
- package/dist/vendor/observe/client/artifacts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/artifacts-manager.js +0 -120
- package/dist/vendor/observe/client/artifacts-manager.js.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.d.ts +0 -16
- package/dist/vendor/observe/client/datasets-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/datasets-manager.js +0 -27
- package/dist/vendor/observe/client/datasets-manager.js.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.d.ts +0 -61
- package/dist/vendor/observe/client/experiments-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/experiments-manager.js +0 -132
- package/dist/vendor/observe/client/experiments-manager.js.map +0 -1
- package/dist/vendor/observe/client/index.d.ts +0 -9
- package/dist/vendor/observe/client/index.d.ts.map +0 -1
- package/dist/vendor/observe/client/index.js +0 -9
- package/dist/vendor/observe/client/index.js.map +0 -1
- package/dist/vendor/observe/client/observe-client.d.ts +0 -30
- package/dist/vendor/observe/client/observe-client.d.ts.map +0 -1
- package/dist/vendor/observe/client/observe-client.js +0 -22
- package/dist/vendor/observe/client/observe-client.js.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.d.ts +0 -17
- package/dist/vendor/observe/client/prompts-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/prompts-manager.js +0 -38
- package/dist/vendor/observe/client/prompts-manager.js.map +0 -1
- package/dist/vendor/observe/client/scores-manager.d.ts +0 -10
- package/dist/vendor/observe/client/scores-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/scores-manager.js +0 -15
- package/dist/vendor/observe/client/scores-manager.js.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.d.ts +0 -15
- package/dist/vendor/observe/client/sessions-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/sessions-manager.js +0 -24
- package/dist/vendor/observe/client/sessions-manager.js.map +0 -1
- package/dist/vendor/observe/client/traces-manager.d.ts +0 -23
- package/dist/vendor/observe/client/traces-manager.d.ts.map +0 -1
- package/dist/vendor/observe/client/traces-manager.js +0 -39
- package/dist/vendor/observe/client/traces-manager.js.map +0 -1
- package/dist/vendor/observe/console-exporter.d.ts +0 -11
- package/dist/vendor/observe/console-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/console-exporter.js +0 -18
- package/dist/vendor/observe/console-exporter.js.map +0 -1
- package/dist/vendor/observe/context.d.ts +0 -4
- package/dist/vendor/observe/context.d.ts.map +0 -1
- package/dist/vendor/observe/context.js +0 -9
- package/dist/vendor/observe/context.js.map +0 -1
- package/dist/vendor/observe/entities/artifacts.d.ts +0 -46
- package/dist/vendor/observe/entities/artifacts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/artifacts.js +0 -2
- package/dist/vendor/observe/entities/artifacts.js.map +0 -1
- package/dist/vendor/observe/entities/datasets.d.ts +0 -37
- package/dist/vendor/observe/entities/datasets.d.ts.map +0 -1
- package/dist/vendor/observe/entities/datasets.js +0 -2
- package/dist/vendor/observe/entities/datasets.js.map +0 -1
- package/dist/vendor/observe/entities/experiments.d.ts +0 -66
- package/dist/vendor/observe/entities/experiments.d.ts.map +0 -1
- package/dist/vendor/observe/entities/experiments.js +0 -2
- package/dist/vendor/observe/entities/experiments.js.map +0 -1
- package/dist/vendor/observe/entities/index.d.ts +0 -9
- package/dist/vendor/observe/entities/index.d.ts.map +0 -1
- package/dist/vendor/observe/entities/index.js +0 -9
- package/dist/vendor/observe/entities/index.js.map +0 -1
- package/dist/vendor/observe/entities/prompts.d.ts +0 -25
- package/dist/vendor/observe/entities/prompts.d.ts.map +0 -1
- package/dist/vendor/observe/entities/prompts.js +0 -2
- package/dist/vendor/observe/entities/prompts.js.map +0 -1
- package/dist/vendor/observe/entities/scores.d.ts +0 -28
- package/dist/vendor/observe/entities/scores.d.ts.map +0 -1
- package/dist/vendor/observe/entities/scores.js +0 -2
- package/dist/vendor/observe/entities/scores.js.map +0 -1
- package/dist/vendor/observe/entities/sessions.d.ts +0 -36
- package/dist/vendor/observe/entities/sessions.d.ts.map +0 -1
- package/dist/vendor/observe/entities/sessions.js +0 -2
- package/dist/vendor/observe/entities/sessions.js.map +0 -1
- package/dist/vendor/observe/entities/shared.d.ts +0 -26
- package/dist/vendor/observe/entities/shared.d.ts.map +0 -1
- package/dist/vendor/observe/entities/shared.js +0 -2
- package/dist/vendor/observe/entities/shared.js.map +0 -1
- package/dist/vendor/observe/entities/traces.d.ts +0 -59
- package/dist/vendor/observe/entities/traces.d.ts.map +0 -1
- package/dist/vendor/observe/entities/traces.js +0 -2
- package/dist/vendor/observe/entities/traces.js.map +0 -1
- package/dist/vendor/observe/exporter.d.ts +0 -2
- package/dist/vendor/observe/exporter.d.ts.map +0 -1
- package/dist/vendor/observe/exporter.js +0 -2
- package/dist/vendor/observe/exporter.js.map +0 -1
- package/dist/vendor/observe/file-exporter.d.ts +0 -16
- package/dist/vendor/observe/file-exporter.d.ts.map +0 -1
- package/dist/vendor/observe/file-exporter.js +0 -39
- package/dist/vendor/observe/file-exporter.js.map +0 -1
- package/dist/vendor/observe/global.d.ts +0 -6
- package/dist/vendor/observe/global.d.ts.map +0 -1
- package/dist/vendor/observe/global.js +0 -17
- package/dist/vendor/observe/global.js.map +0 -1
- package/dist/vendor/observe/index.d.ts +0 -24
- package/dist/vendor/observe/index.d.ts.map +0 -1
- package/dist/vendor/observe/index.js +0 -24
- package/dist/vendor/observe/index.js.map +0 -1
- package/dist/vendor/observe/noop.d.ts +0 -17
- package/dist/vendor/observe/noop.d.ts.map +0 -1
- package/dist/vendor/observe/noop.js +0 -80
- package/dist/vendor/observe/noop.js.map +0 -1
- package/dist/vendor/observe/privacy.d.ts +0 -18
- package/dist/vendor/observe/privacy.d.ts.map +0 -1
- package/dist/vendor/observe/privacy.js +0 -160
- package/dist/vendor/observe/privacy.js.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.d.ts +0 -11
- package/dist/vendor/observe/query/simple-query-client.d.ts.map +0 -1
- package/dist/vendor/observe/query/simple-query-client.js +0 -31
- package/dist/vendor/observe/query/simple-query-client.js.map +0 -1
- package/dist/vendor/observe/replay/session-replay.d.ts +0 -20
- package/dist/vendor/observe/replay/session-replay.d.ts.map +0 -1
- package/dist/vendor/observe/replay/session-replay.js +0 -180
- package/dist/vendor/observe/replay/session-replay.js.map +0 -1
- package/dist/vendor/observe/runtime.d.ts +0 -27
- package/dist/vendor/observe/runtime.d.ts.map +0 -1
- package/dist/vendor/observe/runtime.js +0 -177
- package/dist/vendor/observe/runtime.js.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.d.ts +0 -6
- package/dist/vendor/observe/server/dashboard-html.d.ts.map +0 -1
- package/dist/vendor/observe/server/dashboard-html.js +0 -305
- package/dist/vendor/observe/server/dashboard-html.js.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.d.ts +0 -62
- package/dist/vendor/observe/server/http-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/http-observe-server.js +0 -418
- package/dist/vendor/observe/server/http-observe-server.js.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts +0 -20
- package/dist/vendor/observe/server/in-memory-observe-server.d.ts.map +0 -1
- package/dist/vendor/observe/server/in-memory-observe-server.js +0 -76
- package/dist/vendor/observe/server/in-memory-observe-server.js.map +0 -1
- package/dist/vendor/observe/span.d.ts +0 -45
- package/dist/vendor/observe/span.d.ts.map +0 -1
- package/dist/vendor/observe/span.js +0 -110
- package/dist/vendor/observe/span.js.map +0 -1
- package/dist/vendor/observe/store/contracts.d.ts +0 -59
- package/dist/vendor/observe/store/contracts.d.ts.map +0 -1
- package/dist/vendor/observe/store/contracts.js +0 -2
- package/dist/vendor/observe/store/contracts.js.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.d.ts +0 -33
- package/dist/vendor/observe/store/file-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/file-control-plane-store.js +0 -146
- package/dist/vendor/observe/store/file-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts +0 -84
- package/dist/vendor/observe/store/in-memory-control-plane-store.d.ts.map +0 -1
- package/dist/vendor/observe/store/in-memory-control-plane-store.js +0 -447
- package/dist/vendor/observe/store/in-memory-control-plane-store.js.map +0 -1
- package/dist/vendor/observe/store/index.d.ts +0 -4
- package/dist/vendor/observe/store/index.d.ts.map +0 -1
- package/dist/vendor/observe/store/index.js +0 -4
- package/dist/vendor/observe/store/index.js.map +0 -1
- package/dist/vendor/observe/types.d.ts +0 -246
- package/dist/vendor/observe/types.d.ts.map +0 -1
- package/dist/vendor/observe/types.js +0 -152
- package/dist/vendor/observe/types.js.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts +0 -25
- package/dist/vendor/observe/worker/in-memory-observe-worker.d.ts.map +0 -1
- package/dist/vendor/observe/worker/in-memory-observe-worker.js +0 -82
- package/dist/vendor/observe/worker/in-memory-observe-worker.js.map +0 -1
- package/guides/CLAUDE_CODEX_CLI_INTEGRATION_PLAN.md +0 -321
- package/guides/INDUSAGI_MONO_MIT_REMOVAL_GUIDE.md +0 -2132
- package/guides/INDUSVX_OBSERVE_FULL_INTEGRATION_REPORT.md +0 -543
- package/guides/OBSERVE_DEEP_VALIDATION.md +0 -252
- package/guides/OBSERVE_LOCAL_TESTING.md +0 -183
- package/guides/OPTION3_PROVIDER_ADAPTER_RUNTIME_PLAN.md +0 -370
- package/guides/SAME_TO_SAME_PARITY_REPORT.md +0 -312
- package/tasks/patch-indusagi-react-host.mjs +0 -247
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credential command — `runCredentialCommand`.
|
|
3
|
+
*
|
|
4
|
+
* The top-level `signin` / `signout` surface. Sign-in supports two methods: a
|
|
5
|
+
* browser sign-in (OAuth) for the providers the framework registry exposes, and
|
|
6
|
+
* an api-key flow for every provider in the directory. When a provider is
|
|
7
|
+
* sign-in-capable the command prefers the browser flow but still lets the user
|
|
8
|
+
* pick an api key; for the rest it stores a key directly. The env-var override is
|
|
9
|
+
* consulted first via the framework {@link getEnvApiKey}, so a user who already
|
|
10
|
+
* exported (e.g.) `ANTHROPIC_API_KEY` can sign in without re-typing the secret.
|
|
11
|
+
*
|
|
12
|
+
* The command owns the first positional token only: it returns `handled: false`
|
|
13
|
+
* when that token is neither {@link CredentialVerb} so the caller falls through
|
|
14
|
+
* to a normal launch. Every failure is a typed {@link CredentialFault}; nothing
|
|
15
|
+
* is signalled by a string sentinel or a bare `process.exit`.
|
|
16
|
+
*
|
|
17
|
+
* I/O is injected. The default {@link CredentialIo} wraps `process.stdout` plus a
|
|
18
|
+
* `node:readline/promises` interface, but tests drive the whole flow over an
|
|
19
|
+
* in-memory stand-in with no real terminal and an in-memory vault.
|
|
20
|
+
*/
|
|
21
|
+
import { type CredentialCommandOptions, type CredentialFault, type CredentialVerb, type ProviderEntry } from "./contract";
|
|
22
|
+
/**
|
|
23
|
+
* The console seam the credential command reads and writes through.
|
|
24
|
+
*
|
|
25
|
+
* Pinned to the three operations the flow actually needs — emit a line, read a
|
|
26
|
+
* line of input, and read a secret line — so a test can capture output into an
|
|
27
|
+
* array and feed scripted answers without a real TTY.
|
|
28
|
+
*/
|
|
29
|
+
export interface CredentialIo {
|
|
30
|
+
/** Emit one line of human-facing text. */
|
|
31
|
+
print(line: string): void;
|
|
32
|
+
/** Prompt for and read one line of visible input. */
|
|
33
|
+
ask(prompt: string): Promise<string>;
|
|
34
|
+
/** Prompt for and read one line of secret input (key entry). */
|
|
35
|
+
askSecret(prompt: string): Promise<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The default {@link CredentialIo} backed by `process.stdout` and a
|
|
39
|
+
* `node:readline/promises` interface. Secret entry mutes echo while the line is
|
|
40
|
+
* typed by suppressing the terminal write of each keystroke.
|
|
41
|
+
*/
|
|
42
|
+
export declare function defaultCredentialIo(): CredentialIo;
|
|
43
|
+
/**
|
|
44
|
+
* The api-key provider directory: every provider the sign-in surface can store a
|
|
45
|
+
* key for, with its conventional env var and the page a user obtains a key from.
|
|
46
|
+
* These are external provider facts; {@link envKey} is the variable
|
|
47
|
+
* {@link getEnvApiKey} reads for the env-first shortcut.
|
|
48
|
+
*/
|
|
49
|
+
export declare const PROVIDER_DIRECTORY: readonly ProviderEntry[];
|
|
50
|
+
/** Look up a provider entry by id (case-insensitive over the directory). */
|
|
51
|
+
export declare function findProvider(id: string): ProviderEntry | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The two ways a provider can be signed in to.
|
|
54
|
+
*
|
|
55
|
+
* - `oauth` — a browser sign-in driven by the framework registry.
|
|
56
|
+
* - `api-key` — paste / store a provider api key.
|
|
57
|
+
*/
|
|
58
|
+
export type SigninMethod = "oauth" | "api-key";
|
|
59
|
+
/** Narrow a `--method` value to a {@link SigninMethod}. */
|
|
60
|
+
export declare function asSigninMethod(value: string | undefined): SigninMethod | undefined;
|
|
61
|
+
/** Whether a provider id can be signed in to through the browser registry. */
|
|
62
|
+
export declare function isOAuthCapable(id: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Validate an api key against the format rules: non-empty, at least
|
|
65
|
+
* {@link MIN_KEY_LENGTH} characters, and free of placeholder markers. Returns a
|
|
66
|
+
* typed {@link CredentialFault} on rejection, or `undefined` when the key passes.
|
|
67
|
+
*/
|
|
68
|
+
export declare function validateApiKey(key: string): CredentialFault | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Validate an account name: at most {@link MAX_ACCOUNT_LENGTH} characters and
|
|
71
|
+
* matching {@link ACCOUNT_PATTERN}. Returns a typed fault on rejection, or
|
|
72
|
+
* `undefined` when the name is acceptable.
|
|
73
|
+
*/
|
|
74
|
+
export declare function validateAccountName(name: string): CredentialFault | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The outcome of {@link runCredentialCommand}.
|
|
77
|
+
*
|
|
78
|
+
* {@link handled} reports whether the first positional token was a recognised
|
|
79
|
+
* {@link CredentialVerb}; when `false`, the caller proceeds to a normal launch
|
|
80
|
+
* unchanged. {@link fault} carries a typed failure when the command was handled
|
|
81
|
+
* but did not complete.
|
|
82
|
+
*/
|
|
83
|
+
export interface CredentialResult {
|
|
84
|
+
/** Whether this invocation was a `signin` / `signout` command. */
|
|
85
|
+
readonly handled: boolean;
|
|
86
|
+
/** The verb that ran, when {@link handled} is true. */
|
|
87
|
+
readonly verb?: CredentialVerb;
|
|
88
|
+
/** The provider id the verb acted on, when one was resolved. */
|
|
89
|
+
readonly provider?: string;
|
|
90
|
+
/** A typed failure, present only when the handled command did not complete. */
|
|
91
|
+
readonly fault?: CredentialFault;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Run the api-key sign-in / sign-out command.
|
|
95
|
+
*
|
|
96
|
+
* Returns `{ handled: false }` immediately when `argv[0]` is neither verb, so the
|
|
97
|
+
* orchestrator can call this first and fall through on a miss. Otherwise it
|
|
98
|
+
* resolves the provider (prompting from the directory when none is named), runs
|
|
99
|
+
* the verb, and resolves a {@link CredentialResult} — never throwing for an
|
|
100
|
+
* expected failure, which surfaces as {@link CredentialResult.fault}.
|
|
101
|
+
*
|
|
102
|
+
* @param argv the raw token list following the program name
|
|
103
|
+
* @param opts the injected vault, profile directory, and (optionally) the io seam
|
|
104
|
+
*/
|
|
105
|
+
export declare function runCredentialCommand(argv: readonly string[], opts: CredentialCommandOptions & {
|
|
106
|
+
io?: CredentialIo;
|
|
107
|
+
}): Promise<CredentialResult>;
|
|
108
|
+
/**
|
|
109
|
+
* Render a {@link CredentialFault} as the single human-facing message the caller
|
|
110
|
+
* prints before exiting non-zero. Pure; no I/O.
|
|
111
|
+
*/
|
|
112
|
+
export declare function formatCredentialFault(fault: CredentialFault): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Launch subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the frozen Phase-10 contract surface: the parsed
|
|
5
|
+
* {@link Invocation} and its {@link OutputMode} / {@link ThinkingEffort} /
|
|
6
|
+
* {@link ToolName} vocabularies, the declarative {@link FlagSpec} table types,
|
|
7
|
+
* the gathered {@link Attachments} shape, the typed {@link CredentialFault}
|
|
8
|
+
* union and its {@link AuthVault} seam, the model-catalog filter, and the resume
|
|
9
|
+
* / settings-browser option shapes. Behavior modules (the reader, the usage
|
|
10
|
+
* renderer, the credential command, the attachment gatherer, the catalog
|
|
11
|
+
* printer, the resume picker, the settings browser) attach their exports here as
|
|
12
|
+
* they land, so consumers import the launch surface from `src/launch` rather
|
|
13
|
+
* than reaching into individual modules.
|
|
14
|
+
*/
|
|
15
|
+
export type { OutputMode, ThinkingEffort, ToolName, FlagKind, FlagDefault, FlagSpec, Invocation, FlagValue, Attachments, AttachmentOptions, CredentialVerb, ProviderEntry, CredentialFaultKind, CredentialFault, AuthVault, CredentialCommandOptions, CatalogFilter, SessionLoader, ResumeFault, SettingsBrowseOptions, ResumeRef, ThinkingLevel, SessionListProgress, ImageContent, KnownProvider, ModelRegistry, OAuthCredentials, Settings, RunnerId, } from "./contract";
|
|
16
|
+
export { THINKING_EFFORTS, TOOL_NAMES, isThinkingEffort, isOutputMode, isToolName, credentialFault, } from "./contract";
|
|
17
|
+
export { FLAG_SPECS, FLAG_GROUPS, readInvocation, readFileReferences, renderUsage, gatherAttachments, AttachmentError, } from "./invocation";
|
|
18
|
+
export type { FlagGroup, GroupedFlagSpec, AttachmentErrorKind, } from "./invocation";
|
|
19
|
+
export { runPackageCommand, defaultPackageIo, PACKAGE_COMMANDS, } from "./packages";
|
|
20
|
+
export type { PackageCommand, PackageIo, PackageCommandOptions, PackageResult, } from "./packages";
|
|
21
|
+
export { runCredentialCommand, defaultCredentialIo, formatCredentialFault, validateApiKey, validateAccountName, findProvider, isOAuthCapable, asSigninMethod, PROVIDER_DIRECTORY, } from "./credentials";
|
|
22
|
+
export type { CredentialIo, CredentialResult, SigninMethod } from "./credentials";
|
|
23
|
+
export { registerBuiltInOAuthProviders, listLoginProviders, startOAuthLogin, openLoginUrl, } from "./oauth";
|
|
24
|
+
export type { AuthKind, LoginProvider, OAuthLoginResult, } from "./oauth";
|
|
25
|
+
export { printModelCatalog, defaultCatalogIo, registrySource } from "./catalog";
|
|
26
|
+
export type { CatalogIo, CatalogModelSource } from "./catalog";
|
|
27
|
+
export { pickResumeTarget, browseSettings, mergeSessions, renderSettingsListing, defaultResumeDeps, defaultSettingsBrowseIo, } from "./pickers";
|
|
28
|
+
export type { ResumeDeps, ResumeOutcome, SettingsBrowseIo, } from "./pickers";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The attachment gatherer — expands `@file` references into one
|
|
3
|
+
* {@link Attachments} value.
|
|
4
|
+
*
|
|
5
|
+
* Each `@file` token collected by the reader is resolved through the framework
|
|
6
|
+
* path resolver ({@link resolveReadPath}, which handles `~` expansion and the
|
|
7
|
+
* cwd), classified by extension, and folded into the result:
|
|
8
|
+
*
|
|
9
|
+
* - **text files** are read as UTF-8 and inlined into {@link Attachments.prose}
|
|
10
|
+
* wrapped in a delimited block keyed by the resolved path, so the model sees
|
|
11
|
+
* which file each block came from;
|
|
12
|
+
* - **image files** are read as bytes, base64-encoded, and collected as
|
|
13
|
+
* framework {@link ImageContent} in {@link Attachments.media}.
|
|
14
|
+
*
|
|
15
|
+
* Guard rails:
|
|
16
|
+
* - an unknown extension, an oversized file, a missing file, or a read error
|
|
17
|
+
* raises a typed {@link AttachmentError} (with a {@link AttachmentErrorKind}
|
|
18
|
+
* discriminant) rather than a string or a process exit;
|
|
19
|
+
* - size caps bound the inlined text and the decoded image before either is
|
|
20
|
+
* materialised onto the message;
|
|
21
|
+
* - an empty file is skipped silently — it contributes neither prose nor media.
|
|
22
|
+
*
|
|
23
|
+
* The `@file` syntax, the extension classification, and base64 image attachment
|
|
24
|
+
* are kept behaviours; only the typed-error model and the explicit caps are
|
|
25
|
+
* owned here.
|
|
26
|
+
*/
|
|
27
|
+
import type { Attachments, AttachmentOptions } from "../contract";
|
|
28
|
+
/**
|
|
29
|
+
* The closed set of attachment failure categories. A consumer switches on
|
|
30
|
+
* {@link AttachmentError.kind}, never on message text:
|
|
31
|
+
*
|
|
32
|
+
* - `unsupported` — the file extension is neither text nor image.
|
|
33
|
+
* - `too-large` — the file exceeds its kind's size cap.
|
|
34
|
+
* - `not-found` — the resolved path does not exist.
|
|
35
|
+
* - `read-failed` — the file could not be read or stat-ed.
|
|
36
|
+
*/
|
|
37
|
+
export type AttachmentErrorKind = "unsupported" | "too-large" | "not-found" | "read-failed";
|
|
38
|
+
/**
|
|
39
|
+
* A typed `@file` expansion failure. Carries the offending reference and the
|
|
40
|
+
* resolved path for diagnostics; {@link cause} preserves any wrapped error.
|
|
41
|
+
*/
|
|
42
|
+
export declare class AttachmentError extends Error {
|
|
43
|
+
/** The failure category (the discriminant). */
|
|
44
|
+
readonly kind: AttachmentErrorKind;
|
|
45
|
+
/** The raw `@file` reference as supplied on the command line. */
|
|
46
|
+
readonly reference: string;
|
|
47
|
+
/** The resolved absolute path, when resolution succeeded. */
|
|
48
|
+
readonly resolvedPath?: string;
|
|
49
|
+
/** The wrapped underlying error, if any. */
|
|
50
|
+
readonly cause?: unknown;
|
|
51
|
+
constructor(kind: AttachmentErrorKind, message: string, detail: {
|
|
52
|
+
reference: string;
|
|
53
|
+
resolvedPath?: string;
|
|
54
|
+
cause?: unknown;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Expand the `@file` references into a single {@link Attachments} value.
|
|
59
|
+
*
|
|
60
|
+
* Resolves each reference against {@link AttachmentOptions.cwd} via the framework
|
|
61
|
+
* resolver, classifies it by extension, enforces the per-kind size cap, and
|
|
62
|
+
* appends either a text block to the prose or an {@link ImageContent} to the
|
|
63
|
+
* media. References list is taken in order; the prose blocks are joined with a
|
|
64
|
+
* blank line between them. An empty references list yields an empty
|
|
65
|
+
* {@link Attachments} (the caller decides whether to attach it at all).
|
|
66
|
+
*
|
|
67
|
+
* @param references the raw `@file` paths (without the leading `@`)
|
|
68
|
+
* @param options the cwd the references resolve against
|
|
69
|
+
* @throws AttachmentError on an unsupported extension, an oversized file, a
|
|
70
|
+
* missing file, or a read failure
|
|
71
|
+
*/
|
|
72
|
+
export declare function gatherAttachments(references: readonly string[], options: AttachmentOptions): Promise<Attachments>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The single declarative flag table.
|
|
3
|
+
*
|
|
4
|
+
* Every recognised command-line option is described here exactly once, as one
|
|
5
|
+
* {@link FlagSpec} row. Two consumers walk this same table:
|
|
6
|
+
*
|
|
7
|
+
* - the reader ({@link readInvocation}) indexes it by canonical name and alias
|
|
8
|
+
* to bind raw tokens into the parsed {@link Invocation}; and
|
|
9
|
+
* - the usage generator ({@link renderUsage}) enumerates it to render the
|
|
10
|
+
* option reference — there is no second, hand-maintained help string for it
|
|
11
|
+
* to drift against.
|
|
12
|
+
*
|
|
13
|
+
* Because both sides read the same rows, the help text and the parser cannot
|
|
14
|
+
* disagree about which flags exist, what they take, or what they mean. The order
|
|
15
|
+
* of the rows is the order options appear in the generated usage, grouped by the
|
|
16
|
+
* {@link FlagGroup} sidecar map below; keeping that order intentional is the only
|
|
17
|
+
* editorial concern when a row is added.
|
|
18
|
+
*
|
|
19
|
+
* Flag names and their semantics are a stable product contract (and largely an
|
|
20
|
+
* industry convention), so they are kept as-is; only the table that declares
|
|
21
|
+
* them and the code that reads it are owned here.
|
|
22
|
+
*/
|
|
23
|
+
import type { FlagSpec } from "../contract";
|
|
24
|
+
/**
|
|
25
|
+
* The heading a flag is filed under in the generated usage. Purely an editorial
|
|
26
|
+
* grouping for {@link renderUsage}; it has no effect on parsing.
|
|
27
|
+
*/
|
|
28
|
+
export type FlagGroup = "output" | "model" | "context" | "tools" | "meta";
|
|
29
|
+
/**
|
|
30
|
+
* A {@link FlagSpec} carrying its usage section. The extra {@link group} field is
|
|
31
|
+
* inert at parse time; the reader ignores it and only the renderer reads it.
|
|
32
|
+
*/
|
|
33
|
+
export interface GroupedFlagSpec extends FlagSpec {
|
|
34
|
+
/** The usage section this row is rendered under. */
|
|
35
|
+
readonly group: FlagGroup;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable titles for each {@link FlagGroup}, in render order. The usage
|
|
39
|
+
* generator walks this list, then within each group emits the matching rows from
|
|
40
|
+
* {@link FLAG_SPECS} in declaration order.
|
|
41
|
+
*/
|
|
42
|
+
export declare const FLAG_GROUPS: readonly {
|
|
43
|
+
readonly id: FlagGroup;
|
|
44
|
+
readonly title: string;
|
|
45
|
+
}[];
|
|
46
|
+
/**
|
|
47
|
+
* The one declarative option table. Every recognised flag is one row; the reader
|
|
48
|
+
* and the usage generator both index this and nothing else.
|
|
49
|
+
*
|
|
50
|
+
* Conventions:
|
|
51
|
+
* - {@link FlagSpec.name} is the canonical long spelling (leading dashes
|
|
52
|
+
* included) and also the key the parsed value lands under in
|
|
53
|
+
* {@link Invocation.flags} (sans the dashes).
|
|
54
|
+
* - {@link FlagSpec.aliases} hold short forms and synonyms; every alias hit
|
|
55
|
+
* normalises to {@link FlagSpec.name}.
|
|
56
|
+
* - {@link FlagSpec.kind} fixes the value vocabulary: `boolean` switches,
|
|
57
|
+
* `string` / `number` value flags, and accumulating `list` flags.
|
|
58
|
+
*/
|
|
59
|
+
export declare const FLAG_SPECS: readonly GroupedFlagSpec[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invocation subsystem — public barrel.
|
|
3
|
+
*
|
|
4
|
+
* Bundles the command-line behavior modules that all read the single
|
|
5
|
+
* declarative {@link FLAG_SPECS} table:
|
|
6
|
+
*
|
|
7
|
+
* - {@link readInvocation} — the generic, table-driven argv parser that folds
|
|
8
|
+
* a sliced argument vector into a typed {@link Invocation};
|
|
9
|
+
* - {@link renderUsage} — the `--help` banner generated from that same table,
|
|
10
|
+
* so help and parsing share one source of truth;
|
|
11
|
+
* - {@link gatherAttachments} — the `@file` expander that resolves references
|
|
12
|
+
* through the framework path resolver into inlined prose plus base64 media,
|
|
13
|
+
* raising a typed {@link AttachmentError} on failure.
|
|
14
|
+
*
|
|
15
|
+
* Consumers import the invocation surface from `src/launch/invocation` rather
|
|
16
|
+
* than reaching into the individual modules.
|
|
17
|
+
*/
|
|
18
|
+
export { FLAG_SPECS, FLAG_GROUPS } from "./flags";
|
|
19
|
+
export type { FlagGroup, GroupedFlagSpec } from "./flags";
|
|
20
|
+
export { readInvocation, readFileReferences } from "./read";
|
|
21
|
+
export { renderUsage } from "./usage";
|
|
22
|
+
export { gatherAttachments, AttachmentError } from "./attachments";
|
|
23
|
+
export type { AttachmentErrorKind } from "./attachments";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The invocation reader — a generic, table-driven argv parser over
|
|
3
|
+
* {@link FLAG_SPECS}.
|
|
4
|
+
*
|
|
5
|
+
* This is the application's full command-line grammar (the boot layer carries
|
|
6
|
+
* only a thin routing parser). It walks a sliced `argv` once and folds every
|
|
7
|
+
* token into a fully-typed {@link Invocation}: recognised flags bind through the
|
|
8
|
+
* declarative {@link FlagSpec} table, `@file` references collect for the
|
|
9
|
+
* attachment gatherer, and remaining positionals become the prompt and the
|
|
10
|
+
* positional tail.
|
|
11
|
+
*
|
|
12
|
+
* The grammar is deliberately textbook and entirely data-driven — there is no
|
|
13
|
+
* per-flag branch. One index over {@link FLAG_SPECS} maps every canonical name
|
|
14
|
+
* and alias to its row; the loop applies whichever row a token resolves to:
|
|
15
|
+
*
|
|
16
|
+
* - **`--name=value`** and **`--name value`** both bind a `string` / `number`
|
|
17
|
+
* / `list` flag; an inline `=value` wins, otherwise the following token is
|
|
18
|
+
* consumed (unless it is itself a flag, in which case the value is empty).
|
|
19
|
+
* - **longest-alias match** resolves the canonical name, so a longer spelling
|
|
20
|
+
* is never shadowed by a shorter prefix.
|
|
21
|
+
* - **`--`** terminates option parsing; every subsequent token is positional.
|
|
22
|
+
* - **clustered short booleans** (`-pi`) expand to each single-letter switch.
|
|
23
|
+
* - **`list` flags accumulate** across repetition and split a single
|
|
24
|
+
* comma-separated token into elements.
|
|
25
|
+
* - **`@file`** tokens are recorded as attachment references rather than
|
|
26
|
+
* positionals.
|
|
27
|
+
*
|
|
28
|
+
* The parse is total: an unrecognised `--flag` is tolerated as a boolean switch
|
|
29
|
+
* in the loose {@link Invocation.flags} bag (the extension-flag escape hatch)
|
|
30
|
+
* rather than rejected, so nothing is silently dropped. Strong typing of the
|
|
31
|
+
* named fields, and mode derivation, happen in one final fold.
|
|
32
|
+
*/
|
|
33
|
+
import { type Invocation } from "../contract";
|
|
34
|
+
/**
|
|
35
|
+
* Read a sliced `argv` into the fully-parsed {@link Invocation}.
|
|
36
|
+
*
|
|
37
|
+
* Walks the tokens once via the {@link FLAG_SPECS} index, accumulates into a
|
|
38
|
+
* {@link ParseState}, then folds that into the strongly-typed result: the loose
|
|
39
|
+
* {@link Invocation.flags} bag is retained for round-tripping and extension
|
|
40
|
+
* flags, and the named fields are derived from it with per-kind coercion and
|
|
41
|
+
* validation. The `attachments` field is left unset here — the file references
|
|
42
|
+
* are surfaced for the attachment gatherer to expand separately.
|
|
43
|
+
*
|
|
44
|
+
* @param argv the already-sliced argument vector (no node / executable path)
|
|
45
|
+
*/
|
|
46
|
+
export declare function readInvocation(argv: readonly string[]): Invocation;
|
|
47
|
+
/**
|
|
48
|
+
* The `@file` references collected from an argv, exposed for the attachment
|
|
49
|
+
* gatherer. A thin re-walk of the reader so the file references can be obtained
|
|
50
|
+
* without re-deriving the whole parse where only attachments are needed.
|
|
51
|
+
*/
|
|
52
|
+
export declare function readFileReferences(argv: readonly string[]): string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The usage renderer — generated entirely from {@link FLAG_SPECS}.
|
|
3
|
+
*
|
|
4
|
+
* {@link renderUsage} produces the `--help` banner by walking the same
|
|
5
|
+
* declarative flag table the reader parses against. There is no second,
|
|
6
|
+
* hand-maintained help string; every option line is synthesised from its
|
|
7
|
+
* {@link FlagSpec} (its canonical name, its aliases, its value placeholder, and
|
|
8
|
+
* its one-line description), grouped by the editorial {@link FLAG_GROUPS}
|
|
9
|
+
* sections. Adding a flag to the table therefore adds it to the help with no
|
|
10
|
+
* further edit, and the two can never disagree about what exists.
|
|
11
|
+
*
|
|
12
|
+
* The renderer is pure and total: it reads only the table and returns a string.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Render the full usage banner.
|
|
16
|
+
*
|
|
17
|
+
* Emits a synopsis line, then one section per {@link FLAG_GROUPS} entry that has
|
|
18
|
+
* any rows, then a short note on the two positional conventions the reader
|
|
19
|
+
* honours but that are not flags: the `@file` attachment syntax and the `--`
|
|
20
|
+
* option terminator. Every option line is derived from {@link FLAG_SPECS}; this
|
|
21
|
+
* function holds no per-flag knowledge of its own.
|
|
22
|
+
*
|
|
23
|
+
* @returns the complete multi-line usage string (no trailing newline)
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderUsage(): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase-10 launch subsystem — unit tests.
|
|
3
|
+
*
|
|
4
|
+
* No network and no real terminal: every effectful seam is injected. The tests
|
|
5
|
+
* pin the public launch surface assembled from the contract:
|
|
6
|
+
*
|
|
7
|
+
* 1. {@link readInvocation} parses a representative argv into the right
|
|
8
|
+
* {@link Invocation} (mode, prompt, model, mcp list, thinking, no-tools).
|
|
9
|
+
* 2. {@link renderUsage} is generated from {@link FLAG_SPECS} alone — every
|
|
10
|
+
* flag description appears, proving the one-source-of-truth invariant.
|
|
11
|
+
* 3. {@link gatherAttachments} resolves an `@file` in a tmpdir and raises a
|
|
12
|
+
* typed {@link AttachmentError} for a missing and an oversized file.
|
|
13
|
+
* 4. {@link runCredentialCommand} stores an api key through an injected fake
|
|
14
|
+
* vault for the api-key path, and drives the framework browser sign-in for
|
|
15
|
+
* an OAuth-capable provider (persisting the returned credentials).
|
|
16
|
+
* 5. {@link printModelCatalog} lists models from an injected source.
|
|
17
|
+
* 6. {@link registerBuiltInOAuthProviders} primes the framework registry and
|
|
18
|
+
* {@link listLoginProviders} surfaces both kinds.
|
|
19
|
+
*/
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OAuth integration — the browser-sign-in counterpart to the api-key flow.
|
|
3
|
+
*
|
|
4
|
+
* The framework ships working sign-in machinery for a handful of providers but
|
|
5
|
+
* leaves its registry empty by default (api-key-only mode). This module turns
|
|
6
|
+
* that on: {@link registerBuiltInOAuthProviders} populates the registry with the
|
|
7
|
+
* three framework providers, and runs once as a side effect of importing the
|
|
8
|
+
* module so that the moment the launch layer loads, the OAuth-capable providers
|
|
9
|
+
* are live.
|
|
10
|
+
*
|
|
11
|
+
* On top of registration it offers three things the credential command needs:
|
|
12
|
+
* - {@link listLoginProviders} — the merged sign-in directory, every entry
|
|
13
|
+
* tagged with whether it authenticates by browser sign-in or by api key.
|
|
14
|
+
* - {@link startOAuthLogin} — drives a framework provider's login flow and
|
|
15
|
+
* persists the resulting credentials through the {@link AuthVault}.
|
|
16
|
+
* - {@link openLoginUrl} — a default-browser launcher (per platform) the login
|
|
17
|
+
* callback uses to send the user to the provider's consent page.
|
|
18
|
+
*
|
|
19
|
+
* No state is held here beyond the framework registry itself; the module is a
|
|
20
|
+
* thin, testable seam over the framework API plus the app's vault.
|
|
21
|
+
*/
|
|
22
|
+
import { type OAuthLoginCallbacks } from "indusagi/ai";
|
|
23
|
+
import type { AuthVault } from "./contract";
|
|
24
|
+
/**
|
|
25
|
+
* Register the framework's built-in sign-in providers, idempotently.
|
|
26
|
+
*
|
|
27
|
+
* Each provider is registered only when its id is not already present, so
|
|
28
|
+
* repeated calls (or a re-import) leave the registry unchanged. Returns the ids
|
|
29
|
+
* that are registered after the call, for callers that want to confirm the set.
|
|
30
|
+
*/
|
|
31
|
+
export declare function registerBuiltInOAuthProviders(): string[];
|
|
32
|
+
/** How a provider authenticates in the merged sign-in directory. */
|
|
33
|
+
export type AuthKind = "oauth" | "apiKey";
|
|
34
|
+
/** One row of the merged sign-in directory. */
|
|
35
|
+
export interface LoginProvider {
|
|
36
|
+
/** Stable provider id (framework registry id or api-key directory id). */
|
|
37
|
+
readonly id: string;
|
|
38
|
+
/** Human-facing label for menus and prompts. */
|
|
39
|
+
readonly label: string;
|
|
40
|
+
/** Whether this entry signs in via the browser or stores an api key. */
|
|
41
|
+
readonly authKind: AuthKind;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The merged sign-in directory: every registered browser-sign-in provider plus
|
|
45
|
+
* every api-key provider the app knows, each tagged with its {@link AuthKind}.
|
|
46
|
+
*
|
|
47
|
+
* Browser-sign-in providers lead the list (they are the preferred path for the
|
|
48
|
+
* providers that support them); an api-key provider that shares an id with a
|
|
49
|
+
* registered sign-in provider is still listed, so a user can choose either path
|
|
50
|
+
* for the same underlying account.
|
|
51
|
+
*/
|
|
52
|
+
export declare function listLoginProviders(): LoginProvider[];
|
|
53
|
+
/**
|
|
54
|
+
* Open a sign-in url in the user's default browser.
|
|
55
|
+
*
|
|
56
|
+
* Refuses anything that is not an `http`/`https` url and resolves `false`, so a
|
|
57
|
+
* provider that hands back a non-web redirect never spawns a process. Each
|
|
58
|
+
* strategy is tried in turn; the first one that spawns without an immediate
|
|
59
|
+
* error wins. Resolves `true` if a browser was launched, `false` otherwise.
|
|
60
|
+
*/
|
|
61
|
+
export declare function openLoginUrl(url: string): Promise<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* The outcome of {@link startOAuthLogin}: the provider and account the
|
|
64
|
+
* credentials were stored under, and whether this account became the default.
|
|
65
|
+
*/
|
|
66
|
+
export interface OAuthLoginResult {
|
|
67
|
+
/** The provider id the sign-in completed for. */
|
|
68
|
+
readonly provider: string;
|
|
69
|
+
/** The account name the credentials were stored under. */
|
|
70
|
+
readonly account: string;
|
|
71
|
+
/** Whether the new account was stored as the provider default. */
|
|
72
|
+
readonly madeDefault: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Drive a framework provider's browser sign-in and persist the result.
|
|
76
|
+
*
|
|
77
|
+
* Looks the provider up in the (now populated) framework registry, runs its
|
|
78
|
+
* login flow with the supplied {@link OAuthLoginCallbacks}, and writes the
|
|
79
|
+
* returned credentials into the {@link AuthVault} under `account`. The first
|
|
80
|
+
* account stored for a provider becomes its default. Throws when the provider id
|
|
81
|
+
* is not registered or the framework login flow rejects.
|
|
82
|
+
*
|
|
83
|
+
* @param providerId the registered sign-in provider id (e.g. the framework id)
|
|
84
|
+
* @param callbacks the framework login callbacks (url open, prompt, progress)
|
|
85
|
+
* @param vault the credential store the result is persisted through
|
|
86
|
+
* @param account the account name to store under (defaults to `"default"`)
|
|
87
|
+
*/
|
|
88
|
+
export declare function startOAuthLogin(providerId: string, callbacks: OAuthLoginCallbacks, vault: AuthVault, account?: string): Promise<OAuthLoginResult>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package command — `runPackageCommand`.
|
|
3
|
+
*
|
|
4
|
+
* The top-level `install` / `remove` / `update` / `list` / `config` surface that
|
|
5
|
+
* manages the extension-package sources the launcher loads. A source is a plain
|
|
6
|
+
* string the loader understands — an `npm:` spec, a `git:` / `https:` repo, or a
|
|
7
|
+
* bare local path — and the configured set lives in the user settings under the
|
|
8
|
+
* `extensionPackages` key, persisted through the {@link PreferenceStore}.
|
|
9
|
+
*
|
|
10
|
+
* The command owns the first positional token only: it returns
|
|
11
|
+
* `{ handled: false }` when that token is not one of the recognised subcommands,
|
|
12
|
+
* so the orchestrator can call this first and fall through to a normal launch on
|
|
13
|
+
* a miss. It never throws for an expected failure — a bad argument is reported as
|
|
14
|
+
* a printed line and a non-zero {@link PackageResult.code}.
|
|
15
|
+
*
|
|
16
|
+
* I/O is injected. The default {@link PackageIo} wraps `process.stdout` /
|
|
17
|
+
* `process.stderr`, but tests drive the whole flow over an in-memory stand-in and
|
|
18
|
+
* a store pinned to a temp directory, so the real home is never touched.
|
|
19
|
+
*/
|
|
20
|
+
import { PreferenceStore } from "../settings";
|
|
21
|
+
/** The five subcommands the package command recognises as the first token. */
|
|
22
|
+
export type PackageCommand = "install" | "remove" | "update" | "list" | "config";
|
|
23
|
+
/** Every {@link PackageCommand}, as a frozen tuple for membership tests. */
|
|
24
|
+
export declare const PACKAGE_COMMANDS: readonly PackageCommand[];
|
|
25
|
+
/**
|
|
26
|
+
* The console seam the package command writes through. Pinned to a normal line
|
|
27
|
+
* and an error line so a test can capture both streams without a real terminal.
|
|
28
|
+
*/
|
|
29
|
+
export interface PackageIo {
|
|
30
|
+
/** Emit one line of human-facing text to the standard stream. */
|
|
31
|
+
print(line: string): void;
|
|
32
|
+
/** Emit one line to the error stream. */
|
|
33
|
+
printError(line: string): void;
|
|
34
|
+
}
|
|
35
|
+
/** The default {@link PackageIo} backed by `process.stdout` / `process.stderr`. */
|
|
36
|
+
export declare function defaultPackageIo(): PackageIo;
|
|
37
|
+
/**
|
|
38
|
+
* Options for {@link runPackageCommand}: the injected settings store the sources
|
|
39
|
+
* persist through and the optional io seam. The store is injected so tests pin it
|
|
40
|
+
* to a temp directory; boot resolves it from the workspace.
|
|
41
|
+
*/
|
|
42
|
+
export interface PackageCommandOptions {
|
|
43
|
+
/** The settings store the package sources read from and write to. */
|
|
44
|
+
readonly store: PreferenceStore;
|
|
45
|
+
/** The console seam; defaults to {@link defaultPackageIo}. */
|
|
46
|
+
readonly io?: PackageIo;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The outcome of {@link runPackageCommand}.
|
|
50
|
+
*
|
|
51
|
+
* {@link handled} reports whether the first token was a recognised subcommand;
|
|
52
|
+
* when `false`, the caller proceeds to a normal launch unchanged. {@link code}
|
|
53
|
+
* is the process exit code for a handled command — zero on success, non-zero when
|
|
54
|
+
* a required argument was missing or invalid.
|
|
55
|
+
*/
|
|
56
|
+
export interface PackageResult {
|
|
57
|
+
/** Whether this invocation was a package subcommand. */
|
|
58
|
+
readonly handled: boolean;
|
|
59
|
+
/** The subcommand that ran, when {@link handled} is true. */
|
|
60
|
+
readonly command?: PackageCommand;
|
|
61
|
+
/** Process exit code for a handled command (zero on success). */
|
|
62
|
+
readonly code?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Run the package command.
|
|
66
|
+
*
|
|
67
|
+
* Returns `{ handled: false }` immediately when `argv[0]` is not a recognised
|
|
68
|
+
* subcommand, so the orchestrator can call this first and fall through on a miss.
|
|
69
|
+
* Otherwise it performs the subcommand against the injected store and resolves a
|
|
70
|
+
* {@link PackageResult} — never throwing for an expected failure.
|
|
71
|
+
*
|
|
72
|
+
* @param argv the raw token list following the program name
|
|
73
|
+
* @param opts the injected settings store and (optionally) the io seam
|
|
74
|
+
*/
|
|
75
|
+
export declare function runPackageCommand(argv: readonly string[], opts: PackageCommandOptions): Promise<PackageResult>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package command — unit tests.
|
|
3
|
+
*
|
|
4
|
+
* Everything runs against a {@link PreferenceStore} pinned to a temp directory
|
|
5
|
+
* through {@link PreferenceStore.atPaths}; the real home is never read or
|
|
6
|
+
* written. The io seam is an in-memory capture, so there is no real terminal. The
|
|
7
|
+
* tests pin the public behaviour of {@link runPackageCommand}:
|
|
8
|
+
*
|
|
9
|
+
* 1. A non-package leading token falls through (`handled: false`).
|
|
10
|
+
* 2. `install` persists a source, is idempotent under equivalent spellings, and
|
|
11
|
+
* `list` reads it back; `remove` clears it again.
|
|
12
|
+
* 3. A missing source argument is a non-zero, non-throwing failure.
|
|
13
|
+
* 4. `config` prints the resolved settings paths and contents.
|
|
14
|
+
*/
|
|
15
|
+
export {};
|