@kodax-ai/kodax 0.7.58 → 0.7.59
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 +28 -0
- package/README.md +1228 -1225
- package/README_CN.md +647 -645
- package/dist/chunks/{agent-YJNC2755.js → agent-QQCRBU4C.js} +1 -1
- package/dist/chunks/argument-completer-7Q2T4YWA.js +2 -0
- package/dist/chunks/{chunk-6AU6EPO6.js → chunk-2UUOFT3Z.js} +1 -1
- package/dist/chunks/{chunk-NKHXRN7G.js → chunk-5GPJ6MB5.js} +110 -108
- package/dist/chunks/{chunk-P4VF3JEP.js → chunk-BEXLPFFB.js} +3 -3
- package/dist/chunks/{chunk-CQ6EQG7E.js → chunk-D7RENPQQ.js} +31 -31
- package/dist/chunks/{chunk-ZZDC75H4.js → chunk-PRIBJN5E.js} +70 -68
- package/dist/chunks/{chunk-HS2K74I4.js → chunk-S4GVQO3W.js} +13 -13
- package/dist/chunks/chunk-SDSLWDAZ.js +17 -0
- package/dist/chunks/{chunk-7QB55SYG.js → chunk-SVEJFERZ.js} +8 -8
- package/dist/chunks/{chunk-XXEIFNBE.js → chunk-TBXP7FEG.js} +1 -1
- package/dist/chunks/{chunk-526OILYL.js → chunk-UA744TZM.js} +1 -1
- package/dist/chunks/{chunk-QHWXPJEG.js → chunk-UXQILGRX.js} +145 -146
- package/dist/chunks/{chunk-CV6JHPEO.js → chunk-YADBB5GN.js} +1 -1
- package/dist/chunks/{chunk-OBPB5BQ6.js → chunk-Z23LK3IV.js} +6 -6
- package/dist/chunks/chunk-Z3ZXV3DZ.js +18 -0
- package/dist/chunks/compaction-config-GQIPCVFD.js +2 -0
- package/dist/chunks/{construction-bootstrap-CIXFH5SE.js → construction-bootstrap-YON4ZEMO.js} +1 -1
- package/dist/chunks/dist-73L4OYPD.js +2 -0
- package/dist/chunks/dist-EZXBR6NW.js +2 -0
- package/dist/chunks/host-LO6ZNTMV.js +2 -0
- package/dist/chunks/{paste-Y4DVUWSM.js → paste-4THGP5XW.js} +1 -1
- package/dist/chunks/run-manager-HTLXKU66.js +2 -0
- package/dist/chunks/{utils-FLVVQHM7.js → utils-5XVW33SY.js} +1 -1
- package/dist/index.d.ts +10 -9
- package/dist/index.js +2 -2
- package/dist/kodax_cli.js +995 -990
- package/dist/provider-capabilities.json +971 -986
- package/dist/sdk-agent.d.ts +9 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +79 -14
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +1 -1
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +10 -9
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-session.d.ts +5 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +4 -231
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-D3cddmyV.d.ts → bash-prefix-extractor.d-BNdpV4Cf.d.ts} +29 -4
- package/dist/types-chunks/{guardrail.d-iK7FwMdW.d.ts → guardrail.d-CNdKuSD_.d.ts} +2 -2
- package/dist/types-chunks/{process.d-DHow2y2G.d.ts → process.d-BOrAxjvM.d.ts} +21 -3
- package/dist/types-chunks/{resolver.d-DDOfVYDr.d.ts → resolver.d-DFAKKUvt.d.ts} +56 -2
- package/dist/types-chunks/{run-manager.d-ByDcJc5g.d.ts → run-manager.d-CsJC9zYf.d.ts} +3 -3
- package/dist/types-chunks/{sdk-session-21Tt3N_x.d.ts → sdk-session-ByZlwgdM.d.ts} +14 -3
- package/dist/types-chunks/{storage.d-BsZrBPYu.d.ts → storage.d-DHL3XpAL.d.ts} +2 -2
- package/dist/types-chunks/{types.d-D4ZA8LJV.d.ts → types.d-CE_Ter29.d.ts} +1 -1
- package/dist/types-chunks/types.d-vJExiRje.d.ts +232 -0
- package/dist/types-chunks/{utils.d-BURxOxFd.d.ts → utils.d-D9FHU4wB.d.ts} +5 -4
- package/package.json +1 -1
- package/dist/chunks/argument-completer-QGBNXTYJ.js +0 -2
- package/dist/chunks/chunk-73Z7BK5H.js +0 -15
- package/dist/chunks/chunk-PIQWODWN.js +0 -18
- package/dist/chunks/compaction-config-OPMRZSAK.js +0 -2
- package/dist/chunks/dist-JSE7NICF.js +0 -2
- package/dist/chunks/dist-SDNQOW52.js +0 -2
- package/dist/chunks/host-H7FQMMRC.js +0 -2
- package/dist/chunks/run-manager-4H5HWMVW.js +0 -2
package/dist/sdk-repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as gn,$a as Co,A as Q,Aa as zn,Ab as Bo,B as T,Ba as Bn,Bb as Eo,C as U,Ca as En,Cb as Go,D as V,Da as Gn,Db as Ho,E as Y,Ea as Hn,Eb as Jo,F as Z,Fa as Jn,Fb as Qo,G as tt,Ga as Qn,Gb as To,H as nt,Ha as Tn,Hb as Uo,I as ot,Ia as Un,Ib as Vo,J as et,Ja as Vn,Jb as Yo,K as rt,Ka as Yn,Kb as Zo,L as at,La as Zn,Lb as te,M as pt,Ma as to,Mb as ne,N as lt,Na as no,Nb as oe,O as ut,Oa as oo,Ob as ee,P as ft,Pa as eo,Pb as re,Q as en,Qa as ro,Qb as ae,R as rn,Ra as ao,Rb as me,S as an,Sa as mo,Sb as ie,T as mn,Ta as io,Tb as se,U as sn,Ua as so,Ub as ce,V as cn,Va as co,W as dn,Wa as po,X as pn,Xa as lo,Y as ln,Ya as uo,Z as un,Za as fo,_ as fn,_a as go,a as D,aa as Cn,ab as xo,b as P,ba as xn,bb as yo,c as M,ca as yn,cb as Ko,d as b,da as Kn,db as Xo,e as w,ea as Xn,eb as ho,f as N,fa as hn,fb as Do,g as _,ga as Dn,gb as Po,h as j,ha as Pn,hb as Mo,i as k,ia as Mn,ib as bo,j as A,ja as bn,jb as wo,k as O,ka as wn,kb as No,l as R,la as Nn,lb as _o,m as S,ma as _n,mb as jo,n as v,na as jn,nb as ko,o as I,oa as kn,ob as Ao,p as L,pa as An,pb as Oo,q as W,qa as On,qb as Ro,r as F,ra as Rn,rb as So,s as $,sa as Sn,sb as vo,t as q,ta as vn,tb as Io,u as z,ua as In,ub as Lo,v as B,va as Ln,vb as Wo,w as E,wa as Wn,wb as Fo,x as G,xa as Fn,xb as $o,y as H,ya as $n,yb as qo,z as J,za as qn,zb as zo}from"./chunks/chunk-
|
|
2
|
+
import{$ as gn,$a as Co,A as Q,Aa as zn,Ab as Bo,B as T,Ba as Bn,Bb as Eo,C as U,Ca as En,Cb as Go,D as V,Da as Gn,Db as Ho,E as Y,Ea as Hn,Eb as Jo,F as Z,Fa as Jn,Fb as Qo,G as tt,Ga as Qn,Gb as To,H as nt,Ha as Tn,Hb as Uo,I as ot,Ia as Un,Ib as Vo,J as et,Ja as Vn,Jb as Yo,K as rt,Ka as Yn,Kb as Zo,L as at,La as Zn,Lb as te,M as pt,Ma as to,Mb as ne,N as lt,Na as no,Nb as oe,O as ut,Oa as oo,Ob as ee,P as ft,Pa as eo,Pb as re,Q as en,Qa as ro,Qb as ae,R as rn,Ra as ao,Rb as me,S as an,Sa as mo,Sb as ie,T as mn,Ta as io,Tb as se,U as sn,Ua as so,Ub as ce,V as cn,Va as co,W as dn,Wa as po,X as pn,Xa as lo,Y as ln,Ya as uo,Z as un,Za as fo,_ as fn,_a as go,a as D,aa as Cn,ab as xo,b as P,ba as xn,bb as yo,c as M,ca as yn,cb as Ko,d as b,da as Kn,db as Xo,e as w,ea as Xn,eb as ho,f as N,fa as hn,fb as Do,g as _,ga as Dn,gb as Po,h as j,ha as Pn,hb as Mo,i as k,ia as Mn,ib as bo,j as A,ja as bn,jb as wo,k as O,ka as wn,kb as No,l as R,la as Nn,lb as _o,m as S,ma as _n,mb as jo,n as v,na as jn,nb as ko,o as I,oa as kn,ob as Ao,p as L,pa as An,pb as Oo,q as W,qa as On,qb as Ro,r as F,ra as Rn,rb as So,s as $,sa as Sn,sb as vo,t as q,ta as vn,tb as Io,u as z,ua as In,ub as Lo,v as B,va as Ln,vb as Wo,w as E,wa as Wn,wb as Fo,x as G,xa as Fn,xb as $o,y as H,ya as $n,yb as qo,z as J,za as qn,zb as zo}from"./chunks/chunk-Z23LK3IV.js";import{I as Jt,J as Qt,K as Tt,L as Ut,M as Vt,R as Yt,S as Zt,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,k as xt,l as yt,m as Kt,n as Wt,p as Ft,q as $t,r as qt,s as zt,u as Bt,v as Et,va as tn,w as Gt,wa as nn,x as Ht,xa as on}from"./chunks/chunk-UXQILGRX.js";import"./chunks/chunk-2UUOFT3Z.js";import"./chunks/chunk-YADBB5GN.js";import{A as kt,B as At,C as Ot,D as Rt,E as St,F as vt,I as It,M as Lt,b as Xt,c as ht,d as Dt,e as Pt,f as Mt,h as bt,i as wt,j as Nt,k as _t,z as jt}from"./chunks/chunk-TBXP7FEG.js";import"./chunks/chunk-5GPJ6MB5.js";import"./chunks/chunk-SDSLWDAZ.js";import"./chunks/chunk-Z3ZXV3DZ.js";import"./chunks/chunk-D7RENPQQ.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-UA744TZM.js";import"./chunks/chunk-SVEJFERZ.js";import"./chunks/chunk-S4GVQO3W.js";import"./chunks/chunk-PRIBJN5E.js";import"./chunks/chunk-BEXLPFFB.js";import{a}from"./chunks/chunk-V4WSBIXB.js";import l from"fs/promises";import c from"path";import x from"os";var u=c.join(x.homedir(),".kodax","commands");function y(){return u}a(y,"getDefaultCommandDir");async function K(e){let n=new Map,o=e??u;try{await l.mkdir(o,{recursive:!0});let r=await l.readdir(o);for(let t of r){let m=c.extname(t),f=t.replace(m,"");if(m===".md"){try{let d=await l.readFile(c.join(o,t),"utf-8"),i=(d.split(`
|
|
3
3
|
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{Dn as App,en as AutocompleteContextProvider,tn as BUILTIN_COMMANDS,Jn as BackgroundTaskBar,Tn as ChildActivitySurface,Io as ConsoleCapturer,dt as DEFAULT_UI_STATE,zn as DialogSurface,un as DotsIndicator,Uo as FileSessionStorage,Mn as FullscreenTranscriptLayout,xn as HistoryItemRenderer,dn as InputPrompt,u as KODAX_COMMANDS_DIR,Dt as KODAX_CONFIG_FILE,Xt as KODAX_DIR,Ot as KODAX_EXAMPLE_CONFIG_FILE,ht as KODAX_SESSIONS_DIR,Nt as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Cn as LoadingIndicator,co as MemorySessionStorage,bn as MessageActions,yn as MessageList,wn as MessageSelector,En as NotificationsSurface,gt as PERMISSION_MODES,Pt as PREVIEW_MAX_LENGTH,_o as PendingInputsIndicator,fn as ProgressIndicator,_n as PromptComposer,An as PromptFooter,jn as PromptFooterLeftSide,kn as PromptFooterRightSide,On as PromptHelpMenu,qn as PromptSuggestionsSurface,Bn as QueuedCommandsSurface,Pn as SimpleApp,pn as SimpleInputPrompt,Kn as SimpleMessageDisplay,hn as SimpleStatusBar,tt as SingleLineTextInput,ln as Spinner,Hn as StashNotice,Xn as StatusBar,Gn as StatusNoticesSurface,Vn as StreamingProvider,mt as StreamingState,$n as SuggestionsDisplay,st as TOOL_STATUS_ICONS,sn as TextBuffer,Z as TextInput,gn as ThinkingIndicator,wo as ToolCallDisplay,it as ToolCallStatus,No as ToolGroup,bo as ToolProgressBar,Mo as ToolStatusBadge,Nn as TranscriptViewport,In as UIStateProvider,ao as _resetQueuedPromptsCacheForTests,me as archiveSession,so as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,Et as collectBashWriteTargets,xt as computeConfirmTools,Do as createCliEvents,Sn as createHistoryItem,mo as createInteractiveContext,Po as createJsonEvents,oo as createKeyMatcher,pt as createKeypressManager,po as createMemorySessionStorage,Ko as createRecoveryHistoryItem,xo as createRetryHistoryItem,ce as createSessionManager,Un as createStreamingManager,vn as createToolCall,Q as darkTheme,Vo as dedupeSessions,ae as deleteSession,vo as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,Xo as emitRecoveryHistoryItem,yo as emitRetryHistoryItem,Rt as ensureExampleConfigFile,on as executeCommand,lo as executeShellCommand,Tt as extractHistorySeedsFromMessage,Ut as extractHistorySeedsFromMessages,Vt as extractTextContent,Yt as extractTitle,ne as forkSession,Zt as formatMessagePreview,Rn as generateId,qt as generateSavePattern,Gt as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,zo as getCustomProviderConfig,y as getDefaultCommandDir,It as getGitRoot,at as getKeyDisplayName,Ho as getMcpServerConfig,Ht as getPlanModeBlockReason,jt as getProviderList,_t as getProviderModel,S as getTerminalHostCapabilities,Ro as getTerminalWidth,V as getTheme,Y as getThemeNames,wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,Mt as hydrateProcessEnvFromShell,zt as isAlwaysConfirmPath,Wt as isBashReadCommand,Ft as isBashWriteCommand,I as isClassicReplForced,et as isFunctionKey,v as isOwnedRendererPreferred,Bt as isPathInsideProject,yt as isPermissionMode,rt as isPrintable,kt as isProviderConfigured,M as isRemoteConptyHost,So as isScreenReader,uo as isShellCommand,fo as isShellCommandSuccess,w as isTmuxControlMode,$t as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,qo as listCustomProviders,Go as listMcpServers,re as listRunningSessions,Yo as listSessions,K as loadCommands,At as loadConfig,te as loadFullTranscript,Zo as loadSession,Qn as measureChildActivitySurfaceRows,T as minimalTheme,Kt as normalizePermissionMode,nn as parseCommand,h as parseCommandCall,nt as parseKeypress,Ct as permissionModeDisplayName,St as prepareRuntimeConfig,X as processCommandCall,$o as processSpecialSyntax,Lt as rateLimitedCall,bt as registerConfiguredCustomProviders,Eo as removeCustomProvider,Qo as removeMcpServer,N as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,O as resolveInteractiveSurfacePreference,Co as restoreHistoryItemsFromSession,oe as rewindSession,ho as runInkInteractiveMode,Fo as runInteractiveMode,vt as saveConfig,Jt as seedToHistoryItem,ee as setActiveEntry,z as splitByCodePoints,ko as supports256Colors,Oo as supportsEmoji,jo as supportsTrueColor,Ao as supportsUnicode,U as themes,Qt as toolCallSeedToHistoryToolCall,io as touchContext,go as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,ie as unarchiveSession,Bo as upsertCustomProvider,Jo as upsertMcpServer,an as useAutocomplete,rn as useAutocompleteContext,mn as useInputHistory,no as useKeypress,ut as useKeypressManager,ro as useQueuedPromptContents,eo as useQueuedPrompts,to as useStreaming,Zn as useStreamingActions,Yn as useStreamingState,cn as useTextBuffer,Fn as useUI,Wn as useUIActions,Ln as useUIState,To as validateMcpServerConfig,E as visualWidthCache,se as watchSessions,Lo as withCapture,Wo as withCaptureSync};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { c as CreatableHistoryItem, e as DeleteSessionResult, F as FullTranscriptSessionData, s as HistorySeedSourceMessage, w as ListSessionsOptions, R as RestoreHistoryItemsFromSessionInput, z as RestoredHistorySeed, B as RunningSessionInfo, S as SessionManager, E as SessionSummary, G as SessionTranscriptEntry, J as SessionTranscriptEntryType, a4 as WatchSessionsCallback, a5 as archiveSession, a6 as createSessionManager, a7 as deleteSession, a8 as extractHistorySeedsFromMessage, a9 as extractHistorySeedsFromMessages, ac as forkSession, ae as listRunningSessions, af as listSessions, ag as loadFullTranscript, ah as loadSession, ai as restoreHistoryItemsFromSession, aj as rewindSession, al as setActiveEntry, ao as unarchiveSession, ap as watchSessions } from './types-chunks/sdk-session-
|
|
2
|
-
export { ai as KodaXSessionUiHistoryItem, aj as KodaXSessionUiHistoryItemType, ak as KodaXSessionUiTextHistoryItem, al as KodaXSessionUiTextHistoryItemType, am as KodaXSessionUiToolCall, an as KodaXSessionUiToolCallStatus, ao as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-
|
|
3
|
-
import './types-chunks/storage.d-
|
|
4
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
1
|
+
export { c as CreatableHistoryItem, e as DeleteSessionResult, F as FullTranscriptSessionData, s as HistorySeedSourceMessage, w as ListSessionsOptions, R as RestoreHistoryItemsFromSessionInput, z as RestoredHistorySeed, B as RunningSessionInfo, S as SessionManager, E as SessionSummary, G as SessionTranscriptEntry, J as SessionTranscriptEntryType, a4 as WatchSessionsCallback, a5 as archiveSession, a6 as createSessionManager, a7 as deleteSession, a8 as extractHistorySeedsFromMessage, a9 as extractHistorySeedsFromMessages, ac as forkSession, ae as listRunningSessions, af as listSessions, ag as loadFullTranscript, ah as loadSession, ai as restoreHistoryItemsFromSession, aj as rewindSession, al as setActiveEntry, ao as unarchiveSession, ap as watchSessions } from './types-chunks/sdk-session-ByZlwgdM.js';
|
|
2
|
+
export { ai as KodaXSessionUiHistoryItem, aj as KodaXSessionUiHistoryItemType, ak as KodaXSessionUiTextHistoryItem, al as KodaXSessionUiTextHistoryItemType, am as KodaXSessionUiToolCall, an as KodaXSessionUiToolCallStatus, ao as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-BOrAxjvM.js';
|
|
3
|
+
import './types-chunks/storage.d-DHL3XpAL.js';
|
|
4
|
+
import './types-chunks/bash-prefix-extractor.d-BNdpV4Cf.js';
|
|
5
5
|
import './types-chunks/types.d-Ci5YPFEh.js';
|
|
6
|
+
import './types-chunks/types.d-vJExiRje.js';
|
|
6
7
|
import 'vscode-languageserver-protocol';
|
|
7
8
|
import './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
8
9
|
import './types-chunks/capability.d-3C62G8Eq.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$a as o,Jb as i,Kb as t,Lb as r,Mb as n,Nb as a,Ob as S,Pb as l,Qb as y,Rb as d,Sb as m,Tb as p,Ub as c}from"./chunks/chunk-
|
|
2
|
+
import{$a as o,Jb as i,Kb as t,Lb as r,Mb as n,Nb as a,Ob as S,Pb as l,Qb as y,Rb as d,Sb as m,Tb as p,Ub as c}from"./chunks/chunk-Z23LK3IV.js";import{K as s,L as e}from"./chunks/chunk-UXQILGRX.js";import"./chunks/chunk-2UUOFT3Z.js";import"./chunks/chunk-YADBB5GN.js";import"./chunks/chunk-TBXP7FEG.js";import"./chunks/chunk-5GPJ6MB5.js";import"./chunks/chunk-SDSLWDAZ.js";import"./chunks/chunk-Z3ZXV3DZ.js";import"./chunks/chunk-D7RENPQQ.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-UA744TZM.js";import"./chunks/chunk-SVEJFERZ.js";import"./chunks/chunk-S4GVQO3W.js";import"./chunks/chunk-PRIBJN5E.js";import"./chunks/chunk-BEXLPFFB.js";import"./chunks/chunk-V4WSBIXB.js";export{d as archiveSession,c as createSessionManager,y as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,n as forkSession,l as listRunningSessions,i as listSessions,r as loadFullTranscript,t as loadSession,o as restoreHistoryItemsFromSession,a as rewindSession,S as setActiveEntry,m as unarchiveSession,p as watchSessions};
|
package/dist/sdk-skills.d.ts
CHANGED
|
@@ -1,232 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Compliant with https://agentskills.io/ specification
|
|
4
|
-
*
|
|
5
|
-
* Also supports Claude Code extension fields for compatibility
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Skill frontmatter as defined in SKILL.md YAML header
|
|
9
|
-
*/
|
|
10
|
-
interface SkillFrontmatter {
|
|
11
|
-
/** Skill name in kebab-case, max 64 characters */
|
|
12
|
-
name: string;
|
|
13
|
-
/** Skill description, max 1024 characters, should include trigger conditions */
|
|
14
|
-
description: string;
|
|
15
|
-
/** Whether to disable automatic model invocation (default: false) */
|
|
16
|
-
disableModelInvocation?: boolean;
|
|
17
|
-
/** Whether skill appears in / menu (default: true) */
|
|
18
|
-
userInvocable?: boolean;
|
|
19
|
-
/** Tool restrictions, e.g., "Read, Grep, Bash(python:*)" */
|
|
20
|
-
allowedTools?: string;
|
|
21
|
-
/** Execution context - 'fork' for sub-agent execution */
|
|
22
|
-
context?: 'fork';
|
|
23
|
-
/** Sub-agent type: Explore, Plan, general-purpose, etc. */
|
|
24
|
-
agent?: string;
|
|
25
|
-
/** Argument hint for UI, e.g., "[file] [format]" */
|
|
26
|
-
argumentHint?: string;
|
|
27
|
-
/** Model preference: haiku, sonnet, opus, or a provider-specific model id */
|
|
28
|
-
model?: string;
|
|
29
|
-
/** Hooks scoped to this skill's lifecycle */
|
|
30
|
-
hooks?: SkillHooks;
|
|
31
|
-
license?: string;
|
|
32
|
-
compatibility?: string;
|
|
33
|
-
metadata?: Record<string, unknown>;
|
|
34
|
-
}
|
|
35
|
-
interface SkillHook {
|
|
36
|
-
matcher?: string;
|
|
37
|
-
command: string;
|
|
38
|
-
}
|
|
39
|
-
interface SkillHooks {
|
|
40
|
-
SessionStart?: SkillHook[];
|
|
41
|
-
UserPromptSubmit?: SkillHook[];
|
|
42
|
-
PreToolUse?: SkillHook[];
|
|
43
|
-
PostToolUse?: SkillHook[];
|
|
44
|
-
Stop?: SkillHook[];
|
|
45
|
-
SubagentStop?: SkillHook[];
|
|
46
|
-
Notification?: SkillHook[];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Lightweight skill metadata for system prompt injection
|
|
50
|
-
* Loaded at startup for progressive disclosure
|
|
51
|
-
*/
|
|
52
|
-
interface SkillMetadata {
|
|
53
|
-
name: string;
|
|
54
|
-
description: string;
|
|
55
|
-
userInvocable: boolean;
|
|
56
|
-
argumentHint?: string;
|
|
57
|
-
path: string;
|
|
58
|
-
source: SkillSource;
|
|
59
|
-
/** If true, exclude from system prompt; still invokable by explicit slash forms. */
|
|
60
|
-
disableModelInvocation: boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Complete skill definition with all content loaded
|
|
64
|
-
*/
|
|
65
|
-
interface Skill extends SkillFrontmatter {
|
|
66
|
-
/** Skill directory absolute path */
|
|
67
|
-
path: string;
|
|
68
|
-
/** SKILL.md absolute path */
|
|
69
|
-
skillFilePath: string;
|
|
70
|
-
/** Markdown content (with variables resolved) */
|
|
71
|
-
content: string;
|
|
72
|
-
/** Raw markdown content (before variable resolution) */
|
|
73
|
-
rawContent: string;
|
|
74
|
-
/** Support files */
|
|
75
|
-
scripts?: SkillFile[];
|
|
76
|
-
references?: SkillFile[];
|
|
77
|
-
assets?: SkillFile[];
|
|
78
|
-
templates?: SkillFile[];
|
|
79
|
-
resources?: SkillFile[];
|
|
80
|
-
/** Runtime state */
|
|
81
|
-
loaded: boolean;
|
|
82
|
-
source: SkillSource;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* File within a skill directory
|
|
86
|
-
*/
|
|
87
|
-
interface SkillFile {
|
|
88
|
-
name: string;
|
|
89
|
-
path: string;
|
|
90
|
-
relativePath: string;
|
|
91
|
-
content?: string;
|
|
92
|
-
}
|
|
93
|
-
type SkillSource = 'project' | 'user' | 'plugin' | 'builtin';
|
|
94
|
-
/**
|
|
95
|
-
* Skill registry interface for managing discovered skills
|
|
96
|
-
*/
|
|
97
|
-
interface ISkillRegistry {
|
|
98
|
-
/** Read-only view of discovered skill metadata */
|
|
99
|
-
readonly skills: ReadonlyMap<string, SkillMetadata>;
|
|
100
|
-
/** Discover skills from all configured paths */
|
|
101
|
-
discover(): Promise<void>;
|
|
102
|
-
/** Get skill metadata by name */
|
|
103
|
-
get(name: string): SkillMetadata | undefined;
|
|
104
|
-
/** Load full skill content */
|
|
105
|
-
loadFull(name: string): Promise<Skill>;
|
|
106
|
-
/** Invoke a skill with arguments */
|
|
107
|
-
invoke(name: string, args: string, context: SkillContext): Promise<SkillResult>;
|
|
108
|
-
/** Reload skills from disk */
|
|
109
|
-
reload(): Promise<void>;
|
|
110
|
-
/** List all discovered skills */
|
|
111
|
-
list(): ReadonlyArray<SkillMetadata>;
|
|
112
|
-
/** List skills that can be invoked directly by users */
|
|
113
|
-
listUserInvocable(): ReadonlyArray<SkillMetadata>;
|
|
114
|
-
/** Check whether a skill exists */
|
|
115
|
-
has(name: string): boolean;
|
|
116
|
-
/** Number of discovered skills */
|
|
117
|
-
readonly size: number;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* v0.7.42 — SDK-embedder hook for `!`cmd`` dynamic context resolution.
|
|
121
|
-
*
|
|
122
|
-
* Receives the literal command string and the working directory the resolver
|
|
123
|
-
* would have used. Must return the command's text output (which the resolver
|
|
124
|
-
* splices into the skill markdown in place of the `!`cmd`` token), or throw
|
|
125
|
-
* to deny.
|
|
126
|
-
*
|
|
127
|
-
* **Trust boundary**: when the KodaX SDK is embedded inside a host app
|
|
128
|
-
* (e.g. KodaX Space, IDE extensions), the host typically mediates shell
|
|
129
|
-
* execution through a permission broker so the end user can approve / deny
|
|
130
|
-
* each command. Without this hook, `VariableResolver` directly `execSync`s
|
|
131
|
-
* commands using its own built-in whitelist — bypassing the host's broker
|
|
132
|
-
* and producing OS side-effects the user never saw.
|
|
133
|
-
*
|
|
134
|
-
* Embedders should route here to:
|
|
135
|
-
* - prompt the user via their own UI,
|
|
136
|
-
* - log execution to their audit trail,
|
|
137
|
-
* - apply policy (e.g. block network commands),
|
|
138
|
-
* - or refuse outright (throw).
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* const context: SkillContext = {
|
|
143
|
-
* workingDirectory: '/repo',
|
|
144
|
-
* executeDynamicContext: async (cmd, cwd) => {
|
|
145
|
-
* const approved = await brokerAskUser({ kind: 'skill-cmd', command: cmd, cwd });
|
|
146
|
-
* if (!approved) throw new Error('user denied');
|
|
147
|
-
* return await brokerExecute(cmd, cwd);
|
|
148
|
-
* },
|
|
149
|
-
* };
|
|
150
|
-
* ```
|
|
151
|
-
*/
|
|
152
|
-
type SkillDynamicContextExecutor = (command: string, cwd: string) => Promise<string>;
|
|
153
|
-
interface SkillContext {
|
|
154
|
-
workingDirectory: string;
|
|
155
|
-
projectRoot?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Optional. Used to substitute `${CLAUDE_SESSION_ID}` / `${KODAX_SESSION_ID}`
|
|
158
|
-
* template variables in skill markdown. Tool-invocation callers (e.g. the
|
|
159
|
-
* `skill` tool) may not have a session bound — in that case the resolver
|
|
160
|
-
* falls back to an empty replacement so the substitution doesn't leak the
|
|
161
|
-
* literal `${...}` to the LLM.
|
|
162
|
-
*/
|
|
163
|
-
sessionId?: string;
|
|
164
|
-
environment?: Record<string, string>;
|
|
165
|
-
messages?: unknown[];
|
|
166
|
-
/**
|
|
167
|
-
* v0.7.42 — SDK-embedder hook for `!`cmd`` dynamic-context resolution.
|
|
168
|
-
* See {@link SkillDynamicContextExecutor} for the trust-boundary rationale.
|
|
169
|
-
* When present, completely replaces the built-in `execSync`-based path
|
|
170
|
-
* (whitelist + 5s timeout). When absent, the legacy whitelist path runs.
|
|
171
|
-
*/
|
|
172
|
-
executeDynamicContext?: SkillDynamicContextExecutor;
|
|
173
|
-
/**
|
|
174
|
-
* v0.7.42 — hard-disable `!`cmd`` resolution.
|
|
175
|
-
* When `true`, encountering a `!`cmd`` token throws
|
|
176
|
-
* `[Dynamic context disabled by host]` regardless of any hook. Useful for
|
|
177
|
-
* embedders that want a single-flag kill switch without writing a hook.
|
|
178
|
-
* `executeDynamicContext` is ignored when this is `true`.
|
|
179
|
-
*/
|
|
180
|
-
disableDynamicContext?: boolean;
|
|
181
|
-
}
|
|
182
|
-
interface SkillResult {
|
|
183
|
-
success: boolean;
|
|
184
|
-
/** Processed prompt content */
|
|
185
|
-
content: string;
|
|
186
|
-
/** Generated artifacts */
|
|
187
|
-
artifacts?: SkillArtifact[];
|
|
188
|
-
error?: string;
|
|
189
|
-
}
|
|
190
|
-
interface SkillArtifact {
|
|
191
|
-
type: 'file' | 'code' | 'text';
|
|
192
|
-
name: string;
|
|
193
|
-
content: string;
|
|
194
|
-
path?: string;
|
|
195
|
-
}
|
|
196
|
-
interface IVariableResolver {
|
|
197
|
-
/** Resolve all variables in content */
|
|
198
|
-
resolve(content: string, args: string, context: SkillContext): Promise<string>;
|
|
199
|
-
}
|
|
200
|
-
interface SkillPathsConfig {
|
|
201
|
-
projectPaths: string[];
|
|
202
|
-
userPaths: string[];
|
|
203
|
-
pluginPaths: string[];
|
|
204
|
-
builtinPath: string;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Get default skill discovery paths
|
|
208
|
-
*
|
|
209
|
-
* Priority order (highest first):
|
|
210
|
-
* 1. Project - <projectRoot>/.kodax/skills/
|
|
211
|
-
* 2. User - ~/.kodax/skills/
|
|
212
|
-
* 3. User - ~/.agents/skills/ (AgentSkills standard)
|
|
213
|
-
* 4. Plugin - (dynamic)
|
|
214
|
-
* 5. Builtin - packages/skills/src/builtin/
|
|
215
|
-
*/
|
|
216
|
-
declare function getDefaultSkillPaths(projectRoot?: string): SkillPathsConfig;
|
|
217
|
-
/**
|
|
218
|
-
* All skill paths in priority order (highest to lowest)
|
|
219
|
-
*
|
|
220
|
-
* Priority: Project > User > Plugin > Builtin
|
|
221
|
-
* - Project: Project-specific skills override everything else
|
|
222
|
-
* - User: User preferences (~/.kodax/ and ~/.agents/)
|
|
223
|
-
* - Plugin: Third-party plugins
|
|
224
|
-
* - Builtin: Default skills shipped with KodaX
|
|
225
|
-
*/
|
|
226
|
-
declare function getSkillPathsFlat(config: SkillPathsConfig): Array<{
|
|
227
|
-
path: string;
|
|
228
|
-
source: SkillSource;
|
|
229
|
-
}>;
|
|
1
|
+
import { l as SkillSource, 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-vJExiRje.js';
|
|
2
|
+
export { b as SkillArtifact, d as SkillDynamicContextExecutor, g as SkillHook, h as SkillHooks, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-vJExiRje.js';
|
|
230
3
|
|
|
231
4
|
declare function registerPluginSkillPath(skillPath: string): () => void;
|
|
232
5
|
declare function unregisterPluginSkillPath(skillPath: string): boolean;
|
|
@@ -556,5 +329,5 @@ declare function expandSkillForLLM(skill: Skill, args: string, context: SkillCon
|
|
|
556
329
|
*/
|
|
557
330
|
declare function formatSkillActivationMessage(skillName: string, args: string): string;
|
|
558
331
|
|
|
559
|
-
export { SkillExecutor, SkillRegistry, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage,
|
|
560
|
-
export type { DiscoveryResult, ExecutionMode, ExecutionOptions,
|
|
332
|
+
export { ISkillRegistry, IVariableResolver, Skill, SkillContext, SkillExecutor, SkillFile, SkillFrontmatter, SkillMetadata, SkillPathsConfig, SkillRegistry, SkillResult, SkillSource, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath };
|
|
333
|
+
export type { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExpansionResult };
|
package/dist/sdk-skills.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ac as o,Ec as k,Fc as r,Gc as S,Hc as s,Ic as n,Jc as g,Kc as u,Lc as c,Mc as x,Nc as d,Oc as P,Pc as R,Qc as h,Rc as p,Sc as v,Tc as y,Uc as M,Vc as f,Wc as m,Xc as E,vc as l,wc as e,xc as i,yc as t,zc as a}from"./chunks/chunk-
|
|
2
|
+
import{Ac as o,Ec as k,Fc as r,Gc as S,Hc as s,Ic as n,Jc as g,Kc as u,Lc as c,Mc as x,Nc as d,Oc as P,Pc as R,Qc as h,Rc as p,Sc as v,Tc as y,Uc as M,Vc as f,Wc as m,Xc as E,vc as l,wc as e,xc as i,yc as t,zc as a}from"./chunks/chunk-PRIBJN5E.js";import"./chunks/chunk-BEXLPFFB.js";import"./chunks/chunk-V4WSBIXB.js";export{y as SkillExecutor,R as SkillRegistry,x as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,d as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,a as getDefaultSkillPaths,g as getNestedSkillPaths,o 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};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { W as KodaXGoalState, g as AgentMessage, b8 as StopHookFn, aa as KodaXSessionLineage, a0 as KodaXJsonValue, Q as KodaXExtensionSessionRecord,
|
|
2
|
-
import { Z as KodaXTokenUsage, j as KodaXMessage, a6 as KodaXWireReasoningEffort,
|
|
1
|
+
import { W as KodaXGoalState, g as AgentMessage, b8 as StopHookFn, aa as KodaXSessionLineage, a0 as KodaXJsonValue, Q as KodaXExtensionSessionRecord, bw as WorkflowIsolation, R as KodaXExtensionSessionState, a2 as KodaXSessionArtifactLedgerEntry, aV as SessionErrorMetadata, af as KodaXSessionScope, ag as KodaXSessionStorage, _ as KodaXInputArtifact, C as ChildTaskRegistry, bt as WorkflowEventCorrelation, t as CompactionUpdate, bF as WorkflowProcessEvent, bs as WorkflowEvent, n as AskUserQuestionOptions, l as AskUserMultiOptions, z as Guardrail, w as DiscoveredInstance, bc as TaskAbortRegistry } from './process.d-BOrAxjvM.js';
|
|
2
|
+
import { Z as KodaXTokenUsage, j as KodaXMessage, a6 as KodaXWireReasoningEffort, R as KodaXTaskRoutingDecision, S as KodaXTaskType, T as KodaXTaskWorkIntent, P as KodaXTaskComplexity, J as KodaXRiskLevel, g as KodaXHarnessProfile, e as KodaXExecutionMode, b as KodaXChildFanoutClass, E as KodaXReasoningMode, I as KodaXReviewScale } from './types.d-Ci5YPFEh.js';
|
|
3
|
+
import { d as SkillDynamicContextExecutor } from './types.d-vJExiRje.js';
|
|
3
4
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
4
5
|
import { K as KodaXLlmTimeoutConfig, a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
|
|
5
6
|
import { C as CapabilityKind, b as CapabilityResult } from './capability.d-3C62G8Eq.js';
|
|
@@ -2415,6 +2416,21 @@ interface KodaXCompactionOverride {
|
|
|
2415
2416
|
/** Set false to disable automatic compaction for this run. */
|
|
2416
2417
|
enabled?: boolean;
|
|
2417
2418
|
}
|
|
2419
|
+
/**
|
|
2420
|
+
* FEATURE_222 skill security — host policy for a skill's `!`cmd`` dynamic-context
|
|
2421
|
+
* tokens. By default (both fields unset) the LLM-triggered `skill` tool runs
|
|
2422
|
+
* those commands via the built-in allowlist + `execSync` — fine for the trusted
|
|
2423
|
+
* standalone CLI, but an embedder host (KodaX-Space) wants every shell touch to
|
|
2424
|
+
* go through its own permission broker. Set `execute` to route each `!`cmd``
|
|
2425
|
+
* through the host, or `disable: true` to refuse them outright.
|
|
2426
|
+
*/
|
|
2427
|
+
interface KodaXSkillDynamicContextPolicy {
|
|
2428
|
+
/** Host hook run for each `!`cmd`` token (command, cwd) → stdout. Mediate via
|
|
2429
|
+
* the host's permission broker; throw to refuse a command. */
|
|
2430
|
+
execute?: SkillDynamicContextExecutor;
|
|
2431
|
+
/** When true, every `!`cmd`` token is refused without executing anything. */
|
|
2432
|
+
disable?: boolean;
|
|
2433
|
+
}
|
|
2418
2434
|
interface KodaXOptions {
|
|
2419
2435
|
provider: string;
|
|
2420
2436
|
model?: string;
|
|
@@ -2480,6 +2496,12 @@ interface KodaXOptions {
|
|
|
2480
2496
|
};
|
|
2481
2497
|
/** FEATURE_221: SDK-consumer self-manual injection (product name + topics). */
|
|
2482
2498
|
selfManual?: KodaXSelfManualConfig;
|
|
2499
|
+
/**
|
|
2500
|
+
* FEATURE_222 skill security: host policy for skill `!`cmd`` dynamic-context.
|
|
2501
|
+
* Absent → built-in allowlist+execSync (trusted-CLI default). See
|
|
2502
|
+
* {@link KodaXSkillDynamicContextPolicy}.
|
|
2503
|
+
*/
|
|
2504
|
+
skillDynamicContext?: KodaXSkillDynamicContextPolicy;
|
|
2483
2505
|
/**
|
|
2484
2506
|
* FEATURE_092 (v0.7.33): caller-supplied run-scoped guardrails forwarded
|
|
2485
2507
|
* to `Runner.run` via `RunOptions.guardrails`. Merged with the START
|
|
@@ -2792,6 +2814,9 @@ interface KodaXToolExecutionContext {
|
|
|
2792
2814
|
agentProfile?: KodaXAgentProfile;
|
|
2793
2815
|
/** FEATURE_221: SDK-consumer self-manual injection, forwarded from KodaXOptions. */
|
|
2794
2816
|
selfManual?: KodaXSelfManualConfig;
|
|
2817
|
+
/** FEATURE_222 skill security — host policy for skill `!`cmd`` dynamic-context,
|
|
2818
|
+
* forwarded from `KodaXOptions.skillDynamicContext`. Consumed by the `skill` tool. */
|
|
2819
|
+
skillDynamicContext?: KodaXSkillDynamicContextPolicy;
|
|
2795
2820
|
/** Working directory used to resolve relative paths and execute shell commands. */
|
|
2796
2821
|
executionCwd?: string;
|
|
2797
2822
|
/** Session-scoped directory for helper scripts and scratch outputs. */
|
|
@@ -3345,5 +3370,5 @@ interface CreateBashPrefixExtractorOptions {
|
|
|
3345
3370
|
*/
|
|
3346
3371
|
declare function createBashPrefixExtractor(opts: CreateBashPrefixExtractorOptions): BashPrefixExtractor;
|
|
3347
3372
|
|
|
3348
|
-
export { BASH_POLICY_SPEC as B, LSP_SERVERS as
|
|
3349
|
-
export type { KodaXRuntimeVerificationContract as $, KodaXManagedTask as A, CapabilityRuntimeContract as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXManagedTaskRuntimeState as H, KodaXManagedTaskStatusEvent as I, KodaXManualSource as J, KodaXActivityEventMeta as K, KodaXManualTopic as L, KodaXManualTopicId as M, KodaXManualTopicInput as N, KodaXMemoryStrategy as O, KodaXOptions as P, KodaXOrchestrationVerdict as Q, KodaXParentReductionContract as R, KodaXProviderPolicyHints as S, KodaXRepoIntelligenceCapability as T, KodaXRepoIntelligenceMode as U, KodaXRepoIntelligenceResolvedMode as V, KodaXRepoIntelligenceTrace as W, KodaXRepoIntelligenceTraceEvent as X, KodaXRepoRoutingSignals as Y, KodaXResult as Z, KodaXRoleRoundSummary as _, BashPrefixExtractor as a,
|
|
3373
|
+
export { BASH_POLICY_SPEC as B, LSP_SERVERS as aw, LspService as ay, buildGoalRuntimeBinding as b1, createBashPrefixExtractor as b2, decideWorkflowInvocation as b3, extractCommandPrefix as b4, getDefaultLspService as b5, makeDisabledGoalToolsContext as b6, providerResilienceConfigFromTimeouts as b7, shutdownDefaultLspService as b8, withGoalBeforeNextTurn as b9, withGoalStopHook as ba, workflowStartOutcomeConsumesTurn as bb };
|
|
3374
|
+
export type { KodaXRuntimeVerificationContract as $, KodaXManagedTask as A, CapabilityRuntimeContract as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXManagedTaskRuntimeState as H, KodaXManagedTaskStatusEvent as I, KodaXManualSource as J, KodaXActivityEventMeta as K, KodaXManualTopic as L, KodaXManualTopicId as M, KodaXManualTopicInput as N, KodaXMemoryStrategy as O, KodaXOptions as P, KodaXOrchestrationVerdict as Q, KodaXParentReductionContract as R, KodaXProviderPolicyHints as S, KodaXRepoIntelligenceCapability as T, KodaXRepoIntelligenceMode as U, KodaXRepoIntelligenceResolvedMode as V, KodaXRepoIntelligenceTrace as W, KodaXRepoIntelligenceTraceEvent as X, KodaXRepoRoutingSignals as Y, KodaXResult as Z, KodaXRoleRoundSummary as _, BashPrefixExtractor as a, WorkflowToolHostResult as a$, KodaXSelfManualConfig as a0, KodaXSessionControl as a1, KodaXSessionMutators as a2, KodaXSessionOptions as a3, KodaXSidecarMessageEvent as a4, KodaXSkillDynamicContextPolicy as a5, KodaXSkillInvocationContext as a6, KodaXSkillMap as a7, KodaXSkillProjectionConfidence as a8, KodaXTaskCapabilityHint as a9, ProviderExecutionState as aA, ProviderRecoveryEvent as aB, ProviderResilienceConfig as aC, ProviderResiliencePolicy as aD, RecoveryAction as aE, RecoveryDecision as aF, RecoveryLadderStep as aG, RecoveryResult as aH, ResilienceClassification as aI, ResilienceErrorClass as aJ, ResolveKodaXManualInput as aK, ResolveKodaXManualOptions as aL, ResolveKodaXManualResult as aM, RuntimeDefaultsSnapshot as aN, TodoItem as aO, TodoList as aP, TodoStatus as aQ, ToolSideEffect as aR, WorkflowHostPolicy as aS, WorkflowInvocationAction as aT, WorkflowInvocationPolicyDecision as aU, WorkflowInvocationPolicyInput as aV, WorkflowInvocationSource as aW, WorkflowRunProgressView as aX, WorkflowStartOutcome as aY, WorkflowToolHost as aZ, WorkflowToolHostInlineInput as a_, KodaXTaskContract as aa, KodaXTaskEvidenceArtifact as ab, KodaXTaskEvidenceBundle as ac, KodaXTaskEvidenceEntry as ad, KodaXTaskRole as ae, KodaXTaskRoleAssignment as af, KodaXTaskStatus as ag, KodaXTaskSurface as ah, KodaXTaskToolPolicy as ai, KodaXTaskVerificationContract as aj, KodaXTaskVerificationCriterion as ak, KodaXTaskWorkItem as al, KodaXTimeoutConfig as am, KodaXToolEventMeta as an, KodaXToolExecutionContext as ao, KodaXToolVisibilityMeta as ap, KodaXToolVisibilityPolicy as aq, KodaXVerificationScorecard as ar, KodaXVerificationScorecardCriterion as as, KodaXWorkflowAgentDigestEvent as at, KodaXWorkflowEventMeta as au, KodaXWorkflowTimeoutConfig as av, LspServerInfo as ax, LspServiceConfig as az, BashPrefixResult as b, WorkflowToolHostStartResult as b0, BoundExtensionRuntimeController as c, ChildSnapshotEvent as d, CreateBashPrefixExtractorOptions as e, ExtractCommandPrefixOptions as f, GoalCompleteResult as g, GoalCreateInput as h, GoalLifecycleContext as i, GoalRuntimeBinding as j, GoalRuntimeBindingDeps as k, GoalToolsContext as l, KodaXAgentMode as m, KodaXAgentProfile as n, KodaXBudgetDisclosureZone as o, KodaXBudgetExtensionRequest as p, KodaXChildAgentResult as q, KodaXChildContextBundle as r, KodaXChildExecutionResult as s, KodaXCompactionOverride as t, KodaXContextOptions as u, KodaXContextTokenSnapshot as v, KodaXEffectiveTaskConfig as w, KodaXEvents as x, KodaXManagedBudgetSnapshot as y, KodaXManagedProtocolPayload as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './base.d-BA9Doaj_.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
|
|
4
|
-
import { aO as RunnerToolCall } from './process.d-
|
|
5
|
-
import { g as ToolGuardrail } from './types.d-
|
|
4
|
+
import { aO as RunnerToolCall } from './process.d-BOrAxjvM.js';
|
|
5
|
+
import { g as ToolGuardrail } from './types.d-CE_Ter29.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -2605,7 +2605,7 @@ interface FileOperations {
|
|
|
2605
2605
|
* injected clock). The run graph models agent relationships as a
|
|
2606
2606
|
* thread/edge/event stream, not just a final summary blob.
|
|
2607
2607
|
*/
|
|
2608
|
-
type WorkflowEventType = 'workflow_started' | 'phase_started' | 'phase_finished' | 'agent_spawned' | 'agent_message_sent' | 'agent_completed' | 'agent_unverified' | 'agent_failed' | 'agent_summary_updated' | 'agent_stopped' | 'workflow_log' | 'artifact_written' | 'synthesis_completed' | 'workflow_completed' | 'workflow_stopped' | 'workflow_failed';
|
|
2608
|
+
type WorkflowEventType = 'workflow_started' | 'phase_started' | 'phase_finished' | 'agent_spawned' | 'agent_message_sent' | 'agent_completed' | 'agent_unverified' | 'agent_failed' | 'agent_summary_updated' | 'agent_stopped' | 'agent_replayed' | 'workflow_log' | 'artifact_written' | 'synthesis_completed' | 'workflow_completed' | 'workflow_stopped' | 'workflow_failed';
|
|
2609
2609
|
interface WorkflowEvent {
|
|
2610
2610
|
/** Monotonic sequence number — stable append ordering. */
|
|
2611
2611
|
readonly seq: number;
|
|
@@ -2943,6 +2943,13 @@ interface WorkflowRunState {
|
|
|
2943
2943
|
type WorkflowProcessStatus = 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
2944
2944
|
type WorkflowProcessItemStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'skipped';
|
|
2945
2945
|
type WorkflowProcessItemKind = 'phase' | 'agent' | 'step' | 'artifact';
|
|
2946
|
+
/**
|
|
2947
|
+
* FEATURE_246 resume telemetry — how an agent item came to be in a resumed run.
|
|
2948
|
+
* `ran` = executed live this run; `replayed-from-cache` = returned instantly from
|
|
2949
|
+
* a prior run's content-addressed result cache (resumeFromRunId). Only populated
|
|
2950
|
+
* on resumed runs; absent on a fresh run (treat absent as `ran`).
|
|
2951
|
+
*/
|
|
2952
|
+
type WorkflowProcessItemOrigin = 'ran' | 'replayed-from-cache';
|
|
2946
2953
|
type WorkflowProcessSummaryStatus = 'pending' | 'result' | 'notice' | 'unavailable';
|
|
2947
2954
|
type WorkflowProcessSource = 'command' | 'amaw' | 'review' | 'sdk' | 'capsule' | 'extension' | 'automation';
|
|
2948
2955
|
interface WorkflowProcessItem {
|
|
@@ -2961,6 +2968,8 @@ interface WorkflowProcessItem {
|
|
|
2961
2968
|
readonly summary?: string;
|
|
2962
2969
|
readonly summaryStatus?: WorkflowProcessSummaryStatus;
|
|
2963
2970
|
readonly error?: string;
|
|
2971
|
+
/** FEATURE_246 resume telemetry — see {@link WorkflowProcessItemOrigin}. */
|
|
2972
|
+
readonly origin?: WorkflowProcessItemOrigin;
|
|
2964
2973
|
}
|
|
2965
2974
|
interface WorkflowEventCorrelation {
|
|
2966
2975
|
readonly workflowRunId: string;
|
|
@@ -2984,6 +2993,10 @@ interface WorkflowProcessProgress {
|
|
|
2984
2993
|
readonly stoppedAgents: number;
|
|
2985
2994
|
readonly agentCap?: number;
|
|
2986
2995
|
readonly plannedItems?: number;
|
|
2996
|
+
/** FEATURE_246 resume telemetry — count of agents that replayed from a prior
|
|
2997
|
+
* run's cache (origin `replayed-from-cache`). Present only when > 0, so a
|
|
2998
|
+
* fresh run's progress is unchanged. */
|
|
2999
|
+
readonly replayedAgents?: number;
|
|
2987
3000
|
}
|
|
2988
3001
|
interface WorkflowProcessTokenUsage {
|
|
2989
3002
|
readonly spent: number;
|
|
@@ -3008,6 +3021,9 @@ interface WorkflowProcessSnapshot {
|
|
|
3008
3021
|
readonly sourceRunId?: string;
|
|
3009
3022
|
readonly sourceWorkflowName?: string;
|
|
3010
3023
|
readonly revisionOf?: string;
|
|
3024
|
+
/** FEATURE_246 resume telemetry — the prior run this run resumed from
|
|
3025
|
+
* (content-addressed replay). Absent on a fresh (non-resumed) run. */
|
|
3026
|
+
readonly resumedFromRunId?: string;
|
|
3011
3027
|
readonly hostMetadata?: Record<string, string>;
|
|
3012
3028
|
readonly activePhaseId?: string;
|
|
3013
3029
|
readonly activePhaseIndex?: number;
|
|
@@ -3042,6 +3058,8 @@ interface WorkflowProcessTrackerOptions {
|
|
|
3042
3058
|
readonly sourceRunId?: string;
|
|
3043
3059
|
readonly sourceWorkflowName?: string;
|
|
3044
3060
|
readonly revisionOf?: string;
|
|
3061
|
+
/** FEATURE_246 resume telemetry — the prior run this run resumed from. */
|
|
3062
|
+
readonly resumedFromRunId?: string;
|
|
3045
3063
|
readonly hostMetadata?: Record<string, string>;
|
|
3046
3064
|
readonly phases?: readonly string[];
|
|
3047
3065
|
readonly maxAgents?: number;
|
|
@@ -3066,5 +3084,5 @@ declare function isFinalWorkflowProcessStatus(status: WorkflowProcessStatus): bo
|
|
|
3066
3084
|
declare function normalizeHostMetadata(value: unknown): Record<string, string> | undefined;
|
|
3067
3085
|
declare function createWorkflowProcessTracker(options: WorkflowProcessTrackerOptions): WorkflowProcessTracker;
|
|
3068
3086
|
|
|
3069
|
-
export { ASK_USER_BACK_SIGNAL as A, DEFAULT_SYSTEM_CAP as D, InvariantSession as N, Runner as aK, MAX_TOOL_LOOP_ITERATIONS as as, SpanImpl as b1, Tracer as bj, WorkflowEventRecorder as bu, _resetAdmittedAgentBindings as
|
|
3070
|
-
export type { KodaXInputArtifactSource as $, GuardrailSpanData as B, ChildTaskRegistry as C, EvidenceSpanData as E, FanoutSpanData as F, GenerationSpanData as G, Handoff as H, HandoffSpanData as I, InMemorySessionOptions as J, InstanceDiscoveryFs as K, InvariantId as L, InvariantResult as M, KodaXCompactMemoryProgress as O, KodaXCompactMemorySeed as P, KodaXExtensionSessionRecord as Q, KodaXExtensionSessionState as R, KodaXExtensionStore as S, KodaXExtensionStoreEntry as T, KodaXFileInputArtifact as U, KodaXGoalEventType as V, KodaXGoalState as W, KodaXGoalStatus as X, KodaXImageInputArtifact as Y, KodaXImageMediaType as Z, KodaXInputArtifact as _, AdmissionAuditOptions as a, SpanData as a$, KodaXJsonValue as a0, KodaXSessionArchiveMarkerEntry as a1, KodaXSessionArtifactLedgerEntry as a2, KodaXSessionBranchSummaryEntry as a3, KodaXSessionCompactionEntry as a4, KodaXSessionData as a5, KodaXSessionEntry as a6, KodaXSessionEntryBase as a7, KodaXSessionGoalEntry as a8, KodaXSessionLabelEntry as a9, ReadonlyMutationTracker as aA, ReadonlyRecorder as aB, ReasoningDepth as aC, RecentlyModifiedFile as aD, RequestTaskStopOptions as aE, RequestTaskStopResult as aF, RunEvent as aG, RunOptions as aH, RunResult as aI, RunnableTool as aJ, RunnerEvent as aL, RunnerLlmResult as aM, RunnerLlmReturn as aN, RunnerToolCall as aO, RunnerToolContext as aP, RunnerToolObserver as aQ, RunnerToolResult as aR, Session as aS, SessionDispatchResult as aT, SessionEntry as aU, SessionErrorMetadata as aV, SessionExtension as aW, SessionForkOptions as aX, SessionMeta as aY, SessionStateSnapshot as aZ, Span as a_, KodaXSessionLineage as aa, KodaXSessionMessageEntry as ab, KodaXSessionMeta as ac, KodaXSessionNavigationOptions as ad, KodaXSessionRuntimeInfo as ae, KodaXSessionScope as af, KodaXSessionStorage as ag, KodaXSessionTreeNode as ah, KodaXSessionUiHistoryItem as ai, KodaXSessionUiHistoryItemType as aj, KodaXSessionUiTextHistoryItem as ak, KodaXSessionUiTextHistoryItemType as al, KodaXSessionUiToolCall as am, KodaXSessionUiToolCallStatus as an, KodaXSessionUiToolGroupHistoryItem as ao, KodaXSessionWorkspaceKind as ap, KodaXVideoInputArtifact as aq, KodaXVideoMediaType as ar, ManifestPatch as at, MessageEntry as au, ObserveCtx as av, PersistedSessionState as aw, PresetDispatcher as ax, PresetTracingContext as ay, QualityInvariant as az, AdmissionCtx as b,
|
|
3087
|
+
export { ASK_USER_BACK_SIGNAL as A, DEFAULT_SYSTEM_CAP as D, InvariantSession as N, Runner as aK, MAX_TOOL_LOOP_ITERATIONS as as, SpanImpl as b1, Tracer as bj, WorkflowEventRecorder as bu, _resetAdmittedAgentBindings as c7, _resetPresetDispatchers as c8, asSingleSelection as c9, setAdmittedAgentBindings as cA, buildAssistantMessageFromLlmResult as ca, buildSystemPrompt as cb, buildToolResultMessage as cc, createAgent as cd, createHandoff as ce, createInMemorySession as cf, createInvariantSessionForAgent as cg, createStateWriter as ch, createTrace as ci, createWorkflowProcessTracker as cj, defaultTracer as ck, detectInstructionsInjection as cl, discoverInstances as cm, executeRunnerToolCall as cn, extractAssistantTextFromMessage as co, getActiveUserInteraction as cp, getAdmittedAgentBindings as cq, isFinalWorkflowProcessStatus as cr, isRunnableTool as cs, isRunnerLlmResult as ct, normalizeHostMetadata as cu, registerChildTask as cv, registerPresetDispatcher as cw, requestTaskStop as cx, runAdmissionAudit as cy, setActiveUserInteraction as cz };
|
|
3088
|
+
export type { KodaXInputArtifactSource as $, GuardrailSpanData as B, ChildTaskRegistry as C, EvidenceSpanData as E, FanoutSpanData as F, GenerationSpanData as G, Handoff as H, HandoffSpanData as I, InMemorySessionOptions as J, InstanceDiscoveryFs as K, InvariantId as L, InvariantResult as M, KodaXCompactMemoryProgress as O, KodaXCompactMemorySeed as P, KodaXExtensionSessionRecord as Q, KodaXExtensionSessionState as R, KodaXExtensionStore as S, KodaXExtensionStoreEntry as T, KodaXFileInputArtifact as U, KodaXGoalEventType as V, KodaXGoalState as W, KodaXGoalStatus as X, KodaXImageInputArtifact as Y, KodaXImageMediaType as Z, KodaXInputArtifact as _, AdmissionAuditOptions as a, SpanData as a$, KodaXJsonValue as a0, KodaXSessionArchiveMarkerEntry as a1, KodaXSessionArtifactLedgerEntry as a2, KodaXSessionBranchSummaryEntry as a3, KodaXSessionCompactionEntry as a4, KodaXSessionData as a5, KodaXSessionEntry as a6, KodaXSessionEntryBase as a7, KodaXSessionGoalEntry as a8, KodaXSessionLabelEntry as a9, ReadonlyMutationTracker as aA, ReadonlyRecorder as aB, ReasoningDepth as aC, RecentlyModifiedFile as aD, RequestTaskStopOptions as aE, RequestTaskStopResult as aF, RunEvent as aG, RunOptions as aH, RunResult as aI, RunnableTool as aJ, RunnerEvent as aL, RunnerLlmResult as aM, RunnerLlmReturn as aN, RunnerToolCall as aO, RunnerToolContext as aP, RunnerToolObserver as aQ, RunnerToolResult as aR, Session as aS, SessionDispatchResult as aT, SessionEntry as aU, SessionErrorMetadata as aV, SessionExtension as aW, SessionForkOptions as aX, SessionMeta as aY, SessionStateSnapshot as aZ, Span as a_, KodaXSessionLineage as aa, KodaXSessionMessageEntry as ab, KodaXSessionMeta as ac, KodaXSessionNavigationOptions as ad, KodaXSessionRuntimeInfo as ae, KodaXSessionScope as af, KodaXSessionStorage as ag, KodaXSessionTreeNode as ah, KodaXSessionUiHistoryItem as ai, KodaXSessionUiHistoryItemType as aj, KodaXSessionUiTextHistoryItem as ak, KodaXSessionUiTextHistoryItemType as al, KodaXSessionUiToolCall as am, KodaXSessionUiToolCallStatus as an, KodaXSessionUiToolGroupHistoryItem as ao, KodaXSessionWorkspaceKind as ap, KodaXVideoInputArtifact as aq, KodaXVideoMediaType as ar, ManifestPatch as at, MessageEntry as au, ObserveCtx as av, PersistedSessionState as aw, PresetDispatcher as ax, PresetTracingContext as ay, QualityInvariant as az, AdmissionCtx as b, WorkflowTaskStatus as b$, SpanError as b0, SpanImplOptions as b2, StartTraceOptions as b3, StateWriter as b4, StateWriterFs as b5, StateWriterOptions as b6, StopHookContext as b7, StopHookFn as b8, StopHookResult as b9, WorkflowModelHint as bA, WorkflowModule as bB, WorkflowParallelOptions as bC, WorkflowProcessArtifact as bD, WorkflowProcessCounts as bE, WorkflowProcessEvent as bF, WorkflowProcessItem as bG, WorkflowProcessItemKind as bH, WorkflowProcessItemOrigin as bI, WorkflowProcessItemStatus as bJ, WorkflowProcessProgress as bK, WorkflowProcessSnapshot as bL, WorkflowProcessSource as bM, WorkflowProcessStatus as bN, WorkflowProcessSummaryStatus as bO, WorkflowProcessTokenUsage as bP, WorkflowProcessTracker as bQ, WorkflowProcessTrackerOptions as bR, WorkflowRun as bS, WorkflowRunState as bT, WorkflowRunStatus as bU, WorkflowSpawnAgentInput as bV, WorkflowSynthesis as bW, WorkflowSynthesizeInput as bX, WorkflowTaskHandle as bY, WorkflowTaskResult as bZ, WorkflowTaskSnapshot as b_, StopHookSpanData as ba, SystemCap as bb, TaskAbortRegistry as bc, TerminalCtx as bd, ToolCallSpanData as be, ToolCapability as bf, ToolPermission as bg, Trace as bh, TraceOptions as bi, TracerOptions as bk, UserInteraction as bl, WorkflowAgentBackend as bm, WorkflowApi as bn, WorkflowApproval as bo, WorkflowApprovalSummary as bp, WorkflowArtifactRef as bq, WorkflowBudget as br, WorkflowEvent as bs, WorkflowEventCorrelation as bt, WorkflowEventType as bv, WorkflowIsolation as bw, WorkflowLimits as bx, WorkflowLogEvent as by, WorkflowMeta as bz, AdmissionVerdict as c, WorkflowTaskSummaryEventUpdate as c0, WorkflowTaskSummaryKind as c1, WorkflowTaskSummaryUpdate as c2, WorkflowTaskUsage as c3, WorkflowTaskVerification as c4, WorkflowTaskVerificationResult as c5, WorkflowWaitOptions as c6, AdmittedHandle as d, Agent as e, AgentManifest as f, AgentMessage as g, AgentMiddlewareDeclaration as h, AgentReasoningProfile as i, AgentSpanData as j, AgentTool as k, AskUserMultiOptions as l, AskUserQuestionItem as m, AskUserQuestionOptions as n, CompactionAnchor as o, CompactionConfig as p, CompactionDetails as q, CompactionResult as r, CompactionSpanData as s, CompactionUpdate as t, CurrentTodoSummary as u, Deliverable as v, DiscoveredInstance as w, DiscoveryOptions as x, FileOperations as y, Guardrail as z };
|
|
@@ -86,6 +86,60 @@ declare function resolveThinkingBudget(config: KodaXProviderConfig, depth: KodaX
|
|
|
86
86
|
declare function clampThinkingBudget(requestedBudget: number, maxOutputTokens: number, safetyReserve?: number): number;
|
|
87
87
|
declare function mapDepthToOpenAIReasoningEffort(depth: KodaXThinkingDepth): 'low' | 'medium' | 'high' | undefined;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* FEATURE_222 (R6) — canonical host-facing reasoning-effort resolver.
|
|
91
|
+
*
|
|
92
|
+
* Mapping a user's desired reasoning strength to the actual wire `effort` value
|
|
93
|
+
* for a provider/model means composing several pieces that already exist but
|
|
94
|
+
* were only wired together privately inside the REPL: the model's reasoning
|
|
95
|
+
* profile (`resolveModelCapabilities`), the learned hard-rejection cache
|
|
96
|
+
* (`narrowReasoningProfile`), and the alias/disabled/ceiling/default resolution
|
|
97
|
+
* (`resolveReasoningEffort`). A host that re-assembles these by hand drifts.
|
|
98
|
+
*
|
|
99
|
+
* `resolveWireEffort` is the single entry point: give it a provider/model + the
|
|
100
|
+
* desired effort (+ any learned rejected efforts) and it returns the legal wire
|
|
101
|
+
* effort — or `undefined`, which is a deliberate "omit reasoning_effort" signal
|
|
102
|
+
* (e.g. anthropic-adaptive, or a provider with no reasoning). It reuses the
|
|
103
|
+
* existing pure functions verbatim; no new resolution logic.
|
|
104
|
+
*/
|
|
105
|
+
interface ResolveWireEffortInput {
|
|
106
|
+
/** Provider id (built-in alias or registered custom provider name). */
|
|
107
|
+
readonly provider: string;
|
|
108
|
+
/** Model id. Omit to use the provider's default model. */
|
|
109
|
+
readonly model?: string;
|
|
110
|
+
/** The desired reasoning strength (a wire effort or tier the user requested).
|
|
111
|
+
* Treated as a non-explicit session preference: an unsupported value falls
|
|
112
|
+
* back to a legal one rather than throwing. */
|
|
113
|
+
readonly desiredEffort?: string;
|
|
114
|
+
/** Learned hard-rejected efforts for this provider/model (e.g. from the agent
|
|
115
|
+
* layer's `getCachedRejectedEfforts`). Removed from the ladder before
|
|
116
|
+
* resolving, so a rejected rung is never re-selected. */
|
|
117
|
+
readonly rejectedEfforts?: readonly string[];
|
|
118
|
+
}
|
|
119
|
+
interface ResolvedWireEffort {
|
|
120
|
+
/** The legal wire effort to send, or `undefined` to omit reasoning_effort
|
|
121
|
+
* entirely (adaptive/none — NOT a fallback to `configuredEffort`). */
|
|
122
|
+
readonly effort: string | undefined;
|
|
123
|
+
/** What the input resolved to before profile-driven adjustment (alias/
|
|
124
|
+
* ceiling/disable). Useful for a "requested X → sending Y" status label. */
|
|
125
|
+
readonly configuredEffort: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* True when the wire effort differs from the configured one — aliased, ceiled,
|
|
128
|
+
* disabled-folded, or narrowed by a rejection. NOTE: this is also true for a
|
|
129
|
+
* plain `desiredEffort: 'auto'` (configuredEffort `'auto'` resolves to a
|
|
130
|
+
* concrete rung), so do NOT read `adjusted` as "the user's explicit choice was
|
|
131
|
+
* overridden"; compare `configuredEffort` vs `effort` yourself if you need to
|
|
132
|
+
* exclude the auto→concrete case in a status label.
|
|
133
|
+
*/
|
|
134
|
+
readonly adjusted: boolean;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Resolve the wire-level reasoning effort for a provider/model + desired
|
|
138
|
+
* strength, honoring alias/disabled/ceiling/default rules and learned
|
|
139
|
+
* rejections. Pure — no I/O, no throw.
|
|
140
|
+
*/
|
|
141
|
+
declare function resolveWireEffort(input: ResolveWireEffortInput): ResolvedWireEffort;
|
|
142
|
+
|
|
89
143
|
/**
|
|
90
144
|
* KodaX Anthropic Compatible Provider
|
|
91
145
|
*
|
|
@@ -594,5 +648,5 @@ declare function listProviderModels(name: string, _opts?: {
|
|
|
594
648
|
signal?: AbortSignal;
|
|
595
649
|
}): Promise<KodaXListModelsResult>;
|
|
596
650
|
|
|
597
|
-
export {
|
|
598
|
-
export type { ProviderName as P, KodaXModelCapabilities as i };
|
|
651
|
+
export { normalizeReasoningEffortValue as $, getDefaultThinkingDepthForMode as A, getModelCapabilities as B, getProvider as C, getProviderConfiguredCapabilityProfile as D, getProviderConfiguredReasoningCapability as E, getProviderList as F, getProviderModel as G, getProviderModelDescriptors as H, getProviderModels as I, getReasoningCapability as J, KODAX_DEFAULT_PROVIDER as K, getRuntimeModelProvider as L, getRuntimeModelProviderNames as M, isCustomProviderName as N, isKnownProvider as O, isProviderConfigured as Q, isProviderName as S, isReasoningEnabled as T, isRuntimeModelProviderName as U, listAllModelCapabilities as V, listBuiltinModelCapabilities as W, listCustomProviderModelCapabilities as X, listProviderModels as Y, mapDepthToOpenAIReasoningEffort as Z, mapLegacyReasoningModeToEffortIntent as _, KODAX_DEFAULT_THINKING_BUDGETS as a, normalizeReasoningRequest as a0, parseReasoningEffortEnv as a1, registerCustomProviders as a2, registerModelProvider as a3, resolveModelCapabilities as a4, resolveProvider as a5, resolveProviderModelDescriptors as a6, resolveReasoningEffort as a7, resolveReasoningEffortForModelSwitch as a8, resolveThinkingBudget as a9, resolveWireEffort as aa, validateCustomProviderConfig as ab, verifyProviderCredential as ac, KODAX_PROVIDERS as b, KODAX_PROVIDER_SNAPSHOTS as c, KODAX_REASONING_MODE_SEQUENCE as d, KODAX_REASONING_SAFETY_RESERVE as e, KODAX_STABLE_EFFORT_INTENTS as f, KodaXAnthropicCompatProvider as g, KodaXError as h, KodaXNetworkError as j, KodaXOpenAICompatProvider as k, KodaXProviderError as l, KodaXRateLimitError as m, KodaXToolCallIdError as n, clampThinkingBudget as p, clearRuntimeModelProviders as q, createCustomProvider as r, effortToLegacyReasoningMode as s, getAvailableProviderNames as t, getCustomModelCapabilities as u, getCustomProvider as v, getCustomProviderList as w, getCustomProviderModelDescriptors as x, getCustomProviderModels as y, getCustomProviderNames as z };
|
|
652
|
+
export type { ProviderName as P, ResolveWireEffortInput as R, KodaXModelCapabilities as i, ResolvedWireEffort as o };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as KodaXMessage } from './types.d-Ci5YPFEh.js';
|
|
2
|
-
import { Q as QueueEventListener, f as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-
|
|
3
|
-
import { g as AgentMessage, aU as SessionEntry, aS as Session, aW as SessionExtension, aa as KodaXSessionLineage, a0 as KodaXJsonValue, q as CompactionDetails, P as KodaXCompactMemorySeed, a6 as KodaXSessionEntry, ah as KodaXSessionTreeNode, a9 as KodaXSessionLabelEntry, a8 as KodaXSessionGoalEntry, ad as KodaXSessionNavigationOptions, a2 as KodaXSessionArtifactLedgerEntry, y as FileOperations, bz as WorkflowMeta, bA as WorkflowModelHint, bB as WorkflowModule,
|
|
2
|
+
import { Q as QueueEventListener, f as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-CE_Ter29.js';
|
|
3
|
+
import { g as AgentMessage, aU as SessionEntry, aS as Session, aW as SessionExtension, aa as KodaXSessionLineage, a0 as KodaXJsonValue, q as CompactionDetails, P as KodaXCompactMemorySeed, a6 as KodaXSessionEntry, ah as KodaXSessionTreeNode, a9 as KodaXSessionLabelEntry, a8 as KodaXSessionGoalEntry, ad as KodaXSessionNavigationOptions, a2 as KodaXSessionArtifactLedgerEntry, y as FileOperations, bz as WorkflowMeta, bA as WorkflowModelHint, bB as WorkflowModule, bR as WorkflowProcessTrackerOptions, bs as WorkflowEvent, bL as WorkflowProcessSnapshot, bF as WorkflowProcessEvent } from './process.d-BOrAxjvM.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @kodax-ai/agent Constants
|
|
@@ -846,7 +846,7 @@ declare function buildWorkflowCapsuleIntent(manifest: {
|
|
|
846
846
|
|
|
847
847
|
type ManagedWorkflowStatus = 'running' | 'paused' | 'completed' | 'failed' | 'denied' | 'stopped';
|
|
848
848
|
/** Provenance/display metadata for a run's process tracker. */
|
|
849
|
-
type WorkflowProcessMetadata = Pick<WorkflowProcessTrackerOptions, 'displayName' | 'goal' | 'source' | 'savedWorkflowName' | 'sourceRunId' | 'sourceWorkflowName' | 'revisionOf' | 'hostMetadata'>;
|
|
849
|
+
type WorkflowProcessMetadata = Pick<WorkflowProcessTrackerOptions, 'displayName' | 'goal' | 'source' | 'savedWorkflowName' | 'sourceRunId' | 'sourceWorkflowName' | 'revisionOf' | 'resumedFromRunId' | 'hostMetadata'>;
|
|
850
850
|
interface ManagedWorkflowSnapshot {
|
|
851
851
|
readonly runId: string;
|
|
852
852
|
readonly workflow: string;
|