@kodax-ai/kodax 0.7.56 → 0.7.58
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 +2004 -1887
- package/README.md +52 -48
- package/README_CN.md +37 -32
- package/dist/builtin/code-review/SKILL.md +22 -3
- package/dist/chunks/agent-YJNC2755.js +2 -0
- package/dist/chunks/argument-completer-QGBNXTYJ.js +2 -0
- package/dist/chunks/chunk-526OILYL.js +2 -0
- package/dist/chunks/{chunk-ZBK3DZ3S.js → chunk-6AU6EPO6.js} +1 -1
- package/dist/chunks/chunk-73Z7BK5H.js +15 -0
- package/dist/chunks/chunk-7QB55SYG.js +326 -0
- package/dist/chunks/chunk-CQ6EQG7E.js +322 -0
- package/dist/chunks/chunk-CV6JHPEO.js +2 -0
- package/dist/chunks/chunk-D6QVXQNI.js +1 -0
- package/dist/chunks/chunk-HS2K74I4.js +31 -0
- package/dist/chunks/chunk-NKHXRN7G.js +403 -0
- package/dist/chunks/chunk-OBPB5BQ6.js +310 -0
- package/dist/chunks/chunk-P4VF3JEP.js +7 -0
- package/dist/chunks/chunk-PIQWODWN.js +18 -0
- package/dist/chunks/chunk-QHWXPJEG.js +601 -0
- package/dist/chunks/chunk-XXEIFNBE.js +52 -0
- package/dist/chunks/chunk-ZZDC75H4.js +681 -0
- package/dist/chunks/compaction-config-OPMRZSAK.js +2 -0
- package/dist/chunks/{construction-bootstrap-EDDVNP2B.js → construction-bootstrap-CIXFH5SE.js} +4 -4
- package/dist/chunks/dist-JSE7NICF.js +2 -0
- package/dist/chunks/dist-SDNQOW52.js +2 -0
- package/dist/chunks/host-H7FQMMRC.js +2 -0
- package/dist/chunks/{paste-5IDBBQQ3.js → paste-Y4DVUWSM.js} +1 -1
- package/dist/chunks/run-manager-4H5HWMVW.js +2 -0
- package/dist/chunks/utils-FLVVQHM7.js +2 -0
- package/dist/index.d.ts +22 -18
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1303 -1108
- package/dist/provider-capabilities.json +986 -197
- package/dist/sdk-agent.d.ts +162 -14
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +285 -255
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +66 -43
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +64 -5
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +114 -107
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-session.d.ts +7 -7
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +11 -0
- package/dist/types-chunks/{base.d-CwPfI8WQ.d.ts → base.d-BA9Doaj_.d.ts} +38 -8
- package/dist/types-chunks/{bash-prefix-extractor.d-DZF1gDDz.d.ts → bash-prefix-extractor.d-D3cddmyV.d.ts} +639 -163
- package/dist/types-chunks/capability-learning.d-DRV80ISB.d.ts +29 -0
- package/dist/types-chunks/{cost-tracker.d-wRtyEW9d.d.ts → cost-tracker.d-CBLk1fiD.d.ts} +24 -2
- package/dist/types-chunks/{guardrail.d-DQQknOfb.d.ts → guardrail.d-iK7FwMdW.d.ts} +32 -10
- package/dist/types-chunks/{manager.d-DLmDhX3i.d.ts → manager.d-DBD7SOTT.d.ts} +7 -2
- package/dist/types-chunks/{process.d-BdiIUr8T.d.ts → process.d-DHow2y2G.d.ts} +170 -14
- package/dist/types-chunks/{resolver.d-Djq8KlCE.d.ts → resolver.d-DDOfVYDr.d.ts} +111 -18
- package/dist/types-chunks/{capsule.d-D0kjnqYy.d.ts → run-manager.d-ByDcJc5g.d.ts} +124 -13
- package/dist/types-chunks/{sdk-session-BP6ZNpOp.d.ts → sdk-session-21Tt3N_x.d.ts} +74 -9
- package/dist/types-chunks/{storage.d-CkydxFsV.d.ts → storage.d-BsZrBPYu.d.ts} +2 -2
- package/dist/types-chunks/{types.d-BJmoMf5H.d.ts → types.d-Ci5YPFEh.d.ts} +135 -22
- package/dist/types-chunks/{types.d-BKuHSiR0.d.ts → types.d-D4ZA8LJV.d.ts} +7 -3
- package/dist/types-chunks/{utils.d-bC97IuQZ.d.ts → utils.d-BURxOxFd.d.ts} +94 -19
- package/package.json +12 -7
- package/dist/chunks/agent-MAAKRAF2.js +0 -2
- package/dist/chunks/argument-completer-OWEXGWNL.js +0 -2
- package/dist/chunks/chunk-4OHXHC2S.js +0 -314
- package/dist/chunks/chunk-5YJIAP6C.js +0 -551
- package/dist/chunks/chunk-7EAGBLRV.js +0 -2
- package/dist/chunks/chunk-CDGOEK3T.js +0 -31
- package/dist/chunks/chunk-DHETLULC.js +0 -425
- package/dist/chunks/chunk-JCDO2FR4.js +0 -584
- package/dist/chunks/chunk-NZVJ3DFC.js +0 -656
- package/dist/chunks/chunk-QI3MRJGU.js +0 -5
- package/dist/chunks/chunk-XXQ3RLA2.js +0 -2
- package/dist/chunks/compaction-config-NAJEEPG5.js +0 -2
- package/dist/chunks/dist-2267YGB5.js +0 -2
- package/dist/chunks/dist-GW32CHO5.js +0 -2
- package/dist/chunks/utils-J7XBBZGB.js +0 -2
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps, M as Message,
|
|
3
|
-
export { a as AppState, C as Completer, b as Completion, d as CursorPosition, D as DEFAULT_UI_STATE, e as DeleteSessionResult, F as FullTranscriptSessionData, g as HistoryItemAssistant, h as HistoryItemBase, i as HistoryItemError, j as HistoryItemEvent, k as HistoryItemHint, m as
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as CurrentConfig, I as InkREPLOptions, c as InteractiveContext, d as InteractiveMode, K as KODAX_CONFIG_FILE, e as KODAX_DIR, f as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { b as PermissionMode } from './types-chunks/storage.d-
|
|
8
|
-
export { C as ConfirmResult, F as FileSessionStorage, M as MemorySessionStorage, P as PERMISSION_MODES, a as PermissionContext, S as SessionData, c as SessionStorage, d as computeConfirmTools, e as createMemorySessionStorage, i as isPermissionMode, n as normalizePermissionMode, p as permissionModeDisplayName } from './types-chunks/storage.d-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
2
|
+
import { A as AppProps, M as Message, a0 as UIState, c as CreatableHistoryItem, f as HistoryItem, Z as ToolCall, $ as UIActions, K as KeyInfo, u as KeypressHandler, O as StreamingState, x as PromptEditingMode, I as InputPromptProps, N as StatusBarProps, W as Theme, _ as ToolCallStatus, Q as Suggestion, a1 as UseTextBufferReturn, H as HistoryEntry, P as PastedContent, l as HistoryItemInfo } from './types-chunks/sdk-session-21Tt3N_x.js';
|
|
3
|
+
export { a as AppState, C as Completer, b as Completion, d as CursorPosition, D as DEFAULT_UI_STATE, e as DeleteSessionResult, F as FullTranscriptSessionData, g as HistoryItemAssistant, h as HistoryItemBase, i as HistoryItemError, j as HistoryItemEvent, k as HistoryItemHint, m as HistoryItemSidecar, n as HistoryItemSystem, o as HistoryItemThinking, p as HistoryItemToolGroup, q as HistoryItemType, r as HistoryItemUser, s as HistorySeedSourceMessage, t as KeypressEvent, v as KeypressHandlerPriority, L as LegacyMessageListProps, w as ListSessionsOptions, y as PromptSubmitPayload, R as RestoreHistoryItemsFromSessionInput, z as RestoredHistorySeed, B as RunningSessionInfo, S as SessionManager, E as SessionSummary, G as SessionTranscriptEntry, J as SessionTranscriptEntryType, T as TOOL_STATUS_ICONS, U as TextBuffer, V as TextBufferOptions, X as ThemeColors, Y as ThemeSymbols, a2 as VisualCursor, a3 as VisualLayout, a4 as WatchSessionsCallback, a5 as archiveSession, a6 as createSessionManager, a7 as deleteSession, a8 as extractHistorySeedsFromMessage, a9 as extractHistorySeedsFromMessages, aa as extractTextContent, ab as extractTitle, ac as forkSession, ad as formatMessagePreview, ae as listRunningSessions, af as listSessions, ag as loadFullTranscript, ah as loadSession, ai as restoreHistoryItemsFromSession, aj as rewindSession, ak as seedToHistoryItem, al as setActiveEntry, am as toolCallSeedToHistoryToolCall, an as trimPersistedUiHistorySnapshot, ao as unarchiveSession, ap as watchSessions } from './types-chunks/sdk-session-21Tt3N_x.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as CurrentConfig, I as InkREPLOptions, c as InteractiveContext, d as InteractiveMode, K as KODAX_CONFIG_FILE, e as KODAX_DIR, f as KODAX_EXAMPLE_CONFIG_FILE, g as KODAX_SESSIONS_DIR, h as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RepLOptions, i as createInteractiveContext, j as ensureExampleConfigFile, k as executeCommand, l as getGitRoot, m as getProviderList, n as getProviderModel, o as getVersion, p as hydrateProcessEnvFromShell, q as isProviderConfigured, r as loadConfig, s as parseCommand, t as prepareRuntimeConfig, u as processSpecialSyntax, v as rateLimitedCall, w as registerConfiguredCustomProviders, x as runInkInteractiveMode, y as runInteractiveMode, z as saveConfig, A as touchContext } from './types-chunks/utils.d-BURxOxFd.js';
|
|
5
|
+
import { x as KodaXEvents, m as KodaXAgentMode, aA as ProviderRecoveryEvent, a as BashPrefixExtractor, Z as KodaXResult } from './types-chunks/bash-prefix-extractor.d-D3cddmyV.js';
|
|
6
|
+
import { f as QueuedMessage } from './types-chunks/types.d-D4ZA8LJV.js';
|
|
7
|
+
import { b as PermissionMode } from './types-chunks/storage.d-BsZrBPYu.js';
|
|
8
|
+
export { C as ConfirmResult, F as FileSessionStorage, M as MemorySessionStorage, P as PERMISSION_MODES, a as PermissionContext, S as SessionData, c as SessionStorage, d as computeConfirmTools, e as createMemorySessionStorage, i as isPermissionMode, n as normalizePermissionMode, p as permissionModeDisplayName } from './types-chunks/storage.d-BsZrBPYu.js';
|
|
9
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-Ci5YPFEh.js';
|
|
10
|
+
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
11
|
+
export { ai as KodaXSessionUiHistoryItem, aj as KodaXSessionUiHistoryItemType, ak as KodaXSessionUiTextHistoryItem, al as KodaXSessionUiTextHistoryItemType, am as KodaXSessionUiToolCall, an as KodaXSessionUiToolCallStatus, ao as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-DHow2y2G.js';
|
|
12
|
+
import { a as AutoModeAskUser, S as SignalCollector, g as AutoModeToolGuardrail, o as RulesLoadResult } from './types-chunks/guardrail.d-iK7FwMdW.js';
|
|
12
13
|
import 'readline';
|
|
13
14
|
import 'child_process';
|
|
14
15
|
import 'vscode-languageserver-protocol';
|
|
16
|
+
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
15
17
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
16
|
-
import './types-chunks/base.d-
|
|
17
|
-
import './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
18
|
-
import './types-chunks/config.d-CJy1WENT.js';
|
|
18
|
+
import './types-chunks/base.d-BA9Doaj_.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* App - KodaX CLI root component.
|
|
@@ -133,57 +133,57 @@ declare const KeyMatchers: {
|
|
|
133
133
|
/**
|
|
134
134
|
* StreamingContext - Streaming Response Handling
|
|
135
135
|
*
|
|
136
|
-
* Reference implementation based on Gemini CLI's StreamingContext architecture -
|
|
137
|
-
* Manages streaming response state, cancellation operations, and error handling -
|
|
136
|
+
* Reference implementation based on Gemini CLI's StreamingContext architecture - 参考 Gemini CLI 的 StreamingContext 架构实现
|
|
137
|
+
* Manages streaming response state, cancellation operations, and error handling - 管理流式响应状态、取消操作和错误处理
|
|
138
138
|
*/
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* Iteration record -
|
|
142
|
-
* Stores a snapshot of one iteration's thinking and response -
|
|
141
|
+
* Iteration record - 迭代记录
|
|
142
|
+
* Stores a snapshot of one iteration's thinking and response - 存储一轮迭代的 thinking 和响应快照
|
|
143
143
|
*/
|
|
144
144
|
interface IterationRecord {
|
|
145
|
-
/** Iteration number (1-based) -
|
|
145
|
+
/** Iteration number (1-based) - 迭代序号(从1开始) */
|
|
146
146
|
iteration: number;
|
|
147
|
-
/** Thinking content summary (truncated) - Thinking
|
|
147
|
+
/** Thinking content summary (truncated) - Thinking 内容摘要(截断) */
|
|
148
148
|
thinkingSummary: string;
|
|
149
|
-
/** Full thinking content length -
|
|
149
|
+
/** Full thinking content length - 完整 thinking 内容长度 */
|
|
150
150
|
thinkingLength: number;
|
|
151
|
-
/** Response content -
|
|
151
|
+
/** Response content - 响应内容 */
|
|
152
152
|
response: string;
|
|
153
|
-
/** Tools used in this iteration -
|
|
153
|
+
/** Tools used in this iteration - 本轮使用的工具 */
|
|
154
154
|
toolsUsed: string[];
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Streaming context value -
|
|
157
|
+
* Streaming context value - 流式上下文值
|
|
158
158
|
*/
|
|
159
159
|
interface StreamingContextValue {
|
|
160
|
-
/**
|
|
160
|
+
/** 当前流式状态 */
|
|
161
161
|
state: StreamingState;
|
|
162
162
|
/** 褰撳墠姝e湪娴佸紡浼犺緭鐨勫搷搴?*/
|
|
163
163
|
currentResponse: string;
|
|
164
|
-
/**
|
|
164
|
+
/** 错误信息 */
|
|
165
165
|
error?: string;
|
|
166
166
|
/** 鐢ㄤ簬鍙栨秷璇锋眰鐨?AbortController */
|
|
167
167
|
abortController?: AbortController;
|
|
168
|
-
/**
|
|
168
|
+
/** 是否正在 thinking */
|
|
169
169
|
isThinking: boolean;
|
|
170
|
-
/** Thinking
|
|
170
|
+
/** Thinking 字符计数 */
|
|
171
171
|
thinkingCharCount: number;
|
|
172
|
-
/** Thinking
|
|
172
|
+
/** Thinking 内容 (用于UI显示) */
|
|
173
173
|
thinkingContent: string;
|
|
174
|
-
/**
|
|
174
|
+
/** 当前执行的工具名称 */
|
|
175
175
|
currentTool?: string;
|
|
176
|
-
/**
|
|
176
|
+
/** 工具输入字符计数 */
|
|
177
177
|
toolInputCharCount: number;
|
|
178
|
-
/**
|
|
178
|
+
/** 工具输入内容 (用于UI显示参数摘要) */
|
|
179
179
|
toolInputContent: string;
|
|
180
|
-
/** Iteration history -
|
|
180
|
+
/** Iteration history - 迭代历史 */
|
|
181
181
|
iterationHistory: IterationRecord[];
|
|
182
|
-
/** Current iteration number (1-based) -
|
|
182
|
+
/** Current iteration number (1-based) - 当前迭代序号(从1开始) */
|
|
183
183
|
currentIteration: number;
|
|
184
|
-
/** Maximum iterations allowed -
|
|
184
|
+
/** Maximum iterations allowed - 最大允许迭代次数 */
|
|
185
185
|
maxIter: number;
|
|
186
|
-
/**
|
|
186
|
+
/** 是否正在压缩上下文 */
|
|
187
187
|
isCompacting: boolean;
|
|
188
188
|
pendingInputs: string[];
|
|
189
189
|
/**
|
|
@@ -213,51 +213,51 @@ interface AbortOptions {
|
|
|
213
213
|
* Streaming actions interface - 娴佸紡鎿嶄綔鎺ュ彛
|
|
214
214
|
*/
|
|
215
215
|
interface StreamingActions {
|
|
216
|
-
/**
|
|
216
|
+
/** 开始流式响应 */
|
|
217
217
|
startStreaming: () => void;
|
|
218
|
-
/**
|
|
218
|
+
/** 停止流式响应 */
|
|
219
219
|
stopStreaming: () => void;
|
|
220
|
-
/**
|
|
220
|
+
/** 追加响应文本 */
|
|
221
221
|
appendResponse: (text: string) => void;
|
|
222
|
-
/**
|
|
222
|
+
/** 清空响应 */
|
|
223
223
|
clearResponse: () => void;
|
|
224
|
-
/**
|
|
224
|
+
/** 设置错误 */
|
|
225
225
|
setError: (error: string | undefined) => void;
|
|
226
|
-
/**
|
|
226
|
+
/** 取消当前流式响应 */
|
|
227
227
|
abort: (options?: AbortOptions) => void;
|
|
228
|
-
/**
|
|
228
|
+
/** 重置状态 */
|
|
229
229
|
reset: () => void;
|
|
230
|
-
/**
|
|
230
|
+
/** 开始 thinking */
|
|
231
231
|
startThinking: () => void;
|
|
232
|
-
/**
|
|
232
|
+
/** 追加 thinking 字符数 */
|
|
233
233
|
appendThinkingChars: (count: number) => void;
|
|
234
|
-
/**
|
|
234
|
+
/** 追加 thinking 内容 */
|
|
235
235
|
appendThinkingContent: (text: string) => void;
|
|
236
|
-
/**
|
|
236
|
+
/** 结束 thinking */
|
|
237
237
|
stopThinking: () => void;
|
|
238
|
-
/**
|
|
238
|
+
/** 清空 thinking 内容 (响应完成时调用) */
|
|
239
239
|
clearThinkingContent: () => void;
|
|
240
240
|
/** 璁剧疆褰撳墠宸ュ叿 */
|
|
241
241
|
setCurrentTool: (tool: string | undefined) => void;
|
|
242
|
-
/**
|
|
242
|
+
/** 追加工具输入字符数 */
|
|
243
243
|
appendToolInputChars: (count: number) => void;
|
|
244
|
-
/**
|
|
244
|
+
/** 追加工具输入内容 */
|
|
245
245
|
appendToolInputContent: (text: string) => void;
|
|
246
|
-
/**
|
|
246
|
+
/** 清空工具输入内容 */
|
|
247
247
|
clearToolInputContent: () => void;
|
|
248
|
-
/**
|
|
248
|
+
/** 获取当前的 AbortSignal (用于传递给 API 请求) */
|
|
249
249
|
getSignal: () => AbortSignal | undefined;
|
|
250
|
-
/**
|
|
250
|
+
/** 获取完整响应内容(包括缓冲区中未刷新的内容)- 用于中断时保存 */
|
|
251
251
|
getFullResponse: () => string;
|
|
252
|
-
/**
|
|
252
|
+
/** 获取完整 thinking 内容(包括缓冲区中未刷新的内容)- 用于持久化历史记录 */
|
|
253
253
|
getThinkingContent: () => string;
|
|
254
|
-
/** Start a new iteration - saves current content to history and clears for next round -
|
|
254
|
+
/** Start a new iteration - saves current content to history and clears for next round - 开始新迭代,保存当前内容到历史并清空 */
|
|
255
255
|
startNewIteration: (iteration: number) => void;
|
|
256
|
-
/** Clear iteration history -
|
|
256
|
+
/** Clear iteration history - 清空迭代历史 */
|
|
257
257
|
clearIterationHistory: () => void;
|
|
258
|
-
/** Set maximum iterations -
|
|
258
|
+
/** Set maximum iterations - 设置最大迭代次数 */
|
|
259
259
|
setMaxIter: (maxIter: number) => void;
|
|
260
|
-
/**
|
|
260
|
+
/** 开始压缩上下文 */
|
|
261
261
|
startCompacting: () => void;
|
|
262
262
|
/** 缁撴潫鍘嬬缉涓婁笅鏂?*/
|
|
263
263
|
stopCompacting: () => void;
|
|
@@ -268,66 +268,66 @@ interface StreamingActions {
|
|
|
268
268
|
consumePendingInputs: () => string[];
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
|
-
* State change listener -
|
|
271
|
+
* State change listener - 状态变更监听器
|
|
272
272
|
*/
|
|
273
273
|
type StreamingStateListener = (state: StreamingContextValue) => void;
|
|
274
274
|
/**
|
|
275
275
|
* Streaming manager interface - 娴佸紡绠$悊鍣ㄦ帴鍙?
|
|
276
276
|
*/
|
|
277
277
|
interface StreamingManager {
|
|
278
|
-
/**
|
|
278
|
+
/** 获取当前状态 */
|
|
279
279
|
getState: () => StreamingContextValue;
|
|
280
|
-
/**
|
|
280
|
+
/** 设置流式状态 */
|
|
281
281
|
setState: (state: StreamingState) => void;
|
|
282
|
-
/**
|
|
282
|
+
/** 开始流式响应 */
|
|
283
283
|
startStreaming: () => void;
|
|
284
|
-
/**
|
|
284
|
+
/** 停止流式响应 */
|
|
285
285
|
stopStreaming: () => void;
|
|
286
|
-
/**
|
|
286
|
+
/** 追加响应文本 */
|
|
287
287
|
appendResponse: (text: string) => void;
|
|
288
|
-
/**
|
|
288
|
+
/** 清空响应 */
|
|
289
289
|
clearResponse: () => void;
|
|
290
|
-
/**
|
|
290
|
+
/** 设置错误 */
|
|
291
291
|
setError: (error: string | undefined) => void;
|
|
292
|
-
/**
|
|
292
|
+
/** 取消当前流式响应 */
|
|
293
293
|
abort: (options?: AbortOptions) => void;
|
|
294
|
-
/**
|
|
294
|
+
/** 重置状态 */
|
|
295
295
|
reset: () => void;
|
|
296
|
-
/**
|
|
296
|
+
/** 是否正在流式传输 */
|
|
297
297
|
isStreaming: () => boolean;
|
|
298
|
-
/**
|
|
298
|
+
/** 订阅状态变更 */
|
|
299
299
|
subscribe: (listener: StreamingStateListener) => () => void;
|
|
300
|
-
/**
|
|
300
|
+
/** 开始 thinking */
|
|
301
301
|
startThinking: () => void;
|
|
302
|
-
/**
|
|
302
|
+
/** 追加 thinking 字符数 */
|
|
303
303
|
appendThinkingChars: (count: number) => void;
|
|
304
|
-
/**
|
|
304
|
+
/** 追加 thinking 内容 */
|
|
305
305
|
appendThinkingContent: (text: string) => void;
|
|
306
|
-
/**
|
|
306
|
+
/** 结束 thinking */
|
|
307
307
|
stopThinking: () => void;
|
|
308
|
-
/**
|
|
308
|
+
/** 清空 thinking 内容 (响应完成时调用) */
|
|
309
309
|
clearThinkingContent: () => void;
|
|
310
310
|
/** 璁剧疆褰撳墠宸ュ叿 */
|
|
311
311
|
setCurrentTool: (tool: string | undefined) => void;
|
|
312
|
-
/**
|
|
312
|
+
/** 追加工具输入字符数 */
|
|
313
313
|
appendToolInputChars: (count: number) => void;
|
|
314
|
-
/**
|
|
314
|
+
/** 追加工具输入内容 */
|
|
315
315
|
appendToolInputContent: (text: string) => void;
|
|
316
|
-
/**
|
|
316
|
+
/** 清空工具输入内容 */
|
|
317
317
|
clearToolInputContent: () => void;
|
|
318
318
|
/** 鑾峰彇褰撳墠鐨?AbortSignal */
|
|
319
319
|
getSignal: () => AbortSignal | undefined;
|
|
320
|
-
/**
|
|
320
|
+
/** 获取完整响应内容(包括缓冲区中未刷新的内容) */
|
|
321
321
|
getFullResponse: () => string;
|
|
322
|
-
/**
|
|
322
|
+
/** 获取完整 thinking 内容(包括缓冲区中未刷新的内容) */
|
|
323
323
|
getThinkingContent: () => string;
|
|
324
|
-
/** Start a new iteration -
|
|
324
|
+
/** Start a new iteration - 开始新迭代 */
|
|
325
325
|
startNewIteration: (iteration: number) => void;
|
|
326
|
-
/** Clear iteration history -
|
|
326
|
+
/** Clear iteration history - 清空迭代历史 */
|
|
327
327
|
clearIterationHistory: () => void;
|
|
328
|
-
/** Set maximum iterations -
|
|
328
|
+
/** Set maximum iterations - 设置最大迭代次数 */
|
|
329
329
|
setMaxIter: (maxIter: number) => void;
|
|
330
|
-
/** Start compacting context -
|
|
330
|
+
/** Start compacting context - 开始压缩上下文 */
|
|
331
331
|
startCompacting: () => void;
|
|
332
332
|
/** Stop compacting context - 缁撴潫鍘嬬缉涓婁笅鏂?*/
|
|
333
333
|
stopCompacting: () => void;
|
|
@@ -347,9 +347,9 @@ interface StreamingManager {
|
|
|
347
347
|
/**
|
|
348
348
|
* Create streaming manager - 鍒涘缓娴佸紡绠$悊鍣?
|
|
349
349
|
*
|
|
350
|
-
* Issue 048 fix: Use batch updates to reduce render frequency - Issue 048
|
|
351
|
-
* - Buffer streaming text and thinking content to 80ms cycle -
|
|
352
|
-
* - Sync with Spinner animation to avoid race conditions -
|
|
350
|
+
* Issue 048 fix: Use batch updates to reduce render frequency - Issue 048 修复: 使用批量更新减少渲染频率
|
|
351
|
+
* - Buffer streaming text and thinking content to 80ms cycle - 流式文本和 thinking 内容缓冲到 80ms 周期
|
|
352
|
+
* - Sync with Spinner animation to avoid race conditions - 与 Spinner 动画同步,避免竞态条件
|
|
353
353
|
*/
|
|
354
354
|
declare function createStreamingManager(): StreamingManager;
|
|
355
355
|
interface StreamingProviderProps {
|
|
@@ -361,15 +361,15 @@ interface StreamingProviderProps {
|
|
|
361
361
|
*/
|
|
362
362
|
declare function StreamingProvider({ children, onStateChange, }: StreamingProviderProps): React$1.ReactElement;
|
|
363
363
|
/**
|
|
364
|
-
* Get streaming state -
|
|
364
|
+
* Get streaming state - 获取流式状态
|
|
365
365
|
*/
|
|
366
366
|
declare function useStreamingState(): StreamingContextValue;
|
|
367
367
|
/**
|
|
368
|
-
* Get streaming actions -
|
|
368
|
+
* Get streaming actions - 获取流式操作
|
|
369
369
|
*/
|
|
370
370
|
declare function useStreamingActions(): StreamingActions;
|
|
371
371
|
/**
|
|
372
|
-
* Get complete streaming state and actions -
|
|
372
|
+
* Get complete streaming state and actions - 获取完整流式状态和操作
|
|
373
373
|
*/
|
|
374
374
|
declare function useStreaming(): {
|
|
375
375
|
state: StreamingContextValue;
|
|
@@ -410,27 +410,27 @@ declare const SingleLineTextInput: React$1.FC<{
|
|
|
410
410
|
}>;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
|
-
* InputPrompt - Input prompt component -
|
|
413
|
+
* InputPrompt - Input prompt component - 输入提示组件
|
|
414
414
|
*
|
|
415
415
|
* Integrates multi-line input, history navigation, keyboard shortcuts
|
|
416
|
-
* through a dedicated prompt input controller. -
|
|
416
|
+
* through a dedicated prompt input controller. - 通过独立的输入控制器集成多行输入、历史导航和键盘快捷键
|
|
417
417
|
*/
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* Extended props for InputPrompt with autocomplete support
|
|
421
|
-
* InputPrompt
|
|
421
|
+
* InputPrompt 的扩展属性,支持自动补全
|
|
422
422
|
*/
|
|
423
423
|
interface InputPromptAutocompleteProps extends InputPromptProps {
|
|
424
424
|
/** Working directory for file completion - 閺傚洣娆㈢悰銉ュ弿閻ㄥ嫬浼愭担婊呮窗瑜?*/
|
|
425
425
|
cwd?: string;
|
|
426
|
-
/** Git root for skill discovery -
|
|
426
|
+
/** Git root for skill discovery - 技能发现的 Git 根目录 */
|
|
427
427
|
gitRoot?: string;
|
|
428
|
-
/** Whether autocomplete is enabled (default: true) -
|
|
428
|
+
/** Whether autocomplete is enabled (default: true) - 是否启用自动补全(默认:true) */
|
|
429
429
|
autocompleteEnabled?: boolean;
|
|
430
430
|
}
|
|
431
431
|
declare const InputPrompt: React$1.FC<InputPromptAutocompleteProps>;
|
|
432
432
|
/**
|
|
433
|
-
* Simplified InputPrompt - single-line mode -
|
|
433
|
+
* Simplified InputPrompt - single-line mode - 简化版 InputPrompt - 单行模式
|
|
434
434
|
*/
|
|
435
435
|
declare const SimpleInputPrompt: React$1.FC<{
|
|
436
436
|
onSubmit: (text: string) => void;
|
|
@@ -2000,10 +2000,9 @@ declare function removeCustomProvider(name: string): boolean;
|
|
|
2000
2000
|
* mid-turn.
|
|
2001
2001
|
*
|
|
2002
2002
|
* Schema: this module relies on TypeScript's structural typing against
|
|
2003
|
-
* `KodaXMcpServerConfig`
|
|
2004
|
-
*
|
|
2005
|
-
*
|
|
2006
|
-
* CRUD does shape-level checks only (required `name`, recognized
|
|
2003
|
+
* `KodaXMcpServerConfig` exported directly from `@kodax-ai/agent`. Unlike
|
|
2004
|
+
* custom providers, MCP entries have no canonical zod schema in the SDK today,
|
|
2005
|
+
* so the CRUD does shape-level checks only (required `name`, recognized
|
|
2007
2006
|
* transport `type`, transport-shape coherence: stdio→command, http-like
|
|
2008
2007
|
* transports→url). Embedders that need stricter validation can
|
|
2009
2008
|
* layer it on top.
|
|
@@ -2021,13 +2020,13 @@ declare function removeCustomProvider(name: string): boolean;
|
|
|
2021
2020
|
* config (use {@link upsertMcpServer} / {@link removeMcpServer} for
|
|
2022
2021
|
* mutation). Order is undefined (object key order semantics).
|
|
2023
2022
|
*/
|
|
2024
|
-
declare function listMcpServers():
|
|
2023
|
+
declare function listMcpServers(): McpServersConfig;
|
|
2025
2024
|
/**
|
|
2026
2025
|
* Look up a single MCP server config by `name`. Returns `undefined`
|
|
2027
2026
|
* if no such server is configured. Returned value is a defensive
|
|
2028
2027
|
* deep copy.
|
|
2029
2028
|
*/
|
|
2030
|
-
declare function getMcpServerConfig(name: string):
|
|
2029
|
+
declare function getMcpServerConfig(name: string): McpServerConfig | undefined;
|
|
2031
2030
|
/**
|
|
2032
2031
|
* Add a new MCP server OR replace an existing one with the same
|
|
2033
2032
|
* name. Shape is validated via {@link validateMcpServerConfig}; on
|
|
@@ -2036,7 +2035,7 @@ declare function getMcpServerConfig(name: string): KodaXMcpServerConfig | undefi
|
|
|
2036
2035
|
* Returns the deep-cloned stored shape (so callers can observe the
|
|
2037
2036
|
* normalized value without re-reading the file).
|
|
2038
2037
|
*/
|
|
2039
|
-
declare function upsertMcpServer(name: string, config:
|
|
2038
|
+
declare function upsertMcpServer(name: string, config: McpServerConfig): McpServerConfig;
|
|
2040
2039
|
/**
|
|
2041
2040
|
* Remove the MCP server identified by `name`. Returns `true` when an
|
|
2042
2041
|
* entry was removed, `false` when no server with that name existed
|
|
@@ -2061,7 +2060,7 @@ declare function removeMcpServer(name: string): boolean;
|
|
|
2061
2060
|
* reachable — both are runtime concerns surfaced by McpServerRuntime
|
|
2062
2061
|
* at connection time.
|
|
2063
2062
|
*/
|
|
2064
|
-
declare function validateMcpServerConfig(name: string, config:
|
|
2063
|
+
declare function validateMcpServerConfig(name: string, config: McpServerConfig): void;
|
|
2065
2064
|
|
|
2066
2065
|
type SessionDedupeSkipReason = 'managed-task-worker' | 'unreadable' | 'no-match' | 'ambiguous-match' | 'move-failed';
|
|
2067
2066
|
interface SessionDedupeOptions {
|
|
@@ -2293,9 +2292,12 @@ declare function getPlanModeBlockReason(toolName: string, input: Record<string,
|
|
|
2293
2292
|
* config (FEATURE_092 v0.7.34 hotfix-3). They are evaluated on every
|
|
2294
2293
|
* classify() call, so mid-session `/model` and `/provider` swaps DO
|
|
2295
2294
|
* retarget the classifier without the user re-entering auto mode.
|
|
2296
|
-
*
|
|
2297
|
-
*
|
|
2298
|
-
*
|
|
2295
|
+
* AGENTS.md is wired the same way via the `getClaudeMd` live getter
|
|
2296
|
+
* (FEATURE_092 follow-up) — it reads `loadAgentsFiles` (mtime-cached)
|
|
2297
|
+
* on every classify so mid-session AGENTS.md edits reach the classifier
|
|
2298
|
+
* without a restart or `/reload`. Only `rules`
|
|
2299
|
+
* (`~/.kodax/auto-rules.jsonc`) remains captured-at-init; those edits
|
|
2300
|
+
* are rare and a restart applies them.
|
|
2299
2301
|
*/
|
|
2300
2302
|
|
|
2301
2303
|
interface AutoModeBootstrapDeps {
|
|
@@ -2307,7 +2309,6 @@ interface AutoModeBootstrapDeps {
|
|
|
2307
2309
|
*/
|
|
2308
2310
|
readonly askUser: AutoModeAskUser;
|
|
2309
2311
|
readonly projectRoot: string;
|
|
2310
|
-
readonly getAgentsFiles: () => AgentsFile[];
|
|
2311
2312
|
readonly getCurrentProviderName: () => string;
|
|
2312
2313
|
readonly getCurrentModel: () => string | undefined;
|
|
2313
2314
|
readonly getCurrentPermissionMode: () => PermissionMode;
|
|
@@ -2352,6 +2353,12 @@ interface ResolvedAutoModeBootstrapSettings {
|
|
|
2352
2353
|
readonly classifierModel?: string;
|
|
2353
2354
|
readonly classifierModelEnv?: string;
|
|
2354
2355
|
readonly timeoutMs?: number;
|
|
2356
|
+
/**
|
|
2357
|
+
* Issue 143 (WS3): speculative-classify quiet window in ms. Forwarded to the
|
|
2358
|
+
* guardrail's `speculativeWindowMs`. When undefined, the guardrail falls back
|
|
2359
|
+
* to the `KODAX_AUTO_SPECULATIVE_WINDOW_MS` env / `DEFAULT_WINDOW_MS = 500`.
|
|
2360
|
+
*/
|
|
2361
|
+
readonly speculativeWindowMs?: number;
|
|
2355
2362
|
}
|
|
2356
2363
|
interface AutoModeBootstrapResult {
|
|
2357
2364
|
/**
|
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 gn,$a as Co,A as Q,Aa as zn,Ab as Bo,B as T,Ba as Bn,Bb as Eo,C as U,Ca as En,Cb as Go,D as V,Da as Gn,Db as Ho,E as Y,Ea as Hn,Eb as Jo,F as Z,Fa as Jn,Fb as Qo,G as tt,Ga as Qn,Gb as To,H as nt,Ha as Tn,Hb as Uo,I as ot,Ia as Un,Ib as Vo,J as et,Ja as Vn,Jb as Yo,K as rt,Ka as Yn,Kb as Zo,L as at,La as Zn,Lb as te,M as pt,Ma as to,Mb as ne,N as lt,Na as no,Nb as oe,O as ut,Oa as oo,Ob as ee,P as ft,Pa as eo,Pb as re,Q as en,Qa as ro,Qb as ae,R as rn,Ra as ao,Rb as me,S as an,Sa as mo,Sb as ie,T as mn,Ta as io,Tb as se,U as sn,Ua as so,Ub as ce,V as cn,Va as co,W as dn,Wa as po,X as pn,Xa as lo,Y as ln,Ya as uo,Z as un,Za as fo,_ as fn,_a as go,a as D,aa as Cn,ab as xo,b as P,ba as xn,bb as yo,c as M,ca as yn,cb as Ko,d as b,da as Kn,db as Xo,e as w,ea as Xn,eb as ho,f as N,fa as hn,fb as Do,g as _,ga as Dn,gb as Po,h as j,ha as Pn,hb as Mo,i as k,ia as Mn,ib as bo,j as A,ja as bn,jb as wo,k as O,ka as wn,kb as No,l as R,la as Nn,lb as _o,m as S,ma as _n,mb as jo,n as v,na as jn,nb as ko,o as I,oa as kn,ob as Ao,p as L,pa as An,pb as Oo,q as W,qa as On,qb as Ro,r as F,ra as Rn,rb as So,s as $,sa as Sn,sb as vo,t as q,ta as vn,tb as Io,u as z,ua as In,ub as Lo,v as B,va as Ln,vb as Wo,w as E,wa as Wn,wb as Fo,x as G,xa as Fn,xb as $o,y as H,ya as $n,yb as qo,z as J,za as qn,zb as zo}from"./chunks/chunk-OBPB5BQ6.js";import{I as Jt,J as Qt,K as Tt,L as Ut,M as Vt,R as Yt,S as Zt,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,k as xt,l as yt,m as Kt,n as Wt,p as Ft,q as $t,r as qt,s as zt,u as Bt,v as Et,va as tn,w as Gt,wa as nn,x as Ht,xa as on}from"./chunks/chunk-QHWXPJEG.js";import"./chunks/chunk-6AU6EPO6.js";import"./chunks/chunk-CV6JHPEO.js";import{A as kt,B as At,C as Ot,D as Rt,E as St,F as vt,I as It,M as Lt,b as Xt,c as ht,d as Dt,e as Pt,f as Mt,h as bt,i as wt,j as Nt,k as _t,z as jt}from"./chunks/chunk-XXEIFNBE.js";import"./chunks/chunk-NKHXRN7G.js";import"./chunks/chunk-73Z7BK5H.js";import"./chunks/chunk-PIQWODWN.js";import"./chunks/chunk-CQ6EQG7E.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-526OILYL.js";import"./chunks/chunk-7QB55SYG.js";import"./chunks/chunk-HS2K74I4.js";import"./chunks/chunk-ZZDC75H4.js";import"./chunks/chunk-P4VF3JEP.js";import{a}from"./chunks/chunk-V4WSBIXB.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{Dn as App,en as AutocompleteContextProvider,tn as BUILTIN_COMMANDS,Jn as BackgroundTaskBar,Tn as ChildActivitySurface,Io as ConsoleCapturer,dt as DEFAULT_UI_STATE,zn as DialogSurface,un as DotsIndicator,Uo as FileSessionStorage,Mn as FullscreenTranscriptLayout,xn as HistoryItemRenderer,dn as InputPrompt,u as KODAX_COMMANDS_DIR,Dt as KODAX_CONFIG_FILE,Xt as KODAX_DIR,Ot as KODAX_EXAMPLE_CONFIG_FILE,ht as KODAX_SESSIONS_DIR,Nt as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Cn as LoadingIndicator,co as MemorySessionStorage,bn as MessageActions,yn as MessageList,wn as MessageSelector,En as NotificationsSurface,gt as PERMISSION_MODES,Pt as PREVIEW_MAX_LENGTH,_o as PendingInputsIndicator,fn as ProgressIndicator,_n as PromptComposer,An as PromptFooter,jn as PromptFooterLeftSide,kn as PromptFooterRightSide,On as PromptHelpMenu,qn as PromptSuggestionsSurface,Bn as QueuedCommandsSurface,Pn as SimpleApp,pn as SimpleInputPrompt,Kn as SimpleMessageDisplay,hn as SimpleStatusBar,tt as SingleLineTextInput,ln as Spinner,Hn as StashNotice,Xn as StatusBar,Gn as StatusNoticesSurface,Vn as StreamingProvider,mt as StreamingState,$n as SuggestionsDisplay,st as TOOL_STATUS_ICONS,sn as TextBuffer,Z as TextInput,gn as ThinkingIndicator,wo as ToolCallDisplay,it as ToolCallStatus,No as ToolGroup,bo as ToolProgressBar,Mo as ToolStatusBadge,Nn as TranscriptViewport,In as UIStateProvider,ao as _resetQueuedPromptsCacheForTests,me as archiveSession,so as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,Et as collectBashWriteTargets,xt as computeConfirmTools,Do as createCliEvents,Sn as createHistoryItem,mo as createInteractiveContext,Po as createJsonEvents,oo as createKeyMatcher,pt as createKeypressManager,po as createMemorySessionStorage,Ko as createRecoveryHistoryItem,xo as createRetryHistoryItem,ce as createSessionManager,Un as createStreamingManager,vn as createToolCall,Q as darkTheme,Vo as dedupeSessions,ae as deleteSession,vo as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,Xo as emitRecoveryHistoryItem,yo as emitRetryHistoryItem,Rt as ensureExampleConfigFile,on as executeCommand,lo as executeShellCommand,Tt as extractHistorySeedsFromMessage,Ut as extractHistorySeedsFromMessages,Vt as extractTextContent,Yt as extractTitle,ne as forkSession,Zt as formatMessagePreview,Rn as generateId,qt as generateSavePattern,Gt as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,zo as getCustomProviderConfig,y as getDefaultCommandDir,It as getGitRoot,at as getKeyDisplayName,Ho as getMcpServerConfig,Ht as getPlanModeBlockReason,jt as getProviderList,_t as getProviderModel,S as getTerminalHostCapabilities,Ro as getTerminalWidth,V as getTheme,Y as getThemeNames,wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,Mt as hydrateProcessEnvFromShell,zt as isAlwaysConfirmPath,Wt as isBashReadCommand,Ft as isBashWriteCommand,I as isClassicReplForced,et as isFunctionKey,v as isOwnedRendererPreferred,Bt as isPathInsideProject,yt as isPermissionMode,rt as isPrintable,kt as isProviderConfigured,M as isRemoteConptyHost,So as isScreenReader,uo as isShellCommand,fo as isShellCommandSuccess,w as isTmuxControlMode,$t as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,qo as listCustomProviders,Go as listMcpServers,re as listRunningSessions,Yo as listSessions,K as loadCommands,At as loadConfig,te as loadFullTranscript,Zo as loadSession,Qn as measureChildActivitySurfaceRows,T as minimalTheme,Kt as normalizePermissionMode,nn as parseCommand,h as parseCommandCall,nt as parseKeypress,Ct as permissionModeDisplayName,St as prepareRuntimeConfig,X as processCommandCall,$o as processSpecialSyntax,Lt as rateLimitedCall,bt as registerConfiguredCustomProviders,Eo as removeCustomProvider,Qo as removeMcpServer,N as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,O as resolveInteractiveSurfacePreference,Co as restoreHistoryItemsFromSession,oe as rewindSession,ho as runInkInteractiveMode,Fo as runInteractiveMode,vt as saveConfig,Jt as seedToHistoryItem,ee as setActiveEntry,z as splitByCodePoints,ko as supports256Colors,Oo as supportsEmoji,jo as supportsTrueColor,Ao as supportsUnicode,U as themes,Qt as toolCallSeedToHistoryToolCall,io as touchContext,go as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,ie as unarchiveSession,Bo as upsertCustomProvider,Jo as upsertMcpServer,an as useAutocomplete,rn as useAutocompleteContext,mn as useInputHistory,no as useKeypress,ut as useKeypressManager,ro as useQueuedPromptContents,eo as useQueuedPrompts,to as useStreaming,Zn as useStreamingActions,Yn as useStreamingState,cn as useTextBuffer,Fn as useUI,Wn as useUIActions,Ln as useUIState,To as validateMcpServerConfig,E as visualWidthCache,se as watchSessions,Lo as withCapture,Wo as withCaptureSync};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { c as CreatableHistoryItem, e as DeleteSessionResult, F as FullTranscriptSessionData,
|
|
2
|
-
export {
|
|
3
|
-
import './types-chunks/storage.d-
|
|
4
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
5
|
-
import './types-chunks/types.d-
|
|
1
|
+
export { c as CreatableHistoryItem, e as DeleteSessionResult, F as FullTranscriptSessionData, s as HistorySeedSourceMessage, w as ListSessionsOptions, R as RestoreHistoryItemsFromSessionInput, z as RestoredHistorySeed, B as RunningSessionInfo, S as SessionManager, E as SessionSummary, G as SessionTranscriptEntry, J as SessionTranscriptEntryType, a4 as WatchSessionsCallback, a5 as archiveSession, a6 as createSessionManager, a7 as deleteSession, a8 as extractHistorySeedsFromMessage, a9 as extractHistorySeedsFromMessages, ac as forkSession, ae as listRunningSessions, af as listSessions, ag as loadFullTranscript, ah as loadSession, ai as restoreHistoryItemsFromSession, aj as rewindSession, al as setActiveEntry, ao as unarchiveSession, ap as watchSessions } from './types-chunks/sdk-session-21Tt3N_x.js';
|
|
2
|
+
export { ai as KodaXSessionUiHistoryItem, aj as KodaXSessionUiHistoryItemType, ak as KodaXSessionUiTextHistoryItem, al as KodaXSessionUiTextHistoryItemType, am as KodaXSessionUiToolCall, an as KodaXSessionUiToolCallStatus, ao as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-DHow2y2G.js';
|
|
3
|
+
import './types-chunks/storage.d-BsZrBPYu.js';
|
|
4
|
+
import './types-chunks/bash-prefix-extractor.d-D3cddmyV.js';
|
|
5
|
+
import './types-chunks/types.d-Ci5YPFEh.js';
|
|
6
6
|
import 'vscode-languageserver-protocol';
|
|
7
|
+
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
7
8
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
8
|
-
import './types-chunks/base.d-
|
|
9
|
-
import './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
9
|
+
import './types-chunks/base.d-BA9Doaj_.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$a as o,Jb as i,Kb as t,Lb as r,Mb as n,Nb as a,Ob as S,Pb as l,Qb as y,Rb as d,Sb as m,Tb as p,Ub as c}from"./chunks/chunk-
|
|
2
|
+
import{$a as o,Jb as i,Kb as t,Lb as r,Mb as n,Nb as a,Ob as S,Pb as l,Qb as y,Rb as d,Sb as m,Tb as p,Ub as c}from"./chunks/chunk-OBPB5BQ6.js";import{K as s,L as e}from"./chunks/chunk-QHWXPJEG.js";import"./chunks/chunk-6AU6EPO6.js";import"./chunks/chunk-CV6JHPEO.js";import"./chunks/chunk-XXEIFNBE.js";import"./chunks/chunk-NKHXRN7G.js";import"./chunks/chunk-73Z7BK5H.js";import"./chunks/chunk-PIQWODWN.js";import"./chunks/chunk-CQ6EQG7E.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-526OILYL.js";import"./chunks/chunk-7QB55SYG.js";import"./chunks/chunk-HS2K74I4.js";import"./chunks/chunk-ZZDC75H4.js";import"./chunks/chunk-P4VF3JEP.js";import"./chunks/chunk-V4WSBIXB.js";export{d as archiveSession,c as createSessionManager,y as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,n as forkSession,l as listRunningSessions,i as listSessions,r as loadFullTranscript,t as loadSession,o as restoreHistoryItemsFromSession,a as rewindSession,S as setActiveEntry,m as unarchiveSession,p as watchSessions};
|
package/dist/sdk-skills.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ac as k,
|
|
2
|
+
import{Ac as o,Ec as k,Fc as r,Gc as S,Hc as s,Ic as n,Jc as g,Kc as u,Lc as c,Mc as x,Nc as d,Oc as P,Pc as R,Qc as h,Rc as p,Sc as v,Tc as y,Uc as M,Vc as f,Wc as m,Xc as E,vc as l,wc as e,xc as i,yc as t,zc as a}from"./chunks/chunk-ZZDC75H4.js";import"./chunks/chunk-P4VF3JEP.js";import"./chunks/chunk-V4WSBIXB.js";export{y as SkillExecutor,R as SkillRegistry,x as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,d as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,a as getDefaultSkillPaths,g as getNestedSkillPaths,o as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};
|