@cjhyy/code-shell 0.2.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 +183 -0
- package/README.md +35 -2
- package/dist/cli.js +2 -0
- package/dist/index.d.ts +1 -67
- package/dist/index.js +1 -1
- package/package.json +25 -71
- package/dist/agent/coordinator.d.ts +0 -49
- package/dist/anthropic-OVRWAZRD.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-64T2EQD4.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-2EUIMKJA.js +0 -1
- package/dist/chunk-2GJ7H5NC.js +0 -641
- package/dist/chunk-2OD6VR4N.js +0 -2
- package/dist/chunk-3QP5BQ3L.js +0 -1
- package/dist/chunk-A4M2Y42L.js +0 -2
- package/dist/chunk-DEYFK6FP.js +0 -1
- package/dist/chunk-DTPABBSV.js +0 -2
- package/dist/chunk-EU3J7TBP.js +0 -1
- package/dist/chunk-FU7AHZNN.js +0 -1
- package/dist/chunk-L7B2ORID.js +0 -4
- package/dist/chunk-M7VU4YVY.js +0 -49
- package/dist/chunk-MGP35GKD.js +0 -254
- package/dist/chunk-MLCTC53I.js +0 -1
- package/dist/chunk-O5HFCH2U.js +0 -1
- package/dist/chunk-P6JSTIFM.js +0 -1
- package/dist/chunk-Q3RSX66I.js +0 -1
- package/dist/chunk-QTWU7UNA.js +0 -5
- package/dist/chunk-RERBX75D.js +0 -251
- package/dist/chunk-SNFAPSLA.js +0 -1
- package/dist/chunk-T222K6IV.js +0 -18
- package/dist/chunk-TKJA6W36.js +0 -3
- package/dist/chunk-VKKU4LOM.js +0 -3
- package/dist/chunk-WI6FSWGU.js +0 -1
- package/dist/chunk-XXCZE2U2.js +0 -2
- package/dist/chunk-ZSAONDT6.js +0 -2
- 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/utility-commands.d.ts +0 -5
- package/dist/cli/commands/registry.d.ts +0 -72
- 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 -399
- 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-F5FCRSB3.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-SGDUOOM4.js +0 -1
- package/dist/engine/cost-store.d.ts +0 -22
- package/dist/engine/engine.d.ts +0 -207
- 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 -97
- 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 -35
- package/dist/hooks/registry.d.ts +0 -15
- 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 -41
- package/dist/llm/token-counter.d.ts +0 -17
- package/dist/llm/types.d.ts +0 -37
- package/dist/logging/logger.d.ts +0 -88
- 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-J6FXEUEK.js +0 -1
- package/dist/mcp-manager-27EVBKRT.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-3QEADSYL.js +0 -1
- package/dist/openrouter-models-GZVCRWD2.js +0 -1
- package/dist/openrouter-sync-WG4AG5NC.js +0 -1
- package/dist/plugins/loader.d.ts +0 -72
- package/dist/plugins/types.d.ts +0 -4
- 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/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 -13
- 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 -70
- 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/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 -5
- package/dist/render/dom.d.ts +0 -76
- 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 -94
- 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 -20
- package/dist/render/ink.d.ts +0 -369
- 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 -17
- 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 -10
- 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 -1036
- package/dist/skills/index.d.ts +0 -7
- package/dist/skills/matcher.d.ts +0 -21
- package/dist/skills/scanner.d.ts +0 -30
- package/dist/tool-summary-V2B3MD5N.js +0 -2
- package/dist/tool-system/builtin/agent-registry.d.ts +0 -36
- 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.d.ts +0 -6
- 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 -110
- 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 -321
- package/dist/ui/App.d.ts +0 -14
- package/dist/ui/components/AgentBlock.d.ts +0 -32
- 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 -13
- 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/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 -18
- 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 -9
- 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 -24
- package/dist/ui/components/WelcomeTips.d.ts +0 -5
- package/dist/ui/hooks/useCostSummary.d.ts +0 -1
- 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/store.d.ts +0 -83
- 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/skills-builtin/codeshell-help.md +0 -135
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* In-memory catalog of provider credentials. Mirrors settings.providers[]
|
|
3
|
-
* but offers a small API for add/update/remove that validates uniqueness
|
|
4
|
-
* and (for remove) refuses to delete a provider still referenced by a
|
|
5
|
-
* model entry. The caller persists changes back to settings.
|
|
6
|
-
*/
|
|
7
|
-
import type { ProviderKindName } from "./provider-kinds.js";
|
|
8
|
-
export interface ProviderConfig {
|
|
9
|
-
key: string;
|
|
10
|
-
label?: string;
|
|
11
|
-
kind: ProviderKindName;
|
|
12
|
-
baseUrl: string;
|
|
13
|
-
apiKey?: string;
|
|
14
|
-
protocol?: "openai-compat" | "anthropic-style";
|
|
15
|
-
modelsPath?: string;
|
|
16
|
-
/** Default DeepSeek V4 thinking-mode for this provider. See LLMConfig. */
|
|
17
|
-
thinking?: "enabled" | "disabled";
|
|
18
|
-
}
|
|
19
|
-
export declare class ProviderCatalog {
|
|
20
|
-
private byKey;
|
|
21
|
-
constructor(entries?: ProviderConfig[]);
|
|
22
|
-
list(): ProviderConfig[];
|
|
23
|
-
get(key: string): ProviderConfig | undefined;
|
|
24
|
-
has(key: string): boolean;
|
|
25
|
-
add(entry: ProviderConfig): void;
|
|
26
|
-
update(key: string, patch: Partial<ProviderConfig>): void;
|
|
27
|
-
remove(key: string, opts: {
|
|
28
|
-
referencedBy: string[];
|
|
29
|
-
}): void;
|
|
30
|
-
/** Compute an unused key for a new provider, given a desired base. */
|
|
31
|
-
deriveKey(base: string): string;
|
|
32
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in provider kind metadata.
|
|
3
|
-
*
|
|
4
|
-
* Each kind defines how to talk to that provider family: where its
|
|
5
|
-
* model list lives, what auth header to send, which model IDs to keep
|
|
6
|
-
* (chat-completion only — embeddings / TTS / image generation are
|
|
7
|
-
* filtered out so they don't show up in the model picker).
|
|
8
|
-
*/
|
|
9
|
-
export type ProviderKindName = "openai" | "anthropic" | "deepseek" | "zai" | "xai" | "mistral" | "groq" | "google" | "openrouter" | "ollama" | "custom";
|
|
10
|
-
export type ProviderProtocol = "openai-compat" | "anthropic-style" | "gemini" | "ollama";
|
|
11
|
-
export interface ProviderKindMeta {
|
|
12
|
-
label: string;
|
|
13
|
-
defaultBaseUrl: string;
|
|
14
|
-
modelsPath: string;
|
|
15
|
-
protocol: ProviderProtocol;
|
|
16
|
-
authHeader: (apiKey: string) => Record<string, string>;
|
|
17
|
-
chatFilter: (id: string) => boolean;
|
|
18
|
-
authQuery?: (apiKey: string) => Record<string, string>;
|
|
19
|
-
}
|
|
20
|
-
export declare const PROVIDER_KINDS: Record<ProviderKindName, ProviderKindMeta>;
|
|
21
|
-
export declare function getKindMeta(kind: string): ProviderKindMeta;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Anthropic Claude provider using @anthropic-ai/sdk.
|
|
3
|
-
*/
|
|
4
|
-
import type { LLMConfig, LLMResponse } from "../../types.js";
|
|
5
|
-
import type { CreateMessageOptions } from "../types.js";
|
|
6
|
-
import { LLMClientBase } from "../client-base.js";
|
|
7
|
-
export declare class AnthropicClient extends LLMClientBase {
|
|
8
|
-
private _client;
|
|
9
|
-
constructor(config: LLMConfig);
|
|
10
|
-
protected initClient(): void;
|
|
11
|
-
private get client();
|
|
12
|
-
createMessage(options: CreateMessageOptions): Promise<LLMResponse>;
|
|
13
|
-
private nonStreamMessage;
|
|
14
|
-
private streamMessage;
|
|
15
|
-
private processResponse;
|
|
16
|
-
private buildMessages;
|
|
17
|
-
private convertTools;
|
|
18
|
-
private handleApiError;
|
|
19
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAI GPT provider using openai SDK.
|
|
3
|
-
*
|
|
4
|
-
* Serves every OpenAI-compatible endpoint we support (OpenAI, DeepSeek,
|
|
5
|
-
* OpenRouter, Z.AI, xAI, Mistral, Groq, Gemini-OpenAI-compat, Ollama,
|
|
6
|
-
* custom). Per-(provider, model) request-shape divergence — token-limit
|
|
7
|
-
* field name, rejected sampling params, thinking knob, reasoning echo —
|
|
8
|
-
* is resolved through `capabilitiesFor()`, not hardcoded.
|
|
9
|
-
*/
|
|
10
|
-
import type { LLMConfig, LLMResponse } from "../../types.js";
|
|
11
|
-
import type { CreateMessageOptions } from "../types.js";
|
|
12
|
-
import { LLMClientBase } from "../client-base.js";
|
|
13
|
-
export declare class OpenAIClient extends LLMClientBase {
|
|
14
|
-
private _client;
|
|
15
|
-
private _forceMaxCompletionTokens;
|
|
16
|
-
constructor(config: LLMConfig);
|
|
17
|
-
protected initClient(): void;
|
|
18
|
-
private get client();
|
|
19
|
-
/**
|
|
20
|
-
* Resolve the capability descriptor for the current (provider kind, model)
|
|
21
|
-
* pair. Cached for the lifetime of the client — model never changes
|
|
22
|
-
* mid-client. `providerKind` defaults to "openai" because legacy LLMConfig
|
|
23
|
-
* paths (arena, env-derived) don't always populate it; for those, the
|
|
24
|
-
* built-in rules table treats them as plain OpenAI.
|
|
25
|
-
*/
|
|
26
|
-
private _capability;
|
|
27
|
-
private get capability();
|
|
28
|
-
createMessage(options: CreateMessageOptions): Promise<LLMResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Build the request body honoring the model's capability descriptor.
|
|
31
|
-
* Centralized so both streaming and non-streaming paths agree on the
|
|
32
|
-
* exact shape.
|
|
33
|
-
*/
|
|
34
|
-
private buildRequestBody;
|
|
35
|
-
private nonStreamMessage;
|
|
36
|
-
private streamMessage;
|
|
37
|
-
private processChoice;
|
|
38
|
-
private buildMessages;
|
|
39
|
-
private convertTools;
|
|
40
|
-
private handleApiError;
|
|
41
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token counter — best-effort live token count for streaming output.
|
|
3
|
-
*
|
|
4
|
-
* Uses gpt-tokenizer's cl100k_base encoding. It's exact for GPT-4 family and
|
|
5
|
-
* close enough (within ~10%) for Claude/DeepSeek/Qwen for the purpose of a
|
|
6
|
-
* live counter in the UI. The authoritative number is still the provider's
|
|
7
|
-
* `usage` field, captured at end-of-stream.
|
|
8
|
-
*
|
|
9
|
-
* The encoder is lazy-initialized on first use so we don't pay the cost on
|
|
10
|
-
* startup for sessions that never stream.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Count tokens in `text`. Synchronous. If the encoder isn't loaded yet,
|
|
14
|
-
* falls back to chars/4 — only happens for the very first stream chunk in a
|
|
15
|
-
* cold process.
|
|
16
|
-
*/
|
|
17
|
-
export declare function countTokens(text: string): number;
|
package/dist/llm/types.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LLM-specific internal types.
|
|
3
|
-
*/
|
|
4
|
-
import type { Message, ToolDefinition, LLMStreamChunk, TokenUsage } from "../types.js";
|
|
5
|
-
export interface CreateMessageOptions {
|
|
6
|
-
systemPrompt: string;
|
|
7
|
-
messages: Message[];
|
|
8
|
-
tools?: ToolDefinition[];
|
|
9
|
-
temperature?: number;
|
|
10
|
-
maxTokens?: number;
|
|
11
|
-
stream?: boolean;
|
|
12
|
-
onChunk?: (chunk: LLMStreamChunk) => void;
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
/**
|
|
15
|
-
* If false, this call's usage is excluded from the client's usage tracker
|
|
16
|
-
* and from the process-wide onUsage hook. Used for auxiliary sub-calls
|
|
17
|
-
* (tool-summary, future helper prompts) that should not appear in
|
|
18
|
-
* session_end.cost or skew turn/requestCount semantics.
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
recordUsage?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* DeepSeek V4 thinking-mode switch. "enabled" is the endpoint default;
|
|
24
|
-
* "disabled" turns reasoning off (faster, cheaper, no `reasoning_content`
|
|
25
|
-
* on the reply). Ignored by every provider except DeepSeek V4 — the OpenAI
|
|
26
|
-
* SDK forwards unknown top-level fields verbatim, so it's harmless on
|
|
27
|
-
* other compatible endpoints.
|
|
28
|
-
*/
|
|
29
|
-
thinking?: "enabled" | "disabled";
|
|
30
|
-
}
|
|
31
|
-
export interface LLMUsageTracker {
|
|
32
|
-
records: TokenUsage[];
|
|
33
|
-
totalPromptTokens: number;
|
|
34
|
-
totalCompletionTokens: number;
|
|
35
|
-
totalTokens: number;
|
|
36
|
-
requestCount: number;
|
|
37
|
-
}
|
package/dist/logging/logger.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unified file logger for code-shell.
|
|
3
|
-
*
|
|
4
|
-
* Sinks (JSON Lines), routed by `cat`:
|
|
5
|
-
* ~/.code-shell/logs/ui-ink-YYYY-MM-DD.log
|
|
6
|
-
* — UI/ink chatter: stream events, ctx render, ink screen diffs.
|
|
7
|
-
* ~/.code-shell/logs/engine-YYYY-MM-DD.log
|
|
8
|
-
* — everything else: engine, llm, tool, context, mcp, sandbox, ...
|
|
9
|
-
*
|
|
10
|
-
* Routing is by entry `cat`: cat ∈ {ui, ink, render, stream} → ui-ink bucket;
|
|
11
|
-
* anything else → engine bucket. Run scripts/logs.sh to query both at once
|
|
12
|
-
* (merge sorted by timestamp, filter by sid, etc).
|
|
13
|
-
*
|
|
14
|
-
* Level defaults:
|
|
15
|
-
* - Local dev (CODE_SHELL_DEV=1, or running from src/, or --debug) → "debug"
|
|
16
|
-
* - Otherwise → "info"
|
|
17
|
-
* - CODE_SHELL_LOG_LEVEL overrides everything.
|
|
18
|
-
*
|
|
19
|
-
* Category filter (--debug=mcp,api or CODE_SHELL_DEBUG=mcp,api):
|
|
20
|
-
* When set, only debug logs whose `cat` matches are written.
|
|
21
|
-
*
|
|
22
|
-
* Disable entirely: CODE_SHELL_LOG=0
|
|
23
|
-
*/
|
|
24
|
-
export type LogLevel = "debug" | "info" | "warn" | "error";
|
|
25
|
-
export declare function setCurrentSid(sid: string): void;
|
|
26
|
-
export declare function getCurrentSid(): string;
|
|
27
|
-
export declare function getInMemoryErrors(): ReadonlyArray<{
|
|
28
|
-
msg: string;
|
|
29
|
-
t: string;
|
|
30
|
-
data?: unknown;
|
|
31
|
-
}>;
|
|
32
|
-
export type ErrorLogSink = {
|
|
33
|
-
logError: (error: Error) => void;
|
|
34
|
-
logMCPError: (serverName: string, error: unknown) => void;
|
|
35
|
-
logMCPDebug: (serverName: string, message: string) => void;
|
|
36
|
-
getErrorsPath: () => string;
|
|
37
|
-
getMCPLogsPath: (serverName: string) => string;
|
|
38
|
-
};
|
|
39
|
-
export declare function attachErrorLogSink(sink: ErrorLogSink): void;
|
|
40
|
-
export interface LogContext {
|
|
41
|
-
cat?: string;
|
|
42
|
-
sid?: string;
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
}
|
|
45
|
-
declare class Logger {
|
|
46
|
-
private readonly context;
|
|
47
|
-
private readonly enabled;
|
|
48
|
-
private readonly minLevel;
|
|
49
|
-
private readonly categoryFilter;
|
|
50
|
-
private readonly stderrEcho;
|
|
51
|
-
private dirReady;
|
|
52
|
-
constructor(context?: LogContext);
|
|
53
|
-
child(extra: LogContext): Logger;
|
|
54
|
-
/**
|
|
55
|
-
* Set the session id stamped on every subsequent log entry written by
|
|
56
|
-
* any logger in the process. Called by Engine once a run's
|
|
57
|
-
* authoritative session id is known.
|
|
58
|
-
*/
|
|
59
|
-
setSid(sid: string): void;
|
|
60
|
-
getSid(): string;
|
|
61
|
-
debug(msg: string, data?: Record<string, unknown>): void;
|
|
62
|
-
info(msg: string, data?: Record<string, unknown>): void;
|
|
63
|
-
warn(msg: string, data?: Record<string, unknown>): void;
|
|
64
|
-
error(msgOrErr: string | Error | unknown, data?: Record<string, unknown> | Error): void;
|
|
65
|
-
private recordError;
|
|
66
|
-
private write;
|
|
67
|
-
getMinLevel(): LogLevel;
|
|
68
|
-
isCategoryActive(cat: string): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Open a span: writes a `<name>.begin` debug entry now and returns a handle
|
|
71
|
-
* whose `end()` writes `<name>.end` with `duration_ms` populated. Use for
|
|
72
|
-
* any "I want begin → end + how long" pattern (tool exec, LLM request,
|
|
73
|
-
* permission ask, etc.) so the begin/end pair is grouped under one cat
|
|
74
|
-
* and the duration is computed once instead of by hand from timestamps.
|
|
75
|
-
*/
|
|
76
|
-
span(name: string, data?: Record<string, unknown>): LogSpan;
|
|
77
|
-
}
|
|
78
|
-
export interface LogSpan {
|
|
79
|
-
end(extra?: Record<string, unknown>): void;
|
|
80
|
-
fail(err: unknown, extra?: Record<string, unknown>): void;
|
|
81
|
-
}
|
|
82
|
-
export declare const logger: Logger;
|
|
83
|
-
export declare function getLogsDir(): string;
|
|
84
|
-
export declare function getRecentLogs(n?: number): string[];
|
|
85
|
-
export declare function rotateLogs(): void;
|
|
86
|
-
/** @internal — for tests */
|
|
87
|
-
export declare function _resetLoggerStateForTesting(): void;
|
|
88
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-session verbose recorder for local-dev runs.
|
|
3
|
-
*
|
|
4
|
-
* Layout (per day, split by bucket):
|
|
5
|
-
* <repo>/log/<YYYY-MM-DD>/engine/session-<sid>.jsonl
|
|
6
|
-
* — unified timeline: LLM, tools, session events, AND UI events
|
|
7
|
-
* (UI events are dual-written so this file is the full story.)
|
|
8
|
-
* <repo>/log/<YYYY-MM-DD>/ui/session-<sid>.jsonl
|
|
9
|
-
* — UI-only events (stream events received, ctx renders, chatStore
|
|
10
|
-
* mutations). Open when chasing a display bug.
|
|
11
|
-
*
|
|
12
|
-
* Same sid → same filename in both folders. Diff/merge by sid to align
|
|
13
|
-
* "what the model said" with "what the UI did about it."
|
|
14
|
-
*
|
|
15
|
-
* Why a separate sink from logger.ts?
|
|
16
|
-
* - logger.ts is the terse process-wide log (~/.code-shell/logs/) and stays
|
|
17
|
-
* small for production observability.
|
|
18
|
-
* - This sink keeps full prompt/response bodies for post-mortem debugging
|
|
19
|
-
* and is gated to local-dev only (bun run dev / CODE_SHELL_DEV=1).
|
|
20
|
-
*
|
|
21
|
-
* Why JSONL not markdown?
|
|
22
|
-
* - `jq` can slice on any field in one command: tool histograms, slowest
|
|
23
|
-
* LLM calls, largest prompts, anything. Markdown would need ad-hoc parsing.
|
|
24
|
-
* - Field bodies are inlined; JSON.stringify handles arbitrarily long
|
|
25
|
-
* strings and jq streams, so no sidecar files are needed.
|
|
26
|
-
*
|
|
27
|
-
* Daily rotation: on first write each process, prune date folders older than
|
|
28
|
-
* RETENTION_DAYS.
|
|
29
|
-
*/
|
|
30
|
-
export declare function isVerboseRecorderEnabled(): boolean;
|
|
31
|
-
export declare function getVerboseLogDir(): string;
|
|
32
|
-
export declare function recordSessionStart(sid: string, info: {
|
|
33
|
-
task?: string;
|
|
34
|
-
cwd?: string;
|
|
35
|
-
model?: string;
|
|
36
|
-
provider?: string;
|
|
37
|
-
permissionMode?: string;
|
|
38
|
-
resumed?: boolean;
|
|
39
|
-
}): void;
|
|
40
|
-
export type RecordLLMRequest = {
|
|
41
|
-
provider: string;
|
|
42
|
-
model: string;
|
|
43
|
-
stream: boolean;
|
|
44
|
-
temperature?: number;
|
|
45
|
-
maxTokens?: number;
|
|
46
|
-
messages: unknown;
|
|
47
|
-
tools?: unknown;
|
|
48
|
-
systemPrompt?: string;
|
|
49
|
-
};
|
|
50
|
-
export declare function recordLLMRequest(sid: string, req: RecordLLMRequest, reqId: string): void;
|
|
51
|
-
export type RecordLLMResponse = {
|
|
52
|
-
text?: string;
|
|
53
|
-
toolCalls?: Array<{
|
|
54
|
-
id: string;
|
|
55
|
-
toolName: string;
|
|
56
|
-
args: unknown;
|
|
57
|
-
}>;
|
|
58
|
-
stopReason?: string;
|
|
59
|
-
usage?: import("../types.js").TokenUsage;
|
|
60
|
-
durationMs?: number;
|
|
61
|
-
ttftMs?: number;
|
|
62
|
-
};
|
|
63
|
-
export declare function recordLLMResponse(sid: string, resp: RecordLLMResponse, reqId: string): void;
|
|
64
|
-
export declare function recordLLMError(sid: string, reqId: string, err: unknown, durationMs: number): void;
|
|
65
|
-
export declare function recordToolCall(sid: string, call: {
|
|
66
|
-
id: string;
|
|
67
|
-
toolName: string;
|
|
68
|
-
args: unknown;
|
|
69
|
-
}): void;
|
|
70
|
-
export declare function recordToolResult(sid: string, result: {
|
|
71
|
-
id: string;
|
|
72
|
-
toolName: string;
|
|
73
|
-
ok: boolean;
|
|
74
|
-
durationMs: number;
|
|
75
|
-
output?: string;
|
|
76
|
-
error?: string;
|
|
77
|
-
}): void;
|
|
78
|
-
export declare function recordEvent(sid: string, name: string, data?: Record<string, unknown>): void;
|
|
79
|
-
/**
|
|
80
|
-
* Record a UI-side event. Goes into both engine.jsonl (unified timeline) and
|
|
81
|
-
* ui.jsonl (focused view). Use from the UI when chasing display bugs — pass
|
|
82
|
-
* the current sessionId.
|
|
83
|
-
*/
|
|
84
|
-
export declare function recordUIEvent(sid: string | undefined, name: string, data?: Record<string, unknown>): void;
|
|
85
|
-
export declare function recordSessionEnd(sid: string, info: {
|
|
86
|
-
reason?: string;
|
|
87
|
-
turns?: number;
|
|
88
|
-
cost?: unknown;
|
|
89
|
-
durationMs?: number;
|
|
90
|
-
}): void;
|
package/dist/lsp/client.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LSP client — JSON-RPC over stdio communication with language servers.
|
|
3
|
-
*/
|
|
4
|
-
import { EventEmitter } from "node:events";
|
|
5
|
-
export interface LSPRequest {
|
|
6
|
-
method: string;
|
|
7
|
-
params?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export interface LSPResponse {
|
|
10
|
-
id: number;
|
|
11
|
-
result?: unknown;
|
|
12
|
-
error?: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface LSPNotification {
|
|
18
|
-
method: string;
|
|
19
|
-
params?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
export declare class LSPClient extends EventEmitter {
|
|
22
|
-
private readonly command;
|
|
23
|
-
private readonly args;
|
|
24
|
-
private readonly cwd?;
|
|
25
|
-
private process;
|
|
26
|
-
private nextId;
|
|
27
|
-
private pending;
|
|
28
|
-
private buffer;
|
|
29
|
-
private contentLength;
|
|
30
|
-
private initialized;
|
|
31
|
-
constructor(command: string, args?: string[], cwd?: string | undefined);
|
|
32
|
-
start(): Promise<void>;
|
|
33
|
-
initialize(rootUri: string): Promise<unknown>;
|
|
34
|
-
request(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
35
|
-
notify(method: string, params?: Record<string, unknown>): Promise<void>;
|
|
36
|
-
shutdown(): Promise<void>;
|
|
37
|
-
get isInitialized(): boolean;
|
|
38
|
-
get isAlive(): boolean;
|
|
39
|
-
private handleData;
|
|
40
|
-
private rejectAll;
|
|
41
|
-
}
|
package/dist/lsp/manager.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LSP Server Manager — manages lifecycle of language server instances.
|
|
3
|
-
* Lazy initialization: servers start only when needed.
|
|
4
|
-
*/
|
|
5
|
-
import { LSPClient } from "./client.js";
|
|
6
|
-
type ServerState = "stopped" | "starting" | "ready" | "error";
|
|
7
|
-
export declare class LSPServerManager {
|
|
8
|
-
private servers;
|
|
9
|
-
private rootUri;
|
|
10
|
-
constructor(cwd: string);
|
|
11
|
-
/**
|
|
12
|
-
* Get or start a language server by name.
|
|
13
|
-
*/
|
|
14
|
-
getClient(serverName: string): Promise<LSPClient | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* Start a specific language server.
|
|
17
|
-
*/
|
|
18
|
-
private startServer;
|
|
19
|
-
/**
|
|
20
|
-
* Check if any LSP server is connected.
|
|
21
|
-
*/
|
|
22
|
-
isConnected(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* List server statuses.
|
|
25
|
-
*/
|
|
26
|
-
listServers(): Array<{
|
|
27
|
-
name: string;
|
|
28
|
-
language: string;
|
|
29
|
-
state: ServerState;
|
|
30
|
-
error?: string;
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Shutdown all servers.
|
|
34
|
-
*/
|
|
35
|
-
shutdownAll(): Promise<void>;
|
|
36
|
-
private isCommandAvailable;
|
|
37
|
-
}
|
|
38
|
-
export declare function initializeLSPManager(cwd: string): LSPServerManager;
|
|
39
|
-
export declare function getLSPManager(): LSPServerManager | undefined;
|
|
40
|
-
export {};
|
package/dist/lsp/servers.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in language server configurations.
|
|
3
|
-
*/
|
|
4
|
-
export interface LSPServerConfig {
|
|
5
|
-
name: string;
|
|
6
|
-
language: string;
|
|
7
|
-
extensions: string[];
|
|
8
|
-
command: string;
|
|
9
|
-
args: string[];
|
|
10
|
-
installHint: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const BUILTIN_LSP_SERVERS: LSPServerConfig[];
|
|
13
|
-
/**
|
|
14
|
-
* Detect which LSP server to use based on file extension.
|
|
15
|
-
*/
|
|
16
|
-
export declare function detectLSPServer(filePath: string): LSPServerConfig | undefined;
|
package/dist/manager-J6FXEUEK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{c as SettingsManager}from'./chunk-DTPABBSV.js';import'./chunk-3QP5BQ3L.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as MCPManager}from'./chunk-L7B2ORID.js';import'./chunk-ZSAONDT6.js';import'./chunk-3QP5BQ3L.js';
|
package/dist/memory-BNI4WEWL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as MemoryManager,a as resolveMemoryBaseDir}from'./chunk-T222K6IV.js';import'./chunk-3QP5BQ3L.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{d as defaultCacheDir,c as isStale,a as readCache,b as writeCache}from'./chunk-P6JSTIFM.js';import'./chunk-3QP5BQ3L.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as fetchModelList}from'./chunk-2OD6VR4N.js';import'./chunk-P6JSTIFM.js';import'./chunk-3QP5BQ3L.js';
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
|
|
3
|
-
* Kept as `const` objects (not TS enums) per repo convention.
|
|
4
|
-
* Values match upstream exactly so callers don't change.
|
|
5
|
-
*/
|
|
6
|
-
export declare const Align: {
|
|
7
|
-
readonly Auto: 0;
|
|
8
|
-
readonly FlexStart: 1;
|
|
9
|
-
readonly Center: 2;
|
|
10
|
-
readonly FlexEnd: 3;
|
|
11
|
-
readonly Stretch: 4;
|
|
12
|
-
readonly Baseline: 5;
|
|
13
|
-
readonly SpaceBetween: 6;
|
|
14
|
-
readonly SpaceAround: 7;
|
|
15
|
-
readonly SpaceEvenly: 8;
|
|
16
|
-
};
|
|
17
|
-
export type Align = (typeof Align)[keyof typeof Align];
|
|
18
|
-
export declare const BoxSizing: {
|
|
19
|
-
readonly BorderBox: 0;
|
|
20
|
-
readonly ContentBox: 1;
|
|
21
|
-
};
|
|
22
|
-
export type BoxSizing = (typeof BoxSizing)[keyof typeof BoxSizing];
|
|
23
|
-
export declare const Dimension: {
|
|
24
|
-
readonly Width: 0;
|
|
25
|
-
readonly Height: 1;
|
|
26
|
-
};
|
|
27
|
-
export type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
28
|
-
export declare const Direction: {
|
|
29
|
-
readonly Inherit: 0;
|
|
30
|
-
readonly LTR: 1;
|
|
31
|
-
readonly RTL: 2;
|
|
32
|
-
};
|
|
33
|
-
export type Direction = (typeof Direction)[keyof typeof Direction];
|
|
34
|
-
export declare const Display: {
|
|
35
|
-
readonly Flex: 0;
|
|
36
|
-
readonly None: 1;
|
|
37
|
-
readonly Contents: 2;
|
|
38
|
-
};
|
|
39
|
-
export type Display = (typeof Display)[keyof typeof Display];
|
|
40
|
-
export declare const Edge: {
|
|
41
|
-
readonly Left: 0;
|
|
42
|
-
readonly Top: 1;
|
|
43
|
-
readonly Right: 2;
|
|
44
|
-
readonly Bottom: 3;
|
|
45
|
-
readonly Start: 4;
|
|
46
|
-
readonly End: 5;
|
|
47
|
-
readonly Horizontal: 6;
|
|
48
|
-
readonly Vertical: 7;
|
|
49
|
-
readonly All: 8;
|
|
50
|
-
};
|
|
51
|
-
export type Edge = (typeof Edge)[keyof typeof Edge];
|
|
52
|
-
export declare const Errata: {
|
|
53
|
-
readonly None: 0;
|
|
54
|
-
readonly StretchFlexBasis: 1;
|
|
55
|
-
readonly AbsolutePositionWithoutInsetsExcludesPadding: 2;
|
|
56
|
-
readonly AbsolutePercentAgainstInnerSize: 4;
|
|
57
|
-
readonly All: 2147483647;
|
|
58
|
-
readonly Classic: 2147483646;
|
|
59
|
-
};
|
|
60
|
-
export type Errata = (typeof Errata)[keyof typeof Errata];
|
|
61
|
-
export declare const ExperimentalFeature: {
|
|
62
|
-
readonly WebFlexBasis: 0;
|
|
63
|
-
};
|
|
64
|
-
export type ExperimentalFeature = (typeof ExperimentalFeature)[keyof typeof ExperimentalFeature];
|
|
65
|
-
export declare const FlexDirection: {
|
|
66
|
-
readonly Column: 0;
|
|
67
|
-
readonly ColumnReverse: 1;
|
|
68
|
-
readonly Row: 2;
|
|
69
|
-
readonly RowReverse: 3;
|
|
70
|
-
};
|
|
71
|
-
export type FlexDirection = (typeof FlexDirection)[keyof typeof FlexDirection];
|
|
72
|
-
export declare const Gutter: {
|
|
73
|
-
readonly Column: 0;
|
|
74
|
-
readonly Row: 1;
|
|
75
|
-
readonly All: 2;
|
|
76
|
-
};
|
|
77
|
-
export type Gutter = (typeof Gutter)[keyof typeof Gutter];
|
|
78
|
-
export declare const Justify: {
|
|
79
|
-
readonly FlexStart: 0;
|
|
80
|
-
readonly Center: 1;
|
|
81
|
-
readonly FlexEnd: 2;
|
|
82
|
-
readonly SpaceBetween: 3;
|
|
83
|
-
readonly SpaceAround: 4;
|
|
84
|
-
readonly SpaceEvenly: 5;
|
|
85
|
-
};
|
|
86
|
-
export type Justify = (typeof Justify)[keyof typeof Justify];
|
|
87
|
-
export declare const MeasureMode: {
|
|
88
|
-
readonly Undefined: 0;
|
|
89
|
-
readonly Exactly: 1;
|
|
90
|
-
readonly AtMost: 2;
|
|
91
|
-
};
|
|
92
|
-
export type MeasureMode = (typeof MeasureMode)[keyof typeof MeasureMode];
|
|
93
|
-
export declare const Overflow: {
|
|
94
|
-
readonly Visible: 0;
|
|
95
|
-
readonly Hidden: 1;
|
|
96
|
-
readonly Scroll: 2;
|
|
97
|
-
};
|
|
98
|
-
export type Overflow = (typeof Overflow)[keyof typeof Overflow];
|
|
99
|
-
export declare const PositionType: {
|
|
100
|
-
readonly Static: 0;
|
|
101
|
-
readonly Relative: 1;
|
|
102
|
-
readonly Absolute: 2;
|
|
103
|
-
};
|
|
104
|
-
export type PositionType = (typeof PositionType)[keyof typeof PositionType];
|
|
105
|
-
export declare const Unit: {
|
|
106
|
-
readonly Undefined: 0;
|
|
107
|
-
readonly Point: 1;
|
|
108
|
-
readonly Percent: 2;
|
|
109
|
-
readonly Auto: 3;
|
|
110
|
-
};
|
|
111
|
-
export type Unit = (typeof Unit)[keyof typeof Unit];
|
|
112
|
-
export declare const Wrap: {
|
|
113
|
-
readonly NoWrap: 0;
|
|
114
|
-
readonly Wrap: 1;
|
|
115
|
-
readonly WrapReverse: 2;
|
|
116
|
-
};
|
|
117
|
-
export type Wrap = (typeof Wrap)[keyof typeof Wrap];
|