@kodax-ai/kodax 0.7.71 → 0.7.72
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 +602 -487
- package/README.md +46 -27
- package/README_CN.md +30 -13
- package/dist/chunks/agent-YKGU4USA.js +2 -0
- package/dist/chunks/argument-completer-QZETLNAB.js +2 -0
- package/dist/chunks/{chunk-SX2WFHIS.js → chunk-2RI252RN.js} +1 -1
- package/dist/chunks/chunk-CLFP6UGU.js +71 -0
- package/dist/chunks/chunk-E27LHEIP.js +37 -0
- package/dist/chunks/chunk-EDZ5KJFT.js +5 -0
- package/dist/chunks/chunk-GIK4SGAT.js +364 -0
- package/dist/chunks/chunk-GVWPHE23.js +310 -0
- package/dist/chunks/{chunk-A2TFSV5M.js → chunk-IR5KIK7E.js} +1 -1
- package/dist/chunks/chunk-JSDLBXME.js +755 -0
- package/dist/chunks/chunk-MVARIMQV.js +22 -0
- package/dist/chunks/chunk-PKQOEDHJ.js +628 -0
- package/dist/chunks/{chunk-64NQBOSN.js → chunk-SQODXBLX.js} +1 -1
- package/dist/chunks/chunk-VDGCGOQH.js +328 -0
- package/dist/chunks/chunk-VVE3UM4F.js +410 -0
- package/dist/chunks/chunk-WIBLZK4G.js +151 -0
- package/dist/chunks/{compaction-config-5KKKXYFT.js → compaction-config-TWCDFLX6.js} +1 -1
- package/dist/chunks/{construction-bootstrap-OXDDDW6O.js → construction-bootstrap-ZJPXUPXQ.js} +1 -1
- package/dist/chunks/dist-JT4ATXVM.js +2 -0
- package/dist/chunks/host-SVEDZUC5.js +2 -0
- package/dist/chunks/{run-manager-Z3W6MDO7.js → run-manager-RX42UNEM.js} +1 -1
- package/dist/chunks/{utils-CFOXDCB5.js → utils-OTT5CG5J.js} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +28 -0
- package/dist/kodax_cli.js +1325 -1333
- package/dist/kodax_resume.js +44 -0
- package/dist/provider-capabilities.json +50 -48
- package/dist/runtime-worker.js +1322 -1330
- package/dist/sdk-a2a.d.ts +10 -9
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +382 -206
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +80 -128
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +3 -0
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +71 -23
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +143 -31
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +5 -5
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +14 -14
- package/dist/types-chunks/{bash-prefix-extractor.d-YoiZl5yt.d.ts → bash-prefix-extractor.d-CHJO5y94.d.ts} +107 -248
- package/dist/types-chunks/{capsule.d-CK5Pfz1k.d.ts → capsule.d-DxtdE-GD.d.ts} +24 -95
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +91 -0
- package/dist/types-chunks/{commands.d-D6g2jq8V.d.ts → commands.d-DZxHzH5-.d.ts} +6 -4
- package/dist/types-chunks/{guardrail.d-DilYC1dh.d.ts → guardrail.d-DlpMnd-Y.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-DdeDWnVu.d.ts → guardrail.d-auV61_h5.d.ts} +83 -10
- package/dist/types-chunks/public-api.d--IDNJsu1.d.ts +1342 -0
- package/dist/types-chunks/{run-manager.d-DxU3SSGR.d.ts → run-manager.d-Bh50OdVl.d.ts} +1 -1
- package/dist/types-chunks/sdk-session-Cfw6NFu-.d.ts +82 -0
- package/dist/types-chunks/{types.d-CEZZSY9s.d.ts → types.d-CNZgY52F.d.ts} +2 -2
- package/dist/types-chunks/{types.d-vJExiRje.d.ts → types.d-DCQVBqVn.d.ts} +10 -5
- package/dist/types-chunks/{types.d-CRCaLt_s.d.ts → types.d-DH1mvdcl.d.ts} +284 -164
- package/dist/types-chunks/{types.d-CzsLFqmf.d.ts → types.d-EqQmHztg.d.ts} +9 -10
- package/dist/types-chunks/{utils.d-Cb6vdvFM.d.ts → utils.d-gmn3c5U4.d.ts} +9 -12
- package/docs/SDK_EMBEDDER_GUIDE.md +171 -26
- package/package.json +4 -4
- package/scripts/kodax-bin.cjs +4 -2
- package/scripts/production-env.cjs +9 -0
- package/dist/chunks/agent-X2EWQADL.js +0 -2
- package/dist/chunks/argument-completer-BLNXDO2F.js +0 -2
- package/dist/chunks/chunk-4DY756KL.js +0 -70
- package/dist/chunks/chunk-52JSZ77P.js +0 -37
- package/dist/chunks/chunk-A574DBTV.js +0 -422
- package/dist/chunks/chunk-F7KGYHJ3.js +0 -624
- package/dist/chunks/chunk-GVTM4Z6O.js +0 -151
- package/dist/chunks/chunk-PHH4TRGF.js +0 -22
- package/dist/chunks/chunk-PVUXONQB.js +0 -366
- package/dist/chunks/chunk-T7LYK53M.js +0 -329
- package/dist/chunks/chunk-VRSVNU2Y.js +0 -7
- package/dist/chunks/chunk-Y5XKAN7C.js +0 -755
- package/dist/chunks/chunk-Z535BARK.js +0 -306
- package/dist/chunks/dist-IXJRJ27U.js +0 -2
- package/dist/chunks/host-VRKDAN26.js +0 -2
- package/dist/types-chunks/public-api.d-BvCp5VkW.d.ts +0 -601
- package/dist/types-chunks/sdk-session-wGpa7X_U.d.ts +0 -796
package/dist/sdk-mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{bc as e,cc as t,dc as r,ec as a,fc as i,gc as p,hc as c,ic as o,jc as M,kc as n,lc as s,mc as l,nc as d,oc as u,pc as C,qc as v,rc as g,sc as S,tc as h,uc as R,vc as A,wc as b,xc as f}from"./chunks/chunk-JSDLBXME.js";import"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,R as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,h as McpServerRuntime,S as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,d as discoverAuthorizationServerMetadata,u as discoverOAuthEndpoints,l as discoverProtectedResourceMetadata,s as extractInsufficientScope,n as extractResourceMetadataUrl,p as getMcpCachePaths,g as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,v as performOAuthLogin,C as registerOAuthClient,i as searchMcpCatalog};
|
package/dist/sdk-media.d.ts
CHANGED
|
@@ -150,7 +150,10 @@ interface EnqueueWithArtifactsInput extends ValidateInputArtifactsOptions {
|
|
|
150
150
|
readonly content: string;
|
|
151
151
|
readonly inputArtifacts?: readonly KodaXInputArtifact[];
|
|
152
152
|
readonly priority?: MessagePriority;
|
|
153
|
+
/** Explicit low-level queue route. Mutually exclusive with sessionId. */
|
|
153
154
|
readonly agentId?: string;
|
|
155
|
+
/** Route to this Actor session's root queue. */
|
|
156
|
+
readonly sessionId?: string;
|
|
154
157
|
}
|
|
155
158
|
declare function enqueueWithArtifacts(input: EnqueueWithArtifactsInput): string;
|
|
156
159
|
|
package/dist/sdk-media.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{F as u,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s}from"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{r as ImageResizeError,n as KODAX_FILE_MEDIA_TYPES,k as KODAX_IMAGE_MEDIA_TYPES,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,x as MAX_DIMENSION,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,a as TARGET_RAW_SIZE_BYTES,p as createFileArtifactFromPath,m as createImageArtifactFromPath,t as createVideoArtifactFromPath,u as enqueueWithArtifacts,q as getModelInputCapabilities,e as inferImageMediaType,f as inferVideoMediaType,b as normalizePastedImage,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,s as validateInputArtifactsForModel};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps,
|
|
3
|
-
export { a as AppState, C as Completer,
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RepLOptions, d as ReplRuntimeRunner, e as ReplRuntimeRunnerInput, f as ReplRuntimeStatusProvider, g as executeCommand, h as getCommandRegistry, p as parseCommand, i as processSpecialSyntax, r as runInkInteractiveMode, j as runInteractiveMode } from './types-chunks/commands.d-
|
|
5
|
-
import { a as BashPrefixExtractor,
|
|
6
|
-
import { c as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RuntimeSurfaceMode, n as RuntimeSurfaceStatus, o as createInteractiveContext, p as ensureExampleConfigFile, q as ensureExampleConfigFiles, r as getGitRoot, s as getProviderList, t as getProviderModel, u as getVersion, v as hydrateProcessEnvFromShell, w as isProviderConfigured, x as loadConfig, y as prepareRuntimeConfig, z as rateLimitedCall, A as registerConfiguredCustomProviders, B as resolveRuntimeEffortSelection, D as resolveRuntimeModelSelection, E as resolveRuntimeProviderSelection, F as saveConfig, G as touchContext } from './types-chunks/utils.d-Cb6vdvFM.js';
|
|
2
|
+
import { A as AppProps, N as Message, ab as UIState, g as CreatableHistoryItem, l as HistoryItem, a8 as ToolCall, aa as UIActions, K as KeyInfo, z as KeypressHandler, a0 as StreamingState, S as PromptEditingMode, I as InputPromptProps, $ as StatusBarProps, a5 as Theme, a9 as ToolCallStatus, a1 as Suggestion, ac as UseTextBufferReturn, H as HistoryEntry, O as PastedContent, r as HistoryItemInfo, R as PermissionMode } from './types-chunks/public-api.d--IDNJsu1.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, h as CursorPosition, D as DEFAULT_UI_STATE, i as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, j as FileSessionStorage, k as FullTranscriptSessionData, m as HistoryItemAssistant, n as HistoryItemBase, o as HistoryItemError, p as HistoryItemEvent, q as HistoryItemHint, s as HistoryItemSidecar, t as HistoryItemSystem, u as HistoryItemThinking, v as HistoryItemToolGroup, w as HistoryItemType, x as HistoryItemUser, y as KeypressEvent, B as KeypressHandlerPriority, L as LearningBinding, E as LearningSurfaceSnapshot, G as LegacyMessageListProps, J as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, Q as PermissionContext, T as PromptSubmitPayload, U as RunningSessionInfo, V as SessionData, W as SessionManager, X as SessionStorage, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, a2 as TOOL_STATUS_ICONS, a3 as TextBuffer, a4 as TextBufferOptions, a6 as ThemeColors, a7 as ThemeSymbols, ad as VisualCursor, ae as VisualLayout, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, aj as computeConfirmTools, ak as createMemorySessionStorage, al as createSessionManager, am as deleteSession, an as forkSession, ao as isPermissionMode, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, at as normalizePermissionMode, au as permissionModeDisplayName, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d--IDNJsu1.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RepLOptions, d as ReplRuntimeRunner, e as ReplRuntimeRunnerInput, f as ReplRuntimeStatusProvider, g as executeCommand, h as getCommandRegistry, p as parseCommand, i as processSpecialSyntax, r as runInkInteractiveMode, j as runInteractiveMode } from './types-chunks/commands.d-DZxHzH5-.js';
|
|
5
|
+
import { a as BashPrefixExtractor, O as KodaXEvents, t as KodaXAgentMode, aV as ProviderRecoveryEvent, a9 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-CHJO5y94.js';
|
|
6
|
+
import { c as QueuedMessage } from './types-chunks/types.d-CNZgY52F.js';
|
|
7
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-Cfw6NFu-.js';
|
|
8
|
+
import { c as CommandInfo } from './types-chunks/utils.d-gmn3c5U4.js';
|
|
9
|
+
export { a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RuntimeSurfaceMode, n as RuntimeSurfaceStatus, o as createInteractiveContext, p as ensureExampleConfigFile, q as ensureExampleConfigFiles, r as getGitRoot, s as getProviderList, t as getProviderModel, u as getVersion, v as hydrateProcessEnvFromShell, w as isProviderConfigured, x as loadConfig, y as prepareRuntimeConfig, z as rateLimitedCall, A as registerConfiguredCustomProviders, B as resolveRuntimeEffortSelection, D as resolveRuntimeModelSelection, E as resolveRuntimeProviderSelection, F as saveConfig, G as touchContext } from './types-chunks/utils.d-gmn3c5U4.js';
|
|
11
10
|
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-Cqaw71Ax.js';
|
|
12
11
|
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-Cqaw71Ax.js';
|
|
13
12
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
14
13
|
export { E as ExtensionsIntegrationDocument, I as IntegrationConfigController, a as IntegrationConfigDiagnostic, b as IntegrationConfigListener, c as IntegrationConfigSnapshot, d as IntegrationConfigSource, e as IntegrationConfigStatus, f as IntegrationDocumentValidator, g as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, h as LegacyIntegrationMigrationPlan, i as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, j as parseMcpIntegrationDocument, k as planLegacyIntegrationMigration, r as readExtensionsIntegration, l as readMcpIntegration, n as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-ojG4swOP.js';
|
|
15
|
-
export {
|
|
16
|
-
import {
|
|
17
|
-
import './types-chunks/types.d-
|
|
14
|
+
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-DH1mvdcl.js';
|
|
15
|
+
import { S as SignalCollector, e as AutoModeAskUser, i as AutoModeSharedState, k as AutoModeToolGuardrail, s as RulesLoadResult } from './types-chunks/guardrail.d-auV61_h5.js';
|
|
16
|
+
import './types-chunks/center-types.d-BBT122uJ.js';
|
|
17
|
+
import './types-chunks/types.d-DCQVBqVn.js';
|
|
18
18
|
import 'vscode-languageserver-protocol';
|
|
19
19
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
20
20
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
21
21
|
import './types-chunks/base.d-Cz_rwpOi.js';
|
|
22
22
|
import 'readline';
|
|
23
23
|
import 'child_process';
|
|
24
|
-
import './types-chunks/guardrail.d-
|
|
24
|
+
import './types-chunks/guardrail.d-DlpMnd-Y.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* App - KodaX CLI root component.
|
|
@@ -166,7 +166,7 @@ declare function isAlwaysConfirmPath(targetPath: string, projectRoot: string): b
|
|
|
166
166
|
* Check if a bash command operates on any protected paths
|
|
167
167
|
* Issue 052: Prevent "always" option for bash commands on protected paths
|
|
168
168
|
*/
|
|
169
|
-
declare function isCommandOnProtectedPath(command: string, projectRoot: string): boolean;
|
|
169
|
+
declare function isCommandOnProtectedPath(command: string, projectRoot: string, executionCwd?: string): boolean;
|
|
170
170
|
/**
|
|
171
171
|
* Check whether a path stays inside the project root after resolution.
|
|
172
172
|
*/
|
|
@@ -219,7 +219,43 @@ declare function getBashOutsideProjectWriteRisk(command: string, projectRoot: st
|
|
|
219
219
|
* closes that gap structurally — new mutating tools auto-block until
|
|
220
220
|
* explicitly opted in via `planModeAllowed: true`.
|
|
221
221
|
*/
|
|
222
|
-
declare function getPlanModeBlockReason(toolName: string, input: Record<string, unknown>, projectRoot?: string): string | null;
|
|
222
|
+
declare function getPlanModeBlockReason(toolName: string, input: Record<string, unknown>, projectRoot?: string, executionCwd?: string | undefined): string | null;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* REPL-side path-aware bash signal collector — FEATURE_158 Step 8 (v0.7.39).
|
|
226
|
+
*
|
|
227
|
+
* Bridges the coding-side `SignalCollector` contract to repl-side path
|
|
228
|
+
* utilities (`extractPathsFromCommand`, `isAlwaysConfirmPath`,
|
|
229
|
+
* `getBashOutsideProjectWriteRisk`, `collectBashWriteTargets`).
|
|
230
|
+
*
|
|
231
|
+
* Why this lives in @kodax/repl, not @kodax/coding:
|
|
232
|
+
* The AST + path-extraction utilities live in `packages/repl/src/permission/`
|
|
233
|
+
* for historical reasons (Issue 131 root-cause area). Lifting them to
|
|
234
|
+
* `@kodax/coding` is a separate refactor (out of FEATURE_158 scope per
|
|
235
|
+
* ADR-025 design decision). Instead, the guardrail accepts an
|
|
236
|
+
* `extraCollectors` config knob and the REPL injects this collector at
|
|
237
|
+
* bootstrap. Layer boundary preserved; no parallel paths.
|
|
238
|
+
*
|
|
239
|
+
* Signal kinds produced (bash-only):
|
|
240
|
+
* - protected_path (~/.kodax or <projectRoot>/.kodax)
|
|
241
|
+
* - outside_project (paths neither in project nor in temp)
|
|
242
|
+
* - shell_redirect_outside (`>` / `>>` redirection targets outside project)
|
|
243
|
+
*
|
|
244
|
+
* Out of scope:
|
|
245
|
+
* - dangerous_pattern / network / package_install / git_write — produced
|
|
246
|
+
* by the coding-side `bashSignalCollector` (no repl-side path needed).
|
|
247
|
+
* - file_modification / protected_path for write/edit tools — produced
|
|
248
|
+
* by the coding-side `fileSignalCollector` (`input.path` is enough).
|
|
249
|
+
*
|
|
250
|
+
* Purity: deterministic given (command, projectRoot, stable env). Path
|
|
251
|
+
* extraction is regex/AST-based, no I/O.
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The collector. Wired into the AutoModeToolGuardrail via the bootstrap's
|
|
256
|
+
* `extraCollectors` config; merged with `bashSignalCollector` from coding.
|
|
257
|
+
*/
|
|
258
|
+
declare const replBashPathSignalCollector: SignalCollector;
|
|
223
259
|
|
|
224
260
|
interface SessionPickerItem {
|
|
225
261
|
readonly id: string;
|
|
@@ -228,7 +264,10 @@ interface SessionPickerItem {
|
|
|
228
264
|
readonly createdAt?: string;
|
|
229
265
|
readonly surface?: string;
|
|
230
266
|
}
|
|
231
|
-
|
|
267
|
+
interface SessionPickerRunOptions {
|
|
268
|
+
readonly prepareSelection?: (session: SessionPickerItem) => Promise<void>;
|
|
269
|
+
}
|
|
270
|
+
declare function runSessionPicker(sessions: readonly SessionPickerItem[], options?: SessionPickerRunOptions): Promise<SessionPickerItem | undefined>;
|
|
232
271
|
|
|
233
272
|
/**
|
|
234
273
|
* KodaX CLI Event Handler - CLI 事件处理器
|
|
@@ -543,15 +582,20 @@ interface StreamingManager {
|
|
|
543
582
|
* - Buffer streaming text and thinking content to 80ms cycle - 流式文本和 thinking 内容缓冲到 80ms 周期
|
|
544
583
|
* - Sync with Spinner animation to avoid race conditions - 与 Spinner 动画同步,避免竞态条件
|
|
545
584
|
*/
|
|
546
|
-
|
|
585
|
+
interface StreamingManagerOptions {
|
|
586
|
+
/** Resolve the queue routing key at operation time so /new and /load work. */
|
|
587
|
+
readonly getPendingInputAgentId?: () => string | undefined;
|
|
588
|
+
}
|
|
589
|
+
declare function createStreamingManager(options?: StreamingManagerOptions): StreamingManager;
|
|
547
590
|
interface StreamingProviderProps {
|
|
548
591
|
children: ReactNode;
|
|
549
592
|
onStateChange?: (state: StreamingContextValue) => void;
|
|
593
|
+
getPendingInputAgentId?: () => string | undefined;
|
|
550
594
|
}
|
|
551
595
|
/**
|
|
552
596
|
* StreamingProvider - Provides streaming response management - 鎻愪緵娴佸紡鍝嶅簲绠$悊
|
|
553
597
|
*/
|
|
554
|
-
declare function StreamingProvider({ children, onStateChange, }: StreamingProviderProps): React$1.ReactElement;
|
|
598
|
+
declare function StreamingProvider({ children, onStateChange, getPendingInputAgentId, }: StreamingProviderProps): React$1.ReactElement;
|
|
555
599
|
/**
|
|
556
600
|
* Get streaming state - 获取流式状态
|
|
557
601
|
*/
|
|
@@ -1611,7 +1655,7 @@ declare function useAutocomplete(options?: UseAutocompleteOptions): UseAutocompl
|
|
|
1611
1655
|
* FEATURE_159 (v0.7.40) — `useQueuedPrompts` hook.
|
|
1612
1656
|
*
|
|
1613
1657
|
* Subscribes a React component to the agent-side MessageQueue and
|
|
1614
|
-
* returns the filtered slice of
|
|
1658
|
+
* returns the filtered slice of user-priority prompts for one queue scope —
|
|
1615
1659
|
* the same slice REPL renders as "Queue N" / "Queued follow-ups: N".
|
|
1616
1660
|
*
|
|
1617
1661
|
* Implementation contract:
|
|
@@ -1638,16 +1682,16 @@ declare function useAutocomplete(options?: UseAutocompleteOptions): UseAutocompl
|
|
|
1638
1682
|
*/
|
|
1639
1683
|
|
|
1640
1684
|
/**
|
|
1641
|
-
* Subscribe to
|
|
1685
|
+
* Subscribe to one agent/session user-priority prompt slice of the
|
|
1642
1686
|
* MessageQueue. Returns a stable snapshot — safe to use as a `useEffect`
|
|
1643
1687
|
* dep or pass to a memoized child.
|
|
1644
1688
|
*/
|
|
1645
|
-
declare function useQueuedPrompts(): readonly QueuedMessage[];
|
|
1689
|
+
declare function useQueuedPrompts(agentId?: string): readonly QueuedMessage[];
|
|
1646
1690
|
/**
|
|
1647
1691
|
* Variant returning just the content strings — convenience for the
|
|
1648
1692
|
* common case where the consumer doesn't care about ids / timestamps.
|
|
1649
1693
|
*/
|
|
1650
|
-
declare function useQueuedPromptContents(): readonly string[];
|
|
1694
|
+
declare function useQueuedPromptContents(agentId?: string): readonly string[];
|
|
1651
1695
|
/**
|
|
1652
1696
|
* Test-only reset hook for the module-level filtered-snapshot cache.
|
|
1653
1697
|
* Production code must not call this. Used by tests that reset the
|
|
@@ -2268,6 +2312,8 @@ interface AutoModeBootstrapDeps {
|
|
|
2268
2312
|
*/
|
|
2269
2313
|
readonly askUser: AutoModeAskUser;
|
|
2270
2314
|
readonly projectRoot: string;
|
|
2315
|
+
/** Directory used to resolve relative tool paths. */
|
|
2316
|
+
readonly executionCwd: string;
|
|
2271
2317
|
readonly getCurrentProviderName: () => string;
|
|
2272
2318
|
readonly getCurrentModel: () => string | undefined;
|
|
2273
2319
|
readonly getCurrentPermissionMode: () => PermissionMode;
|
|
@@ -2291,6 +2337,8 @@ interface AutoModeBootstrapDeps {
|
|
|
2291
2337
|
* mode toggle to refresh.
|
|
2292
2338
|
*/
|
|
2293
2339
|
readonly onEngineChange?: (engine: 'llm' | 'rules') => void;
|
|
2340
|
+
/** Session-owned engine/denial/breaker state shared by context-specific guardrails. */
|
|
2341
|
+
readonly sharedState?: AutoModeSharedState;
|
|
2294
2342
|
/**
|
|
2295
2343
|
* FEATURE_158 (v0.7.39): additional signal collectors merged with the
|
|
2296
2344
|
* coding-side defaults (`bashSignalCollector` + `fileSignalCollector`).
|
|
@@ -2356,5 +2404,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
|
|
|
2356
2404
|
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
2357
2405
|
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
2358
2406
|
|
|
2359
|
-
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, processCommandCall, removeCustomProvider, removeMcpServer, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runSessionPicker, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
|
|
2407
|
+
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, processCommandCall, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runSessionPicker, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
|
|
2360
2408
|
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
|
package/dist/sdk-repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as
|
|
3
|
-
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{
|
|
2
|
+
import{$ as In,$a as Lo,A as Q,Aa as co,Ab as de,B as T,Ba as po,Bb as pe,C as U,Ca as lo,Cb as le,D as V,Da as uo,Db as ue,E as Y,Ea as fo,Eb as fe,F as Z,Fa as go,Fb as ge,G as tt,Ga as Co,Gb as Ce,H as nt,Ha as xo,Hb as xe,I as ot,Ia as yo,Ib as ye,J as et,Ja as Ko,Jb as Ke,K as rt,Ka as Xo,Kb as Xe,L as at,La as ho,Lb as he,M as pt,Ma as Do,Mb as De,N as lt,Na as Po,Nb as Pe,O as ut,Oa as Mo,Ob as Me,P as ft,Pa as bo,Pb as be,Q as bn,Qa as wo,Qb as we,R as wn,Ra as No,Rb as Ne,S as Nn,Sa as _o,Sb as _e,T as _n,Ta as jo,Tb as je,U as jn,Ua as ko,Ub as ke,V as kn,Va as Ao,Vb as Ae,W as An,Wa as Oo,Wb as Oe,X as On,Xa as Ro,Xb as Re,Y as Rn,Ya as So,Z as Sn,Za as vo,_ as vn,_a as Io,a as D,aa as Ln,ab as Wo,b as P,ba as Wn,bb as Fo,c as M,ca as Fn,cb as $o,d as b,da as $n,db as qo,e as w,ea as qn,eb as zo,f as N,fa as zn,fb as Bo,g as _,ga as Bn,gb as Eo,h as j,ha as En,hb as Go,i as k,ia as Gn,ib as Ho,j as A,ja as Hn,jb as Jo,k as O,ka as Jn,kb as Qo,l as R,la as Qn,lb as To,m as S,ma as Tn,mb as Uo,n as v,na as Un,nb as Vo,o as I,oa as Vn,ob as Yo,p as L,pa as Yn,pb as Zo,q as W,qa as Zn,qb as te,r as F,ra as to,rb as ne,s as $,sa as no,sb as oe,t as q,ta as oo,tb as ee,u as z,ua as eo,ub as re,v as B,va as ro,vb as ae,w as E,wa as ao,wb as me,x as G,xa as mo,xb as ie,y as H,ya as io,yb as se,z as J,za as so,zb as ce}from"./chunks/chunk-GVWPHE23.js";import{Aa as Pn,Ba as Mn,K as un,L as fn,M as gn,N as Cn,O as xn,T as yn,U as Kn,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,j as xt,k as yt,l as Kt,m as Xt,n as nn,p as on,q as en,r as rn,s as an,t as mn,u as sn,v as cn,w as dn,x as pn,xa as Xn,y as ln,ya as hn,za as Dn}from"./chunks/chunk-PKQOEDHJ.js";import{K as qt,L as zt,M as Bt,N as Et,O as Gt,P as Ht,Q as Jt,T as Qt,U as Tt,W as Ut,X as Vt,Y as Yt,_ as Zt,b as ht,c as Dt,ca as tn,d as Pt,e as Mt,f as bt,g as wt,h as Nt,i as _t,j as jt,k as kt,l as At,m as Ot,n as Rt,o as St,p as vt,q as It,s as Lt,t as Wt,u as Ft,v as $t}from"./chunks/chunk-WIBLZK4G.js";import"./chunks/chunk-2RI252RN.js";import"./chunks/chunk-VVE3UM4F.js";import"./chunks/chunk-IR5KIK7E.js";import"./chunks/chunk-MVARIMQV.js";import"./chunks/chunk-VDGCGOQH.js";import"./chunks/chunk-SQODXBLX.js";import"./chunks/chunk-44QXPEEE.js";import"./chunks/chunk-GIK4SGAT.js";import"./chunks/chunk-ZJIMT5I3.js";import"./chunks/chunk-JSDLBXME.js";import"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import{a}from"./chunks/chunk-ONUPGMER.js";import l from"fs/promises";import c from"path";import x from"os";var u=c.join(x.homedir(),".kodax","commands");function y(){return u}a(y,"getDefaultCommandDir");async function K(e){let n=new Map,o=e??u;try{await l.mkdir(o,{recursive:!0});let r=await l.readdir(o);for(let t of r){let m=c.extname(t),f=t.replace(m,"");if(m===".md"){try{let d=await l.readFile(c.join(o,t),"utf-8"),i=(d.split(`
|
|
3
|
+
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{Bn as App,bn as AutocompleteContextProvider,hn as BUILTIN_COMMANDS,go as BackgroundTaskBar,ht as CONFIG_TEMPLATES,xo as ChildActivitySurface,re as ConsoleCapturer,dt as DEFAULT_UI_STATE,co as DialogSurface,Sn as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,ye as FileSessionStorage,Gn as FullscreenTranscriptLayout,Wn as HistoryItemRenderer,An as InputPrompt,At as IntegrationConfigController,u as KODAX_COMMANDS_DIR,St as KODAX_CONFIG_FILE,Ot as KODAX_DIR,Et as KODAX_EXAMPLE_CONFIG_FILE,Gt as KODAX_INTEGRATION_EXAMPLE_FILES,Rt as KODAX_SESSIONS_DIR,Ft as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Ln as LoadingIndicator,Ao as MemorySessionStorage,Hn as MessageActions,Fn as MessageList,Jn as MessageSelector,lo as NotificationsSurface,gt as PERMISSION_MODES,vt as PREVIEW_MAX_LENGTH,Uo as PendingInputsIndicator,vn as ProgressIndicator,Tn as PromptComposer,Yn as PromptFooter,Un as PromptFooterLeftSide,Vn as PromptFooterRightSide,Zn as PromptHelpMenu,so as PromptSuggestionsSurface,po as QueuedCommandsSurface,En as SimpleApp,On as SimpleInputPrompt,$n as SimpleMessageDisplay,zn as SimpleStatusBar,tt as SingleLineTextInput,Rn as Spinner,fo as StashNotice,qn as StatusBar,uo as StatusNoticesSurface,Ko as StreamingProvider,mt as StreamingState,io as SuggestionsDisplay,st as TOOL_STATUS_ICONS,jn as TextBuffer,Z as TextInput,In as ThinkingIndicator,Qo as ToolCallDisplay,it as ToolCallStatus,To as ToolGroup,Jo as ToolProgressBar,Ho as ToolStatusBadge,Qn as TranscriptViewport,eo as UIStateProvider,No as _resetQueuedPromptsCacheForTests,Me as appendClientNotice,ke as archiveSession,ko as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,cn as collectBashWriteTargets,Xe as compactSession,yt as computeConfirmTools,Eo as createCliEvents,no as createHistoryItem,_o as createInteractiveContext,Go as createJsonEvents,Mo as createKeyMatcher,pt as createKeypressManager,Oo as createMemorySessionStorage,$o as createRecoveryHistoryItem,Wo as createRetryHistoryItem,Re as createSessionManager,yo as createStreamingManager,oo as createToolCall,Q as darkTheme,Ke as dedupeSessions,je as deleteSession,ee as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,qo as emitRecoveryHistoryItem,Fo as emitRetryHistoryItem,Jt as ensureExampleConfigFile,Ht as ensureExampleConfigFiles,Mn as executeCommand,Ro as executeShellCommand,gn as extractHistorySeedsFromMessage,Cn as extractHistorySeedsFromMessages,xn as extractTextContent,yn as extractTitle,be as forkSession,Kn as formatMessagePreview,to as generateId,rn as generateSavePattern,dn as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Dn as getCommandRegistry,Dt as getConfigTemplate,de as getCustomProviderConfig,y as getDefaultCommandDir,Zt as getGitRoot,at as getKeyDisplayName,fe as getMcpServerConfig,pn as getPlanModeBlockReason,qt as getProviderList,$t as getProviderModel,S as getTerminalHostCapabilities,ne as getTerminalWidth,V as getTheme,Y as getThemeNames,Wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,It as hydrateProcessEnvFromShell,an as isAlwaysConfirmPath,nn as isBashReadCommand,on as isBashWriteCommand,I as isClassicReplForced,mn as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,sn as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,zt as isProviderConfigured,M as isRemoteConptyHost,oe as isScreenReader,So as isShellCommand,vo as isShellCommandSuccess,w as isTmuxControlMode,en as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,ce as listCustomProviders,ue as listMcpServers,Xn as listRegisteredCommands,_e as listRunningSessions,he as listSessions,K as loadCommands,Bt as loadConfig,Pe as loadFullTranscript,De as loadSession,Co as measureChildActivitySurfaceRows,jt as migrateLegacyIntegrationConfig,T as minimalTheme,Xt as normalizePermissionMode,Pn as parseCommand,h as parseCommandCall,Mt as parseExtensionsIntegrationDocument,nt as parseKeypress,Pt as parseMcpIntegrationDocument,Ct as permissionModeDisplayName,_t as planLegacyIntegrationMigration,Qt as prepareRuntimeConfig,X as processCommandCall,se as processSpecialSyntax,tn as rateLimitedCall,Nt as readExtensionsIntegration,wt as readMcpIntegration,Lt as registerConfiguredCustomProviders,le as removeCustomProvider,Ce as removeMcpServer,ln as replBashPathSignalCollector,N as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,bt as resolveIntegrationConfigPath,O as resolveInteractiveSurfacePreference,Yt as resolveRuntimeEffortSelection,Vt as resolveRuntimeModelSelection,Ut as resolveRuntimeProviderSelection,Lo as restoreHistoryItemsFromSession,we as rewindSession,zo as runInkInteractiveMode,ie as runInteractiveMode,Bo as runSessionPicker,Tt as saveConfig,un as seedToHistoryItem,Ne as setActiveEntry,z as splitByCodePoints,Yo as supports256Colors,te as supportsEmoji,Vo as supportsTrueColor,Zo as supportsUnicode,U as themes,fn as toolCallSeedToHistoryToolCall,jo as touchContext,Io as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,Ae as unarchiveSession,pe as upsertCustomProvider,ge as upsertMcpServer,Nn as useAutocomplete,wn as useAutocompleteContext,_n as useInputHistory,Po as useKeypress,ut as useKeypressManager,wo as useQueuedPromptContents,bo as useQueuedPrompts,Do as useStreaming,ho as useStreamingActions,Xo as useStreamingState,kn as useTextBuffer,mo as useUI,ao as useUIActions,ro as useUIState,xe as validateMcpServerConfig,E as visualWidthCache,Oe as watchSessions,ae as withCapture,me as withCaptureSync,kt as writeIntegrationDocument};
|