@kodax-ai/kodax 0.7.78 → 0.7.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3556 -3197
- package/README.md +371 -277
- package/README_CN.md +295 -215
- package/config-templates/config.example.jsonc +24 -2
- package/config-templates/integrations/a2a.example.jsonc +23 -7
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
- package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
- package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
- package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
- package/dist/builtin/skill-creator/scripts/utils.js +5 -1
- package/dist/chunks/agent-5PHGNFW3.js +2 -0
- package/dist/chunks/argument-completer-FXRZFMTC.js +2 -0
- package/dist/chunks/chunk-6UENDY33.js +89 -0
- package/dist/chunks/{chunk-6FOJVETH.js → chunk-BWX4YZX3.js} +7 -7
- package/dist/chunks/chunk-CDCCTM5I.js +278 -0
- package/dist/chunks/chunk-CEB5FDND.js +810 -0
- package/dist/chunks/{chunk-2CFHBKRE.js → chunk-E7C4DRD2.js} +2 -2
- package/dist/chunks/chunk-EVXIJPZ6.js +218 -0
- package/dist/chunks/chunk-FQ7NVMSU.js +319 -0
- package/dist/chunks/chunk-GC4JBMBS.js +385 -0
- package/dist/chunks/{chunk-Z3KFRTSB.js → chunk-HTVLCHWH.js} +1 -1
- package/dist/chunks/chunk-IHPH3444.js +655 -0
- package/dist/chunks/{chunk-YAZQTC2L.js → chunk-KHEFUT6O.js} +1 -1
- package/dist/chunks/{chunk-7OEBJGHK.js → chunk-PMKAG4SZ.js} +1 -1
- package/dist/chunks/chunk-RPF5RGWZ.js +479 -0
- package/dist/chunks/{chunk-UID7BLAB.js → chunk-RXXKDR6Y.js} +1 -1
- package/dist/chunks/chunk-T5U4OP2N.js +292 -0
- package/dist/chunks/chunk-TRNAWSXP.js +123 -0
- package/dist/chunks/chunk-UZSHBQER.js +30 -0
- package/dist/chunks/{chunk-TQDBTTIM.js → chunk-VECRQTSD.js} +44 -44
- package/dist/chunks/compaction-config-6J6XCBJS.js +2 -0
- package/dist/chunks/{construction-bootstrap-VQLQGWPY.js → construction-bootstrap-KPCAE3VN.js} +1 -1
- package/dist/chunks/dist-RWEVZOFK.js +2 -0
- package/dist/chunks/{dist-BFT5YIGU.js → dist-WWL2DNIJ.js} +1 -1
- package/dist/chunks/host-OGS2R5J4.js +2 -0
- package/dist/chunks/run-manager-2YMM3BOT.js +2 -0
- package/dist/chunks/{utils-SID4HW2Q.js → utils-2YHRUZYC.js} +1 -1
- package/dist/index.d.ts +21 -20
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +2 -1
- package/dist/kodax_cli.js +1850 -1476
- package/dist/kodax_resume.js +570 -34
- package/dist/provider-capabilities.json +85 -50
- package/dist/runtime-worker.js +1737 -1369
- package/dist/sandbox-workspace-session.js +285 -19
- package/dist/sdk-a2a.d.ts +19 -13
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +80 -150
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +186 -66
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +7 -7
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +31 -213
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +230 -31
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +8 -8
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +283 -18
- package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-uAe2Oqda.d.ts → bash-prefix-extractor.d-DStqKIlu.d.ts} +31 -8
- package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-BlSv9l3V.d.ts → capsule.d-BuFJaYxA.d.ts} +14 -21
- package/dist/types-chunks/{types.d-BA-Jwpfs.d.ts → controller.d-C2aHqzHj.d.ts} +344 -11
- package/dist/types-chunks/{guardrail.d-CXDYRgZ3.d.ts → guardrail.d-DM-OK0m3.d.ts} +187 -116
- package/dist/types-chunks/{history-retrieval.d-DtCy7x64.d.ts → history-retrieval.d-DImTKgO6.d.ts} +16 -3
- package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
- package/dist/types-chunks/{public-api.d-B3AohsxN.d.ts → public-api.d-CewTvUKV.d.ts} +335 -38
- package/dist/types-chunks/{repl.d-Ie_ZXb_U.d.ts → repl.d-DvXQtgr7.d.ts} +5 -5
- package/dist/types-chunks/{resolver.d-iAQ9ocLB.d.ts → resolver.d-C9IW4fmU.d.ts} +5 -2
- package/dist/types-chunks/{run-manager.d-D1twIhF9.d.ts → run-manager.d-C6ahvZqK.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-DB9KksIx.d.ts → sdk-session-C59RUrri.d.ts} +3 -3
- package/dist/types-chunks/shell-command-sets.d-Dp4UvPLL.d.ts +297 -0
- package/dist/types-chunks/{side-query.d-DTuLPcC5.d.ts → side-query.d-CP1LiRiH.d.ts} +8 -2
- package/dist/types-chunks/{types-D3g6XUQr.d.ts → types-Bf3Y3mW-.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BH0ZkTGf.d.ts → types.d-BzpPDBPV.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
- package/dist/types-chunks/{types.d-DVDTIfB_.d.ts → types.d-yuJzE82x.d.ts} +4 -4
- package/dist/types-chunks/{utils.d-CVp6bFl9.d.ts → utils.d-BpACJmzt.d.ts} +24 -6
- package/docs/SDK_EMBEDDER_GUIDE.md +1148 -598
- package/package.json +6 -3
- package/dist/chunks/agent-ASP4MS3X.js +0 -2
- package/dist/chunks/argument-completer-JYQ7FX3W.js +0 -2
- package/dist/chunks/chunk-35PPHOQ2.js +0 -292
- package/dist/chunks/chunk-43QNNDHR.js +0 -29
- package/dist/chunks/chunk-5GO6FH7L.js +0 -458
- package/dist/chunks/chunk-5NDCSFOP.js +0 -78
- package/dist/chunks/chunk-6XM4B6K2.js +0 -48
- package/dist/chunks/chunk-6YZUE6NC.js +0 -240
- package/dist/chunks/chunk-KQLQYHWU.js +0 -386
- package/dist/chunks/chunk-NXO6GWSY.js +0 -46
- package/dist/chunks/chunk-T2XZTLYE.js +0 -316
- package/dist/chunks/chunk-VAT2QYXM.js +0 -765
- package/dist/chunks/chunk-YVRYHC4C.js +0 -655
- package/dist/chunks/compaction-config-BQSSIWK5.js +0 -2
- package/dist/chunks/dist-PCFE24YP.js +0 -2
- package/dist/chunks/host-UTFXCYYM.js +0 -2
- package/dist/chunks/run-manager-PJU3WIFJ.js +0 -2
- package/dist/types-chunks/guardrail.d-BRE_ErEj.d.ts +0 -156
package/dist/sdk-repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as
|
|
3
|
-
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";
|
|
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-FQ7NVMSU.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-IHPH3444.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-CDCCTM5I.js";import"./chunks/chunk-PMKAG4SZ.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-RPF5RGWZ.js";import"./chunks/chunk-VECRQTSD.js";import"./chunks/chunk-RXXKDR6Y.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-BWX4YZX3.js";import"./chunks/chunk-GC4JBMBS.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-CEB5FDND.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};
|
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { k as KodaXMessage } from './types-chunks/types.d-
|
|
3
|
-
import {
|
|
1
|
+
import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CgrXrFrq.js';
|
|
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-C2aHqzHj.js';
|
|
4
4
|
import { i as SkillMetadata } from './types-chunks/types.d-BbtGlKZu.js';
|
|
5
5
|
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
6
6
|
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-
|
|
8
|
-
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-
|
|
9
|
-
import { a1 as KodaXOptions,
|
|
10
|
-
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-
|
|
11
|
-
import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-
|
|
12
|
-
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-
|
|
13
|
-
import {
|
|
7
|
+
import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-DImTKgO6.js';
|
|
8
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-C6ahvZqK.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-DStqKIlu.js';
|
|
10
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-yuJzE82x.js';
|
|
11
|
+
import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-DM-OK0m3.js';
|
|
12
|
+
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-BpACJmzt.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-CewTvUKV.js';
|
|
14
14
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
15
15
|
import 'vscode-languageserver-protocol';
|
|
16
16
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
17
|
-
import './types-chunks/types-
|
|
18
|
-
import './types-chunks/base.d-
|
|
19
|
-
import './types-chunks/
|
|
20
|
-
import './types-chunks/side-query.d-DTuLPcC5.js';
|
|
17
|
+
import './types-chunks/types-Bf3Y3mW-.js';
|
|
18
|
+
import './types-chunks/base.d-DxG0m09Z.js';
|
|
19
|
+
import './types-chunks/side-query.d-CP1LiRiH.js';
|
|
21
20
|
import 'readline';
|
|
22
21
|
import 'child_process';
|
|
23
22
|
|
|
@@ -179,16 +178,16 @@ interface RuntimeLearningService {
|
|
|
179
178
|
|
|
180
179
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
181
180
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
182
|
-
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.observe' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview' | 'provider.cache.diagnostics.get';
|
|
181
|
+
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.status' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.conversation' | 'session.conversation.page' | 'session.conversation.entryChunk' | 'session.observe' | 'session.diagnostics' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'request.cancel' | 'request.ack' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview' | 'provider.cache.diagnostics.get';
|
|
183
182
|
type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
184
183
|
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
185
|
-
type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
184
|
+
type RuntimeDaemonNotificationMethod = 'event' | 'observation.invalidated' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
186
185
|
interface RuntimeDaemonError {
|
|
187
186
|
readonly code: RuntimeDaemonErrorCode;
|
|
188
187
|
readonly message: string;
|
|
189
188
|
readonly data?: unknown;
|
|
190
189
|
}
|
|
191
|
-
type RuntimeDaemonErrorCode = 'invalid_frame' | 'invalid_request' | 'invalid_params' | 'not_initialized' | 'method_not_found' | 'unauthorized' | 'permission_denied' | 'conflict' | 'not_found' | 'session_not_admitted' | 'cancelled' | 'overloaded' | 'client_upgrade_required' | 'operation_required' | 'operation_epoch_mismatch' | 'operation_id_reuse' | 'operation_interrupted' | 'operation_unknown' | 'control_history_untrusted' | 'credential_unavailable' | 'host_tool_unavailable' | 'host_tool_unknown' | 'internal_error';
|
|
190
|
+
type RuntimeDaemonErrorCode = 'invalid_frame' | 'invalid_request' | 'invalid_params' | 'not_initialized' | 'method_not_found' | 'unauthorized' | 'permission_denied' | 'conflict' | 'not_found' | 'session_not_admitted' | 'cancelled' | 'overloaded' | 'client_upgrade_required' | 'operation_required' | 'operation_epoch_mismatch' | 'operation_id_reuse' | 'operation_interrupted' | 'operation_unknown' | 'control_history_untrusted' | 'resync_required' | 'read_timeout' | 'read_cancelled' | 'data_changed' | 'observation_invalidated' | 'runtime_changed' | 'data_corrupt' | 'version_incompatible' | 'credential_unavailable' | 'host_tool_unavailable' | 'host_tool_unknown' | 'internal_error';
|
|
192
191
|
interface RuntimeDaemonFrameBase {
|
|
193
192
|
readonly protocol: typeof KODAX_DAEMON_PROTOCOL;
|
|
194
193
|
readonly version: typeof KODAX_DAEMON_PROTOCOL_VERSION;
|
|
@@ -223,11 +222,15 @@ type RuntimeDaemonFrame = RuntimeDaemonRequest<RuntimeDaemonWireMethod> | Runtim
|
|
|
223
222
|
declare const RUNTIME_DAEMON_METHODS: readonly RuntimeDaemonMethod[];
|
|
224
223
|
|
|
225
224
|
interface RuntimeDaemonClientTransport {
|
|
226
|
-
request(method: RuntimeDaemonMethod, params?: unknown, operation?: RuntimeDaemonOperationEnvelope): Promise<unknown>;
|
|
225
|
+
request(method: RuntimeDaemonMethod, params?: unknown, operation?: RuntimeDaemonOperationEnvelope, control?: RuntimeDaemonRequestControl): Promise<unknown>;
|
|
227
226
|
subscribe(listener: (notification: RuntimeDaemonNotification) => void): RuntimeSubscription;
|
|
228
227
|
subscribeLifecycle?(listener: (state: RuntimeDaemonTransportLifecycleState) => void): RuntimeSubscription;
|
|
229
228
|
close?(): Promise<void> | void;
|
|
230
229
|
}
|
|
230
|
+
interface RuntimeDaemonRequestControl {
|
|
231
|
+
readonly signal?: AbortSignal;
|
|
232
|
+
readonly onLateResult?: (value: unknown) => void;
|
|
233
|
+
}
|
|
231
234
|
interface RuntimeDaemonTransportLifecycleState {
|
|
232
235
|
readonly state: 'connected' | 'disconnected';
|
|
233
236
|
readonly connectionId: string;
|
|
@@ -255,6 +258,11 @@ interface RuntimeWorkerResourceLimits {
|
|
|
255
258
|
interface RuntimeWorkerOptions {
|
|
256
259
|
readonly resourceLimits?: RuntimeWorkerResourceLimits;
|
|
257
260
|
readonly shutdownTimeoutMs?: number;
|
|
261
|
+
/**
|
|
262
|
+
* Load `<homeDir>/.kodax/integrations/a2a.json` inside the Worker owner.
|
|
263
|
+
* Defaults to false so SDK hosts explicitly opt into ambient user integration.
|
|
264
|
+
*/
|
|
265
|
+
readonly configuredA2A?: boolean;
|
|
258
266
|
}
|
|
259
267
|
|
|
260
268
|
interface RuntimeDaemonEndpoint {
|
|
@@ -355,6 +363,10 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
355
363
|
params: RuntimeDaemonJsonSchema;
|
|
356
364
|
result: RuntimeDaemonJsonSchema;
|
|
357
365
|
};
|
|
366
|
+
'session.status': {
|
|
367
|
+
params: RuntimeDaemonJsonSchema;
|
|
368
|
+
result: RuntimeDaemonJsonSchema;
|
|
369
|
+
};
|
|
358
370
|
'session.transcript': {
|
|
359
371
|
params: RuntimeDaemonJsonSchema;
|
|
360
372
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -375,6 +387,22 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
375
387
|
params: RuntimeDaemonJsonSchema;
|
|
376
388
|
result: RuntimeDaemonJsonSchema;
|
|
377
389
|
};
|
|
390
|
+
'session.conversation': {
|
|
391
|
+
params: RuntimeDaemonJsonSchema;
|
|
392
|
+
result: RuntimeDaemonJsonSchema;
|
|
393
|
+
};
|
|
394
|
+
'session.conversation.page': {
|
|
395
|
+
params: RuntimeDaemonJsonSchema;
|
|
396
|
+
result: RuntimeDaemonJsonSchema;
|
|
397
|
+
};
|
|
398
|
+
'session.conversation.entryChunk': {
|
|
399
|
+
params: RuntimeDaemonJsonSchema;
|
|
400
|
+
result: RuntimeDaemonJsonSchema;
|
|
401
|
+
};
|
|
402
|
+
'session.diagnostics': {
|
|
403
|
+
params: RuntimeDaemonJsonSchema;
|
|
404
|
+
result: RuntimeDaemonJsonSchema;
|
|
405
|
+
};
|
|
378
406
|
'session.fork': {
|
|
379
407
|
params: RuntimeDaemonJsonSchema;
|
|
380
408
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -479,6 +507,14 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
479
507
|
params: RuntimeDaemonJsonSchema;
|
|
480
508
|
result: RuntimeDaemonJsonSchema;
|
|
481
509
|
};
|
|
510
|
+
'request.cancel': {
|
|
511
|
+
params: RuntimeDaemonJsonSchema;
|
|
512
|
+
result: RuntimeDaemonJsonSchema;
|
|
513
|
+
};
|
|
514
|
+
'request.ack': {
|
|
515
|
+
params: RuntimeDaemonJsonSchema;
|
|
516
|
+
result: RuntimeDaemonJsonSchema;
|
|
517
|
+
};
|
|
482
518
|
'event.subscribe': {
|
|
483
519
|
params: RuntimeDaemonJsonSchema;
|
|
484
520
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -842,6 +878,7 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
842
878
|
};
|
|
843
879
|
declare const RUNTIME_DAEMON_NOTIFICATION_SCHEMAS: {
|
|
844
880
|
event: RuntimeDaemonJsonSchema;
|
|
881
|
+
'observation.invalidated': RuntimeDaemonJsonSchema;
|
|
845
882
|
'credential.request': RuntimeDaemonJsonSchema;
|
|
846
883
|
'host_tool.invoke': RuntimeDaemonJsonSchema;
|
|
847
884
|
'runtime.warning': RuntimeDaemonJsonSchema;
|
|
@@ -1032,6 +1069,8 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1032
1069
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
1033
1070
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
1034
1071
|
readonly daemonOrphanExit: 1;
|
|
1072
|
+
readonly managedRunDurability: 1;
|
|
1073
|
+
readonly runtimeEventCoalescing: 1;
|
|
1035
1074
|
}>;
|
|
1036
1075
|
interface RuntimeCapabilityRequirements {
|
|
1037
1076
|
/** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
|
|
@@ -1063,14 +1102,20 @@ interface RuntimeCapabilityRequirements {
|
|
|
1063
1102
|
readonly transcriptPaging?: 1;
|
|
1064
1103
|
/** Require deterministic exact-history search over merged persisted lineage. */
|
|
1065
1104
|
readonly transcriptSearch?: 1;
|
|
1105
|
+
/** Require SDK-resolved ordinary history with explicit legacy ambiguity. */
|
|
1106
|
+
readonly conversationHistory?: 1;
|
|
1066
1107
|
readonly connectionLifecycle?: 1;
|
|
1067
1108
|
readonly typedRuntimeEvents?: 1;
|
|
1068
1109
|
readonly daemonSafeRunInput?: 1;
|
|
1069
1110
|
readonly sharedSessionSettings?: 1;
|
|
1070
1111
|
readonly durableRecoveryQueries?: 1;
|
|
1112
|
+
/** Require durable accepted-input and completed-turn boundaries for managed Runs. */
|
|
1113
|
+
readonly managedRunDurability?: 1;
|
|
1071
1114
|
readonly daemonManagement?: 1;
|
|
1072
1115
|
/** Require an auto-started daemon whose current host has orphan idle-exit enabled. */
|
|
1073
1116
|
readonly daemonOrphanExit?: 1;
|
|
1117
|
+
/** Require source-level bounded coalescing before sequence allocation and persistence. */
|
|
1118
|
+
readonly runtimeEventCoalescing?: 1;
|
|
1074
1119
|
/** Optional integration failures are isolated, observable, and hot-recoverable. */
|
|
1075
1120
|
readonly integrationConfigResilience?: 1;
|
|
1076
1121
|
readonly actorControlPlane?: 1;
|
|
@@ -1175,7 +1220,7 @@ interface RuntimeAgentService {
|
|
|
1175
1220
|
interrupt(sessionId: string, actorPath: string, reason?: string): Promise<void>;
|
|
1176
1221
|
output(sessionId: string, actorPath: string, turnId?: string): Promise<AgentOutput>;
|
|
1177
1222
|
events(sessionId: string, afterSequence?: number): Promise<readonly AgentEvent[]>;
|
|
1178
|
-
wait(sessionId: string, afterSequence?: number, timeoutMs?: number): Promise<AgentEvent | undefined>;
|
|
1223
|
+
wait(sessionId: string, afterSequence?: number, timeoutMs?: number, options?: Readonly<Pick<RuntimeReadOptions, "signal">>): Promise<AgentEvent | undefined>;
|
|
1179
1224
|
}
|
|
1180
1225
|
type RuntimeConfigPatch = Partial<Pick<ReplRuntimeConfigPatch, RuntimeConfigPatchKey>>;
|
|
1181
1226
|
interface RuntimeConfigReloadResult {
|
|
@@ -1341,7 +1386,7 @@ interface RuntimeRunSessionLoadedEventPayload {
|
|
|
1341
1386
|
readonly turnId?: string;
|
|
1342
1387
|
readonly iteration?: number;
|
|
1343
1388
|
}
|
|
1344
|
-
/**
|
|
1389
|
+
/** Durable compatibility event emitted when a run binds its provider session. */
|
|
1345
1390
|
type RuntimeSessionLoadedEventPayload = RuntimeSession | RuntimeRunSessionLoadedEventPayload;
|
|
1346
1391
|
interface RuntimeSessionSummary extends RuntimeSession {
|
|
1347
1392
|
/** Opaque continuation token accepted by RuntimeSessionFilter.cursor. */
|
|
@@ -1352,6 +1397,31 @@ interface RuntimeSessionSummary extends RuntimeSession {
|
|
|
1352
1397
|
readonly archived?: boolean;
|
|
1353
1398
|
}
|
|
1354
1399
|
type RuntimeTranscript = FullTranscriptSessionData;
|
|
1400
|
+
interface RuntimeConversationHistory extends SessionConversationHistoryData {
|
|
1401
|
+
/** Content-derived identity shared by direct and paged conversation reads. */
|
|
1402
|
+
readonly revision: string;
|
|
1403
|
+
}
|
|
1404
|
+
interface RuntimeConversationHistorySliceEntry {
|
|
1405
|
+
readonly index: number;
|
|
1406
|
+
readonly boundaryId?: string;
|
|
1407
|
+
readonly byteLength: number;
|
|
1408
|
+
readonly oversized: boolean;
|
|
1409
|
+
readonly entry?: SessionConversationHistoryEntry;
|
|
1410
|
+
}
|
|
1411
|
+
interface RuntimeConversationHistorySlice {
|
|
1412
|
+
readonly revision: string;
|
|
1413
|
+
readonly sourceRevision: string;
|
|
1414
|
+
readonly status: SessionConversationHistoryStatus;
|
|
1415
|
+
readonly issues: readonly SessionConversationHistoryIssue[];
|
|
1416
|
+
readonly entries: readonly RuntimeConversationHistorySliceEntry[];
|
|
1417
|
+
readonly hasMore: boolean;
|
|
1418
|
+
readonly nextCursor?: string;
|
|
1419
|
+
}
|
|
1420
|
+
interface RuntimeConversationHistoryPageInput {
|
|
1421
|
+
readonly sessionId: string;
|
|
1422
|
+
readonly cursor?: string;
|
|
1423
|
+
readonly limit?: number;
|
|
1424
|
+
}
|
|
1355
1425
|
interface RuntimeTranscriptSliceEntry {
|
|
1356
1426
|
readonly index: number;
|
|
1357
1427
|
readonly entryId?: string;
|
|
@@ -1370,6 +1440,53 @@ interface RuntimeTranscriptPageInput {
|
|
|
1370
1440
|
readonly cursor?: string;
|
|
1371
1441
|
readonly limit?: number;
|
|
1372
1442
|
}
|
|
1443
|
+
interface RuntimeReadOptions {
|
|
1444
|
+
readonly timeoutMs?: number;
|
|
1445
|
+
readonly signal?: AbortSignal;
|
|
1446
|
+
}
|
|
1447
|
+
interface RuntimeSessionDiagnosticsInput extends RuntimeReadOptions {
|
|
1448
|
+
readonly sessionId: string;
|
|
1449
|
+
/** Select one Run control record; otherwise the authoritative Session Run is used. */
|
|
1450
|
+
readonly runId?: string;
|
|
1451
|
+
}
|
|
1452
|
+
type RuntimeSessionDiagnosticErrorCode = "run_control_unknown" | "run_status_unknown" | "owner_liveness_unconfirmed" | "owner_recovery_required" | "stop_outcome_unconfirmed" | "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_failed" | "terminal_time_unknown";
|
|
1453
|
+
interface RuntimeSessionDiagnosticError {
|
|
1454
|
+
readonly code: RuntimeSessionDiagnosticErrorCode;
|
|
1455
|
+
readonly message: string;
|
|
1456
|
+
}
|
|
1457
|
+
interface RuntimeSessionDiagnosticRun {
|
|
1458
|
+
readonly controlRecord: "present" | "unknown";
|
|
1459
|
+
readonly runId?: string;
|
|
1460
|
+
readonly turnId?: string;
|
|
1461
|
+
readonly state: "queued" | "active" | "terminal" | "unknown";
|
|
1462
|
+
readonly phase?: RuntimeRunPhase;
|
|
1463
|
+
readonly stage: RuntimeRunStage | "unknown";
|
|
1464
|
+
readonly stageChangedAt?: string;
|
|
1465
|
+
readonly terminalAt?: string;
|
|
1466
|
+
readonly terminalTimeKnown: boolean;
|
|
1467
|
+
readonly terminal?: RuntimeTerminalFact;
|
|
1468
|
+
readonly activeSubtaskCount: number | null;
|
|
1469
|
+
readonly activeSubtaskCountSource: "run_status" | "unknown";
|
|
1470
|
+
readonly stop?: RuntimeRunStopStatus;
|
|
1471
|
+
readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
|
|
1472
|
+
readonly errors: readonly RuntimeSessionDiagnosticError[];
|
|
1473
|
+
}
|
|
1474
|
+
interface RuntimeSessionDiagnostics {
|
|
1475
|
+
readonly schemaVersion: 1;
|
|
1476
|
+
readonly captureStartedAt: string;
|
|
1477
|
+
readonly capturedAt: string;
|
|
1478
|
+
readonly sdkVersion: string;
|
|
1479
|
+
readonly runtimeVersion: string;
|
|
1480
|
+
readonly daemonVersion: string | null;
|
|
1481
|
+
readonly runtimeId: string;
|
|
1482
|
+
readonly runtimeMode: KodaXRuntimeMode;
|
|
1483
|
+
readonly sessionId: string;
|
|
1484
|
+
readonly observation: {
|
|
1485
|
+
readonly cursor: number;
|
|
1486
|
+
readonly transcriptRevision: string;
|
|
1487
|
+
};
|
|
1488
|
+
readonly run: RuntimeSessionDiagnosticRun;
|
|
1489
|
+
}
|
|
1373
1490
|
interface RuntimeTranscriptEntryChunkInput {
|
|
1374
1491
|
readonly sessionId: string;
|
|
1375
1492
|
readonly revision: string;
|
|
@@ -1385,6 +1502,21 @@ interface RuntimeTranscriptEntryChunk {
|
|
|
1385
1502
|
readonly hasMore: boolean;
|
|
1386
1503
|
readonly nextCursor?: string;
|
|
1387
1504
|
}
|
|
1505
|
+
interface RuntimeConversationHistoryEntryChunk {
|
|
1506
|
+
readonly revision: string;
|
|
1507
|
+
readonly entryIndex: number;
|
|
1508
|
+
readonly boundaryId?: string;
|
|
1509
|
+
readonly encoding: "base64-json";
|
|
1510
|
+
readonly data: string;
|
|
1511
|
+
readonly hasMore: boolean;
|
|
1512
|
+
readonly nextCursor?: string;
|
|
1513
|
+
}
|
|
1514
|
+
interface RuntimeConversationHistoryEntryChunkInput {
|
|
1515
|
+
readonly sessionId: string;
|
|
1516
|
+
readonly revision: string;
|
|
1517
|
+
readonly entryIndex: number;
|
|
1518
|
+
readonly cursor?: string;
|
|
1519
|
+
}
|
|
1388
1520
|
interface RuntimeTranscriptSearchInput {
|
|
1389
1521
|
readonly sessionId: string;
|
|
1390
1522
|
readonly query: string;
|
|
@@ -1415,6 +1547,11 @@ interface RuntimeForkSessionInput {
|
|
|
1415
1547
|
readonly selector?: string;
|
|
1416
1548
|
readonly newSessionId?: string;
|
|
1417
1549
|
readonly title?: string;
|
|
1550
|
+
readonly historyBoundary?: RuntimeConversationHistoryBoundary;
|
|
1551
|
+
}
|
|
1552
|
+
interface RuntimeConversationHistoryBoundary {
|
|
1553
|
+
readonly entryId: string;
|
|
1554
|
+
readonly sourceRevision: string;
|
|
1418
1555
|
}
|
|
1419
1556
|
interface RuntimeSessionSettings {
|
|
1420
1557
|
readonly provider?: string;
|
|
@@ -1460,6 +1597,7 @@ interface RuntimeAppendNoticeInput {
|
|
|
1460
1597
|
interface RuntimeRewindSessionInput {
|
|
1461
1598
|
readonly sessionId: string;
|
|
1462
1599
|
readonly selector?: string;
|
|
1600
|
+
readonly historyBoundary?: RuntimeConversationHistoryBoundary;
|
|
1463
1601
|
}
|
|
1464
1602
|
interface RuntimeSetActiveEntryInput {
|
|
1465
1603
|
readonly sessionId: string;
|
|
@@ -1527,16 +1665,32 @@ interface RuntimeSessionObservationSnapshot {
|
|
|
1527
1665
|
}
|
|
1528
1666
|
interface RuntimeSessionObservation extends RuntimeSubscription {
|
|
1529
1667
|
readonly snapshot: RuntimeSessionObservationSnapshot;
|
|
1668
|
+
readonly invalidated: Promise<RuntimeObservationInvalidation>;
|
|
1669
|
+
}
|
|
1670
|
+
interface RuntimeObservationInvalidation {
|
|
1671
|
+
readonly code: "observation_invalidated";
|
|
1672
|
+
readonly reason: "event_overflow" | "event_order" | "delivery_failed" | "runtime_changed" | "transport_disconnected";
|
|
1673
|
+
readonly runtimeId: string;
|
|
1674
|
+
readonly message: string;
|
|
1530
1675
|
}
|
|
1531
1676
|
interface RuntimeSessionService {
|
|
1532
1677
|
create(input?: RuntimeCreateSessionInput): Promise<RuntimeSession>;
|
|
1533
|
-
load(sessionId: string): Promise<RuntimeSession>;
|
|
1678
|
+
load(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeSession>;
|
|
1534
1679
|
list(filter?: RuntimeSessionFilter): Promise<readonly RuntimeSessionSummary[]>;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1680
|
+
status(sessionId: string): Promise<RuntimeSessionStatus>;
|
|
1681
|
+
transcript(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeTranscript | null>;
|
|
1682
|
+
transcriptPage(input: RuntimeTranscriptPageInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptSlice | null>;
|
|
1683
|
+
transcriptEntryChunk(input: RuntimeTranscriptEntryChunkInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptEntryChunk | null>;
|
|
1684
|
+
transcriptSearch(input: RuntimeTranscriptSearchInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptSearchResult | null>;
|
|
1685
|
+
conversation(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeConversationHistory | null>;
|
|
1686
|
+
conversationPage(input: RuntimeConversationHistoryPageInput, options?: RuntimeReadOptions): Promise<RuntimeConversationHistorySlice | null>;
|
|
1687
|
+
conversationEntryChunk(input: RuntimeConversationHistoryEntryChunkInput, options?: RuntimeReadOptions): Promise<RuntimeConversationHistoryEntryChunk | null>;
|
|
1688
|
+
observe(sessionId: string, listener: RuntimeEventListener, options?: RuntimeReadOptions): Promise<RuntimeSessionObservation>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Captures a bounded, read-only diagnostic boundary without recovering,
|
|
1691
|
+
* taking over, or otherwise mutating Session or Run state.
|
|
1692
|
+
*/
|
|
1693
|
+
diagnostics(input: RuntimeSessionDiagnosticsInput): Promise<RuntimeSessionDiagnostics>;
|
|
1540
1694
|
fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
|
|
1541
1695
|
getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
|
|
1542
1696
|
getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
|
|
@@ -1552,7 +1706,15 @@ interface RuntimeSessionService {
|
|
|
1552
1706
|
unarchive(sessionId: string): Promise<void>;
|
|
1553
1707
|
delete(sessionId: string): Promise<void>;
|
|
1554
1708
|
}
|
|
1555
|
-
type RuntimeRunPhase = "queued" | "running" | "waiting_permission" | "waiting_user_input" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
1709
|
+
type RuntimeRunPhase = "queued" | "running" | "waiting_agent" | "recovering" | "waiting_permission" | "waiting_user_input" | "unknown" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
1710
|
+
type RuntimeRunStage = "queued" | "executing" | "waiting_agent" | "recovering" | "finalizing" | "terminal" | "unknown" | "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "verifying";
|
|
1711
|
+
interface RuntimeSessionStatus {
|
|
1712
|
+
readonly sessionId: string;
|
|
1713
|
+
readonly runtimeId: string;
|
|
1714
|
+
readonly phase: "idle" | RuntimeRunPhase;
|
|
1715
|
+
readonly observedAt: string;
|
|
1716
|
+
readonly runId?: string;
|
|
1717
|
+
}
|
|
1556
1718
|
type RuntimeRunMode = "coding" | "managed_task";
|
|
1557
1719
|
interface RuntimeTextInput {
|
|
1558
1720
|
readonly type: "text";
|
|
@@ -1658,7 +1820,7 @@ type RuntimeKodaXOptions = Omit<KodaXOptions, "provider" | "session" | "events">
|
|
|
1658
1820
|
readonly events?: KodaXEvents;
|
|
1659
1821
|
};
|
|
1660
1822
|
type RuntimeDaemonContextOptions = Pick<KodaXContextOptions, "gitRoot" | "executionCwd" | "shellExecution" | "contextTokenSnapshot" | "projectSnapshot" | "longRunning" | "providerPolicyHints" | "repoRoutingSignals" | "repoIntelligenceMode" | "repoIntelligenceTrace" | "contextDiagnostics" | "disableAutoTaskReroute" | "toolConstructionMode" | "skillsPrompt" | "rawUserInput" | "skillInvocation" | "repoIntelligenceContext" | "inputArtifacts" | "promptOverlay" | "taskSurface" | "liveTurn" | "managedTaskWorkspaceDir" | "managedProtocolEmission" | "excludeTools" | "systemPromptOverride" | "taskMetadata" | "taskVerification" | "agentProfile" | "currentAgentId" | "parentAgentId">;
|
|
1661
|
-
type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, "provider" | "model" | "modelOverride" | "effort" | "thinking" | "reasoningMode" | "agentMode" | "maxIter" | "workflowHostPolicy" | "workflowRunsBaseDir" | "modelTiers" | "maxOutputTokens" | "disablePromptCache" | "lsp" | "workflow" | "selfManual" | "compaction" | "timeouts"> & {
|
|
1823
|
+
type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, "provider" | "model" | "modelOverride" | "effort" | "thinking" | "reasoningMode" | "agentMode" | "maxIter" | "workflowHostPolicy" | "workflowRunsBaseDir" | "modelTiers" | "maxOutputTokens" | "disablePromptCache" | "lsp" | "workflow" | "selfManual" | "compaction" | "timeouts" | "sandbox"> & {
|
|
1662
1824
|
readonly context?: RuntimeDaemonContextOptions;
|
|
1663
1825
|
};
|
|
1664
1826
|
type RuntimeDaemonStartRunInput = Omit<RuntimeStartRunInput, "options" | "agentContext" | "permissionBroker"> & {
|
|
@@ -1676,6 +1838,11 @@ interface RuntimeRunStatus {
|
|
|
1676
1838
|
readonly sessionId: string;
|
|
1677
1839
|
readonly turnId?: string;
|
|
1678
1840
|
readonly phase: RuntimeRunPhase;
|
|
1841
|
+
/** Fine-grained executor stage within the coarse lifecycle phase. */
|
|
1842
|
+
readonly stage?: RuntimeRunStage;
|
|
1843
|
+
readonly stageChangedAt?: string;
|
|
1844
|
+
/** Present only when the managed executor reported an authoritative count. */
|
|
1845
|
+
readonly activeSubtaskCount?: number;
|
|
1679
1846
|
readonly startedAt: string;
|
|
1680
1847
|
/** Durable acceptance timestamp; equals startedAt for protocol v1. */
|
|
1681
1848
|
readonly acceptedAt?: string;
|
|
@@ -1695,11 +1862,19 @@ interface RuntimeRunStatus {
|
|
|
1695
1862
|
readonly model?: string;
|
|
1696
1863
|
readonly reasoning?: KodaXReasoningMode;
|
|
1697
1864
|
readonly error?: string;
|
|
1865
|
+
readonly lifecycleError?: RuntimeRunLifecycleError;
|
|
1698
1866
|
readonly terminal?: RuntimeTerminalFact;
|
|
1699
1867
|
readonly continuation?: RuntimeContinuationStatus;
|
|
1700
1868
|
readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
|
|
1869
|
+
/** Durable Stop request/result; distinct from chat interruptInputs. */
|
|
1870
|
+
readonly stop?: RuntimeRunStopStatus;
|
|
1701
1871
|
readonly requirements?: RuntimeRunRequirements;
|
|
1702
1872
|
}
|
|
1873
|
+
interface RuntimeRunLifecycleError {
|
|
1874
|
+
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted";
|
|
1875
|
+
readonly message: string;
|
|
1876
|
+
readonly retryable: boolean;
|
|
1877
|
+
}
|
|
1703
1878
|
interface RuntimeRunRequirements {
|
|
1704
1879
|
readonly credential?: {
|
|
1705
1880
|
readonly leaseId: string;
|
|
@@ -1728,6 +1903,24 @@ interface RuntimeInterruptInputStatus {
|
|
|
1728
1903
|
readonly deliveredAt?: string;
|
|
1729
1904
|
readonly origin?: RuntimeRunStatus["origin"];
|
|
1730
1905
|
}
|
|
1906
|
+
interface RuntimeRunStopStatus {
|
|
1907
|
+
readonly requestedAt: string;
|
|
1908
|
+
readonly state: "unknown" | "confirmed";
|
|
1909
|
+
readonly outcome: "unknown" | "cancelled" | "interrupted" | "completed" | "failed";
|
|
1910
|
+
readonly reason: string;
|
|
1911
|
+
readonly resolvedAt?: string;
|
|
1912
|
+
}
|
|
1913
|
+
interface RuntimeRunStopReceipt {
|
|
1914
|
+
readonly runId: string;
|
|
1915
|
+
readonly sessionId: string;
|
|
1916
|
+
/** True only when this invocation durably created the Stop request. */
|
|
1917
|
+
readonly accepted: boolean;
|
|
1918
|
+
readonly state: RuntimeRunStopStatus["state"];
|
|
1919
|
+
readonly outcome: RuntimeRunStopStatus["outcome"];
|
|
1920
|
+
readonly phase: RuntimeRunPhase;
|
|
1921
|
+
/** Durable Run control-record revision observed by this receipt. */
|
|
1922
|
+
readonly revision: number;
|
|
1923
|
+
}
|
|
1731
1924
|
type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "control_history_untrusted";
|
|
1732
1925
|
interface RuntimeTerminalFact {
|
|
1733
1926
|
readonly revision: number;
|
|
@@ -1743,6 +1936,7 @@ interface RuntimeRunResult {
|
|
|
1743
1936
|
readonly result?: KodaXResult;
|
|
1744
1937
|
readonly error?: Error;
|
|
1745
1938
|
readonly terminal?: RuntimeTerminalFact;
|
|
1939
|
+
readonly stop?: RuntimeRunStopStatus;
|
|
1746
1940
|
}
|
|
1747
1941
|
interface RuntimeRunHandle {
|
|
1748
1942
|
readonly runId: string;
|
|
@@ -1760,7 +1954,7 @@ interface RuntimeRunService {
|
|
|
1760
1954
|
await(runId: string): Promise<RuntimeRunResult>;
|
|
1761
1955
|
get(runId: string): Promise<RuntimeRunStatus>;
|
|
1762
1956
|
list(filter?: RuntimeRunFilter): Promise<readonly RuntimeRunStatus[]>;
|
|
1763
|
-
abort(runId: string): Promise<
|
|
1957
|
+
abort(runId: string): Promise<RuntimeRunStopReceipt>;
|
|
1764
1958
|
setModel(runId: string, model: string | undefined): Promise<void>;
|
|
1765
1959
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
1766
1960
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
@@ -2257,11 +2451,16 @@ interface RuntimeStatusService {
|
|
|
2257
2451
|
snapshot(): Promise<RuntimeStatusSnapshot>;
|
|
2258
2452
|
preflight(): Promise<RuntimeDaemonPreflight>;
|
|
2259
2453
|
}
|
|
2454
|
+
/**
|
|
2455
|
+
* Capture one read-only, boundary-labelled diagnostic record without taking
|
|
2456
|
+
* ownership of, resuming, or otherwise mutating the Session.
|
|
2457
|
+
*/
|
|
2458
|
+
declare function captureRuntimeSessionDiagnostics(runtime: KodaXRuntime, input: RuntimeSessionDiagnosticsInput): Promise<RuntimeSessionDiagnostics>;
|
|
2260
2459
|
declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
2261
2460
|
readonly mode: "daemon";
|
|
2262
2461
|
}): Promise<KodaXDaemonRuntime>;
|
|
2263
2462
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
2264
2463
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
2265
2464
|
|
|
2266
|
-
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, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
2267
|
-
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, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, 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, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, 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 };
|
|
2465
|
+
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 };
|
|
2466
|
+
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, 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 };
|
package/dist/sdk-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunks/chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"./chunks/chunk-UZSHBQER.js";import"./chunks/chunk-T5U4OP2N.js";import"./chunks/chunk-FQ7NVMSU.js";import"./chunks/chunk-IHPH3444.js";import"./chunks/chunk-CDCCTM5I.js";import"./chunks/chunk-PMKAG4SZ.js";import"./chunks/chunk-RPF5RGWZ.js";import"./chunks/chunk-VECRQTSD.js";import"./chunks/chunk-RXXKDR6Y.js";import"./chunks/chunk-HTVLCHWH.js";import"./chunks/chunk-BWX4YZX3.js";import"./chunks/chunk-GC4JBMBS.js";import"./chunks/chunk-KHEFUT6O.js";import"./chunks/chunk-TRNAWSXP.js";import"./chunks/chunk-CEB5FDND.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,s 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,m as RuntimeAutoModeConfigurationError,l as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,n as acquireKodaXInlineOwner,t as captureRuntimeSessionDiagnostics,v as connectKodaXRuntime,u as createKodaXRuntime,q as enableKodaXDaemonOwner,o as getKodaXRuntimeOwnerPolicy,p as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,r as setKodaXRuntimeOwnerMode};
|
package/dist/sdk-sandbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunks/chunk-5BNQXXGY.js";import{a,b,c,d,e,f,g}from"./chunks/chunk-
|
|
2
|
+
import"./chunks/chunk-5BNQXXGY.js";import{a,b,c,d,e,f,g}from"./chunks/chunk-T5U4OP2N.js";import"./chunks/chunk-CEB5FDND.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};
|