@kodax-ai/kodax 0.7.43 → 0.7.45
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 +80 -0
- package/README.md +6 -5
- package/README_CN.md +6 -5
- package/dist/chunks/chunk-CZHIUJQS.js +535 -0
- package/dist/chunks/{chunk-IYSK7LUK.js → chunk-FKB7BWQT.js} +1 -1
- package/dist/chunks/chunk-FT2XFFNP.js +2 -0
- package/dist/chunks/chunk-IJUB7QXG.js +425 -0
- package/dist/chunks/chunk-PGF5EZ7C.js +31 -0
- package/dist/chunks/chunk-X6EHEQWP.js +849 -0
- package/dist/chunks/{compaction-config-3E57ABCT.js → compaction-config-WCNGYWT3.js} +1 -1
- package/dist/chunks/{construction-bootstrap-JR63KI5N.js → construction-bootstrap-OB5SDNBD.js} +1 -1
- package/dist/chunks/dist-C2VOGY5Z.js +2 -0
- package/dist/chunks/{dist-XANXEVTU.js → dist-Q2PQM7U7.js} +1 -1
- package/dist/chunks/{utils-HQ2QCKJA.js → utils-CHXCBR3Q.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/kodax_cli.js +764 -709
- package/dist/provider-capabilities.json +181 -0
- package/dist/sdk-agent.d.ts +108 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +385 -13
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +1 -1
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +7 -6
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-session.d.ts +2 -2
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-DMrGImMl.d.ts → bash-prefix-extractor.d-HrTUwtV7.d.ts} +597 -142
- package/dist/types-chunks/file-tracker.d-DOfaoCbJ.d.ts +633 -0
- package/dist/types-chunks/{resolver.d-CA68_NeH.d.ts → resolver.d-OMwxURit.d.ts} +17 -14
- package/dist/types-chunks/{storage.d-DPAEX7zS.d.ts → storage.d-BvTdjYQF.d.ts} +13 -1
- package/dist/types-chunks/{file-tracker.d-zaLZeNBK.d.ts → types.d-DM8zEJgF.d.ts} +1029 -535
- package/dist/types-chunks/{types.d-mM8vqvhT.d.ts → types.d-HBbWT-iA.d.ts} +41 -3
- package/dist/types-chunks/{utils.d-DkLZD_wa.d.ts → utils.d-DSEX6Rq1.d.ts} +15 -3
- package/package.json +2 -2
- package/dist/chunks/chunk-7G5PSL6C.js +0 -830
- package/dist/chunks/chunk-K75O2CAE.js +0 -31
- package/dist/chunks/chunk-UG4262JI.js +0 -502
- package/dist/chunks/chunk-VHKAJDQD.js +0 -425
- package/dist/chunks/chunk-YMRZBS4G.js +0 -2
- package/dist/chunks/dist-KWHUKXEL.js +0 -2
- package/dist/types-chunks/types.d-CKJtjo-6.d.ts +0 -1127
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"updatedAt": "2026-05-25",
|
|
4
|
+
"providers": {
|
|
5
|
+
"anthropic": {
|
|
6
|
+
"apiKeyEnv": "ANTHROPIC_API_KEY",
|
|
7
|
+
"model": "claude-sonnet-4-6",
|
|
8
|
+
"models": [
|
|
9
|
+
{ "id": "claude-opus-4-6", "displayName": "Opus 4.6", "thinkingBudgetCap": 28000 },
|
|
10
|
+
{ "id": "claude-haiku-4-5", "displayName": "Haiku 4.5", "thinkingBudgetCap": 10000 }
|
|
11
|
+
],
|
|
12
|
+
"reasoningCapability": "native-budget",
|
|
13
|
+
"capabilityProfile": "image-input-native",
|
|
14
|
+
"supportsThinking": true,
|
|
15
|
+
"contextWindow": 200000,
|
|
16
|
+
"maxOutputTokens": 64000,
|
|
17
|
+
"thinkingBudgetCap": 28000
|
|
18
|
+
},
|
|
19
|
+
"openai": {
|
|
20
|
+
"apiKeyEnv": "OPENAI_API_KEY",
|
|
21
|
+
"model": "gpt-5.3-codex",
|
|
22
|
+
"models": [
|
|
23
|
+
{ "id": "gpt-5.4", "displayName": "GPT-5.4" },
|
|
24
|
+
{ "id": "gpt-5.3-codex-spark", "displayName": "GPT-5.3 Codex Spark" }
|
|
25
|
+
],
|
|
26
|
+
"reasoningCapability": "native-effort",
|
|
27
|
+
"capabilityProfile": "image-input-native",
|
|
28
|
+
"supportsThinking": true,
|
|
29
|
+
"contextWindow": 400000,
|
|
30
|
+
"maxOutputTokens": 32768
|
|
31
|
+
},
|
|
32
|
+
"deepseek": {
|
|
33
|
+
"apiKeyEnv": "DEEPSEEK_API_KEY",
|
|
34
|
+
"model": "deepseek-v4-flash",
|
|
35
|
+
"models": [
|
|
36
|
+
{ "id": "deepseek-v4-pro", "displayName": "DeepSeek V4 Pro" }
|
|
37
|
+
],
|
|
38
|
+
"reasoningCapability": "native-effort",
|
|
39
|
+
"capabilityProfile": "image-input-native",
|
|
40
|
+
"supportsThinking": true,
|
|
41
|
+
"contextWindow": 1000000,
|
|
42
|
+
"maxOutputTokens": 64000
|
|
43
|
+
},
|
|
44
|
+
"kimi": {
|
|
45
|
+
"apiKeyEnv": "KIMI_API_KEY",
|
|
46
|
+
"model": "kimi-k2.6",
|
|
47
|
+
"models": [
|
|
48
|
+
{ "id": "k2.5", "displayName": "K2.5" }
|
|
49
|
+
],
|
|
50
|
+
"reasoningCapability": "native-effort",
|
|
51
|
+
"capabilityProfile": "image-input-native",
|
|
52
|
+
"supportsThinking": true,
|
|
53
|
+
"contextWindow": 256000,
|
|
54
|
+
"maxOutputTokens": 32768
|
|
55
|
+
},
|
|
56
|
+
"kimi-code": {
|
|
57
|
+
"apiKeyEnv": "KIMI_CODE_API_KEY",
|
|
58
|
+
"model": "kimi-for-coding",
|
|
59
|
+
"reasoningCapability": "native-budget",
|
|
60
|
+
"capabilityProfile": "image-input-native",
|
|
61
|
+
"supportsThinking": true,
|
|
62
|
+
"contextWindow": 256000,
|
|
63
|
+
"maxOutputTokens": 32000
|
|
64
|
+
},
|
|
65
|
+
"qwen": {
|
|
66
|
+
"apiKeyEnv": "QWEN_API_KEY",
|
|
67
|
+
"model": "qwen3.5-plus",
|
|
68
|
+
"reasoningCapability": "native-budget",
|
|
69
|
+
"capabilityProfile": "image-input-native",
|
|
70
|
+
"supportsThinking": true,
|
|
71
|
+
"contextWindow": 256000,
|
|
72
|
+
"maxOutputTokens": 32768
|
|
73
|
+
},
|
|
74
|
+
"zhipu": {
|
|
75
|
+
"apiKeyEnv": "ZHIPU_API_KEY",
|
|
76
|
+
"model": "glm-5",
|
|
77
|
+
"models": [
|
|
78
|
+
{ "id": "glm-5.1", "displayName": "GLM-5.1" },
|
|
79
|
+
{ "id": "glm-5-turbo", "displayName": "GLM-5 Turbo" }
|
|
80
|
+
],
|
|
81
|
+
"reasoningCapability": "native-budget",
|
|
82
|
+
"capabilityProfile": "image-input-native",
|
|
83
|
+
"supportsThinking": true,
|
|
84
|
+
"contextWindow": 200000,
|
|
85
|
+
"maxOutputTokens": 32768
|
|
86
|
+
},
|
|
87
|
+
"zhipu-coding": {
|
|
88
|
+
"apiKeyEnv": "ZHIPU_CODING_API_KEY",
|
|
89
|
+
"model": "glm-5",
|
|
90
|
+
"models": [
|
|
91
|
+
{ "id": "glm-5.1", "displayName": "GLM-5.1" },
|
|
92
|
+
{ "id": "glm-5-turbo", "displayName": "GLM-5 Turbo" }
|
|
93
|
+
],
|
|
94
|
+
"reasoningCapability": "native-budget",
|
|
95
|
+
"capabilityProfile": "image-input-native",
|
|
96
|
+
"supportsThinking": true,
|
|
97
|
+
"contextWindow": 200000,
|
|
98
|
+
"maxOutputTokens": 16000,
|
|
99
|
+
"thinkingBudgetCap": 16000
|
|
100
|
+
},
|
|
101
|
+
"minimax-coding": {
|
|
102
|
+
"apiKeyEnv": "MINIMAX_CODING_API_KEY",
|
|
103
|
+
"model": "MiniMax-M2.7",
|
|
104
|
+
"models": [
|
|
105
|
+
{ "id": "MiniMax-M3", "displayName": "MiniMax M3 (Frontier Coding, 1M ctx)", "contextWindow": 1000000 },
|
|
106
|
+
{ "id": "MiniMax-M2.7-highspeed", "displayName": "MiniMax M2.7 Highspeed (higher-tier plan)" },
|
|
107
|
+
{ "id": "MiniMax-M2.5", "displayName": "MiniMax M2.5" },
|
|
108
|
+
{ "id": "MiniMax-M2.5-highspeed", "displayName": "MiniMax M2.5 Highspeed (higher-tier plan)" },
|
|
109
|
+
{ "id": "MiniMax-M2.1", "displayName": "MiniMax M2.1" },
|
|
110
|
+
{ "id": "MiniMax-M2.1-highspeed", "displayName": "MiniMax M2.1 Highspeed (higher-tier plan)" },
|
|
111
|
+
{ "id": "MiniMax-M2", "displayName": "MiniMax M2" }
|
|
112
|
+
],
|
|
113
|
+
"reasoningCapability": "native-budget",
|
|
114
|
+
"capabilityProfile": "image-input-native",
|
|
115
|
+
"supportsThinking": true,
|
|
116
|
+
"contextWindow": 204800,
|
|
117
|
+
"maxOutputTokens": 32000
|
|
118
|
+
},
|
|
119
|
+
"mimo-coding": {
|
|
120
|
+
"apiKeyEnv": "MIMO_CODING_API_KEY",
|
|
121
|
+
"model": "mimo-v2.5-pro",
|
|
122
|
+
"models": [
|
|
123
|
+
{ "id": "mimo-v2.5", "displayName": "MiMo V2.5" }
|
|
124
|
+
],
|
|
125
|
+
"reasoningCapability": "native-budget",
|
|
126
|
+
"capabilityProfile": "image-input-native",
|
|
127
|
+
"supportsThinking": true,
|
|
128
|
+
"contextWindow": 1000000,
|
|
129
|
+
"maxOutputTokens": 32000,
|
|
130
|
+
"thinkingBudgetCap": 16000
|
|
131
|
+
},
|
|
132
|
+
"mimo": {
|
|
133
|
+
"apiKeyEnv": "MIMO_API_KEY",
|
|
134
|
+
"model": "mimo-v2.5-pro",
|
|
135
|
+
"models": [
|
|
136
|
+
{ "id": "mimo-v2.5", "displayName": "MiMo V2.5" }
|
|
137
|
+
],
|
|
138
|
+
"reasoningCapability": "native-budget",
|
|
139
|
+
"capabilityProfile": "image-input-native",
|
|
140
|
+
"supportsThinking": true,
|
|
141
|
+
"contextWindow": 1000000,
|
|
142
|
+
"maxOutputTokens": 32000,
|
|
143
|
+
"thinkingBudgetCap": 16000
|
|
144
|
+
},
|
|
145
|
+
"ark-coding": {
|
|
146
|
+
"apiKeyEnv": "ARK_CODING_API_KEY",
|
|
147
|
+
"model": "glm-5.1",
|
|
148
|
+
"models": [
|
|
149
|
+
{ "id": "glm-4.7", "displayName": "GLM-4.7" },
|
|
150
|
+
{ "id": "kimi-k2.6", "displayName": "Kimi K2.6", "contextWindow": 256000 },
|
|
151
|
+
{ "id": "kimi-k2.5", "displayName": "Kimi K2.5", "contextWindow": 256000 },
|
|
152
|
+
{ "id": "minimax-latest", "displayName": "MiniMax Latest", "contextWindow": 204800 },
|
|
153
|
+
{ "id": "deepseek-v3.2", "displayName": "DeepSeek V3.2", "contextWindow": 128000 },
|
|
154
|
+
{ "id": "deepseek-v4-pro", "displayName": "DeepSeek V4 Pro", "contextWindow": 1000000 },
|
|
155
|
+
{ "id": "deepseek-v4-flash", "displayName": "DeepSeek V4 Flash", "contextWindow": 1000000 },
|
|
156
|
+
{ "id": "doubao-seed-2.0-code", "displayName": "Doubao Seed 2.0 Code", "contextWindow": 256000 },
|
|
157
|
+
{ "id": "doubao-seed-2.0-pro", "displayName": "Doubao Seed 2.0 Pro", "contextWindow": 256000 },
|
|
158
|
+
{ "id": "doubao-seed-2.0-lite", "displayName": "Doubao Seed 2.0 Lite", "contextWindow": 256000 }
|
|
159
|
+
],
|
|
160
|
+
"reasoningCapability": "native-budget",
|
|
161
|
+
"capabilityProfile": "image-input-native",
|
|
162
|
+
"supportsThinking": true,
|
|
163
|
+
"contextWindow": 200000,
|
|
164
|
+
"maxOutputTokens": 32000
|
|
165
|
+
},
|
|
166
|
+
"gemini-cli": {
|
|
167
|
+
"apiKeyEnv": "GEMINI_API_KEY",
|
|
168
|
+
"cliBridge": true,
|
|
169
|
+
"reasoningCapability": "prompt-only",
|
|
170
|
+
"capabilityProfile": "image-input-cli-bridge",
|
|
171
|
+
"supportsThinking": false
|
|
172
|
+
},
|
|
173
|
+
"codex-cli": {
|
|
174
|
+
"apiKeyEnv": "OPENAI_API_KEY",
|
|
175
|
+
"cliBridge": true,
|
|
176
|
+
"reasoningCapability": "prompt-only",
|
|
177
|
+
"capabilityProfile": "cli-bridge",
|
|
178
|
+
"supportsThinking": false
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { K as KodaXCompactMemoryProgress, a as KodaXCompactMemorySeed, b as KodaXExtensionSessionRecord, c as KodaXExtensionSessionState,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { b as AgentMiddlewareDeclaration, c as AgentReasoningProfile, d as AgentSpanData, e as AgentTool, f as CompactionAnchor, j as CompactionSpanData, k as CompactionUpdate, l as CurrentTodoSummary, m as DiscoveryOptions, E as EvidenceSpanData, F as FanoutSpanData, n as FileOperations, G as GenerationSpanData, o as Guardrail, p as GuardrailBlockedError, q as GuardrailContext, r as GuardrailEscalateError, s as GuardrailSpanData, t as GuardrailVerdict, u as HandoffSpanData, I as InputGuardrail, M as MAX_TOOL_LOOP_ITERATIONS, O as OutputGuardrail, P as PersistedSessionState, R as ReasoningDepth, w as RecentlyModifiedFile, x as RequestTaskStopOptions, y as RequestTaskStopResult, z as RunnableTool, B as RunnerLlmResult, J as RunnerLlmReturn, L as RunnerToolContext, N as RunnerToolObserver, V as SpanData, W as SpanError, X as SpanImpl, Y as SpanImplOptions, $ as StateWriterOptions, a0 as StopHookSpanData, a1 as TaskAbortRegistry, a2 as ToolBeforeOutcome, a3 as ToolCallSpanData, a4 as ToolGuardrail, a5 as buildAssistantMessageFromLlmResult, a6 as buildToolResultMessage, a7 as collectGuardrails, a8 as createAgent, a9 as createHandoff, aa as createStateWriter, ab as discoverInstances, ac as executeRunnerToolCall, ad as isRunnableTool, ae as isRunnerLlmResult, af as registerChildTask, ag as requestTaskStop, ah as runInputGuardrails, ai as runOutputGuardrails, aj as runToolAfterGuardrails, ak as runToolBeforeGuardrails } from './types-chunks/types.d-CKJtjo-6.js';
|
|
1
|
+
import { s as KodaXSessionLineage, g as KodaXGoalState, f as KodaXGoalEventType, o as KodaXSessionEntry, q as KodaXSessionGoalEntry, k as KodaXSessionArtifactLedgerEntry, d as KodaXExtensionStore, e as KodaXExtensionStoreEntry, i as KodaXJsonValue } from './types-chunks/types.d-HBbWT-iA.js';
|
|
2
|
+
export { K as KodaXCompactMemoryProgress, a as KodaXCompactMemorySeed, b as KodaXExtensionSessionRecord, c as KodaXExtensionSessionState, h as KodaXGoalStatus, j as KodaXSessionArchiveMarkerEntry, l as KodaXSessionBranchSummaryEntry, m as KodaXSessionCompactionEntry, n as KodaXSessionData, p as KodaXSessionEntryBase, r as KodaXSessionLabelEntry, t as KodaXSessionMessageEntry, u as KodaXSessionMeta, v as KodaXSessionNavigationOptions, w as KodaXSessionRuntimeInfo, x as KodaXSessionScope, y as KodaXSessionStorage, z as KodaXSessionTreeNode, A as KodaXSessionUiHistoryItem, B as KodaXSessionUiHistoryItemType, C as KodaXSessionWorkspaceKind, S as SessionErrorMetadata } from './types-chunks/types.d-HBbWT-iA.js';
|
|
3
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, D as DefaultSummaryCompaction, d as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, e as KODAX_DEFAULT_TIMEOUT, f as KODAX_HARD_TIMEOUT, g as KODAX_MAX_INCOMPLETE_RETRIES, h as KODAX_MAX_MAXTOKENS_RETRIES, i as KODAX_MAX_RETRIES, j as KODAX_MAX_TOKENS, k as KODAX_RETRY_BASE_DELAY, l as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, m as LineageArtifactLedgerPayload, n as LineageCompaction, o as LineageCompactionDelegates, p as LineageEntryType, q as LineageExtension, r as LineageLabelPayload, s as LineageTreeNode, P as PROMISE_PATTERN, t as PolicyCompactionResult, u as appendSessionLineageLabel, v as applyLineageTruncation, w as applySessionCompaction, x as archiveOldIslands, y as buildSessionTree, z as cleanupIncompleteToolCalls, A as countActiveLineageMessages, B as countTokens, E as createSessionLineage, F as estimateTokens, G as extractArtifactLedger, H as extractFileOps, I as extractTitleFromMessages, J as findPreviousUserEntryId, M as forkSessionLineage, N as generateSessionId, O as getAgentConfigHome, Q as getAgentConfigPath, R as getAppDataDir, S as getSessionLineagePath, T as getSessionMessagesFromLineage, U as mergeArtifactLedger, V as mergeFileOps, W as resolveSessionLineageTarget, X as rewindSessionLineage, Y as setAgentConfigHome, Z as setSessionLineageActiveEntry, _ as validateAndFixToolHistory } from './types-chunks/file-tracker.d-DOfaoCbJ.js';
|
|
4
|
+
import { al as Span, aG as Trace, d as Agent, H as Handoff, aa as RunnerToolCall, ad as RunnerToolResult, f as AgentMessage, e as AgentManifest, Q as ManifestPatch, M as InvariantId, X as QualityInvariant, C as ChildTaskRegistry, s as DiscoveredInstance, aj as SessionMeta, ak as SessionStateSnapshot, as as StateWriterFs, L as InstanceDiscoveryFs, ar as StateWriter, m as CompactionDetails, l as CompactionConfig, n as CompactionResult } from './types-chunks/types.d-DM8zEJgF.js';
|
|
5
|
+
export { A as AdmissionAuditOptions, a as AdmissionCtx, b as AdmissionVerdict, c as AdmittedHandle, g as AgentMiddlewareDeclaration, h as AgentReasoningProfile, i as AgentSpanData, j as AgentTool, k as CompactionAnchor, o as CompactionSpanData, p as CompactionUpdate, q as CurrentTodoSummary, D as DEFAULT_SYSTEM_CAP, r as Deliverable, t as DiscoveryOptions, E as EvidenceSpanData, F as FanoutSpanData, u as FileOperations, G as GenerationSpanData, v as Guardrail, w as GuardrailBlockedError, x as GuardrailContext, y as GuardrailEscalateError, z as GuardrailSpanData, B as GuardrailVerdict, I as HandoffSpanData, J as InMemorySessionOptions, K as InputGuardrail, N as InvariantResult, O as InvariantSession, P as MAX_TOOL_LOOP_ITERATIONS, R as MessageEntry, S as ObserveCtx, T as OutputGuardrail, U as PersistedSessionState, V as PresetDispatcher, W as PresetTracingContext, Y as ReadonlyMutationTracker, Z as ReadonlyRecorder, _ as ReasoningDepth, $ as RecentlyModifiedFile, a0 as RequestTaskStopOptions, a1 as RequestTaskStopResult, a2 as RunEvent, a3 as RunOptions, a4 as RunResult, a5 as RunnableTool, a6 as Runner, a7 as RunnerEvent, a8 as RunnerLlmResult, a9 as RunnerLlmReturn, ab as RunnerToolContext, ac as RunnerToolObserver, ae as Session, af as SessionDispatchResult, ag as SessionEntry, ah as SessionExtension, ai as SessionForkOptions, am as SpanData, an as SpanError, ao as SpanImpl, ap as SpanImplOptions, aq as StartTraceOptions, at as StateWriterOptions, au as StopHookContext, av as StopHookFn, aw as StopHookResult, ax as StopHookSpanData, ay as SystemCap, az as TaskAbortRegistry, aA as TerminalCtx, aB as ToolBeforeOutcome, aC as ToolCallSpanData, aD as ToolCapability, aE as ToolGuardrail, aF as ToolPermission, aH as TraceOptions, aI as Tracer, aJ as TracerOptions, aK as _resetAdmittedAgentBindings, aL as _resetPresetDispatchers, aM as buildAssistantMessageFromLlmResult, aN as buildSystemPrompt, aO as buildToolResultMessage, aP as collectGuardrails, aQ as createAgent, aR as createHandoff, aS as createInMemorySession, aT as createInvariantSessionForAgent, aU as createStateWriter, aV as createTrace, aW as defaultTracer, aX as detectInstructionsInjection, aY as discoverInstances, aZ as executeRunnerToolCall, a_ as extractAssistantTextFromMessage, a$ as getAdmittedAgentBindings, b0 as isRunnableTool, b1 as isRunnerLlmResult, b2 as registerChildTask, b3 as registerPresetDispatcher, b4 as requestTaskStop, b5 as runAdmissionAudit, b6 as runInputGuardrails, b7 as runOutputGuardrails, b8 as runToolAfterGuardrails, b9 as runToolBeforeGuardrails, ba as setAdmittedAgentBindings } from './types-chunks/types.d-DM8zEJgF.js';
|
|
7
6
|
import { m as KodaXMessage } from './types-chunks/types.d-B1uGoVTE.js';
|
|
8
7
|
export { e as KodaXAssuranceIntent, g as KodaXContentBlock, i as KodaXExecutionMode, j as KodaXExecutionPattern, l as KodaXImageBlock, o as KodaXMutationSurface, r as KodaXProviderConfig, z as KodaXProviderStreamOptions, C as KodaXReasoningCapability, D as KodaXReasoningMode, F as KodaXReasoningRequest, G as KodaXRedactedThinkingBlock, I as KodaXRiskLevel, J as KodaXStreamResult, L as KodaXTaskActionability, M as KodaXTaskBudgetOverrides, N as KodaXTaskComplexity, O as KodaXTaskFamily, P as KodaXTaskRoutingDecision, Q as KodaXTaskType, R as KodaXTaskWorkIntent, S as KodaXTextBlock, T as KodaXThinkingBlock, U as KodaXThinkingBudgetMap, V as KodaXThinkingDepth, W as KodaXTokenUsage, X as KodaXToolDefinition, Y as KodaXToolResultBlock, a0 as KodaXToolUseBlock } from './types-chunks/types.d-B1uGoVTE.js';
|
|
9
8
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
@@ -452,6 +451,41 @@ declare const CORE_INVARIANTS: readonly QualityInvariant[];
|
|
|
452
451
|
*/
|
|
453
452
|
declare function registerCoreInvariants(): void;
|
|
454
453
|
|
|
454
|
+
/**
|
|
455
|
+
* FEATURE_208 (v0.7.45) — process hardening (debug-preserving subset).
|
|
456
|
+
*
|
|
457
|
+
* KodaX is a single-user CLI; the trust boundary is user↔agent. The realistic
|
|
458
|
+
* supply-chain risk is a poisoned npm package or MCP server injecting code via
|
|
459
|
+
* the dynamic-linker preload env vars (`LD_PRELOAD` on Linux,
|
|
460
|
+
* `DYLD_INSERT_LIBRARIES` / `DYLD_LIBRARY_PATH` on macOS). This module strips
|
|
461
|
+
* those vars from the KodaX process and from every spawned MCP child.
|
|
462
|
+
*
|
|
463
|
+
* Debug preservation: we deliberately do NOT set `PR_SET_DUMPABLE 0` — it would
|
|
464
|
+
* break `node --inspect` / gdb attach. (The original FEATURE_208 design also
|
|
465
|
+
* called `process.setrlimit('core', …)` to disable core dumps, but Node has no
|
|
466
|
+
* such API — `process.setrlimit` is `undefined` — so that line is omitted.)
|
|
467
|
+
*
|
|
468
|
+
* Opt-out: set `KODAX_DISABLE_HARDENING=1` (propagates to MCP children since it
|
|
469
|
+
* lives on the inherited env). On Windows these vars do not exist, so every
|
|
470
|
+
* operation here is a harmless no-op.
|
|
471
|
+
*/
|
|
472
|
+
/** Dynamic-linker preload vars stripped from the process + MCP children. */
|
|
473
|
+
declare const HARDENED_ENV_VARS: readonly ["LD_PRELOAD", "DYLD_INSERT_LIBRARIES", "DYLD_LIBRARY_PATH"];
|
|
474
|
+
/** Env var that disables all hardening when set to `'1'`. */
|
|
475
|
+
declare const HARDENING_OPT_OUT_ENV = "KODAX_DISABLE_HARDENING";
|
|
476
|
+
/**
|
|
477
|
+
* Strip the dynamic-linker preload vars from the live `process.env`. Call once
|
|
478
|
+
* at process startup, before anything spawns children or loads native addons.
|
|
479
|
+
* No-op when `KODAX_DISABLE_HARDENING=1`.
|
|
480
|
+
*/
|
|
481
|
+
declare function applyProcessHardening(): void;
|
|
482
|
+
/**
|
|
483
|
+
* Return a copy of `env` with the dynamic-linker preload vars removed. Used
|
|
484
|
+
* when spawning MCP children so a server cannot reintroduce them via its own
|
|
485
|
+
* `config.env`. Returns `env` unchanged when hardening is disabled.
|
|
486
|
+
*/
|
|
487
|
+
declare function stripHardenedEnvVars(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
488
|
+
|
|
455
489
|
/**
|
|
456
490
|
* @kodax-ai/agent/messaging/queue — 2-tier agentId-scoped FIFO message queue.
|
|
457
491
|
*
|
|
@@ -941,7 +975,7 @@ type EnvelopeAggregateEnforcer = (fragments: readonly string[]) => readonly stri
|
|
|
941
975
|
* `readonly KodaXMessage[]` (possibly empty). Callers must spread the
|
|
942
976
|
* result into their next-iteration input.
|
|
943
977
|
*/
|
|
944
|
-
declare function composeIdleYieldUserMessage<TChildResult = unknown>(wakeEvent: WakeEvent<TChildResult>, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer): Promise<readonly KodaXMessage[]>;
|
|
978
|
+
declare function composeIdleYieldUserMessage<TChildResult = unknown>(wakeEvent: WakeEvent<TChildResult>, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[]) => void): Promise<readonly KodaXMessage[]>;
|
|
945
979
|
|
|
946
980
|
/**
|
|
947
981
|
* Generic outer loop for async fan-out + idle-yield resume.
|
|
@@ -1039,6 +1073,16 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult,
|
|
|
1039
1073
|
* role lookups read the right name on every iteration).
|
|
1040
1074
|
*/
|
|
1041
1075
|
readonly onIdleWaiting?: (currentAgent: Agent, runResult: TRunResult) => void;
|
|
1076
|
+
/**
|
|
1077
|
+
* FEATURE_213 (v0.7.45) — fired with the user-typed prompt(s) drained on
|
|
1078
|
+
* an idle-yield wake (the `mode:'prompt'` fragments spliced into the resume
|
|
1079
|
+
* input). The wake path splices these into the agent transcript directly, so
|
|
1080
|
+
* unlike the mid-turn `beforeNextTurn` drain there is no other surface that
|
|
1081
|
+
* tells the UI about them — without this hook a follow-up typed while waiting
|
|
1082
|
+
* for a sub-agent reaches the agent (it answers) but never appears in the
|
|
1083
|
+
* transcript. Coding wires this to the same `onMidTurnUserMessages` UI sink.
|
|
1084
|
+
*/
|
|
1085
|
+
readonly onResumedUserPrompts?: (contents: readonly string[]) => void;
|
|
1042
1086
|
/**
|
|
1043
1087
|
* Optional hook fired when the iteration cap is hit. Coding does not
|
|
1044
1088
|
* currently log here (matches v0.7.38 behavior — silent break) but
|
|
@@ -1688,6 +1732,62 @@ interface EntrypointTruncation {
|
|
|
1688
1732
|
*/
|
|
1689
1733
|
declare function truncateEntrypointContent(raw: string): EntrypointTruncation;
|
|
1690
1734
|
|
|
1735
|
+
/**
|
|
1736
|
+
* FEATURE_192 v0.7.44 — goal-entry helpers for session lineage.
|
|
1737
|
+
*
|
|
1738
|
+
* Goals live in `lineage.entries` as `KodaXSessionGoalEntry` records
|
|
1739
|
+
* (non-navigable, like labels). Each lifecycle event appends a new
|
|
1740
|
+
* goal entry whose `parentId` references the message entry the goal
|
|
1741
|
+
* was attached AT — so a fork/rewind that abandons that message
|
|
1742
|
+
* also abandons the goal entry attached to it.
|
|
1743
|
+
*
|
|
1744
|
+
* **Active-branch resolution**: a goal entry counts as "on the active
|
|
1745
|
+
* branch" iff its `parentId` is the id of some entry on the active
|
|
1746
|
+
* lineage path. Latest-on-branch wins (largest timestamp).
|
|
1747
|
+
*
|
|
1748
|
+
* This module is intentionally tiny — it does NOT define goal
|
|
1749
|
+
* lifecycle policy (creation rules, completion gates, accounting).
|
|
1750
|
+
* Those live in `packages/coding/src/goal/` where the runtime
|
|
1751
|
+
* middleware composes them. The agent-layer concern is just "given a
|
|
1752
|
+
* lineage, what is the current goal?".
|
|
1753
|
+
*/
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Walk the active branch (root → activeEntryId), collect every goal
|
|
1757
|
+
* entry whose parentId appears on that path, and return the latest
|
|
1758
|
+
* one (largest timestamp string). Returns `null` when no goal entry
|
|
1759
|
+
* is attached to the active branch.
|
|
1760
|
+
*
|
|
1761
|
+
* "Cleared" goals are still returned — callers check `entry.event`
|
|
1762
|
+
* / `entry.goal === null` to detect the cleared state. This lets the
|
|
1763
|
+
* UI distinguish "never set a goal" (returns null) from "user
|
|
1764
|
+
* explicitly cleared the goal" (returns a cleared entry).
|
|
1765
|
+
*/
|
|
1766
|
+
declare function readLatestGoalFromBranch(lineage: KodaXSessionLineage): KodaXSessionGoalEntry | null;
|
|
1767
|
+
/**
|
|
1768
|
+
* Convenience accessor: return just the goal STATE (or null) without
|
|
1769
|
+
* the wrapping entry. Callers that don't care which event produced
|
|
1770
|
+
* the state use this.
|
|
1771
|
+
*/
|
|
1772
|
+
declare function readLatestGoalState(lineage: KodaXSessionLineage): KodaXGoalState | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* Append a new goal entry to `lineage.entries`, attaching it to the
|
|
1775
|
+
* current activeEntryId. Returns a fresh `KodaXSessionLineage` —
|
|
1776
|
+
* caller is responsible for persisting the updated lineage.
|
|
1777
|
+
*
|
|
1778
|
+
* `goal` may be `null` only when `event === 'cleared'`; the validator
|
|
1779
|
+
* enforces this invariant so callers can't accidentally append a
|
|
1780
|
+
* non-cleared entry without a state snapshot.
|
|
1781
|
+
*/
|
|
1782
|
+
declare function appendGoalEntry(lineage: KodaXSessionLineage, goal: KodaXGoalState | null, event: KodaXGoalEventType, options?: {
|
|
1783
|
+
timestamp?: string;
|
|
1784
|
+
id?: string;
|
|
1785
|
+
}): KodaXSessionLineage;
|
|
1786
|
+
/**
|
|
1787
|
+
* Visible for tests / debugging: predicate matching goal entries.
|
|
1788
|
+
*/
|
|
1789
|
+
declare function isGoalEntry(entry: KodaXSessionEntry): entry is KodaXSessionGoalEntry;
|
|
1790
|
+
|
|
1691
1791
|
/**
|
|
1692
1792
|
* ../../index.js Compaction Utils
|
|
1693
1793
|
*
|
|
@@ -2178,5 +2278,5 @@ declare function gracefulCompactDegradation(messages: KodaXMessage[], contextWin
|
|
|
2178
2278
|
declare const DEFAULT_CONTEXT_WINDOW = 200000;
|
|
2179
2279
|
declare function resolveContextWindow(compactionConfig: CompactionConfig, provider: KodaXBaseProvider, modelOverride: string | undefined): number;
|
|
2180
2280
|
|
|
2181
|
-
export { Agent, AgentManifest, AgentMessage, COMPACTION_SUMMARY_PREFIX, CORE_INVARIANTS, ChildTaskRegistry, CompactionConfig, CompactionDetails, CompactionResult, ConsoleTracingProcessor, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, EnqueueInput, FileExtensionStore, FileTracingProcessor, Handoff, InstanceDiscoveryFs, InvariantId, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXJsonValue, KodaXMessage, KodaXSessionArtifactLedgerEntry, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, ManifestPatch, MessageMode, MessagePriority, MessageQueue, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, Trace, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, applyManifestPatch, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, compact, composeIdleYieldUserMessage, composePatches, countLastAssistantToolCalls, createExtensionStore, detectHandoffSignal, detectIdleYield, emitHandoffSpan, enqueueChildTaskNotification, evidenceTrail, finalOwner, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getInvariant, getMessageQueue, gracefulCompactDegradation, handoffLegality, hashCwd, injectPostCompactAttachments, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isEmptyLikeSummary, isIdleYieldEnabled, listRegisteredInvariants, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, registerCoreInvariants, registerInvariant, replaceSystemMessage, resolveContextWindow, resolveEffectiveInvariants, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, routeMessage, runFanOut, runWithIdleYield, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setTracingProcessors, shouldCompact, shutdownTracing, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, waitForWakeEvent };
|
|
2281
|
+
export { Agent, AgentManifest, AgentMessage, COMPACTION_SUMMARY_PREFIX, CORE_INVARIANTS, ChildTaskRegistry, CompactionConfig, CompactionDetails, CompactionResult, ConsoleTracingProcessor, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, EnqueueInput, FileExtensionStore, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, InstanceDiscoveryFs, InvariantId, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXGoalEventType, KodaXGoalState, KodaXJsonValue, KodaXMessage, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, ManifestPatch, MessageMode, MessagePriority, MessageQueue, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, Trace, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, applyManifestPatch, applyProcessHardening, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, compact, composeIdleYieldUserMessage, composePatches, countLastAssistantToolCalls, createExtensionStore, detectHandoffSignal, detectIdleYield, emitHandoffSpan, enqueueChildTaskNotification, evidenceTrail, finalOwner, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getInvariant, getMessageQueue, gracefulCompactDegradation, handoffLegality, hashCwd, injectPostCompactAttachments, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, listRegisteredInvariants, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, readLatestGoalFromBranch, readLatestGoalState, registerCoreInvariants, registerInvariant, replaceSystemMessage, resolveContextWindow, resolveEffectiveInvariants, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, routeMessage, runFanOut, runWithIdleYield, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, waitForWakeEvent };
|
|
2182
2282
|
export type { AdmissionMetricsSnapshot, ConsoleTracingProcessorOptions, EnqueueChildTaskNotificationInput, EntrypointTruncation, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, HandoffSignal, IdleYieldSnapshot, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, MaybeDrainMidTurnInput, MemoryFrontmatter, MemoryType, MicrocompactionConfig, ParsedMemoryFile, PostCompactAttachments, PostCompactConfig, RenderOptions, RouteMessageOptions, RouteMessageResult, RunFanOutOptions, RunFanOutResult, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, TeamModeBootstrapOptions, TeamModeHandle, TracingProcessor, WaitForWakeEventOptions, WakeEvent };
|
package/dist/sdk-agent.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 or,$b as Zr,A,Aa as Bo,Ab as Br,Ac as ye,B,Ba as Co,Bc as ze,C,Ca as Do,Cc as Ae,D,Da as Eo,Dc as Be,E,Ea as Fo,Eb as
|
|
2
|
+
import{$,$a as or,$b as Zr,A,Aa as Bo,Ab as Br,Ac as ye,B,Ba as Co,Bb as Cr,Bc as ze,C,Ca as Do,Cb as Dr,Cc as Ae,D,Da as Eo,Db as Er,Dc as Be,E,Ea as Fo,Eb as Fr,Ec as Ce,F,Fa as Go,Fc as De,G,Ga as Ho,Gc as Ee,H,Ha as Io,Hc as Fe,I,Ia as Jo,Ib as Gr,Ic as Ge,J,Ja as Ko,Jb as Hr,Jc as He,K,Ka as Lo,Kb as Ir,Kc as Ie,L,La as Mo,Lb as Jr,Lc as Je,M,Ma as No,Mb as Kr,Mc as Ke,N,Na as Oo,Nb as Lr,Nc as Le,O,Oa as Po,Ob as Mr,Oc as Me,P,Pa as Qo,Pb as Nr,Pc as Ne,Q,Qa as Ro,Qb as Or,Qc as Oe,R,Ra as So,Rb as Pr,Rc as Pe,S,Sa as To,Sb as Qr,Sc as Qe,T,Ta as Uo,Tb as Rr,Tc as Re,U,Ua as Vo,Ub as Sr,Uc as Se,V,Va as Wo,Vb as Tr,Vc as Te,W,Wa as Xo,Wb as Ur,Wc as Ue,X,Xa as Yo,Xb as Vr,Xc as Ve,Y,Ya as Zo,Yb as Wr,Yc as We,Z,Za as _o,Zb as Xr,_,_a as $o,_b as Yr,a as o,aa as oo,ab as rr,ac as _r,b as r,ba as ro,bb as er,bc as $r,c as e,ca as eo,cb as fr,cc as oe,d as f,da as fo,db as mr,dc as re,e as m,ea as mo,eb as pr,ec as ee,f as p,fa as po,fb as tr,fc as fe,g as t,ga as to,gb as xr,gc as me,h as x,ha as xo,hb as ar,hc as pe,i as a,ia as ao,ib as br,ic as te,j as b,ja as bo,jb as cr,jc as xe,k as c,ka as co,kb as dr,kc as ae,l as d,la as go,lb as gr,lc as be,m as g,ma as ho,mb as hr,mc as ce,n as h,na as io,nb as ir,nc as de,o as i,oa as jo,ob as jr,oc as ge,p as j,pa as ko,pb as kr,pc as he,q as k,qa as lo,qb as lr,qc as ie,r as l,ra as no,rb as nr,rc as je,s as n,sa as qo,sb as qr,sc as ke,t as q,ta as so,tb as sr,tc as le,u as s,ua as uo,ub as ur,uc as ne,v as u,va as vo,vb as vr,vc as qe,w as v,wa as wo,wb as wr,wc as se,x as w,xa as yo,xb as yr,xc as ue,y,ya as zo,yb as zr,yc as ve,z,za as Ao,zb as Ar,zc as we}from"./chunks/chunk-IJUB7QXG.js";import"./chunks/chunk-V4WSBIXB.js";export{Le as COMPACTION_SUMMARY_PREFIX,qo as CORE_INVARIANTS,B as ConsoleTracingProcessor,Ve as DEFAULT_CONTEXT_WINDOW,Qo as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,Pe as DEFAULT_MICROCOMPACTION_CONFIG,pe as DEFAULT_POST_COMPACT_CONFIG,Ge as DEFAULT_SUMMARY_PROMPT,O as DEFAULT_SYSTEM_CAP,He as DEFAULT_UPDATE_SUMMARY_PROMPT,j as DefaultSummaryCompaction,Re as FileExtensionStore,C as FileTracingProcessor,oo as GuardrailBlockedError,ro as GuardrailEscalateError,zo as HARDENED_ENV_VARS,Ao as HARDENING_OPT_OUT_ENV,U as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,e as KODAX_HARD_TIMEOUT,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,_r as LINEAGE_ENTRY_TYPES,oe as LineageCompaction,$r as LineageExtension,hr as MAX_ENTRYPOINT_BYTES,gr as MAX_ENTRYPOINT_LINES,W as MAX_TOOL_LOOP_ITERATIONS,vr as McpCapabilityProvider,wr as McpManager,ur as McpServerRuntime,Do as MessageQueue,me as POST_COMPACT_MAX_TOKENS_PER_FILE,fe as POST_COMPACT_TOKEN_BUDGET,b as PROMISE_PATTERN,Ke as PROTECTED_TOOL_NAMES,io as Runner,Vr as SkillExecutor,Rr as SkillRegistry,k as SpanImpl,z as Tracer,Or as VariableResolver,Go as YIELD_TOOL_NAMES,v as _emitSpanEnd,u as _emitSpanStart,w as _emitTraceEnd,s as _getRegisteredProcessors,M as _resetAdmissionMetrics,T as _resetAdmittedAgentBindings,I as _resetInvariantRegistry,Fo as _resetMessageQueueForTests,go as _resetPresetDispatchers,n as addTracingProcessor,ze as appendGoalEntry,ie as appendSessionLineageLabel,ke as applyLineageTruncation,D as applyManifestPatch,Bo as applyProcessHardening,je as applySessionCompaction,ve as archiveOldIslands,$o as bootstrapTeamMode,_ as buildAssistantMessageFromLlmResult,Ie as buildCompactionPromptSnapshot,ae as buildFileContentMessages,Xo as buildOtherInstancesPromptBlock,te as buildPostCompactAttachments,se as buildSessionTree,ho as buildSystemPrompt,$ as buildToolResultMessage,rr as cleanupIncompleteToolCalls,Dr as clearPluginSkillPaths,eo as collectGuardrails,Oe as compact,Po as composeIdleYieldUserMessage,E as composePatches,ue as countActiveLineageMessages,Mo as countLastAssistantToolCalls,d as countTokens,g as createAgent,Wr as createExecutor,Se as createExtensionStore,h as createHandoff,i as createInMemorySession,V as createInvariantSessionForAgent,kr as createMcpCapabilityId,yr as createMcpManager,zr as createMcpTestServerFixture,sr as createMcpTransport,Pr as createResolver,be as createSessionLineage,Vo as createStateWriter,l as createTrace,jr as defaultMcpCacheDir,A as defaultTracer,xo as detectHandoffSignal,No as detectIdleYield,P as detectInstructionsInjection,Wo as discoverInstances,Kr as discoverSkills,Mr as discoverSkillsWithMonorepo,bo as emitHandoffSpan,Jo as enqueueChildTaskNotification,c as estimateTokens,ko as evidenceTrail,Z as executeRunnerToolCall,Xr as executeSkill,Yr as expandSkillForLLM,De as extractArtifactLedger,jo as extractAssistantTextFromMessage,Be as extractFileOps,ee as extractTitleFromMessages,lo as finalOwner,le as findPreviousUserEntryId,qe as forkSessionLineage,Zr as formatSkillActivationMessage,re as generateSessionId,Je as generateSummary,Zo as getActiveTeamModeWriter,L as getAdmissionMetricsSnapshot,S as getAdmittedAgentBindings,vo as getAgentConfigHome,wo as getAgentConfigPath,yo as getAppDataDir,Er as getDefaultSkillPaths,G as getInvariant,qr as getMcpCachePaths,Eo as getMessageQueue,Lr as getNestedSkillPaths,ce as getSessionLineagePath,de as getSessionMessagesFromLineage,Fr as getSkillPathsFlat,Sr as getSkillRegistry,Ue as gracefulCompactDegradation,no as handoffLegality,fr as hashCwd,Tr as initializeSkillRegistry,xe as injectPostCompactAttachments,N as isAdmissionDebugEnabled,xr as isAutoManagedMemoryFile,Me as isEmptyLikeSummary,Ae as isGoalEntry,Lo as isIdleYieldEnabled,X as isRunnableTool,Y as isRunnerLlmResult,Cr as listPluginSkillPaths,H as listRegisteredInvariants,Ir as loadFullSkill,Jr as loadSkillFileContent,Hr as loadSkillMetadata,Io as maybeDrainMidTurn,Ee as mergeArtifactLedger,Ce as mergeFileOps,Qe as microcompact,Ho as midTurnDrainPriority,Ne as needsCompaction,Nr as parseArguments,lr as parseMcpCapabilityId,cr as parseMemoryFile,br as parseMemoryType,ar as parseMemoryTypeFromFilename,dr as parseScalarFields,Gr as parseSkillMarkdown,we as readLatestGoalFromBranch,ye as readLatestGoalState,Ko as registerChildTask,so as registerCoreInvariants,F as registerInvariant,Ar as registerPluginSkillPath,co as registerPresetDispatcher,ao as replaceSystemMessage,Uo as requestTaskStop,Ur as resetSkillRegistry,We as resolveContextWindow,K as resolveEffectiveInvariants,tr as resolveMemoryEntrypoint,pr as resolveMemoryRoot,J as resolveRequiredInvariants,ge as resolveSessionLineageTarget,Qr as resolveSkillContent,ne as rewindSessionLineage,To as routeMessage,Q as runAdmissionAudit,So as runFanOut,fo as runInputGuardrails,mo as runOutputGuardrails,to as runToolAfterGuardrails,po as runToolBeforeGuardrails,Ro as runWithIdleYield,er as sanitizeProjectKey,nr as searchMcpCatalog,Fe as serializeConversation,Yo as setActiveTeamModeWriter,R as setAdmittedAgentBindings,uo as setAgentConfigHome,he as setSessionLineageActiveEntry,q as setTracingProcessors,Te as shouldCompact,y as shutdownTracing,Co as stripHardenedEnvVars,ir as truncateEntrypointContent,mr as tryGitRemote,Br as unregisterPluginSkillPath,_o as updateActiveTeamMode,or as validateAndFixToolHistory,Oo as waitForWakeEvent};
|