@kodax-ai/kodax 0.7.83 → 0.7.85

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 (91) hide show
  1. package/CHANGELOG.md +154 -4
  2. package/README.md +48 -26
  3. package/README_CN.md +26 -21
  4. package/dist/chunks/agent-OQ37XUWF.js +2 -0
  5. package/dist/chunks/argument-completer-IMRSIF2N.js +2 -0
  6. package/dist/chunks/chunk-2XJQNFVR.js +379 -0
  7. package/dist/chunks/chunk-3E4OSFP2.js +1279 -0
  8. package/dist/chunks/chunk-CDWYKVZC.js +482 -0
  9. package/dist/chunks/chunk-CZCEFGQG.js +412 -0
  10. package/dist/chunks/chunk-IA246OAN.js +679 -0
  11. package/dist/chunks/chunk-IWRNGH4M.js +319 -0
  12. package/dist/chunks/chunk-MJ4G5ZCW.js +2 -0
  13. package/dist/chunks/{chunk-RAQGGVIF.js → chunk-ODRLFQQH.js} +1 -1
  14. package/dist/chunks/chunk-RSOAHVUR.js +5 -0
  15. package/dist/chunks/chunk-RTFVMEF6.js +415 -0
  16. package/dist/chunks/{chunk-XB2JNLXH.js → chunk-SR4E5FQK.js} +2 -2
  17. package/dist/chunks/{chunk-HI6RCW5Y.js → chunk-TBBY2DKE.js} +2 -2
  18. package/dist/chunks/chunk-UH5WNJXF.js +92 -0
  19. package/dist/chunks/{chunk-6QILIBOU.js → chunk-ZVOXWLT6.js} +214 -201
  20. package/dist/chunks/compaction-config-3WLLNN57.js +2 -0
  21. package/dist/chunks/{construction-bootstrap-E4M3CY3N.js → construction-bootstrap-CZ6NWEWQ.js} +1 -1
  22. package/dist/chunks/dist-NFLLOZWF.js +2 -0
  23. package/dist/chunks/host-LWUSSCWH.js +2 -0
  24. package/dist/chunks/run-manager-PBMOVP7A.js +2 -0
  25. package/dist/chunks/utils-KFLK3EHJ.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 +1975 -1564
  30. package/dist/kodax_resume.js +269 -90
  31. package/dist/runtime-worker.js +1824 -1419
  32. package/dist/sandbox-workspace-session.js +979 -66
  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 -13
  44. package/dist/sdk-repl.js +2 -2
  45. package/dist/sdk-runtime.d.ts +64 -23
  46. package/dist/sdk-runtime.js +1 -1
  47. package/dist/sdk-sandbox.js +1 -1
  48. package/dist/sdk-session.d.ts +7 -6
  49. package/dist/sdk-session.js +1 -1
  50. package/dist/sdk-skills.d.ts +2 -2
  51. package/dist/sdk-skills.js +1 -1
  52. package/dist/semantic-worker.js +251 -64
  53. package/dist/types-chunks/{bash-prefix-extractor.d-CJM7OY-L.d.ts → bash-prefix-extractor.d-BnZQDirs.d.ts} +130 -13
  54. package/dist/types-chunks/{capsule.d-B7yoH4dM.d.ts → capsule.d-CN_iMqAS.d.ts} +2 -1
  55. package/dist/types-chunks/controller.d-A73Kf6tH.d.ts +105 -0
  56. package/dist/types-chunks/{controller.d-CYNuR2n9.d.ts → controller.d-Dzxz22X-.d.ts} +28 -1020
  57. package/dist/types-chunks/{guardrail.d-fM3mn4Op.d.ts → guardrail.d-BCkgaWT1.d.ts} +25 -19
  58. package/dist/types-chunks/{history-retrieval.d-BDI-ZMvY.d.ts → history-retrieval.d-Debbzn1z.d.ts} +1 -1
  59. package/dist/types-chunks/{public-api.d-i10kvYFs.d.ts → public-api.d-N6G6Jw8X.d.ts} +3 -2
  60. package/dist/types-chunks/{repl.d-Cs3eqGVT.d.ts → repl.d-BkTIOkJD.d.ts} +5 -5
  61. package/dist/types-chunks/review-inbox.d-DuZqFX-z.d.ts +221 -0
  62. package/dist/types-chunks/{run-manager.d-CodHf6rw.d.ts → run-manager.d-BS4lJfL3.d.ts} +1 -1
  63. package/dist/types-chunks/{sdk-session-CRXu5xNs.d.ts → sdk-session-DLkZTOc-.d.ts} +2 -2
  64. package/dist/types-chunks/{shell-command-sets.d-DfeSUjjM.d.ts → shell-command-sets.d-BrLw-WN9.d.ts} +3 -2
  65. package/dist/types-chunks/{types-Bf3Y3mW-.d.ts → types-PHjfwebT.d.ts} +62 -190
  66. package/dist/types-chunks/{types.d-BbtGlKZu.d.ts → types.d-BSPlmJqf.d.ts} +25 -6
  67. package/dist/types-chunks/{types.d-DIXZFauU.d.ts → types.d-Bo4fyMLu.d.ts} +1 -1
  68. package/dist/types-chunks/{types.d-DKs4tfSd.d.ts → types.d-Ch3BD97c.d.ts} +2 -2
  69. package/dist/types-chunks/types.d-DlLBRqZ9.d.ts +1057 -0
  70. package/dist/types-chunks/{utils.d-CgITiLyc.d.ts → utils.d-BI-kjuev.d.ts} +7 -4
  71. package/package.json +4 -2
  72. package/dist/chunks/agent-S7LMMTG7.js +0 -2
  73. package/dist/chunks/argument-completer-SQHG2LYE.js +0 -2
  74. package/dist/chunks/chunk-37RT45HT.js +0 -379
  75. package/dist/chunks/chunk-3DKQC7A2.js +0 -479
  76. package/dist/chunks/chunk-45E23YJI.js +0 -885
  77. package/dist/chunks/chunk-6UENDY33.js +0 -89
  78. package/dist/chunks/chunk-DSFHIUHZ.js +0 -655
  79. package/dist/chunks/chunk-DZUMH6GJ.js +0 -2
  80. package/dist/chunks/chunk-E7C4DRD2.js +0 -5
  81. package/dist/chunks/chunk-EVXIJPZ6.js +0 -218
  82. package/dist/chunks/chunk-KHEFUT6O.js +0 -5
  83. package/dist/chunks/chunk-LF2JBTBG.js +0 -319
  84. package/dist/chunks/chunk-TC2VHPG5.js +0 -348
  85. package/dist/chunks/chunk-URCS6CVP.js +0 -292
  86. package/dist/chunks/compaction-config-SSQ5NXUP.js +0 -2
  87. package/dist/chunks/dist-MIXP4ULB.js +0 -2
  88. package/dist/chunks/host-ZCPI7SMC.js +0 -2
  89. package/dist/chunks/run-manager-4RYG7HSP.js +0 -2
  90. package/dist/chunks/utils-7DKE2EKT.js +0 -2
  91. package/docs/SDK_EMBEDDER_GUIDE.md +0 -5735
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-LF2JBTBG.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-DSFHIUHZ.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-HI6RCW5Y.js";import"./chunks/chunk-DZUMH6GJ.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-3DKQC7A2.js";import"./chunks/chunk-TC2VHPG5.js";import"./chunks/chunk-RAQGGVIF.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XB2JNLXH.js";import"./chunks/chunk-6QILIBOU.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-45E23YJI.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-IWRNGH4M.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-IA246OAN.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-TBBY2DKE.js";import"./chunks/chunk-MJ4G5ZCW.js";import"./chunks/chunk-CZCEFGQG.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-RTFVMEF6.js";import"./chunks/chunk-ODRLFQQH.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-SR4E5FQK.js";import"./chunks/chunk-ZVOXWLT6.js";import"./chunks/chunk-RSOAHVUR.js";import"./chunks/chunk-TRNAWSXP.js";import{t as x}from"./chunks/chunk-3E4OSFP2.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-CYNuR2n9.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-BDI-ZMvY.js';
8
- import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-CodHf6rw.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-CJM7OY-L.js';
10
- import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-DKs4tfSd.js';
11
- import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-fM3mn4Op.js';
12
- import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CgITiLyc.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-i10kvYFs.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-BnZQDirs.js';
11
+ import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-Ch3BD97c.js';
12
+ import { i as AutoModeDecisionDiagnostics, t as AutoModeStats } from './types-chunks/guardrail.d-BCkgaWT1.js';
13
+ import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-BI-kjuev.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-N6G6Jw8X.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;
@@ -1110,9 +1113,11 @@ interface ConnectKodaXRuntimeOptions {
1110
1113
  }
1111
1114
  /** SDK facts that embedders can inspect before auto-starting a daemon. */
1112
1115
  declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
1116
+ readonly actorSettlementConvergence: 1;
1113
1117
  readonly daemonOrphanExit: 1;
1114
1118
  readonly daemonShutdownVerification: 1;
1115
1119
  readonly managedRunDurability: 1;
1120
+ readonly sessionEventJournal: 1;
1116
1121
  readonly runtimeEventCoalescing: 1;
1117
1122
  }>;
1118
1123
  interface RuntimeCapabilityRequirements {
@@ -1154,6 +1159,10 @@ interface RuntimeCapabilityRequirements {
1154
1159
  readonly durableRecoveryQueries?: 1;
1155
1160
  /** Require durable accepted-input and completed-turn boundaries for managed Runs. */
1156
1161
  readonly managedRunDurability?: 1;
1162
+ /** Require fail-closed root fencing plus automatic same-owner Actor settlement repair. */
1163
+ readonly actorSettlementConvergence?: 1;
1164
+ /** Require Session-local sequences, epoch-bound cursors, and scoped event access. */
1165
+ readonly sessionEventJournal?: 1;
1157
1166
  readonly daemonManagement?: 1;
1158
1167
  /** Require an auto-started daemon whose current host has orphan idle-exit enabled. */
1159
1168
  readonly daemonOrphanExit?: 1;
@@ -1527,7 +1536,7 @@ interface RuntimeSessionDiagnostics {
1527
1536
  readonly runtimeMode: KodaXRuntimeMode;
1528
1537
  readonly sessionId: string;
1529
1538
  readonly observation: {
1530
- readonly cursor: number;
1539
+ readonly cursor: RuntimeSessionCursor;
1531
1540
  readonly transcriptRevision: string;
1532
1541
  };
1533
1542
  readonly run: RuntimeSessionDiagnosticRun;
@@ -1698,7 +1707,7 @@ interface RuntimeSessionLiveProjection {
1698
1707
  }
1699
1708
  interface RuntimeSessionObservationSnapshot {
1700
1709
  readonly runtimeId: string;
1701
- readonly cursor: number;
1710
+ readonly cursor: RuntimeSessionCursor;
1702
1711
  /** Content-derived token for the transcript captured at this observation boundary. */
1703
1712
  readonly transcriptRevision: string;
1704
1713
  readonly session: RuntimeSession;
@@ -1968,7 +1977,7 @@ interface RuntimeRunStopReceipt {
1968
1977
  /** Durable Run control-record revision observed by this receipt. */
1969
1978
  readonly revision: number;
1970
1979
  }
1971
- type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "control_history_untrusted";
1980
+ 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
1981
  interface RuntimeTerminalFact {
1973
1982
  readonly revision: number;
1974
1983
  readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
@@ -2105,6 +2114,21 @@ interface RuntimeWarningEventPayload {
2105
2114
  readonly severity?: string;
2106
2115
  readonly sourceEventId?: string;
2107
2116
  }
2117
+ interface RuntimeContextCompactionStartedEventPayload {
2118
+ readonly meta?: KodaXActivityEventMeta;
2119
+ }
2120
+ type RuntimeContextCompactionStatsEventPayload = {
2121
+ readonly tokensBefore: number;
2122
+ readonly tokensAfter: number;
2123
+ } & Partial<KodaXLiveEventMeta>;
2124
+ /** Legacy events and non-managed compaction paths may omit the structured outcome. */
2125
+ type RuntimeContextCompactionEndedEventPayload = ({
2126
+ readonly meta?: KodaXActivityEventMeta;
2127
+ } & KodaXCompactionEndResult) | {
2128
+ readonly meta?: KodaXActivityEventMeta;
2129
+ readonly outcome?: undefined;
2130
+ };
2131
+ type RuntimeContextCompactionSkippedEventPayload = RuntimeCompactionSkippedEvent & Partial<KodaXLiveEventMeta>;
2108
2132
  type RuntimeContextCompactionFinishedEventPayload = KodaXContextCompactionFinishedEvent & KodaXContextIdentity & {
2109
2133
  readonly beforeRevision: number;
2110
2134
  readonly afterRevision: number;
@@ -2138,7 +2162,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
2138
2162
  type RuntimeEventPayloadDefaults = {
2139
2163
  readonly [K in RuntimeEventType]: unknown;
2140
2164
  };
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"> & {
2165
+ 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
2166
  readonly "session.created": RuntimeSession;
2143
2167
  readonly "session.loaded": RuntimeSessionLoadedEventPayload;
2144
2168
  readonly "run.queued": RuntimeRunStatus;
@@ -2174,6 +2198,10 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
2174
2198
  readonly "context.budget.snapshot": RuntimeContextBudgetSnapshot;
2175
2199
  readonly "provider.cache.diagnostics": KodaXPromptCacheDiagnosticEvent;
2176
2200
  readonly "tool.exposure.planned": RuntimeToolExposurePlan;
2201
+ readonly "context.compaction.started": RuntimeContextCompactionStartedEventPayload;
2202
+ readonly "context.compaction.stats": RuntimeContextCompactionStatsEventPayload;
2203
+ readonly "context.compaction.ended": RuntimeContextCompactionEndedEventPayload;
2204
+ readonly "context.compaction.skipped": RuntimeContextCompactionSkippedEventPayload;
2177
2205
  readonly "context.compaction.messages": RuntimeContextCompactionMessagesEventPayload;
2178
2206
  readonly "context.compaction.finished": RuntimeContextCompactionFinishedEventPayload;
2179
2207
  readonly "runtime.warning": RuntimeWarningEventPayload;
@@ -2181,6 +2209,8 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
2181
2209
  interface RuntimeEventEnvelope<TPayload = unknown> {
2182
2210
  readonly id: string;
2183
2211
  readonly seq: number;
2212
+ /** Session-bound replay position. Numeric seq values are not comparable across Sessions. */
2213
+ readonly cursor: RuntimeSessionCursor;
2184
2214
  readonly time: string;
2185
2215
  readonly sessionId: string;
2186
2216
  readonly runId: string;
@@ -2188,12 +2218,17 @@ interface RuntimeEventEnvelope<TPayload = unknown> {
2188
2218
  readonly type: RuntimeEventType;
2189
2219
  readonly payload: TPayload;
2190
2220
  }
2221
+ interface RuntimeSessionCursor {
2222
+ readonly sessionId: string;
2223
+ readonly journalEpoch: string;
2224
+ readonly seq: number;
2225
+ }
2191
2226
  type RuntimeTypedEvent<TType extends RuntimeEventType = RuntimeEventType> = {
2192
2227
  readonly [K in TType]: RuntimeEventEnvelope<RuntimeEventPayloadMap[K]> & {
2193
2228
  readonly type: K;
2194
2229
  };
2195
2230
  }[TType];
2196
- /** Backward-compatible raw envelope; use parseRuntimeEvent for payload narrowing. */
2231
+ /** Raw event envelope; use parseRuntimeEvent for payload narrowing. */
2197
2232
  type RuntimeEvent = RuntimeEventEnvelope;
2198
2233
  type RuntimeEventParseResult = {
2199
2234
  readonly ok: true;
@@ -2202,15 +2237,21 @@ type RuntimeEventParseResult = {
2202
2237
  readonly ok: false;
2203
2238
  readonly error: string;
2204
2239
  };
2205
- interface RuntimeEventFilter {
2206
- readonly sessionId?: string;
2207
- readonly runId?: string;
2240
+ interface RuntimeEventFilterFields {
2208
2241
  readonly type?: RuntimeEventType | readonly RuntimeEventType[];
2209
2242
  }
2210
- interface RuntimeEventReplayFilter extends RuntimeEventFilter {
2211
- readonly sinceSeq?: number;
2243
+ type RuntimeEventFilter = RuntimeEventFilterFields & ({
2244
+ readonly sessionId: string;
2245
+ readonly runId?: string;
2246
+ } | {
2247
+ readonly sessionId?: string;
2248
+ readonly runId: string;
2249
+ });
2250
+ type RuntimeEventReplayFilter = RuntimeEventFilter & {
2251
+ readonly after?: RuntimeSessionCursor;
2252
+ /** Positive safe-integer result bound. */
2212
2253
  readonly limit?: number;
2213
- }
2254
+ };
2214
2255
  type RuntimeEventListener = (event: RuntimeEvent) => void;
2215
2256
  type RuntimeTypedEventListener = (event: RuntimeTypedEvent) => void;
2216
2257
  interface RuntimeSubscription {
@@ -2220,7 +2261,7 @@ interface RuntimeSubscription {
2220
2261
  }
2221
2262
  interface RuntimeEventService {
2222
2263
  subscribe(filter: RuntimeEventFilter, listener: RuntimeEventListener): RuntimeSubscription;
2223
- replay(filter?: RuntimeEventReplayFilter): Promise<readonly RuntimeEvent[]>;
2264
+ replay(filter: RuntimeEventReplayFilter): Promise<readonly RuntimeEvent[]>;
2224
2265
  }
2225
2266
  type RuntimePermissionRisk = "low" | "medium" | "high";
2226
2267
  interface RuntimePermissionScope {
@@ -2515,4 +2556,4 @@ declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promis
2515
2556
  declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
2516
2557
 
2517
2558
  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 };
2559
+ 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-37RT45HT.js";import"./chunks/chunk-URCS6CVP.js";import"./chunks/chunk-LF2JBTBG.js";import"./chunks/chunk-DSFHIUHZ.js";import"./chunks/chunk-HI6RCW5Y.js";import"./chunks/chunk-DZUMH6GJ.js";import"./chunks/chunk-3DKQC7A2.js";import"./chunks/chunk-TC2VHPG5.js";import"./chunks/chunk-RAQGGVIF.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XB2JNLXH.js";import"./chunks/chunk-6QILIBOU.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-45E23YJI.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-2XJQNFVR.js";import"./chunks/chunk-CDWYKVZC.js";import"./chunks/chunk-IWRNGH4M.js";import"./chunks/chunk-IA246OAN.js";import"./chunks/chunk-TBBY2DKE.js";import"./chunks/chunk-MJ4G5ZCW.js";import"./chunks/chunk-CZCEFGQG.js";import"./chunks/chunk-RTFVMEF6.js";import"./chunks/chunk-ODRLFQQH.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-SR4E5FQK.js";import"./chunks/chunk-ZVOXWLT6.js";import"./chunks/chunk-RSOAHVUR.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-3E4OSFP2.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};
@@ -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-URCS6CVP.js";import"./chunks/chunk-45E23YJI.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-CDWYKVZC.js";import"./chunks/chunk-CZCEFGQG.js";import"./chunks/chunk-RTFVMEF6.js";import"./chunks/chunk-ODRLFQQH.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-SR4E5FQK.js";import"./chunks/chunk-ZVOXWLT6.js";import"./chunks/chunk-RSOAHVUR.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-3E4OSFP2.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-i10kvYFs.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-N6G6Jw8X.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-CYNuR2n9.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-CRXu5xNs.js';
5
- import './types-chunks/bash-prefix-extractor.d-CJM7OY-L.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-DLkZTOc-.js';
5
+ import './types-chunks/bash-prefix-extractor.d-BnZQDirs.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-LF2JBTBG.js";import{N as s,O as e}from"./chunks/chunk-DSFHIUHZ.js";import"./chunks/chunk-HI6RCW5Y.js";import"./chunks/chunk-DZUMH6GJ.js";import"./chunks/chunk-3DKQC7A2.js";import"./chunks/chunk-TC2VHPG5.js";import"./chunks/chunk-RAQGGVIF.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-XB2JNLXH.js";import"./chunks/chunk-6QILIBOU.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-45E23YJI.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-IWRNGH4M.js";import{N as s,O as e}from"./chunks/chunk-IA246OAN.js";import"./chunks/chunk-TBBY2DKE.js";import"./chunks/chunk-MJ4G5ZCW.js";import"./chunks/chunk-CZCEFGQG.js";import"./chunks/chunk-RTFVMEF6.js";import"./chunks/chunk-ODRLFQQH.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-SR4E5FQK.js";import"./chunks/chunk-ZVOXWLT6.js";import"./chunks/chunk-RSOAHVUR.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-3E4OSFP2.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-45E23YJI.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-3E4OSFP2.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};