@kodax-ai/kodax 0.7.63 → 0.7.66

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +2300 -2204
  2. package/README.md +79 -7
  3. package/README_CN.md +52 -3
  4. package/dist/chunks/{agent-SL444XLN.js → agent-KER4WDNO.js} +1 -1
  5. package/dist/chunks/argument-completer-HK3MHA3K.js +2 -0
  6. package/dist/chunks/{chunk-ARUWXX25.js → chunk-35P7QL2Q.js} +1 -1
  7. package/dist/chunks/chunk-3HKBBY74.js +339 -0
  8. package/dist/chunks/chunk-AKBH2EEE.js +8 -0
  9. package/dist/chunks/{chunk-KCFVGXVK.js → chunk-ALS32RNZ.js} +1 -1
  10. package/dist/chunks/chunk-MHRN2LQV.js +328 -0
  11. package/dist/chunks/{chunk-HP4FXMEM.js → chunk-NBQW7PNZ.js} +2 -2
  12. package/dist/chunks/{chunk-S4GVQO3W.js → chunk-O7N22GJ3.js} +1 -1
  13. package/dist/chunks/chunk-ONUPGMER.js +2 -0
  14. package/dist/chunks/{chunk-ZL5CEANW.js → chunk-PZTG2C33.js} +1 -1
  15. package/dist/chunks/{chunk-4MIHVNB7.js → chunk-QAQ2HNXD.js} +112 -112
  16. package/dist/chunks/{chunk-6OZ5KWG3.js → chunk-QJJKMNZF.js} +1 -1
  17. package/dist/chunks/chunk-QJVZZSEO.js +56 -0
  18. package/dist/chunks/chunk-TLJGOKBT.js +729 -0
  19. package/dist/chunks/{chunk-7MPU7TP6.js → chunk-VS4CDDEF.js} +243 -243
  20. package/dist/chunks/chunk-WBBEJIAY.js +306 -0
  21. package/dist/chunks/{chunk-L3MF5V64.js → chunk-WMIZCY2J.js} +1 -1
  22. package/dist/chunks/{chunk-UA744TZM.js → chunk-YRBNXFHY.js} +1 -1
  23. package/dist/chunks/compaction-config-7GMUFNPB.js +2 -0
  24. package/dist/chunks/{construction-bootstrap-EFZBONTK.js → construction-bootstrap-3XDS2D5K.js} +1 -1
  25. package/dist/chunks/{devtools-4CRULTR2.js → devtools-CD6KSIHE.js} +1 -1
  26. package/dist/chunks/{devtools-YINBSZC7.js → devtools-XR5F2C6T.js} +1 -1
  27. package/dist/chunks/{dist-73L4OYPD.js → dist-4PXB7U22.js} +1 -1
  28. package/dist/chunks/dist-4YAYT2TO.js +2 -0
  29. package/dist/chunks/host-KG3456QP.js +2 -0
  30. package/dist/chunks/{paste-FDYM7SZX.js → paste-C33GZQV5.js} +1 -1
  31. package/dist/chunks/run-manager-6CAH3KTA.js +2 -0
  32. package/dist/chunks/utils-OT5ENFUL.js +2 -0
  33. package/dist/constructed-handler-worker.js +2 -0
  34. package/dist/index.d.ts +21 -10
  35. package/dist/index.js +6 -6
  36. package/dist/kodax_cli.js +1116 -1089
  37. package/dist/runtime-worker.js +2843 -0
  38. package/dist/sdk-agent.d.ts +27 -8
  39. package/dist/sdk-agent.js +1 -1
  40. package/dist/sdk-coding.d.ts +76 -1020
  41. package/dist/sdk-coding.js +1 -1
  42. package/dist/sdk-llm.js +1 -1
  43. package/dist/sdk-mcp.d.ts +2 -1
  44. package/dist/sdk-mcp.js +1 -1
  45. package/dist/sdk-media.js +1 -1
  46. package/dist/sdk-repl.d.ts +197 -183
  47. package/dist/sdk-repl.js +2 -2
  48. package/dist/sdk-runtime.d.ts +982 -0
  49. package/dist/sdk-runtime.js +2 -0
  50. package/dist/sdk-session.d.ts +3 -3
  51. package/dist/sdk-session.js +1 -1
  52. package/dist/sdk-skills.js +1 -1
  53. package/dist/semantic-worker.js +191 -10
  54. package/dist/types-chunks/{bash-prefix-extractor.d-CZW9fRoa.d.ts → bash-prefix-extractor.d-BjkITAva.d.ts} +142 -3
  55. package/dist/types-chunks/{run-manager.d-CYTnWhZY.d.ts → capsule.d-hVhPNkHd.d.ts} +5 -92
  56. package/dist/types-chunks/commands.d-C3B1TdGM.d.ts +213 -0
  57. package/dist/types-chunks/{types.d-1CnTg7Sd.d.ts → guardrail.d-C_Siraua.d.ts} +3 -128
  58. package/dist/types-chunks/{guardrail.d-MR6LwMB2.d.ts → guardrail.d-wk-s0psS.d.ts} +2 -2
  59. package/dist/types-chunks/{manager.d-DBD7SOTT.d.ts → manager.d-Zum9cGHU.d.ts} +3 -173
  60. package/dist/types-chunks/oauth-login.d-Bgb4rdLN.d.ts +174 -0
  61. package/dist/types-chunks/public-api.d-jtREVfEq.d.ts +596 -0
  62. package/dist/types-chunks/run-manager.d-CFknOfo1.d.ts +91 -0
  63. package/dist/types-chunks/{sdk-session-RBSBBKol.d.ts → sdk-session-CLqyfAmf.d.ts} +8 -306
  64. package/dist/types-chunks/types.d-BMLxKV69.d.ts +128 -0
  65. package/dist/types-chunks/types.d-CUN_bZU7.d.ts +975 -0
  66. package/dist/types-chunks/{utils.d-C14jZ9ZM.d.ts → utils.d-C1rpoeDh.d.ts} +84 -72
  67. package/package.json +7 -1
  68. package/dist/chunks/argument-completer-EN63ZVJK.js +0 -2
  69. package/dist/chunks/chunk-KHICMJIR.js +0 -310
  70. package/dist/chunks/chunk-LGR7ACBQ.js +0 -326
  71. package/dist/chunks/chunk-RR7W7UF6.js +0 -341
  72. package/dist/chunks/chunk-UGTK2JIJ.js +0 -731
  73. package/dist/chunks/chunk-V4WSBIXB.js +0 -2
  74. package/dist/chunks/chunk-VSWROENP.js +0 -52
  75. package/dist/chunks/compaction-config-4VIONMFB.js +0 -2
  76. package/dist/chunks/dist-EDF2YUF6.js +0 -2
  77. package/dist/chunks/host-J4HPDLFC.js +0 -2
  78. package/dist/chunks/run-manager-ZVSW2OWM.js +0 -2
  79. package/dist/chunks/utils-5HDLYTZJ.js +0 -2
  80. package/dist/types-chunks/storage.d-C6kkAEch.d.ts +0 -280
@@ -1,22 +1,37 @@
1
1
  import { bC as Span, bV as Trace, f as Agent, L as Handoff, bq as RunnerToolCall, bt as RunnerToolResult, h as AgentMessage, g as AgentManifest, az as ManifestPatch, P as InvariantId, bb as QualityInvariant, a3 as KodaXInputArtifactSource, a1 as KodaXImageMediaType, ax as KodaXVideoMediaType, Y as KodaXFileInputArtifact, a0 as KodaXImageInputArtifact, aw as KodaXVideoInputArtifact, a2 as KodaXInputArtifact, C as ChildTaskRegistry, B as DiscoveredInstance, bA as SessionMeta, bB as SessionStateSnapshot, bJ as StateWriterFs, O as InstanceDiscoveryFs, bI as StateWriter, bL as StopHookContext, bN as StopHookResult, bM as StopHookFn, aO as MemoryItemRef, af as KodaXSessionLineage, a6 as KodaXSessionArtifactLedgerEntry, aK as MemoryEvent, b1 as MemoryReviewRunner, aI as MemoryController, aA as MemoryActionProposal, aC as MemoryApplyResult, aX as MemoryRejectResult, aV as MemoryRefFilter, aH as MemoryBodySnapshot, aJ as MemoryCuratorInput, aN as MemoryGovernanceReport, aF as MemoryAutoCuratorInput, aG as MemoryAutoCuratorResult, aS as MemoryPackInput, aQ as MemoryPack, a_ as MemoryReviewInput, b0 as MemoryReviewPlan, _ as KodaXGoalState, Z as KodaXGoalEventType, ab as KodaXSessionEntry, ad as KodaXSessionGoalEntry, u as CompactionDetails, t as CompactionConfig, v as CompactionResult, W as KodaXExtensionStore, X as KodaXExtensionStoreEntry, a4 as KodaXJsonValue, b$ as WorkflowApi, cd as WorkflowModule, b_ as WorkflowAgentBackend, c9 as WorkflowLimits, c4 as WorkflowEvent, ca as WorkflowLogEvent, cB as WorkflowTaskResult, cv as WorkflowRunState } from './types-chunks/process.d-CY2g03Mb.js';
2
2
  export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, i as AgentMiddlewareDeclaration, j as AgentReasoningProfile, k as AgentSpanData, l as AgentTool, m as AskUserAnswer, n as AskUserCustomInputAnswer, o as AskUserMultiOptions, p as AskUserQuestionItem, q as AskUserQuestionOptions, r as AskUserSelectionAnswer, s as CompactionAnchor, w as CompactionSpanData, x as CompactionUpdate, y as CurrentTodoSummary, D as DEFAULT_SYSTEM_CAP, z as Deliverable, E as DiscoveryOptions, F as EvidenceSpanData, G as FanoutSpanData, H as FileOperations, I as GenerationSpanData, J as Guardrail, K as GuardrailSpanData, M as HandoffSpanData, N as InMemorySessionOptions, Q as InvariantResult, R as InvariantSession, S as KodaXCompactMemoryProgress, T as KodaXCompactMemorySeed, U as KodaXExtensionSessionRecord, V as KodaXExtensionSessionState, $ as KodaXGoalStatus, a5 as KodaXSessionArchiveMarkerEntry, a7 as KodaXSessionBranchSummaryEntry, a8 as KodaXSessionClientNoticeEntry, a9 as KodaXSessionCompactionEntry, aa as KodaXSessionData, ac as KodaXSessionEntryBase, ae as KodaXSessionLabelEntry, ag as KodaXSessionMessageEntry, ah as KodaXSessionMeta, ai as KodaXSessionNavigationOptions, aj as KodaXSessionRewindMarkerEntry, ak as KodaXSessionRuntimeInfo, al as KodaXSessionScope, am as KodaXSessionStorage, an as KodaXSessionTreeNode, ao as KodaXSessionUiHistoryItem, ap as KodaXSessionUiHistoryItemType, aq as KodaXSessionUiTextHistoryItem, ar as KodaXSessionUiTextHistoryItemType, as as KodaXSessionUiToolCall, at as KodaXSessionUiToolCallStatus, au as KodaXSessionUiToolGroupHistoryItem, av as KodaXSessionWorkspaceKind, ay as MAX_TOOL_LOOP_ITERATIONS, aB as MemoryApplyPreview, aD as MemoryApproval, aE as MemoryAuthority, aL as MemoryGovernanceFinding, aM as MemoryGovernanceFindingKind, aP as MemoryLifecycle, aR as MemoryPackHint, aT as MemoryPackTraceMetadata, aU as MemoryProposalAction, aW as MemoryRefKind, aY as MemoryReviewCandidateRef, aZ as MemoryReviewDraftAction, a$ as MemoryReviewModelInput, b2 as MemoryReviewTrigger, b3 as MemoryScope, b4 as MemorySourceAdapter, b5 as MemoryVisibility, b6 as MessageEntry, b7 as ObserveCtx, b8 as PersistedSessionState, b9 as PresetDispatcher, ba as PresetTracingContext, bc as ReadonlyMutationTracker, bd as ReadonlyRecorder, be as ReasoningDepth, bf as RecentlyModifiedFile, bg as RequestTaskStopOptions, bh as RequestTaskStopResult, bi as RunEvent, bj as RunOptions, bk as RunResult, bl as RunnableTool, bm as Runner, bn as RunnerEvent, bo as RunnerLlmResult, bp as RunnerLlmReturn, br as RunnerToolContext, bs as RunnerToolObserver, bu as Session, bv as SessionDispatchResult, bw as SessionEntry, bx as SessionErrorMetadata, by as SessionExtension, bz as SessionForkOptions, bD as SpanData, bE as SpanError, bF as SpanImpl, bG as SpanImplOptions, bH as StartTraceOptions, bK as StateWriterOptions, bO as StopHookSpanData, bP as SystemCap, bQ as TaskAbortRegistry, bR as TerminalCtx, bS as ToolCallSpanData, bT as ToolCapability, bU as ToolPermission, bW as TraceOptions, bX as Tracer, bY as TracerOptions, bZ as UserInteraction, c0 as WorkflowApproval, c1 as WorkflowApprovalSummary, c2 as WorkflowArtifactRef, c3 as WorkflowBudget, c5 as WorkflowEventCorrelation, c6 as WorkflowEventRecorder, c7 as WorkflowEventType, c8 as WorkflowIsolation, cb as WorkflowMeta, cc as WorkflowModelHint, ce as WorkflowParallelOptions, cf as WorkflowProcessArtifact, cg as WorkflowProcessCounts, ch as WorkflowProcessEvent, ci as WorkflowProcessItem, cj as WorkflowProcessItemKind, ck as WorkflowProcessItemOrigin, cl as WorkflowProcessItemStatus, cm as WorkflowProcessProgress, cn as WorkflowProcessSnapshot, co as WorkflowProcessSource, cp as WorkflowProcessStatus, cq as WorkflowProcessSummaryStatus, cr as WorkflowProcessTokenUsage, cs as WorkflowProcessTracker, ct as WorkflowProcessTrackerOptions, cu as WorkflowRun, cw as WorkflowRunStatus, cx as WorkflowSpawnAgentInput, cy as WorkflowSynthesis, cz as WorkflowSynthesizeInput, cA as WorkflowTaskHandle, cC as WorkflowTaskSnapshot, cD as WorkflowTaskStatus, cE as WorkflowTaskSummaryEventUpdate, cF as WorkflowTaskSummaryKind, cG as WorkflowTaskSummaryUpdate, cH as WorkflowTaskUsage, cI as WorkflowTaskVerification, cJ as WorkflowTaskVerificationResult, cK as WorkflowWaitOptions, cL as _resetAdmittedAgentBindings, cM as _resetPresetDispatchers, cN as asSingleSelection, cO as buildAssistantMessageFromLlmResult, cP as buildSystemPrompt, cQ as buildToolResultMessage, cR as createAgent, cS as createHandoff, cT as createInMemorySession, cU as createInvariantSessionForAgent, cV as createStateWriter, cW as createTrace, cX as createWorkflowProcessTracker, cY as defaultTracer, cZ as detectInstructionsInjection, c_ as discoverInstances, c$ as executeRunnerToolCall, d0 as extractAssistantTextFromMessage, d1 as getActiveUserInteraction, d2 as getAdmittedAgentBindings, d3 as isAskUserCustomInputAnswer, d4 as isFinalWorkflowProcessStatus, d5 as isRunnableTool, d6 as isRunnerLlmResult, d7 as normalizeHostMetadata, d8 as registerChildTask, d9 as registerPresetDispatcher, da as requestTaskStop, db as runAdmissionAudit, dc as setActiveUserInteraction, dd as setAdmittedAgentBindings } from './types-chunks/process.d-CY2g03Mb.js';
3
- import { y as MessageQueue, X as WorkflowScriptManifest } from './types-chunks/run-manager.d-CYTnWhZY.js';
4
- export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, M as ManagedRunClassification, u as ManagedRunHooks, v as ManagedWorkflowRun, w as ManagedWorkflowSnapshot, x as ManagedWorkflowStatus, P as PROMISE_PATTERN, z as PolicyCompactionResult, S as StartManagedRunInput, W as WORKFLOW_CAPSULE_API_VERSION, A as WORKFLOW_CAPSULE_FORMAT, B as WORKFLOW_CAPSULE_VERSION, E as WORKFLOW_PATTERN_IDS, F as WorkflowCapsule, G as WorkflowCapsuleEnvironmentRequirement, H as WorkflowCapsuleInputs, I as WorkflowCapsuleIntent, J as WorkflowCapsuleProvenance, N as WorkflowCapsuleRequirements, O as WorkflowPatternId, Q as WorkflowProcessMetadata, R as WorkflowQualityLintFinding, T as WorkflowQualityLintOptions, U as WorkflowQualityLintSeverity, V as WorkflowRunManager, _ as _resetMessageQueueForTests, Y as appendSessionLineageLabel, Z as applyLineageTruncation, $ as applySessionCompaction, a0 as archiveOldIslands, a1 as assertRestrictedWorkflowQuality, a2 as buildSessionTree, a3 as buildWorkflowCapsuleIntent, a4 as cleanupIncompleteToolCalls, a5 as countActiveLineageMessages, a6 as countTokens, a7 as createSessionLineage, a8 as createWorkflowCapsule, a9 as createWorkflowModuleFromCapsule, aa as createWorkflowRunManager, ab as estimateTokens, ac as extractArtifactLedger, ad as extractFileOps, ae as extractTitleFromMessages, af as findPreviousUserEntryId, ag as forkSessionLineage, ah as generateSessionId, ai as getAgentConfigHome, aj as getAgentConfigPath, ak as getAppDataDir, al as getDefaultWorkflowRunManager, am as getMessageQueue, an as getSessionLineagePath, ao as getSessionMessagesFromLineage, ap as lintRestrictedWorkflowSource, aq as mergeArtifactLedger, ar as mergeFileOps, as as resolveSessionLineageTarget, at as rewindSessionLineage, au as setAgentConfigHome, av as setSessionLineageActiveEntry, aw as validateAndFixToolHistory, ax as validateWorkflowCapsule, ay as validateWorkflowScriptManifest } from './types-chunks/run-manager.d-CYTnWhZY.js';
5
- import { f as QueuedMessage, d as MessagePriority, e as QueuedInputArtifact, M as MessageMode } from './types-chunks/types.d-1CnTg7Sd.js';
6
- export { D as DequeueFilter, E as EnqueueInput, G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, g as ToolGuardrail, h as collectGuardrails, r as runInputGuardrails, i as runOutputGuardrails, j as runToolAfterGuardrails, k as runToolBeforeGuardrails } from './types-chunks/types.d-1CnTg7Sd.js';
3
+ import { M as MessageQueue, N as WorkflowScriptManifest } from './types-chunks/capsule.d-hVhPNkHd.js';
4
+ export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetMessageQueueForTests, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as extractArtifactLedger, a4 as extractFileOps, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir, ac as getMessageQueue, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as lintRestrictedWorkflowSource, ag as mergeArtifactLedger, ah as mergeFileOps, ai as resolveSessionLineageTarget, aj as rewindSessionLineage, ak as setAgentConfigHome, al as setSessionLineageActiveEntry, am as validateAndFixToolHistory, an as validateWorkflowCapsule, ao as validateWorkflowScriptManifest } from './types-chunks/capsule.d-hVhPNkHd.js';
5
+ export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-C_Siraua.js';
7
6
  import { S as KodaXTaskResultSource, R as KodaXTaskResultMetadata, h as KodaXImageBlock, j as KodaXMessage, a0 as KodaXToolDefinition, a5 as KodaXToolUseBlock } from './types-chunks/types.d-Bp4Lm1jv.js';
8
7
  export { K as KodaXAssuranceIntent, c as KodaXContentBlock, e as KodaXExecutionMode, f as KodaXExecutionPattern, l as KodaXMutationSurface, p as KodaXProviderConfig, x as KodaXProviderStreamOptions, A as KodaXReasoningCapability, E as KodaXReasoningMode, G as KodaXReasoningRequest, H as KodaXRedactedThinkingBlock, J as KodaXRiskLevel, M as KodaXStreamResult, N as KodaXTaskActionability, O as KodaXTaskBudgetOverrides, P as KodaXTaskComplexity, Q as KodaXTaskFamily, T as KodaXTaskRoutingDecision, U as KodaXTaskType, V as KodaXTaskWorkIntent, W as KodaXTextBlock, X as KodaXThinkingBlock, Y as KodaXThinkingBudgetMap, Z as KodaXThinkingDepth, $ as KodaXTokenUsage, a1 as KodaXToolResultBlock } from './types-chunks/types.d-Bp4Lm1jv.js';
9
8
  import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-BQB0M70w.js';
10
9
  export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-BQB0M70w.js';
11
10
  export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
12
11
  import { ChildProcess } from 'node:child_process';
12
+ import { c as QueuedMessage, a as MessagePriority, b as QueuedInputArtifact, M as MessageMode } from './types-chunks/types.d-BMLxKV69.js';
13
+ export { D as DequeueFilter, E as EnqueueInput } from './types-chunks/types.d-BMLxKV69.js';
13
14
  import { K as KodaXBaseProvider } from './types-chunks/base.d-DalIRhbb.js';
14
15
  import { l as SkillSource } from './types-chunks/types.d-vJExiRje.js';
15
16
  export { I as ISkillRegistry, a as IVariableResolver, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-vJExiRje.js';
16
17
  export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
17
- export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpCapabilityDescriptor, b as McpCapabilityKind, c as McpCapabilityProvider, d as McpCapabilityRisk, e as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpExpiredSessionError, i as McpIcon, j as McpManager, k as McpProviderOptions, l as McpReverseCapabilities, m as McpRoot, n as McpSamplingRequest, o as McpSamplingResult, p as McpServerCatalog, q as McpServerCatalogSnapshot, r as McpServerLogs, s as McpServerRuntime, t as McpServerRuntimeDiagnostics, u as McpServerStatus, v as McpServerToolList, w as McpToolTaskSupport, x as McpTransport, y as McpTransportEvents, O as OAuthClientInfo, z as OAuthLoginConsent, P as PerformOAuthLoginOptions, B as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, C as buildInitializeCapabilities, E as createMcpCapabilityId, F as createMcpManager, G as createMcpTransport, H as defaultMcpCacheDir, I as discoverAuthorizationServerMetadata, J as discoverOAuthEndpoints, K as discoverProtectedResourceMetadata, L as extractInsufficientScope, N as extractResourceMetadataUrl, Q as getMcpCachePaths, R as loadValidToken, S as normalizeMcpCapabilityId, T as parseMcpCapabilityId, U as performOAuthLogin, V as registerOAuthClient, X as searchMcpCatalog } from './types-chunks/manager.d-DBD7SOTT.js';
18
+ export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpElicitRequest, f as McpElicitResult, g as McpIcon, h as McpManager, i as McpProviderOptions, j as McpReverseCapabilities, k as McpRoot, l as McpSamplingRequest, m as McpSamplingResult, n as McpServerCatalog, o as McpServerCatalogSnapshot, p as McpServerLogs, q as McpServerRuntime, r as McpServerRuntimeDiagnostics, s as McpServerStatus, t as McpServerToolList, u as McpToolTaskSupport, v as buildInitializeCapabilities, w as createMcpCapabilityId, x as createMcpManager, y as defaultMcpCacheDir, z as getMcpCachePaths, A as normalizeMcpCapabilityId, B as parseMcpCapabilityId, C as searchMcpCatalog } from './types-chunks/manager.d-Zum9cGHU.js';
19
+ export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
18
20
  export { createMcpTestServerFixture } from './sdk-mcp.js';
19
21
  export { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExecutor, SkillExpansionResult, SkillRegistry, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath } from './sdk-skills.js';
22
+ export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-CFknOfo1.js';
23
+
24
+ type KodaXDiagnosticLevel = 'debug' | 'info' | 'warn' | 'error';
25
+ interface KodaXDiagnostic {
26
+ readonly source: string;
27
+ readonly level: KodaXDiagnosticLevel;
28
+ readonly message: string;
29
+ readonly detail?: unknown;
30
+ }
31
+ type KodaXDiagnosticSink = (diagnostic: KodaXDiagnostic) => void;
32
+ declare function setKodaXDiagnosticSink(sink: KodaXDiagnosticSink | undefined): () => void;
33
+ declare function emitKodaXDiagnostic(diagnostic: KodaXDiagnostic): void;
34
+ declare function formatKodaXDiagnostic(diagnostic: KodaXDiagnostic): string;
20
35
 
21
36
  /**
22
37
  * TracingProcessor — sink for span/trace lifecycle events.
@@ -518,6 +533,10 @@ interface ManagedChildProcessMetadata {
518
533
  readonly args?: readonly string[];
519
534
  readonly cwd?: string;
520
535
  }
536
+ interface ManagedChildRegistrationOptions {
537
+ /** Keep the record until the returned cleanup callback is invoked. */
538
+ readonly manualUnregister?: boolean;
539
+ }
521
540
  interface ManagedChildCleanupSummary {
522
541
  readonly killed: number;
523
542
  readonly pruned: number;
@@ -526,7 +545,7 @@ interface ManagedChildCleanupSummary {
526
545
  interface CleanupOptions {
527
546
  readonly includeCurrentOwner?: boolean;
528
547
  }
529
- declare function registerManagedChildProcess(child: ChildProcess, metadata: ManagedChildProcessMetadata): () => void;
548
+ declare function registerManagedChildProcess(child: ChildProcess, metadata: ManagedChildProcessMetadata, options?: ManagedChildRegistrationOptions): () => void;
530
549
  declare function cleanupRegisteredManagedChildren(options?: CleanupOptions): Promise<ManagedChildCleanupSummary>;
531
550
 
532
551
  /**
@@ -3037,5 +3056,5 @@ type WorkflowRunOutcome<T> = {
3037
3056
  */
3038
3057
  declare function runWorkflow<T>(opts: CreateWorkflowRuntimeOptions, script: (api: WorkflowApi, args: unknown) => Promise<T>): Promise<WorkflowRunOutcome<T>>;
3039
3058
 
3040
- export { Agent, AgentManifest, AgentMessage, CAPABILITY_CACHE_FILENAME, COMPACTION_SUMMARY_PREFIX, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, 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, DiscoveredInstance, FileExtensionStore, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMessage, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXTaskResultMetadata, KodaXTaskResultSource, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, ManifestPatch, MemoryActionProposal, MemoryApplyResult, MemoryBodySnapshot, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessageMode, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, SkillSource, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, addTracingProcessor, appendGoalEntry, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, compact, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLlmJudgedStopHook, createMemoryControlPlane, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, editDistance, emitHandoffSpan, enqueueChildTaskNotification, enqueueWithArtifacts, evidenceTrail, finalOwner, findFuzzyToolMatch, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, routeMessage, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
3041
- export type { AdmissionMetricsSnapshot, ApproveStoredLearningProposalOptions, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, EnqueueChildTaskNotificationInput, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, HandoffSignal, IdleYieldSnapshot, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningIntakeRecordResult, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, RenderOptions, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RouteMessageOptions, RouteMessageResult, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
3059
+ export { Agent, AgentManifest, AgentMessage, CAPABILITY_CACHE_FILENAME, COMPACTION_SUMMARY_PREFIX, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, 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, DiscoveredInstance, FileExtensionStore, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMessage, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXTaskResultMetadata, KodaXTaskResultSource, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, ManifestPatch, MemoryActionProposal, MemoryApplyResult, MemoryBodySnapshot, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessageMode, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, SkillSource, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, addTracingProcessor, appendGoalEntry, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, compact, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLlmJudgedStopHook, createMemoryControlPlane, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueChildTaskNotification, enqueueWithArtifacts, evidenceTrail, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, routeMessage, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
3060
+ export type { AdmissionMetricsSnapshot, ApproveStoredLearningProposalOptions, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, EnqueueChildTaskNotificationInput, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, HandoffSignal, IdleYieldSnapshot, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningIntakeRecordResult, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, RenderOptions, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RouteMessageOptions, RouteMessageResult, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
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{$ as Do,$a as Dr,$b as Ae,$c as Bf,$d as Bm,A as ro,Aa as er,Ab as ee,Ac as $e,Ad as om,Ae as op,B as eo,Ba as fr,Bb as fe,Bc as of,Bd as rm,C as fo,Ca as mr,Cb as me,Cc as rf,Cd as em,D as mo,Da as pr,Db as pe,Dc as ef,Dd as fm,E as po,Ea as tr,Eb as te,Ec as ff,Ed as mm,F as to,Fa as xr,Fb as xe,Fc as mf,Fd as pm,G as xo,Ga as ar,Gb as ae,Gc as pf,Gd as tm,H as ao,Ha as br,Hb as be,Hc as tf,Hd as xm,I as bo,Ia as cr,Ib as ce,Ic as xf,Id as am,J as co,Ja as dr,Jb as de,Jc as af,Jd as bm,K as go,Ka as gr,Kb as ge,Kc as bf,Kd as cm,L as ho,La as hr,Lb as he,Lc as cf,Ld as dm,M as io,Ma as ir,Mb as ie,Mc as df,Md as gm,N as jo,Na as jr,Nc as gf,Nd as hm,O as ko,Oa as kr,Oc as hf,Od as im,P as lo,Pa as lr,Pc as jf,Pd as jm,Q as no,Qa as nr,Qb as je,Qc as kf,Qd as km,R as qo,Ra as qr,Rb as ke,Rc as lf,Rd as lm,S as so,Sa as sr,Sb as le,Sc as nf,Sd as nm,T as uo,Ta as ur,Tb as ne,Tc as qf,Td as qm,U as vo,Ua as vr,Ub as qe,Uc as sf,Ud as sm,V as wo,Va as wr,Vb as se,Vc as uf,Vd as um,W as yo,Wa as yr,Wb as ue,Wc as vf,Wd as vm,X as zo,Xa as zr,Xb as ve,Xc as wf,Xd as wm,Y as Ao,Ya as Ar,Yb as we,Yc as yf,Yd as ym,Z as Bo,Za as Br,Zb as ye,Zc as zf,Zd as zm,_ as Co,_a as Cr,_b as ze,_c as Af,_d as Am,a as D,aa as Eo,ab as Er,ac as Be,ad as Cf,ae as Cm,b as E,ba as Fo,bb as Fr,bc as Ce,bd as Df,be as Dm,c as F,ca as Go,cb as Gr,cc as De,cd as Ef,ce as Em,d as G,da as Ho,db as Hr,dc as Ee,dd as Ff,de as Fm,e as H,ea as Io,eb as Ir,ec as Fe,ed as Gf,ee as Gm,f as I,fa as Jo,fb as Jr,fc as Ge,fd as Hf,fe as Hm,g as J,ga as Ko,gb as Kr,gc as He,gd as If,ge as Im,h as K,ha as Lo,hb as Lr,hc as Ie,hd as Jf,he as Jm,i as L,ia as Mo,ib as Mr,ic as Je,id as Kf,ie as Km,j as M,ja as No,jb as Nr,jc as Ke,jd as Lf,je as Lm,k as N,ka as Oo,kb as Or,kc as Le,kd as Mf,ke as Mm,l as O,la as Po,lb as Pr,lc as Me,ld as Nf,le as Nm,m as P,ma as Qo,mb as Qr,mc as Ne,md as Of,me as Om,n as Q,na as Ro,nb as Rr,nc as Oe,nd as Pf,ne as Pm,o as R,oa as So,ob as Sr,oc as Pe,od as Qf,oe as Qm,p as S,pa as To,pb as Tr,pc as Qe,pd as Rf,pe as Rm,q as T,qa as Uo,qb as Ur,qc as Re,qd as Sf,qe as Sm,r as U,ra as Vo,rb as Vr,rc as Se,rd as Tf,re as Tm,s as V,sa as Wo,sb as Wr,sc as Te,sd as Uf,se as Um,t as W,ta as Xo,tb as Xr,tc as Ue,td as Vf,te as Vm,u as X,ua as Yo,ub as Yr,uc as Ve,ud as Wf,ue as Wm,v as Y,va as Zo,vb as Zr,vc as We,vd as Xf,ve as Xm,w as Z,wa as _o,wb as _r,wc as Xe,wd as Yf,we as Ym,x as _,xa as $o,xb as $r,xc as Ye,xd as Zf,xe as Zm,y as $,ya as or,yb as oe,yc as Ze,yd as _f,ye as _m,z as oo,za as rr,zb as re,zc as _e,zd as $f,ze as $m}from"./chunks/chunk-UGTK2JIJ.js";import{A as u,B as v,C as w,D as y,E as z,F as A,G as B,H as C,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,v as k,w as l,x as n,y as q,z as s}from"./chunks/chunk-ZL5CEANW.js";import"./chunks/chunk-V4WSBIXB.js";export{qr as ASK_USER_BACK_SIGNAL,sr as ASK_USER_CUSTOM_INPUT_SIGNAL,or as CAPABILITY_CACHE_FILENAME,hm as COMPACTION_SUMMARY_PREFIX,Wo as CORE_INVARIANTS,eo as ConsoleTracingProcessor,zm as DEFAULT_CONTEXT_WINDOW,Gr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,lm as DEFAULT_MICROCOMPACTION_CONFIG,Jf as DEFAULT_POST_COMPACT_CONFIG,am as DEFAULT_SUMMARY_PROMPT,ko as DEFAULT_SYSTEM_CAP,bm as DEFAULT_UPDATE_SUMMARY_PROMPT,S as DefaultSummaryCompaction,um as FileExtensionStore,fo as FileTracingProcessor,Eo as GuardrailBlockedError,Fo as GuardrailEscalateError,xr as HARDENED_ENV_VARS,ar as HARDENING_OPT_OUT_ENV,r as ImageResizeError,vo as InvariantSession,L as KODAX_API_MIN_INTERVAL,E as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,F as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,I as KODAX_MAX_INCOMPLETE_RETRIES,J as KODAX_MAX_MAXTOKENS_RETRIES,G as KODAX_MAX_RETRIES,D as KODAX_MAX_TOKENS,H as KODAX_RETRY_BASE_DELAY,K as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,Cf as LINEAGE_ENTRY_TYPES,Ef as LineageCompaction,Df as LineageExtension,x as MAX_DIMENSION,xe as MAX_ENTRYPOINT_BYTES,te as MAX_ENTRYPOINT_LINES,Se as MAX_SKILL_MD_BYTES,Te as MAX_SKILL_SUPPORT_FILE_BYTES,yo as MAX_TOOL_LOOP_ITERATIONS,df as McpAuthRequiredError,yf as McpCapabilityProvider,cf as McpExpiredSessionError,zf as McpManager,wf as McpServerRuntime,Oe as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,If as POST_COMPACT_MAX_TOKENS_PER_FILE,Hf as POST_COMPACT_TOKEN_BUDGET,M as PROMISE_PATTERN,gm as PROTECTED_TOOL_NAMES,Ar as QueuedInputArtifactError,Ro as Runner,Ee as SkillExecutor,Ae as SkillRegistry,T as SpanImpl,a as TARGET_RAW_SIZE_BYTES,oo as Tracer,we as VariableResolver,Pm as WORKFLOW_CAPSULE_API_VERSION,Nm as WORKFLOW_CAPSULE_FORMAT,Om as WORKFLOW_CAPSULE_VERSION,Fm as WORKFLOW_PATTERN_IDS,Um as WorkflowAbortError,Wm as WorkflowBudgetError,Bm as WorkflowEventRecorder,Vm as WorkflowLimitError,Jm as WorkflowScriptExecutionError,Xm as WorkflowTaskFailedError,y as YIELD_TOOL_NAMES,Z as _emitSpanEnd,Y as _emitSpanStart,_ as _emitTraceEnd,X as _getRegisteredProcessors,io as _resetAdmissionMetrics,uo as _resetAdmittedAgentBindings,bo as _resetInvariantRegistry,w as _resetMessageQueueForTests,Po as _resetPresetDispatchers,V as addTracingProcessor,rm as appendGoalEntry,Sf as appendSessionLineageLabel,Uf as applyLineageTruncation,mo as applyManifestPatch,br as applyProcessHardening,Tf as applySessionCompaction,Ve as applySkillLearningProposal,We as approveStoredLearningProposal,_f as archiveOldIslands,vr as asSingleSelection,Im as assertRestrictedWorkflowQuality,Rr as bootstrapTeamMode,Co as buildAssistantMessageFromLlmResult,cm as buildCompactionPromptSnapshot,Mf as buildFileContentMessages,vf as buildInitializeCapabilities,Nr as buildOtherInstancesPromptBlock,Kf as buildPostCompactAttachments,sm as buildRecoverySeed,Yf as buildSessionTree,Qo as buildSystemPrompt,Do as buildToolResultMessage,Tm as buildWorkflowCapsuleIntent,Qe as canMarkCreatedByAgent,Tr as cleanupIncompleteToolCalls,nr as cleanupRegisteredManagedChildren,pr as clearCapabilityCache,ge as clearPluginSkillPaths,Go as collectGuardrails,km as compact,Fr as composeIdleYieldUserMessage,po as composePatches,ef as computeSkillConsumerImpact,Zf as countActiveLineageMessages,Cr as countLastAssistantToolCalls,O as countTokens,P as createAgent,Fe as createExecutor,vm as createExtensionStore,p as createFileArtifactFromPath,Q as createHandoff,m as createImageArtifactFromPath,R as createInMemorySession,wo as createInvariantSessionForAgent,Xr as createLlmJudgedStopHook,pf as createMcpCapabilityId,Af as createMcpManager,Bf as createMcpTestServerFixture,gf as createMcpTransport,Ne as createMemoryControlPlane,ye as createResolver,Mm as createRestrictedWorkflowModule,Nf as createSessionLineage,Lr as createStateWriter,U as createTrace,t as createVideoArtifactFromPath,Rm as createWorkflowCapsule,Sm as createWorkflowModuleFromCapsule,Em as createWorkflowProcessTracker,$m as createWorkflowRunManager,Zm as createWorkflowRuntime,Re as decideSkillGovernance,mf as defaultMcpCacheDir,ro as defaultTracer,Lo as detectHandoffSignal,Dr as detectIdleYield,lo as detectInstructionsInjection,lf as discoverAuthorizationServerMetadata,Mr as discoverInstances,nf as discoverOAuthEndpoints,kf as discoverProtectedResourceMetadata,qe as discoverSkills,ue as discoverSkillsWithMonorepo,Ur as editDistance,No as emitHandoffSpan,B as enqueueChildTaskNotification,C as enqueueWithArtifacts,N as estimateTokens,To as evidenceTrail,Bo as executeRunnerToolCall,Ge as executeSkill,He as expandSkillForLLM,pm as extractArtifactLedger,So as extractAssistantTextFromMessage,fm as extractFileOps,jf as extractInsufficientScope,hf as extractResourceMetadataUrl,Gf as extractTitleFromMessages,Uo as finalOwner,Vr as findFuzzyToolMatch,Vf as findPreviousUserEntryId,Xf as forkSessionLineage,Ie as formatSkillActivationMessage,Ff as generateSessionId,dm as generateSummary,Pr as getActiveTeamModeWriter,yr as getActiveUserInteraction,ho as getAdmissionMetricsSnapshot,so as getAdmittedAgentBindings,Zo as getAgentConfigHome,_o as getAgentConfigPath,$o as getAppDataDir,fr as getCachedRejectedEfforts,rr as getCapabilityCacheFile,he as getDefaultSkillPaths,op as getDefaultWorkflowRunManager,xo as getInvariant,bf as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,se as getNestedSkillPaths,Of as getSessionLineagePath,Pf as getSessionMessagesFromLineage,ie as getSkillPathsFlat,Be as getSkillRegistry,ym as gracefulCompactDegradation,Vo as handoffLegality,Zr as hashCwd,e as inferImageMediaType,f as inferVideoMediaType,Ce as initializeSkillRegistry,Lf as injectPostCompactAttachments,Wr as invokeLlmJudge,jo as isAdmissionDebugEnabled,ur as isAskUserCustomInputAnswer,re as isAutoManagedMemoryFile,dr as isChildProcessExited,im as isEmptyLikeSummary,Cm as isFinalWorkflowProcessStatus,em as isGoalEntry,Br as isIdleYieldEnabled,zo as isRunnableTool,Ao as isRunnerLlmResult,jr as killChildProcessTree,kr as killChildProcessTreeSync,hr as killPidTree,ir as killPidTreeSync,Hm as lintRestrictedWorkflowSource,de as listPluginSkillPaths,ao as listRegisteredInvariants,er as loadCapabilityCache,le as loadFullSkill,ne as loadSkillFileContent,ke as loadSkillMetadata,uf as loadValidToken,A as maybeDrainMidTurn,tm as mergeArtifactLedger,mm as mergeFileOps,nm as microcompact,z as midTurnDrainPriority,jm as needsCompaction,Dm as normalizeHostMetadata,tf as normalizeMcpCapabilityId,b as normalizePastedImage,qm as normalizeRecoveryPrompt,Ym as normalizeWorkflowLimits,ve as parseArguments,xf as parseMcpCapabilityId,me as parseMemoryFile,fe as parseMemoryType,ee as parseMemoryTypeFromFilename,pe as parseScalarFields,je as parseSkillMarkdown,sf as performOAuthLogin,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,$f as readLatestGoalFromBranch,om as readLatestGoalState,Je as readLearningProposalStore,of as readSkillTrustLedger,_e as readSkillUsageLedger,ff as recordCompletedTurnLearning,Xe as recordProceduralLearning,mr as recordRejectedEffort,$e as recordSkillUsage,zr as registerChildTask,Xo as registerCoreInvariants,to as registerInvariant,lr as registerManagedChildProcess,qf as registerOAuthClient,be as registerPluginSkillPath,Oo as registerPresetDispatcher,Mo as replaceSystemMessage,Kr as requestTaskStop,tr as resetCapabilityCacheMemoForTesting,De as resetSkillRegistry,Am as resolveContextWindow,go as resolveEffectiveInvariants,Le as resolveLearningProposalStore,oe as resolveMemoryEntrypoint,$r as resolveMemoryRoot,co as resolveRequiredInvariants,Qf as resolveSessionLineageTarget,ze as resolveSkillContent,Ue as resolveSkillSnapshotLocation,Ze as resolveSkillTrustLedger,Ye as resolveSkillUsageLedger,Wf as rewindSessionLineage,Jr as routeMessage,no as runAdmissionAudit,Ir as runFanOut,Ho as runInputGuardrails,Io as runOutputGuardrails,Lm as runRestrictedWorkflowScript,Ko as runToolAfterGuardrails,Jo as runToolBeforeGuardrails,Hr as runWithIdleYield,_m as runWorkflow,Yr as sanitizeProjectKey,af as searchMcpCatalog,xm as serializeConversation,Or as setActiveTeamModeWriter,wr as setActiveUserInteraction,qo as setAdmittedAgentBindings,Yo as setAgentConfigHome,Rf as setSessionLineageActiveEntry,W as setTracingProcessors,wm as shouldCompact,$ as shutdownTracing,cr as stripHardenedEnvVars,Pe as triageProceduralLearning,ae as truncateEntrypointContent,_r as tryGitRemote,ce as unregisterPluginSkillPath,Qr as updateActiveTeamMode,Me as updateLearningProposalStatus,rf as updateSkillTrustLedger,Ke as upsertLearningProposal,Sr as validateAndFixToolHistory,s as validateInputArtifactsForModel,Km as validateRestrictedWorkflowSource,Qm as validateWorkflowCapsule,Gm as validateWorkflowScriptManifest,gr as waitForChildProcessExit,Er as waitForWakeEvent};
2
+ import{$ as Do,$a as Dr,$b as Ae,$c as Bf,$d as Bm,A as ro,Aa as er,Ab as ee,Ac as $e,Ad as om,Ae as op,B as eo,Ba as fr,Bb as fe,Bc as of,Bd as rm,Be as rp,C as fo,Ca as mr,Cb as me,Cc as rf,Cd as em,Ce as ep,D as mo,Da as pr,Db as pe,Dc as ef,Dd as fm,De as fp,E as po,Ea as tr,Eb as te,Ec as ff,Ed as mm,F as to,Fa as xr,Fb as xe,Fc as mf,Fd as pm,G as xo,Ga as ar,Gb as ae,Gc as pf,Gd as tm,H as ao,Ha as br,Hb as be,Hc as tf,Hd as xm,I as bo,Ia as cr,Ib as ce,Ic as xf,Id as am,J as co,Ja as dr,Jb as de,Jc as af,Jd as bm,K as go,Ka as gr,Kb as ge,Kc as bf,Kd as cm,L as ho,La as hr,Lb as he,Lc as cf,Ld as dm,M as io,Ma as ir,Mb as ie,Mc as df,Md as gm,N as jo,Na as jr,Nb as je,Nc as gf,Nd as hm,O as ko,Oa as kr,Ob as ke,Oc as hf,Od as im,P as lo,Pa as lr,Pb as le,Pc as jf,Pd as jm,Q as no,Qa as nr,Qc as kf,Qd as km,R as qo,Ra as qr,Rc as lf,Rd as lm,S as so,Sa as sr,Sc as nf,Sd as nm,T as uo,Ta as ur,Tb as ne,Tc as qf,Td as qm,U as vo,Ua as vr,Ub as qe,Uc as sf,Ud as sm,V as wo,Va as wr,Vb as se,Vc as uf,Vd as um,W as yo,Wa as yr,Wb as ue,Wc as vf,Wd as vm,X as zo,Xa as zr,Xb as ve,Xc as wf,Xd as wm,Y as Ao,Ya as Ar,Yb as we,Yc as yf,Yd as ym,Z as Bo,Za as Br,Zb as ye,Zc as zf,Zd as zm,_ as Co,_a as Cr,_b as ze,_c as Af,_d as Am,a as D,aa as Eo,ab as Er,ac as Be,ad as Cf,ae as Cm,b as E,ba as Fo,bb as Fr,bc as Ce,bd as Df,be as Dm,c as F,ca as Go,cb as Gr,cc as De,cd as Ef,ce as Em,d as G,da as Ho,db as Hr,dc as Ee,dd as Ff,de as Fm,e as H,ea as Io,eb as Ir,ec as Fe,ed as Gf,ee as Gm,f as I,fa as Jo,fb as Jr,fc as Ge,fd as Hf,fe as Hm,g as J,ga as Ko,gb as Kr,gc as He,gd as If,ge as Im,h as K,ha as Lo,hb as Lr,hc as Ie,hd as Jf,he as Jm,i as L,ia as Mo,ib as Mr,ic as Je,id as Kf,ie as Km,j as M,ja as No,jb as Nr,jc as Ke,jd as Lf,je as Lm,k as N,ka as Oo,kb as Or,kc as Le,kd as Mf,ke as Mm,l as O,la as Po,lb as Pr,lc as Me,ld as Nf,le as Nm,m as P,ma as Qo,mb as Qr,mc as Ne,md as Of,me as Om,n as Q,na as Ro,nb as Rr,nc as Oe,nd as Pf,ne as Pm,o as R,oa as So,ob as Sr,oc as Pe,od as Qf,oe as Qm,p as S,pa as To,pb as Tr,pc as Qe,pd as Rf,pe as Rm,q as T,qa as Uo,qb as Ur,qc as Re,qd as Sf,qe as Sm,r as U,ra as Vo,rb as Vr,rc as Se,rd as Tf,re as Tm,s as V,sa as Wo,sb as Wr,sc as Te,sd as Uf,se as Um,t as W,ta as Xo,tb as Xr,tc as Ue,td as Vf,te as Vm,u as X,ua as Yo,ub as Yr,uc as Ve,ud as Wf,ue as Wm,v as Y,va as Zo,vb as Zr,vc as We,vd as Xf,ve as Xm,w as Z,wa as _o,wb as _r,wc as Xe,wd as Yf,we as Ym,x as _,xa as $o,xb as $r,xc as Ye,xd as Zf,xe as Zm,y as $,ya as or,yb as oe,yc as Ze,yd as _f,ye as _m,z as oo,za as rr,zb as re,zc as _e,zd as $f,ze as $m}from"./chunks/chunk-TLJGOKBT.js";import{A as u,B as v,C as w,D as y,E as z,F as A,G as B,H as C,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,v as k,w as l,x as n,y as q,z as s}from"./chunks/chunk-PZTG2C33.js";import"./chunks/chunk-ONUPGMER.js";export{vr as ASK_USER_BACK_SIGNAL,wr as ASK_USER_CUSTOM_INPUT_SIGNAL,fr as CAPABILITY_CACHE_FILENAME,km as COMPACTION_SUMMARY_PREFIX,Zo as CORE_INVARIANTS,po as ConsoleTracingProcessor,Cm as DEFAULT_CONTEXT_WINDOW,Jr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,sm as DEFAULT_MICROCOMPACTION_CONFIG,Mf as DEFAULT_POST_COMPACT_CONFIG,dm as DEFAULT_SUMMARY_PROMPT,qo as DEFAULT_SYSTEM_CAP,gm as DEFAULT_UPDATE_SUMMARY_PROMPT,V as DefaultSummaryCompaction,ym as FileExtensionStore,to as FileTracingProcessor,Ho as GuardrailBlockedError,Io as GuardrailEscalateError,cr as HARDENED_ENV_VARS,dr as HARDENING_OPT_OUT_ENV,r as ImageResizeError,zo as InvariantSession,L as KODAX_API_MIN_INTERVAL,E as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,F as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,I as KODAX_MAX_INCOMPLETE_RETRIES,J as KODAX_MAX_MAXTOKENS_RETRIES,G as KODAX_MAX_RETRIES,D as KODAX_MAX_TOKENS,H as KODAX_RETRY_BASE_DELAY,K as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,Ff as LINEAGE_ENTRY_TYPES,Hf as LineageCompaction,Gf as LineageExtension,x as MAX_DIMENSION,ce as MAX_ENTRYPOINT_BYTES,be as MAX_ENTRYPOINT_LINES,Ve as MAX_SKILL_MD_BYTES,We as MAX_SKILL_SUPPORT_FILE_BYTES,Bo as MAX_TOOL_LOOP_ITERATIONS,jf as McpAuthRequiredError,Bf as McpCapabilityProvider,hf as McpExpiredSessionError,Cf as McpManager,Af as McpServerRuntime,Re as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,Lf as POST_COMPACT_MAX_TOKENS_PER_FILE,Kf as POST_COMPACT_TOKEN_BUDGET,M as PROMISE_PATTERN,jm as PROTECTED_TOOL_NAMES,Dr as QueuedInputArtifactError,Uo as Runner,He as SkillExecutor,De as SkillRegistry,W as SpanImpl,a as TARGET_RAW_SIZE_BYTES,fo as Tracer,Ae as VariableResolver,Sm as WORKFLOW_CAPSULE_API_VERSION,Qm as WORKFLOW_CAPSULE_FORMAT,Rm as WORKFLOW_CAPSULE_VERSION,Im as WORKFLOW_PATTERN_IDS,Xm as WorkflowAbortError,Zm as WorkflowBudgetError,Em as WorkflowEventRecorder,Ym as WorkflowLimitError,Mm as WorkflowScriptExecutionError,_m as WorkflowTaskFailedError,y as YIELD_TOOL_NAMES,oo as _emitSpanEnd,$ as _emitSpanStart,ro as _emitTraceEnd,_ as _getRegisteredProcessors,lo as _resetAdmissionMetrics,yo as _resetAdmittedAgentBindings,ho as _resetInvariantRegistry,w as _resetMessageQueueForTests,So as _resetPresetDispatchers,Y as addTracingProcessor,mm as appendGoalEntry,Vf as appendSessionLineageLabel,Xf as applyLineageTruncation,xo as applyManifestPatch,gr as applyProcessHardening,Wf as applySessionCompaction,Ye as applySkillLearningProposal,Ze as approveStoredLearningProposal,rm as archiveOldIslands,zr as asSingleSelection,Lm as assertRestrictedWorkflowQuality,Ur as bootstrapTeamMode,Fo as buildAssistantMessageFromLlmResult,hm as buildCompactionPromptSnapshot,Pf as buildFileContentMessages,zf as buildInitializeCapabilities,Qr as buildOtherInstancesPromptBlock,Nf as buildPostCompactAttachments,wm as buildRecoverySeed,$f as buildSessionTree,To as buildSystemPrompt,Go as buildToolResultMessage,Wm as buildWorkflowCapsuleIntent,Te as canMarkCreatedByAgent,Wr as cleanupIncompleteToolCalls,ur as cleanupRegisteredManagedChildren,ar as clearCapabilityCache,je as clearPluginSkillPaths,Jo as collectGuardrails,qm as compact,Ir as composeIdleYieldUserMessage,ao as composePatches,pf as computeSkillConsumerImpact,om as countActiveLineageMessages,Fr as countLastAssistantToolCalls,O as countTokens,S as createAgent,Ie as createExecutor,zm as createExtensionStore,p as createFileArtifactFromPath,T as createHandoff,m as createImageArtifactFromPath,U as createInMemorySession,Ao as createInvariantSessionForAgent,_r as createLlmJudgedStopHook,af as createMcpCapabilityId,Df as createMcpManager,Ef as createMcpTestServerFixture,kf as createMcpTransport,Qe as createMemoryControlPlane,Be as createResolver,Pm as createRestrictedWorkflowModule,Qf as createSessionLineage,Or as createStateWriter,X as createTrace,t as createVideoArtifactFromPath,Um as createWorkflowCapsule,Vm as createWorkflowModuleFromCapsule,Hm as createWorkflowProcessTracker,ep as createWorkflowRunManager,op as createWorkflowRuntime,Ue as decideSkillGovernance,xf as defaultMcpCacheDir,mo as defaultTracer,Oo as detectHandoffSignal,Gr as detectIdleYield,so as detectInstructionsInjection,sf as discoverAuthorizationServerMetadata,Pr as discoverInstances,uf as discoverOAuthEndpoints,qf as discoverProtectedResourceMetadata,ve as discoverSkills,ye as discoverSkillsWithMonorepo,Xr as editDistance,Qo as emitHandoffSpan,Q as emitKodaXDiagnostic,B as enqueueChildTaskNotification,C as enqueueWithArtifacts,N as estimateTokens,Wo as evidenceTrail,Eo as executeRunnerToolCall,Je as executeSkill,Ke as expandSkillForLLM,am as extractArtifactLedger,Vo as extractAssistantTextFromMessage,tm as extractFileOps,nf as extractInsufficientScope,lf as extractResourceMetadataUrl,Jf as extractTitleFromMessages,Xo as finalOwner,Yr as findFuzzyToolMatch,Yf as findPreviousUserEntryId,_f as forkSessionLineage,R as formatKodaXDiagnostic,Le as formatSkillActivationMessage,If as generateSessionId,im as generateSummary,Sr as getActiveTeamModeWriter,Br as getActiveUserInteraction,ko as getAdmissionMetricsSnapshot,wo as getAdmittedAgentBindings,or as getAgentConfigHome,rr as getAgentConfigPath,er as getAppDataDir,tr as getCachedRejectedEfforts,mr as getCapabilityCacheFile,ke as getDefaultSkillPaths,fp as getDefaultWorkflowRunManager,co as getInvariant,gf as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,we as getNestedSkillPaths,Rf as getSessionLineagePath,Sf as getSessionMessagesFromLineage,le as getSkillPathsFlat,Ee as getSkillRegistry,Bm as gracefulCompactDegradation,Yo as handoffLegality,oe as hashCwd,e as inferImageMediaType,f as inferVideoMediaType,Fe as initializeSkillRegistry,Of as injectPostCompactAttachments,Zr as invokeLlmJudge,no as isAdmissionDebugEnabled,yr as isAskUserCustomInputAnswer,me as isAutoManagedMemoryFile,ir as isChildProcessExited,lm as isEmptyLikeSummary,Fm as isFinalWorkflowProcessStatus,pm as isGoalEntry,Er as isIdleYieldEnabled,Co as isRunnableTool,Do as isRunnerLlmResult,nr as killChildProcessTree,qr as killChildProcessTreeSync,kr as killPidTree,lr as killPidTreeSync,Km as lintRestrictedWorkflowSource,ie as listPluginSkillPaths,go as listRegisteredInvariants,pr as loadCapabilityCache,se as loadFullSkill,ue as loadSkillFileContent,qe as loadSkillMetadata,yf as loadValidToken,A as maybeDrainMidTurn,bm as mergeArtifactLedger,xm as mergeFileOps,um as microcompact,z as midTurnDrainPriority,nm as needsCompaction,Gm as normalizeHostMetadata,bf as normalizeMcpCapabilityId,b as normalizePastedImage,vm as normalizeRecoveryPrompt,$m as normalizeWorkflowLimits,ze as parseArguments,cf as parseMcpCapabilityId,xe as parseMemoryFile,te as parseMemoryType,pe as parseMemoryTypeFromFilename,ae as parseScalarFields,ne as parseSkillMarkdown,wf as performOAuthLogin,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,em as readLatestGoalFromBranch,fm as readLatestGoalState,Me as readLearningProposalStore,ff as readSkillTrustLedger,rf as readSkillUsageLedger,tf as recordCompletedTurnLearning,_e as recordProceduralLearning,xr as recordRejectedEffort,ef as recordSkillUsage,Cr as registerChildTask,_o as registerCoreInvariants,bo as registerInvariant,sr as registerManagedChildProcess,vf as registerOAuthClient,ge as registerPluginSkillPath,Ro as registerPresetDispatcher,Po as replaceSystemMessage,Nr as requestTaskStop,br as resetCapabilityCacheMemoForTesting,Ge as resetSkillRegistry,Dm as resolveContextWindow,jo as resolveEffectiveInvariants,Oe as resolveLearningProposalStore,fe as resolveMemoryEntrypoint,ee as resolveMemoryRoot,io as resolveRequiredInvariants,Tf as resolveSessionLineageTarget,Ce as resolveSkillContent,Xe as resolveSkillSnapshotLocation,of as resolveSkillTrustLedger,$e as resolveSkillUsageLedger,Zf as rewindSessionLineage,Mr as routeMessage,uo as runAdmissionAudit,Lr as runFanOut,Ko as runInputGuardrails,Lo as runOutputGuardrails,Om as runRestrictedWorkflowScript,No as runToolAfterGuardrails,Mo as runToolBeforeGuardrails,Kr as runWithIdleYield,rp as runWorkflow,$r as sanitizeProjectKey,df as searchMcpCatalog,cm as serializeConversation,Rr as setActiveTeamModeWriter,Ar as setActiveUserInteraction,vo as setAdmittedAgentBindings,$o as setAgentConfigHome,P as setKodaXDiagnosticSink,Uf as setSessionLineageActiveEntry,Z as setTracingProcessors,Am as shouldCompact,eo as shutdownTracing,hr as stripHardenedEnvVars,Se as triageProceduralLearning,de as truncateEntrypointContent,re as tryGitRemote,he as unregisterPluginSkillPath,Tr as updateActiveTeamMode,Pe as updateLearningProposalStatus,mf as updateSkillTrustLedger,Ne as upsertLearningProposal,Vr as validateAndFixToolHistory,s as validateInputArtifactsForModel,Nm as validateRestrictedWorkflowSource,Tm as validateWorkflowCapsule,Jm as validateWorkflowScriptManifest,jr as waitForChildProcessExit,Hr as waitForWakeEvent};