@cjhyy/code-shell 0.3.0 → 0.5.0-rc.1
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 +75 -0
- package/dist/cli.js +2 -0
- package/dist/index.d.ts +1 -68
- package/dist/index.js +1 -1
- package/package.json +25 -73
- package/dist/agent/coordinator.d.ts +0 -49
- package/dist/anthropic-DJXVKFMJ.js +0 -1
- package/dist/arena/arena.d.ts +0 -43
- package/dist/arena/context/context-tools.d.ts +0 -16
- package/dist/arena/detect-mode.d.ts +0 -20
- package/dist/arena/digest-builder.d.ts +0 -25
- package/dist/arena/index.d.ts +0 -29
- package/dist/arena/index.js +0 -1
- package/dist/arena/iterate/convergence.d.ts +0 -25
- package/dist/arena/iterate/formats/index.d.ts +0 -22
- package/dist/arena/iterate/index.d.ts +0 -11
- package/dist/arena/iterate/iterative-arena.d.ts +0 -23
- package/dist/arena/iterate/parse.d.ts +0 -42
- package/dist/arena/iterate/phases/argue.d.ts +0 -22
- package/dist/arena/iterate/phases/revise.d.ts +0 -16
- package/dist/arena/iterate/phases/tournament.d.ts +0 -34
- package/dist/arena/iterate/tools/web-tools.d.ts +0 -13
- package/dist/arena/iterate/types.d.ts +0 -152
- package/dist/arena/ledger.d.ts +0 -47
- package/dist/arena/lenses/architecture.d.ts +0 -5
- package/dist/arena/lenses/engineering.d.ts +0 -5
- package/dist/arena/lenses/general.d.ts +0 -5
- package/dist/arena/lenses/index.d.ts +0 -16
- package/dist/arena/lenses/product.d.ts +0 -5
- package/dist/arena/model-presets.d.ts +0 -23
- package/dist/arena/phases/adjudication.d.ts +0 -24
- package/dist/arena/phases/build-consensus.d.ts +0 -29
- package/dist/arena/phases/claim-registry.d.ts +0 -26
- package/dist/arena/phases/cross-review.d.ts +0 -45
- package/dist/arena/phases/debate-rounds.d.ts +0 -27
- package/dist/arena/phases/participant-research.d.ts +0 -38
- package/dist/arena/phases/planning-detail-expansion.d.ts +0 -38
- package/dist/arena/planner.d.ts +0 -27
- package/dist/arena/providers/docs.d.ts +0 -6
- package/dist/arena/providers/git.d.ts +0 -8
- package/dist/arena/providers/index.d.ts +0 -32
- package/dist/arena/providers/none.d.ts +0 -7
- package/dist/arena/providers/repo.d.ts +0 -6
- package/dist/arena/render/session.d.ts +0 -17
- package/dist/arena/render/terminal.d.ts +0 -33
- package/dist/arena/strategies/discussion.d.ts +0 -25
- package/dist/arena/strategies/index.d.ts +0 -15
- package/dist/arena/strategies/language-wrapper.d.ts +0 -17
- package/dist/arena/strategies/lens-wrapper.d.ts +0 -16
- package/dist/arena/strategies/planning.d.ts +0 -30
- package/dist/arena/strategies/review.d.ts +0 -26
- package/dist/arena/strategies/utils.d.ts +0 -39
- package/dist/arena/tools/selector.d.ts +0 -17
- package/dist/arena/transitions.d.ts +0 -48
- package/dist/arena/types.d.ts +0 -508
- package/dist/arena-MRBATZFD.js +0 -3
- package/dist/bootstrap/setup.d.ts +0 -14
- package/dist/bootstrap/state.d.ts +0 -160
- package/dist/bwrap-PVZMLHZR.js +0 -2
- package/dist/chunk-2OD6VR4N.js +0 -2
- package/dist/chunk-3QP5BQ3L.js +0 -1
- package/dist/chunk-5QIVXFCT.js +0 -1
- package/dist/chunk-AFMP73YP.js +0 -2
- package/dist/chunk-D3TVASD2.js +0 -4
- package/dist/chunk-DI26OUIU.js +0 -2
- package/dist/chunk-FU7AHZNN.js +0 -1
- package/dist/chunk-FZXY554D.js +0 -2
- package/dist/chunk-GGVAOPI7.js +0 -1
- package/dist/chunk-GKAQH2DG.js +0 -2
- package/dist/chunk-GYNO4R7R.js +0 -2
- package/dist/chunk-K4HILJ6G.js +0 -251
- package/dist/chunk-M7VU4YVY.js +0 -49
- package/dist/chunk-MLCTC53I.js +0 -1
- package/dist/chunk-O5HFCH2U.js +0 -1
- package/dist/chunk-OWBYLMDD.js +0 -1
- package/dist/chunk-P6JSTIFM.js +0 -1
- package/dist/chunk-QTWU7UNA.js +0 -5
- package/dist/chunk-SKIX2M5Z.js +0 -4
- package/dist/chunk-SNFAPSLA.js +0 -1
- package/dist/chunk-SV7H4FKT.js +0 -3
- package/dist/chunk-T222K6IV.js +0 -18
- package/dist/chunk-TKJA6W36.js +0 -3
- package/dist/chunk-WI6FSWGU.js +0 -1
- package/dist/chunk-WONQHE4P.js +0 -641
- package/dist/chunk-X2S7ASQ2.js +0 -1
- package/dist/chunk-Z5HKHAO7.js +0 -336
- package/dist/cli/commands/arena.d.ts +0 -29
- package/dist/cli/commands/builtin/advanced-commands.d.ts +0 -5
- package/dist/cli/commands/builtin/core-commands.d.ts +0 -5
- package/dist/cli/commands/builtin/export-md.d.ts +0 -19
- package/dist/cli/commands/builtin/extra-commands.d.ts +0 -6
- package/dist/cli/commands/builtin/git-commands.d.ts +0 -5
- package/dist/cli/commands/builtin/init/detect.d.ts +0 -25
- package/dist/cli/commands/builtin/init/index.d.ts +0 -19
- package/dist/cli/commands/builtin/more-commands.d.ts +0 -5
- package/dist/cli/commands/builtin/permissions-command.d.ts +0 -5
- package/dist/cli/commands/builtin/plugin-commands-registration.d.ts +0 -12
- package/dist/cli/commands/builtin/plugin-handler.d.ts +0 -6
- package/dist/cli/commands/builtin/utility-commands.d.ts +0 -5
- package/dist/cli/commands/registry.d.ts +0 -79
- package/dist/cli/commands/repl.d.ts +0 -21
- package/dist/cli/commands/run.d.ts +0 -21
- package/dist/cli/commands/runs.d.ts +0 -14
- package/dist/cli/cost-tracker.d.ts +0 -63
- package/dist/cli/exit.d.ts +0 -12
- package/dist/cli/input/ndjson-reader.d.ts +0 -31
- package/dist/cli/input-compiler.d.ts +0 -5
- package/dist/cli/main.d.ts +0 -5
- package/dist/cli/main.js +0 -415
- package/dist/cli/migrate-models.d.ts +0 -45
- package/dist/cli/onboarding.d.ts +0 -189
- package/dist/cli/output/renderer.d.ts +0 -28
- package/dist/cli/output/terminal-ui.d.ts +0 -50
- package/dist/cli/updater.d.ts +0 -65
- package/dist/client-base-GSFXPP2Y.js +0 -1
- package/dist/compaction-L3Y6NG4N.js +0 -1
- package/dist/context/compaction.d.ts +0 -116
- package/dist/context/manager.d.ts +0 -145
- package/dist/context/token-counter.d.ts +0 -27
- package/dist/context/tool-result-storage.d.ts +0 -96
- package/dist/cron/scheduler.d.ts +0 -34
- package/dist/data/openrouter-models.d.ts +0 -35
- package/dist/data/openrouter-sync.d.ts +0 -16
- package/dist/data/static-catalogs.d.ts +0 -25
- package/dist/devtools-FBX4HVVY.js +0 -1
- package/dist/engine/cost-store.d.ts +0 -22
- package/dist/engine/engine.d.ts +0 -236
- package/dist/engine/model-facade.d.ts +0 -24
- package/dist/engine/query.d.ts +0 -50
- package/dist/engine/streaming-tool-queue.d.ts +0 -34
- package/dist/engine/token-budget.d.ts +0 -22
- package/dist/engine/tool-summary.d.ts +0 -13
- package/dist/engine/turn-loop.d.ts +0 -122
- package/dist/engine/turn-state.d.ts +0 -20
- package/dist/exceptions.d.ts +0 -44
- package/dist/export-md-U72T7NW7.js +0 -22
- package/dist/file-history-7FQFEQOL.js +0 -1
- package/dist/git/utils.d.ts +0 -35
- package/dist/git/worktree.d.ts +0 -36
- package/dist/hooks/events.d.ts +0 -114
- package/dist/hooks/inject.d.ts +0 -19
- package/dist/hooks/registry.d.ts +0 -15
- package/dist/hooks/shell-runner.d.ts +0 -45
- package/dist/llm/api-key-sanitize.d.ts +0 -22
- package/dist/llm/capabilities/index.d.ts +0 -20
- package/dist/llm/capabilities/rules.d.ts +0 -26
- package/dist/llm/capabilities/types.d.ts +0 -108
- package/dist/llm/client-base.d.ts +0 -29
- package/dist/llm/client-factory.d.ts +0 -10
- package/dist/llm/model-cache.d.ts +0 -21
- package/dist/llm/model-fetcher.d.ts +0 -29
- package/dist/llm/model-pool.d.ts +0 -84
- package/dist/llm/provider-catalog.d.ts +0 -32
- package/dist/llm/provider-kinds.d.ts +0 -21
- package/dist/llm/providers/anthropic.d.ts +0 -19
- package/dist/llm/providers/openai.d.ts +0 -64
- package/dist/llm/retry.d.ts +0 -12
- package/dist/llm/stream-watchdog.d.ts +0 -42
- package/dist/llm/token-counter.d.ts +0 -17
- package/dist/llm/types.d.ts +0 -37
- package/dist/logging/logger.d.ts +0 -102
- package/dist/logging/session-recorder.d.ts +0 -90
- package/dist/lsp/client.d.ts +0 -41
- package/dist/lsp/manager.d.ts +0 -40
- package/dist/lsp/servers.d.ts +0 -16
- package/dist/manager-4XKLZHKE.js +0 -1
- package/dist/mcp-manager-3JGHEJO3.js +0 -1
- package/dist/memory-BNI4WEWL.js +0 -1
- package/dist/model-cache-HEDXI7UJ.js +0 -1
- package/dist/model-fetcher-X5W5EASG.js +0 -1
- package/dist/native-ts/yoga-layout/enums.d.ts +0 -117
- package/dist/native-ts/yoga-layout/index.d.ts +0 -270
- package/dist/off-7SDVMMXW.js +0 -1
- package/dist/openai-OQ6LLN5J.js +0 -1
- package/dist/openrouter-models-ZT4R2AE3.js +0 -1
- package/dist/openrouter-sync-ARMVWY7S.js +0 -1
- package/dist/plugin-handler-GJISMH5Q.js +0 -11
- package/dist/plugins/gitOps.d.ts +0 -23
- package/dist/plugins/installedPlugins.d.ts +0 -15
- package/dist/plugins/knownMarketplaces.d.ts +0 -10
- package/dist/plugins/loadPluginHooks.d.ts +0 -52
- package/dist/plugins/marketplaceManager.d.ts +0 -49
- package/dist/plugins/parseMarketplaceInput.d.ts +0 -16
- package/dist/plugins/pluginCommandHook.d.ts +0 -54
- package/dist/plugins/pluginCommandsLoader.d.ts +0 -25
- package/dist/plugins/pluginInstaller.d.ts +0 -36
- package/dist/plugins/schemas.d.ts +0 -9
- package/dist/plugins/types.d.ts +0 -75
- package/dist/plugins/varRewrite.d.ts +0 -42
- package/dist/preset/index.d.ts +0 -60
- package/dist/product/define.d.ts +0 -60
- package/dist/product/index.d.ts +0 -5
- package/dist/product/index.js +0 -1
- package/dist/product/types.d.ts +0 -111
- package/dist/prompt/composer.d.ts +0 -42
- package/dist/prompt/instruction-scanner.d.ts +0 -54
- package/dist/prompt/section-cache.d.ts +0 -15
- package/dist/prompt/section-loader.d.ts +0 -26
- package/dist/protocol/client.d.ts +0 -64
- package/dist/protocol/helpers.d.ts +0 -42
- package/dist/protocol/index.d.ts +0 -4
- package/dist/protocol/server.d.ts +0 -51
- package/dist/protocol/transport.d.ts +0 -36
- package/dist/protocol/types.d.ts +0 -192
- package/dist/react-compiler-runtime-shim.d.ts +0 -1
- package/dist/remote/bridge.d.ts +0 -37
- package/dist/render/Ansi.d.ts +0 -10
- package/dist/render/bidi.d.ts +0 -15
- package/dist/render/clearTerminal.d.ts +0 -19
- package/dist/render/colorize.d.ts +0 -16
- package/dist/render/components/AlternateScreen.d.ts +0 -21
- package/dist/render/components/App.d.ts +0 -71
- package/dist/render/components/AppContext.d.ts +0 -11
- package/dist/render/components/Box.d.ts +0 -49
- package/dist/render/components/Button.d.ts +0 -36
- package/dist/render/components/ClockContext.d.ts +0 -9
- package/dist/render/components/CursorDeclarationContext.d.ts +0 -22
- package/dist/render/components/ErrorOverview.d.ts +0 -5
- package/dist/render/components/Link.d.ts +0 -7
- package/dist/render/components/Newline.d.ts +0 -12
- package/dist/render/components/NoSelect.d.ts +0 -19
- package/dist/render/components/RawAnsi.d.ts +0 -16
- package/dist/render/components/ScrollBox.d.ts +0 -78
- package/dist/render/components/Spacer.d.ts +0 -5
- package/dist/render/components/Static.d.ts +0 -23
- package/dist/render/components/StdinContext.d.ts +0 -27
- package/dist/render/components/TerminalFocusContext.d.ts +0 -10
- package/dist/render/components/TerminalSizeContext.d.ts +0 -5
- package/dist/render/components/Text.d.ts +0 -55
- package/dist/render/constants.d.ts +0 -1
- package/dist/render/cursor.d.ts +0 -8
- package/dist/render/devtools.d.ts +0 -9
- package/dist/render/dom.d.ts +0 -77
- package/dist/render/events/click-event.d.ts +0 -31
- package/dist/render/events/dispatcher.d.ts +0 -40
- package/dist/render/events/emitter.d.ts +0 -5
- package/dist/render/events/event-handlers.d.ts +0 -46
- package/dist/render/events/event.d.ts +0 -5
- package/dist/render/events/focus-event.d.ts +0 -13
- package/dist/render/events/input-event.d.ts +0 -30
- package/dist/render/events/keyboard-event.d.ts +0 -19
- package/dist/render/events/paste-event.d.ts +0 -8
- package/dist/render/events/resize-event.d.ts +0 -9
- package/dist/render/events/terminal-event.d.ts +0 -54
- package/dist/render/events/terminal-focus-event.d.ts +0 -13
- package/dist/render/focus.d.ts +0 -43
- package/dist/render/frame.d.ts +0 -95
- package/dist/render/get-max-width.d.ts +0 -17
- package/dist/render/hit-test.d.ts +0 -33
- package/dist/render/hooks/use-animation-frame.d.ts +0 -26
- package/dist/render/hooks/use-app.d.ts +0 -5
- package/dist/render/hooks/use-declared-cursor.d.ts +0 -26
- package/dist/render/hooks/use-input.d.ts +0 -37
- package/dist/render/hooks/use-interval.d.ts +0 -18
- package/dist/render/hooks/use-search-highlight.d.ts +0 -30
- package/dist/render/hooks/use-selection.d.ts +0 -39
- package/dist/render/hooks/use-stdin.d.ts +0 -5
- package/dist/render/hooks/use-tab-status.d.ts +0 -13
- package/dist/render/hooks/use-terminal-focus.d.ts +0 -10
- package/dist/render/hooks/use-terminal-title.d.ts +0 -12
- package/dist/render/hooks/use-terminal-viewport.d.ts +0 -29
- package/dist/render/index.d.ts +0 -30
- package/dist/render/ink.d.ts +0 -391
- package/dist/render/instances.d.ts +0 -3
- package/dist/render/layout/engine.d.ts +0 -2
- package/dist/render/layout/geometry.d.ts +0 -30
- package/dist/render/layout/node.d.ts +0 -125
- package/dist/render/layout/yoga.d.ts +0 -56
- package/dist/render/line-width-cache.d.ts +0 -1
- package/dist/render/log-update.d.ts +0 -28
- package/dist/render/measure-element.d.ts +0 -16
- package/dist/render/measure-text.d.ts +0 -6
- package/dist/render/node-cache.d.ts +0 -20
- package/dist/render/optimizer.d.ts +0 -15
- package/dist/render/output.d.ts +0 -119
- package/dist/render/parse-keypress.d.ts +0 -111
- package/dist/render/reconciler.d.ts +0 -11
- package/dist/render/render-border.d.ts +0 -24
- package/dist/render/render-node-to-output.d.ts +0 -45
- package/dist/render/render-to-screen.d.ts +0 -46
- package/dist/render/renderer.d.ts +0 -14
- package/dist/render/root.d.ts +0 -74
- package/dist/render/screen.d.ts +0 -269
- package/dist/render/searchHighlight.d.ts +0 -20
- package/dist/render/selection.d.ts +0 -229
- package/dist/render/squash-text-nodes.d.ts +0 -22
- package/dist/render/stringWidth.d.ts +0 -1
- package/dist/render/styles.d.ts +0 -306
- package/dist/render/supports-hyperlinks.d.ts +0 -13
- package/dist/render/tabstops.d.ts +0 -1
- package/dist/render/terminal-focus-state.d.ts +0 -6
- package/dist/render/terminal-querier.d.ts +0 -129
- package/dist/render/terminal.d.ts +0 -46
- package/dist/render/termio/ansi.d.ts +0 -65
- package/dist/render/termio/csi.d.ts +0 -165
- package/dist/render/termio/dec.d.ts +0 -37
- package/dist/render/termio/esc.d.ts +0 -12
- package/dist/render/termio/osc.d.ts +0 -173
- package/dist/render/termio/parser.d.ts +0 -35
- package/dist/render/termio/sgr.d.ts +0 -8
- package/dist/render/termio/tokenize.d.ts +0 -45
- package/dist/render/termio/types.d.ts +0 -190
- package/dist/render/termio.d.ts +0 -24
- package/dist/render/useTerminalNotification.d.ts +0 -28
- package/dist/render/warn.d.ts +0 -1
- package/dist/render/widest-line.d.ts +0 -1
- package/dist/render/wrap-text.d.ts +0 -2
- package/dist/render/wrapAnsi.d.ts +0 -7
- package/dist/run/ArtifactTracker.d.ts +0 -38
- package/dist/run/CheckpointWriter.d.ts +0 -53
- package/dist/run/EngineRunner.d.ts +0 -72
- package/dist/run/Evaluator.d.ts +0 -56
- package/dist/run/FileRunStore.d.ts +0 -39
- package/dist/run/Heartbeat.d.ts +0 -54
- package/dist/run/RunApprovalBackend.d.ts +0 -53
- package/dist/run/RunLock.d.ts +0 -40
- package/dist/run/RunManager.d.ts +0 -82
- package/dist/run/RunQueue.d.ts +0 -27
- package/dist/run/RunStore.d.ts +0 -25
- package/dist/run/factory.d.ts +0 -63
- package/dist/run/index.d.ts +0 -17
- package/dist/run/index.js +0 -1
- package/dist/run/types.d.ts +0 -136
- package/dist/seatbelt-L54CNI2Y.js +0 -37
- package/dist/services/analytics.d.ts +0 -29
- package/dist/services/auto-dream.d.ts +0 -35
- package/dist/services/diagnostics.d.ts +0 -41
- package/dist/services/extract-memories.d.ts +0 -27
- package/dist/services/index.d.ts +0 -11
- package/dist/services/memory-orchestrator.d.ts +0 -39
- package/dist/services/notifier.d.ts +0 -25
- package/dist/services/oauth.d.ts +0 -27
- package/dist/services/session-memory.d.ts +0 -37
- package/dist/session/file-history.d.ts +0 -41
- package/dist/session/memory.d.ts +0 -65
- package/dist/session/session-manager.d.ts +0 -28
- package/dist/session/transcript.d.ts +0 -39
- package/dist/session-manager-AGWS5SMJ.js +0 -1
- package/dist/settings/manager.d.ts +0 -36
- package/dist/settings/schema.d.ts +0 -1123
- package/dist/skills/frontmatter.d.ts +0 -13
- package/dist/skills/index.d.ts +0 -7
- package/dist/skills/scanner.d.ts +0 -20
- package/dist/tool-summary-HJX6RHG4.js +0 -2
- package/dist/tool-system/builtin/agent-notifications.d.ts +0 -55
- package/dist/tool-system/builtin/agent-registry.d.ts +0 -67
- package/dist/tool-system/builtin/agent-transcript-translator.d.ts +0 -22
- package/dist/tool-system/builtin/agent.d.ts +0 -16
- package/dist/tool-system/builtin/apply-patch/applier.d.ts +0 -26
- package/dist/tool-system/builtin/apply-patch/index.d.ts +0 -19
- package/dist/tool-system/builtin/apply-patch/parser.d.ts +0 -17
- package/dist/tool-system/builtin/apply-patch/seek-sequence.d.ts +0 -18
- package/dist/tool-system/builtin/apply-patch/types.d.ts +0 -49
- package/dist/tool-system/builtin/arena.d.ts +0 -31
- package/dist/tool-system/builtin/ask-user.d.ts +0 -20
- package/dist/tool-system/builtin/bash.d.ts +0 -12
- package/dist/tool-system/builtin/brief.d.ts +0 -6
- package/dist/tool-system/builtin/config.d.ts +0 -6
- package/dist/tool-system/builtin/cron.d.ts +0 -10
- package/dist/tool-system/builtin/edit.d.ts +0 -6
- package/dist/tool-system/builtin/file-cache.d.ts +0 -11
- package/dist/tool-system/builtin/glob.d.ts +0 -6
- package/dist/tool-system/builtin/grep.d.ts +0 -6
- package/dist/tool-system/builtin/index.d.ts +0 -20
- package/dist/tool-system/builtin/lsp.d.ts +0 -6
- package/dist/tool-system/builtin/mcp-tools.d.ts +0 -10
- package/dist/tool-system/builtin/notebook-edit.d.ts +0 -6
- package/dist/tool-system/builtin/plan.d.ts +0 -18
- package/dist/tool-system/builtin/powershell.d.ts +0 -6
- package/dist/tool-system/builtin/read.d.ts +0 -6
- package/dist/tool-system/builtin/remote-trigger.d.ts +0 -6
- package/dist/tool-system/builtin/repl.d.ts +0 -6
- package/dist/tool-system/builtin/send-message.d.ts +0 -6
- package/dist/tool-system/builtin/skill-prompt.d.ts +0 -7
- package/dist/tool-system/builtin/skill.d.ts +0 -8
- package/dist/tool-system/builtin/sleep.d.ts +0 -6
- package/dist/tool-system/builtin/task.d.ts +0 -51
- package/dist/tool-system/builtin/tool-search.d.ts +0 -11
- package/dist/tool-system/builtin/web-fetch.d.ts +0 -6
- package/dist/tool-system/builtin/web-search.d.ts +0 -6
- package/dist/tool-system/builtin/worktree.d.ts +0 -10
- package/dist/tool-system/builtin/write.d.ts +0 -6
- package/dist/tool-system/context.d.ts +0 -133
- package/dist/tool-system/executor.d.ts +0 -49
- package/dist/tool-system/investigation-guard.d.ts +0 -46
- package/dist/tool-system/mcp-manager.d.ts +0 -50
- package/dist/tool-system/permission.d.ts +0 -104
- package/dist/tool-system/registry.d.ts +0 -32
- package/dist/tool-system/sandbox/bwrap.d.ts +0 -13
- package/dist/tool-system/sandbox/index.d.ts +0 -78
- package/dist/tool-system/sandbox/off.d.ts +0 -2
- package/dist/tool-system/sandbox/seatbelt.d.ts +0 -18
- package/dist/tool-system/task-guard.d.ts +0 -30
- package/dist/tool-system/validation.d.ts +0 -5
- package/dist/types.d.ts +0 -356
- package/dist/ui/App.d.ts +0 -14
- package/dist/ui/components/AgentBlock.d.ts +0 -35
- package/dist/ui/components/AgentDock.d.ts +0 -36
- package/dist/ui/components/AskUserPrompt.d.ts +0 -14
- package/dist/ui/components/BabyHand.d.ts +0 -1
- package/dist/ui/components/Banner.d.ts +0 -8
- package/dist/ui/components/CodeBlock.d.ts +0 -7
- package/dist/ui/components/CommandInput.d.ts +0 -24
- package/dist/ui/components/ContextUsageBar.d.ts +0 -7
- package/dist/ui/components/DiffLine.d.ts +0 -33
- package/dist/ui/components/DiffView.d.ts +0 -6
- package/dist/ui/components/DogLogo.d.ts +0 -1
- package/dist/ui/components/FullscreenLayout.d.ts +0 -51
- package/dist/ui/components/KunHead.d.ts +0 -1
- package/dist/ui/components/KunLogo.d.ts +0 -1
- package/dist/ui/components/MessageContent.d.ts +0 -26
- package/dist/ui/components/MessageRow.d.ts +0 -54
- package/dist/ui/components/ModelManager.d.ts +0 -68
- package/dist/ui/components/ModelSelector.d.ts +0 -10
- package/dist/ui/components/OnboardingPrompt.d.ts +0 -16
- package/dist/ui/components/PermissionDialog.d.ts +0 -8
- package/dist/ui/components/PermissionPrompt.d.ts +0 -11
- package/dist/ui/components/ProviderModelFlow.d.ts +0 -58
- package/dist/ui/components/ScrollView.d.ts +0 -34
- package/dist/ui/components/SessionPicker.d.ts +0 -16
- package/dist/ui/components/Spinner.d.ts +0 -8
- package/dist/ui/components/SpinnerWithVerb.d.ts +0 -19
- package/dist/ui/components/StatusLine.d.ts +0 -28
- package/dist/ui/components/StructuredDiff.d.ts +0 -8
- package/dist/ui/components/TaskList.d.ts +0 -6
- package/dist/ui/components/TextInput.d.ts +0 -17
- package/dist/ui/components/ThemedBox.d.ts +0 -19
- package/dist/ui/components/ThemedText.d.ts +0 -26
- package/dist/ui/components/ToolCall.d.ts +0 -28
- package/dist/ui/components/UpdateBanner.d.ts +0 -1
- package/dist/ui/components/VirtualMessageList.d.ts +0 -43
- package/dist/ui/components/WelcomeTips.d.ts +0 -5
- package/dist/ui/dev-seed.d.ts +0 -1
- package/dist/ui/fullscreen-mode.d.ts +0 -9
- package/dist/ui/hooks/useCostSummary.d.ts +0 -1
- package/dist/ui/hooks/useVirtualScroll.d.ts +0 -101
- package/dist/ui/index.d.ts +0 -12
- package/dist/ui/input-history.d.ts +0 -61
- package/dist/ui/onboarding-runner.d.ts +0 -2
- package/dist/ui/perf-probes.d.ts +0 -22
- package/dist/ui/query-guard.d.ts +0 -35
- package/dist/ui/slice-anchor.d.ts +0 -44
- package/dist/ui/store.d.ts +0 -108
- package/dist/ui/terminal-renderer.d.ts +0 -45
- package/dist/ui/theme.d.ts +0 -36
- package/dist/ui/vim-mode.d.ts +0 -25
- package/dist/updater-OCNU2K2Z.js +0 -1
- package/dist/utils/debug.d.ts +0 -41
- package/dist/utils/earlyInput.d.ts +0 -43
- package/dist/utils/env.d.ts +0 -24
- package/dist/utils/envUtils.d.ts +0 -51
- package/dist/utils/execFileNoThrow.d.ts +0 -39
- package/dist/utils/format.d.ts +0 -44
- package/dist/utils/fullscreen.d.ts +0 -47
- package/dist/utils/intl.d.ts +0 -22
- package/dist/utils/lockfile.d.ts +0 -15
- package/dist/utils/semver.d.ts +0 -6
- package/dist/utils/sliceAnsi.d.ts +0 -12
- package/dist/utils/systemTheme.d.ts +0 -40
- package/dist/utils/task-sanitizer.d.ts +0 -6
- package/dist/utils/theme.d.ts +0 -91
- package/dist/utils/toolDisplay.d.ts +0 -31
- package/dist/utils/truncate.d.ts +0 -40
- package/dist/voice/index.d.ts +0 -35
package/dist/types.d.ts
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core type definitions for the code-shell orchestration framework.
|
|
3
|
-
*/
|
|
4
|
-
export interface ContentBlock {
|
|
5
|
-
type: "text" | "tool_use" | "tool_result" | "image" | "reasoning";
|
|
6
|
-
text?: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
input?: Record<string, unknown>;
|
|
10
|
-
content?: string | ContentBlock[];
|
|
11
|
-
tool_use_id?: string;
|
|
12
|
-
source?: {
|
|
13
|
-
type: "base64";
|
|
14
|
-
media_type: string;
|
|
15
|
-
data: string;
|
|
16
|
-
};
|
|
17
|
-
reasoningContent?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface Message {
|
|
20
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
21
|
-
content: string | ContentBlock[];
|
|
22
|
-
name?: string;
|
|
23
|
-
tool_call_id?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ToolDefinition {
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
inputSchema: Record<string, unknown>;
|
|
29
|
-
}
|
|
30
|
-
export interface ToolCall {
|
|
31
|
-
id: string;
|
|
32
|
-
toolName: string;
|
|
33
|
-
serverName?: string;
|
|
34
|
-
args: Record<string, unknown>;
|
|
35
|
-
}
|
|
36
|
-
export interface ToolResult {
|
|
37
|
-
id: string;
|
|
38
|
-
toolName: string;
|
|
39
|
-
result?: string;
|
|
40
|
-
error?: string;
|
|
41
|
-
isError?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export type ToolSource = "builtin" | "mcp";
|
|
44
|
-
export interface RegisteredTool {
|
|
45
|
-
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
inputSchema: Record<string, unknown>;
|
|
48
|
-
source: ToolSource;
|
|
49
|
-
serverName?: string;
|
|
50
|
-
permissionDefault: PermissionDecision;
|
|
51
|
-
isConcurrencySafe?: boolean;
|
|
52
|
-
isReadOnly?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Override the default tool execution timeout (ms).
|
|
55
|
-
* Falls back to DEFAULT_TOOL_TIMEOUT_MS (120s) if unset.
|
|
56
|
-
* The caller of executeTool() can still override via options.timeoutMs.
|
|
57
|
-
*/
|
|
58
|
-
timeoutMs?: number;
|
|
59
|
-
}
|
|
60
|
-
export type TranscriptEventType = "message" | "tool_use" | "tool_result" | "summary" | "content_replace" | "file_history" | "plan_operation" | "session_meta" | "turn_boundary" | "error";
|
|
61
|
-
export interface TranscriptEvent {
|
|
62
|
-
id: string;
|
|
63
|
-
type: TranscriptEventType;
|
|
64
|
-
timestamp: number;
|
|
65
|
-
turnNumber: number;
|
|
66
|
-
data: Record<string, unknown>;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Session lifecycle state persisted in state.json. `"active"` means a run is
|
|
70
|
-
* currently in flight (or was, at the moment of the last heartbeat). All other
|
|
71
|
-
* values match the {@link TerminalReason} the last run returned, so callers
|
|
72
|
-
* can distinguish a user-cancelled session (`"aborted_streaming"`) from an
|
|
73
|
-
* actual error (`"model_error"`, `"prompt_too_long"`, ...).
|
|
74
|
-
*/
|
|
75
|
-
export type SessionStatus = "active" | "paused" | TerminalReason;
|
|
76
|
-
export interface SessionState {
|
|
77
|
-
sessionId: string;
|
|
78
|
-
cwd: string;
|
|
79
|
-
startedAt: number;
|
|
80
|
-
model: string;
|
|
81
|
-
provider: string;
|
|
82
|
-
tokenUsage: TokenUsage;
|
|
83
|
-
turnCount: number;
|
|
84
|
-
invokedSkills: string[];
|
|
85
|
-
parentSessionId?: string;
|
|
86
|
-
status: SessionStatus;
|
|
87
|
-
/** Short summary derived from the first user message */
|
|
88
|
-
summary?: string;
|
|
89
|
-
/** Persisted cost tracking state (survives process restart). */
|
|
90
|
-
costState?: Record<string, unknown>;
|
|
91
|
-
}
|
|
92
|
-
export interface TokenUsage {
|
|
93
|
-
promptTokens: number;
|
|
94
|
-
completionTokens: number;
|
|
95
|
-
totalTokens: number;
|
|
96
|
-
cacheReadTokens?: number;
|
|
97
|
-
cacheCreationTokens?: number;
|
|
98
|
-
}
|
|
99
|
-
export interface CompiledInput {
|
|
100
|
-
messages: Message[];
|
|
101
|
-
rawText: string;
|
|
102
|
-
options: InputOptions;
|
|
103
|
-
}
|
|
104
|
-
export interface InputOptions {
|
|
105
|
-
slashCommand?: string;
|
|
106
|
-
attachments?: Attachment[];
|
|
107
|
-
mentionedFiles?: string[];
|
|
108
|
-
images?: ImageAttachment[];
|
|
109
|
-
allowedTools?: string[];
|
|
110
|
-
modelOverride?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface Attachment {
|
|
113
|
-
path: string;
|
|
114
|
-
content: string;
|
|
115
|
-
mimeType: string;
|
|
116
|
-
}
|
|
117
|
-
export interface ImageAttachment {
|
|
118
|
-
data: string;
|
|
119
|
-
mediaType: string;
|
|
120
|
-
}
|
|
121
|
-
export type PermissionDecision = "allow" | "deny" | "ask";
|
|
122
|
-
export type PermissionMode = "default" | "acceptEdits" | "dontAsk" | "bypassPermissions" | "auto" | "plan";
|
|
123
|
-
export interface PermissionRule {
|
|
124
|
-
tool: string;
|
|
125
|
-
argsPattern?: Record<string, string | RegExp>;
|
|
126
|
-
decision: PermissionDecision;
|
|
127
|
-
reason?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface ApprovalRequest {
|
|
130
|
-
toolName: string;
|
|
131
|
-
args: Record<string, unknown>;
|
|
132
|
-
description: string;
|
|
133
|
-
riskLevel: "low" | "medium" | "high";
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Scope of an "always allow" decision.
|
|
137
|
-
* "once" — this single call only (default when always not set)
|
|
138
|
-
* "session" — remembered for the rest of the REPL session (in-memory)
|
|
139
|
-
* "project" — persisted to <cwd>/.code-shell/settings.local.json so it
|
|
140
|
-
* survives restart for the current project. Not committed.
|
|
141
|
-
*/
|
|
142
|
-
export type ApprovalScope = "once" | "session" | "project";
|
|
143
|
-
export type ApprovalResult = {
|
|
144
|
-
approved: true;
|
|
145
|
-
permanent?: boolean;
|
|
146
|
-
always?: boolean;
|
|
147
|
-
scope?: ApprovalScope;
|
|
148
|
-
/** Used by AskUserQuestion to carry the user's free-text answer. */ answer?: string;
|
|
149
|
-
} | {
|
|
150
|
-
approved: false;
|
|
151
|
-
reason?: string;
|
|
152
|
-
always?: boolean;
|
|
153
|
-
scope?: ApprovalScope;
|
|
154
|
-
};
|
|
155
|
-
export type TurnPhase = "pre_check" | "model_call" | "post_check" | "tool_exec" | "context_mgmt" | "hook_notify" | "complete" | "error";
|
|
156
|
-
export interface TurnResult {
|
|
157
|
-
text: string;
|
|
158
|
-
toolCalls: ToolCall[];
|
|
159
|
-
status: "completed" | "tool_use" | "error" | "max_turns" | "aborted";
|
|
160
|
-
error?: string;
|
|
161
|
-
}
|
|
162
|
-
export type TerminalReason = "completed" | "stop_hook_prevented" | "hook_stopped" | "prompt_too_long" | "model_error" | "aborted_streaming" | "aborted_tools" | "max_turns" | "image_error";
|
|
163
|
-
export interface TaskInfo {
|
|
164
|
-
id: string;
|
|
165
|
-
subject: string;
|
|
166
|
-
activeForm?: string;
|
|
167
|
-
status: "pending" | "in_progress" | "completed" | "stopped";
|
|
168
|
-
}
|
|
169
|
-
export type StreamEvent = {
|
|
170
|
-
type: "session_started";
|
|
171
|
-
sessionId: string;
|
|
172
|
-
promptTokens: number;
|
|
173
|
-
} | {
|
|
174
|
-
type: "stream_request_start";
|
|
175
|
-
turnNumber: number;
|
|
176
|
-
agentId?: string;
|
|
177
|
-
} | {
|
|
178
|
-
type: "text_delta";
|
|
179
|
-
text: string;
|
|
180
|
-
tokens?: number;
|
|
181
|
-
agentId?: string;
|
|
182
|
-
} | {
|
|
183
|
-
type: "tool_use_start";
|
|
184
|
-
toolCall: ToolCall;
|
|
185
|
-
agentId?: string;
|
|
186
|
-
} | {
|
|
187
|
-
type: "tool_use_args_delta";
|
|
188
|
-
toolCallId: string;
|
|
189
|
-
args: Record<string, unknown>;
|
|
190
|
-
agentId?: string;
|
|
191
|
-
} | {
|
|
192
|
-
type: "tool_result";
|
|
193
|
-
result: ToolResult;
|
|
194
|
-
agentId?: string;
|
|
195
|
-
} | {
|
|
196
|
-
type: "assistant_message";
|
|
197
|
-
message: Message;
|
|
198
|
-
agentId?: string;
|
|
199
|
-
} | {
|
|
200
|
-
type: "turn_complete";
|
|
201
|
-
reason: TerminalReason;
|
|
202
|
-
agentId?: string;
|
|
203
|
-
} | {
|
|
204
|
-
type: "error";
|
|
205
|
-
error: string;
|
|
206
|
-
agentId?: string;
|
|
207
|
-
} | {
|
|
208
|
-
type: "tombstone";
|
|
209
|
-
messageId: string;
|
|
210
|
-
} | {
|
|
211
|
-
type: "task_update";
|
|
212
|
-
tasks: TaskInfo[];
|
|
213
|
-
} | {
|
|
214
|
-
type: "thinking_delta";
|
|
215
|
-
text: string;
|
|
216
|
-
agentId?: string;
|
|
217
|
-
} | {
|
|
218
|
-
type: "agent_start";
|
|
219
|
-
agentId: string;
|
|
220
|
-
name?: string;
|
|
221
|
-
description: string;
|
|
222
|
-
} | {
|
|
223
|
-
type: "agent_end";
|
|
224
|
-
agentId: string;
|
|
225
|
-
name?: string;
|
|
226
|
-
description: string;
|
|
227
|
-
text?: string;
|
|
228
|
-
error?: string;
|
|
229
|
-
} | {
|
|
230
|
-
type: "tool_summary";
|
|
231
|
-
summary: string;
|
|
232
|
-
} | {
|
|
233
|
-
type: "context_compact";
|
|
234
|
-
strategy: "micro" | "summary" | "window" | "snip" | "emergency";
|
|
235
|
-
before: number;
|
|
236
|
-
after: number;
|
|
237
|
-
agentId?: string;
|
|
238
|
-
} | {
|
|
239
|
-
type: "usage_update";
|
|
240
|
-
promptTokens: number;
|
|
241
|
-
agentId?: string;
|
|
242
|
-
};
|
|
243
|
-
export type StreamCallback = (event: StreamEvent) => void | Promise<void>;
|
|
244
|
-
export interface LLMConfig {
|
|
245
|
-
provider: string;
|
|
246
|
-
model: string;
|
|
247
|
-
apiKey?: string;
|
|
248
|
-
baseUrl?: string;
|
|
249
|
-
temperature?: number;
|
|
250
|
-
topP?: number;
|
|
251
|
-
maxTokens?: number;
|
|
252
|
-
timeout?: number;
|
|
253
|
-
retryMaxAttempts?: number;
|
|
254
|
-
enableStreaming?: boolean;
|
|
255
|
-
/**
|
|
256
|
-
* Default thinking-mode for DeepSeek V4. Per-call `options.thinking`
|
|
257
|
-
* (e.g. summarize sub-calls) overrides this. Ignored on other providers.
|
|
258
|
-
*/
|
|
259
|
-
thinking?: "enabled" | "disabled";
|
|
260
|
-
/**
|
|
261
|
-
* The provider's `kind` (deepseek/openai/zai/openrouter/...). Used by
|
|
262
|
-
* the capability layer to look up per-(kind, model) request-shape rules
|
|
263
|
-
* (token-limit field, rejected sampling params, thinking shape, etc.).
|
|
264
|
-
* Distinct from `provider` above, which is the protocol family
|
|
265
|
-
* ("openai" or "anthropic") that picks which client class to use.
|
|
266
|
-
*/
|
|
267
|
-
providerKind?: string;
|
|
268
|
-
}
|
|
269
|
-
export interface LLMResponse {
|
|
270
|
-
text: string;
|
|
271
|
-
toolCalls: ToolCall[];
|
|
272
|
-
usage?: TokenUsage;
|
|
273
|
-
stopReason?: string;
|
|
274
|
-
reasoningContent?: string;
|
|
275
|
-
}
|
|
276
|
-
export interface LLMStreamChunk {
|
|
277
|
-
type: "text" | "tool_use_start" | "tool_use_delta" | "tool_use_end" | "stop";
|
|
278
|
-
text?: string;
|
|
279
|
-
/** Token count for this text delta, when provider can compute it. */
|
|
280
|
-
tokens?: number;
|
|
281
|
-
toolCall?: Partial<ToolCall>;
|
|
282
|
-
stopReason?: string;
|
|
283
|
-
}
|
|
284
|
-
export type MCPTransport = "stdio" | "sse" | "streamable-http" | "inprocess";
|
|
285
|
-
export interface MCPServerConfig {
|
|
286
|
-
name: string;
|
|
287
|
-
command?: string;
|
|
288
|
-
args?: string[];
|
|
289
|
-
env?: Record<string, string>;
|
|
290
|
-
url?: string;
|
|
291
|
-
transport?: MCPTransport;
|
|
292
|
-
headers?: Record<string, string>;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Shell-hook configuration entry from settings.json. Each entry binds
|
|
296
|
-
* a hook event to a shell command. The command runs as a child process
|
|
297
|
-
* on every emit (filtered by `matcher` when present), receives ctx
|
|
298
|
-
* JSON on stdin, and returns a HookResult JSON on stdout. See
|
|
299
|
-
* src/hooks/shell-runner.ts for the protocol spec.
|
|
300
|
-
*/
|
|
301
|
-
export interface SettingsHookConfig {
|
|
302
|
-
event: string;
|
|
303
|
-
command: string;
|
|
304
|
-
/**
|
|
305
|
-
* Optional regex (matched with new RegExp(matcher).test(toolName)) to
|
|
306
|
-
* filter which tools fire this hook. Currently honored for
|
|
307
|
-
* pre_tool_use / post_tool_use / on_tool_start / on_tool_end /
|
|
308
|
-
* on_permission_check / file_changed. Ignored for events without a
|
|
309
|
-
* meaningful toolName (session/turn/prompt/notification/compact).
|
|
310
|
-
*/
|
|
311
|
-
matcher?: string;
|
|
312
|
-
/** Per-hook timeout in milliseconds. Defaults to 60_000. */
|
|
313
|
-
timeout_ms?: number;
|
|
314
|
-
/**
|
|
315
|
-
* Optional working directory for the spawned command. Defaults to
|
|
316
|
-
* Engine.cwd. Useful for hooks that need to run in a sibling repo.
|
|
317
|
-
*/
|
|
318
|
-
cwd?: string;
|
|
319
|
-
}
|
|
320
|
-
export interface Settings {
|
|
321
|
-
model: {
|
|
322
|
-
provider: string;
|
|
323
|
-
name: string;
|
|
324
|
-
apiKey?: string;
|
|
325
|
-
baseUrl?: string;
|
|
326
|
-
temperature?: number;
|
|
327
|
-
maxTokens?: number;
|
|
328
|
-
};
|
|
329
|
-
permissions: {
|
|
330
|
-
defaultMode: PermissionMode;
|
|
331
|
-
rules: PermissionRule[];
|
|
332
|
-
};
|
|
333
|
-
context: {
|
|
334
|
-
maxTokens: number;
|
|
335
|
-
compactAtRatio: number;
|
|
336
|
-
summarizeAtRatio: number;
|
|
337
|
-
};
|
|
338
|
-
session: {
|
|
339
|
-
storageDir: string;
|
|
340
|
-
maxHistory: number;
|
|
341
|
-
};
|
|
342
|
-
mcpServers: Record<string, MCPServerConfig>;
|
|
343
|
-
instructions: {
|
|
344
|
-
fileName: string;
|
|
345
|
-
scanDirs: string[];
|
|
346
|
-
};
|
|
347
|
-
output: {
|
|
348
|
-
format: "text" | "json" | "jsonl" | "stream-json";
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* Optional shell-hook entries. Engine reads on construction and
|
|
352
|
-
* registers a wrapper handler per entry that spawns the command and
|
|
353
|
-
* parses the HookResult. Empty / missing = no shell hooks.
|
|
354
|
-
*/
|
|
355
|
-
hooks?: SettingsHookConfig[];
|
|
356
|
-
}
|
package/dist/ui/App.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AgentClient } from "../protocol/client.js";
|
|
2
|
-
interface AppProps {
|
|
3
|
-
client: AgentClient;
|
|
4
|
-
model: string;
|
|
5
|
-
effort: string;
|
|
6
|
-
maxTurns: number;
|
|
7
|
-
cwd: string;
|
|
8
|
-
maxContextTokens: number;
|
|
9
|
-
sessionId?: string;
|
|
10
|
-
/** Pre-fill the input box without submitting (--prefill flag). */
|
|
11
|
-
prefill?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function App({ client, model: initialModel, effort, maxTurns, cwd, maxContextTokens, sessionId: initialSessionId, prefill, }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent block — renders sub-agent activity with CC-style tree-line nesting.
|
|
3
|
-
*
|
|
4
|
-
* Running:
|
|
5
|
-
* ├─ Agent description · Nk tokens
|
|
6
|
-
* │ ⎿ Running tool…
|
|
7
|
-
*
|
|
8
|
-
* Completed:
|
|
9
|
-
* └─ Agent description · Done
|
|
10
|
-
* ⎿ completed
|
|
11
|
-
*/
|
|
12
|
-
import React from "react";
|
|
13
|
-
interface AgentBlockStartProps {
|
|
14
|
-
name?: string;
|
|
15
|
-
description: string;
|
|
16
|
-
running?: boolean;
|
|
17
|
-
isLast?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function AgentBlockStart({ name, description, running, isLast }: AgentBlockStartProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
interface AgentBlockEndProps {
|
|
21
|
-
name?: string;
|
|
22
|
-
description: string;
|
|
23
|
-
text?: string;
|
|
24
|
-
error?: string;
|
|
25
|
-
isLast?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare function AgentBlockEnd({ name, description, text, error, isLast }: AgentBlockEndProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
/**
|
|
29
|
-
* Tree line prefix for nested content under an agent.
|
|
30
|
-
*/
|
|
31
|
-
export declare function NestedPrefix({ children, isLast, }: {
|
|
32
|
-
children: React.ReactNode;
|
|
33
|
-
isLast?: boolean;
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type AsyncAgentEntry } from "../../tool-system/builtin/agent-registry.js";
|
|
3
|
-
export declare const MAX_VISIBLE = 5;
|
|
4
|
-
export type DockViewMode = {
|
|
5
|
-
kind: "main";
|
|
6
|
-
} | {
|
|
7
|
-
kind: "agent";
|
|
8
|
-
agentId: string;
|
|
9
|
-
};
|
|
10
|
-
export interface AgentDockProps {
|
|
11
|
-
viewMode: DockViewMode;
|
|
12
|
-
/** null = dock is not the keyboard target; integer = focused row index. */
|
|
13
|
-
focusedIndex: number | null;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* AgentDock — vertical list of running and recently-finished sub-agents,
|
|
17
|
-
* pinned at the very bottom of the UI. Updates elapsed text once per
|
|
18
|
-
* second; redraws are local to this subtree (no app-wide re-render).
|
|
19
|
-
*
|
|
20
|
-
* See docs/superpowers/specs/2026-05-18-subagent-dock-revisions-design.md.
|
|
21
|
-
*/
|
|
22
|
-
export declare function AgentDock({ viewMode, focusedIndex, }: AgentDockProps): React.ReactElement | null;
|
|
23
|
-
/**
|
|
24
|
-
* Filter the registry snapshot down to rows the dock should show:
|
|
25
|
-
* running agents + recently-finished agents still inside the fade window.
|
|
26
|
-
* Successful completions are dropped immediately — their final text already
|
|
27
|
-
* surfaced via agent_end in the main feed, so the dock row is redundant.
|
|
28
|
-
* Failures and cancellations linger so the user can investigate.
|
|
29
|
-
*
|
|
30
|
-
* Exported so App.tsx's keyboard handler shares the same predicate.
|
|
31
|
-
*/
|
|
32
|
-
export declare function getVisibleAgents(all: AsyncAgentEntry[], now: number): AsyncAgentEntry[];
|
|
33
|
-
/**
|
|
34
|
-
* Format an elapsed-millisecond duration as "23s" / "4m 23s" / "1h 4m 23s".
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatElapsed(ms: number): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface Choice {
|
|
2
|
-
label: string;
|
|
3
|
-
description: string;
|
|
4
|
-
}
|
|
5
|
-
interface AskUserPromptProps {
|
|
6
|
-
question: string;
|
|
7
|
-
header?: string;
|
|
8
|
-
options?: Choice[];
|
|
9
|
-
multiSelect?: boolean;
|
|
10
|
-
onAnswer: (answer: string) => void;
|
|
11
|
-
onCancel: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function AskUserPrompt({ question, header, options, multiSelect, onAnswer, onCancel, }: AskUserPromptProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function BabyHand(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface CommandDef {
|
|
2
|
-
name: string;
|
|
3
|
-
description: string;
|
|
4
|
-
/** Optional usage string like "/fullscreen [on|off|toggle]" — the
|
|
5
|
-
* bracketed portion is rendered dim after the command name once the
|
|
6
|
-
* user has finished typing it. */
|
|
7
|
-
usage?: string;
|
|
8
|
-
}
|
|
9
|
-
interface CommandInputProps {
|
|
10
|
-
value: string;
|
|
11
|
-
onChange: (value: string) => void;
|
|
12
|
-
onSubmit: (value: string) => void;
|
|
13
|
-
commands: CommandDef[];
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
/** Fired when ↓ is pressed and input is empty and history is exhausted.
|
|
16
|
-
* Used by App.tsx to move keyboard focus into the AgentDock. */
|
|
17
|
-
onArrowOut?: (direction: "down") => void;
|
|
18
|
-
/** When true, skip ALL key handling. Used while another part of the UI
|
|
19
|
-
* (e.g. the AgentDock) owns the keyboard. The text input still renders;
|
|
20
|
-
* only the useInput body short-circuits. */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function CommandInput({ value, onChange, onSubmit, commands, placeholder, onArrowOut, disabled, }: CommandInputProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type DiffKind = "add" | "remove" | "hunk" | "context";
|
|
2
|
-
interface DiffLineProps {
|
|
3
|
-
kind: DiffKind;
|
|
4
|
-
/** Raw text WITHOUT the `+ ` / `- ` prefix — DiffLine renders the marker. */
|
|
5
|
-
text: string;
|
|
6
|
-
/**
|
|
7
|
-
* Left indent applied before the marker (and before the gutter, if any).
|
|
8
|
-
* Defaults to 0; ToolCallResult passes its own padding so diff blocks
|
|
9
|
-
* line up under the `✓ ToolName` header.
|
|
10
|
-
*/
|
|
11
|
-
indent?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Optional dim leading glyph rendered before the colored band (e.g. the
|
|
14
|
-
* `⎿ ` connector ToolCallResult uses to group output under its header).
|
|
15
|
-
* Padding to terminal width accounts for the glyph so the band still
|
|
16
|
-
* extends to the right edge.
|
|
17
|
-
*/
|
|
18
|
-
gutter?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function DiffLine({ kind, text, indent, gutter }: DiffLineProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
/**
|
|
22
|
-
* Classify a raw diff text line. Matches `+\s` / `-\s` (so `+x` identifiers
|
|
23
|
-
* and `+++ / ---` file headers don't trip it), `@@` hunk markers, and falls
|
|
24
|
-
* through to context.
|
|
25
|
-
*
|
|
26
|
-
* Returns the kind and the text with its marker stripped (since `<DiffLine>`
|
|
27
|
-
* re-renders the marker itself).
|
|
28
|
-
*/
|
|
29
|
-
export declare function classifyDiffLine(raw: string): {
|
|
30
|
-
kind: DiffKind;
|
|
31
|
-
text: string;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function DogLogo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FullscreenLayout — CC-style fullscreen terminal layout.
|
|
3
|
-
*
|
|
4
|
-
* Structure:
|
|
5
|
-
* ┌──────────────────────────┐
|
|
6
|
-
* │ scrollable (messages) │ ← grows, scrollable
|
|
7
|
-
* │ overlay (permissions) │ ← renders inside scroll area
|
|
8
|
-
* ├──────────────────────────┤
|
|
9
|
-
* │ bottom (prompt/spinner) │ ← pinned at bottom
|
|
10
|
-
* └──────────────────────────┘
|
|
11
|
-
* [pill: "N new messages"] ← absolute, shown when scrolled away
|
|
12
|
-
*
|
|
13
|
-
* Supports:
|
|
14
|
-
* - Scrollable message area with sticky-scroll
|
|
15
|
-
* - Overlay content (permission dialogs inside scroll)
|
|
16
|
-
* - "N new messages" pill when user scrolls up
|
|
17
|
-
* - Modal pane for slash-command dialogs
|
|
18
|
-
*/
|
|
19
|
-
import { type ReactNode } from "react";
|
|
20
|
-
interface FullscreenLayoutProps {
|
|
21
|
-
/** Main scrollable content (messages). */
|
|
22
|
-
scrollable: ReactNode;
|
|
23
|
-
/** Bottom-pinned content (prompt input, spinner). */
|
|
24
|
-
bottom: ReactNode;
|
|
25
|
-
/** Overlay content rendered after scrollable (permission dialogs). */
|
|
26
|
-
overlay?: ReactNode;
|
|
27
|
-
/** Count of unseen messages (for pill display). */
|
|
28
|
-
newMessageCount?: number;
|
|
29
|
-
/** Called when user clicks "jump to new" pill. */
|
|
30
|
-
onJumpToNew?: () => void;
|
|
31
|
-
/** Whether to show the unseen messages pill. */
|
|
32
|
-
showPill?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare function FullscreenLayout({ scrollable, bottom, overlay, newMessageCount, onJumpToNew, showPill, }: FullscreenLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* Hook for tracking unseen messages when user scrolls up.
|
|
37
|
-
*
|
|
38
|
-
* Returns:
|
|
39
|
-
* - dividerIndex: where the "new messages" boundary is
|
|
40
|
-
* - showPill: whether to display the unseen pill
|
|
41
|
-
* - onNewMessage: call when a new message arrives
|
|
42
|
-
* - onScrollToBottom: call when user scrolls to bottom or types
|
|
43
|
-
*/
|
|
44
|
-
export declare function useUnseenDivider(messageCount: number): {
|
|
45
|
-
dividerIndex: number | null;
|
|
46
|
-
showPill: boolean;
|
|
47
|
-
unseenCount: number;
|
|
48
|
-
onScrollAway: () => void;
|
|
49
|
-
onScrollToBottom: () => void;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function KunHead(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function KunLogo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface MessageContentProps {
|
|
2
|
-
text: string;
|
|
3
|
-
streaming?: boolean;
|
|
4
|
-
/** When rendered inside an agent block, suppress the leading message gap. */
|
|
5
|
-
nested?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function MessageContent({ text, streaming, nested }: MessageContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
interface UserMessageProps {
|
|
9
|
-
text: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function UserMessage({ text }: UserMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
interface ErrorMessageProps {
|
|
13
|
-
error: string;
|
|
14
|
-
nested?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare function ErrorMessage({ error, nested }: ErrorMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function RateLimitMessage({ text }: {
|
|
18
|
-
text: string;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function ContextLimitMessage(): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare function ThinkingMessage({ content, collapsed, nested, }: {
|
|
22
|
-
content?: string;
|
|
23
|
-
collapsed?: boolean;
|
|
24
|
-
nested?: boolean;
|
|
25
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|