@kodax-ai/kodax 0.7.79 → 0.7.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -12
- package/README.md +31 -8
- package/README_CN.md +25 -5
- package/config-templates/config.example.jsonc +14 -2
- package/dist/chunks/agent-5PHGNFW3.js +2 -0
- package/dist/chunks/argument-completer-FXRZFMTC.js +2 -0
- package/dist/chunks/{chunk-H5LLM7DB.js → chunk-6UENDY33.js} +2 -2
- package/dist/chunks/{chunk-QCZLCLFL.js → chunk-BWX4YZX3.js} +2 -2
- package/dist/chunks/{chunk-EDZ4QILG.js → chunk-CDCCTM5I.js} +17 -5
- package/dist/chunks/chunk-CEB5FDND.js +810 -0
- package/dist/chunks/{chunk-M4N2JZTZ.js → chunk-E7C4DRD2.js} +1 -1
- package/dist/chunks/{chunk-GEECPO2H.js → chunk-EVXIJPZ6.js} +66 -66
- package/dist/chunks/chunk-FQ7NVMSU.js +319 -0
- package/dist/chunks/chunk-GC4JBMBS.js +385 -0
- package/dist/chunks/{chunk-67THZRM6.js → chunk-HTVLCHWH.js} +1 -1
- package/dist/chunks/chunk-IHPH3444.js +655 -0
- package/dist/chunks/{chunk-OWQT3FTE.js → chunk-KHEFUT6O.js} +1 -1
- package/dist/chunks/{chunk-BBOVVDQJ.js → chunk-PMKAG4SZ.js} +1 -1
- package/dist/chunks/chunk-RPF5RGWZ.js +479 -0
- package/dist/chunks/{chunk-CXHEZY5G.js → chunk-RXXKDR6Y.js} +1 -1
- package/dist/chunks/{chunk-6GVQDQTQ.js → chunk-T5U4OP2N.js} +1 -1
- package/dist/chunks/{chunk-SG6P4SZS.js → chunk-TRNAWSXP.js} +21 -21
- package/dist/chunks/{chunk-CR2IF7VF.js → chunk-UZSHBQER.js} +5 -5
- package/dist/chunks/{chunk-B6UY3VHV.js → chunk-VECRQTSD.js} +44 -44
- package/dist/chunks/compaction-config-6J6XCBJS.js +2 -0
- package/dist/chunks/{construction-bootstrap-K3ZGEN5N.js → construction-bootstrap-KPCAE3VN.js} +1 -1
- package/dist/chunks/dist-RWEVZOFK.js +2 -0
- package/dist/chunks/{dist-JMO47GJV.js → dist-WWL2DNIJ.js} +1 -1
- package/dist/chunks/host-OGS2R5J4.js +2 -0
- package/dist/chunks/run-manager-2YMM3BOT.js +2 -0
- package/dist/chunks/{utils-6LEKJPQN.js → utils-2YHRUZYC.js} +1 -1
- package/dist/index.d.ts +13 -12
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1301 -1285
- package/dist/kodax_resume.js +63 -63
- package/dist/runtime-worker.js +1205 -1189
- package/dist/sandbox-workspace-session.js +43 -43
- package/dist/sdk-a2a.d.ts +8 -8
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +15 -17
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +171 -20
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +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 +19 -200
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +11 -8
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +44 -44
- package/dist/types-chunks/{bash-prefix-extractor.d-CNSidpmv.d.ts → bash-prefix-extractor.d-DStqKIlu.d.ts} +4 -2
- package/dist/types-chunks/{capsule.d-B3q98pLQ.d.ts → capsule.d-BuFJaYxA.d.ts} +6 -15
- package/dist/types-chunks/{controller.d-RGV7Pjv9.d.ts → controller.d-C2aHqzHj.d.ts} +18 -10
- package/dist/types-chunks/{guardrail.d-1NLSFTyN.d.ts → guardrail.d-DM-OK0m3.d.ts} +74 -77
- package/dist/types-chunks/{history-retrieval.d-BAegI14A.d.ts → history-retrieval.d-DImTKgO6.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-BpJhHoa7.d.ts → public-api.d-CewTvUKV.d.ts} +5 -17
- package/dist/types-chunks/{repl.d-CZ12Ow3X.d.ts → repl.d-DvXQtgr7.d.ts} +5 -5
- package/dist/types-chunks/{run-manager.d-CX3AUocA.d.ts → run-manager.d-C6ahvZqK.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-B3cfJKqF.d.ts → sdk-session-C59RUrri.d.ts} +2 -2
- package/dist/types-chunks/shell-command-sets.d-Dp4UvPLL.d.ts +297 -0
- package/dist/types-chunks/{types.d-BZ9oXvTV.d.ts → types.d-BzpPDBPV.d.ts} +1 -1
- package/dist/types-chunks/{types.d-C0_rn--1.d.ts → types.d-yuJzE82x.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-CGpHavsU.d.ts → utils.d-BpACJmzt.d.ts} +15 -5
- package/docs/SDK_EMBEDDER_GUIDE.md +36 -32
- package/package.json +3 -3
- package/dist/chunks/agent-V4AC5JZD.js +0 -2
- package/dist/chunks/argument-completer-ZPC2MLES.js +0 -2
- package/dist/chunks/chunk-KLWP7POA.js +0 -467
- package/dist/chunks/chunk-Q4M7DJOD.js +0 -319
- package/dist/chunks/chunk-RQPMGRTR.js +0 -810
- package/dist/chunks/chunk-TSTVAU5E.js +0 -386
- package/dist/chunks/chunk-ZCZZUE5E.js +0 -662
- package/dist/chunks/compaction-config-AEUGVROL.js +0 -2
- package/dist/chunks/dist-GFJFRPAV.js +0 -2
- package/dist/chunks/host-23K2Q6RZ.js +0 -2
- package/dist/chunks/run-manager-PGIR6ITA.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bI as KodaXGoalState, ae as AgentMessage,
|
|
1
|
+
import { bI as KodaXGoalState, ae as AgentMessage, er as StopHookFn, c1 as KodaXSessionLineage, o as AgentActorStore, aI as AgentTurnExecutor, x as AgentBudgetPort, j as AgentActorOwner, D as AgentControllerHealth, h as AgentActorClient, T as AgentExecutionResult, $ as AgentExecutorPlaneBinding, bO as KodaXJsonValue, bC as KodaXExtensionSessionRecord, f as Agent, eT as WorkflowIsolation, bD as KodaXExtensionSessionState, bU as KodaXSessionArtifactLedgerEntry, eb as SessionErrorMetadata, c9 as KodaXSessionScope, ca as KodaXSessionStorage, bp as GuardrailPermissionIntent, db as MemoryContextIdentity, dn as MemoryPack, aQ as AskUserQuestionOptions, aM as AskUserAnswer, aO as AskUserMultiOptions, eQ as WorkflowEventCorrelation, a_ as CompactionUpdate, f5 as WorkflowProcessEvent, eP as WorkflowEvent, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, bl as Guardrail, b5 as DiscoveredInstance, bM as KodaXInputArtifact, dD as MemoryReviewRunner, eH as UnifiedLearningReviewRunner } from './controller.d-C2aHqzHj.js';
|
|
2
2
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
3
3
|
import { a1 as KodaXTokenUsage, k as KodaXMessage, a2 as KodaXToolDefinition, aa as KodaXWireReasoningEffort, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, R as KodaXTaskComplexity, M as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, G as KodaXReasoningMode, L as KodaXReviewScale } from './types.d-CgrXrFrq.js';
|
|
4
4
|
import { d as SkillDynamicContextExecutor, I as ISkillRegistry } from './types.d-BbtGlKZu.js';
|
|
@@ -1364,7 +1364,7 @@ interface ExtensionRuntimeContract extends CapabilityRuntimeContract {
|
|
|
1364
1364
|
* eligibility is still driven by `planModeAllowed`,
|
|
1365
1365
|
* unchanged.
|
|
1366
1366
|
* - `'mutates-network'` — performs a network request that may mutate remote
|
|
1367
|
-
* state (
|
|
1367
|
+
* state (for example mcp_call).
|
|
1368
1368
|
* - `'mutates-state'` — changes internal session/agent state without
|
|
1369
1369
|
* FS or shell side effects (todo_update,
|
|
1370
1370
|
* send_message, spawn_agent, followup_task,
|
|
@@ -1850,10 +1850,12 @@ interface KodaXEvents {
|
|
|
1850
1850
|
onTurnStarted?: (event: KodaXTurnStartedEvent) => void;
|
|
1851
1851
|
onTurnCompleted?: (event: KodaXTurnCompletedEvent) => void;
|
|
1852
1852
|
onTurnFailed?: (event: KodaXTurnFailedEvent) => void;
|
|
1853
|
+
/** `maxIter` is the active Runner invocation's fuse, not a task-wide budget. */
|
|
1853
1854
|
onIterationStart?: (iter: number, maxIter: number, meta?: KodaXActivityEventMeta) => void;
|
|
1854
1855
|
/** Called after each iteration with current token count for UI updates */
|
|
1855
1856
|
onIterationEnd?: (info: {
|
|
1856
1857
|
iter: number;
|
|
1858
|
+
/** Active Runner invocation fuse; zero is reserved for unbounded callers. */
|
|
1857
1859
|
maxIter: number;
|
|
1858
1860
|
tokenCount: number;
|
|
1859
1861
|
tokenSource: 'api' | 'estimate';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
|
-
import { ae as AgentMessage,
|
|
2
|
+
import { ae as AgentMessage, ea as SessionEntry, e8 as Session, ec as SessionExtension, c1 as KodaXSessionLineage, bO as KodaXJsonValue, aW as CompactionDetails, bB as KodaXCompactMemorySeed, bZ as KodaXSessionEntry, cb as KodaXSessionTreeNode, c0 as KodaXSessionLabelEntry, b$ as KodaXSessionGoalEntry, bW as KodaXSessionClientNoticeEntry, c7 as KodaXSessionRewindMarkerEntry, c2 as KodaXSessionMemoryOutcomeDigestEntry, c3 as KodaXSessionMemoryReviewReceiptEntry, c6 as KodaXSessionNavigationOptions, bU as KodaXSessionArtifactLedgerEntry, bj as FileOperations, eW as WorkflowMeta, eX as WorkflowModelHint, eY as WorkflowModule } from './controller.d-C2aHqzHj.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @kodax-ai/agent Constants
|
|
@@ -18,24 +18,15 @@ declare const KODAX_API_MIN_INTERVAL = 0.5;
|
|
|
18
18
|
declare const PROMISE_PATTERN: RegExp;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Provider-neutral, non-blocking token estimation.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* This intentionally avoids Provider-specific BPE vocabularies on the main
|
|
24
|
+
* runtime thread. Provider usage remains the authoritative context baseline;
|
|
25
|
+
* these estimates account for new messages and enforce protective budgets.
|
|
24
26
|
*/
|
|
25
27
|
|
|
26
|
-
/**
|
|
27
|
-
* 估算消息的 token 数量
|
|
28
|
-
*
|
|
29
|
-
* 精确计算包括:
|
|
30
|
-
* - 消息结构开销(每条约 4 tokens)
|
|
31
|
-
* - 角色标识
|
|
32
|
-
* - 内容文本
|
|
33
|
-
* - 工具调用和结果
|
|
34
|
-
*/
|
|
35
28
|
declare function estimateTokens(messages: readonly KodaXMessage[]): number;
|
|
36
|
-
/**
|
|
37
|
-
* 计算单个文本的 token 数量(便捷函数)
|
|
38
|
-
*/
|
|
29
|
+
/** Estimate a text value without loading a BPE vocabulary or token array. */
|
|
39
30
|
declare function countTokens(text: string): number;
|
|
40
31
|
|
|
41
32
|
/**
|
|
@@ -2233,16 +2233,17 @@ interface RunOptions {
|
|
|
2233
2233
|
readonly permissionIntent?: GuardrailPermissionIntent;
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Per-run override for the tool-loop iteration cap. When omitted, the
|
|
2236
|
-
* loop uses `MAX_TOOL_LOOP_ITERATIONS` (20)
|
|
2237
|
-
* stand-alone
|
|
2238
|
-
*
|
|
2239
|
-
* higher cap because the iteration counter is shared across every
|
|
2240
|
-
* role in the chain. Legacy `runManagedTask` gave each role its own
|
|
2241
|
-
* `DEFAULT_MANAGED_WORK_BUDGET` (200) — the Runner-driven path passes
|
|
2242
|
-
* that value here so long investigations don't trip the safety valve
|
|
2243
|
-
* after ~20 tool calls.
|
|
2236
|
+
* loop uses `MAX_TOOL_LOOP_ITERATIONS` (20), a safe ceiling for
|
|
2237
|
+
* stand-alone runs. Terminal continuations may consume the Runner's small
|
|
2238
|
+
* bounded continuation reserve unless `maxTotalIterations` narrows it.
|
|
2244
2239
|
*/
|
|
2245
2240
|
readonly maxToolLoopIterations?: number;
|
|
2241
|
+
/**
|
|
2242
|
+
* Optional absolute per-run ceiling that continuation reserves cannot
|
|
2243
|
+
* extend. Callers that omit it retain the bounded continuation reserve;
|
|
2244
|
+
* managed orchestration uses it as a mechanical runaway fuse.
|
|
2245
|
+
*/
|
|
2246
|
+
readonly maxTotalIterations?: number;
|
|
2246
2247
|
/**
|
|
2247
2248
|
* v0.7.26 parity: observer callbacks fired around every tool
|
|
2248
2249
|
* invocation. Legacy `runManagedTask` emitted `events.onToolResult`
|
|
@@ -2525,6 +2526,13 @@ interface RunnerRecoveryTranscriptCarrier {
|
|
|
2525
2526
|
}
|
|
2526
2527
|
declare function attachRunnerRecoveryTranscript(error: Error, messages: readonly AgentMessage[]): void;
|
|
2527
2528
|
declare function readRunnerRecoveryTranscript(error: unknown): readonly AgentMessage[] | undefined;
|
|
2529
|
+
/** Structured failure emitted when a Runner exhausts its mechanical fuse. */
|
|
2530
|
+
declare class RunnerIterationLimitError extends Error {
|
|
2531
|
+
readonly code = "RUNNER_ITERATION_LIMIT";
|
|
2532
|
+
readonly limitReached = true;
|
|
2533
|
+
constructor(message: string, messages: readonly AgentMessage[]);
|
|
2534
|
+
}
|
|
2535
|
+
declare function isRunnerIterationLimitError(error: unknown): error is RunnerIterationLimitError;
|
|
2528
2536
|
/**
|
|
2529
2537
|
* Stream events emitted by `Runner.runStream`. The event surface is
|
|
2530
2538
|
* intentionally small in v0.7.23; FEATURE_084 expands it to mirror the
|
|
@@ -4917,5 +4925,5 @@ declare class AgentActorController {
|
|
|
4917
4925
|
}
|
|
4918
4926
|
declare function createAgentActorController(options?: AgentControllerOptions): Promise<AgentActorController>;
|
|
4919
4927
|
|
|
4920
|
-
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, DEFAULT_SYSTEM_CAP as b2, GuardrailBlockedError as bm, GuardrailEscalateError as bo, InvariantSession as bz, MAX_TOOL_LOOP_ITERATIONS as c$, LearningCapabilityError as cK, LearnedAreaStore as cn, Runner as dY, Tracer as
|
|
4921
|
-
export type { AgentExecutorPlaneBinding as $, AgentCapabilityRequirements as B, AgentContinuationInput as C, AgentControllerHealth as D, AgentControllerOptions as E, AgentCredentialBroker as F, AgentDataClassification as G, AgentDetail as H, AgentDispatchContext as I, AgentDispatchPolicy as J, AgentDispatchPolicyDecision as K, AgentDispatchPolicyInput as L, AgentDispatchabilitySnapshot as M, AgentDispatchabilityStatus as N, AgentEffectDeclaration as O, AgentEvent as P, AgentEventKind as Q, AgentExecutionInput as R, AgentExecutionKind as S, AgentExecutionResult as T, AgentExecutor as U, AgentExecutorEvent as V, AgentExecutorFactory as W, AgentExecutorFactoryContext as X, AgentExecutorPlane as Y, AgentExecutorPlaneBackgroundErrorContext as Z, AgentExecutorPlaneBackgroundErrorHandler as _, CreateAgentExecutorPlaneOptions as a$, AgentExecutorPlaneStore as a0, AgentExecutorPreflightResult as a1, AgentExecutorProtocol as a2, AgentExecutorTaskReference as a3, AgentExecutorTaskSnapshot as a4, AgentFollowupResult as a5, AgentForkTurns as a6, AgentInterruptScope as a7, AgentJsonObject as a8, AgentJsonValue as a9, AgentTaskService as aA, AgentTaskSnapshot as aB, AgentTaskStartInput as aC, AgentTaskState as aD, AgentTaskUsage as aE, AgentTool as aF, AgentTreeSnapshot as aG, AgentTurn as aH, AgentTurnExecutor as aI, AgentTurnRef as aJ, AgentTurnState as aK, AgentTurnSummary as aL, AskUserAnswer as aM, AskUserCustomInputAnswer as aN, AskUserMultiOptions as aO, AskUserQuestionItem as aP, AskUserQuestionOptions as aQ, AskUserSelectionAnswer as aR, CapabilitySupport as aS, CommitLearnedSkillRevisionInput as aT, CompactionAnchor as aU, CompactionConfig as aV, CompactionDetails as aW, CompactionReport as aX, CompactionResult as aY, CompactionSpanData as aZ, CompactionUpdate as a_, AgentLimitReached as aa, AgentListEntry as ab, AgentMailboxMessage as ac, AgentManifest as ad, AgentMessage as ae, AgentMetadataValue as af, AgentMiddlewareDeclaration as ag, AgentMutationOptions as ah, AgentOutput as ai, AgentPreflightInput as aj, AgentPreflightResult as ak, AgentProgressItem as al, AgentProgressKind as am, AgentProgressUpdate as an, AgentReasoningProfile as ao, AgentRegistrationEnabledMutationOptions as ap, AgentRegistrationMutationOptions as aq, AgentRegistrationService as ar, AgentSpanData as as, AgentSpawnInput as at, AgentTaskCancellation as au, AgentTaskCorrelation as av, AgentTaskEvent as aw, AgentTaskFilter as ax, AgentTaskProgress as ay, AgentTaskRegistrationSnapshot as az, AdmissionAuditOptions as b, KodaXSessionGoalEntry as b$, CreateLearnedSkillRecordInput as b0, CurrentTodoSummary as b1, DeclarativeSkillSpec as b3, Deliverable as b4, DiscoveredInstance as b5, DiscoveryOptions as b6, DispatchableAgentDescriptor as b7, DispatchableAgentListing as b8, DispatchableAgentOrigin as b9, KodaXCompactMemoryProgress as bA, KodaXCompactMemorySeed as bB, KodaXExtensionSessionRecord as bC, KodaXExtensionSessionState as bD, KodaXExtensionStore as bE, KodaXExtensionStoreEntry as bF, KodaXFileInputArtifact as bG, KodaXGoalEventType as bH, KodaXGoalState as bI, KodaXGoalStatus as bJ, KodaXImageInputArtifact as bK, KodaXImageMediaType as bL, KodaXInputArtifact as bM, KodaXInputArtifactSource as bN, KodaXJsonValue as bO, KodaXMemoryInfluenceRef as bP, KodaXMemoryIntent as bQ, KodaXMemoryOutcomeDigest as bR, KodaXMemoryOutcomeEvidence as bS, KodaXSessionArchiveMarkerEntry as bT, KodaXSessionArtifactLedgerEntry as bU, KodaXSessionBranchSummaryEntry as bV, KodaXSessionClientNoticeEntry as bW, KodaXSessionCompactionEntry as bX, KodaXSessionData as bY, KodaXSessionEntry as bZ, KodaXSessionEntryBase as b_, DispatchableAgentQuery as ba, EvidenceSpanData as bb, ExactInvokedSkillSnapshot as bc, ExternalAgentEffectDeclaration as bd, ExternalAgentHealth as be, ExternalAgentProtocol as bf, ExternalAgentRegistration as bg, ExternalAgentRegistrationSummary as bh, FanoutSpanData as bi, FileOperations as bj, GenerationSpanData as bk, Guardrail as bl, GuardrailContext as bn, GuardrailPermissionIntent as bp, GuardrailSpanData as bq, GuardrailVerdict as br, Handoff as bs, HandoffSpanData as bt, InMemorySessionOptions as bu, InputGuardrail as bv, InstanceDiscoveryFs as bw, InvariantId as bx, InvariantResult as by, AdmissionCtx as c, KodaXSessionLabelEntry as c0, KodaXSessionLineage as c1, KodaXSessionMemoryOutcomeDigestEntry as c2, KodaXSessionMemoryReviewReceiptEntry as c3, KodaXSessionMessageEntry as c4, KodaXSessionMeta as c5, KodaXSessionNavigationOptions as c6, KodaXSessionRewindMarkerEntry as c7, KodaXSessionRuntimeInfo as c8, KodaXSessionScope as c9, LearnedSkillBindingAdmission as cA, LearnedSkillCanaryOutcome as cB, LearnedSkillDecisionDisposition as cC, LearnedSkillInvocationAdmission as cD, LearnedSkillInvokedReceipt as cE, LearnedSkillOfferedReceipt as cF, LearnedSkillOutcomeReceipt as cG, LearnedSkillUsageReceipt as cH, LearningAction as cI, LearningActionDriver as cJ, LearningCapabilityErrorCode as cL, LearningClientEventState as cM, LearningClientRecord as cN, LearningEvent as cO, LearningEventKind as cP, LearningExplicitUserAuthority as cQ, LearningNotificationState as cR, LearningPage as cS, LearningQuery as cT, LearningReviewEvidencePacket as cU, LearningReviewQualification as cV, LearningReviewVerifierFact as cW, LearningSubscribeOptions as cX, LearningSurfaceSnapshot as cY, LocalAgentTaskInput as cZ, LocalAgentTaskUpdate as c_, KodaXSessionStorage as ca, KodaXSessionTreeNode as cb, KodaXSessionUiHistoryItem as cc, KodaXSessionUiHistoryItemType as cd, KodaXSessionUiTextHistoryItem as ce, KodaXSessionUiTextHistoryItemType as cf, KodaXSessionUiToolCall as cg, KodaXSessionUiToolCallStatus as ch, KodaXSessionUiToolGroupHistoryItem as ci, KodaXSessionWorkspaceKind as cj, KodaXVideoInputArtifact as ck, KodaXVideoMediaType as cl, LearnedAreaPaths as cm, LearnedCapabilityArtifact as co, LearnedCapabilityCanary as cp, LearnedCapabilityCanaryBinding as cq, LearnedCapabilityCanaryInvocation as cr, LearnedCapabilityCarrier as cs, LearnedCapabilityLifecycle as ct, LearnedCapabilityProvenance as cu, LearnedCapabilityRecord as cv, LearnedCapabilityRecordV1 as cw, LearnedCapabilityRecordV2 as cx, LearnedCapabilityScope as cy, LearnedCapabilitySource as cz, AdmissionVerdict as d, RunnerLlmReturn as d$, ManifestPatch as d0, MemoryActionProposal as d1, MemoryApplicability as d2, MemoryApplyPreview as d3, MemoryApplyResult as d4, MemoryApproval as d5, MemoryAuthority as d6, MemoryAutoCuratorInput as d7, MemoryAutoCuratorResult as d8, MemoryBodySnapshot as d9, MemoryReviewPersistenceDecision as dA, MemoryReviewPersistenceKind as dB, MemoryReviewPlan as dC, MemoryReviewRunner as dD, MemoryReviewTrigger as dE, MemoryScope as dF, MemorySourceAdapter as dG, MemoryVisibility as dH, MessageEntry as dI, NormalizedLearnedSkillDecision as dJ, ObserveCtx as dK, OutputGuardrail as dL, PersistedSessionState as dM, PresetDispatcher as dN, PresetTracingContext as dO, QualityInvariant as dP, ReadonlyMutationTracker as dQ, ReadonlyRecorder as dR, ReasoningDepth as dS, RecentlyModifiedFile as dT, RunEvent as dU, RunOptions as dV, RunResult as dW, RunnableTool as dX, RunnerEvent as dZ, RunnerLlmResult as d_, MemoryClaimKind as da, MemoryContextIdentity as db, MemoryController as dc, MemoryCuratorInput as dd, MemoryDecisionTraceReceipt as de, MemoryEpisodeReviewResult as df, MemoryEvent as dg, MemoryGovernanceFinding as dh, MemoryGovernanceFindingKind as di, MemoryGovernanceReport as dj, MemoryItemRef as dk, MemoryLifecycle as dl, MemoryLifecycleOperationResult as dm, MemoryPack as dn, MemoryPackHint as dp, MemoryPackInput as dq, MemoryPackTraceMetadata as dr, MemoryProposalAction as ds, MemoryRefFilter as dt, MemoryRefKind as du, MemoryRejectResult as dv, MemoryReviewCandidateRef as dw, MemoryReviewDraftAction as dx, MemoryReviewInput as dy, MemoryReviewModelInput as dz, AdmittedHandle as e, WorkflowOutcomeStatus as e$, RunnerRecoveryTranscriptCarrier as e0, RunnerToolCall as e1, RunnerToolContext as e2, RunnerToolObserver as e3, RunnerToolResult as e4, RunnerToolResultBatch as e5, RunnerToolResultBatchTransform as e6, Session as e7, SessionDispatchResult as e8, SessionEntry as e9, Trace as eA, TraceOptions as eB, TracerOptions as eD, UnifiedLearningReviewModelInput as eE, UnifiedLearningReviewResult as eF, UnifiedLearningReviewRunner as eG, UserInteraction as eH, WorkflowAgentBackend as eI, WorkflowApi as eJ, WorkflowApproval as eK, WorkflowApprovalSummary as eL, WorkflowArtifactRef as eM, WorkflowBudget as eN, WorkflowEvent as eO, WorkflowEventCorrelation as eP, WorkflowEventType as eR, WorkflowIsolation as eS, WorkflowLimits as eT, WorkflowLogEvent as eU, WorkflowMeta as eV, WorkflowModelHint as eW, WorkflowModule as eX, WorkflowOutcome as eY, WorkflowOutcomeError as eZ, WorkflowOutcomeResult as e_, SessionErrorMetadata as ea, SessionExtension as eb, SessionForkOptions as ec, SessionMeta as ed, SessionStateSnapshot as ee, Span as ef, SpanData as eg, SpanError as eh, SpanImplOptions as ej, StagedLearnedSkillArtifact as ek, StartTraceOptions as el, StateWriter as em, StateWriterFs as en, StateWriterOptions as eo, StopHookContext as ep, StopHookFn as eq, StopHookResult as er, StopHookSpanData as es, SystemCap as et, TerminalCtx as eu, ToolBeforeOutcome as ev, ToolCallSpanData as ew, ToolCapability as ex, ToolGuardrail as ey, ToolPermission as ez, Agent as f, WorkflowOutcomeUsage as f0, WorkflowParallelOptions as f1, WorkflowProcessArtifact as f2, WorkflowProcessCounts as f3, WorkflowProcessEvent as f4, WorkflowProcessItem as f5, WorkflowProcessItemKind as f6, WorkflowProcessItemOrigin as f7, WorkflowProcessItemStatus as f8, WorkflowProcessProgress as f9, WorkflowProcessSnapshot as fa, WorkflowProcessSource as fb, WorkflowProcessStatus as fc, WorkflowProcessSummaryStatus as fd, WorkflowProcessTokenUsage as fe, WorkflowProcessTracker as ff, WorkflowProcessTrackerOptions as fg, WorkflowRun as fh, WorkflowRunState as fi, WorkflowRunStatus as fj, WorkflowSpawnAgentInput as fk, WorkflowSynthesis as fl, WorkflowSynthesizeInput as fm, WorkflowTaskHandle as fn, WorkflowTaskResult as fo, WorkflowTaskSnapshot as fp, WorkflowTaskStatus as fq, WorkflowTaskSummaryEventUpdate as fr, WorkflowTaskSummaryKind as fs, WorkflowTaskSummaryUpdate as ft, WorkflowTaskUsage as fu, WorkflowTaskVerification as fv, WorkflowTaskVerificationResult as fw, WorkflowWaitOptions as fx, AgentActor as g, AgentActorClient as h, AgentActorOwner as j, AgentActorSnapshot as k, AgentActorSnapshotV1 as l, AgentActorSnapshotV2 as m, AgentActorState as n, AgentActorStore as o, AgentArtifactDescriptor as p, AgentArtifactPolicy as q, AgentArtifactPolicyDecision as r, AgentArtifactPolicyInput as s, AgentArtifactReference as t, AgentBudgetAdmission as u, AgentBudgetAdmissionInput as v, AgentBudgetExhausted as w, AgentBudgetPort as x, AgentCapabilities as y, AgentCapabilityDeclaration as z };
|
|
4928
|
+
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, DEFAULT_SYSTEM_CAP as b2, GuardrailBlockedError as bm, GuardrailEscalateError as bo, InvariantSession as bz, MAX_TOOL_LOOP_ITERATIONS as c$, LearningCapabilityError as cK, LearnedAreaStore as cn, Runner as dY, RunnerIterationLimitError as d_, Tracer as eD, WorkflowEventRecorder as eR, SpanImpl as ej, eventFromCapability as f$, _resetPresetDispatchers as fA, admitAndRecordLearnedSkillInvocation as fB, admitLearnedSkillBinding as fC, asSingleSelection as fD, assertLearnedCapabilityTransition as fE, attachRunnerRecoveryTranscript as fF, buildAssistantMessageFromLlmResult as fG, buildSystemPrompt as fH, buildToolResultMessage as fI, canTransitionLearnedCapability as fJ, collectGuardrails as fK, commitLearnedSkillRevision as fL, completeLearnedSkillOutcome as fM, completeLearnedSkillSessionOutcomes as fN, createAgent as fO, createAgentActorController as fP, createHandoff as fQ, createInMemorySession as fR, createInvariantSessionForAgent as fS, createLearnedCapabilityScope as fT, createLearnedSkillRecord as fU, createStateWriter as fV, createTrace as fW, createWorkflowProcessTracker as fX, defaultTracer as fY, detectInstructionsInjection as fZ, discoverInstances as f_, _resetAdmittedAgentBindings as fz, exactInvokedSkillSnapshotForSession as g0, executeRunnerToolCall as g1, extractAssistantTextFromMessage as g2, getActiveUserInteraction as g3, getAdmittedAgentBindings as g4, hashMemoryIdentityComponent as g5, invokeLearnedSkillCanary as g6, isAskUserCustomInputAnswer as g7, isFinalWorkflowProcessStatus as g8, isLearnedCapabilityRecordV2 as g9, setActiveUserInteraction as gA, setAdmittedAgentBindings as gB, slugifyLearnedCapabilityName as gC, stageLearnedSkillRevision as gD, validateDeclarativeSkillSpec as gE, isRunnableTool as ga, isRunnerIterationLimitError as gb, isRunnerLlmResult as gc, isUnifiedLearningReviewModelInput as gd, learningEventIdFor as ge, learningEventKindForLifecycle as gf, listLearnedSkillUsageReceipts as gg, matchesMemoryApplicability as gh, memoryApplicabilityFingerprint as gi, normalizeHostMetadata as gj, normalizeUnifiedLearningReview as gk, quarantineLearnedSkillRevision as gl, readRunnerRecoveryTranscript as gm, reconcileLearnedSkillBindingOutcomes as gn, recordLearnedSkillOffered as go, registerPresetDispatcher as gp, releaseLearnedSkillBinding as gq, renderDeclarativeSkill as gr, resolveLearnedAreaPaths as gs, resolveProjectLearnedAreaRoot as gt, runAdmissionAudit as gu, runInputGuardrails as gv, runOutputGuardrails as gw, runToolAfterGuardrails as gx, runToolBeforeGuardrails as gy, sanitizeUnifiedLearningReviewInput as gz, AgentActorController as i };
|
|
4929
|
+
export type { AgentExecutorPlaneBinding as $, AgentCapabilityRequirements as B, AgentContinuationInput as C, AgentControllerHealth as D, AgentControllerOptions as E, AgentCredentialBroker as F, AgentDataClassification as G, AgentDetail as H, AgentDispatchContext as I, AgentDispatchPolicy as J, AgentDispatchPolicyDecision as K, AgentDispatchPolicyInput as L, AgentDispatchabilitySnapshot as M, AgentDispatchabilityStatus as N, AgentEffectDeclaration as O, AgentEvent as P, AgentEventKind as Q, AgentExecutionInput as R, AgentExecutionKind as S, AgentExecutionResult as T, AgentExecutor as U, AgentExecutorEvent as V, AgentExecutorFactory as W, AgentExecutorFactoryContext as X, AgentExecutorPlane as Y, AgentExecutorPlaneBackgroundErrorContext as Z, AgentExecutorPlaneBackgroundErrorHandler as _, CreateAgentExecutorPlaneOptions as a$, AgentExecutorPlaneStore as a0, AgentExecutorPreflightResult as a1, AgentExecutorProtocol as a2, AgentExecutorTaskReference as a3, AgentExecutorTaskSnapshot as a4, AgentFollowupResult as a5, AgentForkTurns as a6, AgentInterruptScope as a7, AgentJsonObject as a8, AgentJsonValue as a9, AgentTaskService as aA, AgentTaskSnapshot as aB, AgentTaskStartInput as aC, AgentTaskState as aD, AgentTaskUsage as aE, AgentTool as aF, AgentTreeSnapshot as aG, AgentTurn as aH, AgentTurnExecutor as aI, AgentTurnRef as aJ, AgentTurnState as aK, AgentTurnSummary as aL, AskUserAnswer as aM, AskUserCustomInputAnswer as aN, AskUserMultiOptions as aO, AskUserQuestionItem as aP, AskUserQuestionOptions as aQ, AskUserSelectionAnswer as aR, CapabilitySupport as aS, CommitLearnedSkillRevisionInput as aT, CompactionAnchor as aU, CompactionConfig as aV, CompactionDetails as aW, CompactionReport as aX, CompactionResult as aY, CompactionSpanData as aZ, CompactionUpdate as a_, AgentLimitReached as aa, AgentListEntry as ab, AgentMailboxMessage as ac, AgentManifest as ad, AgentMessage as ae, AgentMetadataValue as af, AgentMiddlewareDeclaration as ag, AgentMutationOptions as ah, AgentOutput as ai, AgentPreflightInput as aj, AgentPreflightResult as ak, AgentProgressItem as al, AgentProgressKind as am, AgentProgressUpdate as an, AgentReasoningProfile as ao, AgentRegistrationEnabledMutationOptions as ap, AgentRegistrationMutationOptions as aq, AgentRegistrationService as ar, AgentSpanData as as, AgentSpawnInput as at, AgentTaskCancellation as au, AgentTaskCorrelation as av, AgentTaskEvent as aw, AgentTaskFilter as ax, AgentTaskProgress as ay, AgentTaskRegistrationSnapshot as az, AdmissionAuditOptions as b, KodaXSessionGoalEntry as b$, CreateLearnedSkillRecordInput as b0, CurrentTodoSummary as b1, DeclarativeSkillSpec as b3, Deliverable as b4, DiscoveredInstance as b5, DiscoveryOptions as b6, DispatchableAgentDescriptor as b7, DispatchableAgentListing as b8, DispatchableAgentOrigin as b9, KodaXCompactMemoryProgress as bA, KodaXCompactMemorySeed as bB, KodaXExtensionSessionRecord as bC, KodaXExtensionSessionState as bD, KodaXExtensionStore as bE, KodaXExtensionStoreEntry as bF, KodaXFileInputArtifact as bG, KodaXGoalEventType as bH, KodaXGoalState as bI, KodaXGoalStatus as bJ, KodaXImageInputArtifact as bK, KodaXImageMediaType as bL, KodaXInputArtifact as bM, KodaXInputArtifactSource as bN, KodaXJsonValue as bO, KodaXMemoryInfluenceRef as bP, KodaXMemoryIntent as bQ, KodaXMemoryOutcomeDigest as bR, KodaXMemoryOutcomeEvidence as bS, KodaXSessionArchiveMarkerEntry as bT, KodaXSessionArtifactLedgerEntry as bU, KodaXSessionBranchSummaryEntry as bV, KodaXSessionClientNoticeEntry as bW, KodaXSessionCompactionEntry as bX, KodaXSessionData as bY, KodaXSessionEntry as bZ, KodaXSessionEntryBase as b_, DispatchableAgentQuery as ba, EvidenceSpanData as bb, ExactInvokedSkillSnapshot as bc, ExternalAgentEffectDeclaration as bd, ExternalAgentHealth as be, ExternalAgentProtocol as bf, ExternalAgentRegistration as bg, ExternalAgentRegistrationSummary as bh, FanoutSpanData as bi, FileOperations as bj, GenerationSpanData as bk, Guardrail as bl, GuardrailContext as bn, GuardrailPermissionIntent as bp, GuardrailSpanData as bq, GuardrailVerdict as br, Handoff as bs, HandoffSpanData as bt, InMemorySessionOptions as bu, InputGuardrail as bv, InstanceDiscoveryFs as bw, InvariantId as bx, InvariantResult as by, AdmissionCtx as c, KodaXSessionLabelEntry as c0, KodaXSessionLineage as c1, KodaXSessionMemoryOutcomeDigestEntry as c2, KodaXSessionMemoryReviewReceiptEntry as c3, KodaXSessionMessageEntry as c4, KodaXSessionMeta as c5, KodaXSessionNavigationOptions as c6, KodaXSessionRewindMarkerEntry as c7, KodaXSessionRuntimeInfo as c8, KodaXSessionScope as c9, LearnedSkillBindingAdmission as cA, LearnedSkillCanaryOutcome as cB, LearnedSkillDecisionDisposition as cC, LearnedSkillInvocationAdmission as cD, LearnedSkillInvokedReceipt as cE, LearnedSkillOfferedReceipt as cF, LearnedSkillOutcomeReceipt as cG, LearnedSkillUsageReceipt as cH, LearningAction as cI, LearningActionDriver as cJ, LearningCapabilityErrorCode as cL, LearningClientEventState as cM, LearningClientRecord as cN, LearningEvent as cO, LearningEventKind as cP, LearningExplicitUserAuthority as cQ, LearningNotificationState as cR, LearningPage as cS, LearningQuery as cT, LearningReviewEvidencePacket as cU, LearningReviewQualification as cV, LearningReviewVerifierFact as cW, LearningSubscribeOptions as cX, LearningSurfaceSnapshot as cY, LocalAgentTaskInput as cZ, LocalAgentTaskUpdate as c_, KodaXSessionStorage as ca, KodaXSessionTreeNode as cb, KodaXSessionUiHistoryItem as cc, KodaXSessionUiHistoryItemType as cd, KodaXSessionUiTextHistoryItem as ce, KodaXSessionUiTextHistoryItemType as cf, KodaXSessionUiToolCall as cg, KodaXSessionUiToolCallStatus as ch, KodaXSessionUiToolGroupHistoryItem as ci, KodaXSessionWorkspaceKind as cj, KodaXVideoInputArtifact as ck, KodaXVideoMediaType as cl, LearnedAreaPaths as cm, LearnedCapabilityArtifact as co, LearnedCapabilityCanary as cp, LearnedCapabilityCanaryBinding as cq, LearnedCapabilityCanaryInvocation as cr, LearnedCapabilityCarrier as cs, LearnedCapabilityLifecycle as ct, LearnedCapabilityProvenance as cu, LearnedCapabilityRecord as cv, LearnedCapabilityRecordV1 as cw, LearnedCapabilityRecordV2 as cx, LearnedCapabilityScope as cy, LearnedCapabilitySource as cz, AdmissionVerdict as d, RunnerLlmResult as d$, ManifestPatch as d0, MemoryActionProposal as d1, MemoryApplicability as d2, MemoryApplyPreview as d3, MemoryApplyResult as d4, MemoryApproval as d5, MemoryAuthority as d6, MemoryAutoCuratorInput as d7, MemoryAutoCuratorResult as d8, MemoryBodySnapshot as d9, MemoryReviewPersistenceDecision as dA, MemoryReviewPersistenceKind as dB, MemoryReviewPlan as dC, MemoryReviewRunner as dD, MemoryReviewTrigger as dE, MemoryScope as dF, MemorySourceAdapter as dG, MemoryVisibility as dH, MessageEntry as dI, NormalizedLearnedSkillDecision as dJ, ObserveCtx as dK, OutputGuardrail as dL, PersistedSessionState as dM, PresetDispatcher as dN, PresetTracingContext as dO, QualityInvariant as dP, ReadonlyMutationTracker as dQ, ReadonlyRecorder as dR, ReasoningDepth as dS, RecentlyModifiedFile as dT, RunEvent as dU, RunOptions as dV, RunResult as dW, RunnableTool as dX, RunnerEvent as dZ, MemoryClaimKind as da, MemoryContextIdentity as db, MemoryController as dc, MemoryCuratorInput as dd, MemoryDecisionTraceReceipt as de, MemoryEpisodeReviewResult as df, MemoryEvent as dg, MemoryGovernanceFinding as dh, MemoryGovernanceFindingKind as di, MemoryGovernanceReport as dj, MemoryItemRef as dk, MemoryLifecycle as dl, MemoryLifecycleOperationResult as dm, MemoryPack as dn, MemoryPackHint as dp, MemoryPackInput as dq, MemoryPackTraceMetadata as dr, MemoryProposalAction as ds, MemoryRefFilter as dt, MemoryRefKind as du, MemoryRejectResult as dv, MemoryReviewCandidateRef as dw, MemoryReviewDraftAction as dx, MemoryReviewInput as dy, MemoryReviewModelInput as dz, AdmittedHandle as e, WorkflowOutcomeResult as e$, RunnerLlmReturn as e0, RunnerRecoveryTranscriptCarrier as e1, RunnerToolCall as e2, RunnerToolContext as e3, RunnerToolObserver as e4, RunnerToolResult as e5, RunnerToolResultBatch as e6, RunnerToolResultBatchTransform as e7, Session as e8, SessionDispatchResult as e9, ToolPermission as eA, Trace as eB, TraceOptions as eC, TracerOptions as eE, UnifiedLearningReviewModelInput as eF, UnifiedLearningReviewResult as eG, UnifiedLearningReviewRunner as eH, UserInteraction as eI, WorkflowAgentBackend as eJ, WorkflowApi as eK, WorkflowApproval as eL, WorkflowApprovalSummary as eM, WorkflowArtifactRef as eN, WorkflowBudget as eO, WorkflowEvent as eP, WorkflowEventCorrelation as eQ, WorkflowEventType as eS, WorkflowIsolation as eT, WorkflowLimits as eU, WorkflowLogEvent as eV, WorkflowMeta as eW, WorkflowModelHint as eX, WorkflowModule as eY, WorkflowOutcome as eZ, WorkflowOutcomeError as e_, SessionEntry as ea, SessionErrorMetadata as eb, SessionExtension as ec, SessionForkOptions as ed, SessionMeta as ee, SessionStateSnapshot as ef, Span as eg, SpanData as eh, SpanError as ei, SpanImplOptions as ek, StagedLearnedSkillArtifact as el, StartTraceOptions as em, StateWriter as en, StateWriterFs as eo, StateWriterOptions as ep, StopHookContext as eq, StopHookFn as er, StopHookResult as es, StopHookSpanData as et, SystemCap as eu, TerminalCtx as ev, ToolBeforeOutcome as ew, ToolCallSpanData as ex, ToolCapability as ey, ToolGuardrail as ez, Agent as f, WorkflowOutcomeStatus as f0, WorkflowOutcomeUsage as f1, WorkflowParallelOptions as f2, WorkflowProcessArtifact as f3, WorkflowProcessCounts as f4, WorkflowProcessEvent as f5, WorkflowProcessItem as f6, WorkflowProcessItemKind as f7, WorkflowProcessItemOrigin as f8, WorkflowProcessItemStatus as f9, WorkflowProcessProgress as fa, WorkflowProcessSnapshot as fb, WorkflowProcessSource as fc, WorkflowProcessStatus as fd, WorkflowProcessSummaryStatus as fe, WorkflowProcessTokenUsage as ff, WorkflowProcessTracker as fg, WorkflowProcessTrackerOptions as fh, WorkflowRun as fi, WorkflowRunState as fj, WorkflowRunStatus as fk, WorkflowSpawnAgentInput as fl, WorkflowSynthesis as fm, WorkflowSynthesizeInput as fn, WorkflowTaskHandle as fo, WorkflowTaskResult as fp, WorkflowTaskSnapshot as fq, WorkflowTaskStatus as fr, WorkflowTaskSummaryEventUpdate as fs, WorkflowTaskSummaryKind as ft, WorkflowTaskSummaryUpdate as fu, WorkflowTaskUsage as fv, WorkflowTaskVerification as fw, WorkflowTaskVerificationResult as fx, WorkflowWaitOptions as fy, AgentActor as g, AgentActorClient as h, AgentActorOwner as j, AgentActorSnapshot as k, AgentActorSnapshotV1 as l, AgentActorSnapshotV2 as m, AgentActorState as n, AgentActorStore as o, AgentArtifactDescriptor as p, AgentArtifactPolicy as q, AgentArtifactPolicyDecision as r, AgentArtifactPolicyInput as s, AgentArtifactReference as t, AgentBudgetAdmission as u, AgentBudgetAdmissionInput as v, AgentBudgetExhausted as w, AgentBudgetPort as x, AgentCapabilities as y, AgentCapabilityDeclaration as z };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { b as McpServersConfig, M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './base.d-DxG0m09Z.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
4
|
-
import {
|
|
4
|
+
import { e2 as RunnerToolCall, ez as ToolGuardrail } from './controller.d-C2aHqzHj.js';
|
|
5
5
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
6
6
|
import { S as SideQueryDiagnostics } from './side-query.d-CP1LiRiH.js';
|
|
7
|
+
import { by as ToolSideEffect } from './bash-prefix-extractor.d-DStqKIlu.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -446,59 +447,13 @@ type ClassifyDecision = ({
|
|
|
446
447
|
* and any Retry-After/backoff handled by the provider adapter. Keep it bounded
|
|
447
448
|
* so infrastructure failure reaches the configured Accept-edits fallback.
|
|
448
449
|
*/
|
|
449
|
-
declare const DEFAULT_CLASSIFIER_TIMEOUT_MS =
|
|
450
|
+
declare const DEFAULT_CLASSIFIER_TIMEOUT_MS = 45000;
|
|
451
|
+
/** A retry gets a longer deadline because its expanded response budget can take longer to emit. */
|
|
452
|
+
declare const DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS = 90000;
|
|
450
453
|
/** The classifier returns three short XML tags; a coding-turn-sized budget is wasteful. */
|
|
451
454
|
declare const CLASSIFIER_MAX_OUTPUT_TOKENS = 256;
|
|
452
455
|
declare function classify(opts: ClassifyOptions): Promise<ClassifyDecision>;
|
|
453
456
|
|
|
454
|
-
/**
|
|
455
|
-
* Denial Tracker — FEATURE_092 Phase 2b.4 (v0.7.33).
|
|
456
|
-
*
|
|
457
|
-
* Tracks classifier blocks per session. When either threshold is crossed,
|
|
458
|
-
* threshold state is exposed for diagnostics and does not mutate the selected
|
|
459
|
-
* Auto engine.
|
|
460
|
-
*
|
|
461
|
-
* - 3 consecutive blocks → likely an unproductive loop (agent not adapting)
|
|
462
|
-
* - 20 cumulative blocks → broader classifier-noise pattern in this session
|
|
463
|
-
*
|
|
464
|
-
* Both are session-scoped, shared with subagents (per design doc, to defend
|
|
465
|
-
* against threshold-bypass via spawning).
|
|
466
|
-
*
|
|
467
|
-
* Pure functional API: each operation returns a new tracker. No mutation.
|
|
468
|
-
*/
|
|
469
|
-
declare const CONSECUTIVE_THRESHOLD = 3;
|
|
470
|
-
declare const CUMULATIVE_THRESHOLD = 20;
|
|
471
|
-
interface DenialTracker {
|
|
472
|
-
readonly consecutive: number;
|
|
473
|
-
readonly cumulative: number;
|
|
474
|
-
}
|
|
475
|
-
declare function createDenialTracker(): DenialTracker;
|
|
476
|
-
declare function recordBlock(t: DenialTracker): DenialTracker;
|
|
477
|
-
declare function recordAllow(t: DenialTracker): DenialTracker;
|
|
478
|
-
declare function shouldFallback$1(t: DenialTracker): boolean;
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Circuit Breaker — FEATURE_092 Phase 2b.4 (v0.7.33).
|
|
482
|
-
*
|
|
483
|
-
* Sliding-window error counter for classifier failures (timeouts, 5xx, 429,
|
|
484
|
-
* unparseable outputs). When ≥ 5 errors land within a 10-minute window, the
|
|
485
|
-
* callers temporarily skip classifier calls and apply the Accept-edits
|
|
486
|
-
* failure boundary. The selected Auto engine remains `llm`; health state is
|
|
487
|
-
* diagnostic, not a mode change.
|
|
488
|
-
*
|
|
489
|
-
* Pure functional API: each operation returns a new breaker. No mutation.
|
|
490
|
-
* Memory bound: stale timestamps are pruned on each recordError call so
|
|
491
|
-
* the timestamps array never grows unbounded.
|
|
492
|
-
*/
|
|
493
|
-
declare const ERROR_THRESHOLD = 5;
|
|
494
|
-
declare const WINDOW_MS: number;
|
|
495
|
-
interface CircuitBreaker {
|
|
496
|
-
readonly timestamps: readonly number[];
|
|
497
|
-
}
|
|
498
|
-
declare function createCircuitBreaker(): CircuitBreaker;
|
|
499
|
-
declare function recordError(b: CircuitBreaker, now: number): CircuitBreaker;
|
|
500
|
-
declare function shouldFallback(b: CircuitBreaker, now: number): boolean;
|
|
501
|
-
|
|
502
457
|
/**
|
|
503
458
|
* Historical Tier 0 high-impact pattern detector — FEATURE_158 Step 4.
|
|
504
459
|
*
|
|
@@ -527,8 +482,8 @@ declare function shouldFallback(b: CircuitBreaker, now: number): boolean;
|
|
|
527
482
|
* only path here is normally an LLM-emitted shell).
|
|
528
483
|
*
|
|
529
484
|
* Layer note: bash-level `~/.kodax/` writes (e.g. `echo x > ~/.kodax/y`)
|
|
530
|
-
* require AST path-extraction
|
|
531
|
-
*
|
|
485
|
+
* require AST path-extraction. The REPL-side collector wired through
|
|
486
|
+
* `extraCollectors` (Step 7) identifies those as
|
|
532
487
|
* Tier 0 by emitting a synthetic `user_kodax_write` match via the same
|
|
533
488
|
* `AbsoluteDenyResult` shape. This module handles the file-tool path
|
|
534
489
|
* directly (the most common attack vector) and the four command-string
|
|
@@ -563,6 +518,54 @@ type AbsoluteDenyCheck = (call: RunnerToolCall, projectRoot: string, executionCw
|
|
|
563
518
|
*/
|
|
564
519
|
declare function checkAbsoluteDeny(call: RunnerToolCall, projectRoot: string, executionCwd?: string): AbsoluteDenyResult;
|
|
565
520
|
|
|
521
|
+
/**
|
|
522
|
+
* Circuit Breaker — FEATURE_092 Phase 2b.4 (v0.7.33).
|
|
523
|
+
*
|
|
524
|
+
* Sliding-window error counter for classifier failures (timeouts, 5xx, 429,
|
|
525
|
+
* unparseable outputs). When ≥ 5 errors land within a 10-minute window, the
|
|
526
|
+
* callers temporarily skip classifier calls and apply the Accept-edits
|
|
527
|
+
* failure boundary. The selected Auto engine remains `llm`; health state is
|
|
528
|
+
* diagnostic, not a mode change.
|
|
529
|
+
*
|
|
530
|
+
* Pure functional API: each operation returns a new breaker. No mutation.
|
|
531
|
+
* Memory bound: stale timestamps are pruned on each recordError call so
|
|
532
|
+
* the timestamps array never grows unbounded.
|
|
533
|
+
*/
|
|
534
|
+
declare const ERROR_THRESHOLD = 5;
|
|
535
|
+
declare const WINDOW_MS: number;
|
|
536
|
+
interface CircuitBreaker {
|
|
537
|
+
readonly timestamps: readonly number[];
|
|
538
|
+
}
|
|
539
|
+
declare function createCircuitBreaker(): CircuitBreaker;
|
|
540
|
+
declare function recordError(b: CircuitBreaker, now: number): CircuitBreaker;
|
|
541
|
+
declare function shouldFallback$1(b: CircuitBreaker, now: number): boolean;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Denial Tracker — FEATURE_092 Phase 2b.4 (v0.7.33).
|
|
545
|
+
*
|
|
546
|
+
* Tracks classifier blocks per session. When either threshold is crossed,
|
|
547
|
+
* threshold state is exposed for diagnostics and does not mutate the selected
|
|
548
|
+
* Auto engine.
|
|
549
|
+
*
|
|
550
|
+
* - 3 consecutive blocks → likely an unproductive loop (agent not adapting)
|
|
551
|
+
* - 20 cumulative blocks → broader classifier-noise pattern in this session
|
|
552
|
+
*
|
|
553
|
+
* Both are session-scoped, shared with subagents (per design doc, to defend
|
|
554
|
+
* against threshold-bypass via spawning).
|
|
555
|
+
*
|
|
556
|
+
* Pure functional API: each operation returns a new tracker. No mutation.
|
|
557
|
+
*/
|
|
558
|
+
declare const CONSECUTIVE_THRESHOLD = 3;
|
|
559
|
+
declare const CUMULATIVE_THRESHOLD = 20;
|
|
560
|
+
interface DenialTracker {
|
|
561
|
+
readonly consecutive: number;
|
|
562
|
+
readonly cumulative: number;
|
|
563
|
+
}
|
|
564
|
+
declare function createDenialTracker(): DenialTracker;
|
|
565
|
+
declare function recordBlock(t: DenialTracker): DenialTracker;
|
|
566
|
+
declare function recordAllow(t: DenialTracker): DenialTracker;
|
|
567
|
+
declare function shouldFallback(t: DenialTracker): boolean;
|
|
568
|
+
|
|
566
569
|
/**
|
|
567
570
|
* AutoModeToolGuardrail — FEATURE_092 Phase 2b.6 (v0.7.33).
|
|
568
571
|
*
|
|
@@ -598,9 +601,8 @@ declare function checkAbsoluteDeny(call: RunnerToolCall, projectRoot: string, ex
|
|
|
598
601
|
* independent.
|
|
599
602
|
*
|
|
600
603
|
* Provider capability checks and the explicit `supportsAutoModeClassifier`
|
|
601
|
-
* flag are deferred to follow-up phases.
|
|
602
|
-
*
|
|
603
|
-
* the guardrail remains the single decision point.
|
|
604
|
+
* flag are deferred to follow-up phases. Coding owns the default analyzer and
|
|
605
|
+
* Tier 2 evaluator so direct SDK and REPL consumers share one decision path.
|
|
604
606
|
*/
|
|
605
607
|
|
|
606
608
|
type AutoModeEngine = 'llm' | 'rules';
|
|
@@ -654,6 +656,8 @@ interface AutoModeRulesContext {
|
|
|
654
656
|
* that equivalence cannot be proven.
|
|
655
657
|
*/
|
|
656
658
|
readonly trustProcessEnvironmentPathExpansion?: boolean;
|
|
659
|
+
/** Trusted host metadata used when a tool has no path-specific analyzer. */
|
|
660
|
+
readonly toolSideEffect?: ToolSideEffect;
|
|
657
661
|
}
|
|
658
662
|
type AutoModePermissionBoundary = 'workspace' | 'system-temp' | 'outside-workspace' | 'protected' | 'unresolved';
|
|
659
663
|
interface AutoModePermissionTarget {
|
|
@@ -686,7 +690,7 @@ interface AutoModePermissionReview {
|
|
|
686
690
|
readonly operations: readonly AutoModePermissionOperation[];
|
|
687
691
|
readonly risks: readonly string[];
|
|
688
692
|
}
|
|
689
|
-
type AutoModeCallAnalyzer = (call: RunnerToolCall, context: AutoModeRulesContext) => AutoModePermissionReview | Promise<AutoModePermissionReview>;
|
|
693
|
+
type AutoModeCallAnalyzer = (call: RunnerToolCall, context: AutoModeRulesContext) => AutoModePermissionReview | undefined | Promise<AutoModePermissionReview | undefined>;
|
|
690
694
|
type AutoModeRulesDecision = {
|
|
691
695
|
readonly action: 'allow';
|
|
692
696
|
} | {
|
|
@@ -732,16 +736,12 @@ interface AutoModeGuardrailConfig {
|
|
|
732
736
|
/** Mint one exact bash call for workspace-sandboxed execution. */
|
|
733
737
|
readonly admitWorkspaceSandboxCall?: (call: RunnerToolCall, review: AutoModePermissionReview) => void;
|
|
734
738
|
/**
|
|
735
|
-
*
|
|
736
|
-
* implemented in @kodax/coding because canonical path and shell-AST helpers
|
|
737
|
-
* live in @kodax/repl. Omitting it preserves fail-closed SDK compatibility:
|
|
738
|
-
* every non-Tier-1 rules call escalates.
|
|
739
|
+
* Override for the coding-owned deterministic Tier-2 evaluator.
|
|
739
740
|
*/
|
|
740
741
|
readonly evaluateRulesCall?: AutoModeRulesEvaluator;
|
|
741
742
|
/**
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
* bounded metadata-only projection and remain LLM-reviewed.
|
|
743
|
+
* Override for the coding-owned compact permission analyzer. An override may
|
|
744
|
+
* return undefined to decline a call and leave it on the classifier path.
|
|
745
745
|
*/
|
|
746
746
|
readonly analyzeCall?: AutoModeCallAnalyzer;
|
|
747
747
|
/**
|
|
@@ -750,6 +750,8 @@ interface AutoModeGuardrailConfig {
|
|
|
750
750
|
* receive a metadata-only fail-closed projection rather than a Tier-1 skip.
|
|
751
751
|
*/
|
|
752
752
|
readonly getToolProjection: (toolName: string) => ((input: unknown) => string) | undefined;
|
|
753
|
+
/** Optional trusted side-effect metadata for analyzer-less tools. */
|
|
754
|
+
readonly getToolSideEffect?: (toolName: string) => ToolSideEffect | undefined;
|
|
753
755
|
/**
|
|
754
756
|
* Resolve a provider name to an instance. Returns `undefined` when
|
|
755
757
|
* unconfigured / unknown — the guardrail then escalates.
|
|
@@ -805,8 +807,8 @@ interface AutoModeGuardrailConfig {
|
|
|
805
807
|
readonly initialEngine?: AutoModeEngine;
|
|
806
808
|
/**
|
|
807
809
|
* FEATURE_092 phase 2b.7b slice C: classifier sideQuery timeout in ms.
|
|
808
|
-
* Defaults to
|
|
809
|
-
*
|
|
810
|
+
* Defaults to 45_000 for the first attempt and 90_000 for the retry.
|
|
811
|
+
* A configured value applies to both attempts.
|
|
810
812
|
*/
|
|
811
813
|
readonly timeoutMs?: number;
|
|
812
814
|
/**
|
|
@@ -815,11 +817,9 @@ interface AutoModeGuardrailConfig {
|
|
|
815
817
|
* doesn't use it (command-string-level) but threads it for uniform
|
|
816
818
|
* collector contract.
|
|
817
819
|
*
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
* SDK consumers without a project root should set `projectRoot: ''`
|
|
822
|
-
* and supply no `extraCollectors`.
|
|
820
|
+
* When omitted or blank, the guardrail uses `executionCwd`. If neither is
|
|
821
|
+
* available, path-bearing calls remain unresolved instead of borrowing the
|
|
822
|
+
* embedder process's ambient cwd as an authorization boundary.
|
|
823
823
|
*/
|
|
824
824
|
readonly projectRoot?: string;
|
|
825
825
|
/** Directory used to resolve relative tool paths. Defaults to projectRoot. */
|
|
@@ -841,11 +841,8 @@ interface AutoModeGuardrailConfig {
|
|
|
841
841
|
readonly signalCollectors?: readonly SignalCollector[];
|
|
842
842
|
/**
|
|
843
843
|
* Additional signal collectors to merge with `signalCollectors`.
|
|
844
|
-
* Primary use: REPL injects
|
|
845
|
-
*
|
|
846
|
-
* (those live in `@kodax/repl` for historical reasons; lifting them
|
|
847
|
-
* is out-of-scope for FEATURE_158 — see design doc layer-boundary
|
|
848
|
-
* decision).
|
|
844
|
+
* Primary use: REPL injects its path-aware bash signal collector. The
|
|
845
|
+
* underlying shell and path permission utilities are coding-owned.
|
|
849
846
|
*
|
|
850
847
|
* Order: defaults run first, then extras (preserves per-collector
|
|
851
848
|
* signal order).
|
|
@@ -910,5 +907,5 @@ interface AutoModeToolGuardrail extends ToolGuardrail {
|
|
|
910
907
|
}
|
|
911
908
|
declare function createAutoModeToolGuardrail(config: AutoModeGuardrailConfig): AutoModeToolGuardrail;
|
|
912
909
|
|
|
913
|
-
export { CLASSIFIER_MAX_OUTPUT_TOKENS as C,
|
|
914
|
-
export type {
|
|
910
|
+
export { CLASSIFIER_MAX_OUTPUT_TOKENS as C, DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS as M, DEFAULT_CLASSIFIER_TIMEOUT_MS as N, ERROR_THRESHOLD as P, WINDOW_MS as a2, checkAbsoluteDeny as a3, classify as a4, collectAllSignals as a5, computeRulesFingerprint as a6, createAutoModeToolGuardrail as a7, createCircuitBreaker as a8, createDenialTracker as a9, formatAgentsForPrompt as aa, getKodaxGlobalDir as ab, loadAgentsFiles as ac, loadAutoRules as ad, parseAutoRules as ae, parseClassifierOutput as af, readTrustState as ag, recordAllow as ah, recordBlock as ai, recordError as aj, shouldFallback as ak, shouldFallback$1 as al, trustProjectRules as am, CONSECUTIVE_THRESHOLD as v, CUMULATIVE_THRESHOLD as w };
|
|
911
|
+
export type { TierZeroPatternId as $, AbsoluteDenyCheck as A, ClassifierDecision as B, ClassifierFailureKind as D, ClassifierHazard as E, ClassifierObservedProtocol as F, ClassifierOutputWarningCode as G, ClassifierParseFailureCode as H, ClassifierProtocol as I, ClassifierToolProjectionResolver as J, ClassifyDecision as K, ClassifyOptions as L, DenialTracker as O, KodaXMcpConnectMode as Q, KodaXMcpServerConfig as R, KodaXMcpServersConfig as S, KodaXMcpTransport as T, LoadAgentsOptions as U, LoadedRulesSource as V, PermissionIntentEvidence as W, RulesLoadError as X, RulesLoadResult as Y, SignalCollector as Z, SkippedRulesSource as _, AbsoluteDenyMatch as a, ToolCallSignal as a0, TrustState as a1, AbsoluteDenyMiss as b, AbsoluteDenyResult as c, AgentsFile as d, AutoModeAskUser as e, AutoModeAskUserVerdict as f, AutoModeCallAnalyzer as g, AutoModeDecisionDiagnostics as h, AutoModeEngine as i, AutoModeGuardrailConfig as j, AutoModePermissionBoundary as k, AutoModePermissionOperation as l, AutoModePermissionReview as m, AutoModePermissionTarget as n, AutoModeRulesContext as o, AutoModeRulesDecision as p, AutoModeRulesEvaluator as q, AutoModeSharedState as r, AutoModeStats as s, AutoModeToolGuardrail as t, AutoRules as u, CircuitBreaker as x, ClassifierAttemptDiagnostics as y, ClassifierAttemptOutcome as z };
|
package/dist/types-chunks/{history-retrieval.d-BAegI14A.d.ts → history-retrieval.d-DImTKgO6.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
|
-
import { c1 as KodaXSessionLineage } from './controller.d-
|
|
2
|
+
import { c1 as KodaXSessionLineage } from './controller.d-C2aHqzHj.js';
|
|
3
3
|
|
|
4
4
|
type KodaXSessionHistoryScope = 'compacted' | 'all';
|
|
5
5
|
type KodaXSessionHistorySource = 'user' | 'assistant' | 'system' | 'tool' | 'child_task';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BashPrefixExtractor, t as KodaXAgentMode } from './bash-prefix-extractor.d-
|
|
1
|
+
import { a as BashPrefixExtractor, t as KodaXAgentMode } from './bash-prefix-extractor.d-DStqKIlu.js';
|
|
2
2
|
import { G as KodaXReasoningMode, k as KodaXMessage, T as KodaXTaskResultMetadata } from './types.d-CgrXrFrq.js';
|
|
3
|
-
import { cY as LearningSurfaceSnapshot$1, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cO as LearningEvent, cX as LearningSubscribeOptions, bY as KodaXSessionData, c1 as KodaXSessionLineage, c6 as KodaXSessionNavigationOptions, c8 as KodaXSessionRuntimeInfo, ca as KodaXSessionStorage, bZ as KodaXSessionEntry, bU as KodaXSessionArtifactLedgerEntry, bC as KodaXExtensionSessionRecord, cc as KodaXSessionUiHistoryItem, c9 as KodaXSessionScope, k as AgentActorSnapshot, aX as CompactionReport, bO as KodaXJsonValue } from './controller.d-
|
|
3
|
+
import { cY as LearningSurfaceSnapshot$1, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cO as LearningEvent, cX as LearningSubscribeOptions, bY as KodaXSessionData, c1 as KodaXSessionLineage, c6 as KodaXSessionNavigationOptions, c8 as KodaXSessionRuntimeInfo, ca as KodaXSessionStorage, bZ as KodaXSessionEntry, bU as KodaXSessionArtifactLedgerEntry, bC as KodaXExtensionSessionRecord, cc as KodaXSessionUiHistoryItem, c9 as KodaXSessionScope, k as AgentActorSnapshot, aX as CompactionReport, bO as KodaXJsonValue } from './controller.d-C2aHqzHj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -266,19 +266,7 @@ interface ConfirmResult {
|
|
|
266
266
|
always?: boolean;
|
|
267
267
|
runtimeGrantKind?: 'session' | 'persistent';
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
* Tools that mutate the local filesystem AND accept a `path` input.
|
|
271
|
-
* Eligible for plan-mode's path-aware escape (writes to
|
|
272
|
-
* `.agent/plan_mode_doc.md` or the system temp dir are permitted; all
|
|
273
|
-
* other paths block).
|
|
274
|
-
*
|
|
275
|
-
* Derived from metadata: `sideEffect === 'mutates-fs'` AND
|
|
276
|
-
* `requiredParams.includes('path')`. Tools that mutate the FS without a
|
|
277
|
-
* `path` input (`undo`, `worktree_*`, construction-staircase tools) are
|
|
278
|
-
* NOT in this set — their plan-mode block reason is computed elsewhere
|
|
279
|
-
* via `isToolPlanModeAllowed()` instead of a path check.
|
|
280
|
-
*/
|
|
281
|
-
declare const FILE_MODIFICATION_TOOLS: Set<string>;
|
|
269
|
+
|
|
282
270
|
interface PermissionContext {
|
|
283
271
|
permissionMode: PermissionMode;
|
|
284
272
|
confirmTools: Set<string>;
|
|
@@ -1690,5 +1678,5 @@ declare function createSessionManager(opts?: {
|
|
|
1690
1678
|
configHome?: string;
|
|
1691
1679
|
}): SessionManager;
|
|
1692
1680
|
|
|
1693
|
-
export { DEFAULT_UI_STATE as D,
|
|
1694
|
-
export type {
|
|
1681
|
+
export { DEFAULT_UI_STATE as D, KeypressHandlerPriority as E, FileSessionStorage as F, MemorySessionStorage as N, PERMISSION_MODES as P, archiveSession as aA, compactSession as aB, computeConfirmTools as aC, conversationHistoryFromCapture as aD, createConversationEntryChain as aE, createMemorySessionStorage as aF, createSessionConversationHistoryRevision as aG, createSessionManager as aH, deleteSession as aI, emptyConversationEntryChain as aJ, exportSessionBundle as aK, extendConversationEntryChain as aL, forkSession as aM, isPermissionMode as aN, listRunningSessions as aO, listSessions as aP, loadFullTranscript as aQ, loadSession as aR, normalizePermissionMode as aS, permissionModeDisplayName as aT, readConversationHistory as aU, readFullTranscript as aV, readSessionCapture as aW, rewindSession as aX, setActiveEntry as aY, unarchiveSession as aZ, watchSessions as a_, SessionReadError as ab, StreamingState as aj, TOOL_STATUS_ICONS as al, TextBuffer as am, ToolCallStatus as as, appendClientNotice as az, ConversationPageCacheCapacityError as g };
|
|
1682
|
+
export type { SessionBundleExportOptions as $, AppProps as A, KeypressHandler as B, CompactSessionOptions as C, LearningSurfaceSnapshot as G, HistoryEntry as H, InputPromptProps as I, LegacyMessageListProps as J, KeyInfo as K, LearningBinding as L, ListSessionsOptions as M, Message as O, PastedContent as Q, PermissionContext as R, PermissionMode as S, PreparedSessionAppendBaseline as T, PreparedSessionTailDelta as U, PromptEditingMode as V, PromptSubmitPayload as W, RewindSessionOptions as X, RunningSessionInfo as Y, SessionBundleExportDiagnostic as Z, SessionBundleExportFile as _, AppState as a, SessionBundleExportResult as a0, SessionBundleExportStatus as a1, SessionConversationHistoryData as a2, SessionConversationHistoryEntry as a3, SessionConversationHistoryIssue as a4, SessionConversationHistoryIssueCode as a5, SessionConversationHistoryStatus as a6, SessionConversationMutationBoundary as a7, SessionData as a8, SessionManager as a9, SessionReadCapture as aa, SessionReadErrorCode as ac, SessionReadOptions as ad, SessionStorage as ae, SessionSummary as af, SessionTranscriptEntry as ag, SessionTranscriptEntryType as ah, StatusBarProps as ai, Suggestion as ak, TextBufferOptions as an, Theme as ao, ThemeColors as ap, ThemeSymbols as aq, ToolCall as ar, UIActions as at, UIState as au, UseTextBufferReturn as av, VisualCursor as aw, VisualLayout as ax, WatchSessionsCallback as ay, AppendClientNoticeOptions as b, CompactSessionResult as c, Completer as d, Completion as e, ConfirmResult as f, CreatableHistoryItem as h, CursorPosition as i, DeleteSessionResult as j, ForkSessionOptions as k, FullTranscriptSessionData as l, HistoryItem as m, HistoryItemAssistant as n, HistoryItemBase as o, HistoryItemError as p, HistoryItemEvent as q, HistoryItemHint as r, HistoryItemInfo as s, HistoryItemSidecar as t, HistoryItemSystem as u, HistoryItemThinking as v, HistoryItemToolGroup as w, HistoryItemType as x, HistoryItemUser as y, KeypressEvent as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as ResolvedAutoModeSettings, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest, p as RuntimeSurfaceStatus } from './utils.d-
|
|
2
|
-
import {
|
|
3
|
-
import { a1 as KodaXOptions, ad as KodaXResult } from './bash-prefix-extractor.d-
|
|
4
|
-
import { ca as KodaXSessionStorage, bY as KodaXSessionData } from './controller.d-
|
|
5
|
-
import { s as AutoModeStats } from './guardrail.d-
|
|
1
|
+
import { n as ResolvedAutoModeSettings, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest, p as RuntimeSurfaceStatus } from './utils.d-BpACJmzt.js';
|
|
2
|
+
import { ae as SessionStorage$1, S as PermissionMode, L as LearningBinding } from './public-api.d-CewTvUKV.js';
|
|
3
|
+
import { a1 as KodaXOptions, ad as KodaXResult } from './bash-prefix-extractor.d-DStqKIlu.js';
|
|
4
|
+
import { ca as KodaXSessionStorage, bY as KodaXSessionData } from './controller.d-C2aHqzHj.js';
|
|
5
|
+
import { s as AutoModeStats } from './guardrail.d-DM-OK0m3.js';
|
|
6
6
|
|
|
7
7
|
interface ReplRuntimePermissionGrantSuggestion {
|
|
8
8
|
readonly id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fh as WorkflowProcessTrackerOptions, eP as WorkflowEvent, fb as WorkflowProcessSnapshot, f5 as WorkflowProcessEvent } from './controller.d-C2aHqzHj.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FEATURE_246 Part A0 (ADR-046) — neutral workflow run lifecycle manager.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as CreatableHistoryItem,
|
|
1
|
+
import { h as CreatableHistoryItem, ar as ToolCall } from './public-api.d-CewTvUKV.js';
|
|
2
2
|
import { k as KodaXMessage, c as KodaXContentBlock } from './types.d-CgrXrFrq.js';
|
|
3
|
-
import { cc as KodaXSessionUiHistoryItem, cg as KodaXSessionUiToolCall } from './controller.d-
|
|
3
|
+
import { cc as KodaXSessionUiHistoryItem, cg as KodaXSessionUiToolCall } from './controller.d-C2aHqzHj.js';
|
|
4
4
|
|
|
5
5
|
interface RestoreHistoryItemsFromSessionInput {
|
|
6
6
|
messages: readonly KodaXMessage[];
|