@kodax-ai/kodax 0.7.84 → 0.7.86

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +218 -5
  2. package/README.md +1888 -1850
  3. package/README_CN.md +1146 -1137
  4. package/dist/chunks/agent-IO6TXNCV.js +2 -0
  5. package/dist/chunks/argument-completer-JMICSGL6.js +2 -0
  6. package/dist/chunks/chunk-2RAXDUC7.js +379 -0
  7. package/dist/chunks/chunk-A5VQGXH2.js +2 -0
  8. package/dist/chunks/{chunk-OHZFGQEH.js → chunk-AAFFS6RU.js} +2 -2
  9. package/dist/chunks/chunk-B36G256E.js +679 -0
  10. package/dist/chunks/chunk-G5FGIRDJ.js +1278 -0
  11. package/dist/chunks/chunk-GVGLYVG4.js +5 -0
  12. package/dist/chunks/chunk-MFCPQZ7E.js +519 -0
  13. package/dist/chunks/chunk-Q6UAGROD.js +415 -0
  14. package/dist/chunks/chunk-R4EHASEN.js +319 -0
  15. package/dist/chunks/chunk-U6HNMLNN.js +410 -0
  16. package/dist/chunks/chunk-UH5WNJXF.js +92 -0
  17. package/dist/chunks/{chunk-WTYAZOWO.js → chunk-UKCDCVMD.js} +1 -1
  18. package/dist/chunks/chunk-XA4ENCAH.js +412 -0
  19. package/dist/chunks/{chunk-ZVPTDYDI.js → chunk-XUKLF26Q.js} +2 -2
  20. package/dist/chunks/compaction-config-5RMG22CY.js +2 -0
  21. package/dist/chunks/{construction-bootstrap-EVQ6VWSX.js → construction-bootstrap-4DGAYOWH.js} +1 -1
  22. package/dist/chunks/dist-DFW7MXT7.js +2 -0
  23. package/dist/chunks/host-6MMHYTI5.js +2 -0
  24. package/dist/chunks/run-manager-ISQSWCAM.js +2 -0
  25. package/dist/chunks/utils-LV7FHKYN.js +2 -0
  26. package/dist/index.d.ts +17 -15
  27. package/dist/index.js +2 -2
  28. package/dist/kodax_bootstrap.js +1 -1
  29. package/dist/kodax_cli.js +2074 -1615
  30. package/dist/kodax_resume.js +271 -90
  31. package/dist/runtime-worker.js +1812 -1359
  32. package/dist/sandbox-workspace-session.js +1069 -112
  33. package/dist/sdk-a2a.d.ts +11 -10
  34. package/dist/sdk-a2a.js +9 -8
  35. package/dist/sdk-agent.d.ts +39 -299
  36. package/dist/sdk-agent.js +1 -1
  37. package/dist/sdk-coding.d.ts +103 -16
  38. package/dist/sdk-coding.js +1 -1
  39. package/dist/sdk-experimental-memory.d.ts +7 -20
  40. package/dist/sdk-experimental-memory.js +1 -1
  41. package/dist/sdk-mcp.js +1 -1
  42. package/dist/sdk-media.js +1 -1
  43. package/dist/sdk-repl.d.ts +14 -15
  44. package/dist/sdk-repl.js +2 -2
  45. package/dist/sdk-runtime.d.ts +73 -24
  46. package/dist/sdk-runtime.js +1 -1
  47. package/dist/sdk-sandbox.d.ts +1 -1
  48. package/dist/sdk-sandbox.js +1 -1
  49. package/dist/sdk-session.d.ts +7 -6
  50. package/dist/sdk-session.js +1 -1
  51. package/dist/sdk-skills.d.ts +2 -2
  52. package/dist/sdk-skills.js +1 -1
  53. package/dist/semantic-worker.js +250 -64
  54. package/dist/types-chunks/{bash-prefix-extractor.d-CkdGL4rM.d.ts → bash-prefix-extractor.d-QqKtuLZm.d.ts} +137 -14
  55. package/dist/types-chunks/{capsule.d-7wQ_kM1C.d.ts → capsule.d-CN_iMqAS.d.ts} +2 -1
  56. package/dist/types-chunks/controller.d-A73Kf6tH.d.ts +105 -0
  57. package/dist/types-chunks/{controller.d-CesRxFL5.d.ts → controller.d-Dzxz22X-.d.ts} +26 -1020
  58. package/dist/types-chunks/{guardrail.d-KaIeVree.d.ts → guardrail.d-Y_AIh8-I.d.ts} +21 -21
  59. package/dist/types-chunks/{history-retrieval.d-CbCls7r0.d.ts → history-retrieval.d-Debbzn1z.d.ts} +1 -1
  60. package/dist/types-chunks/{public-api.d-DpRj8b7d.d.ts → public-api.d-Cg-4GTbK.d.ts} +3 -2
  61. package/dist/types-chunks/{repl.d-DWeC3PLW.d.ts → repl.d-Bhrbueab.d.ts} +5 -5
  62. package/dist/types-chunks/review-inbox.d-DuZqFX-z.d.ts +221 -0
  63. package/dist/types-chunks/{run-manager.d-BXBkLT0A.d.ts → run-manager.d-BS4lJfL3.d.ts} +1 -1
  64. package/dist/types-chunks/{sdk-session-DEtS6u20.d.ts → sdk-session-fQ_KENev.d.ts} +2 -2
  65. package/dist/types-chunks/{shell-command-sets.d-P2h4_KKL.d.ts → shell-command-sets.d-DRGjd_7Q.d.ts} +3 -2
  66. package/dist/types-chunks/{types-Bf3Y3mW-.d.ts → types-PHjfwebT.d.ts} +62 -190
  67. package/dist/types-chunks/{types.d-0m3PS7Ng.d.ts → types.d-BRrJU4pb.d.ts} +2 -2
  68. package/dist/types-chunks/{types.d-BbtGlKZu.d.ts → types.d-BSPlmJqf.d.ts} +25 -6
  69. package/dist/types-chunks/{types.d-CUtMr2IG.d.ts → types.d-Bo4fyMLu.d.ts} +1 -1
  70. package/dist/types-chunks/types.d-DlLBRqZ9.d.ts +1057 -0
  71. package/dist/types-chunks/{utils.d-C-eSIZ9n.d.ts → utils.d-BIhh_BqE.d.ts} +7 -4
  72. package/package.json +4 -2
  73. package/dist/chunks/agent-VMXNVYRK.js +0 -2
  74. package/dist/chunks/argument-completer-QCS6GUAE.js +0 -2
  75. package/dist/chunks/chunk-4ZI2CPUQ.js +0 -885
  76. package/dist/chunks/chunk-6UENDY33.js +0 -89
  77. package/dist/chunks/chunk-726WJGGY.js +0 -2
  78. package/dist/chunks/chunk-A7L7XTUH.js +0 -292
  79. package/dist/chunks/chunk-BBBS644N.js +0 -319
  80. package/dist/chunks/chunk-E7C4DRD2.js +0 -5
  81. package/dist/chunks/chunk-ET2BMEQQ.js +0 -655
  82. package/dist/chunks/chunk-EVXIJPZ6.js +0 -218
  83. package/dist/chunks/chunk-F44YYR6Z.js +0 -479
  84. package/dist/chunks/chunk-GRLC3N46.js +0 -385
  85. package/dist/chunks/chunk-KHEFUT6O.js +0 -5
  86. package/dist/chunks/chunk-TDJS5SFS.js +0 -348
  87. package/dist/chunks/chunk-WXHHZZRJ.js +0 -379
  88. package/dist/chunks/compaction-config-QTMFP7AF.js +0 -2
  89. package/dist/chunks/dist-XRH6CRLL.js +0 -2
  90. package/dist/chunks/host-F4TPD6WY.js +0 -2
  91. package/dist/chunks/run-manager-PYD46OGY.js +0 -2
  92. package/dist/chunks/utils-TOTTXU2I.js +0 -2
  93. package/docs/SDK_EMBEDDER_GUIDE.md +0 -5752
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 oe,$a as on,$b as er,A as ct,Aa as Re,Ab as kn,B as dt,Ba as ke,Bb as Nn,C as lt,Ca as Ne,Cb as Sn,D as pt,Da as Se,Db as Un,E as ut,Ea as Ue,Eb as _n,F as ft,Fa as _e,Fb as vn,G as gt,Ga as ve,Gb as An,H as Ct,Ha as Ae,Hb as On,I as xt,Ia as Oe,Ib as Fn,J as yt,Ja as Fe,Jb as Ln,K as Kt,Ka as Le,Kb as $n,L as Xt,La as $e,Lb as Tn,M as Pt,Ma as Te,Mb as In,N as jt,Na as Ie,Nb as Wn,O as Rt,Oa as We,Ob as En,P as kt,Pa as Ee,Pb as qn,Q as qo,Qa as qe,Qb as zn,R as zo,Ra as ze,Rb as Bn,S as Bo,Sa as Be,Sb as Gn,T as Go,Ta as Ge,Tb as Hn,U as Ho,Ua as He,Ub as Jn,V as Jo,Va as Je,Vb as Qn,W as Qo,Wa as Qe,Wb as Vn,X as Vo,Xa as Ve,Xb as Yn,Y as Yo,Ya as Ye,Yb as Zn,Z as Zo,Za as Ze,Zb as tr,_ as te,_a as tn,_b as or,a as F,aa as ee,ab as en,ac as nr,b as L,ba as ne,bb as nn,bc as rr,c as $,ca as re,cb as rn,cc as mr,d as T,da as me,db as mn,dc as ar,e as I,ea as ae,eb as an,ec as ir,f as W,fa as ie,fb as sn,fc as sr,g as E,ga as se,gb as cn,gc as cr,h as q,ha as ce,hb as dn,hc as dr,i as z,ia as de,ib as ln,ic as lr,j as B,ja as le,jb as pn,jc as pr,k as G,ka as pe,kb as un,l as H,la as ue,lb as fn,m as J,ma as fe,mb as gn,n as Q,na as ge,nb as Cn,o as V,oa as Ce,ob as xn,p as Y,pa as xe,pb as yn,q as Z,qa as ye,qb as Kn,r as tt,ra as Ke,rb as Xn,s as ot,sa as Xe,sb as bn,t as et,ta as be,tb as hn,u as nt,ua as he,ub as Dn,v as rt,va as De,vb as wn,w as mt,wa as we,wb as Mn,x as at,xa as Me,xb as Pn,y as it,ya as Pe,yb as jn,z as st,za as je,zb as Rn}from"./chunks/chunk-BBBS644N.js";import{A as No,Aa as Io,B as So,Ba as Wo,Ca as Eo,L as Uo,M as _o,N as vo,O as Ao,P as Oo,U as Fo,V as Lo,a as bt,b as ht,c as Dt,d as wt,e as Mt,f as Nt,i as St,k as Ut,l as _t,m as vt,n as Xo,o as bo,p as ho,q as Do,r as wo,s as Mo,t as Po,v as jo,w as Ro,y as ko,ya as $o,za as To}from"./chunks/chunk-ET2BMEQQ.js";import{$ as Co,O as mo,P as ao,Q as io,R as so,S as co,T as lo,U as po,X as uo,Y as fo,_ as go,aa as xo,b as At,c as Ot,ca as yo,d as Ft,e as Lt,f as $t,g as Tt,ga as Ko,h as It,i as Wt,j as Et,k as qt,l as zt,m as Bt,n as Gt,o as Ht,p as Jt,q as Qt,r as Vt,s as Yt,t as Zt,u as to,w as oo,x as eo,y as no,z as ro}from"./chunks/chunk-OHZFGQEH.js";import"./chunks/chunk-726WJGGY.js";import{Ca as U,Da as _,Ga as v,Ia as A,Ja as O,ea as P,ta as j,va as R,xa as k,ya as N,za as S}from"./chunks/chunk-F44YYR6Z.js";import"./chunks/chunk-TDJS5SFS.js";import"./chunks/chunk-WTYAZOWO.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-ZVPTDYDI.js";import"./chunks/chunk-GRLC3N46.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-4ZI2CPUQ.js";import{d as x}from"./chunks/chunk-EVXIJPZ6.js";import"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.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{se as App,qo as AutocompleteContextProvider,To as BUILTIN_COMMANDS,_e as BackgroundTaskBar,At as CONFIG_TEMPLATES,Ae as ChildActivitySurface,Pn as ConsoleCapturer,qn as ConversationPageCacheCapacityError,Ft as CoreConfigWriteConflictError,Mt as DEFAULT_UI_STATE,Re as DialogSurface,Zo as DotsIndicator,P as FILE_MODIFICATION_TOOLS,Bn as FileSessionStorage,de as FullscreenTranscriptLayout,ne as HistoryItemRenderer,Qo as InputPrompt,Tt as IntegrationConfigConflictError,Jt as IntegrationConfigController,f as KODAX_COMMANDS_DIR,Yt as KODAX_CONFIG_FILE,Qt as KODAX_DIR,so as KODAX_EXAMPLE_CONFIG_FILE,co as KODAX_INTEGRATION_EXAMPLE_FILES,Vt as KODAX_SESSIONS_DIR,no as KODAX_VERSION,kt as KeyMatchers,wt as KeypressHandlerPriority,xt as KeypressParser,jt as KeypressProvider,Y as LRUCache,ee as LoadingIndicator,Ve as MemorySessionStorage,le as MessageActions,re as MessageList,pe as MessageSelector,Ne as NotificationsSurface,Nt as PERMISSION_MODES,Zt as PREVIEW_MAX_LENGTH,yn as PendingInputsIndicator,te as ProgressIndicator,fe as PromptComposer,xe as PromptFooter,ge as PromptFooterLeftSide,Ce as PromptFooterRightSide,ye as PromptHelpMenu,je as PromptSuggestionsSurface,Xo as ProviderSetupConfigConflictError,bo as ProviderSetupInvalidConfigError,ke as QueuedCommandsSurface,Be as RUNTIME_PERMISSION_PENDING_NOTICE,zn as SessionReadError,ce as SimpleApp,Vo as SimpleInputPrompt,me as SimpleMessageDisplay,ie as SimpleStatusBar,gt as SingleLineTextInput,Yo as Spinner,Ue as StashNotice,ae as StatusBar,Se as StatusNoticesSurface,Fe as StreamingProvider,bt as StreamingState,Pe as SuggestionsDisplay,Dt as TOOL_STATUS_ICONS,Ho as TextBuffer,ft as TextInput,oe as ThinkingIndicator,Cn as ToolCallDisplay,ht as ToolCallStatus,xn as ToolGroup,gn as ToolProgressBar,fn as ToolStatusBadge,ue as TranscriptViewport,he as UIStateProvider,ze as _resetQueuedPromptsCacheForTests,nr as appendClientNotice,cr as archiveSession,Qe as bootstrapAutoMode,st as calculateVisualCursorFromLayout,it as calculateVisualLayout,v as collectBashWriteTargets,Hn as compactSession,Ut as computeConfirmTools,tr as conversationHistoryFromCapture,Lt as coreConfigWriteLockPath,pn as createCliEvents,Wn as createConversationEntryChain,Xe as createHistoryItem,He as createInteractiveContext,un as createJsonEvents,We as createKeyMatcher,Pt as createKeypressManager,Ye as createMemorySessionStorage,sn as createRecoveryHistoryItem,mn as createRetryHistoryItem,En as createSessionConversationHistoryRevision,pr as createSessionManager,Oe as createStreamingManager,be as createToolCall,ct as darkTheme,Gn as dedupeSessions,sr as deleteSession,Mn as detectTerminalCapabilities,q as detectTerminalHostProfile,E as detectTerminalRenderHost,cn as emitRecoveryHistoryItem,an as emitRetryHistoryItem,Tn as emptyConversationEntryChain,po as ensureExampleConfigFile,lo as ensureExampleConfigFiles,Eo as executeCommand,Ze as executeShellCommand,er as exportSessionBundle,In as extendConversationEntryChain,vo as extractHistorySeedsFromMessage,Ao as extractHistorySeedsFromMessages,Oo as extractTextContent,Fo as extractTitle,rn as findMostRecentResumableSession,rr as forkSession,Lo as formatMessagePreview,Ke as generateId,N as generateSavePattern,A as getBashOutsideProjectWriteRisk,et as getCharAtCodePoint,Z as getCodePointLength,Io as getCommandRegistry,Ot as getConfigTemplate,Un as getCustomProviderConfig,b as getDefaultCommandDir,yo as getGitRoot,Xt as getKeyDisplayName,On as getMcpServerConfig,O as getPlanModeBlockReason,mo as getProviderList,ro as getProviderModel,ho as getProviderSetupCatalog,J as getTerminalHostCapabilities,Dn as getTerminalWidth,pt as getTheme,ut as getThemeNames,eo as getVersion,ot as getVisualWidth,at as getVisualWidthCached,L as hasCursorUpViewportYankRisk,T as hasMainScreenRenderScrollRisk,to as hydrateProcessEnvFromShell,Po as initializeSetupConfiguration,Do as inspectProviderSetupReadiness,S as isAlwaysConfirmPath,j as isBashReadCommand,R as isBashWriteCommand,V as isClassicReplForced,U as isCommandOnProtectedPath,yt as isFunctionKey,Q as isOwnedRendererPreferred,_ as isPathInsideProject,_t as isPermissionMode,Kt as isPrintable,ao as isProviderConfigured,$ as isRemoteConptyHost,wn as isScreenReader,tn as isShellCommand,on as isShellCommandSuccess,I as isTmuxControlMode,k as isToolCallAllowed,F as isVsCodeTerminalHostEnv,tt as isWideChar,Sn as listCustomProviders,An as listMcpServers,$o as listRegisteredCommands,ir as listRunningSessions,Jn as listSessions,No as loadAutoModeSettings,D as loadCommands,io as loadConfig,Vn as loadFullTranscript,Qn as loadSession,ve as measureChildActivitySurfaceRows,Gt as migrateLegacyIntegrationConfig,dt as minimalTheme,vt as normalizePermissionMode,Wo as parseCommand,M as parseCommandCall,Wt as parseExtensionsIntegrationDocument,Ct as parseKeypress,It as parseMcpIntegrationDocument,St as permissionModeDisplayName,wo as persistProviderSetupChoice,Bt as planLegacyIntegrationMigration,uo as prepareRuntimeConfig,w as processCommandCall,Nn as processSpecialSyntax,Mo as providerSetupRestartInstructions,Ko as rateLimitedCall,Zn as readConversationHistory,zt as readExtensionsIntegration,Yn as readFullTranscript,qt as readMcpIntegration,or as readSessionCapture,oo as registerConfiguredCustomProviders,vn as removeCustomProvider,Ln as removeMcpServer,jo as renderSetupGuide,ko as replBashPathSignalCollector,W as resetTmuxControlModeProbeForTesting,So as resolveAutoModeSettings,z as resolveConfiguredTuiRendererMode,B as resolveEffectiveTuiRendererMode,H as resolveFullscreenPolicy,Et as resolveIntegrationConfigPath,G as resolveInteractiveSurfacePreference,xo as resolveRuntimeEffortSelection,Co as resolveRuntimeModelSelection,go as resolveRuntimeProviderSelection,nn as restoreHistoryItemsFromSession,mr as rewindSession,dn as runInkInteractiveMode,kn as runInteractiveMode,Ro as runProviderSetupWizard,ln as runSessionPicker,fo as saveConfig,Uo as seedToHistoryItem,ar as setActiveEntry,nt as splitByCodePoints,Xn as supports256Colors,hn as supportsEmoji,Kn as supportsTrueColor,bn as supportsUnicode,lt as themes,Ge as toReplRuntimeAutoModeSettings,_o as toolCallSeedToHistoryToolCall,Je as touchContext,en as trimPersistedUiHistorySnapshot,rt as truncateByVisualWidth,dr as unarchiveSession,_n as upsertCustomProvider,Fn as upsertMcpServer,Bo as useAutocomplete,zo as useAutocompleteContext,Go as useInputHistory,Ie as useKeypress,Rt as useKeypressManager,qe as useQueuedPromptContents,Ee as useQueuedPrompts,Te as useStreaming,$e as useStreamingActions,Le as useStreamingState,Jo as useTextBuffer,Me as useUI,we as useUIActions,De as useUIState,$n as validateMcpServerConfig,mt as visualWidthCache,lr as watchSessions,jn as withCapture,Rn as withCaptureSync,$t as withCoreConfigWriteLock,Ht as writeIntegrationDocument};
2
+ import{$ as ee,$a as en,$b as nr,A as dt,Aa as ke,Ab as Nn,B as lt,Ba as Ne,Bb as Sn,C as pt,Ca as Se,Cb as Un,D as ut,Da as Ue,Db as _n,E as ft,Ea as _e,Eb as vn,F as gt,Fa as ve,Fb as An,G as Ct,Ga as Ae,Gb as On,H as xt,Ha as Oe,Hb as Fn,I as yt,Ia as Fe,Ib as Ln,J as Kt,Ja as Le,Jb as $n,K as Xt,Ka as $e,Kb as Tn,L as bt,La as Te,Lb as In,M as jt,Ma as Ie,Mb as Wn,N as Rt,Na as We,Nb as En,O as kt,Oa as Ee,Ob as qn,P as Nt,Pa as qe,Pb as zn,Q as zo,Qa as ze,Qb as Bn,R as Bo,Ra as Be,Rb as Gn,S as Go,Sa as Ge,Sb as Hn,T as Ho,Ta as He,Tb as Jn,U as Jo,Ua as Je,Ub as Qn,V as Qo,Va as Qe,Vb as Vn,W as Vo,Wa as Ve,Wb as Yn,X as Yo,Xa as Ye,Xb as Zn,Y as Zo,Ya as Ze,Yb as tr,Z as te,Za as tn,Zb as or,_ as oe,_a as on,_b as er,a as L,aa as ne,ab as nn,ac as rr,b as $,ba as re,bb as rn,bc as mr,c as T,ca as me,cb as mn,cc as ar,d as I,da as ae,db as an,dc as ir,e as W,ea as ie,eb as sn,ec as sr,f as E,fa as se,fb as cn,fc as cr,g as q,ga as ce,gb as dn,gc as dr,h as z,ha as de,hb as ln,hc as lr,i as B,ia as le,ib as pn,ic as pr,j as G,ja as pe,jb as un,jc as ur,k as H,ka as ue,kb as fn,l as J,la as fe,lb as gn,m as Q,ma as ge,mb as Cn,n as V,na as Ce,nb as xn,o as Y,oa as xe,ob as yn,p as Z,pa as ye,pb as Kn,q as tt,qa as Ke,qb as Xn,r as ot,ra as Xe,rb as bn,s as et,sa as be,sb as hn,t as nt,ta as he,tb as Dn,u as rt,ua as De,ub as wn,v as mt,va as we,vb as Mn,w as at,wa as Me,wb as Pn,x as it,xa as Pe,xb as jn,y as st,ya as je,yb as Rn,z as ct,za as Re,zb as kn}from"./chunks/chunk-R4EHASEN.js";import{A as So,Aa as Wo,B as Uo,Ba as Eo,Ca as qo,L as _o,M as vo,N as Ao,O as Oo,P as Fo,U as Lo,V as $o,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,ya as To,za as Io}from"./chunks/chunk-B36G256E.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-AAFFS6RU.js";import"./chunks/chunk-A5VQGXH2.js";import"./chunks/chunk-XA4ENCAH.js";import{Bb as U,Cb as _,Db as v,Gb as A,Ib as O,Jb as F,hb as P,sb as j,ub as R,wb as k,xb as N,yb as S}from"./chunks/chunk-Q6UAGROD.js";import"./chunks/chunk-UKCDCVMD.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XUKLF26Q.js";import"./chunks/chunk-U6HNMLNN.js";import"./chunks/chunk-GVGLYVG4.js";import"./chunks/chunk-TRNAWSXP.js";import{t as x}from"./chunks/chunk-G5FGIRDJ.js";import"./chunks/chunk-UH5WNJXF.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{ce as App,zo as AutocompleteContextProvider,Io as BUILTIN_COMMANDS,ve as BackgroundTaskBar,Ot as CONFIG_TEMPLATES,Oe as ChildActivitySurface,jn as ConsoleCapturer,zn as ConversationPageCacheCapacityError,Lt as CoreConfigWriteConflictError,Pt as DEFAULT_UI_STATE,ke as DialogSurface,te as DotsIndicator,P as FILE_MODIFICATION_TOOLS,Gn as FileSessionStorage,le as FullscreenTranscriptLayout,re as HistoryItemRenderer,Vo 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,ne as LoadingIndicator,Ye as MemorySessionStorage,pe as MessageActions,me as MessageList,ue as MessageSelector,Se as NotificationsSurface,St as PERMISSION_MODES,to as PREVIEW_MAX_LENGTH,Kn as PendingInputsIndicator,oe as ProgressIndicator,ge as PromptComposer,ye as PromptFooter,Ce as PromptFooterLeftSide,xe as PromptFooterRightSide,Ke as PromptHelpMenu,Re as PromptSuggestionsSurface,bo as ProviderSetupConfigConflictError,ho as ProviderSetupInvalidConfigError,Ne as QueuedCommandsSurface,Ge as RUNTIME_PERMISSION_PENDING_NOTICE,Bn as SessionReadError,de as SimpleApp,Yo as SimpleInputPrompt,ae as SimpleMessageDisplay,se as SimpleStatusBar,Ct as SingleLineTextInput,Zo as Spinner,_e as StashNotice,ie as StatusBar,Ue as StatusNoticesSurface,Le as StreamingProvider,ht as StreamingState,je as SuggestionsDisplay,wt as TOOL_STATUS_ICONS,Jo as TextBuffer,gt as TextInput,ee as ThinkingIndicator,xn as ToolCallDisplay,Dt as ToolCallStatus,yn as ToolGroup,Cn as ToolProgressBar,gn as ToolStatusBadge,fe as TranscriptViewport,De as UIStateProvider,Be as _resetQueuedPromptsCacheForTests,rr as appendClientNotice,dr as archiveSession,Ve as bootstrapAutoMode,ct as calculateVisualCursorFromLayout,st as calculateVisualLayout,A as collectBashWriteTargets,Jn as compactSession,_t as computeConfirmTools,or as conversationHistoryFromCapture,$t as coreConfigWriteLockPath,un as createCliEvents,En as createConversationEntryChain,be as createHistoryItem,Je as createInteractiveContext,fn as createJsonEvents,Ee as createKeyMatcher,jt as createKeypressManager,Ze as createMemorySessionStorage,cn as createRecoveryHistoryItem,an as createRetryHistoryItem,qn as createSessionConversationHistoryRevision,ur as createSessionManager,Fe as createStreamingManager,he as createToolCall,dt as darkTheme,Hn as dedupeSessions,cr as deleteSession,Pn as detectTerminalCapabilities,z as detectTerminalHostProfile,q as detectTerminalRenderHost,dn as emitRecoveryHistoryItem,sn as emitRetryHistoryItem,In as emptyConversationEntryChain,uo as ensureExampleConfigFile,po as ensureExampleConfigFiles,qo as executeCommand,tn as executeShellCommand,nr as exportSessionBundle,Wn as extendConversationEntryChain,Ao as extractHistorySeedsFromMessage,Oo as extractHistorySeedsFromMessages,Fo as extractTextContent,Lo as extractTitle,mn as findMostRecentResumableSession,mr as forkSession,$o as formatMessagePreview,Xe as generateId,N as generateSavePattern,O as getBashOutsideProjectWriteRisk,nt as getCharAtCodePoint,tt as getCodePointLength,Wo as getCommandRegistry,Ft as getConfigTemplate,_n as getCustomProviderConfig,b as getDefaultCommandDir,Ko as getGitRoot,bt as getKeyDisplayName,Fn as getMcpServerConfig,F as getPlanModeBlockReason,ao as getProviderList,mo as getProviderModel,Do as getProviderSetupCatalog,Q as getTerminalHostCapabilities,wn 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,Mn as isScreenReader,on as isShellCommand,en as isShellCommandSuccess,W as isTmuxControlMode,k as isToolCallAllowed,L as isVsCodeTerminalHostEnv,ot as isWideChar,Un as listCustomProviders,On as listMcpServers,To as listRegisteredCommands,sr as listRunningSessions,Qn as listSessions,So as loadAutoModeSettings,D as loadCommands,so as loadConfig,Yn as loadFullTranscript,Vn as loadSession,Ae as measureChildActivitySurfaceRows,Ht as migrateLegacyIntegrationConfig,lt as minimalTheme,At as normalizePermissionMode,Eo as parseCommand,M as parseCommandCall,Et as parseExtensionsIntegrationDocument,xt as parseKeypress,Wt as parseMcpIntegrationDocument,Ut as permissionModeDisplayName,Mo as persistProviderSetupChoice,Gt as planLegacyIntegrationMigration,fo as prepareRuntimeConfig,w as processCommandCall,Sn as processSpecialSyntax,Po as providerSetupRestartInstructions,Xo as rateLimitedCall,tr as readConversationHistory,Bt as readExtensionsIntegration,Zn as readFullTranscript,zt as readMcpIntegration,er as readSessionCapture,eo as registerConfiguredCustomProviders,An as removeCustomProvider,$n 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,rn as restoreHistoryItemsFromSession,ar as rewindSession,ln as runInkInteractiveMode,Nn as runInteractiveMode,ko as runProviderSetupWizard,pn as runSessionPicker,go as saveConfig,_o as seedToHistoryItem,ir as setActiveEntry,rt as splitByCodePoints,bn as supports256Colors,Dn as supportsEmoji,Xn as supportsTrueColor,hn as supportsUnicode,pt as themes,He as toReplRuntimeAutoModeSettings,vo as toolCallSeedToHistoryToolCall,Qe as touchContext,nn as trimPersistedUiHistorySnapshot,mt as truncateByVisualWidth,lr as unarchiveSession,vn as upsertCustomProvider,Ln as upsertMcpServer,Go as useAutocomplete,Bo as useAutocompleteContext,Ho as useInputHistory,We as useKeypress,kt as useKeypressManager,ze as useQueuedPromptContents,qe as useQueuedPrompts,Ie as useStreaming,Te as useStreamingActions,$e as useStreamingState,Qo as useTextBuffer,Pe as useUI,Me as useUIActions,we as useUIState,Tn as validateMcpServerConfig,at as visualWidthCache,pr as watchSessions,Rn as withCapture,kn as withCaptureSync,Tt as withCoreConfigWriteLock,Jt as writeIntegrationDocument};
@@ -1,20 +1,21 @@
1
1
  import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CgrXrFrq.js';
2
2
  export { k as KodaXMessage } from './types-chunks/types.d-CgrXrFrq.js';
3
- import { I as AgentDispatchContext, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cY as LearningSurfaceSnapshot, cO as LearningEvent, cX as LearningSubscribeOptions, W as AgentExecutorFactory, J as AgentDispatchPolicy, F as AgentCredentialBroker, q as AgentArtifactPolicy, bK as KodaXImageInputArtifact, bN as KodaXInputArtifactSource, ck as KodaXVideoInputArtifact, fb as WorkflowProcessSnapshot, f5 as WorkflowProcessEvent, S as AgentExecutionKind, ar as AgentRegistrationService, ba as DispatchableAgentQuery, b8 as DispatchableAgentListing, aj as AgentPreflightInput, ak as AgentPreflightResult, aG as AgentTreeSnapshot, H as AgentDetail, at as AgentSpawnInput, aJ as AgentTurnRef, G as AgentDataClassification, a5 as AgentFollowupResult, ai as AgentOutput, P as AgentEvent } from './types-chunks/controller.d-CesRxFL5.js';
4
- import { i as SkillMetadata } from './types-chunks/types.d-BbtGlKZu.js';
3
+ import { s as AgentExecutionKind, I as AgentTreeSnapshot, o as AgentDetail, H as AgentSpawnInput, L as AgentTurnRef, n as AgentDataClassification, u as AgentFollowupResult, D as AgentOutput, p as AgentEvent } from './types-chunks/types.d-DlLBRqZ9.js';
4
+ 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, dd as WorkflowProcessSnapshot, d7 as WorkflowProcessEvent, W as AgentRegistrationService, ay as DispatchableAgentQuery, aw as DispatchableAgentListing, R as AgentPreflightInput, S as AgentPreflightResult } from './types-chunks/controller.d-Dzxz22X-.js';
5
+ import { i as SkillMetadata } from './types-chunks/types.d-BSPlmJqf.js';
5
6
  import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
6
7
  import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.js';
7
- import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-CbCls7r0.js';
8
- import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-BXBkLT0A.js';
9
- import { a1 as KodaXOptions, al as KodaXShellExecutionContract, aR as KodaXToolSandboxObservationUpdate, aP as KodaXToolEventMeta, W as KodaXManagedTaskStatusEvent, Q as KodaXEvents, ad as KodaXResult, bl as RuntimeContextBudgetSnapshot, bs as RuntimeToolExposurePlan, a5 as KodaXPromptCacheDiagnosticEvent, N as KodaXContextOptions, K as KodaXActivityEventMeta, aX as KodaXTurnStartedEvent, aU as KodaXTurnCompletedEvent, aW as KodaXTurnFailedEvent, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-CkdGL4rM.js';
10
- import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-0m3PS7Ng.js';
11
- import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-KaIeVree.js';
12
- import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-C-eSIZ9n.js';
13
- 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-DpRj8b7d.js';
8
+ import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-Debbzn1z.js';
9
+ import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-BS4lJfL3.js';
10
+ import { a4 as KodaXOptions, ao as KodaXShellExecutionContract, aU as KodaXToolSandboxObservationUpdate, aS as KodaXToolEventMeta, Z as KodaXManagedTaskStatusEvent, S as KodaXEvents, ag as KodaXResult, bo as RuntimeContextBudgetSnapshot, bv as RuntimeToolExposurePlan, a8 as KodaXPromptCacheDiagnosticEvent, P as KodaXContextOptions, K as KodaXActivityEventMeta, a_ as KodaXTurnStartedEvent, aX as KodaXTurnCompletedEvent, aZ as KodaXTurnFailedEvent, U as KodaXLiveEventMeta, J as KodaXCompactionEndResult, bl as RuntimeCompactionSkippedEvent, N as KodaXContextCompactionFinishedEvent, O as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-QqKtuLZm.js';
11
+ import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-BRrJU4pb.js';
12
+ import { i as AutoModeDecisionDiagnostics, t as AutoModeStats } from './types-chunks/guardrail.d-Y_AIh8-I.js';
13
+ import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-BIhh_BqE.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-Cg-4GTbK.js';
14
15
  import './types-chunks/capability.d-K664nHOS.js';
15
16
  import 'vscode-languageserver-protocol';
16
17
  import './types-chunks/cost-tracker.d-BeaenODW.js';
17
- import './types-chunks/types-Bf3Y3mW-.js';
18
+ import './types-chunks/types-PHjfwebT.js';
18
19
  import './types-chunks/base.d-DxG0m09Z.js';
19
20
  import './types-chunks/side-query.d-CP1LiRiH.js';
20
21
  import 'readline';
@@ -323,6 +324,8 @@ interface RuntimeDaemonJsonSchema {
323
324
  readonly items?: RuntimeDaemonJsonSchema;
324
325
  readonly oneOf?: readonly RuntimeDaemonJsonSchema[];
325
326
  readonly maxLength?: number;
327
+ readonly maximum?: number;
328
+ readonly minimum?: number;
326
329
  }
327
330
  interface RuntimeDaemonMethodSchema {
328
331
  readonly params: RuntimeDaemonJsonSchema;
@@ -969,6 +972,8 @@ interface RuntimeOwnerIdentity {
969
972
  readonly pid: number;
970
973
  readonly createdAt: string;
971
974
  readonly kind?: "daemon" | "inline";
975
+ /** OS-issued identity used to distinguish a live owner from PID reuse. */
976
+ readonly processStartIdentity?: string;
972
977
  readonly processContainment?: "windows-job";
973
978
  readonly supervisorPid?: number;
974
979
  }
@@ -995,7 +1000,10 @@ declare function getKodaXRuntimeOwnerState(input?: {
995
1000
  readonly homeDir?: string;
996
1001
  readonly profile?: string;
997
1002
  }): RuntimeOwnerState;
998
- /** Enable daemon auto-start after the inline owner has released its fence. */
1003
+ /**
1004
+ * Enable daemon auto-start, atomically reclaiming an inline fence only when
1005
+ * the SDK can prove that its owner process is gone.
1006
+ */
999
1007
  declare function enableKodaXDaemonOwner(input?: {
1000
1008
  readonly homeDir?: string;
1001
1009
  readonly profile?: string;
@@ -1110,9 +1118,12 @@ interface ConnectKodaXRuntimeOptions {
1110
1118
  }
1111
1119
  /** SDK facts that embedders can inspect before auto-starting a daemon. */
1112
1120
  declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
1121
+ readonly actorSettlementConvergence: 1;
1113
1122
  readonly daemonOrphanExit: 1;
1114
1123
  readonly daemonShutdownVerification: 1;
1115
1124
  readonly managedRunDurability: 1;
1125
+ readonly sandboxRuntime: 3;
1126
+ readonly sessionEventJournal: 1;
1116
1127
  readonly runtimeEventCoalescing: 1;
1117
1128
  }>;
1118
1129
  interface RuntimeCapabilityRequirements {
@@ -1154,6 +1165,10 @@ interface RuntimeCapabilityRequirements {
1154
1165
  readonly durableRecoveryQueries?: 1;
1155
1166
  /** Require durable accepted-input and completed-turn boundaries for managed Runs. */
1156
1167
  readonly managedRunDurability?: 1;
1168
+ /** Require fail-closed root fencing plus automatic same-owner Actor settlement repair. */
1169
+ readonly actorSettlementConvergence?: 1;
1170
+ /** Require Session-local sequences, epoch-bound cursors, and scoped event access. */
1171
+ readonly sessionEventJournal?: 1;
1157
1172
  readonly daemonManagement?: 1;
1158
1173
  /** Require an auto-started daemon whose current host has orphan idle-exit enabled. */
1159
1174
  readonly daemonOrphanExit?: 1;
@@ -1164,6 +1179,8 @@ interface RuntimeCapabilityRequirements {
1164
1179
  /** Optional integration failures are isolated, observable, and hot-recoverable. */
1165
1180
  readonly integrationConfigResilience?: 1;
1166
1181
  readonly actorControlPlane?: 1;
1182
+ /** Require the sandbox-first execution chain and permission fallback revision. */
1183
+ readonly sandboxRuntime?: 1 | 2 | 3;
1167
1184
  /** Runtime owns Auto LLM/rules classification before shared permission brokering. */
1168
1185
  readonly runtimeAutoModeGuardrail?: 1 | 2 | 3 | 4;
1169
1186
  }
@@ -1527,7 +1544,7 @@ interface RuntimeSessionDiagnostics {
1527
1544
  readonly runtimeMode: KodaXRuntimeMode;
1528
1545
  readonly sessionId: string;
1529
1546
  readonly observation: {
1530
- readonly cursor: number;
1547
+ readonly cursor: RuntimeSessionCursor;
1531
1548
  readonly transcriptRevision: string;
1532
1549
  };
1533
1550
  readonly run: RuntimeSessionDiagnosticRun;
@@ -1698,7 +1715,7 @@ interface RuntimeSessionLiveProjection {
1698
1715
  }
1699
1716
  interface RuntimeSessionObservationSnapshot {
1700
1717
  readonly runtimeId: string;
1701
- readonly cursor: number;
1718
+ readonly cursor: RuntimeSessionCursor;
1702
1719
  /** Content-derived token for the transcript captured at this observation boundary. */
1703
1720
  readonly transcriptRevision: string;
1704
1721
  readonly session: RuntimeSession;
@@ -1968,7 +1985,7 @@ interface RuntimeRunStopReceipt {
1968
1985
  /** Durable Run control-record revision observed by this receipt. */
1969
1986
  readonly revision: number;
1970
1987
  }
1971
- type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "control_history_untrusted";
1988
+ 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";
1972
1989
  interface RuntimeTerminalFact {
1973
1990
  readonly revision: number;
1974
1991
  readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
@@ -2105,6 +2122,21 @@ interface RuntimeWarningEventPayload {
2105
2122
  readonly severity?: string;
2106
2123
  readonly sourceEventId?: string;
2107
2124
  }
2125
+ interface RuntimeContextCompactionStartedEventPayload {
2126
+ readonly meta?: KodaXActivityEventMeta;
2127
+ }
2128
+ type RuntimeContextCompactionStatsEventPayload = {
2129
+ readonly tokensBefore: number;
2130
+ readonly tokensAfter: number;
2131
+ } & Partial<KodaXLiveEventMeta>;
2132
+ /** Legacy events and non-managed compaction paths may omit the structured outcome. */
2133
+ type RuntimeContextCompactionEndedEventPayload = ({
2134
+ readonly meta?: KodaXActivityEventMeta;
2135
+ } & KodaXCompactionEndResult) | {
2136
+ readonly meta?: KodaXActivityEventMeta;
2137
+ readonly outcome?: undefined;
2138
+ };
2139
+ type RuntimeContextCompactionSkippedEventPayload = RuntimeCompactionSkippedEvent & Partial<KodaXLiveEventMeta>;
2108
2140
  type RuntimeContextCompactionFinishedEventPayload = KodaXContextCompactionFinishedEvent & KodaXContextIdentity & {
2109
2141
  readonly beforeRevision: number;
2110
2142
  readonly afterRevision: number;
@@ -2138,7 +2170,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
2138
2170
  type RuntimeEventPayloadDefaults = {
2139
2171
  readonly [K in RuntimeEventType]: unknown;
2140
2172
  };
2141
- type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created" | "session.loaded" | "run.queued" | "run.started" | "run.updated" | "run.completed" | "run.failed" | "run.cancelled" | "run.interrupted" | "assistant.delta" | "thinking.delta" | "thinking.finished" | "tool.started" | "tool.progress" | "tool.sandbox" | "tool.finished" | "run.progress" | "run.input.queued" | "run.input.delivered" | "todo.updated" | "user_input.requested" | "user_input.resolved" | "permission.requested" | "permission.resolved" | "permission.grant.changed" | "session.settings.updated" | "turn.started" | "turn.completed" | "turn.failed" | "workflow.started" | "workflow.updated" | "workflow.finished" | "context.budget.snapshot" | "provider.cache.diagnostics" | "tool.exposure.planned" | "context.compaction.messages" | "context.compaction.finished" | "runtime.warning"> & {
2173
+ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created" | "session.loaded" | "run.queued" | "run.started" | "run.updated" | "run.completed" | "run.failed" | "run.cancelled" | "run.interrupted" | "assistant.delta" | "thinking.delta" | "thinking.finished" | "tool.started" | "tool.progress" | "tool.sandbox" | "tool.finished" | "run.progress" | "run.input.queued" | "run.input.delivered" | "todo.updated" | "user_input.requested" | "user_input.resolved" | "permission.requested" | "permission.resolved" | "permission.grant.changed" | "session.settings.updated" | "turn.started" | "turn.completed" | "turn.failed" | "workflow.started" | "workflow.updated" | "workflow.finished" | "context.budget.snapshot" | "provider.cache.diagnostics" | "tool.exposure.planned" | "context.compaction.started" | "context.compaction.stats" | "context.compaction.ended" | "context.compaction.skipped" | "context.compaction.messages" | "context.compaction.finished" | "runtime.warning"> & {
2142
2174
  readonly "session.created": RuntimeSession;
2143
2175
  readonly "session.loaded": RuntimeSessionLoadedEventPayload;
2144
2176
  readonly "run.queued": RuntimeRunStatus;
@@ -2174,6 +2206,10 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
2174
2206
  readonly "context.budget.snapshot": RuntimeContextBudgetSnapshot;
2175
2207
  readonly "provider.cache.diagnostics": KodaXPromptCacheDiagnosticEvent;
2176
2208
  readonly "tool.exposure.planned": RuntimeToolExposurePlan;
2209
+ readonly "context.compaction.started": RuntimeContextCompactionStartedEventPayload;
2210
+ readonly "context.compaction.stats": RuntimeContextCompactionStatsEventPayload;
2211
+ readonly "context.compaction.ended": RuntimeContextCompactionEndedEventPayload;
2212
+ readonly "context.compaction.skipped": RuntimeContextCompactionSkippedEventPayload;
2177
2213
  readonly "context.compaction.messages": RuntimeContextCompactionMessagesEventPayload;
2178
2214
  readonly "context.compaction.finished": RuntimeContextCompactionFinishedEventPayload;
2179
2215
  readonly "runtime.warning": RuntimeWarningEventPayload;
@@ -2181,6 +2217,8 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
2181
2217
  interface RuntimeEventEnvelope<TPayload = unknown> {
2182
2218
  readonly id: string;
2183
2219
  readonly seq: number;
2220
+ /** Session-bound replay position. Numeric seq values are not comparable across Sessions. */
2221
+ readonly cursor: RuntimeSessionCursor;
2184
2222
  readonly time: string;
2185
2223
  readonly sessionId: string;
2186
2224
  readonly runId: string;
@@ -2188,12 +2226,17 @@ interface RuntimeEventEnvelope<TPayload = unknown> {
2188
2226
  readonly type: RuntimeEventType;
2189
2227
  readonly payload: TPayload;
2190
2228
  }
2229
+ interface RuntimeSessionCursor {
2230
+ readonly sessionId: string;
2231
+ readonly journalEpoch: string;
2232
+ readonly seq: number;
2233
+ }
2191
2234
  type RuntimeTypedEvent<TType extends RuntimeEventType = RuntimeEventType> = {
2192
2235
  readonly [K in TType]: RuntimeEventEnvelope<RuntimeEventPayloadMap[K]> & {
2193
2236
  readonly type: K;
2194
2237
  };
2195
2238
  }[TType];
2196
- /** Backward-compatible raw envelope; use parseRuntimeEvent for payload narrowing. */
2239
+ /** Raw event envelope; use parseRuntimeEvent for payload narrowing. */
2197
2240
  type RuntimeEvent = RuntimeEventEnvelope;
2198
2241
  type RuntimeEventParseResult = {
2199
2242
  readonly ok: true;
@@ -2202,15 +2245,21 @@ type RuntimeEventParseResult = {
2202
2245
  readonly ok: false;
2203
2246
  readonly error: string;
2204
2247
  };
2205
- interface RuntimeEventFilter {
2206
- readonly sessionId?: string;
2207
- readonly runId?: string;
2248
+ interface RuntimeEventFilterFields {
2208
2249
  readonly type?: RuntimeEventType | readonly RuntimeEventType[];
2209
2250
  }
2210
- interface RuntimeEventReplayFilter extends RuntimeEventFilter {
2211
- readonly sinceSeq?: number;
2251
+ type RuntimeEventFilter = RuntimeEventFilterFields & ({
2252
+ readonly sessionId: string;
2253
+ readonly runId?: string;
2254
+ } | {
2255
+ readonly sessionId?: string;
2256
+ readonly runId: string;
2257
+ });
2258
+ type RuntimeEventReplayFilter = RuntimeEventFilter & {
2259
+ readonly after?: RuntimeSessionCursor;
2260
+ /** Positive safe-integer result bound. */
2212
2261
  readonly limit?: number;
2213
- }
2262
+ };
2214
2263
  type RuntimeEventListener = (event: RuntimeEvent) => void;
2215
2264
  type RuntimeTypedEventListener = (event: RuntimeTypedEvent) => void;
2216
2265
  interface RuntimeSubscription {
@@ -2220,7 +2269,7 @@ interface RuntimeSubscription {
2220
2269
  }
2221
2270
  interface RuntimeEventService {
2222
2271
  subscribe(filter: RuntimeEventFilter, listener: RuntimeEventListener): RuntimeSubscription;
2223
- replay(filter?: RuntimeEventReplayFilter): Promise<readonly RuntimeEvent[]>;
2272
+ replay(filter: RuntimeEventReplayFilter): Promise<readonly RuntimeEvent[]>;
2224
2273
  }
2225
2274
  type RuntimePermissionRisk = "low" | "medium" | "high";
2226
2275
  interface RuntimePermissionScope {
@@ -2515,4 +2564,4 @@ declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promis
2515
2564
  declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
2516
2565
 
2517
2566
  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, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, waitForRuntimeDaemonShutdown };
2518
- 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, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, 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, 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, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, 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, 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 };
2567
+ 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, 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, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, 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 };
@@ -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}from"./chunks/chunk-WXHHZZRJ.js";import"./chunks/chunk-A7L7XTUH.js";import"./chunks/chunk-BBBS644N.js";import"./chunks/chunk-ET2BMEQQ.js";import"./chunks/chunk-OHZFGQEH.js";import"./chunks/chunk-726WJGGY.js";import"./chunks/chunk-F44YYR6Z.js";import"./chunks/chunk-TDJS5SFS.js";import"./chunks/chunk-WTYAZOWO.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-ZVPTDYDI.js";import"./chunks/chunk-GRLC3N46.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-4ZI2CPUQ.js";import"./chunks/chunk-EVXIJPZ6.js";import"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,t as KODAX_RUNTIME_SDK_CAPABILITIES,d as RUNTIME_DAEMON_METHODS,g as RUNTIME_DAEMON_METHOD_SCHEMAS,h as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,i as RUNTIME_DAEMON_PROTOCOL_SCHEMA,j as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,n as RuntimeAutoModeConfigurationError,m as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,o as acquireKodaXInlineOwner,u as captureRuntimeSessionDiagnostics,w as connectKodaXRuntime,v as createKodaXRuntime,r as enableKodaXDaemonOwner,p as getKodaXRuntimeOwnerPolicy,q as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,s as setKodaXRuntimeOwnerMode,l as waitForRuntimeDaemonShutdown};
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}from"./chunks/chunk-2RAXDUC7.js";import"./chunks/chunk-MFCPQZ7E.js";import"./chunks/chunk-R4EHASEN.js";import"./chunks/chunk-B36G256E.js";import"./chunks/chunk-AAFFS6RU.js";import"./chunks/chunk-A5VQGXH2.js";import"./chunks/chunk-XA4ENCAH.js";import"./chunks/chunk-Q6UAGROD.js";import"./chunks/chunk-UKCDCVMD.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XUKLF26Q.js";import"./chunks/chunk-U6HNMLNN.js";import"./chunks/chunk-GVGLYVG4.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-G5FGIRDJ.js";import"./chunks/chunk-UH5WNJXF.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,t as KODAX_RUNTIME_SDK_CAPABILITIES,d as RUNTIME_DAEMON_METHODS,g as RUNTIME_DAEMON_METHOD_SCHEMAS,h as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,i as RUNTIME_DAEMON_PROTOCOL_SCHEMA,j as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,n as RuntimeAutoModeConfigurationError,m as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,o as acquireKodaXInlineOwner,u as captureRuntimeSessionDiagnostics,w as connectKodaXRuntime,v as createKodaXRuntime,r as enableKodaXDaemonOwner,p as getKodaXRuntimeOwnerPolicy,q as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,s as setKodaXRuntimeOwnerMode,l as waitForRuntimeDaemonShutdown};
@@ -59,7 +59,7 @@ interface SandboxSetupOutcome {
59
59
  readonly error?: string;
60
60
  }
61
61
  interface KodaXSandboxCapability {
62
- readonly version: 1;
62
+ readonly version: 3;
63
63
  readonly asrtVersion: string;
64
64
  readonly platform: NodeJS.Platform;
65
65
  readonly backend: 'windows-restricted-user' | 'macos-seatbelt' | 'linux-bubblewrap' | 'unsupported';
@@ -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,c,d,e,f,g}from"./chunks/chunk-A7L7XTUH.js";import"./chunks/chunk-4ZI2CPUQ.js";import"./chunks/chunk-EVXIJPZ6.js";import"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.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};
2
+ import"./chunks/chunk-5BNQXXGY.js";import{a,b,c,d,e,f,g}from"./chunks/chunk-MFCPQZ7E.js";import"./chunks/chunk-XA4ENCAH.js";import"./chunks/chunk-Q6UAGROD.js";import"./chunks/chunk-UKCDCVMD.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XUKLF26Q.js";import"./chunks/chunk-U6HNMLNN.js";import"./chunks/chunk-GVGLYVG4.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-G5FGIRDJ.js";import"./chunks/chunk-UH5WNJXF.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};
@@ -1,11 +1,12 @@
1
- export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, h as CreatableHistoryItem, j as DeleteSessionResult, k as ForkSessionOptions, l as FullTranscriptSessionData, M as ListSessionsOptions, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, 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, a9 as SessionManager, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, af as SessionSummary, ag as SessionTranscriptEntry, ah 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-DpRj8b7d.js';
1
+ export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, h as CreatableHistoryItem, j as DeleteSessionResult, k as ForkSessionOptions, l as FullTranscriptSessionData, M as ListSessionsOptions, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, 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, a9 as SessionManager, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, af as SessionSummary, ag as SessionTranscriptEntry, ah 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-Cg-4GTbK.js';
2
2
  export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-CgrXrFrq.js';
3
- export { cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/controller.d-CesRxFL5.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-DEtS6u20.js';
5
- import './types-chunks/bash-prefix-extractor.d-CkdGL4rM.js';
3
+ export { am as KodaXSessionUiHistoryItem, an as KodaXSessionUiHistoryItemType, ao as KodaXSessionUiTextHistoryItem, ap as KodaXSessionUiTextHistoryItemType, aq as KodaXSessionUiToolCall, ar as KodaXSessionUiToolCallStatus, as as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-DlLBRqZ9.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-fQ_KENev.js';
5
+ import './types-chunks/bash-prefix-extractor.d-QqKtuLZm.js';
6
6
  import 'vscode-languageserver-protocol';
7
- import './types-chunks/types.d-BbtGlKZu.js';
7
+ import './types-chunks/controller.d-Dzxz22X-.js';
8
+ import './types-chunks/types.d-BSPlmJqf.js';
8
9
  import './types-chunks/cost-tracker.d-BeaenODW.js';
9
- import './types-chunks/types-Bf3Y3mW-.js';
10
+ import './types-chunks/types-PHjfwebT.js';
10
11
  import './types-chunks/capability.d-K664nHOS.js';
11
12
  import './types-chunks/base.d-DxG0m09Z.js';
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{$b as l,Qb as i,Tb as n,Ub as t,Vb as r,Wb as a,Xb as S,Yb as d,ac as p,bb as o,bc as u,cc as y,dc as c,ec as m,fc as H,gc as C,hc as T,ic as x,jc as R}from"./chunks/chunk-BBBS644N.js";import{N as s,O as e}from"./chunks/chunk-ET2BMEQQ.js";import"./chunks/chunk-OHZFGQEH.js";import"./chunks/chunk-726WJGGY.js";import"./chunks/chunk-F44YYR6Z.js";import"./chunks/chunk-TDJS5SFS.js";import"./chunks/chunk-WTYAZOWO.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-ZVPTDYDI.js";import"./chunks/chunk-GRLC3N46.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-4ZI2CPUQ.js";import"./chunks/chunk-EVXIJPZ6.js";import"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.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};
2
+ import{$b as l,Qb as i,Tb as n,Ub as t,Vb as r,Wb as a,Xb as S,Yb as d,ac as p,bb as o,bc as u,cc as y,dc as c,ec as m,fc as H,gc as C,hc as T,ic as x,jc as R}from"./chunks/chunk-R4EHASEN.js";import{N as s,O as e}from"./chunks/chunk-B36G256E.js";import"./chunks/chunk-AAFFS6RU.js";import"./chunks/chunk-A5VQGXH2.js";import"./chunks/chunk-XA4ENCAH.js";import"./chunks/chunk-Q6UAGROD.js";import"./chunks/chunk-UKCDCVMD.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XUKLF26Q.js";import"./chunks/chunk-U6HNMLNN.js";import"./chunks/chunk-GVGLYVG4.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-G5FGIRDJ.js";import"./chunks/chunk-UH5WNJXF.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};
@@ -1,5 +1,5 @@
1
- import { R as ResolvedSkillSource, S as Skill, e as SkillFile, i as SkillMetadata, f as SkillFrontmatter, j as SkillPathsConfig, a as IVariableResolver, c as SkillContext, I as ISkillRegistry, k as SkillResult } from './types-chunks/types.d-BbtGlKZu.js';
2
- export { b as SkillArtifact, d as SkillDynamicContextExecutor, g as SkillHook, h as SkillHooks, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-BbtGlKZu.js';
1
+ import { R as ResolvedSkillSource, S as Skill, e as SkillFile, i as SkillMetadata, f as SkillFrontmatter, j as SkillPathsConfig, a as IVariableResolver, c as SkillContext, I as ISkillRegistry, k as SkillResult } from './types-chunks/types.d-BSPlmJqf.js';
2
+ export { b as SkillArtifact, d as SkillDynamicContextExecutor, g as SkillHook, h as SkillHooks, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-BSPlmJqf.js';
3
3
 
4
4
  declare function registerPluginSkillPath(skillPath: string): () => void;
5
5
  declare function unregisterPluginSkillPath(skillPath: string): boolean;
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import"./chunks/chunk-4ZI2CPUQ.js";import{$a as h,D as l,E as e,F as i,G as t,H as o,I as a,M as k,N as r,O as S,P as s,Ta as n,Ua as g,Va as u,Wa as c,Xa as d,Ya as x,Za as P,_a as R,ab as p,bb as v,cb as y,db as M,eb as f,fb as m,gb as E}from"./chunks/chunk-EVXIJPZ6.js";import"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.js";import"./chunks/chunk-ONUPGMER.js";export{y as SkillExecutor,R as SkillRegistry,d as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,x as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,o as getDefaultSkillPaths,g as getNestedSkillPaths,a as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};
2
+ import{Ad as c,Bd as d,Cd as x,Dd as P,Ed as R,Fd as h,Gd as p,Hd as v,Id as y,Jd as M,Kd as f,Ld as m,Md as E,gc as l,hc as e,ic as i,jc as t,kc as o,lc as a,pc as k,qc as r,rc as S,sc as s,xd as n,yd as g,zd as u}from"./chunks/chunk-G5FGIRDJ.js";import"./chunks/chunk-UH5WNJXF.js";import"./chunks/chunk-ONUPGMER.js";export{y as SkillExecutor,R as SkillRegistry,d as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,x as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,o as getDefaultSkillPaths,g as getNestedSkillPaths,a as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};