@kodax-ai/kodax 0.7.93 → 0.7.95
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 +162 -0
- package/README.md +88 -18
- package/README_CN.md +51 -0
- package/dist/builtin/skill-creator/SKILL.md +5 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +5 -4
- package/dist/chunks/agent-XXZMXKKA.js +2 -0
- package/dist/chunks/argument-completer-KCYDGTQW.js +2 -0
- package/dist/chunks/{chunk-YVG6OKN7.js → chunk-2PEDBGKN.js} +1 -1
- package/dist/chunks/{chunk-XTWIGVUL.js → chunk-2TM3W3GK.js} +10 -10
- package/dist/chunks/{chunk-3YOZIFSJ.js → chunk-6ABQJUK6.js} +252 -251
- package/dist/chunks/chunk-77PNP27P.js +92 -0
- package/dist/chunks/{chunk-JTZKC4TV.js → chunk-7JXA3533.js} +232 -233
- package/dist/chunks/{chunk-7XSZVOG7.js → chunk-BNVSKIAB.js} +340 -142
- package/dist/chunks/chunk-BR2OSB2I.js +722 -0
- package/dist/chunks/{chunk-HLZWPB32.js → chunk-C4DTUKTR.js} +2 -2
- package/dist/chunks/{chunk-4BY53JTF.js → chunk-DSMONSVB.js} +121 -122
- package/dist/chunks/{chunk-PRASABCC.js → chunk-JS452J2F.js} +2 -2
- package/dist/chunks/chunk-O743AJ5V.js +323 -0
- package/dist/chunks/{chunk-GRWUC6H7.js → chunk-OK4AXDC5.js} +1 -1
- package/dist/chunks/chunk-Q5VRWSKG.js +418 -0
- package/dist/chunks/{chunk-GH3KBC2H.js → chunk-SRIJX5ZP.js} +1 -1
- package/dist/chunks/chunk-XWRPOGJN.js +4 -0
- package/dist/chunks/chunk-Y5VIQBT6.js +383 -0
- package/dist/chunks/{client-OVYKC3ND.js → client-JDOS3YJR.js} +1 -1
- package/dist/chunks/compaction-config-EGS4577X.js +2 -0
- package/dist/chunks/{construction-bootstrap-474QPSYB.js → construction-bootstrap-YCWHHUYO.js} +1 -1
- package/dist/chunks/dist-KFYN3OKD.js +2 -0
- package/dist/chunks/host-VAYADIPW.js +2 -0
- package/dist/chunks/run-manager-52IJZMZJ.js +2 -0
- package/dist/chunks/utils-P7PBSL3R.js +2 -0
- package/dist/index.d.ts +26 -26
- package/dist/index.js +2 -2
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1869 -1461
- package/dist/kodax_resume.js +35 -35
- package/dist/runtime-worker.js +1819 -1411
- package/dist/sandbox-workspace-session.js +481 -638
- package/dist/sdk-a2a.d.ts +18 -18
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +47 -26
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +54 -39
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +6 -6
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +8 -8
- package/dist/sdk-mcp.d.ts +4 -4
- 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 +43 -25
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +57 -32
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +10 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +10 -10
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +2 -333
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +279 -81
- package/dist/types-chunks/{base.d-JjF6aKsh.d.ts → base.d-vopO1rml.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-BMi_TJIY.d.ts → bash-prefix-extractor.d-B2rxNI4L.d.ts} +70 -9
- package/dist/types-chunks/{capability-learning.d-BAxy0mfx.d.ts → capability-learning.d-CE1tm29C.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-nYbM4MNL.d.ts → capsule.d-Y7QRS4J2.d.ts} +5 -5
- package/dist/types-chunks/{config.d-CTPaqsD-.d.ts → config.d-CJy1WENT.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-CTvvOy_V.d.ts → controller.d-BR-UVeUR.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-Bm1i9RVj.d.ts → controller.d-C5noq5-w.d.ts} +4 -4
- package/dist/types-chunks/{cost-tracker.d-MTAt6N7b.d.ts → cost-tracker.d-BeaenODW.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-CKkoea7y.d.ts → guardrail.d-DqHD-61O.d.ts} +9 -9
- package/dist/types-chunks/{history-retrieval.d-D0LNyBED.d.ts → history-retrieval.d-CKU8zmt_.d.ts} +2 -2
- package/dist/types-chunks/{integration-config.d-BHoiz-WZ.d.ts → integration-config.d-BNowXE8k.d.ts} +3 -3
- package/dist/types-chunks/{manager.d-D_1fqveb.d.ts → manager.d-B67TmPO1.d.ts} +3 -3
- package/dist/types-chunks/{oauth-login.d-Cz9OpSmz.d.ts → oauth-login.d-6i-vidxv.d.ts} +3 -3
- package/dist/types-chunks/{public-api.d-BsZWOq3P.d.ts → public-api.d-D7fXaWW8.d.ts} +7 -6
- package/dist/types-chunks/{repl.d-DxD0Olm0.d.ts → repl.d-BYDb14s6.d.ts} +8 -8
- package/dist/types-chunks/{resolver.d-DparsV6Y.d.ts → resolver.d-CwHUwbdE.d.ts} +4 -4
- package/dist/types-chunks/{review-inbox.d-dAtGH3g2.d.ts → review-inbox.d-BSgFewyj.d.ts} +3 -3
- package/dist/types-chunks/{run-manager.d-BeSEc2OL.d.ts → run-manager.d-BVJSntpS.d.ts} +2 -2
- package/dist/types-chunks/{sdk-session-BTzblJTQ.d.ts → sdk-session-CqEG84oP.d.ts} +3 -3
- package/dist/types-chunks/sdk-skills-DokfOoJF.d.ts +335 -0
- package/dist/types-chunks/{shell-command-sets.d-C2cc9Hwi.d.ts → shell-command-sets.d-DqaaBwhU.d.ts} +1 -1
- package/dist/types-chunks/{side-query.d-DNes6rHA.d.ts → side-query.d-iH0P9ASy.d.ts} +3 -3
- package/dist/types-chunks/{types-D8OiIEwA.d.ts → types-PHjfwebT.d.ts} +1 -1
- package/dist/types-chunks/{types.d-DrtP1ceI.d.ts → types.d-C5xQEFcj.d.ts} +6 -6
- package/dist/types-chunks/{types.d-Cv09EdJR.d.ts → types.d-CK9A9rpP.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Dc3kwcjC.d.ts → types.d-CaTXAW_Q.d.ts} +14 -3
- package/dist/types-chunks/{types.d-BEMcUOng.d.ts → types.d-Cb8RdrjU.d.ts} +5 -4
- package/dist/types-chunks/{types.d-EjZTEEVu.d.ts → types.d-rUOjXych.d.ts} +6 -2
- package/dist/types-chunks/{utils.d-50Q24Few.d.ts → utils.d-CWUyLiXo.d.ts} +8 -8
- package/package.json +2 -2
- package/dist/chunks/agent-R7HVNARP.js +0 -2
- package/dist/chunks/argument-completer-JHXUJWHC.js +0 -2
- package/dist/chunks/chunk-A3ZQE2BX.js +0 -519
- package/dist/chunks/chunk-D27EY4XC.js +0 -383
- package/dist/chunks/chunk-JJ2YDBSN.js +0 -415
- package/dist/chunks/chunk-QFV6YCIH.js +0 -92
- package/dist/chunks/chunk-SMVC3Q3U.js +0 -320
- package/dist/chunks/compaction-config-2TVSYSB4.js +0 -2
- package/dist/chunks/dist-H4PT2QAV.js +0 -2
- package/dist/chunks/host-OR3IO2A4.js +0 -2
- package/dist/chunks/run-manager-MNOTWIFX.js +0 -2
- package/dist/chunks/utils-5J4BHNBV.js +0 -2
package/dist/sdk-mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem,
|
|
4
|
-
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport,
|
|
1
|
+
import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
2
|
+
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
3
|
+
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
|
|
4
|
+
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportCleanupIncompleteError, d as McpTransportEvents, O as OAuthClientInfo, e as OAuthLoginConsent, P as PerformOAuthLoginOptions, f as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, g as createMcpTransport, h as discoverAuthorizationServerMetadata, i as discoverOAuthEndpoints, j as discoverProtectedResourceMetadata, k as extractInsufficientScope, l as extractResourceMetadataUrl, m as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-6i-vidxv.js';
|
|
5
5
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
6
6
|
|
|
7
7
|
interface McpTestServerFixture {
|
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{Ae as
|
|
2
|
+
import{Ae as p,Be as i,Ce as c,De as o,Ee as n,Fe as M,Ge as s,He as l,Ie as d,Je as u,Ke as C,Le as v,Me as g,Ne as S,Oe as h,Pe as R,Qe as m,Re as A,Se as b,Te as f,we as e,xe as t,ye as r,ze as a}from"./chunks/chunk-BNVSKIAB.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,m as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,R as McpServerRuntime,n as McpTransportCleanupIncompleteError,h as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,u as discoverAuthorizationServerMetadata,C as discoverOAuthEndpoints,d as discoverProtectedResourceMetadata,l as extractInsufficientScope,s as extractResourceMetadataUrl,i as getMcpCachePaths,S as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,g as performOAuthLogin,v as registerOAuthClient,p as searchMcpCatalog};
|
package/dist/sdk-media.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KodaXImageBlock } from './
|
|
1
|
+
import { i as KodaXImageBlock } from './types-chunks/types.d-CK9A9rpP.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-media.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
|
|
2
|
+
import{A as b,B as c,C as d,D as g,E as h,F as i,G as j,H as k,I as l,J as n,K as q,L as s,M as u,r as o,s as r,t as e,u as f,v as m,w as p,x as t,y as x,z as a}from"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{r as ImageResizeError,n as KODAX_FILE_MEDIA_TYPES,k as KODAX_IMAGE_MEDIA_TYPES,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,x as MAX_DIMENSION,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,a as TARGET_RAW_SIZE_BYTES,p as createFileArtifactFromPath,m as createImageArtifactFromPath,t as createVideoArtifactFromPath,u as enqueueWithArtifacts,q as getModelInputCapabilities,e as inferImageMediaType,f as inferVideoMediaType,b as normalizePastedImage,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,s as validateInputArtifactsForModel};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps,
|
|
3
|
-
export {
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions,
|
|
5
|
-
import { KodaXEvents, KodaXAgentMode, ProviderRecoveryEvent, KodaXResult } from './
|
|
6
|
-
import { QueuedMessage } from './
|
|
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 {
|
|
9
|
-
export { A as AutoModeSettings,
|
|
10
|
-
import {
|
|
11
|
-
|
|
2
|
+
import { A as AppProps, O as Message, au as UIState, h as CreatableHistoryItem, m as HistoryItem, ar as ToolCall, at as UIActions, K as KeyInfo, B as KeypressHandler, aj as StreamingState, V as PromptEditingMode, I as InputPromptProps, ai as StatusBarProps, ao as Theme, as as ToolCallStatus, ak as Suggestion, av as UseTextBufferReturn, H as HistoryEntry, Q as PastedContent, s as HistoryItemInfo, S as PermissionMode } from './types-chunks/public-api.d-D7fXaWW8.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, g as ConversationPageCacheCapacityError, i as CursorPosition, D as DEFAULT_UI_STATE, j as DeleteSessionResult, F as FileSessionStorage, k as ForkSessionOptions, l as FullTranscriptSessionData, n as HistoryItemAssistant, o as HistoryItemBase, p as HistoryItemError, q as HistoryItemEvent, r as HistoryItemHint, t as HistoryItemSidecar, u as HistoryItemSystem, v as HistoryItemThinking, w as HistoryItemToolGroup, x as HistoryItemType, y as HistoryItemUser, z as KeypressEvent, E as KeypressHandlerPriority, L as LearningBinding, G as LearningSurfaceSnapshot, J as LegacyMessageListProps, M as ListSessionsOptions, N as MemorySessionStorage, P as PERMISSION_MODES, R as PermissionContext, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, W as PromptSubmitPayload, X as RewindSessionOptions, Y as RunningSessionInfo, Z as SessionBundleExportDiagnostic, _ as SessionBundleExportFile, $ as SessionBundleExportOptions, a0 as SessionBundleExportResult, a1 as SessionBundleExportStatus, a2 as SessionConversationHistoryData, a3 as SessionConversationHistoryEntry, a4 as SessionConversationHistoryIssue, a5 as SessionConversationHistoryIssueCode, a6 as SessionConversationHistoryStatus, a7 as SessionConversationMutationBoundary, a8 as SessionData, a9 as SessionManager, aa as SessionReadCapture, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, ae as SessionStorage, af as SessionSummary, ag as SessionTranscriptEntry, ah as SessionTranscriptEntryType, al as TOOL_STATUS_ICONS, am as TextBuffer, an as TextBufferOptions, ap as ThemeColors, aq as ThemeSymbols, aw as VisualCursor, ax as VisualLayout, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aC as computeConfirmTools, aD as conversationHistoryFromCapture, aE as createConversationEntryChain, aF as createMemorySessionStorage, aG as createSessionConversationHistoryRevision, aH as createSessionManager, aI as deleteSession, aJ as emptyConversationEntryChain, aK as exportSessionBundle, aL as extendConversationEntryChain, aM as forkSession, aN as isPermissionMode, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aS as normalizePermissionMode, aT as permissionModeDisplayName, aU as readConversationHistory, aV as readFullTranscript, aW as readSessionCapture, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-D7fXaWW8.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, d as InkTransientNotice, R as RUNTIME_PERMISSION_PENDING_NOTICE, e as RepLOptions, f as ReplRuntimeAutoModeControl, g as ReplRuntimeAutoModeSettings, h as ReplRuntimePermissionDecision, i as ReplRuntimePermissionGrantSuggestion, j as ReplRuntimePermissionPrompt, k as ReplRuntimePermissionRequest, l as ReplRuntimeRunner, m as ReplRuntimeRunnerInput, n as ReplRuntimeStatusProvider, o as executeCommand, p as getCommandRegistry, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode, u as toReplRuntimeAutoModeSettings } from './types-chunks/repl.d-BYDb14s6.js';
|
|
5
|
+
import { S as KodaXEvents, t as KodaXAgentMode, bl as ProviderRecoveryEvent, a4 as KodaXOptions, an as KodaXResult } from './types-chunks/bash-prefix-extractor.d-B2rxNI4L.js';
|
|
6
|
+
import { M as MessageDelivery, d as QueuedMessage } from './types-chunks/types.d-CaTXAW_Q.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-CqEG84oP.js';
|
|
8
|
+
import { d as CommandInvocationRequest, c as CommandInfo } from './types-chunks/utils.d-CWUyLiXo.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-CWUyLiXo.js';
|
|
10
|
+
import { c as SkillContext } from './types-chunks/types.d-Cb8RdrjU.js';
|
|
11
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-CK9A9rpP.js';
|
|
12
|
+
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-CK9A9rpP.js';
|
|
12
13
|
import { Readable, Writable } from 'node:stream';
|
|
13
|
-
import { McpServerConfig, McpServersConfig } from './
|
|
14
|
-
export { E as ExtensionsIntegrationDocument,
|
|
15
|
-
export {
|
|
16
|
-
export { F as FILE_MODIFICATION_TOOLS, c as collectBashWriteTargets, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, j as getPlanModeBlockReason, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, s as isPathInsideProject, v as isToolCallAllowed } from './types-chunks/shell-command-sets.d-
|
|
17
|
-
import { SignalCollector, AutoModeAskUser, AutoModeGuardrailConfig, AutoModeSharedState, AutoModeToolGuardrail, RulesLoadResult } from './
|
|
18
|
-
import './types-chunks/controller.d-
|
|
14
|
+
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
15
|
+
export { E as ExtensionsIntegrationDocument, I as IntegrationConfigConflictError, a as IntegrationConfigController, b as IntegrationConfigDiagnostic, c as IntegrationConfigListener, d as IntegrationConfigSnapshot, e as IntegrationConfigSource, f as IntegrationConfigStatus, g as IntegrationDocumentValidator, h as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, i as LegacyIntegrationMigrationPlan, j as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, k as parseMcpIntegrationDocument, l as planLegacyIntegrationMigration, r as readExtensionsIntegration, n as readMcpIntegration, o as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-BNowXE8k.js';
|
|
16
|
+
export { aq as KodaXSessionUiHistoryItem, ar as KodaXSessionUiHistoryItemType, as as KodaXSessionUiTextHistoryItem, at as KodaXSessionUiTextHistoryItemType, au as KodaXSessionUiToolCall, av as KodaXSessionUiToolCallStatus, aw as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-rUOjXych.js';
|
|
17
|
+
export { F as FILE_MODIFICATION_TOOLS, c as collectBashWriteTargets, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, j as getPlanModeBlockReason, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, s as isPathInsideProject, v as isToolCallAllowed } from './types-chunks/shell-command-sets.d-DqaaBwhU.js';
|
|
18
|
+
import { _ as SignalCollector, f as AutoModeAskUser, k as AutoModeGuardrailConfig, s as AutoModeSharedState, u as AutoModeToolGuardrail, Z as RulesLoadResult } from './types-chunks/guardrail.d-DqHD-61O.js';
|
|
19
|
+
import './types-chunks/controller.d-C5noq5-w.js';
|
|
19
20
|
import 'vscode-languageserver-protocol';
|
|
20
|
-
import './types-chunks/
|
|
21
|
-
import './types-chunks/
|
|
22
|
-
import './types-chunks/types-D8OiIEwA.js';
|
|
21
|
+
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
22
|
+
import './types-chunks/types-PHjfwebT.js';
|
|
23
23
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
24
|
-
import './types-chunks/base.d-
|
|
24
|
+
import './types-chunks/base.d-vopO1rml.js';
|
|
25
25
|
import 'readline';
|
|
26
26
|
import 'child_process';
|
|
27
|
-
import './types-chunks/side-query.d-
|
|
27
|
+
import './types-chunks/side-query.d-iH0P9ASy.js';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* App - KodaX CLI root component.
|
|
@@ -314,8 +314,9 @@ interface StreamingActions {
|
|
|
314
314
|
startCompacting: () => void;
|
|
315
315
|
/** 缁撴潫鍘嬬缉涓婁笅鏂?*/
|
|
316
316
|
stopCompacting: () => void;
|
|
317
|
-
addPendingInput: (input: string) => void;
|
|
317
|
+
addPendingInput: (input: string, options?: PendingInputOptions) => void;
|
|
318
318
|
removeLastPendingInput: () => void;
|
|
319
|
+
peekPendingInputDelivery: () => MessageDelivery | undefined;
|
|
319
320
|
shiftPendingInput: () => string | undefined;
|
|
320
321
|
clearPendingInputs: () => void;
|
|
321
322
|
consumePendingInputs: () => string[];
|
|
@@ -384,8 +385,9 @@ interface StreamingManager {
|
|
|
384
385
|
startCompacting: () => void;
|
|
385
386
|
/** Stop compacting context - 缁撴潫鍘嬬缉涓婁笅鏂?*/
|
|
386
387
|
stopCompacting: () => void;
|
|
387
|
-
addPendingInput: (input: string) => void;
|
|
388
|
+
addPendingInput: (input: string, options?: PendingInputOptions) => void;
|
|
388
389
|
removeLastPendingInput: () => void;
|
|
390
|
+
peekPendingInputDelivery: () => MessageDelivery | undefined;
|
|
389
391
|
shiftPendingInput: () => string | undefined;
|
|
390
392
|
clearPendingInputs: () => void;
|
|
391
393
|
consumePendingInputs: () => string[];
|
|
@@ -408,6 +410,10 @@ interface StreamingManagerOptions {
|
|
|
408
410
|
/** Resolve the queue routing key at operation time so /new and /load work. */
|
|
409
411
|
readonly getPendingInputAgentId?: () => string | undefined;
|
|
410
412
|
}
|
|
413
|
+
interface PendingInputOptions {
|
|
414
|
+
/** `host` keeps explicit command invocations out of runtime model drains. */
|
|
415
|
+
readonly delivery?: MessageDelivery;
|
|
416
|
+
}
|
|
411
417
|
declare function createStreamingManager(options?: StreamingManagerOptions): StreamingManager;
|
|
412
418
|
interface StreamingProviderProps {
|
|
413
419
|
children: ReactNode;
|
|
@@ -1947,6 +1953,18 @@ declare function getTheme(name?: string): Theme;
|
|
|
1947
1953
|
*/
|
|
1948
1954
|
declare function getThemeNames(): string[];
|
|
1949
1955
|
|
|
1956
|
+
declare function createUserSkillInvocation(name: string, argumentsText: string, context: SkillContext): Promise<CommandInvocationRequest | undefined>;
|
|
1957
|
+
declare function resolveUserSkillInvocation(input: string, context: SkillContext): Promise<CommandInvocationRequest | undefined>;
|
|
1958
|
+
|
|
1959
|
+
interface PreparedInvocation {
|
|
1960
|
+
mode: 'manual' | 'inline' | 'fork';
|
|
1961
|
+
prompt?: string;
|
|
1962
|
+
options?: KodaXOptions;
|
|
1963
|
+
manualOutput?: string;
|
|
1964
|
+
finalize: (error?: Error) => Promise<void>;
|
|
1965
|
+
}
|
|
1966
|
+
declare function prepareInvocationExecution(baseOptions: KodaXOptions, request: CommandInvocationRequest, rawUserInput: string, emit: (text: string) => void): Promise<PreparedInvocation>;
|
|
1967
|
+
|
|
1950
1968
|
/**
|
|
1951
1969
|
* Public command-system exports.
|
|
1952
1970
|
*/
|
|
@@ -2393,5 +2411,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
|
|
|
2393
2411
|
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
2394
2412
|
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
2395
2413
|
|
|
2396
|
-
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CoreConfigWriteConflictError, 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, coreConfigWriteLockPath, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, findMostRecentResumableSession, generateId, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, initializeSetupConfiguration, inspectProviderSetupReadiness, isClassicReplForced, isFunctionKey, isOwnedRendererPreferred, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, persistProviderSetupChoice, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, renderSetupGuide, 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, withCoreConfigWriteLock };
|
|
2397
|
-
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InitializeSetupConfigurationInput, 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, RenderSetupGuideInput, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, SetupConfigDomain, SetupConfigFileKind, SetupConfigFileResult, SetupConfigFileStatus, SetupConfigurationResult, 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 };
|
|
2414
|
+
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CoreConfigWriteConflictError, 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, coreConfigWriteLockPath, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, createUserSkillInvocation, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, findMostRecentResumableSession, generateId, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, initializeSetupConfiguration, inspectProviderSetupReadiness, isClassicReplForced, isFunctionKey, isOwnedRendererPreferred, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, persistProviderSetupChoice, prepareInvocationExecution, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, renderSetupGuide, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, resolveUserSkillInvocation, 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, withCoreConfigWriteLock };
|
|
2415
|
+
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InitializeSetupConfigurationInput, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, PersistedProviderSetupChoice, PreparedInvocation, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, ProviderSetupCatalogEntry, ProviderSetupChoice, ProviderSetupCustomProviderMetadata, ProviderSetupInteraction, ProviderSetupReadiness, ProviderSetupWizardResult, QueuedCommandsSurfaceProps, RenderSetupGuideInput, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, SetupConfigDomain, SetupConfigFileKind, SetupConfigFileResult, SetupConfigFileStatus, SetupConfigurationResult, 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)";t.set(g,{name:g,description:l,content:m,type:"prompt"})}catch{}continue}if(s===".js"||s===".ts"){let m=i.join(e,o);try{let l=await import(h(m).href);for(let[C,p]of Object.entries(l))if(C.startsWith("command_")&&typeof p=="function"){let c=C.replace("command_",""),y=p.description??c;t.set(c,{name:c,description:String(y).slice(0,60),content:`[Programmable command: ${c}]`,type:"programmable",execute:p})}}catch(d){x({source:"cli:commands",level:"warn",message:s===".ts"?`Failed to load TypeScript programmable command ${m}; enable a TypeScript loader or compile it to .js.`:`Failed to load programmable command module ${m}.`,detail:d})}}}}catch{}return t}a(D,"loadCommands");async function w(n,t,e,r){let o=e.get(n);return o?o.type==="prompt"?t?o.content.replace(/{args}/g,t):o.content:o.type==="programmable"&&o.execute?o.execute({args:t,runAgent:r}):null:null}a(w,"processCommandCall");function M(n){if(!n.startsWith("/"))return null;let t=n.slice(1).trim();if(!t)return null;let e=t.search(/\s/);if(e===-1)return[t];let r=t.slice(0,e),o=t.slice(e).trim();return o?[r,o]:[r]}a(M,"parseCommandCall");export{
|
|
2
|
+
import{$ as re,$a as rn,$b as mr,A as dt,Aa as Se,Ab as Un,B as lt,Ba as Ue,Bb as _n,C as pt,Ca as _e,Cb as vn,D as ut,Da as ve,Db as An,E as ft,Ea as Ae,Eb as On,F as gt,Fa as Oe,Fb as Fn,G as Ct,Ga as Fe,Gb as Ln,H as xt,Ha as Le,Hb as $n,I as yt,Ia as $e,Ib as Tn,J as Kt,Ja as Te,Jb as In,K as Xt,Ka as Ie,Kb as Wn,L as bt,La as We,Lb as En,M as jt,Ma as Ee,Mb as qn,N as Rt,Na as qe,Nb as zn,O as kt,Oa as ze,Ob as Bn,P as Nt,Pa as Be,Pb as Gn,Q as Go,Qa as Ge,Qb as Hn,R as Ho,Ra as He,Rb as Jn,S as Jo,Sa as Je,Sb as Qn,T as Qo,Ta as Qe,Tb as Vn,U as Vo,Ua as Ve,Ub as Yn,V as Yo,Va as Ye,Vb as Zn,W as Zo,Wa as Ze,Wb as tr,X as te,Xa as tn,Xb as or,Y as oe,Ya as on,Yb as er,Z as ee,Za as en,Zb as nr,_ as ne,_a as nn,_b as rr,a as L,aa as me,ab as mn,ac as ar,b as $,ba as ae,bb as an,bc as ir,c as T,ca as ie,cb as sn,cc as sr,d as I,da as se,db as cn,dc as cr,e as W,ea as ce,eb as dn,ec as dr,f as E,fa as de,fb as ln,fc as lr,g as q,ga as le,gb as pn,gc as pr,h as z,ha as pe,hb as un,hc as ur,i as B,ia as ue,ib as fn,ic as fr,j as G,ja as fe,jb as gn,jc as gr,k as H,ka as ge,kb as Cn,kc as Cr,l as J,la as Ce,lb as xn,m as Q,ma as xe,mb as yn,n as V,na as ye,nb as Kn,o as Y,oa as Ke,ob as Xn,p as Z,pa as Xe,pb as bn,q as tt,qa as be,qb as hn,r as ot,ra as he,rb as Dn,s as et,sa as De,sb as wn,t as nt,ta as we,tb as Mn,u as rt,ua as Me,ub as Pn,v as mt,va as Pe,vb as jn,w as at,wa as je,wb as Rn,x as it,xa as Re,xb as kn,y as st,ya as ke,yb as Nn,z as ct,za as Ne,zb as Sn}from"./chunks/chunk-O743AJ5V.js";import{$ as Io,A as So,B as Uo,Ga as Wo,Ha as Eo,I as _o,Ia as qo,J as vo,Ka as zo,La as Bo,R as Ao,S as Oo,T as Fo,U as Lo,V as $o,_ as To,a as ht,b as Dt,c as wt,d as Mt,e as Pt,f as St,i as Ut,k as _t,l as vt,m as At,n as bo,o as ho,p as Do,q as wo,r as Mo,s as Po,t as jo,v as Ro,w as ko,y as No}from"./chunks/chunk-6ABQJUK6.js";import{$ as xo,O as ao,P as io,Q as so,R as co,S as lo,T as po,U as uo,X as fo,Y as go,_ as Co,aa as yo,b as Ot,c as Ft,ca as Ko,d as Lt,e as $t,f as Tt,g as It,ga as Xo,h as Wt,i as Et,j as qt,k as zt,l as Bt,m as Gt,n as Ht,o as Jt,p as Qt,q as Vt,r as Yt,s as Zt,t as to,u as oo,w as eo,x as no,y as ro,z as mo}from"./chunks/chunk-C4DTUKTR.js";import"./chunks/chunk-OK4AXDC5.js";import"./chunks/chunk-DSMONSVB.js";import"./chunks/chunk-2TM3W3GK.js";import{Cb as U,Db as _,Eb as v,Hb as A,Jb as O,Kb as F,ib as P,tb as j,vb as R,xb as k,yb as N,zb as S}from"./chunks/chunk-Q5VRWSKG.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-JS452J2F.js";import"./chunks/chunk-7JXA3533.js";import"./chunks/chunk-XWRPOGJN.js";import"./chunks/chunk-SRIJX5ZP.js";import"./chunks/chunk-2PEDBGKN.js";import"./chunks/chunk-BHE66SP3.js";import{t as x}from"./chunks/chunk-BNVSKIAB.js";import"./chunks/chunk-77PNP27P.js";import{a}from"./chunks/chunk-ONUPGMER.js";import u from"fs/promises";import i from"path";import K from"os";import{pathToFileURL as X}from"node:url";var f=i.join(K.homedir(),".kodax","commands");function b(){return f}a(b,"getDefaultCommandDir");function h(n){let t=i.extname(n);if(t!==".js"&&t!==".ts")throw new Error(`Unsupported programmable command module extension: ${t||"<none>"}.`);return X(i.resolve(n))}a(h,"resolveProgrammableCommandModuleUrl");async function D(n){let t=new Map,e=n??f;try{await u.mkdir(e,{recursive:!0});let r=await u.readdir(e);for(let o of r){let s=i.extname(o),g=o.replace(s,"");if(s===".md"){try{let m=await u.readFile(i.join(e,o),"utf-8"),l=(m.split(`
|
|
3
|
+
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";t.set(g,{name:g,description:l,content:m,type:"prompt"})}catch{}continue}if(s===".js"||s===".ts"){let m=i.join(e,o);try{let l=await import(h(m).href);for(let[C,p]of Object.entries(l))if(C.startsWith("command_")&&typeof p=="function"){let c=C.replace("command_",""),y=p.description??c;t.set(c,{name:c,description:String(y).slice(0,60),content:`[Programmable command: ${c}]`,type:"programmable",execute:p})}}catch(d){x({source:"cli:commands",level:"warn",message:s===".ts"?`Failed to load TypeScript programmable command ${m}; enable a TypeScript loader or compile it to .js.`:`Failed to load programmable command module ${m}.`,detail:d})}}}}catch{}return t}a(D,"loadCommands");async function w(n,t,e,r){let o=e.get(n);return o?o.type==="prompt"?t?o.content.replace(/{args}/g,t):o.content:o.type==="programmable"&&o.execute?o.execute({args:t,runAgent:r}):null:null}a(w,"processCommandCall");function M(n){if(!n.startsWith("/"))return null;let t=n.slice(1).trim();if(!t)return null;let e=t.search(/\s/);if(e===-1)return[t];let r=t.slice(0,e),o=t.slice(e).trim();return o?[r,o]:[r]}a(M,"parseCommandCall");export{le as App,Go as AutocompleteContextProvider,Eo as BUILTIN_COMMANDS,Oe as BackgroundTaskBar,Ot as CONFIG_TEMPLATES,Le as ChildActivitySurface,Fn as ConsoleCapturer,yn as ConversationPageCacheCapacityError,Lt as CoreConfigWriteConflictError,Pt as DEFAULT_UI_STATE,Se as DialogSurface,ee as DotsIndicator,P as FILE_MODIFICATION_TOOLS,Xn as FileSessionStorage,ue as FullscreenTranscriptLayout,ae as HistoryItemRenderer,Zo as InputPrompt,It as IntegrationConfigConflictError,Qt as IntegrationConfigController,f as KODAX_COMMANDS_DIR,Zt as KODAX_CONFIG_FILE,Vt as KODAX_DIR,co as KODAX_EXAMPLE_CONFIG_FILE,lo as KODAX_INTEGRATION_EXAMPLE_FILES,Yt as KODAX_SESSIONS_DIR,ro as KODAX_VERSION,Nt as KeyMatchers,Mt as KeypressHandlerPriority,yt as KeypressParser,Rt as KeypressProvider,Z as LRUCache,me as LoadingIndicator,on as MemorySessionStorage,fe as MessageActions,ie as MessageList,ge as MessageSelector,_e as NotificationsSurface,St as PERMISSION_MODES,to as PREVIEW_MAX_LENGTH,kn as PendingInputsIndicator,ne as ProgressIndicator,xe as PromptComposer,Xe as PromptFooter,ye as PromptFooterLeftSide,Ke as PromptFooterRightSide,be as PromptHelpMenu,Ne as PromptSuggestionsSurface,bo as ProviderSetupConfigConflictError,ho as ProviderSetupInvalidConfigError,Ue as QueuedCommandsSurface,Je as RUNTIME_PERMISSION_PENDING_NOTICE,Kn as SessionReadError,pe as SimpleApp,te as SimpleInputPrompt,se as SimpleMessageDisplay,de as SimpleStatusBar,Ct as SingleLineTextInput,oe as Spinner,Ae as StashNotice,ce as StatusBar,ve as StatusNoticesSurface,Te as StreamingProvider,ht as StreamingState,ke as SuggestionsDisplay,wt as TOOL_STATUS_ICONS,Vo as TextBuffer,gt as TextInput,re as ThinkingIndicator,jn as ToolCallDisplay,Dt as ToolCallStatus,Rn as ToolGroup,Pn as ToolProgressBar,Mn as ToolStatusBadge,Ce as TranscriptViewport,Me as UIStateProvider,He as _resetQueuedPromptsCacheForTests,ir as appendClientNotice,ur as archiveSession,Ze as bootstrapAutoMode,ct as calculateVisualCursorFromLayout,st as calculateVisualLayout,A as collectBashWriteTargets,Yn as compactSession,_t as computeConfirmTools,rr as conversationHistoryFromCapture,$t as coreConfigWriteLockPath,Dn as createCliEvents,Cn as createConversationEntryChain,De as createHistoryItem,Ve as createInteractiveContext,wn as createJsonEvents,ze as createKeyMatcher,jt as createKeypressManager,en as createMemorySessionStorage,pn as createRecoveryHistoryItem,dn as createRetryHistoryItem,xn as createSessionConversationHistoryRevision,Cr as createSessionManager,$e as createStreamingManager,we as createToolCall,_o as createUserSkillInvocation,dt as darkTheme,Vn as dedupeSessions,pr as deleteSession,On as detectTerminalCapabilities,z as detectTerminalHostProfile,q as detectTerminalRenderHost,un as emitRecoveryHistoryItem,ln as emitRetryHistoryItem,fn as emptyConversationEntryChain,uo as ensureExampleConfigFile,po as ensureExampleConfigFiles,Bo as executeCommand,nn as executeShellCommand,ar as exportSessionBundle,gn as extendConversationEntryChain,Fo as extractHistorySeedsFromMessage,Lo as extractHistorySeedsFromMessages,$o as extractTextContent,To as extractTitle,cn as findMostRecentResumableSession,sr as forkSession,Io as formatMessagePreview,he as generateId,N as generateSavePattern,O as getBashOutsideProjectWriteRisk,nt as getCharAtCodePoint,tt as getCodePointLength,qo as getCommandRegistry,Ft as getConfigTemplate,En as getCustomProviderConfig,b as getDefaultCommandDir,Ko as getGitRoot,bt as getKeyDisplayName,Gn as getMcpServerConfig,F as getPlanModeBlockReason,ao as getProviderList,mo as getProviderModel,Do as getProviderSetupCatalog,Q as getTerminalHostCapabilities,vn as getTerminalWidth,ut as getTheme,ft as getThemeNames,no as getVersion,et as getVisualWidth,it as getVisualWidthCached,$ as hasCursorUpViewportYankRisk,I as hasMainScreenRenderScrollRisk,oo as hydrateProcessEnvFromShell,jo as initializeSetupConfiguration,wo as inspectProviderSetupReadiness,S as isAlwaysConfirmPath,j as isBashReadCommand,_ as isBashReadCommandAutoAllowed,R as isBashWriteCommand,Y as isClassicReplForced,U as isCommandOnProtectedPath,Kt as isFunctionKey,V as isOwnedRendererPreferred,v as isPathInsideProject,vt as isPermissionMode,Xt as isPrintable,io as isProviderConfigured,T as isRemoteConptyHost,An as isScreenReader,rn as isShellCommand,mn as isShellCommandSuccess,W as isTmuxControlMode,k as isToolCallAllowed,L as isVsCodeTerminalHostEnv,ot as isWideChar,Wn as listCustomProviders,Bn as listMcpServers,Wo as listRegisteredCommands,lr as listRunningSessions,Zn as listSessions,So as loadAutoModeSettings,D as loadCommands,so as loadConfig,or as loadFullTranscript,tr as loadSession,Fe as measureChildActivitySurfaceRows,Ht as migrateLegacyIntegrationConfig,lt as minimalTheme,At as normalizePermissionMode,zo as parseCommand,M as parseCommandCall,Et as parseExtensionsIntegrationDocument,xt as parseKeypress,Wt as parseMcpIntegrationDocument,Ut as permissionModeDisplayName,Mo as persistProviderSetupChoice,Gt as planLegacyIntegrationMigration,tn as prepareInvocationExecution,fo as prepareRuntimeConfig,w as processCommandCall,In as processSpecialSyntax,Po as providerSetupRestartInstructions,Xo as rateLimitedCall,nr as readConversationHistory,Bt as readExtensionsIntegration,er as readFullTranscript,zt as readMcpIntegration,mr as readSessionCapture,eo as registerConfiguredCustomProviders,zn as removeCustomProvider,Jn as removeMcpServer,Ro as renderSetupGuide,No as replBashPathSignalCollector,E as resetTmuxControlModeProbeForTesting,Uo as resolveAutoModeSettings,B as resolveConfiguredTuiRendererMode,G as resolveEffectiveTuiRendererMode,J as resolveFullscreenPolicy,qt as resolveIntegrationConfigPath,H as resolveInteractiveSurfacePreference,yo as resolveRuntimeEffortSelection,xo as resolveRuntimeModelSelection,Co as resolveRuntimeProviderSelection,vo as resolveUserSkillInvocation,sn as restoreHistoryItemsFromSession,cr as rewindSession,bn as runInkInteractiveMode,Tn as runInteractiveMode,ko as runProviderSetupWizard,hn as runSessionPicker,go as saveConfig,Ao as seedToHistoryItem,dr as setActiveEntry,rt as splitByCodePoints,Sn as supports256Colors,_n as supportsEmoji,Nn as supportsTrueColor,Un as supportsUnicode,pt as themes,Qe as toReplRuntimeAutoModeSettings,Oo as toolCallSeedToHistoryToolCall,Ye as touchContext,an as trimPersistedUiHistorySnapshot,mt as truncateByVisualWidth,fr as unarchiveSession,qn as upsertCustomProvider,Hn as upsertMcpServer,Jo as useAutocomplete,Ho as useAutocompleteContext,Qo as useInputHistory,qe as useKeypress,kt as useKeypressManager,Ge as useQueuedPromptContents,Be as useQueuedPrompts,Ee as useStreaming,We as useStreamingActions,Ie as useStreamingState,Yo as useTextBuffer,Re as useUI,je as useUIActions,Pe as useUIState,Qn as validateMcpServerConfig,at as visualWidthCache,gr as watchSessions,Ln as withCapture,$n as withCaptureSync,Tt as withCoreConfigWriteLock,Jt as writeIntegrationDocument};
|
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import { KodaXReasoningMode, KodaXCustomProviderConfig } from './
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { saveConfig } from './index.js';
|
|
16
|
-
import { CommandInfo } from './sdk-repl.js';
|
|
17
|
-
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-BsZWOq3P.js';
|
|
18
|
-
import { FullTranscriptSessionData, SessionConversationHistoryData, SessionConversationHistoryStatus, SessionConversationHistoryIssue, SessionConversationHistoryEntry, CompactSessionResult } from './sdk-repl.js';
|
|
1
|
+
import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CK9A9rpP.js';
|
|
2
|
+
export { k as KodaXMessage } from './types-chunks/types.d-CK9A9rpP.js';
|
|
3
|
+
import { a4 as KodaXOptions, av as KodaXShellExecutionContract, a9 as KodaXOutputSegmentProjection, b2 as KodaXToolSandboxObservationUpdate, b0 as KodaXToolEventMeta, Z as KodaXManagedTaskStatusEvent, S as KodaXEvents, an as KodaXResult, bB as RuntimeContextBudgetSnapshot, bI as RuntimeToolExposurePlan, af as KodaXPromptCacheDiagnosticEvent, P as KodaXContextOptions, ac as KodaXOutputSegmentStarted, K as KodaXActivityEventMeta, b8 as KodaXTurnStartedEvent, b5 as KodaXTurnCompletedEvent, b7 as KodaXTurnFailedEvent, U as KodaXLiveEventMeta, J as KodaXCompactionEndResult, by as RuntimeCompactionSkippedEvent, N as KodaXContextCompactionFinishedEvent, O as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-B2rxNI4L.js';
|
|
4
|
+
import { w as AgentExecutionKind, M as AgentTreeSnapshot, s as AgentDetail, L as AgentSpawnInput, P as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, H as AgentOutput, t as AgentEvent } from './types-chunks/types.d-rUOjXych.js';
|
|
5
|
+
import { r as AgentDispatchContext, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bF as LearningSurfaceSnapshot, bv as LearningEvent, bE as LearningSubscribeOptions, B as AgentExecutorFactory, s as AgentDispatchPolicy, q as AgentCredentialBroker, h as AgentArtifactPolicy, aZ as KodaXImageInputArtifact, b0 as KodaXInputArtifactSource, b1 as KodaXVideoInputArtifact, de as WorkflowProcessSnapshot, d8 as WorkflowProcessEvent, W as AgentRegistrationService, ay as DispatchableAgentQuery, aw as DispatchableAgentListing, R as AgentPreflightInput, S as AgentPreflightResult } from './types-chunks/controller.d-C5noq5-w.js';
|
|
6
|
+
import { i as SkillMetadata } from './types-chunks/types.d-Cb8RdrjU.js';
|
|
7
|
+
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
8
|
+
import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.js';
|
|
9
|
+
import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-CKU8zmt_.js';
|
|
10
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-BVJSntpS.js';
|
|
11
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-C5xQEFcj.js';
|
|
12
|
+
import { i as AutoModeDecisionDiagnostics, t as AutoModeStats } from './types-chunks/guardrail.d-DqHD-61O.js';
|
|
13
|
+
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CWUyLiXo.js';
|
|
14
|
+
import { l as FullTranscriptSessionData, ag as SessionTranscriptEntry, a2 as SessionConversationHistoryData, a6 as SessionConversationHistoryStatus, a4 as SessionConversationHistoryIssue, a3 as SessionConversationHistoryEntry, c as CompactSessionResult } from './types-chunks/public-api.d-D7fXaWW8.js';
|
|
19
15
|
import 'vscode-languageserver-protocol';
|
|
20
|
-
import './types-chunks/cost-tracker.d-
|
|
21
|
-
import './types-chunks/types-
|
|
16
|
+
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
17
|
+
import './types-chunks/types-PHjfwebT.js';
|
|
22
18
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
23
|
-
import './types-chunks/base.d-
|
|
24
|
-
import './types-chunks/side-query.d-
|
|
19
|
+
import './types-chunks/base.d-vopO1rml.js';
|
|
20
|
+
import './types-chunks/side-query.d-iH0P9ASy.js';
|
|
25
21
|
import 'readline';
|
|
26
22
|
import 'child_process';
|
|
27
23
|
|
|
@@ -238,12 +234,16 @@ interface RuntimeDaemonRequestControl {
|
|
|
238
234
|
readonly signal?: AbortSignal;
|
|
239
235
|
readonly onLateResult?: (value: unknown) => void;
|
|
240
236
|
}
|
|
237
|
+
/** Factual state for one daemon connection; disconnected does not imply daemon crash. */
|
|
241
238
|
interface RuntimeDaemonTransportLifecycleState {
|
|
242
239
|
readonly state: 'connected' | 'disconnected';
|
|
243
240
|
readonly connectionId: string;
|
|
241
|
+
readonly code?: RuntimeDaemonDisconnectCode;
|
|
244
242
|
readonly reason?: string;
|
|
245
243
|
readonly reconnectable: boolean;
|
|
246
244
|
}
|
|
245
|
+
/** Transport-observable close reason. Run/daemon crash classification needs durable evidence. */
|
|
246
|
+
type RuntimeDaemonDisconnectCode = 'protocol_closed' | 'transport_error' | 'invalid_frame' | 'client_closed';
|
|
247
247
|
declare class RuntimeTransportBoundaryError extends Error {
|
|
248
248
|
readonly path: string;
|
|
249
249
|
readonly code: "invalid_transport_value";
|
|
@@ -276,14 +276,18 @@ interface RuntimeDaemonLockOwner {
|
|
|
276
276
|
readonly processContainment?: 'windows-job';
|
|
277
277
|
/** Process outside the Job whose exit proves that the Job became empty. */
|
|
278
278
|
readonly supervisorPid?: number;
|
|
279
|
+
/** OS-issued identity that distinguishes the original supervisor from PID reuse. */
|
|
280
|
+
readonly supervisorProcessStartIdentity?: string;
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
interface RuntimeDaemonShutdownVerificationOwner {
|
|
282
284
|
readonly runtimeId: string;
|
|
283
285
|
readonly pid: number;
|
|
284
286
|
readonly kind?: 'daemon' | 'inline';
|
|
287
|
+
readonly processStartIdentity?: string;
|
|
285
288
|
readonly processContainment?: 'windows-job';
|
|
286
289
|
readonly supervisorPid?: number;
|
|
290
|
+
readonly supervisorProcessStartIdentity?: string;
|
|
287
291
|
}
|
|
288
292
|
interface RuntimeDaemonShutdownVerificationInput {
|
|
289
293
|
readonly configHome: string;
|
|
@@ -316,7 +320,7 @@ type RuntimeExitSettlement = {
|
|
|
316
320
|
} | {
|
|
317
321
|
readonly status: 'blocked';
|
|
318
322
|
readonly reason: RuntimeExitSettlementBlockReason;
|
|
319
|
-
readonly nextAction: 'keep-open' | 'relaunch-space' | 'restart-system' | 'manual-recovery';
|
|
323
|
+
readonly nextAction: 'keep-open' | 'relaunch-space' | 'retry-automatically' | 'restart-system' | 'manual-recovery';
|
|
320
324
|
readonly message: string;
|
|
321
325
|
};
|
|
322
326
|
interface RuntimeExitSettlementOwnerPolicy {
|
|
@@ -378,6 +382,14 @@ interface RuntimeDaemonEndpoint {
|
|
|
378
382
|
readonly kind: 'pipe' | 'unix';
|
|
379
383
|
readonly path: string;
|
|
380
384
|
}
|
|
385
|
+
/** Pending RPC failure enriched with the same facts published by the lifecycle stream. */
|
|
386
|
+
declare class RuntimeDaemonDisconnectError extends Error {
|
|
387
|
+
readonly code: RuntimeDaemonDisconnectCode;
|
|
388
|
+
readonly connectionId: string;
|
|
389
|
+
readonly reconnectable: boolean;
|
|
390
|
+
constructor(message: string, code: RuntimeDaemonDisconnectCode, connectionId: string, reconnectable: boolean, options?: ErrorOptions);
|
|
391
|
+
}
|
|
392
|
+
declare function isRuntimeDaemonDisconnectError(error: unknown): error is RuntimeDaemonDisconnectError;
|
|
381
393
|
|
|
382
394
|
declare function parseRuntimeEvent(value: unknown): RuntimeEventParseResult;
|
|
383
395
|
|
|
@@ -1044,6 +1056,8 @@ interface RuntimeOwnerIdentity {
|
|
|
1044
1056
|
readonly processStartIdentity?: string;
|
|
1045
1057
|
readonly processContainment?: "windows-job";
|
|
1046
1058
|
readonly supervisorPid?: number;
|
|
1059
|
+
/** OS-issued identity used to distinguish the original supervisor from PID reuse. */
|
|
1060
|
+
readonly supervisorProcessStartIdentity?: string;
|
|
1047
1061
|
}
|
|
1048
1062
|
interface RuntimeOwnerState {
|
|
1049
1063
|
readonly profile: string;
|
|
@@ -1193,12 +1207,13 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1193
1207
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
1194
1208
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
1195
1209
|
readonly actorSettlementConvergence: 2;
|
|
1210
|
+
readonly conversationHistory: 2;
|
|
1196
1211
|
readonly crashOutcomeModel: 2;
|
|
1197
1212
|
readonly daemonOrphanExit: 1;
|
|
1198
1213
|
readonly daemonShutdownVerification: 1;
|
|
1199
1214
|
readonly managedRunDurability: 1;
|
|
1200
|
-
readonly runtimeExitSettlement:
|
|
1201
|
-
readonly sandboxRuntime:
|
|
1215
|
+
readonly runtimeExitSettlement: 2;
|
|
1216
|
+
readonly sandboxRuntime: 5;
|
|
1202
1217
|
readonly sessionEventJournal: 1;
|
|
1203
1218
|
readonly runtimeEventCoalescing: 1;
|
|
1204
1219
|
readonly liveOutputSegments: 1;
|
|
@@ -1234,8 +1249,8 @@ interface RuntimeCapabilityRequirements {
|
|
|
1234
1249
|
readonly transcriptPaging?: 1;
|
|
1235
1250
|
/** Require deterministic exact-history search over merged persisted lineage. */
|
|
1236
1251
|
readonly transcriptSearch?: 1;
|
|
1237
|
-
/**
|
|
1238
|
-
readonly conversationHistory?: 1;
|
|
1252
|
+
/** v2 also requires topology-transparent managed context and direct clone provenance. */
|
|
1253
|
+
readonly conversationHistory?: 1 | 2;
|
|
1239
1254
|
readonly connectionLifecycle?: 1;
|
|
1240
1255
|
readonly typedRuntimeEvents?: 1;
|
|
1241
1256
|
readonly daemonSafeRunInput?: 1;
|
|
@@ -1260,7 +1275,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
1260
1275
|
readonly integrationConfigResilience?: 1;
|
|
1261
1276
|
readonly actorControlPlane?: 1;
|
|
1262
1277
|
/** Require the sandbox-first execution chain and permission fallback revision. */
|
|
1263
|
-
readonly sandboxRuntime?: 1 | 2 | 3 | 4;
|
|
1278
|
+
readonly sandboxRuntime?: 1 | 2 | 3 | 4 | 5;
|
|
1264
1279
|
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
1265
1280
|
readonly runtimeAutoModeGuardrail?: 1 | 2 | 3 | 4;
|
|
1266
1281
|
}
|
|
@@ -1304,6 +1319,7 @@ interface RuntimeConnectionState {
|
|
|
1304
1319
|
readonly connectionId: string;
|
|
1305
1320
|
readonly runtimeEpoch: string;
|
|
1306
1321
|
readonly journalEpoch?: string;
|
|
1322
|
+
readonly code?: RuntimeDaemonTransportLifecycleState["code"];
|
|
1307
1323
|
readonly reason?: string;
|
|
1308
1324
|
readonly reconnectable: boolean;
|
|
1309
1325
|
}
|
|
@@ -1399,6 +1415,7 @@ interface RuntimeCommandInfo {
|
|
|
1399
1415
|
}
|
|
1400
1416
|
interface RuntimeSkillListFilter {
|
|
1401
1417
|
readonly projectRoot?: string;
|
|
1418
|
+
/** @deprecated Every enabled Skill is explicitly user-invocable. */
|
|
1402
1419
|
readonly userInvocableOnly?: boolean;
|
|
1403
1420
|
}
|
|
1404
1421
|
interface RuntimeSkillDescribeInput {
|
|
@@ -1413,10 +1430,12 @@ interface RuntimeSkillFileSummary {
|
|
|
1413
1430
|
interface RuntimeSkillSummary {
|
|
1414
1431
|
readonly name: string;
|
|
1415
1432
|
readonly description: string;
|
|
1433
|
+
/** Always true for enabled Skills; retained for wire compatibility. */
|
|
1416
1434
|
readonly userInvocable: boolean;
|
|
1417
1435
|
readonly argumentHint?: string;
|
|
1418
1436
|
readonly path: string;
|
|
1419
1437
|
readonly source: SkillMetadata["source"];
|
|
1438
|
+
/** True when the Skill is hidden from model discovery and the model tool. */
|
|
1420
1439
|
readonly disableModelInvocation: boolean;
|
|
1421
1440
|
}
|
|
1422
1441
|
interface RuntimeSkillDescription extends RuntimeSkillSummary {
|
|
@@ -1591,7 +1610,8 @@ interface RuntimeSessionDiagnosticsInput extends RuntimeReadOptions {
|
|
|
1591
1610
|
/** Select one Run control record; otherwise the authoritative Session Run is used. */
|
|
1592
1611
|
readonly runId?: string;
|
|
1593
1612
|
}
|
|
1594
|
-
|
|
1613
|
+
/** Bounded support classification; `unknown` settlement remains fail-closed. */
|
|
1614
|
+
type RuntimeSessionDiagnosticErrorCode = "run_control_unknown" | "run_status_unknown" | "owner_liveness_unconfirmed" | "owner_recovery_required" | "stop_outcome_unconfirmed" | "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_settlement_not_persisted" | "run_failed" | "terminal_time_unknown";
|
|
1595
1615
|
interface RuntimeSessionDiagnosticError {
|
|
1596
1616
|
readonly code: RuntimeSessionDiagnosticErrorCode;
|
|
1597
1617
|
readonly message: string;
|
|
@@ -2013,8 +2033,9 @@ interface RuntimeRunStatus {
|
|
|
2013
2033
|
readonly stop?: RuntimeRunStopStatus;
|
|
2014
2034
|
readonly requirements?: RuntimeRunRequirements;
|
|
2015
2035
|
}
|
|
2036
|
+
/** Durable lifecycle uncertainty reported without converting it into a successful terminal. */
|
|
2016
2037
|
interface RuntimeRunLifecycleError {
|
|
2017
|
-
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted";
|
|
2038
|
+
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_settlement_not_persisted";
|
|
2018
2039
|
readonly message: string;
|
|
2019
2040
|
readonly retryable: boolean;
|
|
2020
2041
|
}
|
|
@@ -2067,12 +2088,16 @@ interface RuntimeRunStopReceipt {
|
|
|
2067
2088
|
readonly revision: number;
|
|
2068
2089
|
}
|
|
2069
2090
|
type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "actor_settlement_not_persisted" | "control_history_untrusted";
|
|
2091
|
+
/** Credential-safe failure category; raw provider error text is never required. */
|
|
2092
|
+
type RuntimeRunFailureKind = "auth" | "rate_limit" | "network" | "provider_aborted" | "invalid_response" | "runtime_cleanup" | "provider";
|
|
2070
2093
|
interface RuntimeTerminalFact {
|
|
2071
2094
|
readonly revision: number;
|
|
2072
2095
|
readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
|
|
2073
2096
|
readonly code: RuntimeTerminalCode;
|
|
2074
2097
|
readonly effectOutcome: "none" | "known" | "unknown";
|
|
2075
2098
|
readonly message?: string;
|
|
2099
|
+
/** Safe diagnostic category for failed terminals, independent from display text. */
|
|
2100
|
+
readonly failureKind?: RuntimeRunFailureKind;
|
|
2076
2101
|
}
|
|
2077
2102
|
interface RuntimeRunResult {
|
|
2078
2103
|
readonly runId: string;
|
|
@@ -2671,5 +2696,5 @@ declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Prom
|
|
|
2671
2696
|
*/
|
|
2672
2697
|
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2673
2698
|
|
|
2674
|
-
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, 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, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2675
|
-
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, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
|
2699
|
+
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimeDaemonDisconnectError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, isRuntimeDaemonDisconnectError, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2700
|
+
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, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonDisconnectCode, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFailureKind, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, 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,s,t,u,v,w,x,y}from"./chunks/chunk-
|
|
2
|
+
import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunks/chunk-Y5VIQBT6.js";import"./chunks/chunk-BR2OSB2I.js";import"./chunks/chunk-O743AJ5V.js";import"./chunks/chunk-6ABQJUK6.js";import"./chunks/chunk-C4DTUKTR.js";import"./chunks/chunk-OK4AXDC5.js";import"./chunks/chunk-DSMONSVB.js";import"./chunks/chunk-2TM3W3GK.js";import"./chunks/chunk-Q5VRWSKG.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-JS452J2F.js";import"./chunks/chunk-7JXA3533.js";import"./chunks/chunk-XWRPOGJN.js";import"./chunks/chunk-SRIJX5ZP.js";import"./chunks/chunk-2PEDBGKN.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-BNVSKIAB.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,v as KODAX_RUNTIME_SDK_CAPABILITIES,d as RUNTIME_DAEMON_METHODS,i as RUNTIME_DAEMON_METHOD_SCHEMAS,j as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,k as RUNTIME_DAEMON_PROTOCOL_SCHEMA,l as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,p as RuntimeAutoModeConfigurationError,o as RuntimeDaemonCapabilityUpgradeError,g as RuntimeDaemonDisconnectError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,q as acquireKodaXInlineOwner,x as captureRuntimeSessionDiagnostics,z as connectKodaXRuntime,y as createKodaXRuntime,t as enableKodaXDaemonOwner,r as getKodaXRuntimeOwnerPolicy,s as getKodaXRuntimeOwnerState,w as handleRuntimePermissionRequest,h as isRuntimeDaemonDisconnectError,m as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,u as setKodaXRuntimeOwnerMode,A as settleKodaXRuntimeExit,n as waitForRuntimeDaemonShutdown};
|
package/dist/sdk-sandbox.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface SandboxSetupOutcome {
|
|
|
59
59
|
readonly error?: string;
|
|
60
60
|
}
|
|
61
61
|
interface KodaXSandboxCapability {
|
|
62
|
-
readonly version:
|
|
62
|
+
readonly version: 5;
|
|
63
63
|
readonly asrtVersion: string;
|
|
64
64
|
readonly platform: NodeJS.Platform;
|
|
65
65
|
readonly backend: 'windows-restricted-user' | 'macos-seatbelt' | 'linux-bubblewrap' | 'unsupported';
|
|
@@ -69,6 +69,15 @@ interface KodaXSandboxCapability {
|
|
|
69
69
|
readonly setupMayElevate: boolean;
|
|
70
70
|
readonly unavailableBehavior: 'structured-no-execution';
|
|
71
71
|
readonly permissionFallback: 'normal-permission-policy';
|
|
72
|
+
/**
|
|
73
|
+
* Marker field (v4, non-versioned): Windows sandboxed git trusts exactly the
|
|
74
|
+
* session-authorized repo roots through per-exec `safe.directory` env entries.
|
|
75
|
+
* A daemon that reports `sandboxRuntime` without this field predates that
|
|
76
|
+
* behavior; clients surface a restart diagnostic instead of failing the gate.
|
|
77
|
+
*/
|
|
78
|
+
readonly gitSafeDirectory: 'authorized-repo-roots';
|
|
79
|
+
readonly delayedEffectDrainRecovery: 'automatic';
|
|
80
|
+
readonly sameBootAclRecovery: 'sandbox-user-process-probe';
|
|
72
81
|
}
|
|
73
82
|
declare function sandboxRuntimeCapability(): KodaXSandboxCapability;
|
|
74
83
|
declare function doctorSandboxRuntime(options?: {
|
package/dist/sdk-sandbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunks/chunk-5BNQXXGY.js";import{a,b,h as c,i as d,j as e,k as f,l as g}from"./chunks/chunk-
|
|
2
|
+
import"./chunks/chunk-5BNQXXGY.js";import{a,b,h as c,i as d,j as e,k as f,l as g}from"./chunks/chunk-BR2OSB2I.js";import"./chunks/chunk-XWRPOGJN.js";import"./chunks/chunk-BNVSKIAB.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{a as KODAX_ASRT_VERSION,f as activateKodaXSandbox,c as doctorKodaXSandbox,b as getKodaXSandboxCapability,e as getKodaXSandboxSetupGuidance,g as runKodaXSandboxed,d as setupKodaXSandbox};
|