@kodax-ai/kodax 0.7.92 → 0.7.94
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 +125 -0
- package/README.md +63 -18
- package/README_CN.md +31 -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-YHHFIH7N.js → agent-Q3FB3GNZ.js} +1 -1
- package/dist/chunks/argument-completer-SS2Q2ZKT.js +2 -0
- package/dist/chunks/chunk-56CIZI5I.js +418 -0
- package/dist/chunks/{chunk-QPBN3J4E.js → chunk-6BATYA47.js} +2 -2
- package/dist/chunks/chunk-77PNP27P.js +92 -0
- package/dist/chunks/chunk-7CKGNNTU.js +383 -0
- package/dist/chunks/{chunk-X75UGXP3.js → chunk-7QBWHCIZ.js} +1 -1
- package/dist/chunks/{chunk-FBL7IVMK.js → chunk-BHE66SP3.js} +14 -14
- package/dist/chunks/{chunk-YVG6OKN7.js → chunk-BVV3IA5W.js} +1 -1
- package/dist/chunks/chunk-EASGM7W7.js +687 -0
- package/dist/chunks/{chunk-GRWUC6H7.js → chunk-IIIAUDGW.js} +1 -1
- package/dist/chunks/{chunk-GH3KBC2H.js → chunk-N7HIJNJH.js} +1 -1
- package/dist/chunks/{chunk-THZVJ6R7.js → chunk-NGOPE4KK.js} +10 -10
- package/dist/chunks/chunk-NK5AWGNW.js +319 -0
- package/dist/chunks/{chunk-7XSZVOG7.js → chunk-UNRHTOT5.js} +134 -133
- package/dist/chunks/{chunk-5CIKWSCA.js → chunk-YMNFQ7SQ.js} +2 -2
- package/dist/chunks/{chunk-AGZNXFHZ.js → chunk-ZGZLSKN6.js} +214 -213
- package/dist/chunks/{chunk-PKPBII4F.js → chunk-ZKEXHAXA.js} +238 -239
- package/dist/chunks/{chunk-OSQIYUGD.js → chunk-ZMGATMXN.js} +121 -122
- package/dist/chunks/{client-OVYKC3ND.js → client-4IOUU4U3.js} +1 -1
- package/dist/chunks/compaction-config-2DTN3OHT.js +2 -0
- package/dist/chunks/{construction-bootstrap-QVLJPFTL.js → construction-bootstrap-BL56XTNW.js} +1 -1
- package/dist/chunks/dist-B4CB7KHY.js +2 -0
- package/dist/chunks/{dist-WNMK42WE.js → dist-ITTXQHRJ.js} +1 -1
- package/dist/chunks/host-7747QS3X.js +2 -0
- package/dist/chunks/run-manager-NLNMI3P2.js +2 -0
- package/dist/chunks/{utils-HPVZCR2J.js → utils-CGGQLMJS.js} +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2 -2
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1554 -1384
- package/dist/runtime-worker.js +1562 -1392
- package/dist/sandbox-workspace-session.js +429 -260
- package/dist/sdk-a2a.d.ts +6 -6
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +17 -6
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +32 -15
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +32 -14
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +31 -8
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +7 -0
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- 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 +61 -60
- package/dist/types-chunks/{bash-prefix-extractor.d-BMi_TJIY.d.ts → bash-prefix-extractor.d-AOJdvO4r.d.ts} +53 -3
- package/dist/types-chunks/{guardrail.d-CKkoea7y.d.ts → guardrail.d-D8RyuTrv.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-BsZWOq3P.d.ts → public-api.d-BNmLxGnR.d.ts} +1 -1
- package/dist/types-chunks/{repl.d-DxD0Olm0.d.ts → repl.d-Q6Z3lV2-.d.ts} +4 -4
- package/dist/types-chunks/{sdk-session-BTzblJTQ.d.ts → sdk-session-BwC_i6JB.d.ts} +1 -1
- package/dist/types-chunks/sdk-skills-Bg1yL4i4.d.ts +335 -0
- package/dist/types-chunks/{shell-command-sets.d-C2cc9Hwi.d.ts → shell-command-sets.d-hkYPr4Dy.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Dc3kwcjC.d.ts → types.d-Bdv2JoiC.d.ts} +12 -1
- package/dist/types-chunks/{types.d-DrtP1ceI.d.ts → types.d-CzrUifXB.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BEMcUOng.d.ts → types.d-ssh6zRaf.d.ts} +5 -4
- package/dist/types-chunks/{utils.d-50Q24Few.d.ts → utils.d-Buv_Gxhi.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunks/argument-completer-6ZTRBNZM.js +0 -2
- package/dist/chunks/chunk-A6GNPNGB.js +0 -383
- package/dist/chunks/chunk-BV3SVH36.js +0 -519
- package/dist/chunks/chunk-QFV6YCIH.js +0 -92
- package/dist/chunks/chunk-QKLS4BYA.js +0 -320
- package/dist/chunks/chunk-RJIYXB62.js +0 -415
- package/dist/chunks/compaction-config-2TVSYSB4.js +0 -2
- package/dist/chunks/dist-XC5M7UYX.js +0 -2
- package/dist/chunks/host-B3TK2U43.js +0 -2
- package/dist/chunks/run-manager-5AV3MR4W.js +0 -2
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-NK5AWGNW.js";import{A as So,B as Uo,Fa as Wo,Ga as Eo,H as _o,Ha as qo,I as vo,Ja as zo,Ka as Bo,Q as Ao,R as Oo,S as Fo,T as Lo,U as $o,Z as To,_ as Io,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-ZKEXHAXA.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-YMNFQ7SQ.js";import"./chunks/chunk-IIIAUDGW.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.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-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import{t as x}from"./chunks/chunk-UNRHTOT5.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,6 +1,6 @@
|
|
|
1
1
|
import { KodaXReasoningMode, KodaXCustomProviderConfig } from './index.js';
|
|
2
2
|
export { b as KodaXMessage } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
|
-
import { Q as KodaXEvents, al as KodaXResult,
|
|
3
|
+
import { Q as KodaXEvents, al as KodaXResult, bx as RuntimeContextBudgetSnapshot, bE as RuntimeToolExposurePlan, ad as KodaXPromptCacheDiagnosticEvent } from './types-chunks/bash-prefix-extractor.d-AOJdvO4r.js';
|
|
4
4
|
import { KodaXOptions, KodaXShellExecutionContract, KodaXOutputSegmentProjection, KodaXToolSandboxObservationUpdate, KodaXToolEventMeta, KodaXManagedTaskStatusEvent, KodaXContextOptions, KodaXOutputSegmentStarted, KodaXActivityEventMeta, KodaXTurnStartedEvent, KodaXTurnCompletedEvent, KodaXTurnFailedEvent, KodaXLiveEventMeta, KodaXCompactionEndResult, RuntimeCompactionSkippedEvent, KodaXContextCompactionFinishedEvent, KodaXContextIdentity } from './index.js';
|
|
5
5
|
import { AgentExecutionKind, AgentTreeSnapshot, AgentDetail, AgentSpawnInput, AgentTurnRef, AgentDataClassification, AgentFollowupResult, AgentOutput, AgentEvent } from './sdk-agent.js';
|
|
6
6
|
import { KodaXImageInputArtifact, KodaXInputArtifactSource, KodaXVideoInputArtifact } from './index.js';
|
|
@@ -14,7 +14,7 @@ import { LoadedExtensionDiagnostic, ExtensionRuntimeDiagnostics } from './index.
|
|
|
14
14
|
import { AutoModeDecisionDiagnostics, AutoModeStats } from './index.js';
|
|
15
15
|
import { saveConfig } from './index.js';
|
|
16
16
|
import { CommandInfo } from './sdk-repl.js';
|
|
17
|
-
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-
|
|
17
|
+
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-BNmLxGnR.js';
|
|
18
18
|
import { FullTranscriptSessionData, SessionConversationHistoryData, SessionConversationHistoryStatus, SessionConversationHistoryIssue, SessionConversationHistoryEntry, CompactSessionResult } from './sdk-repl.js';
|
|
19
19
|
import 'vscode-languageserver-protocol';
|
|
20
20
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
@@ -238,12 +238,16 @@ interface RuntimeDaemonRequestControl {
|
|
|
238
238
|
readonly signal?: AbortSignal;
|
|
239
239
|
readonly onLateResult?: (value: unknown) => void;
|
|
240
240
|
}
|
|
241
|
+
/** Factual state for one daemon connection; disconnected does not imply daemon crash. */
|
|
241
242
|
interface RuntimeDaemonTransportLifecycleState {
|
|
242
243
|
readonly state: 'connected' | 'disconnected';
|
|
243
244
|
readonly connectionId: string;
|
|
245
|
+
readonly code?: RuntimeDaemonDisconnectCode;
|
|
244
246
|
readonly reason?: string;
|
|
245
247
|
readonly reconnectable: boolean;
|
|
246
248
|
}
|
|
249
|
+
/** Transport-observable close reason. Run/daemon crash classification needs durable evidence. */
|
|
250
|
+
type RuntimeDaemonDisconnectCode = 'protocol_closed' | 'transport_error' | 'invalid_frame' | 'client_closed';
|
|
247
251
|
declare class RuntimeTransportBoundaryError extends Error {
|
|
248
252
|
readonly path: string;
|
|
249
253
|
readonly code: "invalid_transport_value";
|
|
@@ -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
|
|
|
@@ -1193,6 +1205,7 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1193
1205
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
1194
1206
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
1195
1207
|
readonly actorSettlementConvergence: 2;
|
|
1208
|
+
readonly conversationHistory: 2;
|
|
1196
1209
|
readonly crashOutcomeModel: 2;
|
|
1197
1210
|
readonly daemonOrphanExit: 1;
|
|
1198
1211
|
readonly daemonShutdownVerification: 1;
|
|
@@ -1234,8 +1247,8 @@ interface RuntimeCapabilityRequirements {
|
|
|
1234
1247
|
readonly transcriptPaging?: 1;
|
|
1235
1248
|
/** Require deterministic exact-history search over merged persisted lineage. */
|
|
1236
1249
|
readonly transcriptSearch?: 1;
|
|
1237
|
-
/**
|
|
1238
|
-
readonly conversationHistory?: 1;
|
|
1250
|
+
/** v2 also requires topology-transparent managed context and direct clone provenance. */
|
|
1251
|
+
readonly conversationHistory?: 1 | 2;
|
|
1239
1252
|
readonly connectionLifecycle?: 1;
|
|
1240
1253
|
readonly typedRuntimeEvents?: 1;
|
|
1241
1254
|
readonly daemonSafeRunInput?: 1;
|
|
@@ -1304,6 +1317,7 @@ interface RuntimeConnectionState {
|
|
|
1304
1317
|
readonly connectionId: string;
|
|
1305
1318
|
readonly runtimeEpoch: string;
|
|
1306
1319
|
readonly journalEpoch?: string;
|
|
1320
|
+
readonly code?: RuntimeDaemonTransportLifecycleState["code"];
|
|
1307
1321
|
readonly reason?: string;
|
|
1308
1322
|
readonly reconnectable: boolean;
|
|
1309
1323
|
}
|
|
@@ -1399,6 +1413,7 @@ interface RuntimeCommandInfo {
|
|
|
1399
1413
|
}
|
|
1400
1414
|
interface RuntimeSkillListFilter {
|
|
1401
1415
|
readonly projectRoot?: string;
|
|
1416
|
+
/** @deprecated Every enabled Skill is explicitly user-invocable. */
|
|
1402
1417
|
readonly userInvocableOnly?: boolean;
|
|
1403
1418
|
}
|
|
1404
1419
|
interface RuntimeSkillDescribeInput {
|
|
@@ -1413,10 +1428,12 @@ interface RuntimeSkillFileSummary {
|
|
|
1413
1428
|
interface RuntimeSkillSummary {
|
|
1414
1429
|
readonly name: string;
|
|
1415
1430
|
readonly description: string;
|
|
1431
|
+
/** Always true for enabled Skills; retained for wire compatibility. */
|
|
1416
1432
|
readonly userInvocable: boolean;
|
|
1417
1433
|
readonly argumentHint?: string;
|
|
1418
1434
|
readonly path: string;
|
|
1419
1435
|
readonly source: SkillMetadata["source"];
|
|
1436
|
+
/** True when the Skill is hidden from model discovery and the model tool. */
|
|
1420
1437
|
readonly disableModelInvocation: boolean;
|
|
1421
1438
|
}
|
|
1422
1439
|
interface RuntimeSkillDescription extends RuntimeSkillSummary {
|
|
@@ -1591,7 +1608,8 @@ interface RuntimeSessionDiagnosticsInput extends RuntimeReadOptions {
|
|
|
1591
1608
|
/** Select one Run control record; otherwise the authoritative Session Run is used. */
|
|
1592
1609
|
readonly runId?: string;
|
|
1593
1610
|
}
|
|
1594
|
-
|
|
1611
|
+
/** Bounded support classification; `unknown` settlement remains fail-closed. */
|
|
1612
|
+
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
1613
|
interface RuntimeSessionDiagnosticError {
|
|
1596
1614
|
readonly code: RuntimeSessionDiagnosticErrorCode;
|
|
1597
1615
|
readonly message: string;
|
|
@@ -2013,8 +2031,9 @@ interface RuntimeRunStatus {
|
|
|
2013
2031
|
readonly stop?: RuntimeRunStopStatus;
|
|
2014
2032
|
readonly requirements?: RuntimeRunRequirements;
|
|
2015
2033
|
}
|
|
2034
|
+
/** Durable lifecycle uncertainty reported without converting it into a successful terminal. */
|
|
2016
2035
|
interface RuntimeRunLifecycleError {
|
|
2017
|
-
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted";
|
|
2036
|
+
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_settlement_not_persisted";
|
|
2018
2037
|
readonly message: string;
|
|
2019
2038
|
readonly retryable: boolean;
|
|
2020
2039
|
}
|
|
@@ -2067,12 +2086,16 @@ interface RuntimeRunStopReceipt {
|
|
|
2067
2086
|
readonly revision: number;
|
|
2068
2087
|
}
|
|
2069
2088
|
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";
|
|
2089
|
+
/** Credential-safe failure category; raw provider error text is never required. */
|
|
2090
|
+
type RuntimeRunFailureKind = "auth" | "rate_limit" | "network" | "provider_aborted" | "invalid_response" | "runtime_cleanup" | "provider";
|
|
2070
2091
|
interface RuntimeTerminalFact {
|
|
2071
2092
|
readonly revision: number;
|
|
2072
2093
|
readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
|
|
2073
2094
|
readonly code: RuntimeTerminalCode;
|
|
2074
2095
|
readonly effectOutcome: "none" | "known" | "unknown";
|
|
2075
2096
|
readonly message?: string;
|
|
2097
|
+
/** Safe diagnostic category for failed terminals, independent from display text. */
|
|
2098
|
+
readonly failureKind?: RuntimeRunFailureKind;
|
|
2076
2099
|
}
|
|
2077
2100
|
interface RuntimeRunResult {
|
|
2078
2101
|
readonly runId: string;
|
|
@@ -2671,5 +2694,5 @@ declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Prom
|
|
|
2671
2694
|
*/
|
|
2672
2695
|
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2673
2696
|
|
|
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 };
|
|
2697
|
+
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 };
|
|
2698
|
+
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-7CKGNNTU.js";import"./chunks/chunk-EASGM7W7.js";import"./chunks/chunk-NK5AWGNW.js";import"./chunks/chunk-ZKEXHAXA.js";import"./chunks/chunk-YMNFQ7SQ.js";import"./chunks/chunk-IIIAUDGW.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.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
|
@@ -69,6 +69,13 @@ 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';
|
|
72
79
|
}
|
|
73
80
|
declare function sandboxRuntimeCapability(): KodaXSandboxCapability;
|
|
74
81
|
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,
|
|
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-EASGM7W7.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.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};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-
|
|
1
|
+
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-BNmLxGnR.js';
|
|
2
2
|
export { a as KodaXTaskResultMetadata, G as KodaXTaskResultSource } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
3
|
export { S as KodaXSessionUiHistoryItem, T as KodaXSessionUiHistoryItemType, U as KodaXSessionUiTextHistoryItem, V as KodaXSessionUiTextHistoryItemType, W as KodaXSessionUiToolCall, X as KodaXSessionUiToolCallStatus, Y as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-EjZTEEVu.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-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.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-BwC_i6JB.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-AOJdvO4r.js';
|
|
6
6
|
import 'vscode-languageserver-protocol';
|
|
7
7
|
import './types-chunks/controller.d-Bm1i9RVj.js';
|
|
8
|
-
import './types-chunks/types.d-
|
|
8
|
+
import './types-chunks/types.d-ssh6zRaf.js';
|
|
9
9
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
10
10
|
import './types-chunks/types-D8OiIEwA.js';
|
|
11
11
|
import './types-chunks/capability.d-K664nHOS.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{Ub as n,Vb as t,Wb as r,Xb as a,Yb as S,Zb as d,ac as l,bc as p,cb as o,cc as u,dc as y,ec as c,fc as m,gc as H,hc as C,ic as T,jc as x,kc as R,nb as i}from"./chunks/chunk-NK5AWGNW.js";import{S as s,T as e}from"./chunks/chunk-ZKEXHAXA.js";import"./chunks/chunk-YMNFQ7SQ.js";import"./chunks/chunk-IIIAUDGW.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{i as SessionReadError,p as appendClientNotice,C as archiveSession,n as compactSession,R as createSessionManager,H as deleteSession,l as exportSessionBundle,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,u as forkSession,m as listRunningSessions,t as listSessions,a as loadFullTranscript,r as loadSession,d as readConversationHistory,S as readFullTranscript,o as restoreHistoryItemsFromSession,y as rewindSession,c as setActiveEntry,T as unarchiveSession,x as watchSessions};
|