@kodax-ai/kodax 0.7.41 → 0.7.42
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 +89 -1
- package/README.md +129 -232
- package/README_CN.md +128 -253
- package/dist/chunks/chunk-3RKBXWZS.js +2 -0
- package/dist/chunks/chunk-7JLYVWAF.js +1033 -0
- package/dist/chunks/chunk-CD3R5YBH.js +16 -0
- package/dist/chunks/chunk-DKXUY5F2.js +209 -0
- package/dist/chunks/chunk-HMYEQJGT.js +31 -0
- package/dist/chunks/{chunk-6OB4AJOM.js → chunk-IYJ5EPRV.js} +1 -1
- package/dist/chunks/chunk-KUX5LRPP.js +2 -0
- package/dist/chunks/{chunk-EQ5DGS2W.js → chunk-OWSKU55I.js} +5 -6
- package/dist/chunks/chunk-ZZ4KRK2B.js +465 -0
- package/dist/chunks/compaction-config-FIFFP4FT.js +2 -0
- package/dist/chunks/{construction-bootstrap-HBCWJFHC.js → construction-bootstrap-J2WOCYEK.js} +1 -1
- package/dist/chunks/dist-2ZHWDXMQ.js +2 -0
- package/dist/chunks/dist-W4CJWLIH.js +2 -0
- package/dist/chunks/utils-A5MWDTWZ.js +2 -0
- package/dist/index.d.ts +15 -10
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +841 -833
- package/dist/sdk-agent.d.ts +9 -93
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +315 -250
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +6 -5
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +17 -0
- package/dist/sdk-mcp.js +2 -0
- package/dist/sdk-repl.d.ts +342 -10
- package/dist/sdk-repl.js +2 -1
- package/dist/sdk-session.d.ts +164 -0
- package/dist/sdk-session.js +2 -0
- package/dist/sdk-skills.d.ts +72 -4
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-B2iliwdi.d.ts → bash-prefix-extractor.d-CkhaqKkg.d.ts} +237 -98
- package/dist/types-chunks/capability.d-3C62G8Eq.d.ts +39 -0
- package/dist/types-chunks/config.d-BfJUXxC0.d.ts +41 -0
- package/dist/types-chunks/{cost-tracker.d-C4dMlQuV.d.ts → cost-tracker.d-B6vMoLLF.d.ts} +20 -2
- package/dist/types-chunks/{history-cleanup.d-q1vAvCss.d.ts → history-cleanup.d-DznrzEiU.d.ts} +221 -12
- package/dist/types-chunks/{instance-discovery.d-DZhp77vb.d.ts → instance-discovery.d-BsKnIwpg.d.ts} +31 -258
- package/dist/types-chunks/{resolver.d-BwD6TKz7.d.ts → resolver.d-DX9au4NJ.d.ts} +4 -3
- package/dist/types-chunks/session-storage.d-Cci897iM.d.ts +68 -0
- package/dist/types-chunks/{storage.d-Bv9T99Qu.d.ts → storage.d-Bc5DoAwp.d.ts} +17 -69
- package/dist/types-chunks/transport.d-DuyjG30t.d.ts +180 -0
- package/dist/types-chunks/{capability.d-BxNgd1-c.d.ts → types.d-B1uGoVTE.d.ts} +72 -40
- package/dist/types-chunks/types.d-mM8vqvhT.d.ts +254 -0
- package/package.json +9 -1
- package/dist/chunks/chunk-5TFLMGER.js +0 -2
- package/dist/chunks/chunk-6QO6HWGU.js +0 -30
- package/dist/chunks/chunk-HYWVRTFA.js +0 -1233
- package/dist/chunks/chunk-SX2IS5JP.js +0 -16
- package/dist/chunks/chunk-ZPJPNLBK.js +0 -462
- package/dist/chunks/compaction-config-LT5PEXPT.js +0 -2
- package/dist/chunks/dist-M57GIWR4.js +0 -2
- package/dist/chunks/dist-V3BS2NKB.js +0 -2
- package/dist/chunks/utils-FAFUQJ2A.js +0 -2
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export { K as KodaXCompactMemoryProgress, a as KodaXCompactMemorySeed, b as KodaXExtensionSessionRecord, c as KodaXExtensionSessionState, d as KodaXExtensionStore, e as KodaXExtensionStoreEntry, f as KodaXJsonValue, g as KodaXSessionArchiveMarkerEntry, h as KodaXSessionArtifactLedgerEntry, i as KodaXSessionBranchSummaryEntry, j as KodaXSessionCompactionEntry, k as KodaXSessionData, l as KodaXSessionEntry, m as KodaXSessionEntryBase, n as KodaXSessionLabelEntry, o as KodaXSessionLineage, p as KodaXSessionMessageEntry, q as KodaXSessionMeta, r as KodaXSessionNavigationOptions, s as KodaXSessionRuntimeInfo, t as KodaXSessionScope, u as KodaXSessionStorage, v as KodaXSessionTreeNode, w as KodaXSessionUiHistoryItem, x as KodaXSessionUiHistoryItemType, y as KodaXSessionWorkspaceKind, S as SessionErrorMetadata } from './types-chunks/types.d-mM8vqvhT.js';
|
|
2
|
+
import { d as AgentManifest, M as ManifestPatch, k as InvariantId, Q as QualityInvariant } from './types-chunks/history-cleanup.d-DznrzEiU.js';
|
|
3
|
+
export { A as AdmissionAuditOptions, a as AdmissionCtx, b as AdmissionVerdict, c as AdmittedHandle, C as CompactionContext, e as CompactionEntry, f as CompactionEntryPayload, g as CompactionPolicy, D as DEFAULT_SYSTEM_CAP, h as DefaultSummaryCompaction, i as DefaultSummaryCompactionOptions, j as Deliverable, I as InMemorySessionOptions, l as InvariantResult, m as InvariantSession, K as KODAX_API_MIN_INTERVAL, n as KODAX_DEFAULT_TIMEOUT, o as KODAX_HARD_TIMEOUT, p as KODAX_MAX_INCOMPLETE_RETRIES, q as KODAX_MAX_MAXTOKENS_RETRIES, r as KODAX_MAX_RETRIES, s as KODAX_MAX_TOKENS, t as KODAX_RETRY_BASE_DELAY, u as KODAX_STAGGER_DELAY, v as MessageEntry, O as ObserveCtx, P as PROMISE_PATTERN, w as PolicyCompactionResult, x as PresetDispatcher, y as PresetTracingContext, R as ReadonlyMutationTracker, z as ReadonlyRecorder, B as RunEvent, E as RunOptions, F as RunResult, G as Runner, H as RunnerEvent, S as Session, J as SessionDispatchResult, L as SessionEntry, N as SessionExtension, T as SessionForkOptions, U as StopHookContext, V as StopHookFn, W as StopHookResult, X as SystemCap, Y as TerminalCtx, Z as ToolCapability, _ as ToolPermission, $ as _resetAdmittedAgentBindings, a0 as _resetPresetDispatchers, a1 as buildSystemPrompt, a2 as cleanupIncompleteToolCalls, a3 as countTokens, a4 as createInMemorySession, a5 as createInvariantSessionForAgent, a6 as detectInstructionsInjection, a7 as estimateTokens, a8 as extractAssistantTextFromMessage, a9 as getAdmittedAgentBindings, aa as getAgentConfigHome, ab as getAgentConfigPath, ac as getAppDataDir, ad as registerPresetDispatcher, ae as runAdmissionAudit, af as setAdmittedAgentBindings, ag as setAgentConfigHome, ah as validateAndFixToolHistory } from './types-chunks/history-cleanup.d-DznrzEiU.js';
|
|
4
|
+
import { A as Agent, H as Handoff, r as RunnerToolCall, u as RunnerToolResult, w as Span, a as AgentMessage, C as ChildTaskRegistry, D as DiscoveredInstance, S as SessionMeta, v as SessionStateSnapshot, B as StateWriterFs, k as InstanceDiscoveryFs, z as StateWriter } from './types-chunks/instance-discovery.d-BsKnIwpg.js';
|
|
5
|
+
export { b as AgentMiddlewareDeclaration, c as AgentReasoningProfile, d as AgentTool, e as CurrentTodoSummary, f as DiscoveryOptions, G as Guardrail, g as GuardrailBlockedError, h as GuardrailContext, i as GuardrailEscalateError, j as GuardrailVerdict, I as InputGuardrail, M as MAX_TOOL_LOOP_ITERATIONS, O as OutputGuardrail, P as PersistedSessionState, R as ReasoningDepth, l as RecentlyModifiedFile, m as RequestTaskStopOptions, n as RequestTaskStopResult, o as RunnableTool, p as RunnerLlmResult, q as RunnerLlmReturn, s as RunnerToolContext, t as RunnerToolObserver, E as StateWriterOptions, T as TaskAbortRegistry, F as ToolBeforeOutcome, J as ToolGuardrail, K as buildAssistantMessageFromLlmResult, L as buildToolResultMessage, N as collectGuardrails, Q as createAgent, U as createHandoff, V as createStateWriter, W as discoverInstances, X as executeRunnerToolCall, Y as isRunnableTool, Z as isRunnerLlmResult, _ as registerChildTask, $ as requestTaskStop, a0 as runInputGuardrails, a1 as runOutputGuardrails, a2 as runToolAfterGuardrails, a3 as runToolBeforeGuardrails } from './types-chunks/instance-discovery.d-BsKnIwpg.js';
|
|
6
|
+
import { m as KodaXMessage } from './types-chunks/types.d-B1uGoVTE.js';
|
|
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';
|
|
8
|
+
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
7
9
|
import { Q as QueueEventListener, b as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, M as MessageMode } from './types-chunks/types.d-C5mHR87z.js';
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -332,92 +334,6 @@ declare const CORE_INVARIANTS: readonly QualityInvariant[];
|
|
|
332
334
|
*/
|
|
333
335
|
declare function registerCoreInvariants(): void;
|
|
334
336
|
|
|
335
|
-
/**
|
|
336
|
-
* v0.7.35.1 FEATURE_145 — Agent config home, 3-tier resolution.
|
|
337
|
-
*
|
|
338
|
-
* Centralizes the user-config directory used to be hardcoded across
|
|
339
|
-
* ~30 sites in 6 packages as `path.join(os.homedir(), '.kodax', ...)`.
|
|
340
|
-
* That pattern had two problems:
|
|
341
|
-
*
|
|
342
|
-
* 1. **Drift**: each new caller in a future feature was a fresh
|
|
343
|
-
* hardcode site; nothing stopped a caller from using the wrong
|
|
344
|
-
* string (`'kodax'` instead of `'.kodax'`, etc.).
|
|
345
|
-
* 2. **Substrate consumer coupling**: when `@kodax-ai/agent` is reused
|
|
346
|
-
* by a downstream agent (e.g. `@kodax-ai/ops-agent`,
|
|
347
|
-
* `@kodax-ai/data-analysis-agent`), there was no way to redirect the
|
|
348
|
-
* runtime config dir — every derivative agent was forced to
|
|
349
|
-
* share the `~/.kodax/` namespace.
|
|
350
|
-
*
|
|
351
|
-
* The helper exposes a 3-tier priority chain:
|
|
352
|
-
*
|
|
353
|
-
* 1. **Programmatic override** via {@link setAgentConfigHome} —
|
|
354
|
-
* highest priority. Substrate consumers call this once at boot,
|
|
355
|
-
* before any subsystem reads the path.
|
|
356
|
-
* 2. **`KODAX_HOME` env var** — middle priority. Used by shell / CI /
|
|
357
|
-
* test isolation / multi-tenant shared machines. (Already honored
|
|
358
|
-
* historically by `@kodax-ai/llm/src/reasoning-overrides.ts`; this
|
|
359
|
-
* helper makes it the canonical path for all packages.)
|
|
360
|
-
* 3. **`~/.kodax/`** — lowest priority. Default for the standalone
|
|
361
|
-
* kodax CLI. With DI not set + env not set, the resolver returns
|
|
362
|
-
* the same byte sequence as the prior hardcoded
|
|
363
|
-
* `path.join(os.homedir(), '.kodax')` calls — so the migration
|
|
364
|
-
* from hardcoded sites to this helper is byte-equivalent for the
|
|
365
|
-
* existing user base.
|
|
366
|
-
*
|
|
367
|
-
* Why a process-level singleton (and not per-call DI):
|
|
368
|
-
* the ~30 fs callsites are buried in library helpers (construction /
|
|
369
|
-
* mcp catalog / oauth tokens / paste-cache etc.). Threading a
|
|
370
|
-
* `configHome` parameter through every helper would change ~50
|
|
371
|
-
* function signatures, and every caller would have to remember to
|
|
372
|
-
* thread it — a single forgotten thread silently falls back to
|
|
373
|
-
* default. Singleton matches the `process.env.NODE_ENV` pattern: a
|
|
374
|
-
* process really has a single config home (no legitimate use case
|
|
375
|
-
* for a process to interleave reads/writes against `~/.kodax/` AND
|
|
376
|
-
* `~/.opsagent/` simultaneously).
|
|
377
|
-
*
|
|
378
|
-
* NOT migrated:
|
|
379
|
-
* - `@kodax-ai/llm/src/reasoning-overrides.ts:49` keeps its inline
|
|
380
|
-
* `process.env.KODAX_HOME ?? path.join(os.homedir(), '.kodax')`
|
|
381
|
-
* fallback because moving it to this helper would create an
|
|
382
|
-
* `@kodax-ai/llm → @kodax-ai/agent` dependency cycle (agent already
|
|
383
|
-
* imports ai). The two implementations have identical observable
|
|
384
|
-
* behavior at the env / default tiers; the programmatic override
|
|
385
|
-
* tier doesn't apply to ai-layer code.
|
|
386
|
-
* - **Project-relative** `.kodax/` paths (e.g. `path.join(projectRoot,
|
|
387
|
-
* '.kodax', 'AGENTS.md')`) are NOT migrated — those name a
|
|
388
|
-
* different concept (per-project config) and use a different root.
|
|
389
|
-
* - **CWD-relative** subpath constants like `path.join('.kodax',
|
|
390
|
-
* 'constructed', '_audit.jsonl')` (joined with a project root by
|
|
391
|
-
* the caller) are likewise project-scoped and stay as-is.
|
|
392
|
-
*/
|
|
393
|
-
/**
|
|
394
|
-
* Set the agent config home programmatically. Highest priority in
|
|
395
|
-
* {@link getAgentConfigHome}'s 3-tier chain.
|
|
396
|
-
*
|
|
397
|
-
* Substrate consumers (e.g. an agent built on top of `@kodax-ai/agent`)
|
|
398
|
-
* should call this once at process boot, before any subsystem reads
|
|
399
|
-
* the path. Pass `undefined` to reset (used in tests).
|
|
400
|
-
*/
|
|
401
|
-
declare function setAgentConfigHome(path: string | undefined): void;
|
|
402
|
-
/**
|
|
403
|
-
* Resolve the agent runtime config home directory.
|
|
404
|
-
*
|
|
405
|
-
* Priority (high → low):
|
|
406
|
-
* 1. Programmatic override via {@link setAgentConfigHome}
|
|
407
|
-
* 2. `KODAX_HOME` env var
|
|
408
|
-
* 3. `~/.kodax` (hardcoded default)
|
|
409
|
-
*/
|
|
410
|
-
declare function getAgentConfigHome(): string;
|
|
411
|
-
/**
|
|
412
|
-
* Resolve a sub-path under the agent config home.
|
|
413
|
-
*
|
|
414
|
-
* Equivalent to `path.join(getAgentConfigHome(), ...segments)` but
|
|
415
|
-
* shorter at every callsite (which is the entire point of the helper —
|
|
416
|
-
* 30 callsites of `path.join(os.homedir(), '.kodax', x, y)` collapse to
|
|
417
|
-
* 30 callsites of `getAgentConfigPath(x, y)`).
|
|
418
|
-
*/
|
|
419
|
-
declare function getAgentConfigPath(...segments: string[]): string;
|
|
420
|
-
|
|
421
337
|
/**
|
|
422
338
|
* @kodax-ai/agent/messaging/queue — 2-tier agentId-scoped FIFO message queue.
|
|
423
339
|
*
|
|
@@ -1460,5 +1376,5 @@ declare function getActiveTeamModeWriter(): StateWriter | null;
|
|
|
1460
1376
|
*/
|
|
1461
1377
|
declare function updateActiveTeamMode(patch: Partial<SessionStateSnapshot>): void;
|
|
1462
1378
|
|
|
1463
|
-
export { Agent, AgentManifest, AgentMessage, CORE_INVARIANTS, ChildTaskRegistry, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DequeueFilter, DiscoveredInstance, EnqueueInput, Handoff, InstanceDiscoveryFs, InvariantId, KodaXMessage, ManifestPatch, MessageMode, MessagePriority, MessageQueue, QualityInvariant, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, StateWriter, StateWriterFs, YIELD_TOOL_NAMES, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, applyManifestPatch, bootstrapTeamMode, buildOtherInstancesPromptBlock, composeIdleYieldUserMessage, composePatches, countLastAssistantToolCalls, detectHandoffSignal, detectIdleYield, detectMissingTerminalVerdict, emitHandoffSpan, enqueueChildTaskNotification, evidenceTrail, finalOwner, getActiveTeamModeWriter, getAdmissionMetricsSnapshot,
|
|
1379
|
+
export { Agent, AgentManifest, AgentMessage, CORE_INVARIANTS, ChildTaskRegistry, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DequeueFilter, DiscoveredInstance, EnqueueInput, Handoff, InstanceDiscoveryFs, InvariantId, KodaXMessage, ManifestPatch, MessageMode, MessagePriority, MessageQueue, QualityInvariant, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, StateWriter, StateWriterFs, YIELD_TOOL_NAMES, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, applyManifestPatch, bootstrapTeamMode, buildOtherInstancesPromptBlock, composeIdleYieldUserMessage, composePatches, countLastAssistantToolCalls, detectHandoffSignal, detectIdleYield, detectMissingTerminalVerdict, emitHandoffSpan, enqueueChildTaskNotification, evidenceTrail, finalOwner, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getInvariant, getMessageQueue, handoffLegality, isAdmissionDebugEnabled, isIdleYieldEnabled, listRegisteredInvariants, maybeDrainMidTurn, midTurnDrainPriority, registerCoreInvariants, registerInvariant, replaceSystemMessage, resolveEffectiveInvariants, resolveRequiredInvariants, routeMessage, runFanOut, runWithIdleYield, setActiveTeamModeWriter, updateActiveTeamMode, waitForWakeEvent };
|
|
1464
1380
|
export type { AdmissionMetricsSnapshot, EnqueueChildTaskNotificationInput, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, HandoffSignal, IdleYieldSnapshot, MaybeDrainMidTurnInput, RenderOptions, RouteMessageOptions, RouteMessageResult, RunFanOutOptions, RunFanOutResult, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, TeamModeBootstrapOptions, TeamModeHandle, 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,Aa as Bo,B,Ba as Co,C,Ca as Do,D,Da as Eo,E,Ea as Fo,F,Fa as Go,G,Ga as Ho,H,Ha as Io,I,Ia as Jo,J,Ja as Ko,K,Ka as Lo,L,La as Mo,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a as o,aa as oo,b as r,ba as ro,c as e,ca as eo,d as f,da as fo,e as m,ea as mo,f as p,fa as po,g as t,ga as to,h as x,ha as xo,i as a,ia as ao,j as b,ja as bo,k as c,ka as co,l as d,la as go,m as g,ma as ho,n as h,na as io,o as i,oa as jo,p as j,pa as ko,q as k,qa as lo,r as l,ra as no,s as n,sa as qo,t as q,ta as so,u as s,ua as uo,v as u,va as vo,w as v,wa as wo,x as w,xa as yo,y,ya as zo,z,za as Ao}from"./chunks/chunk-
|
|
2
|
+
import{$,A,Aa as Bo,B,Ba as Co,C,Ca as Do,D,Da as Eo,E,Ea as Fo,F,Fa as Go,G,Ga as Ho,H,Ha as Io,I,Ia as Jo,J,Ja as Ko,K,Ka as Lo,L,La as Mo,M,Ma as No,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a as o,aa as oo,b as r,ba as ro,c as e,ca as eo,d as f,da as fo,e as m,ea as mo,f as p,fa as po,g as t,ga as to,h as x,ha as xo,i as a,ia as ao,j as b,ja as bo,k as c,ka as co,l as d,la as go,m as g,ma as ho,n as h,na as io,o as i,oa as jo,p as j,pa as ko,q as k,qa as lo,r as l,ra as no,s as n,sa as qo,t as q,ta as so,u as s,ua as uo,v as u,va as vo,w as v,wa as wo,x as w,xa as yo,y,ya as zo,z,za as Ao}from"./chunks/chunk-CD3R5YBH.js";import"./chunks/chunk-3RKBXWZS.js";import"./chunks/chunk-V4WSBIXB.js";export{po as CORE_INVARIANTS,Ao as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,B as DEFAULT_SYSTEM_CAP,j as DefaultSummaryCompaction,P as GuardrailBlockedError,Q as GuardrailEscalateError,H 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,J as MAX_TOOL_LOOP_ITERATIONS,go as MessageQueue,b as PROMISE_PATTERN,oo as Runner,jo as YIELD_TOOL_NAMES,z as _resetAdmissionMetrics,G as _resetAdmittedAgentBindings,u as _resetInvariantRegistry,io as _resetMessageQueueForTests,_ as _resetPresetDispatchers,k as applyManifestPatch,Lo as bootstrapTeamMode,N as buildAssistantMessageFromLlmResult,Ho as buildOtherInstancesPromptBlock,$ as buildSystemPrompt,O as buildToolResultMessage,No as cleanupIncompleteToolCalls,R as collectGuardrails,zo as composeIdleYieldUserMessage,l as composePatches,uo as countLastAssistantToolCalls,d as countTokens,g as createAgent,h as createHandoff,i as createInMemorySession,I as createInvariantSessionForAgent,Fo as createStateWriter,W as detectHandoffSignal,vo as detectIdleYield,C as detectInstructionsInjection,wo as detectMissingTerminalVerdict,Go as discoverInstances,Y as emitHandoffSpan,no as enqueueChildTaskNotification,c as estimateTokens,eo as evidenceTrail,M as executeRunnerToolCall,ro as extractAssistantTextFromMessage,fo as finalOwner,Jo as getActiveTeamModeWriter,y as getAdmissionMetricsSnapshot,F as getAdmittedAgentBindings,ao as getAgentConfigHome,bo as getAgentConfigPath,co as getAppDataDir,q as getInvariant,ho as getMessageQueue,mo as handoffLegality,A as isAdmissionDebugEnabled,so as isIdleYieldEnabled,K as isRunnableTool,L as isRunnerLlmResult,s as listRegisteredInvariants,lo as maybeDrainMidTurn,ko as midTurnDrainPriority,qo as registerChildTask,to as registerCoreInvariants,n as registerInvariant,Z as registerPresetDispatcher,X as replaceSystemMessage,Eo as requestTaskStop,w as resolveEffectiveInvariants,v as resolveRequiredInvariants,Do as routeMessage,D as runAdmissionAudit,Co as runFanOut,S as runInputGuardrails,T as runOutputGuardrails,V as runToolAfterGuardrails,U as runToolBeforeGuardrails,Bo as runWithIdleYield,Io as setActiveTeamModeWriter,E as setAdmittedAgentBindings,xo as setAgentConfigHome,Ko as updateActiveTeamMode,Mo as validateAndFixToolHistory,yo as waitForWakeEvent};
|