@kodax-ai/kodax 0.7.56 → 0.7.57

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 (70) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +21 -23
  3. package/README_CN.md +15 -17
  4. package/dist/builtin/code-review/SKILL.md +22 -3
  5. package/dist/chunks/{agent-MAAKRAF2.js → agent-EHWQZA4C.js} +1 -1
  6. package/dist/chunks/argument-completer-AYDAYGKL.js +2 -0
  7. package/dist/chunks/chunk-3WWPJGPQ.js +2 -0
  8. package/dist/chunks/chunk-4SHP3M67.js +2 -0
  9. package/dist/chunks/chunk-KN6IJMTB.js +636 -0
  10. package/dist/chunks/{chunk-ZBK3DZ3S.js → chunk-LZKGOR2C.js} +1 -1
  11. package/dist/chunks/chunk-MJFPFRGK.js +423 -0
  12. package/dist/chunks/chunk-N2N2W3AQ.js +584 -0
  13. package/dist/chunks/chunk-PCPFLPS4.js +5 -0
  14. package/dist/chunks/chunk-TCLSPUTR.js +31 -0
  15. package/dist/chunks/chunk-VACH6QWN.js +315 -0
  16. package/dist/chunks/chunk-YSVPF6SN.js +597 -0
  17. package/dist/chunks/{compaction-config-NAJEEPG5.js → compaction-config-TLDMFMZO.js} +1 -1
  18. package/dist/chunks/{construction-bootstrap-EDDVNP2B.js → construction-bootstrap-55B7Q5RX.js} +4 -4
  19. package/dist/chunks/dist-IE4HVWP7.js +2 -0
  20. package/dist/chunks/dist-IKOK2MJQ.js +2 -0
  21. package/dist/chunks/paste-WTL2XN7P.js +2 -0
  22. package/dist/chunks/utils-EJ2VCRTC.js +2 -0
  23. package/dist/index.d.ts +21 -17
  24. package/dist/index.js +6 -6
  25. package/dist/kodax_cli.js +1098 -1073
  26. package/dist/provider-capabilities.json +986 -197
  27. package/dist/sdk-agent.d.ts +20 -13
  28. package/dist/sdk-agent.js +1 -1
  29. package/dist/sdk-coding.d.ts +140 -110
  30. package/dist/sdk-coding.js +1 -1
  31. package/dist/sdk-llm.d.ts +5 -5
  32. package/dist/sdk-llm.js +1 -1
  33. package/dist/sdk-mcp.d.ts +1 -1
  34. package/dist/sdk-mcp.js +1 -1
  35. package/dist/sdk-media.d.ts +48 -5
  36. package/dist/sdk-media.js +1 -1
  37. package/dist/sdk-repl.d.ts +106 -97
  38. package/dist/sdk-repl.js +1 -1
  39. package/dist/sdk-session.d.ts +6 -6
  40. package/dist/sdk-session.js +1 -1
  41. package/dist/sdk-skills.js +1 -1
  42. package/dist/semantic-worker.js +11 -0
  43. package/dist/types-chunks/{base.d-CwPfI8WQ.d.ts → base.d-BnjQrSVf.d.ts} +36 -6
  44. package/dist/types-chunks/{bash-prefix-extractor.d-DZF1gDDz.d.ts → bash-prefix-extractor.d-BgvMbfq6.d.ts} +190 -135
  45. package/dist/types-chunks/{capsule.d-D0kjnqYy.d.ts → capsule.d-DwJp5r63.d.ts} +14 -11
  46. package/dist/types-chunks/{types.d-BKuHSiR0.d.ts → guardrail.d-BP3yyr6u.d.ts} +3 -121
  47. package/dist/types-chunks/{guardrail.d-DQQknOfb.d.ts → guardrail.d-C1DhxnvC.d.ts} +31 -9
  48. package/dist/types-chunks/{manager.d-DLmDhX3i.d.ts → manager.d-DBD7SOTT.d.ts} +7 -2
  49. package/dist/types-chunks/{process.d-BdiIUr8T.d.ts → process.d-BZncyzEj.d.ts} +2 -1
  50. package/dist/types-chunks/{resolver.d-Djq8KlCE.d.ts → resolver.d-ZvKQgl0X.d.ts} +82 -18
  51. package/dist/types-chunks/{sdk-session-BP6ZNpOp.d.ts → sdk-session-DAScB0rW.d.ts} +6 -4
  52. package/dist/types-chunks/{storage.d-CkydxFsV.d.ts → storage.d-CPvn9qI0.d.ts} +2 -2
  53. package/dist/types-chunks/{types.d-BJmoMf5H.d.ts → types.d-6VOXvF88.d.ts} +101 -22
  54. package/dist/types-chunks/types.d-D8WcfrOD.d.ts +143 -0
  55. package/dist/types-chunks/{utils.d-bC97IuQZ.d.ts → utils.d-CpgVIjYZ.d.ts} +16 -18
  56. package/package.json +11 -6
  57. package/dist/chunks/argument-completer-OWEXGWNL.js +0 -2
  58. package/dist/chunks/chunk-4OHXHC2S.js +0 -314
  59. package/dist/chunks/chunk-5YJIAP6C.js +0 -551
  60. package/dist/chunks/chunk-7EAGBLRV.js +0 -2
  61. package/dist/chunks/chunk-CDGOEK3T.js +0 -31
  62. package/dist/chunks/chunk-DHETLULC.js +0 -425
  63. package/dist/chunks/chunk-JCDO2FR4.js +0 -584
  64. package/dist/chunks/chunk-NZVJ3DFC.js +0 -656
  65. package/dist/chunks/chunk-QI3MRJGU.js +0 -5
  66. package/dist/chunks/chunk-XXQ3RLA2.js +0 -2
  67. package/dist/chunks/dist-2267YGB5.js +0 -2
  68. package/dist/chunks/dist-GW32CHO5.js +0 -2
  69. package/dist/chunks/paste-5IDBBQQ3.js +0 -2
  70. package/dist/chunks/utils-J7XBBZGB.js +0 -2
@@ -1,21 +1,22 @@
1
- import { l as KodaXImageBlock, Y as KodaXToolDefinition, _ as KodaXToolResultContentItem, E as KodaXReasoningMode, n as KodaXMessage, a1 as KodaXToolUseBlock, g as KodaXContentBlock, r as KodaXProviderCapabilityProfile, D as KodaXReasoningCapability, R as KodaXTaskType, i as KodaXExecutionMode, Q as KodaXTaskRoutingDecision, K as KodaXAmaControllerDecision, W as KodaXThinkingDepth, X as KodaXTokenUsage } from './types-chunks/types.d-BJmoMf5H.js';
2
- export { a as KodaXAmaFanoutClass, b as KodaXAmaFanoutPolicy, c as KodaXAmaProfile, d as KodaXAmaTactic, h as KodaXCustomProviderConfig, o as KodaXModelDescriptor, q as KodaXProtocolFamily, s as KodaXProviderConfig, u as KodaXProviderConversationSemantics, x as KodaXProviderMcpSupport, A as KodaXProviderStreamOptions, C as KodaXProviderTransport, F as KodaXReasoningOverride, G as KodaXReasoningRequest, H as KodaXRedactedThinkingBlock, I as KodaXReviewScale, J as KodaXRiskLevel, L as KodaXStreamResult, N as KodaXTaskBudgetOverrides, T as KodaXTextBlock, U as KodaXThinkingBlock, V as KodaXThinkingBudgetMap, Z as KodaXToolResultBlock } from './types-chunks/types.d-BJmoMf5H.js';
3
- export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, P as ProviderName, n as buildReasoningOverrideKey, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, X as loadReasoningOverride, _ as reasoningCapabilityToOverride, $ as reasoningOverrideToCapability, a0 as registerCustomProviders, a1 as registerModelProvider, a2 as resolveModelCapabilities, a3 as resolveProvider, a4 as resolveProviderModelDescriptors, a6 as saveReasoningOverride, a7 as validateCustomProviderConfig } from './types-chunks/resolver.d-Djq8KlCE.js';
4
- import { K as KodaXBaseProvider } from './types-chunks/base.d-CwPfI8WQ.js';
1
+ import { h as KodaXImageBlock, _ as KodaXToolDefinition, a0 as KodaXToolResultContentItem, a6 as KodaXWireReasoningEffort, j as KodaXMessage, a3 as KodaXToolUseBlock, c as KodaXContentBlock, o as KodaXProviderCapabilityProfile, A as KodaXReasoningCapability, E as KodaXReasoningMode, S as KodaXTaskType, e as KodaXExecutionMode, R as KodaXTaskRoutingDecision, X as KodaXThinkingDepth, Z as KodaXTokenUsage } from './types-chunks/types.d-6VOXvF88.js';
2
+ export { b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, k as KodaXModelDescriptor, m as KodaXNormalizedReasoningRequest, n as KodaXProtocolFamily, p as KodaXProviderConfig, r as KodaXProviderConversationSemantics, u as KodaXProviderMcpSupport, x as KodaXProviderStreamOptions, z as KodaXProviderTransport, B as KodaXReasoningEffortPreset, C as KodaXReasoningEffortRequest, D as KodaXReasoningEffortWireStrategy, F as KodaXReasoningProfile, G as KodaXReasoningRequest, H as KodaXRedactedThinkingBlock, I as KodaXReviewScale, J as KodaXRiskLevel, L as KodaXStableEffortIntent, M as KodaXStreamResult, O as KodaXTaskBudgetOverrides, U as KodaXTextBlock, V as KodaXThinkingBlock, W as KodaXThinkingBudgetMap, Y as KodaXThinkingWireStrategy, $ as KodaXToolResultBlock } from './types-chunks/types.d-6VOXvF88.js';
3
+ export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, f as KODAX_STABLE_EFFORT_INTENTS, g as KodaXAnthropicCompatProvider, h as KodaXError, i as KodaXModelCapabilities, k as KodaXOpenAICompatProvider, l as KodaXProviderError, m as KodaXRateLimitError, P as ProviderName, p as clearRuntimeModelProviders, q as createCustomProvider, r as effortToLegacyReasoningMode, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, Y as mapLegacyReasoningModeToEffortIntent, Z as normalizeReasoningEffortValue, $ as parseReasoningEffortEnv, a0 as registerCustomProviders, a1 as registerModelProvider, a2 as resolveModelCapabilities, a3 as resolveProvider, a4 as resolveProviderModelDescriptors, a5 as resolveReasoningEffort, a6 as resolveReasoningEffortForModelSwitch, a8 as validateCustomProviderConfig } from './types-chunks/resolver.d-ZvKQgl0X.js';
4
+ import { K as KodaXBaseProvider } from './types-chunks/base.d-BnjQrSVf.js';
5
5
  import { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
6
- import { I as KodaXImageMediaType, L as KodaXInputArtifactSource, H as KodaXImageInputArtifact, J as KodaXInputArtifact, ar as KodaXToolExecutionContext, Y as KodaXRepoIntelligenceCapability, $ as KodaXRepoIntelligenceTrace, Z as KodaXRepoIntelligenceMode, a1 as KodaXRepoRoutingSignals, _ as KodaXRepoIntelligenceResolvedMode, U as KodaXOptions, t as KodaXContextOptions, X as KodaXProviderPolicyHints, aB as ProviderResilienceConfig, aC as ProviderResiliencePolicy, F as FailureStage, aH as ResilienceClassification, az as ProviderExecutionState, aE as RecoveryDecision, aG as RecoveryResult, a2 as KodaXResult, a6 as KodaXSessionControl, a7 as KodaXSessionMutators, A as KodaXFanoutSchedulerPlan, y as KodaXFanoutBranchTransition, z as KodaXFanoutSchedulerInput, q as KodaXChildContextBundle, W as KodaXParentReductionContract, x as KodaXFanoutBranchRecord, N as KodaXManagedProtocolPayload, E as ExtensionRuntimeContract, aM as RuntimeDefaultsSnapshot, c as BoundExtensionRuntimeController, v as KodaXEvents, g as GoalCompleteResult, aJ as ResolveKodaXManualInput, aK as ResolveKodaXManualOptions, aL as ResolveKodaXManualResult, R as KodaXManualTopicId, d as ChildSnapshotEvent, r as KodaXChildExecutionResult, aQ as WorkflowHostPolicy } from './types-chunks/bash-prefix-extractor.d-DZF1gDDz.js';
7
- export { B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, C as CapabilityRuntimeContract, e as CreateBashPrefixExtractorOptions, D as DiagnosticsRequest, f as ExtractCommandPrefixOptions, G as GoalBlockedResult, h as GoalCreateInput, i as GoalLifecycleContext, j as GoalRuntimeBinding, k as GoalRuntimeBindingDeps, l as GoalToolsContext, K as KodaXActivityEventMeta, m as KodaXAgentMode, n as KodaXBudgetDisclosureZone, o as KodaXBudgetExtensionRequest, p as KodaXChildAgentResult, s as KodaXCompactionOverride, u as KodaXContextTokenSnapshot, w as KodaXFanoutBranchLifecycle, M as KodaXManagedBudgetSnapshot, O as KodaXManagedTask, P as KodaXManagedTaskRuntimeState, Q as KodaXManagedTaskStatusEvent, S as KodaXManualTopicInput, T as KodaXMemoryStrategy, V as KodaXOrchestrationVerdict, a0 as KodaXRepoIntelligenceTraceEvent, a3 as KodaXRoleRoundSummary, a4 as KodaXRuntimeVerificationContract, a5 as KodaXSelfManualConfig, a8 as KodaXSessionOptions, a9 as KodaXSidecarMessageEvent, aa as KodaXSkillInvocationContext, ab as KodaXSkillMap, ac as KodaXSkillProjectionConfidence, ad as KodaXTaskCapabilityHint, ae as KodaXTaskContract, af as KodaXTaskEvidenceArtifact, ag as KodaXTaskEvidenceBundle, ah as KodaXTaskEvidenceEntry, ai as KodaXTaskRole, aj as KodaXTaskRoleAssignment, ak as KodaXTaskStatus, al as KodaXTaskSurface, am as KodaXTaskToolPolicy, an as KodaXTaskVerificationContract, ao as KodaXTaskVerificationCriterion, ap as KodaXTaskWorkItem, aq as KodaXToolEventMeta, as as KodaXVerificationScorecard, at as KodaXVerificationScorecardCriterion, au as KodaXWorkflowEventMeta, av as LSP_SERVERS, aw as LspServerInfo, ax as LspService, ay as LspServiceConfig, aA as ProviderRecoveryEvent, aD as RecoveryAction, aF as RecoveryLadderStep, aI as ResilienceErrorClass, aN as TodoItem, aO as TodoList, aP as TodoStatus, aR as WorkflowInvocationAction, aS as WorkflowInvocationPolicyDecision, aT as WorkflowInvocationPolicyInput, aU as WorkflowInvocationSource, aV as WorkflowInvocationTrigger, aW as WorkflowStartOutcome, aX as buildGoalRuntimeBinding, aY as createBashPrefixExtractor, aZ as decideWorkflowInvocation, a_ as extractCommandPrefix, a$ as getDefaultLspService, b0 as makeDisabledGoalToolsContext, b1 as shutdownDefaultLspService, b2 as withGoalBeforeNextTurn, b3 as withGoalStopHook, b4 as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-DZF1gDDz.js';
8
- import { f as AgentMessage, d as Agent, aF as RunnerLlmReturn, W as KodaXJsonValue, P as KodaXExtensionSessionRecord, R as KodaXExtensionStore, aN as SessionErrorMetadata, ar as QualityInvariant, b7 as ToolCapability, aB as RunnableTool, aG as RunnerToolCall, U as KodaXGoalState, bl as WorkflowEventCorrelation, y as Guardrail, bT as WorkflowTaskSummaryEventUpdate, be as WorkflowAgentBackend, bt as WorkflowModule, bI as WorkflowProcessTrackerOptions, bk as WorkflowEvent, bi as WorkflowArtifactRef, br as WorkflowMeta, bK as WorkflowRunState, bg as WorkflowApproval, bx as WorkflowProcessEvent, bh as WorkflowApprovalSummary, bp as WorkflowLimits, bC as WorkflowProcessSnapshot } from './types-chunks/process.d-BdiIUr8T.js';
9
- export { h as AgentReasoningProfile, j as AgentTool, k as AskUserMultiOptions, l as AskUserQuestionItem, m as AskUserQuestionOptions, n as CompactionAnchor, q as CompactionResult, s as CompactionUpdate, H as Handoff, I as InMemorySessionOptions, N as KodaXCompactMemoryProgress, O as KodaXCompactMemorySeed, Q as KodaXExtensionSessionState, Y as KodaXSessionArtifactLedgerEntry, Z as KodaXSessionBranchSummaryEntry, _ as KodaXSessionCompactionEntry, $ as KodaXSessionData, a0 as KodaXSessionEntry, a1 as KodaXSessionEntryBase, a3 as KodaXSessionLabelEntry, a4 as KodaXSessionLineage, a5 as KodaXSessionMessageEntry, a6 as KodaXSessionMeta, a7 as KodaXSessionNavigationOptions, a8 as KodaXSessionRuntimeInfo, a9 as KodaXSessionScope, aa as KodaXSessionStorage, ab as KodaXSessionTreeNode, ac as KodaXSessionUiHistoryItem, ad as KodaXSessionUiHistoryItemType, ae as KodaXSessionUiTextHistoryItem, af as KodaXSessionUiTextHistoryItemType, ag as KodaXSessionUiToolCall, ah as KodaXSessionUiToolCallStatus, ai as KodaXSessionUiToolGroupHistoryItem, aj as KodaXSessionWorkspaceKind, am as MessageEntry, ap as PresetDispatcher, au as ReasoningDepth, ay as RunEvent, az as RunOptions, aA as RunResult, aC as Runner, aK as Session, aM as SessionEntry, aO as SessionExtension, aP as SessionForkOptions, c3 as createAgent, c4 as createHandoff, c5 as createInMemorySession, cm as registerPresetDispatcher } from './types-chunks/process.d-BdiIUr8T.js';
10
- import { M as MessageQueue, H as WorkflowScriptManifest, y as WorkflowCapsule, B as WorkflowCapsuleIntent, A as WorkflowCapsuleInputs, F as WorkflowCapsuleRequirements, E as WorkflowCapsuleProvenance, G as WorkflowPatternId } from './types-chunks/capsule.d-D0kjnqYy.js';
11
- export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, 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, 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, I as appendSessionLineageLabel, N as applySessionCompaction, O as archiveOldIslands, Q as buildSessionTree, R as cleanupIncompleteToolCalls, S as countActiveLineageMessages, T as countTokens, U as createSessionLineage, Y as estimateTokens, Z as extractArtifactLedger, a0 as extractTitleFromMessages, a1 as findPreviousUserEntryId, a2 as forkSessionLineage, a3 as generateSessionId, a4 as getAgentConfigHome, a5 as getAgentConfigPath, a6 as getAppDataDir, a8 as getSessionLineagePath, a9 as getSessionMessagesFromLineage, aa as mergeArtifactLedger, ac as resolveSessionLineageTarget, ad as rewindSessionLineage, ae as setAgentConfigHome, af as setSessionLineageActiveEntry, ag as validateAndFixToolHistory } from './types-chunks/capsule.d-D0kjnqYy.js';
6
+ import { A as KodaXInputArtifactSource, y as KodaXImageMediaType, at as KodaXVideoMediaType, w as KodaXFileInputArtifact, x as KodaXImageInputArtifact, as as KodaXVideoInputArtifact, z as KodaXInputArtifact, ap as KodaXToolExecutionContext, V as KodaXRepoIntelligenceCapability, Y as KodaXRepoIntelligenceTrace, W as KodaXRepoIntelligenceMode, X as KodaXRepoIntelligenceResolvedMode, _ as KodaXRepoRoutingSignals, R as KodaXOptions, t as KodaXContextOptions, U as KodaXProviderPolicyHints, aC as ProviderResilienceConfig, aD as ProviderResiliencePolicy, F as FailureStage, aI as ResilienceClassification, aA as ProviderExecutionState, aF as RecoveryDecision, aH as RecoveryResult, $ as KodaXResult, a3 as KodaXSessionControl, a4 as KodaXSessionMutators, J as KodaXManagedProtocolPayload, E as ExtensionRuntimeContract, aN as RuntimeDefaultsSnapshot, c as BoundExtensionRuntimeController, v as KodaXEvents, g as GoalCompleteResult, aK as ResolveKodaXManualInput, aL as ResolveKodaXManualOptions, aM as ResolveKodaXManualResult, O as KodaXManualTopicId, d as ChildSnapshotEvent, q as KodaXChildContextBundle, r as KodaXChildExecutionResult, aR as WorkflowHostPolicy, an as KodaXTimeoutConfig } from './types-chunks/bash-prefix-extractor.d-BgvMbfq6.js';
7
+ export { B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, C as CapabilityRuntimeContract, e as CreateBashPrefixExtractorOptions, D as DiagnosticsRequest, f as ExtractCommandPrefixOptions, G as GoalBlockedResult, h as GoalCreateInput, i as GoalLifecycleContext, j as GoalRuntimeBinding, k as GoalRuntimeBindingDeps, l as GoalToolsContext, K as KodaXActivityEventMeta, m as KodaXAgentMode, n as KodaXBudgetDisclosureZone, o as KodaXBudgetExtensionRequest, p as KodaXChildAgentResult, s as KodaXCompactionOverride, u as KodaXContextTokenSnapshot, H as KodaXLlmTimeoutConfig, I as KodaXManagedBudgetSnapshot, L as KodaXManagedTask, M as KodaXManagedTaskRuntimeState, N as KodaXManagedTaskStatusEvent, P as KodaXManualTopicInput, Q as KodaXMemoryStrategy, S as KodaXOrchestrationVerdict, T as KodaXParentReductionContract, Z as KodaXRepoIntelligenceTraceEvent, a0 as KodaXRoleRoundSummary, a1 as KodaXRuntimeVerificationContract, a2 as KodaXSelfManualConfig, a5 as KodaXSessionOptions, a6 as KodaXSidecarMessageEvent, a7 as KodaXSkillInvocationContext, a8 as KodaXSkillMap, a9 as KodaXSkillProjectionConfidence, aa as KodaXTaskCapabilityHint, ab as KodaXTaskContract, ac as KodaXTaskEvidenceArtifact, ad as KodaXTaskEvidenceBundle, ae as KodaXTaskEvidenceEntry, af as KodaXTaskRole, ag as KodaXTaskRoleAssignment, ah as KodaXTaskStatus, ai as KodaXTaskSurface, aj as KodaXTaskToolPolicy, ak as KodaXTaskVerificationContract, al as KodaXTaskVerificationCriterion, am as KodaXTaskWorkItem, ao as KodaXToolEventMeta, aq as KodaXVerificationScorecard, ar as KodaXVerificationScorecardCriterion, au as KodaXWorkflowEventMeta, av as KodaXWorkflowTimeoutConfig, aw as LSP_SERVERS, ax as LspServerInfo, ay as LspService, az as LspServiceConfig, aB as ProviderRecoveryEvent, aE as RecoveryAction, aG as RecoveryLadderStep, aJ as ResilienceErrorClass, aO as TodoItem, aP as TodoList, aQ as TodoStatus, aS as WorkflowInvocationAction, aT as WorkflowInvocationPolicyDecision, aU as WorkflowInvocationPolicyInput, aV as WorkflowInvocationSource, aW as WorkflowInvocationTrigger, aX as WorkflowStartOutcome, aY as buildGoalRuntimeBinding, aZ as createBashPrefixExtractor, a_ as decideWorkflowInvocation, a$ as extractCommandPrefix, b0 as getDefaultLspService, b1 as makeDisabledGoalToolsContext, b2 as parseTimeoutSecEnvMs, b3 as providerResilienceConfigFromTimeouts, b4 as shutdownDefaultLspService, b5 as timeoutSecToMs, b6 as withGoalBeforeNextTurn, b7 as withGoalStopHook, b8 as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-BgvMbfq6.js';
8
+ import { a as MessagePriority } from './types-chunks/types.d-D8WcfrOD.js';
9
+ import { f as AgentMessage, d as Agent, aF as RunnerLlmReturn, W as KodaXJsonValue, P as KodaXExtensionSessionRecord, R as KodaXExtensionStore, aN as SessionErrorMetadata, ar as QualityInvariant, b7 as ToolCapability, aB as RunnableTool, aG as RunnerToolCall, U as KodaXGoalState, bl as WorkflowEventCorrelation, y as Guardrail, bT as WorkflowTaskSummaryEventUpdate, be as WorkflowAgentBackend, bt as WorkflowModule, bI as WorkflowProcessTrackerOptions, bk as WorkflowEvent, bi as WorkflowArtifactRef, br as WorkflowMeta, bK as WorkflowRunState, bg as WorkflowApproval, bx as WorkflowProcessEvent, bh as WorkflowApprovalSummary, bp as WorkflowLimits, bC as WorkflowProcessSnapshot } from './types-chunks/process.d-BZncyzEj.js';
10
+ export { h as AgentReasoningProfile, j as AgentTool, k as AskUserMultiOptions, l as AskUserQuestionItem, m as AskUserQuestionOptions, n as CompactionAnchor, q as CompactionResult, s as CompactionUpdate, H as Handoff, I as InMemorySessionOptions, N as KodaXCompactMemoryProgress, O as KodaXCompactMemorySeed, Q as KodaXExtensionSessionState, Y as KodaXSessionArtifactLedgerEntry, Z as KodaXSessionBranchSummaryEntry, _ as KodaXSessionCompactionEntry, $ as KodaXSessionData, a0 as KodaXSessionEntry, a1 as KodaXSessionEntryBase, a3 as KodaXSessionLabelEntry, a4 as KodaXSessionLineage, a5 as KodaXSessionMessageEntry, a6 as KodaXSessionMeta, a7 as KodaXSessionNavigationOptions, a8 as KodaXSessionRuntimeInfo, a9 as KodaXSessionScope, aa as KodaXSessionStorage, ab as KodaXSessionTreeNode, ac as KodaXSessionUiHistoryItem, ad as KodaXSessionUiHistoryItemType, ae as KodaXSessionUiTextHistoryItem, af as KodaXSessionUiTextHistoryItemType, ag as KodaXSessionUiToolCall, ah as KodaXSessionUiToolCallStatus, ai as KodaXSessionUiToolGroupHistoryItem, aj as KodaXSessionWorkspaceKind, am as MessageEntry, ap as PresetDispatcher, au as ReasoningDepth, ay as RunEvent, az as RunOptions, aA as RunResult, aC as Runner, aK as Session, aM as SessionEntry, aO as SessionExtension, aP as SessionForkOptions, c3 as createAgent, c4 as createHandoff, c5 as createInMemorySession, cm as registerPresetDispatcher } from './types-chunks/process.d-BZncyzEj.js';
11
+ import { M as MessageQueue, H as WorkflowScriptManifest, y as WorkflowCapsule, B as WorkflowCapsuleIntent, A as WorkflowCapsuleInputs, F as WorkflowCapsuleRequirements, E as WorkflowCapsuleProvenance, G as WorkflowPatternId } from './types-chunks/capsule.d-DwJp5r63.js';
12
+ export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, 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, 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, I as appendSessionLineageLabel, N as applySessionCompaction, O as archiveOldIslands, Q as buildSessionTree, R as cleanupIncompleteToolCalls, S as countActiveLineageMessages, T as countTokens, U as createSessionLineage, Y as estimateTokens, Z as extractArtifactLedger, a0 as extractTitleFromMessages, a1 as findPreviousUserEntryId, a2 as forkSessionLineage, a3 as generateSessionId, a4 as getAgentConfigHome, a5 as getAgentConfigPath, a6 as getAppDataDir, a8 as getSessionLineagePath, a9 as getSessionMessagesFromLineage, aa as mergeArtifactLedger, ac as resolveSessionLineageTarget, ad as rewindSessionLineage, ae as setAgentConfigHome, af as setSessionLineageActiveEntry, ag as validateAndFixToolHistory } from './types-chunks/capsule.d-DwJp5r63.js';
12
13
  import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
13
14
  export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
14
- import { k as McpProviderOptions, c as McpCapabilityProvider, l as McpReverseCapabilities, m as McpRoot } from './types-chunks/manager.d-DLmDhX3i.js';
15
- export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpCapabilityDescriptor, b as McpCapabilityKind, d as McpCapabilityRisk, e as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpExpiredSessionError, i as McpIcon, j as McpManager, 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 parseMcpCapabilityId, T as performOAuthLogin, U as registerOAuthClient, V as searchMcpCatalog } from './types-chunks/manager.d-DLmDhX3i.js';
16
- import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-DQQknOfb.js';
17
- export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, i as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AgentsFile, a as AutoModeAskUser, b as AutoModeAskUserVerdict, D as AutoModeDenialTracker, c as AutoModeEngine, d as AutoModeGuardrailConfig, e as AutoModeSharedState, f as AutoModeStats, g as AutoModeToolGuardrail, E as BREAKER_ERROR_THRESHOLD, W as BREAKER_WINDOW_MS, j as CircuitBreaker, K as KodaXMcpConnectMode, k as KodaXMcpServerConfig, l as KodaXMcpServersConfig, m as KodaXMcpTransport, L as LoadAgentsOptions, n as LoadedRulesSource, R as RulesLoadError, o as RulesLoadResult, p as SkippedRulesSource, q as TrustState, J as autoModeDenialShouldFallback, M as breakerShouldFallback, r as collectAllSignals, s as computeRulesFingerprint, v as createAutoModeDenialTracker, t as createAutoModeToolGuardrail, u as createCircuitBreaker, w as formatAgentsForPrompt, x as getKodaxGlobalDir, y as loadAgentsFiles, z as loadAutoRules, B as parseAutoRules, F as readTrustState, G as recordAutoModeAllow, H as recordAutoModeBlock, I as recordBreakerError, N as trustProjectRules } from './types-chunks/guardrail.d-DQQknOfb.js';
18
- import { f as ToolGuardrail } from './types-chunks/types.d-BKuHSiR0.js';
15
+ import { k as McpProviderOptions, c as McpCapabilityProvider, l as McpReverseCapabilities, m as McpRoot } from './types-chunks/manager.d-DBD7SOTT.js';
16
+ export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpCapabilityDescriptor, b as McpCapabilityKind, d as McpCapabilityRisk, e as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpExpiredSessionError, i as McpIcon, j as McpManager, 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';
17
+ import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-C1DhxnvC.js';
18
+ export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, i as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AgentsFile, a as AutoModeAskUser, b as AutoModeAskUserVerdict, D as AutoModeDenialTracker, c as AutoModeEngine, d as AutoModeGuardrailConfig, e as AutoModeSharedState, f as AutoModeStats, g as AutoModeToolGuardrail, E as BREAKER_ERROR_THRESHOLD, W as BREAKER_WINDOW_MS, j as CircuitBreaker, K as KodaXMcpConnectMode, k as KodaXMcpServerConfig, l as KodaXMcpServersConfig, m as KodaXMcpTransport, L as LoadAgentsOptions, n as LoadedRulesSource, R as RulesLoadError, o as RulesLoadResult, p as SkippedRulesSource, q as TrustState, J as autoModeDenialShouldFallback, M as breakerShouldFallback, r as collectAllSignals, s as computeRulesFingerprint, v as createAutoModeDenialTracker, t as createAutoModeToolGuardrail, u as createCircuitBreaker, w as formatAgentsForPrompt, x as getKodaxGlobalDir, y as loadAgentsFiles, z as loadAutoRules, B as parseAutoRules, F as readTrustState, G as recordAutoModeAllow, H as recordAutoModeBlock, I as recordBreakerError, N as trustProjectRules } from './types-chunks/guardrail.d-C1DhxnvC.js';
19
+ import { d as ToolGuardrail } from './types-chunks/guardrail.d-BP3yyr6u.js';
19
20
  import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
20
21
  import { Diagnostic } from 'vscode-languageserver-protocol';
21
22
  import '@anthropic-ai/sdk';
@@ -71,8 +72,24 @@ interface CreateImageArtifactFromPathOptions {
71
72
  readonly source?: KodaXInputArtifactSource;
72
73
  readonly description?: string;
73
74
  }
75
+ interface CreateFileArtifactFromPathOptions {
76
+ readonly mediaType?: string;
77
+ readonly mimeType?: string;
78
+ readonly name?: string;
79
+ readonly source?: KodaXInputArtifactSource;
80
+ readonly description?: string;
81
+ }
82
+ interface CreateVideoArtifactFromPathOptions {
83
+ readonly mediaType?: KodaXVideoMediaType;
84
+ readonly name?: string;
85
+ readonly source?: KodaXInputArtifactSource;
86
+ readonly description?: string;
87
+ }
74
88
  declare function inferImageMediaType(filePath: string): KodaXImageMediaType | undefined;
89
+ declare function inferVideoMediaType(filePath: string): KodaXVideoMediaType | undefined;
75
90
  declare function createImageArtifactFromPath(filePath: string, options?: CreateImageArtifactFromPathOptions): KodaXImageInputArtifact;
91
+ declare function createFileArtifactFromPath(filePath: string, options?: CreateFileArtifactFromPathOptions): KodaXFileInputArtifact;
92
+ declare function createVideoArtifactFromPath(filePath: string, options?: CreateVideoArtifactFromPathOptions): KodaXVideoInputArtifact;
76
93
 
77
94
  declare const MAX_DIMENSION = 2000;
78
95
  declare const TARGET_RAW_SIZE_BYTES: number;
@@ -101,7 +118,6 @@ interface PersistImageAsBlockOptions {
101
118
  declare function persistImageAsBlock(image: NormalizedImage, options?: PersistImageAsBlockOptions): Promise<KodaXImageBlock>;
102
119
  declare function prunePasteTmpDir(now?: number): Promise<number>;
103
120
 
104
- type KodaXVideoMediaType = 'video/mp4' | 'video/mpeg' | 'video/quicktime' | 'video/x-msvideo' | 'video/x-flv' | 'video/webm' | 'video/x-ms-wmv' | 'video/3gpp';
105
121
  type KodaXInputCapabilityStatus = 'supported' | 'provider-native-unwired' | 'unsupported';
106
122
  interface KodaXModalityInputCapability<TMediaType extends string> {
107
123
  readonly nativeSupported: boolean;
@@ -125,6 +141,7 @@ interface GetModelInputCapabilitiesInput {
125
141
  }
126
142
  declare const KODAX_IMAGE_MEDIA_TYPES: readonly KodaXImageMediaType[];
127
143
  declare const KODAX_VIDEO_MEDIA_TYPES: readonly KodaXVideoMediaType[];
144
+ declare const KODAX_FILE_MEDIA_TYPES: readonly string[];
128
145
  declare function getModelInputCapabilities(input: GetModelInputCapabilitiesInput): ModelInputCapabilities;
129
146
 
130
147
  interface ValidateInputArtifactsOptions {
@@ -133,6 +150,14 @@ interface ValidateInputArtifactsOptions {
133
150
  }
134
151
  declare function validateInputArtifactsForModel(artifacts: readonly KodaXInputArtifact[], options: ValidateInputArtifactsOptions): void;
135
152
 
153
+ interface EnqueueWithArtifactsInput extends ValidateInputArtifactsOptions {
154
+ readonly content: string;
155
+ readonly inputArtifacts?: readonly KodaXInputArtifact[];
156
+ readonly priority?: MessagePriority;
157
+ readonly agentId?: string;
158
+ }
159
+ declare function enqueueWithArtifacts(input: EnqueueWithArtifactsInput): string;
160
+
136
161
  /**
137
162
  * KodaX Error Classification
138
163
  *
@@ -556,6 +581,7 @@ declare function toolSemanticLookup(input: Record<string, unknown>, ctx: KodaXTo
556
581
  * - DD §14 — lifecycle, security model, registry merge semantics.
557
582
  * - docs/features/v0.7.28.md — capability schema, generation flow.
558
583
  */
584
+
559
585
  /**
560
586
  * Handler script source. v0.7.28 limits language to `'javascript'` so that
561
587
  * `loadHandler()` can `await import()` the file directly without an
@@ -696,6 +722,7 @@ interface AgentContent {
696
722
  readonly guardrails?: readonly GuardrailRef[];
697
723
  readonly model?: string;
698
724
  readonly provider?: string;
725
+ readonly effort?: KodaXWireReasoningEffort;
699
726
  /**
700
727
  * FEATURE_191 — one-sentence human-readable summary surfaced in the
701
728
  * Worker system prompt's `=== Available specialist agents ===`
@@ -1347,6 +1374,7 @@ declare function drainPendingSwaps(): readonly string[];
1347
1374
  * description: Reviews DB migrations for safety
1348
1375
  * tools: [read, grep]
1349
1376
  * model: claude-sonnet-4-6
1377
+ * effort: high
1350
1378
  * ---
1351
1379
  * You are a DB migration reviewer. ...
1352
1380
  *
@@ -1419,6 +1447,8 @@ interface DiscoveredMarkdownAgent {
1419
1447
  readonly tools?: readonly string[];
1420
1448
  /** Optional model alias from frontmatter `model` field. */
1421
1449
  readonly model?: string;
1450
+ /** Optional reasoning effort from frontmatter `effort` field. */
1451
+ readonly effort?: string;
1422
1452
  }
1423
1453
  interface DiscoverMarkdownAgentsResult {
1424
1454
  /**
@@ -1472,6 +1502,17 @@ declare function loadAgentsFromMarkdown(opts?: LoadAgentsFromMarkdownOptions): P
1472
1502
  */
1473
1503
  declare function discoverMarkdownAgents(opts?: LoadAgentsFromMarkdownOptions): Promise<DiscoverMarkdownAgentsResult>;
1474
1504
 
1505
+ /**
1506
+ * Built-in specialist agents registered into the same resolver as
1507
+ * user/project markdown agents. They are intentionally tiny manifests:
1508
+ * KodaX already has the specialist routing runtime, so built-ins should
1509
+ * reuse that path instead of adding another agent system.
1510
+ */
1511
+
1512
+ declare const REPO_EXPLORER_AGENT_NAME = "repo-explorer";
1513
+ declare const REPO_EXPLORER_TOOL_NAMES: readonly string[];
1514
+ declare function ensureBuiltinRepoExplorerAgent(): Promise<boolean>;
1515
+
1475
1516
  /**
1476
1517
  * CtxProxy — runtime gate for constructed tool handlers.
1477
1518
  *
@@ -2084,7 +2125,7 @@ interface ExtensionRuntimeDiagnostics {
2084
2125
  defaults: {
2085
2126
  activeTools?: string[];
2086
2127
  modelSelection: ExtensionModelSelection;
2087
- thinkingLevel?: KodaXReasoningMode;
2128
+ thinkingLevel?: KodaXWireReasoningEffort;
2088
2129
  };
2089
2130
  }
2090
2131
  interface ExtensionCommandInvocation {
@@ -2119,13 +2160,13 @@ interface ExtensionToolBeforeHookContext {
2119
2160
  interface ExtensionProviderBeforeHookContext {
2120
2161
  provider: string;
2121
2162
  model?: string;
2122
- reasoningMode?: KodaXReasoningMode;
2163
+ reasoningMode?: KodaXWireReasoningEffort;
2123
2164
  systemPrompt: string;
2124
2165
  block: (reason: string) => void;
2125
2166
  replaceProvider: (provider: string) => void;
2126
2167
  replaceModel: (model?: string) => void;
2127
2168
  replaceSystemPrompt: (systemPrompt: string) => void;
2128
- setThinkingLevel: (level: KodaXReasoningMode) => void;
2169
+ setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
2129
2170
  }
2130
2171
  interface ExtensionTurnSettleHookContext {
2131
2172
  sessionId: string;
@@ -2135,7 +2176,7 @@ interface ExtensionTurnSettleHookContext {
2135
2176
  signal?: 'COMPLETE' | 'BLOCKED' | 'DECIDE';
2136
2177
  queueUserMessage: (message: string | KodaXMessage) => void;
2137
2178
  setModelSelection: (next: ExtensionModelSelection) => void;
2138
- setThinkingLevel: (level: KodaXReasoningMode) => void;
2179
+ setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
2139
2180
  }
2140
2181
  /**
2141
2182
  * FEATURE_184 (v0.7.45) — Stop Hook bridge context for extensions.
@@ -2358,8 +2399,8 @@ interface ExtensionRuntimeController {
2358
2399
  setActiveTools(toolNames: string[]): void;
2359
2400
  getModelSelection(): ExtensionModelSelection;
2360
2401
  setModelSelection(next: ExtensionModelSelection): void;
2361
- getThinkingLevel(): KodaXReasoningMode | undefined;
2362
- setThinkingLevel(level: KodaXReasoningMode): void;
2402
+ getThinkingLevel(): KodaXWireReasoningEffort | undefined;
2403
+ setThinkingLevel(level: KodaXWireReasoningEffort): void;
2363
2404
  }
2364
2405
  interface KodaXExtensionAPI {
2365
2406
  registerTool: (definition: LocalToolDefinition) => () => void;
@@ -2715,11 +2756,38 @@ interface ImpactEstimateResult {
2715
2756
  capability?: KodaXRepoIntelligenceCapability;
2716
2757
  trace?: KodaXRepoIntelligenceTrace;
2717
2758
  }
2759
+
2718
2760
  declare function renderModuleContext(result: ModuleContextResult): string;
2719
2761
  declare function renderSymbolContext(result: SymbolContextResult): string;
2720
2762
  declare function renderProcessContext(result: ProcessContextResult): string;
2721
2763
  declare function renderImpactEstimate(result: ImpactEstimateResult): string;
2722
2764
 
2765
+ interface RepoIntelligenceRuntimeInspection {
2766
+ configuredMode: KodaXRepoIntelligenceMode;
2767
+ requestedMode: KodaXRepoIntelligenceResolvedMode;
2768
+ traceEnabled: boolean;
2769
+ effectiveEngine: 'off' | 'light' | 'full';
2770
+ status: 'disabled' | 'ok' | 'limited' | 'unavailable' | 'warming';
2771
+ fallbackToLight: boolean;
2772
+ warnings: string[];
2773
+ error?: string;
2774
+ workerPath?: string;
2775
+ storageRoot?: string;
2776
+ }
2777
+ interface RepoIntelligenceRuntimeConfig {
2778
+ mode: KodaXRepoIntelligenceMode;
2779
+ trace: boolean;
2780
+ warnings: string[];
2781
+ }
2782
+ declare function resolveRepoIntelligenceRuntimeConfig(modeOverride?: KodaXRepoIntelligenceMode, traceOverride?: boolean): RepoIntelligenceRuntimeConfig;
2783
+ declare function resolveRepoIntelligenceMode(modeOverride?: KodaXRepoIntelligenceMode): KodaXRepoIntelligenceResolvedMode;
2784
+ declare function inspectRepoIntelligenceRuntime(options?: {
2785
+ mode?: KodaXRepoIntelligenceMode;
2786
+ trace?: boolean;
2787
+ probe?: boolean;
2788
+ workspaceRoot?: string;
2789
+ }): Promise<RepoIntelligenceRuntimeInspection>;
2790
+
2723
2791
  type RepoContext = Pick<KodaXToolExecutionContext, 'executionCwd' | 'gitRoot'>;
2724
2792
  declare function buildRepoIntelligenceIndex(context: RepoContext, options?: {
2725
2793
  targetPath?: string;
@@ -2734,6 +2802,7 @@ declare function getModuleContext(context: RepoContext, options?: {
2734
2802
  targetPath?: string;
2735
2803
  refresh?: boolean;
2736
2804
  mode?: KodaXRepoIntelligenceMode;
2805
+ maxWaitMs?: number;
2737
2806
  }): Promise<ModuleContextResult>;
2738
2807
  declare function getSymbolContext(context: RepoContext, options: {
2739
2808
  symbol: string;
@@ -2741,6 +2810,7 @@ declare function getSymbolContext(context: RepoContext, options: {
2741
2810
  targetPath?: string;
2742
2811
  refresh?: boolean;
2743
2812
  mode?: KodaXRepoIntelligenceMode;
2813
+ maxWaitMs?: number;
2744
2814
  }): Promise<SymbolContextResult>;
2745
2815
  declare function getProcessContext(context: RepoContext, options: {
2746
2816
  entry?: string;
@@ -2748,6 +2818,7 @@ declare function getProcessContext(context: RepoContext, options: {
2748
2818
  targetPath?: string;
2749
2819
  refresh?: boolean;
2750
2820
  mode?: KodaXRepoIntelligenceMode;
2821
+ maxWaitMs?: number;
2751
2822
  }): Promise<ProcessContextResult>;
2752
2823
  declare function getImpactEstimate(context: RepoContext, options: {
2753
2824
  symbol?: string;
@@ -2756,6 +2827,7 @@ declare function getImpactEstimate(context: RepoContext, options: {
2756
2827
  targetPath?: string;
2757
2828
  refresh?: boolean;
2758
2829
  mode?: KodaXRepoIntelligenceMode;
2830
+ maxWaitMs?: number;
2759
2831
  }): Promise<ImpactEstimateResult>;
2760
2832
  declare function getRepoRoutingSignals(context: RepoContext, options?: {
2761
2833
  targetPath?: string;
@@ -2763,81 +2835,34 @@ declare function getRepoRoutingSignals(context: RepoContext, options?: {
2763
2835
  mode?: KodaXRepoIntelligenceMode;
2764
2836
  }): Promise<KodaXRepoRoutingSignals>;
2765
2837
  /**
2766
- * v0.7.41 L2 best-effort warm both session-level caches (routing signals +
2838
+ * v0.7.41 L2 - best-effort warm both session-level caches (routing signals +
2767
2839
  * preturn bundle) for a given workspace. Designed to be called fire-and-forget
2768
2840
  * at REPL startup so the first user prompt finds the in-process caches warm.
2769
2841
  *
2770
2842
  * Why this works (and why M1's `refresh:true` design did NOT):
2771
- * - Uses `refresh: false` (4s budget) daemon returns its already-cached
2772
- * state immediately. Total prewarm wall-time is typically 1-2s.
2773
- * - Daemon's own background polling keeps its state fresh; we don't need
2774
- * to force a refresh on every REPL startup.
2843
+ * - Uses `refresh: false` so the built-in engine can reuse its warm cache.
2844
+ * Total warm preturn work is normally sub-second once the index exists.
2845
+ * - Incremental cache identity keeps state fresh enough for startup prewarm;
2846
+ * we don't force a cold refresh on every REPL startup.
2775
2847
  * - If user submits BEFORE prewarm completes, P2 in-flight Promise sharing
2776
- * coalesces both calls onto the same 4s daemon round-trip. The user pays
2777
- * at most ~2s, NOT the 30s budget that `refresh:true` would burn.
2848
+ * coalesces both calls onto the same full-engine work. The user avoids
2849
+ * paying a second cold refresh.
2778
2850
  * - If user submits AFTER prewarm completes, P3+ session cache (60s TTL)
2779
2851
  * serves the result in ~0ms.
2780
2852
  * - The middleware/first-round path (L1) also uses `refresh:false`, so
2781
- * prewarm and user-path are cache-coherent the user-path call genuinely
2853
+ * prewarm and user-path are cache-coherent - the user-path call genuinely
2782
2854
  * hits the warmed entry instead of being forced to bypass it.
2783
2855
  *
2784
2856
  * Failure modes:
2785
- * - All calls `.catch(() => {})` prewarm is best-effort. If the daemon
2786
- * is down, the first prompt falls back to OSS as before.
2787
- * - `off` mode short-circuits no work at all when repo intelligence
2857
+ * - All calls `.catch(() => {})` - prewarm is best-effort. If full mode
2858
+ * fails, the first prompt falls back to light mode as before.
2859
+ * - `off` mode short-circuits - no work at all when repo intelligence
2788
2860
  * is disabled.
2789
2861
  */
2790
2862
  declare function prewarmRepoIntelligenceCaches(context: RepoContext, options?: {
2791
2863
  mode?: KodaXRepoIntelligenceMode;
2792
2864
  }): void;
2793
2865
 
2794
- declare const REPOINTEL_DEFAULT_ENDPOINT = "http://127.0.0.1:47891";
2795
-
2796
- type RepoIntelligenceRequestedBridge = 'none' | 'shared' | 'native';
2797
- type RepoIntelligenceEffectiveEngine = 'off' | 'oss' | 'premium';
2798
- type RepoIntelligenceRuntimeStatus = 'disabled' | 'ok' | 'limited' | 'unavailable' | 'warming';
2799
- type PremiumTransport = 'daemon' | 'direct';
2800
- interface RepoIntelligenceRuntimeInspection {
2801
- configuredMode: KodaXRepoIntelligenceMode;
2802
- requestedMode: KodaXRepoIntelligenceResolvedMode;
2803
- endpoint: string;
2804
- bin: string;
2805
- traceEnabled: boolean;
2806
- requestedBridge: RepoIntelligenceRequestedBridge;
2807
- effectiveEngine: RepoIntelligenceEffectiveEngine;
2808
- effectiveBridge: RepoIntelligenceRequestedBridge;
2809
- status: RepoIntelligenceRuntimeStatus;
2810
- fallbackToOss: boolean;
2811
- warnings: string[];
2812
- error?: string;
2813
- transport?: PremiumTransport;
2814
- clientBuildId?: string;
2815
- daemonBuildId?: string;
2816
- daemonStartedAt?: string;
2817
- daemonPid?: number;
2818
- }
2819
- interface RepoIntelligenceRuntimeWarmResult extends RepoIntelligenceRuntimeInspection {
2820
- warmed: boolean;
2821
- warmLatencyMs?: number;
2822
- }
2823
- interface RepoIntelligenceRuntimeConfig {
2824
- mode: KodaXRepoIntelligenceMode;
2825
- endpoint: string;
2826
- bin: string;
2827
- trace: boolean;
2828
- }
2829
- declare function resolveRepoIntelligenceRuntimeConfig(modeOverride?: KodaXRepoIntelligenceMode, traceOverride?: boolean): RepoIntelligenceRuntimeConfig;
2830
- declare function resolveRepoIntelligenceMode(modeOverride?: KodaXRepoIntelligenceMode): KodaXRepoIntelligenceResolvedMode;
2831
- declare function inspectRepoIntelligenceRuntime(options?: {
2832
- mode?: KodaXRepoIntelligenceMode;
2833
- trace?: boolean;
2834
- probePremium?: boolean;
2835
- }): Promise<RepoIntelligenceRuntimeInspection>;
2836
- declare function warmRepoIntelligenceRuntime(options?: {
2837
- mode?: KodaXRepoIntelligenceMode;
2838
- trace?: boolean;
2839
- }): Promise<RepoIntelligenceRuntimeWarmResult>;
2840
-
2841
2866
  declare const SYSTEM_PROMPT = "You are KodaX, a helpful multi-provider coding agent. You can read, write, and edit files, and execute shell commands.\n\n## Error Handling\n\nWhen a tool call returns an error:\n1. STOP and READ the error message carefully\n2. DO NOT repeat the same tool call with the same parameters \u2014 a re-issue with identical params almost always lands in a retry loop that wastes tokens without producing new information. Vary the params or switch to a different tool\n3. Identify what's wrong (missing parameter? wrong type? wrong path?)\n4. Fix the issue BEFORE making another tool call\n5. Common errors:\n - \"Missing required parameter 'X'\" -> Add the missing parameter to your JSON\n - \"File not found\" -> Check the path with read or glob first\n - \"String not found\" -> Read the file again to see exact content\n\nWhen a shell command fails, prefer this recovery order:\n1. Check whether a specialized tool can solve the task directly\n2. Fix the command itself (quoting, workdir, platform-specific command, smaller scope)\n3. Split the task into smaller read/edit/write steps\n4. Only create a helper script when repeated inline commands are clearly less safe or less maintainable\n\n## Editing Files\n\n- Always read the file first to understand its current content\n- Make precise, targeted edits rather than rewriting entire files\n- Preserve the existing code style and formatting\n- Do not create new files unless the user asks for one or the task genuinely needs one. Prefer editing an existing file to creating a new one, as this prevents file bloat and keeps each tool call small\n- When a modification is scoped to an existing file, ALWAYS prefer `edit` over `write`. Only fall back to `write` when no file exists yet or the user explicitly requested a complete rewrite\n\n## Tool Usage\n\nPrefer specialized tools over shell for file operations:\n- Use read to view files instead of cat, head, or tail\n- Use edit to modify existing files instead of sed or awk when possible\n- Use write to create new files instead of echo redirection or heredocs\n- Use glob or grep for file discovery and content search before falling back to shell\n- When multiple read-only tool calls are independent, emit them in the same response so parallel mode can run them together\n- Only serialize tool calls when a later call depends on an earlier result\n- Keep parallel batches focused: prefer a few narrow grep/read/diff calls over many tiny sequential probes\n\nRead is intentionally bounded:\n- A single read call only returns a limited slice of a file\n- For large files, continue with offset/limit instead of retrying a whole-file read\n- Prefer grep first, then read the specific section you need\n\nTool outputs are also bounded:\n- Large bash output may be truncated to the tail\n- Large grep results and diffs may be summarized\n- When you see a truncation hint, narrow the next tool call instead of repeating the same broad request\n- If edit fails to find a stable anchor, do not rewrite the entire existing file with write; retry with a smaller unique edit anchor or use insert_after_anchor for section appends\n\nIf you truly need a script:\n- Do NOT create temporary scripts or scratch files in the project root \u2014 they leak into `git status` and file listings, confusing the user about what was actually changed\n- Do NOT place them at `.agent/` top level \u2014 that directory is reserved for system-managed artifacts (managed-tasks/, project/, repo-intelligence/, etc.)\n- Write them to the Session Scratch Directory when one is shown in the environment\n- If no Session Scratch Directory is shown, write them under a unique session-scoped subdirectory of `.agent/tmp/sessions/` (relative to the git root), not directly in the shared `.agent/tmp/` root\n- Alternatively, use the system temp directory if the script does not need to be inspectable from the project\n- Treat helper scripts as a last resort, not the default recovery path\n\n## Shell Commands\n\n- Be careful with destructive operations\n- Reserve shell commands for terminal operations such as git, package managers, builds, tests, and system commands\n- Prefer read-only operations when possible\n- For file edits, prefer read/edit/write over shell transforms unless shell scripting is genuinely more efficient\n\n### Cross-Platform Notes\n\nDifferent platforms have different commands:\n- Move: `move` (Windows) vs `mv` (Unix/Mac)\n- List: `dir` (Windows) vs `ls` (Unix/Mac)\n- Delete: `del` (Windows) vs `rm` (Unix/Mac)\n\n**IMPORTANT: Directories are created automatically by the `write` tool.**\n- NEVER use `mkdir` before writing files - the write tool handles directory creation\n- If you truly need an empty directory: `mkdir dir` (Windows) or `mkdir -p dir` (Unix)\n\nIf you see \"not recognized\", \"\u4E0D\u662F\u5185\u90E8\u6216\u5916\u90E8\u547D\u4EE4\", or a similar shell lookup error, the command does not exist on this platform. Try the platform equivalent.\n\n## Multi-step Tasks\n\n- Track your progress by listing what you've done and what's next\n- Break complex tasks into smaller steps\n- Summarize progress periodically\n\n## Plan Before Action\n\nFor any non-trivial task (creating files, editing code, running complex commands):\n1. First explain your understanding of the task\n2. Outline your approach (what files, what changes, what order)\n3. Consider potential issues (edge cases, dependencies, conflicts)\n4. Then execute step by step\n\nFor simple read-only tasks (reading a file, listing directory), just do it directly.\n\nIf the environment is currently in a read-only planning mode:\n- Do not try to write files or run mutating shell commands during planning\n- Finish the plan first\n- After the plan is complete, use `ask_user_question` to ask whether the user wants to proceed with implementation\n- If the user confirms, call `set_permission_mode` with `mode: \"accept-edits\"` to switch to implementation mode\n- If the user declines, stay in plan mode \u2014 do NOT call `set_permission_mode`\n\n## Asking User Questions\n\nWhen you need the user to make decisions, use `ask_user_question`.\n- For **multiple independent questions**, use the `questions` array (the schema accepts up to 4 items per call \u2014 if you need more, ask the additional ones in a follow-up turn). Each question has its own `question`, `header`, `options`, and optional `multi_select`. The user answers each question separately. Do NOT combine multiple questions into a single question string with pre-combined option combinations, because that forces the user to mentally disambiguate combinations and breaks the option-button UI.\n- For a **single question**, use the `question` + `options` fields as before.\n- For **free-text input**, use `kind: \"input\"`.\n\nAlways explain what you're doing before taking action.\n\n{context}";
2842
2867
 
2843
2868
  type KodaXPromptSectionSlot = 'base' | 'runtime-context' | 'session-context' | 'capability-truth' | 'base-suffix' | 'mode-overlay' | 'project-rules' | 'skill-addendum' | 'specialist';
@@ -3094,10 +3119,16 @@ declare function buildProviderPolicyPromptNotes(decision: KodaXProviderPolicyDec
3094
3119
  declare function evaluateProviderPolicy(options: EvaluateProviderPolicyOptions): KodaXProviderPolicyDecision;
3095
3120
 
3096
3121
  interface ReasoningPlan {
3097
- mode: KodaXReasoningMode;
3098
- depth: KodaXThinkingDepth;
3122
+ /**
3123
+ * Canonical per-turn reasoning control. Reasoning single-tracking (Phase B)
3124
+ * replaced the V1 `mode` (KodaXReasoningMode) + `depth` (KodaXThinkingDepth)
3125
+ * pair with a single `effort`. `'auto'` defers to the provider's
3126
+ * capability-aware default; `'none'` disables thinking. Providers resolve
3127
+ * the effective effort + any thinking budget from this value via
3128
+ * `resolveReasoningEffort` / `normalizeReasoningRequest`.
3129
+ */
3130
+ effort: KodaXWireReasoningEffort;
3099
3131
  decision: KodaXTaskRoutingDecision;
3100
- amaControllerDecision: KodaXAmaControllerDecision;
3101
3132
  promptOverlay: string;
3102
3133
  providerPolicy?: KodaXProviderPolicyDecision;
3103
3134
  }
@@ -3128,8 +3159,6 @@ declare function reasoningModeToDepth(mode: KodaXReasoningMode): KodaXThinkingDe
3128
3159
  declare function inferTaskType(prompt: string): KodaXTaskType;
3129
3160
  declare function buildFallbackRoutingDecision(prompt: string, providerPolicy?: KodaXProviderPolicyDecision, routingEvidence?: RoutingEvidenceInput): KodaXTaskRoutingDecision;
3130
3161
  declare function buildProviderPolicyHintsForDecision(decision: KodaXTaskRoutingDecision): KodaXProviderPolicyHints;
3131
- declare function buildAmaControllerDecision(decision: KodaXTaskRoutingDecision): KodaXAmaControllerDecision;
3132
- declare function buildPromptOverlay(decision: KodaXTaskRoutingDecision, extraNotes?: string[], _providerPolicy?: KodaXProviderPolicyDecision, amaControllerDecision?: KodaXAmaControllerDecision): string;
3133
3162
  declare function createReasoningPlan(options: KodaXOptions, prompt: string, provider: KodaXBaseProvider, routingEvidence?: RoutingEvidenceInput): Promise<ReasoningPlan>;
3134
3163
 
3135
3164
  /**
@@ -3652,15 +3681,6 @@ declare class KodaXClient {
3652
3681
  clear(): void;
3653
3682
  }
3654
3683
 
3655
- declare function createFanoutSchedulerInput(controllerDecision: KodaXAmaControllerDecision, bundles: KodaXChildContextBundle[], reductionContract: KodaXParentReductionContract): KodaXFanoutSchedulerInput | undefined;
3656
- declare function buildFanoutSchedulerPlan(input: KodaXFanoutSchedulerInput): KodaXFanoutSchedulerPlan;
3657
- declare function getFanoutBranch(plan: KodaXFanoutSchedulerPlan, bundleId: string): KodaXFanoutBranchRecord;
3658
- declare function countActiveFanoutBranches(plan: KodaXFanoutSchedulerPlan): number;
3659
- declare function applyFanoutBranchTransition(plan: KodaXFanoutSchedulerPlan, transition: KodaXFanoutBranchTransition): KodaXFanoutSchedulerPlan;
3660
- declare function assignFanoutBranchWorker(plan: KodaXFanoutSchedulerPlan, bundleId: string, workerId: string): KodaXFanoutSchedulerPlan;
3661
- declare function markFanoutBranchCompleted(plan: KodaXFanoutSchedulerPlan, bundleId: string, childId?: string): KodaXFanoutSchedulerPlan;
3662
- declare function markFanoutBranchCancelled(plan: KodaXFanoutSchedulerPlan, bundleId: string, reason: string): KodaXFanoutSchedulerPlan;
3663
-
3664
3684
  /**
3665
3685
  * Protocol emitter tools.
3666
3686
  *
@@ -4573,24 +4593,32 @@ declare function checkAbsoluteDeny(call: RunnerToolCall, projectRoot: string): A
4573
4593
  * Races an in-flight classifier promise against a short "quiet window".
4574
4594
  * When the classifier returns within the window, callers can use the
4575
4595
  * decision immediately — no confirm dialog, no perceptible latency. When
4576
- * the window expires first, callers fall through to the normal escalate
4577
- * flow (confirm dialog, with the classifier still running in background
4578
- * so the dialog can adopt the verdict if it arrives in time).
4596
+ * the window expires first, the caller (the auto-mode guardrail) awaits the
4597
+ * SAME promise and adopts whatever verdict arrives see Issue 143 (WS1).
4598
+ * The window therefore only controls "resolve instantly vs wait a little
4599
+ * longer"; it never decides "escalate vs not". An `allow` verdict never
4600
+ * surfaces a confirm dialog no matter how slow the classifier is.
4579
4601
  *
4580
- * Design ref: ADR-025 + FEATURE_158 (docs/features/v0.7.39.md).
4602
+ * Design ref: ADR-025 + FEATURE_158 (docs/features/v0.7.39.md);
4603
+ * late-verdict adoption: Issue 143 (docs/KNOWN_ISSUES.md).
4581
4604
  *
4582
4605
  * **The promise is NOT aborted on window expiry.** The caller retains
4583
4606
  * ownership; they pass the same `Promise<T>` to `speculativeRace` and
4584
- * can `await` it elsewhere. This keeps the classifier from being
4585
- * cancelled mid-flight when 95% of calls are sub-window wasting the
4586
- * remaining 5% would burn tokens already spent.
4607
+ * then `await` it to adopt the late verdict. Cancelling mid-flight would
4608
+ * waste tokens already spent AND throw away the verdict the caller is
4609
+ * about to use.
4610
+ *
4611
+ * Callers may also force `windowMs = 0` to disable the race entirely when no
4612
+ * interactive surface is present (Issue 143 WS2 — the guardrail does this for
4613
+ * SDK / non-interactive / child-agent contexts, where there is no human to
4614
+ * spare from latency, so it just awaits the verdict directly).
4587
4615
  *
4588
4616
  * Env knob: `KODAX_AUTO_SPECULATIVE_WINDOW_MS`
4589
- * - default: 500 (CC's equivalent race uses ~2000ms with timeout race;
4590
- * 500ms is conservative for first iteration, finalized after
4591
- * micro-bench in commit body)
4592
- * - `0` : disabled — `speculativeRace` waits forever for the promise
4593
- * (degrades to synchronous classify)
4617
+ * - default: 500 the threshold past which a slow classify waits for its
4618
+ * real verdict instead of resolving instantly. See WS4 micro-bench in
4619
+ * docs/features/v0.7.39.md for the measured p50/p95 this is set against.
4620
+ * - `0` : disabled — `speculativeRace` waits for the promise
4621
+ * (synchronous classify; identical verdict outcome to a non-zero window)
4594
4622
  * - negative: treated as `0` (disabled)
4595
4623
  * - non-numeric: ignored, default used
4596
4624
  */
@@ -5083,7 +5111,7 @@ interface ChildExecutorOptions {
5083
5111
  readonly maxParallel: number;
5084
5112
  readonly maxIterationsPerChild: number;
5085
5113
  readonly abortSignal?: AbortSignal;
5086
- readonly parentOptions: Readonly<Partial<Pick<KodaXOptions, 'provider' | 'model' | 'reasoningMode' | 'extensionRuntime' | 'events'>>>;
5114
+ readonly parentOptions: Readonly<Partial<Pick<KodaXOptions, 'provider' | 'model' | 'effort' | 'reasoningMode' | 'extensionRuntime' | 'events'> & Pick<KodaXContextOptions, 'repoIntelligenceMode' | 'repoIntelligenceTrace'>>>;
5087
5115
  readonly parentRole: string;
5088
5116
  readonly parentHarness: string;
5089
5117
  /**
@@ -5629,6 +5657,8 @@ interface GenerateWorkflowFromOptionsInput {
5629
5657
  readonly request: string;
5630
5658
  readonly options: KodaXOptions;
5631
5659
  readonly skillContext?: string;
5660
+ readonly timeoutSec?: number;
5661
+ /** @deprecated Prefer timeoutSec for public SDK calls. */
5632
5662
  readonly timeoutMs?: number;
5633
5663
  readonly signal?: AbortSignal;
5634
5664
  }
@@ -5647,7 +5677,7 @@ type WorkflowGenerationResult = {
5647
5677
  } | ({
5648
5678
  readonly kind: 'generated';
5649
5679
  } & GeneratedWorkflow);
5650
- declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv): number;
5680
+ declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv, timeouts?: KodaXTimeoutConfig): number;
5651
5681
  declare function validateGeneratedWorkflowSource(source: string): string;
5652
5682
  declare function buildWorkflowGenerationUserPrompt(request: string, skillContext?: string): string;
5653
5683
  declare function buildWorkflowGenerationSkillContext(request: string, options: Pick<KodaXOptions, 'context'>): Promise<string | undefined>;
@@ -5692,5 +5722,5 @@ declare function getBuiltinWorkflow(name: string): WorkflowModule | undefined;
5692
5722
  /** List built-in workflow metadata (for `/workflow` listing). */
5693
5723
  declare function listBuiltinWorkflows(): readonly WorkflowModule['meta'][];
5694
5724
 
5695
- export { Agent, AgentMessage, AutoRules, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BoundExtensionRuntimeController, CANCELLED_TOOL_RESULT_MESSAGE, CANCELLED_TOOL_RESULT_PREFIX, CODING_AGENT_MARKER, CODING_INVARIANTS, CODING_SUMMARY_PROMPT, CODING_UPDATE_SUMMARY_PROMPT, CapabilityDeniedError, CapabilityKind, CapabilityProvider, CapabilityResult, KodaXClient as Client, CombinedExtensionRuntime, ConstructionManifestError, DEFAULT_CODING_AGENT_NAME, DEFAULT_DANGEROUS_PATTERNS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_RESILIENCE_CONFIG, DEFAULT_SAFE_PATTERNS, DEFAULT_SELF_MODIFY_BUDGET, DEFAULT_WINDOW_MS as DEFAULT_SPECULATIVE_WINDOW_MS, DEFAULT_TOOL_OUTPUT_MAX_BYTES, DEFAULT_TOOL_OUTPUT_MAX_LINES, DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS, EMIT_VERDICT_TOOL_NAME, ErrorCategory, ExtensionRuntimeContract, FailureStage, GENERATOR_AGENT_NAME, GoalCompleteResult, Guardrail, ImageResizeError, KODAX_IMAGE_MEDIA_TYPES, KODAX_TOOLS, KODAX_VIDEO_MEDIA_TYPES, KodaXAmaControllerDecision, KodaXBaseProvider, KodaXChildContextBundle, KodaXClient, KodaXContentBlock, KodaXContextOptions, KodaXEvents, KodaXExecutionMode, KodaXExtensionRuntime, KodaXExtensionSessionRecord, KodaXFanoutBranchRecord, KodaXFanoutBranchTransition, KodaXFanoutSchedulerInput, KodaXFanoutSchedulerPlan, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXManualTopicId, KodaXMediaError, KodaXMessage, KodaXOptions, KodaXParentReductionContract, KodaXProviderCapabilityProfile, KodaXProviderPolicyHints, KodaXReasoningCapability, KodaXReasoningMode, KodaXRepoIntelligenceCapability, KodaXRepoIntelligenceMode, KodaXRepoIntelligenceResolvedMode, KodaXRepoIntelligenceTrace, KodaXRepoRoutingSignals, KodaXResult, KodaXSessionControl, KodaXSessionError, KodaXSessionMutators, KodaXTaskRoutingDecision, KodaXTaskType, KodaXTerminalError, KodaXThinkingDepth, KodaXTokenUsage, KodaXToolDefinition, KodaXToolError, KodaXToolExecutionContext, KodaXToolUseBlock, MANUAL_TOPIC_IDS, MAX_DIMENSION, McpCapabilityProvider, McpProviderOptions, McpReverseCapabilities, McpRoot, McpServersConfig, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, PLANNER_AGENT_NAME, PROMPT_SECTION_REGISTRY, PROTOCOL_EMITTER_TOOLS, ProviderExecutionState, ProviderRecoveryCoordinator, ProviderResilienceConfig, ProviderResiliencePolicy, READ_DEFAULT_LIMIT, READ_MAX_LINE_CHARS, READ_PREFLIGHT_SIZE_BYTES, REPOINTEL_DEFAULT_ENDPOINT, RecoveryDecision, RecoveryResult, ResilienceClassification, ResolveKodaXManualInput, ResolveKodaXManualOptions, ResolveKodaXManualResult, RuntimeDefaultsSnapshot, SCOUT_AGENT_NAME, SELF_KNOWLEDGE_ROUTING_RULE, SYSTEM_PROMPT, SYSTEM_WORKFLOW_LIMITS, SessionErrorMetadata, SignalCollector, StableBoundaryTracker, TARGET_RAW_SIZE_BYTES, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, ToolCallSignal, WORKER_AGENT_NAME, WORKFLOW_GENERATION_SYSTEM_PROMPT, WorkflowEventCorrelation, WorkflowHostPolicy, _resetRuntimeForTesting, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyFanoutBranchTransition, applyToolResultGuardrail, assignFanoutBranchWorker, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildAmaControllerDecision, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildFanoutSchedulerPlan, buildLlmReviewPrompt, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptOverlay, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildSelfKnowledgeRoutingRule, buildSystemPrompt, buildSystemPromptSnapshot, buildWorkflowGenerationSkillContext, buildWorkflowGenerationUserPrompt, checkAbsoluteDeny, checkIncompleteToolCalls, checkPromiseSignal, clampWorkflowLimits, classify, classifyBashCommand, classifyError, classifyResilienceError, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, countActiveFanoutBranches, createBashClassifierConfig, createBuiltinToolDefinition, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createFanoutSchedulerInput, createImageArtifactFromPath, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, defaultPolicy, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, drainPendingSwaps, emitVerdict, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, exec, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getFanoutBranch, getImpactEstimate, getModelInputCapabilities, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, hasPendingSwap, inferImageMediaType, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, list as listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadSavedWorkflow, loadSavedWorkflowCapsule, markFanoutBranchCancelled, markFanoutBranchCompleted, mcpRootsFromWorkspace, normalizePastedImage, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseWorkflowGeneration, persistImageAsBlock, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, prunePasteTmpDir, readAndNormalizeClipboardImage, readArtifact, readAuditEntries, readBudget, readClipboardImage, readDisableState, readWindowFromEnv as readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remaining as remainingSelfModifyBudget, renameSavedWorkflow, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, replaceSavedWorkflow, report as reportLspDiagnostics, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveConstructedAgent, resolveExtensionEntrypoint, resolveKodaXManual, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolCapability, resolveWorkflowGenerationTimeoutMs, resolveWorkflowIdentity, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, runWorkflowFromOptions, runWorkflowModule, safeWorkflowArtifactName, saveGeneratedWorkflow, saveGeneratedWorkflowFromRun, setActiveExtensionRuntime, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, stripAssistantText, stripHtmlToText, test as testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateGeneratedWorkflowSource, validateInputArtifactsForModel, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, warmRepoIntelligenceRuntime, webhook, workerAgent };
5696
- export type { AbsoluteDenyMatch, AbsoluteDenyMiss, AbsoluteDenyResult, AgentArtifact, ArtifactStatus, AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, BashClassificationResult, BashClassifierConfig, BashRiskLevel, BlockerAttemptResult, BootstrapTracingOptions, BudgetState, BuildClassifierPromptInput, BuildPromptInput, Capabilities, ChangedFileEntry, ChangedFileStatus, ChangedScopeAreaSummary, ChangedScopeReport, ClassifierDecision, ClassifierPrompt, ClassifyDecision, ClassifyOptions, CodingWorkflowBackendDeps, ConstructionArtifact, ConstructionPolicy, ConstructionPolicyVerdict, CreateCtxProxyOptions, CreateImageArtifactFromPathOptions, CreateKodaXTaskRunnerOptions, CreateWorkflowLifecycleControllerOptions, DeleteSavedWorkflowInput, DeleteWorkflowRunOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EditRecoveryDiagnostic, EditToolErrorCode, ErrorClassification, ExecOptions, ExecResult, ExtensionCommandContext, ExtensionCommandDefinition, ExtensionCommandInvocation, ExtensionCommandResult, ExtensionContributionSource, ExtensionDiscoveryResult, ExtensionDiscoverySkipReason, ExtensionEventMap, ExtensionFailureDiagnostic, ExtensionFailureStage, ExtensionHookMap, ExtensionLoadSource, ExtensionLogger, ExtensionRuntimeController, ExtensionRuntimeDiagnostics, ExtensionToolBeforeHookContext, GenerateWorkflowFromOptionsInput, GenerateWorkflowInput, GeneratedWorkflow, GetModelInputCapabilitiesInput, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KodaXAgentWorkerSpec, KodaXExtensionAPI, KodaXExtensionActivationResult, KodaXExtensionModule, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, KodaXPromptSection, KodaXPromptSectionDefinition, KodaXPromptSectionSlot, KodaXPromptSectionStability, KodaXPromptSnapshot, KodaXPromptSnapshotMetadata, KodaXProviderCapabilitySnapshot, KodaXProviderPolicyDecision, KodaXProviderPolicyIssue, KodaXProviderPolicyIssueSeverity, KodaXProviderSourceKind, KodaXRetrievalArtifact, KodaXRetrievalFreshness, KodaXRetrievalItem, KodaXRetrievalResult, KodaXRetrievalScope, KodaXRetrievalToolName, KodaXRetrievalTrust, KodaXVideoMediaType, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadedExtensionDiagnostic, LoadedGeneratedWorkflowFromRun, LocalToolDefinition, ManagedWorkflowRun, ManagedWorkflowSnapshot, ManagedWorkflowStatus, MarkdownLoadFailure, McpReverseWorkspace, ModelInputCapabilities, ModelProviderRegistration, ModuleCapsule, ModuleContextResult, NormalizeImageOptions, NormalizedImage, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, PersistImageAsBlockOptions, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, RegisteredCapabilityProviderDiagnostic, RegisteredCommandDiagnostic, RegisteredHookDiagnostic, RegisteredToolDefinition, RegisteredToolDiagnostic, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoIntelligenceRuntimeWarmResult, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, RollbackResult, RunGraphWriter, RunGraphWriterDeps, RunJsonInput, RunWorkflowFromOptionsInput, RunWorkflowModuleOptions, RunWorkflowModuleOutcome, RunningSession, SaveGeneratedWorkflowFromRunInput, SaveGeneratedWorkflowInput, SavedGeneratedWorkflowFile, SavedWorkflowDirs, SavedWorkflowExecution, SavedWorkflowRef, SavedWorkflowSource, SchemaProvider, SchemaValidationResult, ScriptSource, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SkippedExtensionDiscoveryEntry, SpeculativeResult, StagedHandle, StripOptions, SymbolContextResult, TestArtifactOptions, TestResult, TierZeroPatternId, ToolContent, ToolDefinitionSource, ToolHandler, ToolRegistrationOptions, ToolRegistry, ToolSideEffect, ValidateInputArtifactsOptions, VerifyGoalCompletionOptions, WebhookOptions, WebhookResult, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef };
5725
+ export { Agent, AgentMessage, AutoRules, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BoundExtensionRuntimeController, CANCELLED_TOOL_RESULT_MESSAGE, CANCELLED_TOOL_RESULT_PREFIX, CODING_AGENT_MARKER, CODING_INVARIANTS, CODING_SUMMARY_PROMPT, CODING_UPDATE_SUMMARY_PROMPT, CapabilityDeniedError, CapabilityKind, CapabilityProvider, CapabilityResult, KodaXClient as Client, CombinedExtensionRuntime, ConstructionManifestError, DEFAULT_CODING_AGENT_NAME, DEFAULT_DANGEROUS_PATTERNS, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_RESILIENCE_CONFIG, DEFAULT_SAFE_PATTERNS, DEFAULT_SELF_MODIFY_BUDGET, DEFAULT_WINDOW_MS as DEFAULT_SPECULATIVE_WINDOW_MS, DEFAULT_TOOL_OUTPUT_MAX_BYTES, DEFAULT_TOOL_OUTPUT_MAX_LINES, DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS, EMIT_VERDICT_TOOL_NAME, ErrorCategory, ExtensionRuntimeContract, FailureStage, GENERATOR_AGENT_NAME, GoalCompleteResult, Guardrail, ImageResizeError, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_TOOLS, KODAX_VIDEO_MEDIA_TYPES, KodaXBaseProvider, KodaXChildContextBundle, KodaXClient, KodaXContentBlock, KodaXContextOptions, KodaXEvents, KodaXExecutionMode, KodaXExtensionRuntime, KodaXExtensionSessionRecord, KodaXFileInputArtifact, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXManualTopicId, KodaXMediaError, KodaXMessage, KodaXOptions, KodaXProviderCapabilityProfile, KodaXProviderPolicyHints, KodaXReasoningCapability, KodaXReasoningMode, KodaXRepoIntelligenceCapability, KodaXRepoIntelligenceMode, KodaXRepoIntelligenceResolvedMode, KodaXRepoIntelligenceTrace, KodaXRepoRoutingSignals, KodaXResult, KodaXSessionControl, KodaXSessionError, KodaXSessionMutators, KodaXTaskRoutingDecision, KodaXTaskType, KodaXTerminalError, KodaXThinkingDepth, KodaXTimeoutConfig, KodaXTokenUsage, KodaXToolDefinition, KodaXToolError, KodaXToolExecutionContext, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, KodaXWireReasoningEffort, MANUAL_TOPIC_IDS, MAX_DIMENSION, McpCapabilityProvider, McpProviderOptions, McpReverseCapabilities, McpRoot, McpServersConfig, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, PLANNER_AGENT_NAME, PROMPT_SECTION_REGISTRY, PROTOCOL_EMITTER_TOOLS, ProviderExecutionState, ProviderRecoveryCoordinator, ProviderResilienceConfig, ProviderResiliencePolicy, READ_DEFAULT_LIMIT, READ_MAX_LINE_CHARS, READ_PREFLIGHT_SIZE_BYTES, REPO_EXPLORER_AGENT_NAME, REPO_EXPLORER_TOOL_NAMES, RecoveryDecision, RecoveryResult, ResilienceClassification, ResolveKodaXManualInput, ResolveKodaXManualOptions, ResolveKodaXManualResult, RuntimeDefaultsSnapshot, SCOUT_AGENT_NAME, SELF_KNOWLEDGE_ROUTING_RULE, SYSTEM_PROMPT, SYSTEM_WORKFLOW_LIMITS, SessionErrorMetadata, SignalCollector, StableBoundaryTracker, TARGET_RAW_SIZE_BYTES, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, ToolCallSignal, WORKER_AGENT_NAME, WORKFLOW_GENERATION_SYSTEM_PROMPT, WorkflowEventCorrelation, WorkflowHostPolicy, _resetRuntimeForTesting, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyToolResultGuardrail, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildLlmReviewPrompt, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildSelfKnowledgeRoutingRule, buildSystemPrompt, buildSystemPromptSnapshot, buildWorkflowGenerationSkillContext, buildWorkflowGenerationUserPrompt, checkAbsoluteDeny, checkIncompleteToolCalls, checkPromiseSignal, clampWorkflowLimits, classify, classifyBashCommand, classifyError, classifyResilienceError, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, createBashClassifierConfig, createBuiltinToolDefinition, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createFileArtifactFromPath, createImageArtifactFromPath, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createVideoArtifactFromPath, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, defaultPolicy, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, drainPendingSwaps, emitVerdict, enqueueWithArtifacts, ensureBuiltinRepoExplorerAgent, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, exec, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getImpactEstimate, getModelInputCapabilities, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, hasPendingSwap, inferImageMediaType, inferTaskType, inferVideoMediaType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, list as listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadSavedWorkflow, loadSavedWorkflowCapsule, mcpRootsFromWorkspace, normalizePastedImage, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseWorkflowGeneration, persistImageAsBlock, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, prunePasteTmpDir, readAndNormalizeClipboardImage, readArtifact, readAuditEntries, readBudget, readClipboardImage, readDisableState, readWindowFromEnv as readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remaining as remainingSelfModifyBudget, renameSavedWorkflow, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, replaceSavedWorkflow, report as reportLspDiagnostics, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveConstructedAgent, resolveExtensionEntrypoint, resolveKodaXManual, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolCapability, resolveWorkflowGenerationTimeoutMs, resolveWorkflowIdentity, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, runWorkflowFromOptions, runWorkflowModule, safeWorkflowArtifactName, saveGeneratedWorkflow, saveGeneratedWorkflowFromRun, setActiveExtensionRuntime, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, stripAssistantText, stripHtmlToText, test as testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateGeneratedWorkflowSource, validateInputArtifactsForModel, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, webhook, workerAgent };
5726
+ export type { AbsoluteDenyMatch, AbsoluteDenyMiss, AbsoluteDenyResult, AgentArtifact, ArtifactStatus, AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, BashClassificationResult, BashClassifierConfig, BashRiskLevel, BlockerAttemptResult, BootstrapTracingOptions, BudgetState, BuildClassifierPromptInput, BuildPromptInput, Capabilities, ChangedFileEntry, ChangedFileStatus, ChangedScopeAreaSummary, ChangedScopeReport, ClassifierDecision, ClassifierPrompt, ClassifyDecision, ClassifyOptions, CodingWorkflowBackendDeps, ConstructionArtifact, ConstructionPolicy, ConstructionPolicyVerdict, CreateCtxProxyOptions, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateKodaXTaskRunnerOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowLifecycleControllerOptions, DeleteSavedWorkflowInput, DeleteWorkflowRunOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EditRecoveryDiagnostic, EditToolErrorCode, EnqueueWithArtifactsInput, ErrorClassification, ExecOptions, ExecResult, ExtensionCommandContext, ExtensionCommandDefinition, ExtensionCommandInvocation, ExtensionCommandResult, ExtensionContributionSource, ExtensionDiscoveryResult, ExtensionDiscoverySkipReason, ExtensionEventMap, ExtensionFailureDiagnostic, ExtensionFailureStage, ExtensionHookMap, ExtensionLoadSource, ExtensionLogger, ExtensionRuntimeController, ExtensionRuntimeDiagnostics, ExtensionToolBeforeHookContext, GenerateWorkflowFromOptionsInput, GenerateWorkflowInput, GeneratedWorkflow, GetModelInputCapabilitiesInput, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KodaXAgentWorkerSpec, KodaXExtensionAPI, KodaXExtensionActivationResult, KodaXExtensionModule, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, KodaXPromptSection, KodaXPromptSectionDefinition, KodaXPromptSectionSlot, KodaXPromptSectionStability, KodaXPromptSnapshot, KodaXPromptSnapshotMetadata, KodaXProviderCapabilitySnapshot, KodaXProviderPolicyDecision, KodaXProviderPolicyIssue, KodaXProviderPolicyIssueSeverity, KodaXProviderSourceKind, KodaXRetrievalArtifact, KodaXRetrievalFreshness, KodaXRetrievalItem, KodaXRetrievalResult, KodaXRetrievalScope, KodaXRetrievalToolName, KodaXRetrievalTrust, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadedExtensionDiagnostic, LoadedGeneratedWorkflowFromRun, LocalToolDefinition, ManagedWorkflowRun, ManagedWorkflowSnapshot, ManagedWorkflowStatus, MarkdownLoadFailure, McpReverseWorkspace, ModelInputCapabilities, ModelProviderRegistration, ModuleCapsule, ModuleContextResult, NormalizeImageOptions, NormalizedImage, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, PersistImageAsBlockOptions, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, RegisteredCapabilityProviderDiagnostic, RegisteredCommandDiagnostic, RegisteredHookDiagnostic, RegisteredToolDefinition, RegisteredToolDiagnostic, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, RollbackResult, RunGraphWriter, RunGraphWriterDeps, RunJsonInput, RunWorkflowFromOptionsInput, RunWorkflowModuleOptions, RunWorkflowModuleOutcome, RunningSession, SaveGeneratedWorkflowFromRunInput, SaveGeneratedWorkflowInput, SavedGeneratedWorkflowFile, SavedWorkflowDirs, SavedWorkflowExecution, SavedWorkflowRef, SavedWorkflowSource, SchemaProvider, SchemaValidationResult, ScriptSource, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SkippedExtensionDiscoveryEntry, SpeculativeResult, StagedHandle, StripOptions, SymbolContextResult, TestArtifactOptions, TestResult, TierZeroPatternId, ToolContent, ToolDefinitionSource, ToolHandler, ToolRegistrationOptions, ToolRegistry, ToolSideEffect, ValidateInputArtifactsOptions, VerifyGoalCompletionOptions, WebhookOptions, WebhookResult, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef };