@kodax-ai/kodax 0.7.72 → 0.7.73
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 +92 -0
- package/README.md +48 -14
- package/README_CN.md +33 -10
- package/dist/chunks/{agent-YKGU4USA.js → agent-T6PGT6AU.js} +1 -1
- package/dist/chunks/argument-completer-QGMWA2C3.js +2 -0
- package/dist/chunks/{chunk-SQODXBLX.js → chunk-64M5HOCA.js} +1 -1
- package/dist/chunks/{chunk-PKQOEDHJ.js → chunk-6JTWXGVU.js} +217 -223
- package/dist/chunks/{chunk-IR5KIK7E.js → chunk-6RI2RBTF.js} +1 -1
- package/dist/chunks/chunk-AGDDM5AW.js +329 -0
- package/dist/chunks/chunk-BUPJGG3C.js +5 -0
- package/dist/chunks/chunk-EAD4SF3Z.js +413 -0
- package/dist/chunks/chunk-F7AIEHSS.js +46 -0
- package/dist/chunks/{chunk-E27LHEIP.js → chunk-GAFFYJU3.js} +1 -1
- package/dist/chunks/chunk-HVCNAZ52.js +365 -0
- package/dist/chunks/{chunk-MVARIMQV.js → chunk-M7FXNPWV.js} +2 -2
- package/dist/chunks/{chunk-44QXPEEE.js → chunk-MBAPT2R5.js} +1 -1
- package/dist/chunks/{chunk-WIBLZK4G.js → chunk-MLEAQTCD.js} +2 -2
- package/dist/chunks/{chunk-JSDLBXME.js → chunk-OG6DRNKV.js} +63 -63
- package/dist/chunks/{chunk-2RI252RN.js → chunk-PFH53O4M.js} +1 -1
- package/dist/chunks/chunk-V4F6IYNK.js +73 -0
- package/dist/chunks/chunk-WQ6PWGK5.js +320 -0
- package/dist/chunks/chunk-XXQLPTAN.js +78 -0
- package/dist/chunks/compaction-config-IHJBP4GO.js +2 -0
- package/dist/chunks/{construction-bootstrap-ZJPXUPXQ.js → construction-bootstrap-EGRUHKLP.js} +1 -1
- package/dist/chunks/dist-5N3I2RTW.js +2 -0
- package/dist/chunks/{dist-GOUP4YVE.js → dist-EVEJAII2.js} +1 -1
- package/dist/chunks/host-MECITNE3.js +2 -0
- package/dist/chunks/run-manager-AY7RQOWM.js +2 -0
- package/dist/chunks/{utils-OTT5CG5J.js → utils-2GAE4XIM.js} +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +1341 -1320
- package/dist/provider-capabilities.json +184 -5
- package/dist/runtime-worker.js +1227 -1216
- package/dist/sdk-a2a.d.ts +10 -10
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +13 -13
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +96 -30
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +8 -49
- 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-media.js +1 -1
- package/dist/sdk-repl.d.ts +138 -16
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +99 -17
- 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 +10 -10
- package/dist/types-chunks/{base.d-Cz_rwpOi.d.ts → base.d-ChvpaKjZ.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-CHJO5y94.d.ts → bash-prefix-extractor.d-bApf5nGw.d.ts} +3 -3
- package/dist/types-chunks/{capability-learning.d-_lR0J4iR.d.ts → capability-learning.d-DPrYxRjF.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-DxtdE-GD.d.ts → capsule.d-CGWltwno.d.ts} +2 -2
- package/dist/types-chunks/{commands.d-DZxHzH5-.d.ts → commands.d-CEHGwRok.d.ts} +62 -6
- package/dist/types-chunks/{guardrail.d-DlpMnd-Y.d.ts → guardrail.d-CC4vAQl7.d.ts} +2 -1
- package/dist/types-chunks/{guardrail.d-auV61_h5.d.ts → guardrail.d-CXIPlWP3.d.ts} +10 -10
- package/dist/types-chunks/{public-api.d--IDNJsu1.d.ts → public-api.d-FBmX0kxo.d.ts} +4 -3
- package/dist/types-chunks/{run-manager.d-Bh50OdVl.d.ts → run-manager.d-DUNnJcpE.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-Cfw6NFu-.d.ts → sdk-session-XqacVOs8.d.ts} +3 -3
- package/dist/types-chunks/{resolver.d-ssgNSlrh.d.ts → side-query.d-DWTMsndP.d.ts} +68 -5
- package/dist/types-chunks/{types.d-DH1mvdcl.d.ts → types.d-BnPhGmar.d.ts} +3 -1
- package/dist/types-chunks/{types.d-Cqaw71Ax.d.ts → types.d-CSmF0t0n.d.ts} +6 -5
- package/dist/types-chunks/{types.d-EqQmHztg.d.ts → types.d-DKr6TCXL.d.ts} +16 -9
- package/dist/types-chunks/{types.d-CNZgY52F.d.ts → types.d-DgciGHoG.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-gmn3c5U4.d.ts → utils.d-BPYX7-KN.d.ts} +94 -10
- package/docs/SDK_EMBEDDER_GUIDE.md +128 -21
- package/package.json +2 -2
- package/dist/chunks/argument-completer-QZETLNAB.js +0 -2
- package/dist/chunks/chunk-23X6REO4.js +0 -46
- package/dist/chunks/chunk-CLFP6UGU.js +0 -71
- package/dist/chunks/chunk-EDZ5KJFT.js +0 -5
- package/dist/chunks/chunk-GIK4SGAT.js +0 -364
- package/dist/chunks/chunk-GVWPHE23.js +0 -310
- package/dist/chunks/chunk-VDGCGOQH.js +0 -328
- package/dist/chunks/chunk-VVE3UM4F.js +0 -410
- package/dist/chunks/chunk-ZJIMT5I3.js +0 -78
- package/dist/chunks/compaction-config-TWCDFLX6.js +0 -2
- package/dist/chunks/dist-JT4ATXVM.js +0 -2
- package/dist/chunks/host-SVEDZUC5.js +0 -2
- package/dist/chunks/run-manager-RX42UNEM.js +0 -2
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps, N as Message, ab as UIState, g as CreatableHistoryItem, l as HistoryItem, a8 as ToolCall, aa as UIActions, K as KeyInfo, z as KeypressHandler, a0 as StreamingState, S as PromptEditingMode, I as InputPromptProps, $ as StatusBarProps, a5 as Theme, a9 as ToolCallStatus, a1 as Suggestion, ac as UseTextBufferReturn, H as HistoryEntry, O as PastedContent, r as HistoryItemInfo, R as PermissionMode } from './types-chunks/public-api.d
|
|
3
|
-
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, h as CursorPosition, D as DEFAULT_UI_STATE, i as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, j as FileSessionStorage, k as FullTranscriptSessionData, m as HistoryItemAssistant, n as HistoryItemBase, o as HistoryItemError, p as HistoryItemEvent, q as HistoryItemHint, s as HistoryItemSidecar, t as HistoryItemSystem, u as HistoryItemThinking, v as HistoryItemToolGroup, w as HistoryItemType, x as HistoryItemUser, y as KeypressEvent, B as KeypressHandlerPriority, L as LearningBinding, E as LearningSurfaceSnapshot, G as LegacyMessageListProps, J as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, Q as PermissionContext, T as PromptSubmitPayload, U as RunningSessionInfo, V as SessionData, W as SessionManager, X as SessionStorage, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, a2 as TOOL_STATUS_ICONS, a3 as TextBuffer, a4 as TextBufferOptions, a6 as ThemeColors, a7 as ThemeSymbols, ad as VisualCursor, ae as VisualLayout, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, aj as computeConfirmTools, ak as createMemorySessionStorage, al as createSessionManager, am as deleteSession, an as forkSession, ao as isPermissionMode, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, at as normalizePermissionMode, au as permissionModeDisplayName, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as
|
|
5
|
-
import { a as BashPrefixExtractor, O as KodaXEvents, t as KodaXAgentMode, aV as ProviderRecoveryEvent, a9 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-
|
|
6
|
-
import { c as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-
|
|
8
|
-
import { c as CommandInfo } from './types-chunks/utils.d-
|
|
9
|
-
export { a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as
|
|
10
|
-
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
11
|
-
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-
|
|
2
|
+
import { A as AppProps, N as Message, ab as UIState, g as CreatableHistoryItem, l as HistoryItem, a8 as ToolCall, aa as UIActions, K as KeyInfo, z as KeypressHandler, a0 as StreamingState, S as PromptEditingMode, I as InputPromptProps, $ as StatusBarProps, a5 as Theme, a9 as ToolCallStatus, a1 as Suggestion, ac as UseTextBufferReturn, H as HistoryEntry, O as PastedContent, r as HistoryItemInfo, R as PermissionMode } from './types-chunks/public-api.d-FBmX0kxo.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, h as CursorPosition, D as DEFAULT_UI_STATE, i as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, j as FileSessionStorage, k as FullTranscriptSessionData, m as HistoryItemAssistant, n as HistoryItemBase, o as HistoryItemError, p as HistoryItemEvent, q as HistoryItemHint, s as HistoryItemSidecar, t as HistoryItemSystem, u as HistoryItemThinking, v as HistoryItemToolGroup, w as HistoryItemType, x as HistoryItemUser, y as KeypressEvent, B as KeypressHandlerPriority, L as LearningBinding, E as LearningSurfaceSnapshot, G as LegacyMessageListProps, J as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, Q as PermissionContext, T as PromptSubmitPayload, U as RunningSessionInfo, V as SessionData, W as SessionManager, X as SessionStorage, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, a2 as TOOL_STATUS_ICONS, a3 as TextBuffer, a4 as TextBufferOptions, a6 as ThemeColors, a7 as ThemeSymbols, ad as VisualCursor, ae as VisualLayout, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, aj as computeConfirmTools, ak as createMemorySessionStorage, al as createSessionManager, am as deleteSession, an as forkSession, ao as isPermissionMode, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, at as normalizePermissionMode, au as permissionModeDisplayName, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d-FBmX0kxo.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RUNTIME_PERMISSION_PENDING_NOTICE, d as RepLOptions, e as ReplRuntimeAutoModeControl, f as ReplRuntimeAutoModeSettings, g as ReplRuntimePermissionDecision, h as ReplRuntimePermissionGrantSuggestion, i as ReplRuntimePermissionPrompt, j as ReplRuntimePermissionRequest, k as ReplRuntimeRunner, l as ReplRuntimeRunnerInput, m as ReplRuntimeStatusProvider, n as executeCommand, o as getCommandRegistry, p as parseCommand, q as processSpecialSyntax, r as runInkInteractiveMode, s as runInteractiveMode, t as toReplRuntimeAutoModeSettings } from './types-chunks/commands.d-CEHGwRok.js';
|
|
5
|
+
import { a as BashPrefixExtractor, O as KodaXEvents, t as KodaXAgentMode, aV as ProviderRecoveryEvent, a9 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-bApf5nGw.js';
|
|
6
|
+
import { c as QueuedMessage } from './types-chunks/types.d-DgciGHoG.js';
|
|
7
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-XqacVOs8.js';
|
|
8
|
+
import { c as CommandInfo } from './types-chunks/utils.d-BPYX7-KN.js';
|
|
9
|
+
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, o as RuntimeSurfaceMode, p as RuntimeSurfaceStatus, q as createInteractiveContext, r as ensureExampleConfigFile, s as ensureExampleConfigFiles, t as getGitRoot, u as getProviderList, v as getProviderModel, w as getVersion, x as hydrateProcessEnvFromShell, y as isProviderConfigured, z as loadAutoModeSettings, B as loadConfig, D as prepareRuntimeConfig, E as rateLimitedCall, F as registerConfiguredCustomProviders, G as resolveAutoModeSettings, H as resolveRuntimeEffortSelection, J as resolveRuntimeModelSelection, L as resolveRuntimeProviderSelection, M as saveConfig, N as touchContext } from './types-chunks/utils.d-BPYX7-KN.js';
|
|
10
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-CSmF0t0n.js';
|
|
11
|
+
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CSmF0t0n.js';
|
|
12
|
+
import { Readable, Writable } from 'node:stream';
|
|
12
13
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
13
14
|
export { E as ExtensionsIntegrationDocument, I as IntegrationConfigController, a as IntegrationConfigDiagnostic, b as IntegrationConfigListener, c as IntegrationConfigSnapshot, d as IntegrationConfigSource, e as IntegrationConfigStatus, f as IntegrationDocumentValidator, g as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, h as LegacyIntegrationMigrationPlan, i as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, j as parseMcpIntegrationDocument, k as planLegacyIntegrationMigration, r as readExtensionsIntegration, l as readMcpIntegration, n as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-ojG4swOP.js';
|
|
14
|
-
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-
|
|
15
|
-
import { S as SignalCollector, e as AutoModeAskUser, i as AutoModeSharedState, k as AutoModeToolGuardrail, s as RulesLoadResult } from './types-chunks/guardrail.d-
|
|
15
|
+
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BnPhGmar.js';
|
|
16
|
+
import { S as SignalCollector, e as AutoModeAskUser, i as AutoModeSharedState, k as AutoModeToolGuardrail, s as RulesLoadResult } from './types-chunks/guardrail.d-CXIPlWP3.js';
|
|
16
17
|
import './types-chunks/center-types.d-BBT122uJ.js';
|
|
17
18
|
import './types-chunks/types.d-DCQVBqVn.js';
|
|
18
19
|
import 'vscode-languageserver-protocol';
|
|
19
20
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
20
21
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
21
|
-
import './types-chunks/base.d-
|
|
22
|
+
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
22
23
|
import 'readline';
|
|
23
24
|
import 'child_process';
|
|
24
|
-
import './types-chunks/guardrail.d-
|
|
25
|
+
import './types-chunks/guardrail.d-CC4vAQl7.js';
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* App - KodaX CLI root component.
|
|
@@ -2221,6 +2222,127 @@ declare function upsertCustomProvider(config: KodaXCustomProviderConfig): KodaXC
|
|
|
2221
2222
|
*/
|
|
2222
2223
|
declare function removeCustomProvider(name: string): boolean;
|
|
2223
2224
|
|
|
2225
|
+
/**
|
|
2226
|
+
* First-run provider setup.
|
|
2227
|
+
*
|
|
2228
|
+
* This module owns only provider/model metadata. API key values never cross
|
|
2229
|
+
* this boundary: setup records the environment-variable *name* and asks the
|
|
2230
|
+
* user to set its value outside KodaX before restarting the terminal.
|
|
2231
|
+
*/
|
|
2232
|
+
|
|
2233
|
+
interface ProviderSetupCatalogEntry {
|
|
2234
|
+
readonly name: string;
|
|
2235
|
+
readonly apiKeyEnv: string;
|
|
2236
|
+
readonly defaultModel: string;
|
|
2237
|
+
readonly models: readonly string[];
|
|
2238
|
+
}
|
|
2239
|
+
type ProviderSetupReadiness = {
|
|
2240
|
+
readonly status: 'ready';
|
|
2241
|
+
readonly configPath: string;
|
|
2242
|
+
readonly configRevision: string;
|
|
2243
|
+
readonly provider?: string;
|
|
2244
|
+
} | {
|
|
2245
|
+
readonly status: 'needs-provider';
|
|
2246
|
+
readonly configPath: string;
|
|
2247
|
+
readonly configRevision: string;
|
|
2248
|
+
} | {
|
|
2249
|
+
readonly status: 'needs-credential';
|
|
2250
|
+
readonly configPath: string;
|
|
2251
|
+
readonly configRevision: string;
|
|
2252
|
+
readonly provider: string;
|
|
2253
|
+
readonly apiKeyEnv?: string;
|
|
2254
|
+
} | {
|
|
2255
|
+
readonly status: 'invalid-config';
|
|
2256
|
+
readonly configPath: string;
|
|
2257
|
+
readonly configRevision: string;
|
|
2258
|
+
readonly reason: string;
|
|
2259
|
+
};
|
|
2260
|
+
type ProviderSetupChoice = {
|
|
2261
|
+
readonly kind: 'builtin';
|
|
2262
|
+
readonly provider: string;
|
|
2263
|
+
readonly model: string;
|
|
2264
|
+
} | {
|
|
2265
|
+
readonly kind: 'custom';
|
|
2266
|
+
readonly provider: ProviderSetupCustomProviderMetadata;
|
|
2267
|
+
};
|
|
2268
|
+
/** The setup flow accepts public connection metadata, never provider secrets. */
|
|
2269
|
+
interface ProviderSetupCustomProviderMetadata {
|
|
2270
|
+
readonly name: string;
|
|
2271
|
+
readonly protocol: KodaXCustomProviderConfig['protocol'];
|
|
2272
|
+
readonly baseUrl: string;
|
|
2273
|
+
readonly apiKeyEnv: string;
|
|
2274
|
+
readonly model: string;
|
|
2275
|
+
}
|
|
2276
|
+
interface InspectProviderSetupReadinessInput {
|
|
2277
|
+
readonly configPath?: string;
|
|
2278
|
+
readonly catalog?: readonly ProviderSetupCatalogEntry[];
|
|
2279
|
+
readonly environment?: NodeJS.ProcessEnv | Readonly<Record<string, string | undefined>>;
|
|
2280
|
+
readonly explicitProvider?: string;
|
|
2281
|
+
}
|
|
2282
|
+
interface PersistProviderSetupChoiceInput {
|
|
2283
|
+
readonly configPath?: string;
|
|
2284
|
+
readonly expectedRevision: string;
|
|
2285
|
+
readonly catalog?: readonly ProviderSetupCatalogEntry[];
|
|
2286
|
+
readonly choice: ProviderSetupChoice;
|
|
2287
|
+
}
|
|
2288
|
+
interface PersistedProviderSetupChoice {
|
|
2289
|
+
readonly provider: string;
|
|
2290
|
+
readonly model: string;
|
|
2291
|
+
readonly apiKeyEnv: string;
|
|
2292
|
+
readonly configPath: string;
|
|
2293
|
+
}
|
|
2294
|
+
declare class ProviderSetupConfigConflictError extends Error {
|
|
2295
|
+
constructor(configPath: string);
|
|
2296
|
+
}
|
|
2297
|
+
declare class ProviderSetupInvalidConfigError extends Error {
|
|
2298
|
+
constructor(configPath: string, reason: string);
|
|
2299
|
+
}
|
|
2300
|
+
/** Built-in API providers only. CLI bridges retain their own authentication flows. */
|
|
2301
|
+
declare function getProviderSetupCatalog(): readonly ProviderSetupCatalogEntry[];
|
|
2302
|
+
/**
|
|
2303
|
+
* Determine whether automatic setup is appropriate without exposing an API-key
|
|
2304
|
+
* value to callers. An explicit provider or an existing valid config is never
|
|
2305
|
+
* replaced by automatic setup.
|
|
2306
|
+
*/
|
|
2307
|
+
declare function inspectProviderSetupReadiness(input?: InspectProviderSetupReadinessInput): ProviderSetupReadiness;
|
|
2308
|
+
/**
|
|
2309
|
+
* Persist only non-secret provider metadata. The revision check prevents a
|
|
2310
|
+
* setup screen from replacing edits made by another process while it was open.
|
|
2311
|
+
*/
|
|
2312
|
+
declare function persistProviderSetupChoice(input: PersistProviderSetupChoiceInput): PersistedProviderSetupChoice;
|
|
2313
|
+
declare function providerSetupRestartInstructions(input: {
|
|
2314
|
+
readonly apiKeyEnv: string;
|
|
2315
|
+
readonly platform?: NodeJS.Platform;
|
|
2316
|
+
}): readonly string[];
|
|
2317
|
+
|
|
2318
|
+
interface ProviderSetupInteraction {
|
|
2319
|
+
readonly choose: (message: string, items: readonly {
|
|
2320
|
+
readonly value: string;
|
|
2321
|
+
readonly label: string;
|
|
2322
|
+
}[]) => Promise<string | undefined>;
|
|
2323
|
+
readonly text: (message: string, defaultValue?: string) => Promise<string | undefined>;
|
|
2324
|
+
readonly confirm: (message: string) => Promise<boolean>;
|
|
2325
|
+
readonly close?: () => void;
|
|
2326
|
+
}
|
|
2327
|
+
type ProviderSetupWizardResult = {
|
|
2328
|
+
readonly status: 'configured';
|
|
2329
|
+
readonly selection: PersistedProviderSetupChoice;
|
|
2330
|
+
} | {
|
|
2331
|
+
readonly status: 'cancelled';
|
|
2332
|
+
};
|
|
2333
|
+
interface RunProviderSetupWizardInput {
|
|
2334
|
+
readonly configPath?: string;
|
|
2335
|
+
readonly catalog?: readonly ProviderSetupCatalogEntry[];
|
|
2336
|
+
readonly interaction?: ProviderSetupInteraction;
|
|
2337
|
+
readonly input?: Readable;
|
|
2338
|
+
readonly output?: Writable;
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
* Run the standalone first-use setup flow. It intentionally has no API-key
|
|
2342
|
+
* field: only public provider metadata crosses this boundary.
|
|
2343
|
+
*/
|
|
2344
|
+
declare function runProviderSetupWizard(input?: RunProviderSetupWizardInput): Promise<ProviderSetupWizardResult>;
|
|
2345
|
+
|
|
2224
2346
|
/**
|
|
2225
2347
|
* Typed MCP integration CRUD.
|
|
2226
2348
|
*
|
|
@@ -2404,5 +2526,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
|
|
|
2404
2526
|
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
2405
2527
|
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
2406
2528
|
|
|
2407
|
-
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, processCommandCall, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runSessionPicker, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
|
|
2408
|
-
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
|
|
2529
|
+
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, ProviderSetupConfigConflictError, ProviderSetupInvalidConfigError, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, inspectProviderSetupReadiness, 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, persistProviderSetupChoice, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runProviderSetupWizard, 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 };
|
|
2530
|
+
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, PersistedProviderSetupChoice, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, ProviderSetupCatalogEntry, ProviderSetupChoice, ProviderSetupCustomProviderMetadata, ProviderSetupInteraction, ProviderSetupReadiness, ProviderSetupWizardResult, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
|
package/dist/sdk-repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as
|
|
3
|
-
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{
|
|
2
|
+
import{$ as Wn,$a as Fo,$b as Fe,A as Q,Aa as lo,Ab as le,B as T,Ba as uo,Bb as ue,C as U,Ca as fo,Cb as fe,D as V,Da as go,Db as ge,E as Y,Ea as Co,Eb as Ce,F as Z,Fa as xo,Fb as xe,G as tt,Ga as yo,Gb as ye,H as nt,Ha as Ko,Hb as Ke,I as ot,Ia as Xo,Ib as Xe,J as et,Ja as ho,Jb as he,K as rt,Ka as Do,Kb as De,L as at,La as Po,Lb as Pe,M as pt,Ma as Mo,Mb as Me,N as lt,Na as bo,Nb as be,O as ut,Oa as wo,Ob as we,P as ft,Pa as No,Pb as Ne,Q as Nn,Qa as _o,Qb as _e,R as _n,Ra as jo,Rb as je,S as jn,Sa as ko,Sb as ke,T as kn,Ta as Ao,Tb as Ae,U as An,Ua as Oo,Ub as Oe,V as On,Va as Ro,Vb as Re,W as Rn,Wa as So,Wb as Se,X as Sn,Xa as vo,Xb as ve,Y as vn,Ya as Io,Yb as Ie,Z as In,Za as Lo,Zb as Le,_ as Ln,_a as Wo,_b as We,a as D,aa as Fn,ab as $o,ac as $e,b as P,ba as $n,bb as qo,bc as qe,c as M,ca as qn,cb as zo,cc as ze,d as b,da as zn,db as Bo,dc as Be,e as w,ea as Bn,eb as Eo,ec as Ee,f as N,fa as En,fb as Go,g as _,ga as Gn,gb as Ho,h as j,ha as Hn,hb as Jo,i as k,ia as Jn,ib as Qo,j as A,ja as Qn,jb as To,k as O,ka as Tn,kb as Uo,l as R,la as Un,lb as Vo,m as S,ma as Vn,mb as Yo,n as v,na as Yn,nb as Zo,o as I,oa as Zn,ob as te,p as L,pa as to,pb as ne,q as W,qa as no,qb as oe,r as F,ra as oo,rb as ee,s as $,sa as eo,sb as re,t as q,ta as ro,tb as ae,u as z,ua as ao,ub as me,v as B,va as mo,vb as ie,w as E,wa as io,wb as se,x as G,xa as so,xb as ce,y as H,ya as co,yb as de,z as J,za as po,zb as pe}from"./chunks/chunk-WQ6PWGK5.js";import{A as un,Aa as Mn,B as fn,Ba as bn,Ca as wn,L as gn,M as Cn,N as xn,O as yn,P as Kn,U as Xn,V as hn,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,j as xt,k as yt,l as Kt,m as Xt,n as nn,p as on,q as en,r as rn,s as an,t as mn,u as sn,v as cn,w as dn,x as pn,y as ln,ya as Dn,za as Pn}from"./chunks/chunk-6JTWXGVU.js";import{K as qt,L as zt,M as Bt,N as Et,O as Gt,P as Ht,Q as Jt,T as Qt,U as Tt,W as Ut,X as Vt,Y as Yt,_ as Zt,b as ht,c as Dt,ca as tn,d as Pt,e as Mt,f as bt,g as wt,h as Nt,i as _t,j as jt,k as kt,l as At,m as Ot,n as Rt,o as St,p as vt,q as It,s as Lt,t as Wt,u as Ft,v as $t}from"./chunks/chunk-MLEAQTCD.js";import"./chunks/chunk-PFH53O4M.js";import"./chunks/chunk-EAD4SF3Z.js";import"./chunks/chunk-6RI2RBTF.js";import"./chunks/chunk-M7FXNPWV.js";import"./chunks/chunk-AGDDM5AW.js";import"./chunks/chunk-64M5HOCA.js";import"./chunks/chunk-MBAPT2R5.js";import"./chunks/chunk-HVCNAZ52.js";import"./chunks/chunk-XXQLPTAN.js";import"./chunks/chunk-OG6DRNKV.js";import"./chunks/chunk-GAFFYJU3.js";import"./chunks/chunk-BUPJGG3C.js";import"./chunks/chunk-F7AIEHSS.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{Gn as App,Nn as AutocompleteContextProvider,Pn as BUILTIN_COMMANDS,xo as BackgroundTaskBar,ht as CONFIG_TEMPLATES,Ko as ChildActivitySurface,se as ConsoleCapturer,dt as DEFAULT_UI_STATE,lo as DialogSurface,In as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,je as FileSessionStorage,Jn as FullscreenTranscriptLayout,$n as HistoryItemRenderer,Rn as InputPrompt,At as IntegrationConfigController,u as KODAX_COMMANDS_DIR,St as KODAX_CONFIG_FILE,Ot as KODAX_DIR,Et as KODAX_EXAMPLE_CONFIG_FILE,Gt as KODAX_INTEGRATION_EXAMPLE_FILES,Rt as KODAX_SESSIONS_DIR,Ft as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Fn as LoadingIndicator,vo as MemorySessionStorage,Qn as MessageActions,qn as MessageList,Tn as MessageSelector,fo as NotificationsSurface,gt as PERMISSION_MODES,vt as PREVIEW_MAX_LENGTH,te as PendingInputsIndicator,Ln as ProgressIndicator,Vn as PromptComposer,to as PromptFooter,Yn as PromptFooterLeftSide,Zn as PromptFooterRightSide,no as PromptHelpMenu,po as PromptSuggestionsSurface,xe as ProviderSetupConfigConflictError,ye as ProviderSetupInvalidConfigError,uo as QueuedCommandsSurface,ko as RUNTIME_PERMISSION_PENDING_NOTICE,Hn as SimpleApp,Sn as SimpleInputPrompt,zn as SimpleMessageDisplay,En as SimpleStatusBar,tt as SingleLineTextInput,vn as Spinner,Co as StashNotice,Bn as StatusBar,go as StatusNoticesSurface,ho as StreamingProvider,mt as StreamingState,co as SuggestionsDisplay,st as TOOL_STATUS_ICONS,An as TextBuffer,Z as TextInput,Wn as ThinkingIndicator,Yo as ToolCallDisplay,it as ToolCallStatus,Zo as ToolGroup,Vo as ToolProgressBar,Uo as ToolStatusBadge,Un as TranscriptViewport,ao as UIStateProvider,jo as _resetQueuedPromptsCacheForTests,ve as appendClientNotice,qe as archiveSession,So as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,cn as collectBashWriteTargets,Ae as compactSession,yt as computeConfirmTools,Qo as createCliEvents,eo as createHistoryItem,Oo as createInteractiveContext,To as createJsonEvents,wo as createKeyMatcher,pt as createKeypressManager,Io as createMemorySessionStorage,Eo as createRecoveryHistoryItem,zo as createRetryHistoryItem,Ee as createSessionManager,Xo as createStreamingManager,ro as createToolCall,Q as darkTheme,ke as dedupeSessions,$e as deleteSession,ie as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,Go as emitRecoveryHistoryItem,Bo as emitRetryHistoryItem,Jt as ensureExampleConfigFile,Ht as ensureExampleConfigFiles,wn as executeCommand,Lo as executeShellCommand,xn as extractHistorySeedsFromMessage,yn as extractHistorySeedsFromMessages,Kn as extractTextContent,Xn as extractTitle,Ie as forkSession,hn as formatMessagePreview,oo as generateId,rn as generateSavePattern,dn as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Mn as getCommandRegistry,Dt as getConfigTemplate,fe as getCustomProviderConfig,y as getDefaultCommandDir,Zt as getGitRoot,at as getKeyDisplayName,be as getMcpServerConfig,pn as getPlanModeBlockReason,qt as getProviderList,$t as getProviderModel,Ke as getProviderSetupCatalog,S as getTerminalHostCapabilities,ae as getTerminalWidth,V as getTheme,Y as getThemeNames,Wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,It as hydrateProcessEnvFromShell,Xe as inspectProviderSetupReadiness,an as isAlwaysConfirmPath,nn as isBashReadCommand,on as isBashWriteCommand,I as isClassicReplForced,mn as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,sn as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,zt as isProviderConfigured,M as isRemoteConptyHost,me as isScreenReader,Wo as isShellCommand,Fo as isShellCommandSuccess,w as isTmuxControlMode,en as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,ue as listCustomProviders,Me as listMcpServers,Dn as listRegisteredCommands,Fe as listRunningSessions,Oe as listSessions,un as loadAutoModeSettings,K as loadCommands,Bt as loadConfig,Se as loadFullTranscript,Re as loadSession,yo as measureChildActivitySurfaceRows,jt as migrateLegacyIntegrationConfig,T as minimalTheme,Xt as normalizePermissionMode,bn as parseCommand,h as parseCommandCall,Mt as parseExtensionsIntegrationDocument,nt as parseKeypress,Pt as parseMcpIntegrationDocument,Ct as permissionModeDisplayName,he as persistProviderSetupChoice,_t as planLegacyIntegrationMigration,Qt as prepareRuntimeConfig,X as processCommandCall,le as processSpecialSyntax,De as providerSetupRestartInstructions,tn as rateLimitedCall,Nt as readExtensionsIntegration,wt as readMcpIntegration,Lt as registerConfiguredCustomProviders,Ce as removeCustomProvider,Ne as removeMcpServer,ln as replBashPathSignalCollector,N as resetTmuxControlModeProbeForTesting,fn as resolveAutoModeSettings,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,bt as resolveIntegrationConfigPath,O as resolveInteractiveSurfacePreference,Yt as resolveRuntimeEffortSelection,Vt as resolveRuntimeModelSelection,Ut as resolveRuntimeProviderSelection,qo as restoreHistoryItemsFromSession,Le as rewindSession,Ho as runInkInteractiveMode,pe as runInteractiveMode,Pe as runProviderSetupWizard,Jo as runSessionPicker,Tt as saveConfig,gn as seedToHistoryItem,We as setActiveEntry,z as splitByCodePoints,oe as supports256Colors,re as supportsEmoji,ne as supportsTrueColor,ee as supportsUnicode,U as themes,Ao as toReplRuntimeAutoModeSettings,Cn as toolCallSeedToHistoryToolCall,Ro as touchContext,$o as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,ze as unarchiveSession,ge as upsertCustomProvider,we as upsertMcpServer,jn as useAutocomplete,_n as useAutocompleteContext,kn as useInputHistory,bo as useKeypress,ut as useKeypressManager,_o as useQueuedPromptContents,No as useQueuedPrompts,Mo as useStreaming,Po as useStreamingActions,Do as useStreamingState,On as useTextBuffer,so as useUI,io as useUIActions,mo as useUIState,_e as validateMcpServerConfig,E as visualWidthCache,Be as watchSessions,ce as withCapture,de as withCaptureSync,kt as writeIntegrationDocument};
|
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,24 +1,51 @@
|
|
|
1
|
-
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
2
|
-
export { k as KodaXMessage } from './types-chunks/types.d-
|
|
3
|
-
import { $ as KodaXOptions, U as KodaXManagedTaskStatusEvent, O as KodaXEvents, a9 as KodaXResult, b8 as RuntimeContextBudgetSnapshot, bf as RuntimeToolExposurePlan, L as KodaXContextOptions, K as KodaXActivityEventMeta, aD as KodaXToolEventMeta, aK as KodaXTurnStartedEvent, aH as KodaXTurnCompletedEvent, aJ as KodaXTurnFailedEvent } from './types-chunks/bash-prefix-extractor.d-
|
|
4
|
-
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy, bt as KodaXImageInputArtifact, bw as KodaXInputArtifactSource, c2 as KodaXVideoInputArtifact, e9 as WorkflowProcessSnapshot, e3 as WorkflowProcessEvent, M as AgentExecutionKind, al as AgentRegistrationService, b0 as DispatchableAgentQuery, a_ as DispatchableAgentListing, ad as AgentPreflightInput, ae as AgentPreflightResult, aA as AgentTreeSnapshot, B as AgentDetail, an as AgentSpawnInput, aD as AgentTurnRef, z as AgentDataClassification, $ as AgentFollowupResult, ac as AgentOutput, J as AgentEvent } from './types-chunks/types.d-
|
|
1
|
+
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CSmF0t0n.js';
|
|
2
|
+
export { k as KodaXMessage } from './types-chunks/types.d-CSmF0t0n.js';
|
|
3
|
+
import { $ as KodaXOptions, U as KodaXManagedTaskStatusEvent, O as KodaXEvents, a9 as KodaXResult, b8 as RuntimeContextBudgetSnapshot, bf as RuntimeToolExposurePlan, L as KodaXContextOptions, K as KodaXActivityEventMeta, aD as KodaXToolEventMeta, aK as KodaXTurnStartedEvent, aH as KodaXTurnCompletedEvent, aJ as KodaXTurnFailedEvent } from './types-chunks/bash-prefix-extractor.d-bApf5nGw.js';
|
|
4
|
+
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy, bt as KodaXImageInputArtifact, bw as KodaXInputArtifactSource, c2 as KodaXVideoInputArtifact, e9 as WorkflowProcessSnapshot, e3 as WorkflowProcessEvent, M as AgentExecutionKind, al as AgentRegistrationService, b0 as DispatchableAgentQuery, a_ as DispatchableAgentListing, ad as AgentPreflightInput, ae as AgentPreflightResult, aA as AgentTreeSnapshot, B as AgentDetail, an as AgentSpawnInput, aD as AgentTurnRef, z as AgentDataClassification, $ as AgentFollowupResult, ac as AgentOutput, J as AgentEvent } from './types-chunks/types.d-BnPhGmar.js';
|
|
5
5
|
import { i as SkillMetadata } from './types-chunks/types.d-DCQVBqVn.js';
|
|
6
6
|
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
7
7
|
import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.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 {
|
|
11
|
-
import {
|
|
8
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-DUNnJcpE.js';
|
|
9
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-DKr6TCXL.js';
|
|
10
|
+
import { j as AutoModeStats } from './types-chunks/guardrail.d-CXIPlWP3.js';
|
|
11
|
+
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-BPYX7-KN.js';
|
|
12
|
+
import { k as FullTranscriptSessionData, Z as SessionTranscriptEntry, c as CompactSessionResult } from './types-chunks/public-api.d-FBmX0kxo.js';
|
|
12
13
|
import { n as LearningQuery, m as LearningPage, b as LearnedCapabilityRecord, p as LearningSurfaceSnapshot, j as LearningEvent, o as LearningSubscribeOptions } from './types-chunks/center-types.d-BBT122uJ.js';
|
|
13
14
|
import 'vscode-languageserver-protocol';
|
|
14
15
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
15
16
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
16
|
-
import './types-chunks/base.d-
|
|
17
|
-
import './types-chunks/guardrail.d-
|
|
18
|
-
import './types-chunks/guardrail.d-DlpMnd-Y.js';
|
|
17
|
+
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
18
|
+
import './types-chunks/guardrail.d-CC4vAQl7.js';
|
|
19
19
|
import 'readline';
|
|
20
20
|
import 'child_process';
|
|
21
21
|
|
|
22
|
+
type RuntimePermissionHostPlatform = 'win32' | 'posix';
|
|
23
|
+
interface RuntimePermissionMatcherBase {
|
|
24
|
+
readonly version: 1;
|
|
25
|
+
readonly toolName: string;
|
|
26
|
+
readonly fingerprint: string;
|
|
27
|
+
}
|
|
28
|
+
interface RuntimeExactCommandPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
29
|
+
readonly kind: 'exact-command';
|
|
30
|
+
readonly shell: 'cmd' | 'posix';
|
|
31
|
+
/** SHA-256 of the normalized concrete command; raw command text is never persisted. */
|
|
32
|
+
readonly commandFingerprint: string;
|
|
33
|
+
readonly cwd: string;
|
|
34
|
+
readonly executable?: string;
|
|
35
|
+
readonly argvFingerprint?: string;
|
|
36
|
+
readonly background: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface RuntimeExactPathPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
39
|
+
readonly kind: 'exact-path';
|
|
40
|
+
readonly path: string;
|
|
41
|
+
}
|
|
42
|
+
interface RuntimeExactCallPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
43
|
+
readonly kind: 'exact-call';
|
|
44
|
+
readonly cwd: string;
|
|
45
|
+
readonly inputFingerprint: string;
|
|
46
|
+
}
|
|
47
|
+
type RuntimePermissionMatcher = RuntimeExactCommandPermissionMatcher | RuntimeExactPathPermissionMatcher | RuntimeExactCallPermissionMatcher;
|
|
48
|
+
|
|
22
49
|
interface RuntimeUserMarkdownAgentRef {
|
|
23
50
|
readonly source: 'markdown:user';
|
|
24
51
|
readonly name: string;
|
|
@@ -148,7 +175,7 @@ interface RuntimeLearningService {
|
|
|
148
175
|
|
|
149
176
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
150
177
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
151
|
-
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.observe' | '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.getVersioned' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | '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' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | '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.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview';
|
|
178
|
+
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.observe' | '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.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | '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' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | '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.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview';
|
|
152
179
|
type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
153
180
|
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
154
181
|
type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
@@ -208,6 +235,13 @@ declare class RuntimeTransportBoundaryError extends Error {
|
|
|
208
235
|
readonly code: "invalid_transport_value";
|
|
209
236
|
constructor(path: string, message: string);
|
|
210
237
|
}
|
|
238
|
+
declare class RuntimePermissionScopeUpgradeRequiredError extends Error {
|
|
239
|
+
readonly code: "daemon_upgrade_required";
|
|
240
|
+
readonly capability: "runtimeAutoModeGuardrail";
|
|
241
|
+
readonly requiredVersion: 3;
|
|
242
|
+
readonly restartRequired: true;
|
|
243
|
+
constructor();
|
|
244
|
+
}
|
|
211
245
|
|
|
212
246
|
interface RuntimeWorkerResourceLimits {
|
|
213
247
|
readonly maxOldGenerationSizeMb?: number;
|
|
@@ -369,6 +403,10 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
369
403
|
params: RuntimeDaemonJsonSchema;
|
|
370
404
|
result: RuntimeDaemonJsonSchema;
|
|
371
405
|
};
|
|
406
|
+
'session.autoMode.getStats': {
|
|
407
|
+
params: RuntimeDaemonJsonSchema;
|
|
408
|
+
result: RuntimeDaemonJsonSchema;
|
|
409
|
+
};
|
|
372
410
|
'session.settings.update': {
|
|
373
411
|
params: RuntimeDaemonJsonSchema;
|
|
374
412
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -806,6 +844,12 @@ declare class RuntimeDaemonCapabilityUpgradeError extends Error {
|
|
|
806
844
|
readonly restartRequired: true;
|
|
807
845
|
constructor(message: string, preflight?: RuntimeDaemonPreflight | undefined, options?: ErrorOptions);
|
|
808
846
|
}
|
|
847
|
+
/** A recoverable Auto LLM configuration error that must never become approval work. */
|
|
848
|
+
declare class RuntimeAutoModeConfigurationError extends Error {
|
|
849
|
+
readonly code: "auto_mode_classifier_model_required";
|
|
850
|
+
readonly recoverable: true;
|
|
851
|
+
constructor(message: string);
|
|
852
|
+
}
|
|
809
853
|
|
|
810
854
|
type KodaXRuntimeMode = 'embedded' | 'daemon';
|
|
811
855
|
type KodaXRuntimeIsolation = 'inline' | 'worker' | 'process';
|
|
@@ -987,7 +1031,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
987
1031
|
readonly daemonManagement?: 1;
|
|
988
1032
|
readonly actorControlPlane?: 1;
|
|
989
1033
|
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
990
|
-
readonly runtimeAutoModeGuardrail?: 1;
|
|
1034
|
+
readonly runtimeAutoModeGuardrail?: 1 | 2 | 3;
|
|
991
1035
|
}
|
|
992
1036
|
type RuntimeOperationState = 'accepted' | 'dispatched' | 'applied' | 'rejected' | 'interrupted' | 'unknown';
|
|
993
1037
|
interface RuntimeOperationReceipt {
|
|
@@ -1288,6 +1332,7 @@ interface RuntimeSessionSettings {
|
|
|
1288
1332
|
readonly autoModeEngine?: 'llm' | 'rules';
|
|
1289
1333
|
readonly autoModeClassifierModel?: string;
|
|
1290
1334
|
readonly autoModeTimeoutMs?: number;
|
|
1335
|
+
readonly autoModeSpeculativeWindowMs?: number;
|
|
1291
1336
|
}
|
|
1292
1337
|
interface RuntimeSessionSettingsPatch {
|
|
1293
1338
|
readonly provider?: string | null;
|
|
@@ -1301,6 +1346,7 @@ interface RuntimeSessionSettingsPatch {
|
|
|
1301
1346
|
readonly autoModeEngine?: 'llm' | 'rules' | null;
|
|
1302
1347
|
readonly autoModeClassifierModel?: string | null;
|
|
1303
1348
|
readonly autoModeTimeoutMs?: number | null;
|
|
1349
|
+
readonly autoModeSpeculativeWindowMs?: number | null;
|
|
1304
1350
|
}
|
|
1305
1351
|
interface RuntimeAppendNoticeInput {
|
|
1306
1352
|
readonly sessionId: string;
|
|
@@ -1382,6 +1428,8 @@ interface RuntimeSessionService {
|
|
|
1382
1428
|
fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
|
|
1383
1429
|
getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
|
|
1384
1430
|
getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
|
|
1431
|
+
/** Runtime-owned Auto classifier state used by diagnostics and status UI. */
|
|
1432
|
+
getAutoModeStats(sessionId: string): Promise<AutoModeStats | undefined>;
|
|
1385
1433
|
updateSettings(sessionId: string, patch: RuntimeSessionSettingsPatch): Promise<RuntimeSessionSettings>;
|
|
1386
1434
|
updateSettingsVersioned(sessionId: string, patch: RuntimeSessionSettingsPatch, options: RuntimeVersionedUpdateOptions): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
|
|
1387
1435
|
appendNotice(input: RuntimeAppendNoticeInput): Promise<SessionTranscriptEntry | null>;
|
|
@@ -1584,7 +1632,7 @@ interface RuntimeRunService {
|
|
|
1584
1632
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
1585
1633
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
1586
1634
|
}
|
|
1587
|
-
type RuntimeEventType = 'session.created' | 'session.loaded' | 'session.settings.updated' | 'session.notice.appended' | 'session.rewound' | 'session.active_entry.updated' | 'session.compacted' | 'run.queued' | 'run.started' | 'run.updated' | 'run.progress' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.compaction.started' | 'context.compaction.stats' | 'context.compaction.finished' | 'context.compaction.messages' | 'context.compaction.ended' | 'context.compaction.skipped' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'child_activity.finished' | 'provider.retry' | 'provider.recovery' | 'repo_intelligence.trace' | 'todo.updated' | 'todo.warning' | 'sidecar.message' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'artifact.created' | 'config.effective' | 'runtime.warning';
|
|
1635
|
+
type RuntimeEventType = 'session.created' | 'session.loaded' | 'session.settings.updated' | 'session.notice.appended' | 'session.rewound' | 'session.active_entry.updated' | 'session.compacted' | 'run.queued' | 'run.started' | 'run.updated' | 'run.progress' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.compaction.started' | 'context.compaction.stats' | 'context.compaction.finished' | 'context.compaction.messages' | 'context.compaction.ended' | 'context.compaction.skipped' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'child_activity.finished' | 'provider.retry' | 'provider.recovery' | 'repo_intelligence.trace' | 'todo.updated' | 'todo.warning' | 'sidecar.message' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'artifact.created' | 'config.effective' | 'runtime.warning';
|
|
1588
1636
|
interface RuntimeTextDeltaEventPayload {
|
|
1589
1637
|
readonly text: string;
|
|
1590
1638
|
readonly meta?: KodaXActivityEventMeta;
|
|
@@ -1649,6 +1697,11 @@ interface RuntimeInteractionResolvedEventPayload {
|
|
|
1649
1697
|
readonly decision?: RuntimePermissionDecision;
|
|
1650
1698
|
readonly kind?: RuntimeUserInputKind;
|
|
1651
1699
|
}
|
|
1700
|
+
interface RuntimePermissionGrantChangedEventPayload {
|
|
1701
|
+
readonly action: 'created' | 'revoked' | 'expired';
|
|
1702
|
+
readonly grant: RuntimePermissionGrant;
|
|
1703
|
+
readonly revision: number;
|
|
1704
|
+
}
|
|
1652
1705
|
interface RuntimeWarningEventPayload {
|
|
1653
1706
|
readonly message: string;
|
|
1654
1707
|
readonly source?: string;
|
|
@@ -1669,7 +1722,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
|
|
|
1669
1722
|
type RuntimeEventPayloadDefaults = {
|
|
1670
1723
|
readonly [K in RuntimeEventType]: unknown;
|
|
1671
1724
|
};
|
|
1672
|
-
type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created' | 'session.loaded' | 'run.queued' | 'run.started' | 'run.updated' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'run.progress' | 'todo.updated' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'session.settings.updated' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'runtime.warning'> & {
|
|
1725
|
+
type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created' | 'session.loaded' | 'run.queued' | 'run.started' | 'run.updated' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'run.progress' | 'todo.updated' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'session.settings.updated' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'runtime.warning'> & {
|
|
1673
1726
|
readonly 'session.created': RuntimeSession;
|
|
1674
1727
|
readonly 'session.loaded': RuntimeSessionLoadedEventPayload;
|
|
1675
1728
|
readonly 'run.queued': RuntimeRunStatus;
|
|
@@ -1691,6 +1744,7 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created
|
|
|
1691
1744
|
readonly 'user_input.resolved': RuntimeInteractionResolvedEventPayload;
|
|
1692
1745
|
readonly 'permission.requested': RuntimePermissionRequest;
|
|
1693
1746
|
readonly 'permission.resolved': RuntimeInteractionResolvedEventPayload;
|
|
1747
|
+
readonly 'permission.grant.changed': RuntimePermissionGrantChangedEventPayload;
|
|
1694
1748
|
readonly 'session.settings.updated': RuntimeSessionSettingsUpdatedEventPayload;
|
|
1695
1749
|
readonly 'turn.started': KodaXTurnStartedEvent;
|
|
1696
1750
|
readonly 'turn.completed': KodaXTurnCompletedEvent;
|
|
@@ -1750,6 +1804,14 @@ type RuntimePermissionRisk = 'low' | 'medium' | 'high';
|
|
|
1750
1804
|
interface RuntimePermissionScope {
|
|
1751
1805
|
readonly toolName?: string;
|
|
1752
1806
|
readonly sessionId?: string;
|
|
1807
|
+
/** Runtime-generated concrete matcher. Absent only on legacy 0.7.x grants. */
|
|
1808
|
+
readonly matcher?: RuntimePermissionMatcher;
|
|
1809
|
+
}
|
|
1810
|
+
interface RuntimePermissionGrantSuggestion {
|
|
1811
|
+
/** Opaque pending-request-local identifier; clients must return it unchanged. */
|
|
1812
|
+
readonly id: string;
|
|
1813
|
+
readonly kind: 'session' | 'persistent';
|
|
1814
|
+
readonly label: string;
|
|
1753
1815
|
}
|
|
1754
1816
|
interface RuntimePermissionRequest {
|
|
1755
1817
|
readonly id: string;
|
|
@@ -1763,6 +1825,7 @@ interface RuntimePermissionRequest {
|
|
|
1763
1825
|
readonly inputPreview?: string;
|
|
1764
1826
|
/** Effective directory used to resolve relative tool paths for this run. */
|
|
1765
1827
|
readonly executionCwd?: string;
|
|
1828
|
+
readonly grantSuggestions?: readonly RuntimePermissionGrantSuggestion[];
|
|
1766
1829
|
readonly createdAt: string;
|
|
1767
1830
|
readonly expiresAt?: string;
|
|
1768
1831
|
}
|
|
@@ -1778,10 +1841,26 @@ interface RuntimePermissionRequestInput {
|
|
|
1778
1841
|
readonly executionCwd?: string;
|
|
1779
1842
|
readonly expiresAt?: string;
|
|
1780
1843
|
readonly timeoutMs?: number;
|
|
1844
|
+
/**
|
|
1845
|
+
* Concrete JSON tool input used by the Runtime to derive an opaque grant
|
|
1846
|
+
* candidate. It is neither emitted on Runtime events nor persisted.
|
|
1847
|
+
*/
|
|
1848
|
+
readonly toolInput?: Readonly<Record<string, unknown>>;
|
|
1781
1849
|
}
|
|
1782
1850
|
type RuntimePermissionDecision = {
|
|
1783
1851
|
readonly type: 'allow_once';
|
|
1784
1852
|
} | {
|
|
1853
|
+
readonly type: 'allow_session';
|
|
1854
|
+
readonly suggestionId: string;
|
|
1855
|
+
} | {
|
|
1856
|
+
readonly type: 'allow_always';
|
|
1857
|
+
readonly suggestionId: string;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* @deprecated v2 compatibility input. The Runtime maps this selection to
|
|
1861
|
+
* its narrower concrete candidate and never persists the supplied scope.
|
|
1862
|
+
*/
|
|
1863
|
+
| {
|
|
1785
1864
|
readonly type: 'allow_always';
|
|
1786
1865
|
readonly scope: RuntimePermissionScope;
|
|
1787
1866
|
} | {
|
|
@@ -1800,6 +1879,9 @@ interface RuntimePermissionGrant {
|
|
|
1800
1879
|
readonly id: string;
|
|
1801
1880
|
readonly scope: RuntimePermissionScope;
|
|
1802
1881
|
readonly createdAt: string;
|
|
1882
|
+
readonly persistence?: 'session' | 'persistent';
|
|
1883
|
+
readonly label?: string;
|
|
1884
|
+
readonly sourcePermissionId?: string;
|
|
1803
1885
|
}
|
|
1804
1886
|
interface RuntimePermissionService {
|
|
1805
1887
|
request(input: RuntimePermissionRequestInput): Promise<RuntimePermissionDecision>;
|
|
@@ -1980,5 +2062,5 @@ declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
|
1980
2062
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
1981
2063
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
1982
2064
|
|
|
1983
|
-
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, RuntimeDaemonCapabilityUpgradeError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
1984
|
-
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContinuationStatus, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeInteractionResolvedEventPayload, RuntimeKodaXOptions, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
|
2065
|
+
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, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
2066
|
+
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContinuationStatus, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeInteractionResolvedEventPayload, RuntimeKodaXOptions, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
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,k,l,m,n,o,p,q,r}from"./chunks/chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"./chunks/chunk-V4F6IYNK.js";import"./chunks/chunk-WQ6PWGK5.js";import"./chunks/chunk-6JTWXGVU.js";import"./chunks/chunk-MLEAQTCD.js";import"./chunks/chunk-PFH53O4M.js";import"./chunks/chunk-EAD4SF3Z.js";import"./chunks/chunk-6RI2RBTF.js";import"./chunks/chunk-M7FXNPWV.js";import"./chunks/chunk-AGDDM5AW.js";import"./chunks/chunk-64M5HOCA.js";import"./chunks/chunk-MBAPT2R5.js";import"./chunks/chunk-HVCNAZ52.js";import"./chunks/chunk-XXQLPTAN.js";import"./chunks/chunk-OG6DRNKV.js";import"./chunks/chunk-GAFFYJU3.js";import"./chunks/chunk-BUPJGG3C.js";import"./chunks/chunk-F7AIEHSS.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,d as RUNTIME_DAEMON_METHODS,g as RUNTIME_DAEMON_METHOD_SCHEMAS,h as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,i as RUNTIME_DAEMON_PROTOCOL_SCHEMA,j as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,m as RuntimeAutoModeConfigurationError,l as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,n as acquireKodaXInlineOwner,t as connectKodaXRuntime,s as createKodaXRuntime,q as enableKodaXDaemonOwner,o as getKodaXRuntimeOwnerPolicy,p as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,r as setKodaXRuntimeOwnerMode};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, g as CreatableHistoryItem, i as DeleteSessionResult, k as FullTranscriptSessionData, J as ListSessionsOptions, U as RunningSessionInfo, W as SessionManager, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, al as createSessionManager, am as deleteSession, an as forkSession, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d
|
|
2
|
-
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-
|
|
3
|
-
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-
|
|
4
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
1
|
+
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, g as CreatableHistoryItem, i as DeleteSessionResult, k as FullTranscriptSessionData, J as ListSessionsOptions, U as RunningSessionInfo, W as SessionManager, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, al as createSessionManager, am as deleteSession, an as forkSession, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d-FBmX0kxo.js';
|
|
2
|
+
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CSmF0t0n.js';
|
|
3
|
+
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BnPhGmar.js';
|
|
4
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-XqacVOs8.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-bApf5nGw.js';
|
|
6
6
|
import './types-chunks/types.d-DCQVBqVn.js';
|
|
7
7
|
import 'vscode-languageserver-protocol';
|
|
8
8
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
9
9
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
10
|
-
import './types-chunks/base.d-
|
|
10
|
+
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
11
11
|
import './types-chunks/center-types.d-BBT122uJ.js';
|