@kodax-ai/kodax 0.7.61 → 0.7.63
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 +115 -1
- package/README.md +2 -2
- package/README_CN.md +2 -2
- package/dist/chunks/{agent-E74WVAFR.js → agent-SL444XLN.js} +1 -1
- package/dist/chunks/argument-completer-EN63ZVJK.js +2 -0
- package/dist/chunks/{chunk-XHOPSZVL.js → chunk-4MIHVNB7.js} +96 -96
- package/dist/chunks/chunk-7MPU7TP6.js +624 -0
- package/dist/chunks/{chunk-QCBKLNN5.js → chunk-HP4FXMEM.js} +2 -2
- package/dist/chunks/{chunk-CGGX3FXE.js → chunk-KCFVGXVK.js} +1 -1
- package/dist/chunks/chunk-KHICMJIR.js +310 -0
- package/dist/chunks/{chunk-KIVYMSRH.js → chunk-L3MF5V64.js} +1 -1
- package/dist/chunks/chunk-LGR7ACBQ.js +326 -0
- package/dist/chunks/{chunk-7COB3EKF.js → chunk-RR7W7UF6.js} +152 -152
- package/dist/chunks/chunk-UGTK2JIJ.js +731 -0
- package/dist/chunks/{chunk-2OEKUAV4.js → chunk-VSWROENP.js} +1 -1
- package/dist/chunks/{compaction-config-GESEZQVA.js → compaction-config-4VIONMFB.js} +1 -1
- package/dist/chunks/{construction-bootstrap-OSXHEIBB.js → construction-bootstrap-EFZBONTK.js} +3 -3
- package/dist/chunks/dist-EDF2YUF6.js +2 -0
- package/dist/chunks/host-J4HPDLFC.js +2 -0
- package/dist/chunks/{run-manager-FGCG7DFF.js → run-manager-ZVSW2OWM.js} +1 -1
- package/dist/chunks/{utils-47QI5MSP.js → utils-5HDLYTZJ.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/kodax_cli.js +970 -937
- package/dist/sdk-agent.d.ts +67 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +425 -464
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +9 -9
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-e1LD2IRl.d.ts → bash-prefix-extractor.d-CZW9fRoa.d.ts} +137 -11
- package/dist/types-chunks/{guardrail.d-CdqJwwN7.d.ts → guardrail.d-MR6LwMB2.d.ts} +2 -2
- package/dist/types-chunks/{process.d-C93UMgPK.d.ts → process.d-CY2g03Mb.d.ts} +274 -15
- package/dist/types-chunks/{run-manager.d-DHPlNYkK.d.ts → run-manager.d-CYTnWhZY.d.ts} +6 -17
- package/dist/types-chunks/{sdk-session-DINrM1pF.d.ts → sdk-session-RBSBBKol.d.ts} +8 -6
- package/dist/types-chunks/{storage.d-xiw7Vgx0.d.ts → storage.d-C6kkAEch.d.ts} +2 -2
- package/dist/types-chunks/{types.d-CSZAMmU-.d.ts → types.d-1CnTg7Sd.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-Dy19-1XR.d.ts → utils.d-C14jZ9ZM.d.ts} +4 -4
- package/package.json +1 -1
- package/dist/chunks/argument-completer-BBFYCVTM.js +0 -2
- package/dist/chunks/chunk-4NSOBQCU.js +0 -322
- package/dist/chunks/chunk-D7CC6YZC.js +0 -600
- package/dist/chunks/chunk-NJW2LQOP.js +0 -722
- package/dist/chunks/chunk-PJXKBM3Y.js +0 -310
- package/dist/chunks/dist-W3OOJP66.js +0 -2
- package/dist/chunks/host-FRQXOEHH.js +0 -2
package/dist/sdk-coding.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as bx,A as Kt,Aa as Kx,B as Lt,Ba as Lx,C as Mt,Ca as Mx,D as Nt,Da as Nx,E as Ot,Ea as Ox,F as Pt,Fa as Px,G as Qt,Ga as Qx,H as Rt,Ha as Rx,I as St,Ia as Sx,J as Tt,K as Ut,L as Vt,M as Wt,N as Xt,O as Yt,P as Zt,Q as _t,R as $t,S as ox,T as rx,U as ex,V as fx,W as mx,X as px,Y as tx,Z as xx,_ as ax,a as $,aa as cx,b as oo,ba as dx,c as ro,ca as gx,d as ht,da as hx,e as it,ea as ix,f as jt,fa as jx,g as kt,ga as kx,h as lt,ha as lx,i as nt,ia as nx,j as qt,ja as qx,k as st,ka as sx,l as ut,la as ux,m as vt,ma as vx,n as wt,na as wx,o as yt,oa as yx,p as zt,pa as zx,q as At,qa as Ax,r as Bt,ra as Bx,s as Ct,sa as Cx,t as Dt,ta as Dx,u as Et,ua as Ex,v as Ft,va as Fx,w as Gt,wa as Gx,x as Ht,xa as Hx,y as It,ya as Ix,z as Jt,za as Jx}from"./chunks/chunk-XHOPSZVL.js";import{a as Of,b as Pf,c as Qf,d as Rf,e as Sf,f as Tf,g as Uf,h as Vf,i as Wf,j as um}from"./chunks/chunk-CGGX3FXE.js";import{a as Xf,b as Yf,c as Zf,d as _f,e as $f,f as om,g as rm,h as em,i as fm,j as mm,k as pm,l as tm,m as xm,n as am,o as bm,p as cm,q as dm,r as gm,s as hm,t as im,u as jm,v as km,w as lm,x as nm,y as qm,z as sm}from"./chunks/chunk-QCBKLNN5.js";import{A as Bf,E as Cf,F as Df,G as Ef,H as Ff,K as Gf,M as vm,N as wm,O as ym,P as zm,Q as Am,R as Bm,S as Cm,T as Dm,V as Em,W as Fm,X as Gm,a as zo,b as Ao,e as df,ea as Gp,f as gf,fa as Hp,g as hf,h as jf,i as kf,j as lf,k as nf,la as Ip,ma as Jp,oa as Kp,p as qf,q as sf,t as uf,u as vf,w as wf,x as yf,y as zf,z as Af}from"./chunks/chunk-4NSOBQCU.js";import"./chunks/chunk-D6QVXQNI.js";import{a as Nf}from"./chunks/chunk-UA744TZM.js";import{$b as ep,A as fe,Aa as $e,Ac as Dp,B as me,Ba as of,Bc as Ep,C as pe,Ca as rf,Cc as Fp,D as te,E as xe,Eb as Hm,F as ae,Fb as Im,G as be,Ga as ef,Gb as Jm,H as ce,Ha as ff,Hb as Km,I as de,Ia as mf,Ib as Lm,J as ge,Ja as pf,Jb as Mm,Ka as tf,Kb as Nm,L as he,La as xf,Lb as Om,M as ie,Ma as af,Mb as Pm,N as je,Nb as Qm,Nc as Lp,O as ke,Oa as bf,Ob as Rm,Oc as Mp,P as le,Pa as cf,Pb as Sm,Pc as Np,Q as ne,Qb as Tm,Qc as Op,R as qe,Rb as Um,Rc as Pp,S as se,Sb as Vm,Sc as Qp,T as ue,Tb as Wm,Tc as Rp,U as ve,Ub as Xm,Uc as Sp,V as we,Vb as Ym,Vc as Tp,W as ye,Wb as Zm,Wc as Up,X as ze,Xb as _m,Xc as Vp,Y as Ae,Yb as $m,Z as Be,Zb as op,_ as Ce,_b as rp,ac as fp,ba as De,bc as mp,bd as Wp,ca as Ee,cc as pp,cd as Xp,d as Mr,da as Fe,dc as tp,dd as Yp,e as Nr,ea as Ge,ec as xp,ed as Zp,fa as He,fc as ap,fd as _p,ga as Ie,gc as bp,gd as $p,ha as Je,hc as cp,hd as ot,i as Or,ic as dp,id as rt,j as Pr,ja as Ke,jc as gp,jd as et,k as Qr,ka as Le,kc as hp,kd as ft,l as Rr,la as Me,lc as ip,ld as mt,m as Sr,ma as Ne,mc as jp,md as pt,n as Tr,na as Oe,nc as kp,nd as tt,o as Ur,oa as Pe,oc as lp,od as xt,p as Vr,pa as Qe,pc as np,pd as at,q as Wr,qa as Re,qc as qp,qd as bt,r as Xr,ra as Se,rc as sp,rd as ct,s as Yr,sa as Te,sc as up,sd as dt,t as Zr,ta as Ue,tc as vp,u as _r,ua as Ve,ub as Hf,uc as wp,v as $r,va as We,vb as If,vc as yp,w as oe,wa as Xe,wb as Jf,wc as zp,wd as gt,x as re,xa as Ye,xb as Kf,xc as Ap,y as ee,ya as Ze,yb as Lf,yc as Bp,za as _e,zb as Mf,zc as Cp}from"./chunks/chunk-7COB3EKF.js";import{$ as i,A as a,Aa as L,B as b,Ba as M,C as c,Ca as N,D as d,Da as O,E as g,Ea as P,Fa as Q,Ga as R,Ha as S,Ia as T,Ja as U,Ka as V,La as W,Ma as X,Na as Y,Oa as Z,R as h,Ra as _,a as o,aa as j,b as r,c as e,fa as k,ga as l,ha as n,ia as q,j as f,ja as s,k as m,ka as u,la as v,ma as w,na as y,oa as z,pa as A,qa as B,ra as C,s as p,sa as D,t,ta as E,ua as F,va as G,wa as H,xa as I,ya as J,z as x,za as K}from"./chunks/chunk-S4GVQO3W.js";import{$b as Zo,$c as ur,Bd as Kr,Cd as Lr,Yc as nr,Zc as qr,_b as Yo,_c as sr,a as Bo,ac as _o,ad as vr,b as Co,bc as $o,c as Do,cc as or,d as Eo,dc as rr,e as Fo,ec as er,f as Go,fc as fr,gc as mr,h as Ho,hc as pr,hd as wr,i as Io,ic as tr,id as yr,j as Jo,jc as xr,jd as zr,k as Ko,ka as Qo,kc as ar,kd as Ar,l as Lo,lc as br,ld as Br,m as Mo,mb as Wo,mc as cr,md as Cr,n as No,na as Ro,nb as Xo,nc as dr,nd as Dr,o as Oo,oc as gr,p as Po,pc as hr,pd as Er,qc as ir,qd as Fr,rc as jr,rd as Gr,sc as kr,sd as Hr,tc as lr,td as Ir,ua as So,ud as Jr,va as To,wa as Uo,xa as Vo}from"./chunks/chunk-NJW2LQOP.js";import{H as yo,a as eo,b as fo,c as mo,d as po,e as to,f as xo,g as ao,h as bo,i as co,j as go,k as ho,l as io,m as jo,n as ko,o as lo,p as no,v as qo,w as so,x as uo,y as vo,z as wo}from"./chunks/chunk-ZL5CEANW.js";import"./chunks/chunk-V4WSBIXB.js";export{bx as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,cx as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Ex as BASH_POLICY_SPEC,At as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,jx as BREAKER_ERROR_THRESHOLD,kx as BREAKER_WINDOW_MS,Zf as BUILTIN_WORKFLOWS,Nr as CANCELLED_TOOL_RESULT_MESSAGE,Mr as CANCELLED_TOOL_RESULT_PREFIX,$t as CODING_AGENT_MARKER,qt as CODING_INVARIANTS,Gp as CODING_SUMMARY_PROMPT,Hp as CODING_UPDATE_SUMMARY_PROMPT,Tm as CapabilityDeniedError,ut as Client,Bp as CombinedExtensionRuntime,Um as ConstructionManifestError,Ip as DEFAULT_CODING_AGENT_NAME,Qt as DEFAULT_DANGEROUS_PATTERNS,Rm as DEFAULT_HANDLER_TIMEOUT_MS,df as DEFAULT_RESILIENCE_CONFIG,Pt as DEFAULT_SAFE_PATTERNS,ep as DEFAULT_SELF_MODIFY_BUDGET,Ax as DEFAULT_SPECULATIVE_WINDOW_MS,Pr as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Or as DEFAULT_TOOL_OUTPUT_MAX_LINES,Pf as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,Po as DefaultSummaryCompaction,Yt as EMIT_VERDICT_TOOL_NAME,zo as ErrorCategory,mf as GENERATOR_AGENT_NAME,fo as ImageResizeError,Io as KODAX_API_MIN_INTERVAL,n as KODAX_DEFAULT_PROVIDER,Co as KODAX_DEFAULT_TIMEOUT,uo as KODAX_FILE_MEDIA_TYPES,Do as KODAX_HARD_TIMEOUT,qo as KODAX_IMAGE_MEDIA_TYPES,Go as KODAX_MAX_INCOMPLETE_RETRIES,Eo as KODAX_MAX_RETRIES,Bo as KODAX_MAX_TOKENS,l as KODAX_PROVIDERS,k as KODAX_PROVIDER_SNAPSHOTS,p as KODAX_REASONING_MODE_SEQUENCE,Fo as KODAX_RETRY_BASE_DELAY,t as KODAX_STABLE_EFFORT_INTENTS,Ho as KODAX_STAGGER_DELAY,Wp as KODAX_TOOLS,_r as KODAX_UNDERLYING_CAPABILITY_TOPICS,so as KODAX_VIDEO_MEDIA_TYPES,i as KodaXAnthropicCompatProvider,h as KodaXBaseProvider,ut as KodaXClient,o as KodaXError,Ap as KodaXExtensionRuntime,eo as KodaXMediaError,j as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,oo as KodaXSessionError,ro as KodaXTerminalError,$ as KodaXToolError,nr as LINEAGE_ENTRY_TYPES,Jf as LSP_SERVERS,sr as LineageCompaction,qr as LineageExtension,Kf as LspService,$r as MANUAL_REGISTRY,Zr as MANUAL_TOPIC_IDS,bo as MAX_DIMENSION,fr as McpAuthRequiredError,jr as McpCapabilityProvider,er as McpExpiredSessionError,kr as McpManager,ir as McpServerRuntime,jo as PASTE_TMP_DIR_ENV,ko as PASTE_TMP_TTL_MS,ff as PLANNER_AGENT_NAME,Jo as PROMISE_PATTERN,wm as PROMPT_SECTION_REGISTRY,_t as PROTOCOL_EMITTER_TOOLS,nf as ProviderRecoveryCoordinator,Qr as READ_DEFAULT_LIMIT,Sr as READ_MAX_LINE_CHARS,Rr as READ_PREFLIGHT_SIZE_BYTES,vp as REPO_EXPLORER_AGENT_NAME,wp as REPO_EXPLORER_TOOL_NAMES,Ro as Runner,ef as SCOUT_AGENT_NAME,Qx as SCOUT_THEN_AUTHOR_PROMPT_LINES,Dm as SELF_KNOWLEDGE_ROUTING_RULE,vm as SYSTEM_PROMPT,hm as SYSTEM_WORKFLOW_LIMITS,kf as StableBoundaryTracker,co as TARGET_RAW_SIZE_BYTES,xf as TASK_ENGINE_ROLE_AGENTS,vt as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Hx as TRACING_ENV,pf as WORKER_AGENT_NAME,Of as WORKFLOW_GENERATION_SYSTEM_PROMPT,bp as _resetRuntimeForTesting,gp as activate,le as analyzeChangedScope,op as appendAuditEntry,Cr as appendSessionLineageLabel,Qp as applyAccountingDelta,Dr as applySessionCompaction,Qe as applyToolResultGuardrail,Jr as archiveOldIslands,Sx as authorWorkflowViaWorker,ix as autoModeDenialShouldFallback,wx as bashSignalCollector,Ix as bootstrapTracing,jt as boundedRevise,qx as breakerShouldFallback,kt as budgetCeiling,im as buildApprovalSummary,Tp as buildBlockedGoal,Em as buildCapabilityContextSections,ox as buildClassifierPrompt,Up as buildCompleteGoal,Pp as buildCreatedGoal,Df as buildFallbackRoutingDecision,Et as buildGoalRuntimeBinding,hr as buildInitializeCapabilities,Zm as buildLlmReviewPrompt,re as buildManualToolDescription,It as buildMcpReverseCapabilities,Rp as buildPausedGoal,qf as buildPromptMessageContent,Bm as buildPromptSnapshot,wf as buildProviderCapabilitySnapshot,Ef as buildProviderPolicyHintsForDecision,yf as buildProviderPolicyPromptNotes,ke as buildRepoIntelligenceContext,De as buildRepoIntelligenceIndex,he as buildRepoOverview,Sp as buildResumedGoal,Rx as buildScoutThenAuthorPrompt,Cm as buildSelfKnowledgeRoutingRule,Hr as buildSessionTree,Gm as buildSystemPrompt,Fm as buildSystemPromptSnapshot,Tf as buildWorkflowGenerationSkillContext,Sf as buildWorkflowGenerationUserPrompt,vx as checkAbsoluteDeny,sf as checkIncompleteToolCalls,Gf as checkPromiseSignal,jm as clampWorkflowLimits,ex as classify,St as classifyBashCommand,Ao as classifyError,hf as classifyResilienceError,Xo as cleanupIncompleteToolCalls,T as clearRuntimeModelProviders,zx as collectAllSignals,Cp as combineExtensionRuntimes,Ut as computeInputSignature,fx as computeRulesFingerprint,ap as configureRuntime,Ue as convertCapabilityReadResult,Te as convertProviderSearchResults,Ir as countActiveLineageMessages,Lo as countTokens,Mo as createAgent,dx as createAutoModeDenialTracker,Dx as createAutoModeToolGuardrail,Rt as createBashClassifierConfig,Gx as createBashPrefixExtractor,et as createBuiltinToolDefinition,lx as createCircuitBreaker,Xf as createCodingWorkflowBackend,Vm as createCtxProxy,F as createCustomProvider,Jp as createDefaultCodingAgent,Tt as createDenialTracker,Dp as createExtensionRuntime,xo as createFileArtifactFromPath,No as createHandoff,to as createImageArtifactFromPath,Oo as createInMemorySession,Lt as createKodaXTaskRunner,Zo as createMcpCapabilityId,lr as createMcpManager,mr as createMcpTransport,ym as createPromptSection,Ff as createReasoningPlan,gm as createRunGraphWriter,ht as createSessionControl,wr as createSessionLineage,wt as createToolResultTruncationGuardrail,ao as createVideoArtifactFromPath,Kx as createWorkflowLifecycleController,Nx as createWorkflowPatternTemplateModule,qm as createWorkflowRunManager,Ox as decideWorkflowInvocation,Mm as dedupeExtensionPathsByEntrypoint,Yo as defaultMcpCacheDir,Sm as defaultPolicy,tm as deleteSavedWorkflow,xp as disableSelfModify,ar as discoverAuthorizationServerMetadata,Qm as discoverDefaultExtensions,Pm as discoverExtensionsInDirectory,Om as discoverExtensionsInDirectoryDetailed,up as discoverMarkdownAgents,br as discoverOAuthEndpoints,xr as discoverProtectedResourceMetadata,om as discoverSavedWorkflows,cf as drainPendingSwaps,b as effortToLegacyReasoningMode,Zt as emitVerdict,lm as emitWorkflowAgentDigest,yo as enqueueWithArtifacts,yp as ensureBuiltinRepoExplorerAgent,Ko as estimateTokens,zf as evaluateProviderPolicy,Nm as excludeExtensionPathsByEntrypoint,Hm as exec,gt as executeTool,Kr as extractArtifactLedger,Fx as extractCommandPrefix,vf as extractComparableUserMessageText,Se as extractHtmlTitle,tr as extractInsufficientScope,uf as extractPromptComparableText,pr as extractResourceMetadataUrl,vr as extractTitleFromMessages,yx as fileSignalCollector,We as finalizeRetrievalResult,np as findByVersion,Er as findPreviousUserEntryId,Gr as forkSessionLineage,rf as formatAgentsForPrompt,Nt as formatParallelDispatchResult,Tr as formatSize,ur as generateSessionId,Vf as generateWorkflow,Wf as generateWorkflowFromOptions,Fp as getActiveExtensionRuntime,To as getAgentConfigHome,Uo as getAgentConfigPath,mt as getAllRegisteredTools,Vo as getAppDataDir,W as getAvailableProviderNames,rt as getBuiltinRegisteredToolDefinition,ot as getBuiltinToolDefinition,_f as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Km as getDefaultExtensionDirectory,Lf as getDefaultLspService,sm as getDefaultWorkflowRunManager,Xt as getDenialContext,Ie as getImpactEstimate,$e as getKodaxGlobalDir,rr as getMcpCachePaths,C as getModelCapabilities,vo as getModelInputCapabilities,Fe as getModuleContext,He as getProcessContext,q as getProvider,w as getProviderConfiguredCapabilityProfile,v as getProviderConfiguredReasoningCapability,y as getProviderList,u as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,_p as getRegisteredToolDefinition,Ee as getRepoIntelligenceIndex,ie as getRepoOverview,Je as getRepoRoutingSignals,bt as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,yr as getSessionLineagePath,zr as getSessionMessagesFromLineage,Ge as getSymbolContext,Yp as getTool,Zp as getToolDefinition,$p as getToolRegistrations,Pe as getToolResultPolicy,Mx as getWorkflowPatternTemplate,Mp as goalTokenDelta,bf as hasPendingSwap,mo as inferImageMediaType,Cf as inferTaskType,po as inferVideoMediaType,te as inspectEditFailure,Ce as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Wt as isDeniedRecently,V as isKnownProvider,Mt as isParallelDispatchDirective,s as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,jf as isSessionRecoveryCandidateError,Jm as isSupportedExtensionModulePath,tt as isToolFileMutation,at as isToolMutation,xt as isToolNetworkRead,pt as isToolPlanModeAllowed,Vp as isValidTokenBudget,Hf as languageIdForPath,qp as listAll,Z as listAllModelCapabilities,jp as listArtifacts,D as listBuiltinModelCapabilities,ft as listBuiltinToolDefinitions,$f as listBuiltinWorkflows,lp as listConstructed,O as listCustomProviderModelCapabilities,dt as listToolDefinitions,ct as listTools,Lx as listWorkflowPatternTemplates,of as loadAgentsFiles,sp as loadAgentsFromMarkdown,xx as loadAutoRules,am as loadGeneratedWorkflowFromRun,Wm as loadHandler,fm as loadSavedWorkflow,em as loadSavedWorkflowCapsule,gr as loadValidToken,Lp as makeDisabledGoalToolsContext,a as mapLegacyReasoningModeToEffortIntent,Ht as mcpRootsFromWorkspace,Lr as mergeArtifactLedger,_o as normalizeMcpCapabilityId,go as normalizePastedImage,x as normalizeReasoningEffortValue,rm as normalizeWorkflowModule,zm as orderPromptSections,Yf as parallelInvestigation,tx as parseAutoRules,rx as parseClassifierOutput,pe as parseEditToolError,_m as parseLlmReviewVerdict,$o as parseMcpCapabilityId,sx as parseModelSpec,c as parseReasoningEffortEnv,m as parseTimeoutSecEnvMs,Uf as parseWorkflowGeneration,dr as performOAuthLogin,lo as persistImageAsBlock,Xr as persistToolOutput,cm as preflightWorkflowCapsule,Ke as prewarmRepoIntelligenceCaches,Nf as providerResilienceConfigFromTimeouts,no as prunePasteTmpDir,io as readAndNormalizeClipboardImage,kp as readArtifact,rp as readAuditEntries,fp as readBudget,ho as readClipboardImage,tp as readDisableState,Bx as readSpeculativeWindowFromEnv,mx as readTrustState,Bf as reasoningModeToDepth,lf as reconstructMessagesWithToolGuard,hx as recordAutoModeAllow,gx as recordAutoModeBlock,yt as recordBlockerAttempt,nx as recordBreakerError,Vt as recordDenial,st as registerCodingInvariants,Gt as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,cr as registerOAuthClient,Jt as registerOfficialSandboxExtension,Qo as registerPresetDispatcher,Xp as registerTool,hp as rehydrateActiveArtifacts,mp as remainingSelfModifyBudget,pm as renameSavedWorkflow,ne as renderChangedScope,ze as renderImpactEstimate,ve as renderModuleContext,ye as renderProcessContext,Am as renderPromptSections,je as renderRepoOverview,Ve as renderRetrievalResult,we as renderSymbolContext,xm as replaceSavedWorkflow,If as reportLspDiagnostics,zt as resetBlockerCounter,pp as resetBudget,ux as resolveClassifierModel,af as resolveConstructedAgent,Lm as resolveExtensionEntrypoint,oe as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,d as resolveReasoningEffort,g as resolveReasoningEffortForModelSwitch,Af as resolveReasoningMode,Be as resolveRepoIntelligenceMode,Ae as resolveRepoIntelligenceRuntimeConfig,gf as resolveResilienceConfig,Ar as resolveSessionLineageTarget,lt as resolveToolCapability,_ as resolveWireEffort,Qf as resolveWorkflowGenerationTimeoutMs,Jx as resolveWorkflowIdentity,ip as revoke,Fr as rewindSessionLineage,zp as rollbackSelfModify,Xm as runAstRules,Kp as runKodaX,$m as runLlmReview,Ft as runManagedTask,Kt as runOrchestration,nm as runWorkflowFromOptions,km as runWorkflowModule,dm as safeWorkflowArtifactName,mm as saveGeneratedWorkflow,bm as saveGeneratedWorkflowFromRun,or as searchMcpCatalog,Ep as setActiveExtensionRuntime,So as setAgentConfigHome,Br as setSessionLineageActiveEntry,Op as shouldFlipBudgetLimited,Mf as shutdownDefaultLspService,Cx as speculativeRace,cp as stage,it as startKodaX,um as startManagedWorkflow,ax as stripAssistantText,Re as stripHtmlToText,dp as testArtifact,f as timeoutSecToMs,ge as toolAskUserQuestion,ae as toolBash,ue as toolChangedDiff,se as toolChangedScope,Ze as toolCodeSearch,me as toolEdit,be as toolGlob,ce as toolGrep,Oe as toolImpactEstimate,xe as toolInsertAfterAnchor,Le as toolModuleContext,nt as toolPermission,Ne as toolProcessContext,Yr as toolRead,qe as toolRepoOverview,_e as toolSemanticLookup,Me as toolSymbolContext,de as toolUndo,Ye as toolWebFetch,Xe as toolWebSearch,fe as toolWrite,Ur as truncateHead,Wr as truncateLine,Vr as truncateTail,px as trustProjectRules,Np as turnWallTimeDelta,Wo as validateAndFixToolHistory,E as validateCustomProviderConfig,Rf as validateGeneratedWorkflowSource,wo as validateInputArtifactsForModel,Ot as validateSubtaskIndependence,Ym as validateToolSchemaForProvider,Dt as verifyGoalCompletion,Im as webhook,Bt as withGoalBeforeNextTurn,Ct as withGoalStopHook,ee as withManualToolBranding,tf as workerAgent,Px as workflowStartOutcomeConsumesTurn};
|
|
2
|
+
import{$ as cx,A as Lt,Aa as Lx,B as Mt,Ba as Mx,C as Nt,Ca as Nx,D as Ot,Da as Ox,E as Pt,Ea as Px,F as Qt,Fa as Qx,G as Rt,Ga as Rx,H as St,Ha as Sx,I as Tt,Ia as Tx,J as Ut,K as Vt,L as Wt,M as Xt,N as Yt,O as Zt,P as _t,Q as $t,R as ox,S as rx,T as ex,U as fx,V as mx,W as px,X as tx,Y as xx,Z as ax,_ as bx,a as $,aa as dx,b as oo,ba as gx,c as ro,ca as hx,d as it,da as ix,e as jt,ea as jx,f as kt,fa as kx,g as lt,ga as lx,h as nt,ha as nx,i as qt,ia as qx,j as st,ja as sx,k as ut,ka as ux,l as vt,la as vx,m as wt,ma as wx,n as yt,na as yx,o as zt,oa as zx,p as At,pa as Ax,q as Bt,qa as Bx,r as Ct,ra as Cx,s as Dt,sa as Dx,t as Et,ta as Ex,u as Ft,ua as Fx,v as Gt,va as Gx,w as Ht,wa as Hx,x as It,xa as Ix,y as Jt,ya as Jx,z as Kt,za as Kx}from"./chunks/chunk-4MIHVNB7.js";import{a as Of,b as Pf,c as Qf,d as Rf,e as Sf,f as Tf,g as Uf,h as Vf,i as Wf,j as um}from"./chunks/chunk-KCFVGXVK.js";import{a as Xf,b as Yf,c as Zf,d as _f,e as $f,f as om,g as rm,h as em,i as fm,j as mm,k as pm,l as tm,m as xm,n as am,o as bm,p as cm,q as dm,r as gm,s as hm,t as im,u as jm,v as km,w as lm,x as nm,y as qm,z as sm}from"./chunks/chunk-HP4FXMEM.js";import{A as Bf,E as Cf,F as Df,G as Ef,H as Ff,K as Gf,M as vm,N as wm,O as ym,P as zm,Q as Am,R as Bm,S as Cm,T as Dm,V as Em,W as Fm,X as Gm,a as zo,b as Ao,e as df,ea as Hp,f as gf,fa as Ip,g as hf,h as jf,i as kf,j as lf,k as nf,ma as Jp,na as Kp,p as qf,q as sf,ra as Lp,t as uf,u as vf,w as wf,x as yf,y as zf,z as Af}from"./chunks/chunk-LGR7ACBQ.js";import"./chunks/chunk-D6QVXQNI.js";import{a as Nf}from"./chunks/chunk-UA744TZM.js";import{$b as ep,A as fe,Aa as $e,Ac as Dp,B as me,Ba as of,Bc as Ep,C as pe,Ca as rf,Cc as Fp,D as te,Dc as Gp,E as xe,Eb as Hm,F as ae,Fb as Im,G as be,Ga as ef,Gb as Jm,H as ce,Ha as ff,Hb as Km,I as de,Ia as mf,Ib as Lm,J as ge,Ja as pf,Jb as Mm,Ka as tf,Kb as Nm,L as he,La as xf,Lb as Om,M as ie,Ma as af,Mb as Pm,N as je,Nb as Qm,O as ke,Oa as bf,Ob as Rm,Oc as Mp,P as le,Pa as cf,Pb as Sm,Pc as Np,Q as ne,Qb as Tm,Qc as Op,R as qe,Rb as Um,Rc as Pp,S as se,Sb as Vm,Sc as Qp,T as ue,Tb as Wm,Tc as Rp,U as ve,Ub as Xm,Uc as Sp,V as we,Vb as Ym,Vc as Tp,W as ye,Wb as Zm,Wc as Up,X as ze,Xb as _m,Xc as Vp,Y as Ae,Yb as $m,Yc as Wp,Z as Be,Zb as op,_ as Ce,_b as rp,ac as fp,ba as De,bc as mp,ca as Ee,cc as pp,cd as Xp,d as Mr,da as Fe,dc as tp,dd as Yp,e as Nr,ea as Ge,ec as xp,ed as Zp,fa as He,fc as ap,fd as _p,ga as Ie,gc as bp,gd as $p,ha as Je,hc as cp,hd as ot,i as Or,ic as dp,id as rt,j as Pr,ja as Ke,jc as gp,jd as et,k as Qr,ka as Le,kc as hp,kd as ft,l as Rr,la as Me,lc as ip,ld as mt,m as Sr,ma as Ne,mc as jp,md as pt,n as Tr,na as Oe,nc as kp,nd as tt,o as Ur,oa as Pe,oc as lp,od as xt,p as Vr,pa as Qe,pc as np,pd as at,q as Wr,qa as Re,qc as qp,qd as bt,r as Xr,ra as Se,rc as sp,rd as ct,s as Yr,sa as Te,sc as up,sd as dt,t as Zr,ta as Ue,tc as vp,td as gt,u as _r,ua as Ve,ub as Hf,uc as wp,v as $r,va as We,vb as If,vc as yp,w as oe,wa as Xe,wb as Jf,wc as zp,x as re,xa as Ye,xb as Kf,xc as Ap,xd as ht,y as ee,ya as Ze,yb as Lf,yc as Bp,za as _e,zb as Mf,zc as Cp}from"./chunks/chunk-RR7W7UF6.js";import{$ as i,A as a,Aa as L,B as b,Ba as M,C as c,Ca as N,D as d,Da as O,E as g,Ea as P,Fa as Q,Ga as R,Ha as S,Ia as T,Ja as U,Ka as V,La as W,Ma as X,Na as Y,Oa as Z,R as h,Ra as _,a as o,aa as j,b as r,c as e,fa as k,ga as l,ha as n,ia as q,j as f,ja as s,k as m,ka as u,la as v,ma as w,na as y,oa as z,pa as A,qa as B,ra as C,s as p,sa as D,t,ta as E,ua as F,va as G,wa as H,xa as I,ya as J,z as x,za as K}from"./chunks/chunk-S4GVQO3W.js";import{Fc as Yo,Fd as Kr,Gc as Zo,Gd as Lr,Hc as _o,Ic as $o,Jc as or,Kc as rr,Lc as er,Mc as fr,Nc as mr,Oc as pr,Pc as tr,Qc as xr,Rc as ar,Sc as br,Tc as cr,Uc as dr,Vc as gr,Wc as hr,Xc as ir,Yc as jr,Zc as kr,_c as lr,a as Bo,ad as nr,b as Co,bd as qr,c as Do,cd as sr,d as Eo,dd as ur,e as Fo,ed as vr,f as Go,h as Ho,i as Io,j as Jo,k as Ko,ka as Qo,l as Lo,ld as wr,m as Mo,md as yr,n as No,na as Ro,nd as zr,o as Oo,ob as Wo,od as Ar,p as Po,pb as Xo,pd as Br,qd as Cr,rd as Dr,td as Er,ua as So,ud as Fr,va as To,vd as Gr,wa as Uo,wd as Hr,xa as Vo,xd as Ir,yd as Jr}from"./chunks/chunk-UGTK2JIJ.js";import{H as yo,a as eo,b as fo,c as mo,d as po,e as to,f as xo,g as ao,h as bo,i as co,j as go,k as ho,l as io,m as jo,n as ko,o as lo,p as no,v as qo,w as so,x as uo,y as vo,z as wo}from"./chunks/chunk-ZL5CEANW.js";import"./chunks/chunk-V4WSBIXB.js";export{cx as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,dx as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Fx as BASH_POLICY_SPEC,Bt as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,kx as BREAKER_ERROR_THRESHOLD,lx as BREAKER_WINDOW_MS,Zf as BUILTIN_WORKFLOWS,Nr as CANCELLED_TOOL_RESULT_MESSAGE,Mr as CANCELLED_TOOL_RESULT_PREFIX,ox as CODING_AGENT_MARKER,st as CODING_INVARIANTS,Hp as CODING_SUMMARY_PROMPT,Ip as CODING_UPDATE_SUMMARY_PROMPT,Tm as CapabilityDeniedError,vt as Client,Cp as CombinedExtensionRuntime,Um as ConstructionManifestError,Jp as DEFAULT_CODING_AGENT_NAME,Rt as DEFAULT_DANGEROUS_PATTERNS,Rm as DEFAULT_HANDLER_TIMEOUT_MS,df as DEFAULT_RESILIENCE_CONFIG,Qt as DEFAULT_SAFE_PATTERNS,ep as DEFAULT_SELF_MODIFY_BUDGET,Bx as DEFAULT_SPECULATIVE_WINDOW_MS,Pr as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Or as DEFAULT_TOOL_OUTPUT_MAX_LINES,Pf as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,Po as DefaultSummaryCompaction,Zt as EMIT_VERDICT_TOOL_NAME,zo as ErrorCategory,mf as GENERATOR_AGENT_NAME,fo as ImageResizeError,Io as KODAX_API_MIN_INTERVAL,n as KODAX_DEFAULT_PROVIDER,Co as KODAX_DEFAULT_TIMEOUT,uo as KODAX_FILE_MEDIA_TYPES,Do as KODAX_HARD_TIMEOUT,qo as KODAX_IMAGE_MEDIA_TYPES,Go as KODAX_MAX_INCOMPLETE_RETRIES,Eo as KODAX_MAX_RETRIES,Bo as KODAX_MAX_TOKENS,l as KODAX_PROVIDERS,k as KODAX_PROVIDER_SNAPSHOTS,p as KODAX_REASONING_MODE_SEQUENCE,Fo as KODAX_RETRY_BASE_DELAY,t as KODAX_STABLE_EFFORT_INTENTS,Ho as KODAX_STAGGER_DELAY,Xp as KODAX_TOOLS,_r as KODAX_UNDERLYING_CAPABILITY_TOPICS,so as KODAX_VIDEO_MEDIA_TYPES,i as KodaXAnthropicCompatProvider,h as KodaXBaseProvider,vt as KodaXClient,o as KodaXError,Bp as KodaXExtensionRuntime,eo as KodaXMediaError,j as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,oo as KodaXSessionError,ro as KodaXTerminalError,$ as KodaXToolError,nr as LINEAGE_ENTRY_TYPES,Jf as LSP_SERVERS,sr as LineageCompaction,qr as LineageExtension,Kf as LspService,$r as MANUAL_REGISTRY,Zr as MANUAL_TOPIC_IDS,bo as MAX_DIMENSION,fr as McpAuthRequiredError,jr as McpCapabilityProvider,er as McpExpiredSessionError,kr as McpManager,ir as McpServerRuntime,jo as PASTE_TMP_DIR_ENV,ko as PASTE_TMP_TTL_MS,ff as PLANNER_AGENT_NAME,Jo as PROMISE_PATTERN,wm as PROMPT_SECTION_REGISTRY,$t as PROTOCOL_EMITTER_TOOLS,nf as ProviderRecoveryCoordinator,Qr as READ_DEFAULT_LIMIT,Sr as READ_MAX_LINE_CHARS,Rr as READ_PREFLIGHT_SIZE_BYTES,wp as REPO_EXPLORER_AGENT_NAME,yp as REPO_EXPLORER_TOOL_NAMES,Ro as Runner,ef as SCOUT_AGENT_NAME,Rx as SCOUT_THEN_AUTHOR_PROMPT_LINES,Dm as SELF_KNOWLEDGE_ROUTING_RULE,vm as SYSTEM_PROMPT,hm as SYSTEM_WORKFLOW_LIMITS,kf as StableBoundaryTracker,co as TARGET_RAW_SIZE_BYTES,xf as TASK_ENGINE_ROLE_AGENTS,wt as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Ix as TRACING_ENV,pf as WORKER_AGENT_NAME,Of as WORKFLOW_GENERATION_SYSTEM_PROMPT,bp as _resetRuntimeForTesting,gp as activate,le as analyzeChangedScope,op as appendAuditEntry,Cr as appendSessionLineageLabel,Rp as applyAccountingDelta,Dr as applySessionCompaction,Qe as applyToolResultGuardrail,Jr as archiveOldIslands,Tx as authorWorkflowViaWorker,jx as autoModeDenialShouldFallback,yx as bashSignalCollector,Jx as bootstrapTracing,kt as boundedRevise,sx as breakerShouldFallback,lt as budgetCeiling,im as buildApprovalSummary,Up as buildBlockedGoal,Em as buildCapabilityContextSections,rx as buildClassifierPrompt,Vp as buildCompleteGoal,Qp as buildCreatedGoal,Df as buildFallbackRoutingDecision,Ft as buildGoalRuntimeBinding,hr as buildInitializeCapabilities,Zm as buildLlmReviewPrompt,re as buildManualToolDescription,Jt as buildMcpReverseCapabilities,Sp as buildPausedGoal,qf as buildPromptMessageContent,Bm as buildPromptSnapshot,wf as buildProviderCapabilitySnapshot,Ef as buildProviderPolicyHintsForDecision,yf as buildProviderPolicyPromptNotes,ke as buildRepoIntelligenceContext,De as buildRepoIntelligenceIndex,he as buildRepoOverview,Tp as buildResumedGoal,Sx as buildScoutThenAuthorPrompt,Cm as buildSelfKnowledgeRoutingRule,Hr as buildSessionTree,Gm as buildSystemPrompt,Fm as buildSystemPromptSnapshot,Tf as buildWorkflowGenerationSkillContext,Sf as buildWorkflowGenerationUserPrompt,wx as checkAbsoluteDeny,sf as checkIncompleteToolCalls,Gf as checkPromiseSignal,jm as clampWorkflowLimits,fx as classify,Tt as classifyBashCommand,Ao as classifyError,hf as classifyResilienceError,Xo as cleanupIncompleteToolCalls,T as clearRuntimeModelProviders,Ax as collectAllSignals,Dp as combineExtensionRuntimes,Vt as computeInputSignature,mx as computeRulesFingerprint,ap as configureRuntime,Ue as convertCapabilityReadResult,Te as convertProviderSearchResults,Ir as countActiveLineageMessages,Lo as countTokens,Mo as createAgent,gx as createAutoModeDenialTracker,Ex as createAutoModeToolGuardrail,St as createBashClassifierConfig,Hx as createBashPrefixExtractor,ft as createBuiltinToolDefinition,nx as createCircuitBreaker,Xf as createCodingWorkflowBackend,Vm as createCtxProxy,F as createCustomProvider,Kp as createDefaultCodingAgent,Ut as createDenialTracker,Ep as createExtensionRuntime,xo as createFileArtifactFromPath,No as createHandoff,to as createImageArtifactFromPath,Oo as createInMemorySession,Mt as createKodaXTaskRunner,Zo as createMcpCapabilityId,lr as createMcpManager,mr as createMcpTransport,ym as createPromptSection,Ff as createReasoningPlan,gm as createRunGraphWriter,it as createSessionControl,wr as createSessionLineage,yt as createToolResultTruncationGuardrail,ao as createVideoArtifactFromPath,Lx as createWorkflowLifecycleController,Ox as createWorkflowPatternTemplateModule,qm as createWorkflowRunManager,Px as decideWorkflowInvocation,Mm as dedupeExtensionPathsByEntrypoint,Yo as defaultMcpCacheDir,Sm as defaultPolicy,tm as deleteSavedWorkflow,xp as disableSelfModify,ar as discoverAuthorizationServerMetadata,Qm as discoverDefaultExtensions,Pm as discoverExtensionsInDirectory,Om as discoverExtensionsInDirectoryDetailed,vp as discoverMarkdownAgents,br as discoverOAuthEndpoints,xr as discoverProtectedResourceMetadata,om as discoverSavedWorkflows,cf as drainPendingSwaps,b as effortToLegacyReasoningMode,_t as emitVerdict,lm as emitWorkflowAgentDigest,yo as enqueueWithArtifacts,zp as ensureBuiltinRepoExplorerAgent,Ko as estimateTokens,zf as evaluateProviderPolicy,Nm as excludeExtensionPathsByEntrypoint,Hm as exec,ht as executeTool,Kr as extractArtifactLedger,Gx as extractCommandPrefix,vf as extractComparableUserMessageText,Se as extractHtmlTitle,tr as extractInsufficientScope,uf as extractPromptComparableText,pr as extractResourceMetadataUrl,vr as extractTitleFromMessages,zx as fileSignalCollector,We as finalizeRetrievalResult,np as findByVersion,Er as findPreviousUserEntryId,Gr as forkSessionLineage,rf as formatAgentsForPrompt,Ot as formatParallelDispatchResult,Tr as formatSize,ur as generateSessionId,Vf as generateWorkflow,Wf as generateWorkflowFromOptions,Gp as getActiveExtensionRuntime,To as getAgentConfigHome,Uo as getAgentConfigPath,pt as getAllRegisteredTools,Vo as getAppDataDir,W as getAvailableProviderNames,et as getBuiltinRegisteredToolDefinition,rt as getBuiltinToolDefinition,_f as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Km as getDefaultExtensionDirectory,Lf as getDefaultLspService,sm as getDefaultWorkflowRunManager,Yt as getDenialContext,Ie as getImpactEstimate,$e as getKodaxGlobalDir,rr as getMcpCachePaths,C as getModelCapabilities,vo as getModelInputCapabilities,Fe as getModuleContext,He as getProcessContext,q as getProvider,w as getProviderConfiguredCapabilityProfile,v as getProviderConfiguredReasoningCapability,y as getProviderList,u as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,$p as getRegisteredToolDefinition,Ee as getRepoIntelligenceIndex,ie as getRepoOverview,Je as getRepoRoutingSignals,ct as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,yr as getSessionLineagePath,zr as getSessionMessagesFromLineage,Ge as getSymbolContext,Zp as getTool,_p as getToolDefinition,ot as getToolRegistrations,Pe as getToolResultPolicy,Nx as getWorkflowPatternTemplate,Np as goalTokenDelta,bf as hasPendingSwap,mo as inferImageMediaType,Cf as inferTaskType,po as inferVideoMediaType,te as inspectEditFailure,Ce as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Xt as isDeniedRecently,V as isKnownProvider,Nt as isParallelDispatchDirective,s as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,jf as isSessionRecoveryCandidateError,Jm as isSupportedExtensionModulePath,xt as isToolFileMutation,bt as isToolMutation,at as isToolNetworkRead,tt as isToolPlanModeAllowed,Wp as isValidTokenBudget,Hf as languageIdForPath,qp as listAll,Z as listAllModelCapabilities,jp as listArtifacts,D as listBuiltinModelCapabilities,mt as listBuiltinToolDefinitions,$f as listBuiltinWorkflows,lp as listConstructed,O as listCustomProviderModelCapabilities,gt as listToolDefinitions,dt as listTools,Mx as listWorkflowPatternTemplates,of as loadAgentsFiles,sp as loadAgentsFromMarkdown,ax as loadAutoRules,am as loadGeneratedWorkflowFromRun,Wm as loadHandler,up as loadMarkdownAgentScope,fm as loadSavedWorkflow,em as loadSavedWorkflowCapsule,gr as loadValidToken,Mp as makeDisabledGoalToolsContext,a as mapLegacyReasoningModeToEffortIntent,It as mcpRootsFromWorkspace,Lr as mergeArtifactLedger,_o as normalizeMcpCapabilityId,go as normalizePastedImage,x as normalizeReasoningEffortValue,rm as normalizeWorkflowModule,zm as orderPromptSections,Yf as parallelInvestigation,xx as parseAutoRules,ex as parseClassifierOutput,pe as parseEditToolError,_m as parseLlmReviewVerdict,$o as parseMcpCapabilityId,ux as parseModelSpec,c as parseReasoningEffortEnv,m as parseTimeoutSecEnvMs,Uf as parseWorkflowGeneration,dr as performOAuthLogin,lo as persistImageAsBlock,Xr as persistToolOutput,cm as preflightWorkflowCapsule,Ke as prewarmRepoIntelligenceCaches,Nf as providerResilienceConfigFromTimeouts,no as prunePasteTmpDir,io as readAndNormalizeClipboardImage,kp as readArtifact,rp as readAuditEntries,fp as readBudget,ho as readClipboardImage,tp as readDisableState,Cx as readSpeculativeWindowFromEnv,px as readTrustState,Bf as reasoningModeToDepth,lf as reconstructMessagesWithToolGuard,ix as recordAutoModeAllow,hx as recordAutoModeBlock,zt as recordBlockerAttempt,qx as recordBreakerError,Wt as recordDenial,ut as registerCodingInvariants,Ht as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,cr as registerOAuthClient,Kt as registerOfficialSandboxExtension,Qo as registerPresetDispatcher,Yp as registerTool,hp as rehydrateActiveArtifacts,mp as remainingSelfModifyBudget,pm as renameSavedWorkflow,ne as renderChangedScope,ze as renderImpactEstimate,ve as renderModuleContext,ye as renderProcessContext,Am as renderPromptSections,je as renderRepoOverview,Ve as renderRetrievalResult,we as renderSymbolContext,xm as replaceSavedWorkflow,If as reportLspDiagnostics,At as resetBlockerCounter,pp as resetBudget,vx as resolveClassifierModel,af as resolveConstructedAgent,Lm as resolveExtensionEntrypoint,oe as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,d as resolveReasoningEffort,g as resolveReasoningEffortForModelSwitch,Af as resolveReasoningMode,Be as resolveRepoIntelligenceMode,Ae as resolveRepoIntelligenceRuntimeConfig,gf as resolveResilienceConfig,Ar as resolveSessionLineageTarget,nt as resolveToolCapability,_ as resolveWireEffort,Qf as resolveWorkflowGenerationTimeoutMs,Kx as resolveWorkflowIdentity,ip as revoke,Fr as rewindSessionLineage,Ap as rollbackSelfModify,Xm as runAstRules,Lp as runKodaX,$m as runLlmReview,Gt as runManagedTask,Lt as runOrchestration,nm as runWorkflowFromOptions,km as runWorkflowModule,dm as safeWorkflowArtifactName,mm as saveGeneratedWorkflow,bm as saveGeneratedWorkflowFromRun,or as searchMcpCatalog,Fp as setActiveExtensionRuntime,So as setAgentConfigHome,Br as setSessionLineageActiveEntry,Pp as shouldFlipBudgetLimited,Mf as shutdownDefaultLspService,Dx as speculativeRace,cp as stage,jt as startKodaX,um as startManagedWorkflow,bx as stripAssistantText,Re as stripHtmlToText,dp as testArtifact,f as timeoutSecToMs,ge as toolAskUserQuestion,ae as toolBash,ue as toolChangedDiff,se as toolChangedScope,Ze as toolCodeSearch,me as toolEdit,be as toolGlob,ce as toolGrep,Oe as toolImpactEstimate,xe as toolInsertAfterAnchor,Le as toolModuleContext,qt as toolPermission,Ne as toolProcessContext,Yr as toolRead,qe as toolRepoOverview,_e as toolSemanticLookup,Me as toolSymbolContext,de as toolUndo,Ye as toolWebFetch,Xe as toolWebSearch,fe as toolWrite,Ur as truncateHead,Wr as truncateLine,Vr as truncateTail,tx as trustProjectRules,Op as turnWallTimeDelta,Wo as validateAndFixToolHistory,E as validateCustomProviderConfig,Rf as validateGeneratedWorkflowSource,wo as validateInputArtifactsForModel,Pt as validateSubtaskIndependence,Ym as validateToolSchemaForProvider,Et as verifyGoalCompletion,Im as webhook,Ct as withGoalBeforeNextTurn,Dt as withGoalStopHook,ee as withManualToolBranding,tf as workerAgent,Qx as workflowStartOutcomeConsumesTurn};
|
package/dist/sdk-mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$
|
|
2
|
+
import{$c as f,Fc as e,Gc as t,Hc as r,Ic as a,Jc as i,Kc as p,Lc as c,Mc as o,Nc as M,Oc as n,Pc as s,Qc as l,Rc as d,Sc as u,Tc as C,Uc as v,Vc as g,Wc as S,Xc as h,Yc as R,Zc as A,_c as b}from"./chunks/chunk-UGTK2JIJ.js";import"./chunks/chunk-ZL5CEANW.js";import"./chunks/chunk-V4WSBIXB.js";export{o as McpAuthRequiredError,R as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,h as McpServerRuntime,S as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,d as discoverAuthorizationServerMetadata,u as discoverOAuthEndpoints,l as discoverProtectedResourceMetadata,s as extractInsufficientScope,n as extractResourceMetadataUrl,p as getMcpCachePaths,g as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,v as performOAuthLogin,C as registerOAuthClient,i as searchMcpCatalog};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps, M as Message,
|
|
3
|
-
export { a as AppState, b as AppendClientNoticeOptions, C as
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as CurrentConfig, I as InkREPLOptions, c as InteractiveContext, d as InteractiveMode, K as KODAX_CONFIG_FILE, e as KODAX_DIR, f as KODAX_EXAMPLE_CONFIG_FILE, g as KODAX_SESSIONS_DIR, h as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RepLOptions, i as createInteractiveContext, j as ensureExampleConfigFile, k as executeCommand, l as getGitRoot, m as getProviderList, n as getProviderModel, o as getVersion, p as hydrateProcessEnvFromShell, q as isProviderConfigured, r as loadConfig, s as parseCommand, t as prepareRuntimeConfig, u as processSpecialSyntax, v as rateLimitedCall, w as registerConfiguredCustomProviders, x as runInkInteractiveMode, y as runInteractiveMode, z as saveConfig, A as touchContext } from './types-chunks/utils.d-
|
|
5
|
-
import {
|
|
6
|
-
import { f as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
import { b as PermissionMode } from './types-chunks/storage.d-
|
|
8
|
-
export { C as ConfirmResult, F as FileSessionStorage, M as MemorySessionStorage, P as PERMISSION_MODES, a as PermissionContext, S as SessionData, c as SessionStorage, d as computeConfirmTools, e as createMemorySessionStorage, i as isPermissionMode, n as normalizePermissionMode, p as permissionModeDisplayName } from './types-chunks/storage.d-
|
|
2
|
+
import { A as AppProps, M as Message, a3 as UIState, f as CreatableHistoryItem, i as HistoryItem, a0 as ToolCall, a2 as UIActions, K as KeyInfo, x as KeypressHandler, U as StreamingState, B as PromptEditingMode, I as InputPromptProps, T as StatusBarProps, Z as Theme, a1 as ToolCallStatus, V as Suggestion, a4 as UseTextBufferReturn, H as HistoryEntry, P as PastedContent, o as HistoryItemInfo } from './types-chunks/sdk-session-RBSBBKol.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, g as CursorPosition, D as DEFAULT_UI_STATE, h as DeleteSessionResult, F as FullTranscriptSessionData, j as HistoryItemAssistant, k as HistoryItemBase, l as HistoryItemError, m as HistoryItemEvent, n as HistoryItemHint, p as HistoryItemSidecar, q as HistoryItemSystem, r as HistoryItemThinking, s as HistoryItemToolGroup, t as HistoryItemType, u as HistoryItemUser, v as HistorySeedSourceMessage, w as KeypressEvent, y as KeypressHandlerPriority, L as LegacyMessageListProps, z as ListSessionsOptions, E as PromptSubmitPayload, R as RestoreHistoryItemsFromSessionInput, G as RestoredHistorySeed, J as RunningSessionInfo, S as SessionManager, N as SessionSummary, O as SessionTranscriptEntry, Q as SessionTranscriptEntryType, W as TOOL_STATUS_ICONS, X as TextBuffer, Y as TextBufferOptions, _ as ThemeColors, $ as ThemeSymbols, a5 as VisualCursor, a6 as VisualLayout, a7 as WatchSessionsCallback, a8 as appendClientNotice, a9 as archiveSession, aa as compactSession, ab as createSessionManager, ac as deleteSession, ad as extractHistorySeedsFromMessage, ae as extractHistorySeedsFromMessages, af as extractTextContent, ag as extractTitle, ah as forkSession, ai as formatMessagePreview, aj as listRunningSessions, ak as listSessions, al as loadFullTranscript, am as loadSession, an as restoreHistoryItemsFromSession, ao as rewindSession, ap as seedToHistoryItem, aq as setActiveEntry, ar as toolCallSeedToHistoryToolCall, as as trimPersistedUiHistorySnapshot, at as unarchiveSession, au as watchSessions } from './types-chunks/sdk-session-RBSBBKol.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as CurrentConfig, I as InkREPLOptions, c as InteractiveContext, d as InteractiveMode, K as KODAX_CONFIG_FILE, e as KODAX_DIR, f as KODAX_EXAMPLE_CONFIG_FILE, g as KODAX_SESSIONS_DIR, h as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as RepLOptions, i as createInteractiveContext, j as ensureExampleConfigFile, k as executeCommand, l as getGitRoot, m as getProviderList, n as getProviderModel, o as getVersion, p as hydrateProcessEnvFromShell, q as isProviderConfigured, r as loadConfig, s as parseCommand, t as prepareRuntimeConfig, u as processSpecialSyntax, v as rateLimitedCall, w as registerConfiguredCustomProviders, x as runInkInteractiveMode, y as runInteractiveMode, z as saveConfig, A as touchContext } from './types-chunks/utils.d-C14jZ9ZM.js';
|
|
5
|
+
import { y as KodaXEvents, m as KodaXAgentMode, aH as ProviderRecoveryEvent, a as BashPrefixExtractor, $ as KodaXResult } from './types-chunks/bash-prefix-extractor.d-CZW9fRoa.js';
|
|
6
|
+
import { f as QueuedMessage } from './types-chunks/types.d-1CnTg7Sd.js';
|
|
7
|
+
import { b as PermissionMode } from './types-chunks/storage.d-C6kkAEch.js';
|
|
8
|
+
export { C as ConfirmResult, F as FileSessionStorage, M as MemorySessionStorage, P as PERMISSION_MODES, a as PermissionContext, S as SessionData, c as SessionStorage, d as computeConfirmTools, e as createMemorySessionStorage, i as isPermissionMode, n as normalizePermissionMode, p as permissionModeDisplayName } from './types-chunks/storage.d-C6kkAEch.js';
|
|
9
9
|
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-Bp4Lm1jv.js';
|
|
10
10
|
export { R as KodaXTaskResultMetadata, S as KodaXTaskResultSource } from './types-chunks/types.d-Bp4Lm1jv.js';
|
|
11
11
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
12
|
-
export {
|
|
13
|
-
import { a as AutoModeAskUser, S as SignalCollector, g as AutoModeToolGuardrail, o as RulesLoadResult } from './types-chunks/guardrail.d-
|
|
12
|
+
export { ao as KodaXSessionUiHistoryItem, ap as KodaXSessionUiHistoryItemType, aq as KodaXSessionUiTextHistoryItem, ar as KodaXSessionUiTextHistoryItemType, as as KodaXSessionUiToolCall, at as KodaXSessionUiToolCallStatus, au as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-CY2g03Mb.js';
|
|
13
|
+
import { a as AutoModeAskUser, S as SignalCollector, g as AutoModeToolGuardrail, o as RulesLoadResult } from './types-chunks/guardrail.d-MR6LwMB2.js';
|
|
14
14
|
import 'readline';
|
|
15
15
|
import 'child_process';
|
|
16
16
|
import './types-chunks/types.d-vJExiRje.js';
|
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,Vb as de,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-
|
|
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,
|
|
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,Vb as de,W as dn,Wa as po,Wb as pe,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-KHICMJIR.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-7MPU7TP6.js";import"./chunks/chunk-L3MF5V64.js";import"./chunks/chunk-6OZ5KWG3.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-VSWROENP.js";import"./chunks/chunk-4MIHVNB7.js";import"./chunks/chunk-KCFVGXVK.js";import"./chunks/chunk-HP4FXMEM.js";import"./chunks/chunk-LGR7ACBQ.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-UA744TZM.js";import"./chunks/chunk-RR7W7UF6.js";import"./chunks/chunk-S4GVQO3W.js";import"./chunks/chunk-UGTK2JIJ.js";import"./chunks/chunk-ZL5CEANW.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
|
+
`)[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,oe as appendClientNotice,se as archiveSession,so as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,Et as collectBashWriteTargets,Yo as compactSession,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,pe as createSessionManager,Un as createStreamingManager,vn as createToolCall,Q as darkTheme,Vo as dedupeSessions,ie 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,ee 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,me as listRunningSessions,Zo as listSessions,K as loadCommands,At as loadConfig,ne as loadFullTranscript,te 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,re as rewindSession,ho as runInkInteractiveMode,Fo as runInteractiveMode,vt as saveConfig,Jt as seedToHistoryItem,ae 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,ce 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,de as watchSessions,Lo as withCapture,Wo as withCaptureSync};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { b as AppendClientNoticeOptions,
|
|
1
|
+
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, f as CreatableHistoryItem, h as DeleteSessionResult, F as FullTranscriptSessionData, v as HistorySeedSourceMessage, z as ListSessionsOptions, R as RestoreHistoryItemsFromSessionInput, G as RestoredHistorySeed, J as RunningSessionInfo, S as SessionManager, N as SessionSummary, O as SessionTranscriptEntry, Q as SessionTranscriptEntryType, a7 as WatchSessionsCallback, a8 as appendClientNotice, a9 as archiveSession, aa as compactSession, ab as createSessionManager, ac as deleteSession, ad as extractHistorySeedsFromMessage, ae as extractHistorySeedsFromMessages, ah as forkSession, aj as listRunningSessions, ak as listSessions, al as loadFullTranscript, am as loadSession, an as restoreHistoryItemsFromSession, ao as rewindSession, aq as setActiveEntry, at as unarchiveSession, au as watchSessions } from './types-chunks/sdk-session-RBSBBKol.js';
|
|
2
2
|
export { R as KodaXTaskResultMetadata, S as KodaXTaskResultSource } from './types-chunks/types.d-Bp4Lm1jv.js';
|
|
3
|
-
export {
|
|
4
|
-
import './types-chunks/storage.d-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
3
|
+
export { ao as KodaXSessionUiHistoryItem, ap as KodaXSessionUiHistoryItemType, aq as KodaXSessionUiTextHistoryItem, ar as KodaXSessionUiTextHistoryItemType, as as KodaXSessionUiToolCall, at as KodaXSessionUiToolCallStatus, au as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/process.d-CY2g03Mb.js';
|
|
4
|
+
import './types-chunks/storage.d-C6kkAEch.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-CZW9fRoa.js';
|
|
6
6
|
import './types-chunks/types.d-vJExiRje.js';
|
|
7
7
|
import 'vscode-languageserver-protocol';
|
|
8
8
|
import './types-chunks/cost-tracker.d-CBLk1fiD.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
|
|
2
|
+
import{$a as o,Jb as t,Kb as i,Lb as n,Mb as a,Nb as r,Ob as S,Pb as l,Qb as p,Rb as d,Sb as c,Tb as y,Ub as m,Vb as u,Wb as T}from"./chunks/chunk-KHICMJIR.js";import{K as s,L as e}from"./chunks/chunk-7MPU7TP6.js";import"./chunks/chunk-L3MF5V64.js";import"./chunks/chunk-6OZ5KWG3.js";import"./chunks/chunk-VSWROENP.js";import"./chunks/chunk-4MIHVNB7.js";import"./chunks/chunk-KCFVGXVK.js";import"./chunks/chunk-HP4FXMEM.js";import"./chunks/chunk-LGR7ACBQ.js";import"./chunks/chunk-D6QVXQNI.js";import"./chunks/chunk-UA744TZM.js";import"./chunks/chunk-RR7W7UF6.js";import"./chunks/chunk-S4GVQO3W.js";import"./chunks/chunk-UGTK2JIJ.js";import"./chunks/chunk-ZL5CEANW.js";import"./chunks/chunk-V4WSBIXB.js";export{r as appendClientNotice,y as archiveSession,t as compactSession,T as createSessionManager,c as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,S as forkSession,d as listRunningSessions,i as listSessions,a as loadFullTranscript,n as loadSession,o as restoreHistoryItemsFromSession,l as rewindSession,p as setActiveEntry,m as unarchiveSession,u as watchSessions};
|
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{
|
|
2
|
+
import{$b as R,Hb as l,Ib as e,Jb as i,Kb as t,Lb as a,Mb as o,Qb as k,Rb as r,Sb as S,Tb as s,Ub as n,Vb as g,Wb as u,Xb as c,Yb as x,Zb as d,_b as P,ac as h,bc as p,cc as v,dc as y,ec as M,fc as f,gc as m,hc as E}from"./chunks/chunk-UGTK2JIJ.js";import"./chunks/chunk-ZL5CEANW.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as KodaXGoalState, h as AgentMessage, bM as StopHookFn, af as KodaXSessionLineage, a4 as KodaXJsonValue, U as KodaXExtensionSessionRecord, f as Agent, c8 as WorkflowIsolation, V as KodaXExtensionSessionState, a6 as KodaXSessionArtifactLedgerEntry, bx as SessionErrorMetadata, al as KodaXSessionScope, am as KodaXSessionStorage, a2 as KodaXInputArtifact, C as ChildTaskRegistry, c5 as WorkflowEventCorrelation, x as CompactionUpdate, ch as WorkflowProcessEvent, c4 as WorkflowEvent, q as AskUserQuestionOptions, m as AskUserAnswer, o as AskUserMultiOptions, b0 as MemoryReviewPlan, b1 as MemoryReviewRunner, J as Guardrail, B as DiscoveredInstance, bQ as TaskAbortRegistry } from './process.d-CY2g03Mb.js';
|
|
2
2
|
import { $ as KodaXTokenUsage, j as KodaXMessage, a8 as KodaXWireReasoningEffort, T as KodaXTaskRoutingDecision, U as KodaXTaskType, V 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-Bp4Lm1jv.js';
|
|
3
3
|
import { d as SkillDynamicContextExecutor } from './types.d-vJExiRje.js';
|
|
4
4
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
@@ -1240,6 +1240,121 @@ interface ExtensionRuntimeContract extends CapabilityRuntimeContract {
|
|
|
1240
1240
|
*/
|
|
1241
1241
|
type ToolSideEffect = 'readonly' | 'reads-network' | 'mutates-fs' | 'mutates-shell' | 'mutates-network' | 'mutates-state';
|
|
1242
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* FEATURE_089 (v0.7.31) Phase 3.4 — Constructed Agent Resolver.
|
|
1245
|
+
*
|
|
1246
|
+
* Module-singleton registry mapping `name` → runnable `Agent` for
|
|
1247
|
+
* agents that have passed admission and been activated through
|
|
1248
|
+
* `ConstructionRuntime.activate()`. Mirrors the way TOOL_REGISTRY
|
|
1249
|
+
* holds activated constructed tools, but for agents.
|
|
1250
|
+
*
|
|
1251
|
+
* Why a separate registry (not in TOOL_REGISTRY):
|
|
1252
|
+
*
|
|
1253
|
+
* - Tools and Agents are different runtime types. A `KodaXToolDefinition`
|
|
1254
|
+
* has `input_schema` + `handler`; an `Agent` has `instructions` +
|
|
1255
|
+
* `tools` + `handoffs` + `reasoning`. Conflating them would force
|
|
1256
|
+
* consumers to discriminate on every lookup.
|
|
1257
|
+
* - Resolution semantics differ: a tool lookup returns the executable
|
|
1258
|
+
* handler; an agent lookup returns the declarative spec (Runner.run
|
|
1259
|
+
* drives the loop separately).
|
|
1260
|
+
*
|
|
1261
|
+
* Resolution surface:
|
|
1262
|
+
*
|
|
1263
|
+
* - `resolveConstructedAgent(name)` — name → Agent | undefined
|
|
1264
|
+
* - `listConstructedAgents()` — snapshot of activated agents
|
|
1265
|
+
* - `registerConstructedAgent(artifact)` → unregister fn (called by
|
|
1266
|
+
* runtime on activate, captured in the runtime's `_activated` map)
|
|
1267
|
+
* - `_resetAgentResolverForTesting()` — test isolation
|
|
1268
|
+
*
|
|
1269
|
+
* Tool / handoff ref resolution:
|
|
1270
|
+
* - Tool refs are resolved against TOOL_REGISTRY at activation time —
|
|
1271
|
+
* a snapshot. If a referenced tool is later revoked, the agent
|
|
1272
|
+
* keeps its stale ref; Phase 3.5 sandbox testing catches this.
|
|
1273
|
+
* - Handoff target refs lift to stub Agent objects (`name` only) when
|
|
1274
|
+
* the target hasn't been activated yet. Transitive admission ran
|
|
1275
|
+
* at test time so the graph is known to be acyclic; runtime
|
|
1276
|
+
* traversal just walks the names.
|
|
1277
|
+
*
|
|
1278
|
+
* Non-goal: full referential consistency between tools / agents /
|
|
1279
|
+
* handoffs. The threat model is single-user CLI integrity (DD §14.5);
|
|
1280
|
+
* stale refs are an LLM-authoring footgun, not a security bypass.
|
|
1281
|
+
*/
|
|
1282
|
+
|
|
1283
|
+
interface ConstructedAgentToolPolicy {
|
|
1284
|
+
readonly declaredTools: boolean;
|
|
1285
|
+
readonly effectiveToolNames: readonly string[];
|
|
1286
|
+
}
|
|
1287
|
+
interface KodaXAgentScope {
|
|
1288
|
+
readonly kind: 'constructed-agent-scope';
|
|
1289
|
+
readonly id: string;
|
|
1290
|
+
readonly disposed: boolean;
|
|
1291
|
+
resolve(name: string): ConstructedAgentEntry | undefined;
|
|
1292
|
+
list(): readonly ConstructedAgentEntry[];
|
|
1293
|
+
dispose(): void;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* FEATURE_191 — registration source enum. Used in-memory to disambiguate
|
|
1297
|
+
* which loader registered an agent so REPL `/agents list` can group by
|
|
1298
|
+
* origin and same-name precedence is enforced via load order rather
|
|
1299
|
+
* than a precedence stack. Not persisted to `AgentArtifact` (the
|
|
1300
|
+
* artifact schema stays untouched to avoid migration).
|
|
1301
|
+
*
|
|
1302
|
+
* Load-order convention (boot path registers in this order; subsequent
|
|
1303
|
+
* registrations overwrite earlier ones via last-write-wins):
|
|
1304
|
+
* built-in < extension < markdown:user < markdown:project <
|
|
1305
|
+
* constructed:cli < constructed:llm
|
|
1306
|
+
*/
|
|
1307
|
+
type ConstructedAgentSource = 'built-in' | 'extension' | 'markdown:user' | 'markdown:project' | 'constructed:cli' | 'constructed:llm';
|
|
1308
|
+
/**
|
|
1309
|
+
* Look up an activated constructed agent by name. Returns the
|
|
1310
|
+
* resolved `Agent` (with tools / handoffs lifted from refs). Returns
|
|
1311
|
+
* `undefined` when no agent at that name has been activated.
|
|
1312
|
+
*/
|
|
1313
|
+
declare function resolveConstructedAgent(name: string, scope?: KodaXAgentScope): Agent | undefined;
|
|
1314
|
+
/**
|
|
1315
|
+
* FEATURE_191 — enriched snapshot exposing both the resolved Agent and
|
|
1316
|
+
* the in-memory source tag. Consumers that need provenance (REPL
|
|
1317
|
+
* `/agents list --by-source`, debug surfaces) call this instead of
|
|
1318
|
+
* `listConstructedAgents()`. The plain-Agent list keeps its signature
|
|
1319
|
+
* for backward compatibility with all pre-FEATURE_191 callers.
|
|
1320
|
+
*
|
|
1321
|
+
* @internal v0.7.43 surface — exposed for the planned v0.7.46+
|
|
1322
|
+
* `/agents list` REPL command and for source-tag round-trip tests
|
|
1323
|
+
* (see `agent-resolver.test.ts` FEATURE_191 B.3 block). NOT yet a
|
|
1324
|
+
* stable SDK surface; embedders SHOULD continue using
|
|
1325
|
+
* `listConstructedAgents()` (which is byte-identical post-F191).
|
|
1326
|
+
* Promoted to public when the REPL `/agents list` consumer ships.
|
|
1327
|
+
*/
|
|
1328
|
+
interface ConstructedAgentEntry {
|
|
1329
|
+
readonly agent: Agent;
|
|
1330
|
+
readonly source: ConstructedAgentSource | undefined;
|
|
1331
|
+
readonly toolPolicy?: ConstructedAgentToolPolicy;
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* FEATURE_090 — `true` iff a self-modify activation has been staged
|
|
1335
|
+
* for `name` but has not yet been drained into the active registry.
|
|
1336
|
+
* Surfaces for tooling that wants to display "next run will use
|
|
1337
|
+
* version X" hints, and as a sanity-check assertion in tests.
|
|
1338
|
+
*/
|
|
1339
|
+
declare function hasPendingSwap(name: string): boolean;
|
|
1340
|
+
/**
|
|
1341
|
+
* FEATURE_090 — promote every pending self-modify entry into
|
|
1342
|
+
* `AGENT_REGISTRY`, replacing the prior active version. Returns the
|
|
1343
|
+
* names that were drained so the caller can surface a hint
|
|
1344
|
+
* ("alpha is now running version 1.1.0").
|
|
1345
|
+
*
|
|
1346
|
+
* Idempotent: calling on an empty pending map is a no-op. Atomic at
|
|
1347
|
+
* the JS event-loop level (a single synchronous pass); drain cannot
|
|
1348
|
+
* partially complete.
|
|
1349
|
+
*
|
|
1350
|
+
* Integration contract: the REPL surface calls this immediately after
|
|
1351
|
+
* any top-level `Runner.run` returns. KodaX is single-process and
|
|
1352
|
+
* single-user, so "the run that triggered the change" and "all
|
|
1353
|
+
* in-flight runs" are the same set — no concurrent-run coordination
|
|
1354
|
+
* needed.
|
|
1355
|
+
*/
|
|
1356
|
+
declare function drainPendingSwaps(): readonly string[];
|
|
1357
|
+
|
|
1243
1358
|
/**
|
|
1244
1359
|
* FEATURE_200 Phase F (v0.7.45) — Todo domain types extracted from types.ts.
|
|
1245
1360
|
* Self-contained (no other coding-type deps); re-exported from ../types.ts
|
|
@@ -1681,11 +1796,11 @@ interface KodaXEvents {
|
|
|
1681
1796
|
};
|
|
1682
1797
|
/** Tool execution hook - called before tool execution, return false to block - 工具执行前回调 */
|
|
1683
1798
|
beforeToolExecute?: (tool: string, input: Record<string, unknown>, meta?: KodaXToolEventMeta) => Promise<boolean | string>;
|
|
1684
|
-
/** Ask user a question interactively - Issue 069
|
|
1685
|
-
*
|
|
1686
|
-
askUser?: (options: AskUserQuestionOptions, meta?: KodaXToolEventMeta) => Promise<
|
|
1799
|
+
/** Ask user a question interactively - Issue 069. Select answers may be
|
|
1800
|
+
* strings, arrays, or structured custom-input answers. */
|
|
1801
|
+
askUser?: (options: AskUserQuestionOptions, meta?: KodaXToolEventMeta) => Promise<AskUserAnswer>;
|
|
1687
1802
|
/** Ask user multiple independent questions sequentially - 澶氶棶棰橀『搴忔彁闂?*/
|
|
1688
|
-
askUserMulti?: (options: AskUserMultiOptions, meta?: KodaXToolEventMeta) => Promise<Record<string,
|
|
1803
|
+
askUserMulti?: (options: AskUserMultiOptions, meta?: KodaXToolEventMeta) => Promise<Record<string, AskUserAnswer> | undefined>;
|
|
1689
1804
|
/** Ask user for free-text input - 自由文本输入 (Issue 112) */
|
|
1690
1805
|
askUserInput?: (options: {
|
|
1691
1806
|
question: string;
|
|
@@ -1701,6 +1816,8 @@ interface KodaXEvents {
|
|
|
1701
1816
|
* explicit error instead of a silent no-op.
|
|
1702
1817
|
*/
|
|
1703
1818
|
exitPlanMode?: (plan: string) => Promise<boolean | 'not-in-plan-mode'>;
|
|
1819
|
+
/** Semantic memory review plan produced from explicit user feedback. */
|
|
1820
|
+
onMemoryReview?: (plan: MemoryReviewPlan) => void;
|
|
1704
1821
|
}
|
|
1705
1822
|
/**
|
|
1706
1823
|
* Structured event emitted during provider recovery.
|
|
@@ -2300,6 +2417,12 @@ interface KodaXContextOptions {
|
|
|
2300
2417
|
inputArtifacts?: KodaXInputArtifact[];
|
|
2301
2418
|
/** Internal execution-mode overlay appended to the system prompt */
|
|
2302
2419
|
promptOverlay?: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* Scoped specialist-agent resolver for embedders that run multiple
|
|
2422
|
+
* projects/sessions in one process. When absent, constructed-agent
|
|
2423
|
+
* lookups use the legacy process-global registry.
|
|
2424
|
+
*/
|
|
2425
|
+
agentScope?: KodaXAgentScope;
|
|
2303
2426
|
/** Optional task-engine surface label used to track managed tasks across UX entry points. */
|
|
2304
2427
|
taskSurface?: KodaXTaskSurface;
|
|
2305
2428
|
/**
|
|
@@ -2479,6 +2602,7 @@ interface KodaXOptions {
|
|
|
2479
2602
|
session?: KodaXSessionOptions;
|
|
2480
2603
|
context?: KodaXContextOptions;
|
|
2481
2604
|
events?: KodaXEvents;
|
|
2605
|
+
memoryReviewer?: MemoryReviewRunner;
|
|
2482
2606
|
extensionRuntime?: ExtensionRuntimeContract;
|
|
2483
2607
|
/** FEATURE_229: host-owned policy for workflow auto-start and ceilings. */
|
|
2484
2608
|
workflowHostPolicy?: WorkflowHostPolicy;
|
|
@@ -2848,6 +2972,8 @@ interface KodaXToolExecutionContext {
|
|
|
2848
2972
|
* from `options.context.agentProfile`. Absent ⇒ default Coding Agent.
|
|
2849
2973
|
*/
|
|
2850
2974
|
agentProfile?: KodaXAgentProfile;
|
|
2975
|
+
/** Scoped specialist-agent resolver inherited from KodaXOptions.context. */
|
|
2976
|
+
agentScope?: KodaXAgentScope;
|
|
2851
2977
|
/** FEATURE_221: SDK-consumer self-manual injection, forwarded from KodaXOptions. */
|
|
2852
2978
|
selfManual?: KodaXSelfManualConfig;
|
|
2853
2979
|
/** FEATURE_222 skill security — host policy for skill `!`cmd`` dynamic-context,
|
|
@@ -2871,11 +2997,11 @@ interface KodaXToolExecutionContext {
|
|
|
2871
2997
|
workflowWorktreeBaseDir?: string;
|
|
2872
2998
|
/** Shared extension capability runtime used by retrieval-family tools. */
|
|
2873
2999
|
extensionRuntime?: CapabilityRuntimeContract;
|
|
2874
|
-
/** Ask user a question interactively (select mode) -
|
|
2875
|
-
*
|
|
2876
|
-
askUser?: (options: AskUserQuestionOptions) => Promise<
|
|
3000
|
+
/** Ask user a question interactively (select mode) - Issue 069. Select
|
|
3001
|
+
* answers may be strings, arrays, or structured custom-input answers. */
|
|
3002
|
+
askUser?: (options: AskUserQuestionOptions) => Promise<AskUserAnswer>;
|
|
2877
3003
|
/** Ask user multiple independent questions sequentially - 澶氶棶棰橀『搴忔彁闂?*/
|
|
2878
|
-
askUserMulti?: (options: AskUserMultiOptions) => Promise<Record<string,
|
|
3004
|
+
askUserMulti?: (options: AskUserMultiOptions) => Promise<Record<string, AskUserAnswer> | undefined>;
|
|
2879
3005
|
/** Ask user for free-text input - 自由文本输入 (Issue 112) */
|
|
2880
3006
|
askUserInput?: (options: {
|
|
2881
3007
|
question: string;
|
|
@@ -3413,5 +3539,5 @@ interface CreateBashPrefixExtractorOptions {
|
|
|
3413
3539
|
*/
|
|
3414
3540
|
declare function createBashPrefixExtractor(opts: CreateBashPrefixExtractorOptions): BashPrefixExtractor;
|
|
3415
3541
|
|
|
3416
|
-
export { BASH_POLICY_SPEC as B, LSP_SERVERS as
|
|
3417
|
-
export type {
|
|
3542
|
+
export { BASH_POLICY_SPEC as B, LSP_SERVERS as aC, LspService as aE, buildGoalRuntimeBinding as b7, createBashPrefixExtractor as b8, decideWorkflowInvocation as b9, drainPendingSwaps as ba, extractCommandPrefix as bb, getDefaultLspService as bc, hasPendingSwap as bd, makeDisabledGoalToolsContext as be, providerResilienceConfigFromTimeouts as bf, resolveConstructedAgent as bg, shutdownDefaultLspService as bh, withGoalBeforeNextTurn as bi, withGoalStopHook as bj, workflowStartOutcomeConsumesTurn as bk };
|
|
3543
|
+
export type { KodaXResult as $, KodaXManagedBudgetSnapshot as A, CapabilityRuntimeContract as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXManagedProtocolPayload as H, KodaXManagedTask as I, KodaXManagedTaskRuntimeState as J, KodaXActivityEventMeta as K, KodaXManagedTaskStatusEvent as L, KodaXManualSource as M, KodaXManualTopic as N, KodaXManualTopicId as O, KodaXManualTopicInput as P, KodaXMemoryStrategy as Q, KodaXOptions as R, KodaXOrchestrationVerdict as S, KodaXParentReductionContract as T, KodaXProviderPolicyHints as U, KodaXRepoIntelligenceCapability as V, KodaXRepoIntelligenceMode as W, KodaXRepoIntelligenceResolvedMode as X, KodaXRepoIntelligenceTrace as Y, KodaXRepoIntelligenceTraceEvent as Z, KodaXRepoRoutingSignals as _, BashPrefixExtractor as a, WorkflowInvocationPolicyInput as a$, KodaXRoleRoundSummary as a0, KodaXRuntimeVerificationContract as a1, KodaXSelfManualConfig as a2, KodaXSessionControl as a3, KodaXSessionMutators as a4, KodaXSessionOptions as a5, KodaXSidecarMessageEvent as a6, KodaXSkillDynamicContextPolicy as a7, KodaXSkillInvocationContext as a8, KodaXSkillMap as a9, KodaXWorkflowEventMeta as aA, KodaXWorkflowTimeoutConfig as aB, LspServerInfo as aD, LspServiceConfig as aF, ProviderExecutionState as aG, ProviderRecoveryEvent as aH, ProviderResilienceConfig as aI, ProviderResiliencePolicy as aJ, RecoveryAction as aK, RecoveryDecision as aL, RecoveryLadderStep as aM, RecoveryResult as aN, ResilienceClassification as aO, ResilienceErrorClass as aP, ResolveKodaXManualInput as aQ, ResolveKodaXManualOptions as aR, ResolveKodaXManualResult as aS, RuntimeDefaultsSnapshot as aT, TodoItem as aU, TodoList as aV, TodoStatus as aW, ToolSideEffect as aX, WorkflowHostPolicy as aY, WorkflowInvocationAction as aZ, WorkflowInvocationPolicyDecision as a_, KodaXSkillProjectionConfidence as aa, KodaXTaskCapabilityHint as ab, KodaXTaskContract as ac, KodaXTaskEvidenceArtifact as ad, KodaXTaskEvidenceBundle as ae, KodaXTaskEvidenceEntry as af, KodaXTaskRole as ag, KodaXTaskRoleAssignment as ah, KodaXTaskStatus as ai, KodaXTaskSurface as aj, KodaXTaskToolPolicy as ak, KodaXTaskVerificationContract as al, KodaXTaskVerificationCriterion as am, KodaXTaskWorkItem as an, KodaXTimeoutConfig as ao, KodaXToolEventMeta as ap, KodaXToolExecutionContext as aq, KodaXToolVisibilityMeta as ar, KodaXToolVisibilityPolicy as as, KodaXTurnCompletedEvent as at, KodaXTurnDeliveryKind as au, KodaXTurnFailedEvent as av, KodaXTurnStartedEvent as aw, KodaXVerificationScorecard as ax, KodaXVerificationScorecardCriterion as ay, KodaXWorkflowAgentDigestEvent as az, BashPrefixResult as b, WorkflowInvocationSource as b0, WorkflowRunProgressView as b1, WorkflowStartOutcome as b2, WorkflowToolHost as b3, WorkflowToolHostInlineInput as b4, WorkflowToolHostResult as b5, WorkflowToolHostStartResult as b6, 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, KodaXAgentScope as o, KodaXBudgetDisclosureZone as p, KodaXBudgetExtensionRequest as q, KodaXChildAgentResult as r, KodaXChildContextBundle as s, KodaXChildExecutionResult as t, KodaXCompactionOverride as u, KodaXContextOptions as v, KodaXContextTokenSnapshot as w, KodaXEffectiveTaskConfig as x, KodaXEvents as y, KodaXLiveEventMeta 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-DalIRhbb.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
|
|
4
|
-
import {
|
|
5
|
-
import { g as ToolGuardrail } from './types.d-
|
|
4
|
+
import { bq as RunnerToolCall } from './process.d-CY2g03Mb.js';
|
|
5
|
+
import { g as ToolGuardrail } from './types.d-1CnTg7Sd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|