@kodax-ai/kodax 0.7.66 → 0.7.68
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 +180 -3
- package/README.md +51 -16
- package/README_CN.md +34 -13
- package/dist/chunks/agent-DATNZOBK.js +2 -0
- package/dist/chunks/argument-completer-X7MMM7Y6.js +2 -0
- package/dist/chunks/chunk-5GL55MOH.js +36 -0
- package/dist/chunks/chunk-67XJ4YUA.js +703 -0
- package/dist/chunks/chunk-C4SBXBWH.js +346 -0
- package/dist/chunks/{chunk-ALS32RNZ.js → chunk-CC4BVVE7.js} +9 -9
- package/dist/chunks/{chunk-VS4CDDEF.js → chunk-CTHUX5ZH.js} +221 -221
- package/dist/chunks/{chunk-YRBNXFHY.js → chunk-HFM2D5BP.js} +1 -1
- package/dist/chunks/chunk-HLBHSA2B.js +325 -0
- package/dist/chunks/{chunk-O7N22GJ3.js → chunk-K2NCKRVY.js} +16 -14
- package/dist/chunks/chunk-KGAI32VS.js +22 -0
- package/dist/chunks/{chunk-QAQ2HNXD.js → chunk-KIQRCGVR.js} +126 -112
- package/dist/chunks/chunk-MP52BDK5.js +15 -0
- package/dist/chunks/chunk-O5OJQFPY.js +307 -0
- package/dist/chunks/chunk-OIELNE6Z.js +56 -0
- package/dist/chunks/chunk-PEGSHZAA.js +5 -0
- package/dist/chunks/chunk-TOGESFRN.js +2 -0
- package/dist/chunks/compaction-config-BXEDHIQP.js +2 -0
- package/dist/chunks/{construction-bootstrap-3XDS2D5K.js → construction-bootstrap-PYWJHO35.js} +1 -1
- package/dist/chunks/dist-76PJHNSG.js +2 -0
- package/dist/chunks/{dist-4PXB7U22.js → dist-HTDJRAD6.js} +1 -1
- package/dist/chunks/host-UAXIDZ6V.js +2 -0
- package/dist/chunks/run-manager-UCXB4G22.js +2 -0
- package/dist/chunks/utils-S63V5UCM.js +2 -0
- package/dist/index.d.ts +19 -16
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1292 -1255
- package/dist/runtime-worker.js +1196 -1153
- package/dist/sdk-agent.d.ts +143 -18
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +281 -20
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +618 -0
- package/dist/sdk-experimental-memory.js +2 -0
- package/dist/sdk-llm.d.ts +6 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-repl.d.ts +26 -17
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +102 -14
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -6
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +12 -12
- package/dist/types-chunks/{base.d-DalIRhbb.d.ts → base.d-C8mXDhLL.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-BjkITAva.d.ts → bash-prefix-extractor.d-Dm-T865v.d.ts} +67 -12
- package/dist/types-chunks/{capability-learning.d-BQB0M70w.d.ts → capability-learning.d-BLEmCib0.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-hVhPNkHd.d.ts → capsule.d-CzaamUUv.d.ts} +5 -5
- package/dist/types-chunks/{commands.d-C3B1TdGM.d.ts → commands.d-DxKjVSNU.d.ts} +4 -4
- package/dist/types-chunks/{guardrail.d-wk-s0psS.d.ts → guardrail.d-CPDfZyJp.d.ts} +3 -3
- package/dist/types-chunks/{guardrail.d-C_Siraua.d.ts → guardrail.d-D7r6zVSR.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-jtREVfEq.d.ts → public-api.d-BcKbBy1E.d.ts} +12 -7
- package/dist/types-chunks/{resolver.d-CGkfRULj.d.ts → resolver.d-DmBnoilY.d.ts} +2 -2
- package/dist/types-chunks/{run-manager.d-CFknOfo1.d.ts → run-manager.d-CSj7_kWk.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-CLqyfAmf.d.ts → sdk-session-C6nDgyh8.d.ts} +4 -4
- package/dist/types-chunks/{types.d-Bp4Lm1jv.d.ts → types.d-CO_ZkmOd.d.ts} +6 -1
- package/dist/types-chunks/{types.d-CUN_bZU7.d.ts → types.d-CzscbsG0.d.ts} +4 -4
- package/dist/types-chunks/{process.d-CY2g03Mb.d.ts → types.d-D2frCRaY.d.ts} +505 -10
- package/dist/types-chunks/{types.d-BMLxKV69.d.ts → types.d-D9FKbAmf.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-C1rpoeDh.d.ts → utils.d-DOXxnOnI.d.ts} +9 -5
- package/docs/SDK_EMBEDDER_GUIDE.md +3179 -0
- package/package.json +6 -1
- package/dist/chunks/agent-KER4WDNO.js +0 -2
- package/dist/chunks/argument-completer-HK3MHA3K.js +0 -2
- package/dist/chunks/chunk-3HKBBY74.js +0 -339
- package/dist/chunks/chunk-AKBH2EEE.js +0 -8
- package/dist/chunks/chunk-MHRN2LQV.js +0 -328
- package/dist/chunks/chunk-NBQW7PNZ.js +0 -18
- package/dist/chunks/chunk-QJVZZSEO.js +0 -56
- package/dist/chunks/chunk-TLJGOKBT.js +0 -729
- package/dist/chunks/chunk-WBBEJIAY.js +0 -306
- package/dist/chunks/chunk-WMIZCY2J.js +0 -2
- package/dist/chunks/compaction-config-7GMUFNPB.js +0 -2
- package/dist/chunks/dist-4YAYT2TO.js +0 -2
- package/dist/chunks/host-KG3456QP.js +0 -2
- package/dist/chunks/run-manager-6CAH3KTA.js +0 -2
- package/dist/chunks/utils-OT5ENFUL.js +0 -2
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{$b as A,Hb as e,Ib as t,Jb as r,Kb as a,Lb as i,Mb as p,Nb as c,Ob as o,Pb as M,Qb as n,Rb as s,Sb as l,Tb as d,Ub as u,Vb as C,Wb as v,Xb as g,Yb as S,Zb as h,_b as R,ac as b,bc as f}from"./chunks/chunk-67XJ4YUA.js";import"./chunks/chunk-5GL55MOH.js";import"./chunks/chunk-PZTG2C33.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as KodaXImageBlock } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
2
2
|
|
|
3
3
|
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
4
4
|
interface KodaXMediaErrorOptions {
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps, M as Message, Q as UIState, c as CreatableHistoryItem, e as HistoryItem, N as ToolCall, U as UIActions, K as KeyInfo, t as KeypressHandler, y as StreamingState, v as PromptEditingMode, I as InputPromptProps, S as StatusBarProps, F as Theme, O as ToolCallStatus, z as Suggestion, V as UseTextBufferReturn, H as HistoryEntry, P as PastedContent, k as HistoryItemInfo } from './types-chunks/sdk-session-
|
|
3
|
-
export { a as AppState, C as Completer, b as Completion, d as CursorPosition, D as DEFAULT_UI_STATE, f as HistoryItemAssistant, g as HistoryItemBase, h as HistoryItemError, i as HistoryItemEvent, j as HistoryItemHint, l as HistoryItemSidecar, m as HistoryItemSystem, n as HistoryItemThinking, o as HistoryItemToolGroup, p as HistoryItemType, q as HistoryItemUser, r as HistorySeedSourceMessage, s as KeypressEvent, u as KeypressHandlerPriority, L as LegacyMessageListProps, w as PromptSubmitPayload, R as RestoreHistoryItemsFromSessionInput, x as RestoredHistorySeed, T as TOOL_STATUS_ICONS, B as TextBuffer, E as TextBufferOptions, G as ThemeColors, J as ThemeSymbols, W as VisualCursor, X as VisualLayout, Y as extractHistorySeedsFromMessage, Z as extractHistorySeedsFromMessages, _ as extractTextContent, $ as extractTitle, a0 as formatMessagePreview, a1 as restoreHistoryItemsFromSession, a2 as seedToHistoryItem, a3 as toolCallSeedToHistoryToolCall, a4 as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-
|
|
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, L as KodaXEvents, r as KodaXAgentMode, aN as ProviderRecoveryEvent, a5 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-
|
|
6
|
-
import { c as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
import { f as PermissionMode } from './types-chunks/public-api.d-
|
|
8
|
-
export { A as AppendClientNoticeOptions, C as CompactSessionOptions, a as CompactSessionResult, b as ConfirmResult, D as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, c as FileSessionStorage, d as FullTranscriptSessionData, L as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, e as PermissionContext, R as RunningSessionInfo, S as SessionData, g as SessionManager, h as SessionStorage, i as SessionSummary, j as SessionTranscriptEntry, k as SessionTranscriptEntryType, W as WatchSessionsCallback, l as appendClientNotice, m as archiveSession, n as compactSession, o as computeConfirmTools, p as createMemorySessionStorage, q as createSessionManager, r as deleteSession, s as forkSession, t as isPermissionMode, u as listRunningSessions, v as listSessions, w as loadFullTranscript, x as loadSession, y as normalizePermissionMode, z as permissionModeDisplayName, B as rewindSession, E as setActiveEntry, G as unarchiveSession, H as watchSessions } from './types-chunks/public-api.d-
|
|
9
|
-
import { c as CommandInfo } from './types-chunks/utils.d-
|
|
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_SESSIONS_DIR, l as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RuntimeSurfaceMode, m as RuntimeSurfaceStatus, n as createInteractiveContext, o as ensureExampleConfigFile, p as getGitRoot, q as getProviderList, r as getProviderModel, s as getVersion, t as hydrateProcessEnvFromShell, u as isProviderConfigured, v as loadConfig, w as prepareRuntimeConfig, x as rateLimitedCall, y as registerConfiguredCustomProviders, z as resolveRuntimeEffortSelection, A as resolveRuntimeModelSelection, B as resolveRuntimeProviderSelection, D as saveConfig, E as touchContext } from './types-chunks/utils.d-
|
|
11
|
-
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
12
|
-
export {
|
|
2
|
+
import { A as AppProps, M as Message, Q as UIState, c as CreatableHistoryItem, e as HistoryItem, N as ToolCall, U as UIActions, K as KeyInfo, t as KeypressHandler, y as StreamingState, v as PromptEditingMode, I as InputPromptProps, S as StatusBarProps, F as Theme, O as ToolCallStatus, z as Suggestion, V as UseTextBufferReturn, H as HistoryEntry, P as PastedContent, k as HistoryItemInfo } from './types-chunks/sdk-session-C6nDgyh8.js';
|
|
3
|
+
export { a as AppState, C as Completer, b as Completion, d as CursorPosition, D as DEFAULT_UI_STATE, f as HistoryItemAssistant, g as HistoryItemBase, h as HistoryItemError, i as HistoryItemEvent, j as HistoryItemHint, l as HistoryItemSidecar, m as HistoryItemSystem, n as HistoryItemThinking, o as HistoryItemToolGroup, p as HistoryItemType, q as HistoryItemUser, r as HistorySeedSourceMessage, s as KeypressEvent, u as KeypressHandlerPriority, L as LegacyMessageListProps, w as PromptSubmitPayload, R as RestoreHistoryItemsFromSessionInput, x as RestoredHistorySeed, T as TOOL_STATUS_ICONS, B as TextBuffer, E as TextBufferOptions, G as ThemeColors, J as ThemeSymbols, W as VisualCursor, X as VisualLayout, Y as extractHistorySeedsFromMessage, Z as extractHistorySeedsFromMessages, _ as extractTextContent, $ as extractTitle, a0 as formatMessagePreview, a1 as restoreHistoryItemsFromSession, a2 as seedToHistoryItem, a3 as toolCallSeedToHistoryToolCall, a4 as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-C6nDgyh8.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-DxKjVSNU.js';
|
|
5
|
+
import { a as BashPrefixExtractor, L as KodaXEvents, r as KodaXAgentMode, aN as ProviderRecoveryEvent, a5 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-Dm-T865v.js';
|
|
6
|
+
import { c as QueuedMessage } from './types-chunks/types.d-D9FKbAmf.js';
|
|
7
|
+
import { f as PermissionMode } from './types-chunks/public-api.d-BcKbBy1E.js';
|
|
8
|
+
export { A as AppendClientNoticeOptions, C as CompactSessionOptions, a as CompactSessionResult, b as ConfirmResult, D as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, c as FileSessionStorage, d as FullTranscriptSessionData, L as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, e as PermissionContext, R as RunningSessionInfo, S as SessionData, g as SessionManager, h as SessionStorage, i as SessionSummary, j as SessionTranscriptEntry, k as SessionTranscriptEntryType, W as WatchSessionsCallback, l as appendClientNotice, m as archiveSession, n as compactSession, o as computeConfirmTools, p as createMemorySessionStorage, q as createSessionManager, r as deleteSession, s as forkSession, t as isPermissionMode, u as listRunningSessions, v as listSessions, w as loadFullTranscript, x as loadSession, y as normalizePermissionMode, z as permissionModeDisplayName, B as rewindSession, E as setActiveEntry, G as unarchiveSession, H as watchSessions } from './types-chunks/public-api.d-BcKbBy1E.js';
|
|
9
|
+
import { c as CommandInfo } from './types-chunks/utils.d-DOXxnOnI.js';
|
|
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_SESSIONS_DIR, l as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RuntimeSurfaceMode, m as RuntimeSurfaceStatus, n as createInteractiveContext, o as ensureExampleConfigFile, p as getGitRoot, q as getProviderList, r as getProviderModel, s as getVersion, t as hydrateProcessEnvFromShell, u as isProviderConfigured, v as loadConfig, w as prepareRuntimeConfig, x as rateLimitedCall, y as registerConfiguredCustomProviders, z as resolveRuntimeEffortSelection, A as resolveRuntimeModelSelection, B as resolveRuntimeProviderSelection, D as saveConfig, E as touchContext } from './types-chunks/utils.d-DOXxnOnI.js';
|
|
11
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
12
|
+
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
13
13
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
14
|
-
export {
|
|
15
|
-
import { a as AutoModeAskUser, S as SignalCollector, g as AutoModeToolGuardrail, o as RulesLoadResult } from './types-chunks/guardrail.d-
|
|
14
|
+
export { bg as KodaXSessionUiHistoryItem, bh as KodaXSessionUiHistoryItemType, bi as KodaXSessionUiTextHistoryItem, bj as KodaXSessionUiTextHistoryItemType, bk as KodaXSessionUiToolCall, bl as KodaXSessionUiToolCallStatus, bm as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-D2frCRaY.js';
|
|
15
|
+
import { a as AutoModeAskUser, S as SignalCollector, g as AutoModeToolGuardrail, o as RulesLoadResult } from './types-chunks/guardrail.d-CPDfZyJp.js';
|
|
16
16
|
import './types-chunks/types.d-vJExiRje.js';
|
|
17
17
|
import 'vscode-languageserver-protocol';
|
|
18
18
|
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
19
19
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
20
|
-
import './types-chunks/base.d-
|
|
20
|
+
import './types-chunks/base.d-C8mXDhLL.js';
|
|
21
21
|
import 'readline';
|
|
22
22
|
import 'child_process';
|
|
23
|
-
import './types-chunks/guardrail.d-
|
|
23
|
+
import './types-chunks/guardrail.d-D7r6zVSR.js';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* App - KodaX CLI root component.
|
|
@@ -220,6 +220,15 @@ declare function getBashOutsideProjectWriteRisk(command: string, projectRoot: st
|
|
|
220
220
|
*/
|
|
221
221
|
declare function getPlanModeBlockReason(toolName: string, input: Record<string, unknown>, projectRoot?: string): string | null;
|
|
222
222
|
|
|
223
|
+
interface SessionPickerItem {
|
|
224
|
+
readonly id: string;
|
|
225
|
+
readonly title: string;
|
|
226
|
+
readonly msgCount: number;
|
|
227
|
+
readonly createdAt?: string;
|
|
228
|
+
readonly surface?: string;
|
|
229
|
+
}
|
|
230
|
+
declare function runSessionPicker(sessions: readonly SessionPickerItem[]): Promise<SessionPickerItem | undefined>;
|
|
231
|
+
|
|
223
232
|
/**
|
|
224
233
|
* KodaX CLI Event Handler - CLI 事件处理器
|
|
225
234
|
*
|
|
@@ -2413,5 +2422,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
|
|
|
2413
2422
|
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
2414
2423
|
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
2415
2424
|
|
|
2416
|
-
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, 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, 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, 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 };
|
|
2417
|
-
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, 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, 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 };
|
|
2425
|
+
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, 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, 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 };
|
|
2426
|
+
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, 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 Dn,$a as Po,A as Q,Aa as Tn,Ab as Uo,B as T,Ba as Un,Bb as Vo,C as U,Ca as Vn,Cb as Yo,D as V,Da as Yn,Db as Zo,E as Y,Ea as Zn,Eb as te,F as Z,Fa as to,Fb as ne,G as tt,Ga as no,Gb as oe,H as nt,Ha as oo,Hb as ee,I as ot,Ia as eo,Ib as re,J as et,Ja as ro,Jb as ae,K as rt,Ka as ao,Kb as me,L as at,La as mo,Lb as ie,M as pt,Ma as io,Mb as se,N as lt,Na as so,Nb as ce,O as ut,Oa as co,Ob as de,P as ft,Pa as po,Pb as pe,Q as pn,Qa as lo,Qb as le,R as ln,Ra as uo,Rb as ue,S as un,Sa as fo,Sb as fe,T as fn,Ta as go,Tb as ge,U as gn,Ua as Co,Ub as Ce,V as Cn,Va as xo,Vb as xe,W as xn,Wa as yo,Wb as ye,X as yn,Xa as Ko,Y as Kn,Ya as Xo,Z as Xn,Za as ho,_ as hn,_a as Do,a as D,aa as Pn,ab as Mo,b as P,ba as Mn,bb as bo,c as M,ca as bn,cb as wo,d as b,da as wn,db as No,e as w,ea as Nn,eb as _o,f as N,fa as _n,fb as jo,g as _,ga as jn,gb as ko,h as j,ha as kn,hb as Ao,i as k,ia as An,ib as Oo,j as A,ja as On,jb as Ro,k as O,ka as Rn,kb as So,l as R,la as Sn,lb as vo,m as S,ma as vn,mb as Io,n as v,na as In,nb as Lo,o as I,oa as Ln,ob as Wo,p as L,pa as Wn,pb as Fo,q as W,qa as Fn,qb as $o,r as F,ra as $n,rb as qo,s as $,sa as qn,sb as zo,t as q,ta as zn,tb as Bo,u as z,ua as Bn,ub as Eo,v as B,va as En,vb as Go,w as E,wa as Gn,wb as Ho,x as G,xa as Hn,xb as Jo,y as H,ya as Jn,yb as Qo,z as J,za as Qn,zb as To}from"./chunks/chunk-
|
|
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{jn as App,pn as AutocompleteContextProvider,mn as BUILTIN_COMMANDS,to as BackgroundTaskBar,oo as ChildActivitySurface,
|
|
2
|
+
import{$ as Dn,$a as Po,A as Q,Aa as Tn,Ab as Uo,B as T,Ba as Un,Bb as Vo,C as U,Ca as Vn,Cb as Yo,D as V,Da as Yn,Db as Zo,E as Y,Ea as Zn,Eb as te,F as Z,Fa as to,Fb as ne,G as tt,Ga as no,Gb as oe,H as nt,Ha as oo,Hb as ee,I as ot,Ia as eo,Ib as re,J as et,Ja as ro,Jb as ae,K as rt,Ka as ao,Kb as me,L as at,La as mo,Lb as ie,M as pt,Ma as io,Mb as se,N as lt,Na as so,Nb as ce,O as ut,Oa as co,Ob as de,P as ft,Pa as po,Pb as pe,Q as pn,Qa as lo,Qb as le,R as ln,Ra as uo,Rb as ue,S as un,Sa as fo,Sb as fe,T as fn,Ta as go,Tb as ge,U as gn,Ua as Co,Ub as Ce,V as Cn,Va as xo,Vb as xe,W as xn,Wa as yo,Wb as ye,X as yn,Xa as Ko,Xb as Ke,Y as Kn,Ya as Xo,Z as Xn,Za as ho,_ as hn,_a as Do,a as D,aa as Pn,ab as Mo,b as P,ba as Mn,bb as bo,c as M,ca as bn,cb as wo,d as b,da as wn,db as No,e as w,ea as Nn,eb as _o,f as N,fa as _n,fb as jo,g as _,ga as jn,gb as ko,h as j,ha as kn,hb as Ao,i as k,ia as An,ib as Oo,j as A,ja as On,jb as Ro,k as O,ka as Rn,kb as So,l as R,la as Sn,lb as vo,m as S,ma as vn,mb as Io,n as v,na as In,nb as Lo,o as I,oa as Ln,ob as Wo,p as L,pa as Wn,pb as Fo,q as W,qa as Fn,qb as $o,r as F,ra as $n,rb as qo,s as $,sa as qn,sb as zo,t as q,ta as zn,tb as Bo,u as z,ua as Bn,ub as Eo,v as B,va as En,vb as Go,w as E,wa as Gn,wb as Ho,x as G,xa as Hn,xb as Jo,y as H,ya as Jn,yb as Qo,z as J,za as Qn,zb as To}from"./chunks/chunk-O5OJQFPY.js";import{I as Yt,J as Zt,K as tn,L as nn,M as on,R as en,S as rn,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 zt,p as Bt,q as Et,r as Gt,s as Ht,t as Jt,u as Qt,v as Tt,va as an,w as Ut,wa as mn,x as Vt,xa as sn,ya as cn,za as dn}from"./chunks/chunk-CTHUX5ZH.js";import{A as At,B as Ot,C as Rt,D as St,G as vt,H as It,J as Lt,K as Wt,L as Ft,N as $t,R as qt,b as ht,c as Dt,d as Pt,e as Mt,f as bt,h as wt,i as Nt,j as _t,k as jt,z as kt}from"./chunks/chunk-OIELNE6Z.js";import"./chunks/chunk-TOGESFRN.js";import"./chunks/chunk-QJJKMNZF.js";import"./chunks/chunk-KIQRCGVR.js";import"./chunks/chunk-CC4BVVE7.js";import"./chunks/chunk-KGAI32VS.js";import"./chunks/chunk-HLBHSA2B.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-PEGSHZAA.js";import"./chunks/chunk-HFM2D5BP.js";import"./chunks/chunk-C4SBXBWH.js";import"./chunks/chunk-K2NCKRVY.js";import"./chunks/chunk-67XJ4YUA.js";import"./chunks/chunk-5GL55MOH.js";import"./chunks/chunk-PZTG2C33.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{jn as App,pn as AutocompleteContextProvider,mn as BUILTIN_COMMANDS,to as BackgroundTaskBar,oo as ChildActivitySurface,Eo as ConsoleCapturer,dt as DEFAULT_UI_STATE,Tn as DialogSurface,Xn as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,re as FileSessionStorage,An as FullscreenTranscriptLayout,Mn as HistoryItemRenderer,xn as InputPrompt,u as KODAX_COMMANDS_DIR,Pt as KODAX_CONFIG_FILE,ht as KODAX_DIR,Rt as KODAX_EXAMPLE_CONFIG_FILE,Dt as KODAX_SESSIONS_DIR,_t as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Pn as LoadingIndicator,xo as MemorySessionStorage,On as MessageActions,bn as MessageList,Rn as MessageSelector,Vn as NotificationsSurface,gt as PERMISSION_MODES,Mt as PREVIEW_MAX_LENGTH,Io as PendingInputsIndicator,hn as ProgressIndicator,vn as PromptComposer,Wn as PromptFooter,In as PromptFooterLeftSide,Ln as PromptFooterRightSide,Fn as PromptHelpMenu,Qn as PromptSuggestionsSurface,Un as QueuedCommandsSurface,kn as SimpleApp,yn as SimpleInputPrompt,wn as SimpleMessageDisplay,_n as SimpleStatusBar,tt as SingleLineTextInput,Kn as Spinner,Zn as StashNotice,Nn as StatusBar,Yn as StatusNoticesSurface,ro as StreamingProvider,mt as StreamingState,Jn as SuggestionsDisplay,st as TOOL_STATUS_ICONS,gn as TextBuffer,Z as TextInput,Dn as ThinkingIndicator,So as ToolCallDisplay,it as ToolCallStatus,vo as ToolGroup,Ro as ToolProgressBar,Oo as ToolStatusBadge,Sn as TranscriptViewport,Bn as UIStateProvider,uo as _resetQueuedPromptsCacheForTests,de as appendClientNotice,Ce as archiveSession,Co as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,Tt as collectBashWriteTargets,me as compactSession,yt as computeConfirmTools,ko as createCliEvents,qn as createHistoryItem,fo as createInteractiveContext,Ao as createJsonEvents,co as createKeyMatcher,pt as createKeypressManager,yo as createMemorySessionStorage,wo as createRecoveryHistoryItem,Mo as createRetryHistoryItem,Ke as createSessionManager,eo as createStreamingManager,zn as createToolCall,Q as darkTheme,ae as dedupeSessions,ge as deleteSession,Bo as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,No as emitRecoveryHistoryItem,bo as emitRetryHistoryItem,St as ensureExampleConfigFile,dn as executeCommand,Ko as executeShellCommand,tn as extractHistorySeedsFromMessage,nn as extractHistorySeedsFromMessages,on as extractTextContent,en as extractTitle,pe as forkSession,rn as formatMessagePreview,$n as generateId,Gt as generateSavePattern,Ut as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,sn as getCommandRegistry,Uo as getCustomProviderConfig,y as getDefaultCommandDir,$t as getGitRoot,at as getKeyDisplayName,te as getMcpServerConfig,Vt as getPlanModeBlockReason,kt as getProviderList,jt as getProviderModel,S as getTerminalHostCapabilities,qo as getTerminalWidth,V as getTheme,Y as getThemeNames,Nt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,bt as hydrateProcessEnvFromShell,Ht as isAlwaysConfirmPath,zt as isBashReadCommand,Bt as isBashWriteCommand,I as isClassicReplForced,Jt as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,Qt as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,At as isProviderConfigured,M as isRemoteConptyHost,zo as isScreenReader,Xo as isShellCommand,ho as isShellCommandSuccess,w as isTmuxControlMode,Et as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,To as listCustomProviders,Zo as listMcpServers,an as listRegisteredCommands,fe as listRunningSessions,ie as listSessions,K as loadCommands,Ot as loadConfig,ce as loadFullTranscript,se as loadSession,no as measureChildActivitySurfaceRows,T as minimalTheme,Xt as normalizePermissionMode,cn as parseCommand,h as parseCommandCall,nt as parseKeypress,Ct as permissionModeDisplayName,vt as prepareRuntimeConfig,X as processCommandCall,Qo as processSpecialSyntax,qt as rateLimitedCall,wt as registerConfiguredCustomProviders,Yo as removeCustomProvider,oe as removeMcpServer,N as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,O as resolveInteractiveSurfacePreference,Ft as resolveRuntimeEffortSelection,Wt as resolveRuntimeModelSelection,Lt as resolveRuntimeProviderSelection,Po as restoreHistoryItemsFromSession,le as rewindSession,_o as runInkInteractiveMode,Jo as runInteractiveMode,jo as runSessionPicker,It as saveConfig,Yt as seedToHistoryItem,ue as setActiveEntry,z as splitByCodePoints,Wo as supports256Colors,$o as supportsEmoji,Lo as supportsTrueColor,Fo as supportsUnicode,U as themes,Zt as toolCallSeedToHistoryToolCall,go as touchContext,Do as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,xe as unarchiveSession,Vo as upsertCustomProvider,ne as upsertMcpServer,un as useAutocomplete,ln as useAutocompleteContext,fn as useInputHistory,so as useKeypress,ut as useKeypressManager,lo as useQueuedPromptContents,po as useQueuedPrompts,io as useStreaming,mo as useStreamingActions,ao as useStreamingState,Cn as useTextBuffer,Hn as useUI,Gn as useUIActions,En as useUIState,ee as validateMcpServerConfig,E as visualWidthCache,ye as watchSessions,Go as withCapture,Ho as withCaptureSync};
|
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { X as KodaXOptions, L as KodaXEvents, a5 as KodaXResult, b0 as RuntimeContextBudgetSnapshot, b7 as RuntimeToolExposurePlan } from './types-chunks/bash-prefix-extractor.d-
|
|
4
|
-
import {
|
|
1
|
+
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
2
|
+
export { k as KodaXMessage } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
3
|
+
import { X as KodaXOptions, L as KodaXEvents, a5 as KodaXResult, b0 as RuntimeContextBudgetSnapshot, b7 as RuntimeToolExposurePlan } from './types-chunks/bash-prefix-extractor.d-Dm-T865v.js';
|
|
4
|
+
import { x as AgentExecutorFactory, p as AgentDispatchPolicy, n as AgentCredentialBroker, g as AgentArtifactPolicy, o as AgentDispatchContext, aP as KodaXImageInputArtifact, aS as KodaXInputArtifactSource, bo as KodaXVideoInputArtifact, dq as WorkflowProcessSnapshot, dj as WorkflowProcessEvent, N as AgentRegistrationService, am as DispatchableAgentQuery, ak as DispatchableAgentListing, K as AgentPreflightInput, L as AgentPreflightResult, V as AgentTaskService } from './types-chunks/types.d-D2frCRaY.js';
|
|
5
5
|
import { i as SkillMetadata } from './types-chunks/types.d-vJExiRje.js';
|
|
6
6
|
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
7
7
|
import { s as McpServerStatus, t as McpServerToolList } from './types-chunks/manager.d-Zum9cGHU.js';
|
|
8
|
-
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-
|
|
9
|
-
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-
|
|
10
|
-
import { D as saveConfig, c as CommandInfo } from './types-chunks/utils.d-
|
|
11
|
-
import { d as FullTranscriptSessionData, j as SessionTranscriptEntry, a as CompactSessionResult } from './types-chunks/public-api.d-
|
|
8
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-CSj7_kWk.js';
|
|
9
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-CzscbsG0.js';
|
|
10
|
+
import { D as saveConfig, c as CommandInfo } from './types-chunks/utils.d-DOXxnOnI.js';
|
|
11
|
+
import { d as FullTranscriptSessionData, j as SessionTranscriptEntry, a as CompactSessionResult } from './types-chunks/public-api.d-BcKbBy1E.js';
|
|
12
12
|
import 'vscode-languageserver-protocol';
|
|
13
13
|
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
14
14
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
15
|
-
import './types-chunks/base.d-
|
|
16
|
-
import './types-chunks/guardrail.d-
|
|
17
|
-
import './types-chunks/guardrail.d-
|
|
15
|
+
import './types-chunks/base.d-C8mXDhLL.js';
|
|
16
|
+
import './types-chunks/guardrail.d-CPDfZyJp.js';
|
|
17
|
+
import './types-chunks/guardrail.d-D7r6zVSR.js';
|
|
18
18
|
import 'readline';
|
|
19
19
|
import 'child_process';
|
|
20
20
|
|
|
21
21
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
22
22
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
23
|
-
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.update' | 'run.start' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'context.budget.get' | 'tool.exposure.preview';
|
|
23
|
+
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.update' | 'run.start' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile' | 'context.budget.get' | 'tool.exposure.preview';
|
|
24
24
|
type RuntimeDaemonNotificationMethod = 'event' | 'runtime.warning';
|
|
25
25
|
interface RuntimeDaemonError {
|
|
26
26
|
readonly code: RuntimeDaemonErrorCode;
|
|
@@ -411,6 +411,62 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
411
411
|
params: RuntimeDaemonJsonSchema;
|
|
412
412
|
result: RuntimeDaemonJsonSchema;
|
|
413
413
|
};
|
|
414
|
+
'agentRegistrations.list': {
|
|
415
|
+
params: RuntimeDaemonJsonSchema;
|
|
416
|
+
result: RuntimeDaemonJsonSchema;
|
|
417
|
+
};
|
|
418
|
+
'agentRegistrations.upsert': {
|
|
419
|
+
params: RuntimeDaemonJsonSchema;
|
|
420
|
+
result: RuntimeDaemonJsonSchema;
|
|
421
|
+
};
|
|
422
|
+
'agentRegistrations.remove': {
|
|
423
|
+
params: RuntimeDaemonJsonSchema;
|
|
424
|
+
result: RuntimeDaemonJsonSchema;
|
|
425
|
+
};
|
|
426
|
+
'agents.listDispatchable': {
|
|
427
|
+
params: RuntimeDaemonJsonSchema;
|
|
428
|
+
result: RuntimeDaemonJsonSchema;
|
|
429
|
+
};
|
|
430
|
+
'agents.describe': {
|
|
431
|
+
params: RuntimeDaemonJsonSchema;
|
|
432
|
+
result: RuntimeDaemonJsonSchema;
|
|
433
|
+
};
|
|
434
|
+
'agents.preflight': {
|
|
435
|
+
params: RuntimeDaemonJsonSchema;
|
|
436
|
+
result: RuntimeDaemonJsonSchema;
|
|
437
|
+
};
|
|
438
|
+
'agentTasks.list': {
|
|
439
|
+
params: RuntimeDaemonJsonSchema;
|
|
440
|
+
result: RuntimeDaemonJsonSchema;
|
|
441
|
+
};
|
|
442
|
+
'agentTasks.start': {
|
|
443
|
+
params: RuntimeDaemonJsonSchema;
|
|
444
|
+
result: RuntimeDaemonJsonSchema;
|
|
445
|
+
};
|
|
446
|
+
'agentTasks.get': {
|
|
447
|
+
params: RuntimeDaemonJsonSchema;
|
|
448
|
+
result: RuntimeDaemonJsonSchema;
|
|
449
|
+
};
|
|
450
|
+
'agentTasks.events': {
|
|
451
|
+
params: RuntimeDaemonJsonSchema;
|
|
452
|
+
result: RuntimeDaemonJsonSchema;
|
|
453
|
+
};
|
|
454
|
+
'agentTasks.wait': {
|
|
455
|
+
params: RuntimeDaemonJsonSchema;
|
|
456
|
+
result: RuntimeDaemonJsonSchema;
|
|
457
|
+
};
|
|
458
|
+
'agentTasks.sendInput': {
|
|
459
|
+
params: RuntimeDaemonJsonSchema;
|
|
460
|
+
result: RuntimeDaemonJsonSchema;
|
|
461
|
+
};
|
|
462
|
+
'agentTasks.cancel': {
|
|
463
|
+
params: RuntimeDaemonJsonSchema;
|
|
464
|
+
result: RuntimeDaemonJsonSchema;
|
|
465
|
+
};
|
|
466
|
+
'agentTasks.reconcile': {
|
|
467
|
+
params: RuntimeDaemonJsonSchema;
|
|
468
|
+
result: RuntimeDaemonJsonSchema;
|
|
469
|
+
};
|
|
414
470
|
'context.budget.get': {
|
|
415
471
|
params: RuntimeDaemonJsonSchema;
|
|
416
472
|
result: {
|
|
@@ -469,10 +525,19 @@ interface RuntimeClientCapabilities {
|
|
|
469
525
|
readonly artifactUpload?: boolean;
|
|
470
526
|
readonly contextDiagnostics?: boolean;
|
|
471
527
|
}
|
|
528
|
+
interface RuntimeExternalAgentsOptions {
|
|
529
|
+
readonly factories: readonly AgentExecutorFactory[];
|
|
530
|
+
readonly policy: AgentDispatchPolicy;
|
|
531
|
+
readonly credentialBroker?: AgentCredentialBroker;
|
|
532
|
+
/** Authorizes an executor before it materializes any remote artifact. Defaults to deny. */
|
|
533
|
+
readonly artifactPolicy?: AgentArtifactPolicy;
|
|
534
|
+
/** Default host-derived context for Worker tools; run.start may override it. */
|
|
535
|
+
readonly defaultContext?: AgentDispatchContext;
|
|
536
|
+
}
|
|
472
537
|
interface CreateKodaXRuntimeOptions {
|
|
473
538
|
/** Runtime ownership form. Defaults to a caller-owned embedded Runtime. */
|
|
474
539
|
readonly mode?: KodaXRuntimeMode;
|
|
475
|
-
/** Embedded-only execution location. Daemon mode
|
|
540
|
+
/** Embedded-only execution location. Daemon mode selects host isolation internally. */
|
|
476
541
|
readonly isolation?: 'inline' | 'worker';
|
|
477
542
|
/** Requires `isolation: 'worker'`; rejected instead of being silently ignored. */
|
|
478
543
|
readonly worker?: RuntimeWorkerOptions;
|
|
@@ -492,6 +557,8 @@ interface CreateKodaXRuntimeOptions {
|
|
|
492
557
|
readonly clientInfo?: RuntimeClientInfo;
|
|
493
558
|
readonly capabilities?: RuntimeClientCapabilities;
|
|
494
559
|
readonly requirements?: RuntimeCapabilityRequirements;
|
|
560
|
+
/** Inline host injection. Functions never cross daemon or Worker transport. */
|
|
561
|
+
readonly externalAgents?: RuntimeExternalAgentsOptions;
|
|
495
562
|
}
|
|
496
563
|
interface ConnectKodaXRuntimeOptions {
|
|
497
564
|
readonly profile?: string;
|
|
@@ -514,6 +581,8 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
514
581
|
interface RuntimeCapabilityRequirements {
|
|
515
582
|
/** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
|
|
516
583
|
readonly hardDispose?: boolean;
|
|
584
|
+
/** Reject hosts that do not advertise an installed external Agent executor plane. */
|
|
585
|
+
readonly externalAgents?: boolean;
|
|
517
586
|
}
|
|
518
587
|
interface RuntimeDiagnosticFilter {
|
|
519
588
|
readonly sessionId?: string;
|
|
@@ -536,12 +605,25 @@ interface KodaXRuntime {
|
|
|
536
605
|
readonly artifacts: RuntimeArtifactService;
|
|
537
606
|
readonly status: RuntimeStatusService;
|
|
538
607
|
readonly diagnostics: RuntimeDiagnosticsService;
|
|
608
|
+
readonly admin: RuntimeAdminService;
|
|
609
|
+
readonly agents: RuntimeAgentService;
|
|
610
|
+
readonly agentTasks: RuntimeAgentTaskService;
|
|
539
611
|
/**
|
|
540
612
|
* Release this facade. Inline closes its private Runtime, Worker mode shuts
|
|
541
613
|
* down and terminates its Worker, and daemon mode only detaches this client.
|
|
542
614
|
*/
|
|
543
615
|
close(): Promise<void>;
|
|
544
616
|
}
|
|
617
|
+
interface RuntimeAdminService {
|
|
618
|
+
readonly agentRegistrations: AgentRegistrationService;
|
|
619
|
+
}
|
|
620
|
+
interface RuntimeAgentService {
|
|
621
|
+
readonly enabled: boolean;
|
|
622
|
+
listDispatchable(query: DispatchableAgentQuery): Promise<readonly DispatchableAgentListing[]>;
|
|
623
|
+
describe(agentId: string, query: DispatchableAgentQuery): Promise<DispatchableAgentListing | undefined>;
|
|
624
|
+
preflight(input: AgentPreflightInput): Promise<AgentPreflightResult>;
|
|
625
|
+
}
|
|
626
|
+
type RuntimeAgentTaskService = Pick<AgentTaskService, 'start' | 'list' | 'get' | 'events' | 'wait' | 'sendInput' | 'cancel' | 'reconcile'>;
|
|
545
627
|
type RuntimeConfigPatch = Partial<Pick<ReplRuntimeConfigPatch, RuntimeConfigPatchKey>>;
|
|
546
628
|
interface RuntimeConfigReloadResult {
|
|
547
629
|
readonly ok: true;
|
|
@@ -699,6 +781,8 @@ interface RuntimeSession {
|
|
|
699
781
|
readonly createdAt?: string;
|
|
700
782
|
}
|
|
701
783
|
interface RuntimeSessionSummary extends RuntimeSession {
|
|
784
|
+
/** Opaque continuation token accepted by RuntimeSessionFilter.cursor. */
|
|
785
|
+
readonly cursor?: string;
|
|
702
786
|
readonly msgCount: number;
|
|
703
787
|
readonly tag?: string;
|
|
704
788
|
readonly projectKey?: string;
|
|
@@ -712,6 +796,8 @@ interface RuntimeSessionFilter {
|
|
|
712
796
|
readonly limit?: number;
|
|
713
797
|
readonly before?: string;
|
|
714
798
|
readonly tag?: string;
|
|
799
|
+
readonly surface?: string;
|
|
800
|
+
readonly cursor?: string;
|
|
715
801
|
}
|
|
716
802
|
interface RuntimeForkSessionInput {
|
|
717
803
|
readonly sessionId: string;
|
|
@@ -820,6 +906,8 @@ interface RuntimeStartRunInput {
|
|
|
820
906
|
readonly mode?: RuntimeRunMode;
|
|
821
907
|
readonly permissionBroker?: RuntimePermissionBroker;
|
|
822
908
|
readonly options?: RuntimeKodaXOptions;
|
|
909
|
+
/** Host-derived dispatch identity; never accepted from an LLM tool payload. */
|
|
910
|
+
readonly agentContext?: AgentDispatchContext;
|
|
823
911
|
}
|
|
824
912
|
type RuntimeKodaXOptions = Omit<KodaXOptions, 'provider' | 'session' | 'events'> & {
|
|
825
913
|
readonly provider?: string;
|
|
@@ -979,4 +1067,4 @@ declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promis
|
|
|
979
1067
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
980
1068
|
|
|
981
1069
|
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KodaXEvents, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeContextBudgetSnapshot, RuntimeToolExposurePlan, SessionTranscriptEntry, connectKodaXRuntime, createKodaXRuntime, listRuntimeDaemonSchemaMethods };
|
|
982
|
-
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeDaemonClientTransport, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeFileInput, RuntimeForkSessionInput, RuntimeIdentity, RuntimeImageInput, RuntimeInput, RuntimeKodaXOptions, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunResult, RuntimeRunService, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubscription, RuntimeTextInput, RuntimeTranscript, RuntimeVideoInput, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary };
|
|
1070
|
+
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeAdminService, RuntimeAgentService, RuntimeAgentTaskService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeDaemonClientTransport, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeIdentity, RuntimeImageInput, RuntimeInput, RuntimeKodaXOptions, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunResult, RuntimeRunService, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubscription, RuntimeTextInput, RuntimeTranscript, RuntimeVideoInput, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary };
|
package/dist/sdk-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j}from"./chunks/chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j}from"./chunks/chunk-MP52BDK5.js";import"./chunks/chunk-O5OJQFPY.js";import"./chunks/chunk-CTHUX5ZH.js";import"./chunks/chunk-OIELNE6Z.js";import"./chunks/chunk-TOGESFRN.js";import"./chunks/chunk-QJJKMNZF.js";import"./chunks/chunk-KIQRCGVR.js";import"./chunks/chunk-CC4BVVE7.js";import"./chunks/chunk-KGAI32VS.js";import"./chunks/chunk-HLBHSA2B.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-PEGSHZAA.js";import"./chunks/chunk-HFM2D5BP.js";import"./chunks/chunk-C4SBXBWH.js";import"./chunks/chunk-K2NCKRVY.js";import"./chunks/chunk-67XJ4YUA.js";import"./chunks/chunk-5GL55MOH.js";import"./chunks/chunk-PZTG2C33.js";import"./chunks/chunk-ONUPGMER.js";export{a as KODAX_DAEMON_PROTOCOL,b as KODAX_DAEMON_PROTOCOL_VERSION,c as RUNTIME_DAEMON_METHODS,d as RUNTIME_DAEMON_METHOD_SCHEMAS,e as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,f as RUNTIME_DAEMON_PROTOCOL_SCHEMA,g as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,j as connectKodaXRuntime,i as createKodaXRuntime,h as listRuntimeDaemonSchemaMethods};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { c as CreatableHistoryItem, r as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, x as RestoredHistorySeed, Y as extractHistorySeedsFromMessage, Z as extractHistorySeedsFromMessages, a1 as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { A as AppendClientNoticeOptions, C as CompactSessionOptions, a as CompactSessionResult, D as DeleteSessionResult, d as FullTranscriptSessionData, L as ListSessionsOptions, R as RunningSessionInfo, g as SessionManager, i as SessionSummary, j as SessionTranscriptEntry, k as SessionTranscriptEntryType, W as WatchSessionsCallback, l as appendClientNotice, m as archiveSession, n as compactSession, q as createSessionManager, r as deleteSession, s as forkSession, u as listRunningSessions, v as listSessions, w as loadFullTranscript, x as loadSession, B as rewindSession, E as setActiveEntry, G as unarchiveSession, H as watchSessions } from './types-chunks/public-api.d-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
1
|
+
export { c as CreatableHistoryItem, r as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, x as RestoredHistorySeed, Y as extractHistorySeedsFromMessage, Z as extractHistorySeedsFromMessages, a1 as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-C6nDgyh8.js';
|
|
2
|
+
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CO_ZkmOd.js';
|
|
3
|
+
export { bg as KodaXSessionUiHistoryItem, bh as KodaXSessionUiHistoryItemType, bi as KodaXSessionUiTextHistoryItem, bj as KodaXSessionUiTextHistoryItemType, bk as KodaXSessionUiToolCall, bl as KodaXSessionUiToolCallStatus, bm as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-D2frCRaY.js';
|
|
4
|
+
export { A as AppendClientNoticeOptions, C as CompactSessionOptions, a as CompactSessionResult, D as DeleteSessionResult, d as FullTranscriptSessionData, L as ListSessionsOptions, R as RunningSessionInfo, g as SessionManager, i as SessionSummary, j as SessionTranscriptEntry, k as SessionTranscriptEntryType, W as WatchSessionsCallback, l as appendClientNotice, m as archiveSession, n as compactSession, q as createSessionManager, r as deleteSession, s as forkSession, u as listRunningSessions, v as listSessions, w as loadFullTranscript, x as loadSession, B as rewindSession, E as setActiveEntry, G as unarchiveSession, H as watchSessions } from './types-chunks/public-api.d-BcKbBy1E.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-Dm-T865v.js';
|
|
6
6
|
import './types-chunks/types.d-vJExiRje.js';
|
|
7
7
|
import 'vscode-languageserver-protocol';
|
|
8
8
|
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
9
9
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
10
|
-
import './types-chunks/base.d-
|
|
10
|
+
import './types-chunks/base.d-C8mXDhLL.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,
|
|
2
|
+
import{$a as o,Kb as t,Lb as i,Mb as n,Nb as a,Ob as r,Pb as S,Qb as l,Rb as p,Sb as d,Tb as c,Ub as y,Vb as m,Wb as u,Xb as T}from"./chunks/chunk-O5OJQFPY.js";import{K as s,L as e}from"./chunks/chunk-CTHUX5ZH.js";import"./chunks/chunk-OIELNE6Z.js";import"./chunks/chunk-TOGESFRN.js";import"./chunks/chunk-QJJKMNZF.js";import"./chunks/chunk-KIQRCGVR.js";import"./chunks/chunk-CC4BVVE7.js";import"./chunks/chunk-KGAI32VS.js";import"./chunks/chunk-HLBHSA2B.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-PEGSHZAA.js";import"./chunks/chunk-HFM2D5BP.js";import"./chunks/chunk-C4SBXBWH.js";import"./chunks/chunk-K2NCKRVY.js";import"./chunks/chunk-67XJ4YUA.js";import"./chunks/chunk-5GL55MOH.js";import"./chunks/chunk-PZTG2C33.js";import"./chunks/chunk-ONUPGMER.js";export{r as appendClientNotice,y as archiveSession,t as compactSession,T as createSessionManager,c as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,S as forkSession,d as listRunningSessions,i as listSessions,a as loadFullTranscript,n as loadSession,o as restoreHistoryItemsFromSession,l as rewindSession,p as setActiveEntry,m as unarchiveSession,u 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{$
|
|
2
|
+
import"./chunks/chunk-67XJ4YUA.js";import{$ as E,A as e,B as i,C as t,D as a,E as o,I as k,J as r,K as S,L as s,M as n,N as g,O as u,P as c,Q as x,R as d,S as P,T as R,U as h,V as p,W as v,X as y,Y as M,Z as f,_ as m,z as l}from"./chunks/chunk-5GL55MOH.js";import"./chunks/chunk-PZTG2C33.js";import"./chunks/chunk-ONUPGMER.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};
|