@kodax-ai/kodax 0.7.55 → 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.
- package/CHANGELOG.md +50 -0
- package/README.md +22 -24
- package/README_CN.md +16 -18
- package/dist/builtin/code-review/SKILL.md +22 -3
- package/dist/chunks/agent-EHWQZA4C.js +2 -0
- package/dist/chunks/argument-completer-AYDAYGKL.js +2 -0
- package/dist/chunks/chunk-3WWPJGPQ.js +2 -0
- package/dist/chunks/chunk-4SHP3M67.js +2 -0
- package/dist/chunks/chunk-KN6IJMTB.js +636 -0
- package/dist/chunks/{chunk-ZBK3DZ3S.js → chunk-LZKGOR2C.js} +1 -1
- package/dist/chunks/chunk-MJFPFRGK.js +423 -0
- package/dist/chunks/chunk-N2N2W3AQ.js +584 -0
- package/dist/chunks/chunk-PCPFLPS4.js +5 -0
- package/dist/chunks/chunk-TCLSPUTR.js +31 -0
- package/dist/chunks/chunk-VACH6QWN.js +315 -0
- package/dist/chunks/chunk-YSVPF6SN.js +597 -0
- package/dist/chunks/{compaction-config-NAJEEPG5.js → compaction-config-TLDMFMZO.js} +1 -1
- package/dist/chunks/{construction-bootstrap-4CIVZMQ5.js → construction-bootstrap-55B7Q5RX.js} +4 -4
- package/dist/chunks/dist-IE4HVWP7.js +2 -0
- package/dist/chunks/dist-IKOK2MJQ.js +2 -0
- package/dist/chunks/paste-WTL2XN7P.js +2 -0
- package/dist/chunks/utils-EJ2VCRTC.js +2 -0
- package/dist/index.d.ts +21 -16
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1128 -1099
- package/dist/provider-capabilities.json +986 -195
- package/dist/sdk-agent.d.ts +20 -12
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +223 -108
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +10 -5
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +142 -0
- package/dist/sdk-media.js +2 -0
- package/dist/sdk-repl.d.ts +106 -96
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-session.d.ts +6 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +11 -0
- package/dist/types-chunks/base.d-BnjQrSVf.d.ts +301 -0
- package/dist/types-chunks/{bash-prefix-extractor.d-LUGkQHcd.d.ts → bash-prefix-extractor.d-BgvMbfq6.d.ts} +198 -139
- package/dist/types-chunks/{capsule.d-CNonpwAZ.d.ts → capsule.d-DwJp5r63.d.ts} +14 -11
- package/dist/types-chunks/{types.d-D4jL-gAA.d.ts → guardrail.d-BP3yyr6u.d.ts} +3 -121
- package/dist/types-chunks/{guardrail.d-B18oO1gt.d.ts → guardrail.d-C1DhxnvC.d.ts} +31 -9
- package/dist/types-chunks/{manager.d-DLmDhX3i.d.ts → manager.d-DBD7SOTT.d.ts} +7 -2
- package/dist/types-chunks/{process.d-Bj82oJhD.d.ts → process.d-BZncyzEj.d.ts} +2 -1
- package/dist/types-chunks/{resolver.d-CCX9NXWP.d.ts → resolver.d-ZvKQgl0X.d.ts} +82 -17
- package/dist/types-chunks/{sdk-session-SjrnWb4-.d.ts → sdk-session-DAScB0rW.d.ts} +6 -4
- package/dist/types-chunks/{storage.d-BAuJ0Ks7.d.ts → storage.d-CPvn9qI0.d.ts} +2 -2
- package/dist/types-chunks/{base.d-BBNUF9nz.d.ts → types.d-6VOXvF88.d.ts} +101 -290
- package/dist/types-chunks/types.d-D8WcfrOD.d.ts +143 -0
- package/dist/types-chunks/{utils.d-C9MUY8n3.d.ts → utils.d-CpgVIjYZ.d.ts} +16 -18
- package/package.json +15 -6
- package/dist/chunks/agent-PYSVWY7M.js +0 -2
- package/dist/chunks/argument-completer-CTDNNWV3.js +0 -2
- package/dist/chunks/chunk-7C2QUBLE.js +0 -31
- package/dist/chunks/chunk-EVIDQWMF.js +0 -5
- package/dist/chunks/chunk-FRI7UQSB.js +0 -2
- package/dist/chunks/chunk-HQCLPWRI.js +0 -551
- package/dist/chunks/chunk-JCDO2FR4.js +0 -584
- package/dist/chunks/chunk-MX4G42EV.js +0 -425
- package/dist/chunks/chunk-RGPPZOD5.js +0 -314
- package/dist/chunks/chunk-THAKTCPE.js +0 -652
- package/dist/chunks/dist-7KTO2PUU.js +0 -2
- package/dist/chunks/dist-BNKIZRCP.js +0 -2
- package/dist/chunks/paste-5DSTHQGK.js +0 -2
- package/dist/chunks/utils-2QXBKYPJ.js +0 -2
package/dist/sdk-coding.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, f as
|
|
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';
|
|
4
5
|
import { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
5
|
-
import {
|
|
6
|
-
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,
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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';
|
|
11
13
|
import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
12
14
|
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
13
|
-
import { k as McpProviderOptions, c as McpCapabilityProvider, l as McpReverseCapabilities, m as McpRoot } from './types-chunks/manager.d-
|
|
14
|
-
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
|
|
15
|
-
import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-
|
|
16
|
-
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-
|
|
17
|
-
import {
|
|
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';
|
|
18
20
|
import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
19
21
|
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
20
22
|
import '@anthropic-ai/sdk';
|
|
@@ -48,6 +50,114 @@ declare class KodaXTerminalError extends KodaXError {
|
|
|
48
50
|
constructor(message: string, suggestions?: string[]);
|
|
49
51
|
}
|
|
50
52
|
|
|
53
|
+
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
54
|
+
interface KodaXMediaErrorOptions {
|
|
55
|
+
readonly detail?: string;
|
|
56
|
+
readonly cause?: unknown;
|
|
57
|
+
}
|
|
58
|
+
declare class KodaXMediaError extends Error {
|
|
59
|
+
readonly code: KodaXMediaErrorCode;
|
|
60
|
+
readonly detail?: string;
|
|
61
|
+
readonly cause?: unknown;
|
|
62
|
+
constructor(code: KodaXMediaErrorCode, message: string, options?: KodaXMediaErrorOptions);
|
|
63
|
+
}
|
|
64
|
+
declare class ImageResizeError extends KodaXMediaError {
|
|
65
|
+
constructor(message: string, options?: KodaXMediaErrorOptions & {
|
|
66
|
+
readonly code?: KodaXMediaErrorCode;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface CreateImageArtifactFromPathOptions {
|
|
71
|
+
readonly mediaType?: KodaXImageMediaType;
|
|
72
|
+
readonly source?: KodaXInputArtifactSource;
|
|
73
|
+
readonly description?: string;
|
|
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
|
+
}
|
|
88
|
+
declare function inferImageMediaType(filePath: string): KodaXImageMediaType | undefined;
|
|
89
|
+
declare function inferVideoMediaType(filePath: string): KodaXVideoMediaType | undefined;
|
|
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;
|
|
93
|
+
|
|
94
|
+
declare const MAX_DIMENSION = 2000;
|
|
95
|
+
declare const TARGET_RAW_SIZE_BYTES: number;
|
|
96
|
+
interface NormalizedImage {
|
|
97
|
+
readonly buffer: Buffer;
|
|
98
|
+
readonly mediaType: 'image/png' | 'image/jpeg';
|
|
99
|
+
readonly width: number;
|
|
100
|
+
readonly height: number;
|
|
101
|
+
}
|
|
102
|
+
interface NormalizeImageOptions {
|
|
103
|
+
readonly maxDimension?: number;
|
|
104
|
+
readonly targetBytes?: number;
|
|
105
|
+
readonly preferMediaType?: 'image/png' | 'image/jpeg';
|
|
106
|
+
}
|
|
107
|
+
declare function normalizePastedImage(input: Buffer, options?: NormalizeImageOptions): Promise<NormalizedImage>;
|
|
108
|
+
|
|
109
|
+
declare function readClipboardImage(): Promise<Buffer | null>;
|
|
110
|
+
declare function readAndNormalizeClipboardImage(options?: NormalizeImageOptions): Promise<NormalizedImage | null>;
|
|
111
|
+
|
|
112
|
+
declare const PASTE_TMP_DIR_ENV = "KODAX_PASTE_TMP_DIR";
|
|
113
|
+
declare const PASTE_TMP_TTL_MS: number;
|
|
114
|
+
interface PersistImageAsBlockOptions {
|
|
115
|
+
readonly directory?: string;
|
|
116
|
+
readonly fileNamePrefix?: string;
|
|
117
|
+
}
|
|
118
|
+
declare function persistImageAsBlock(image: NormalizedImage, options?: PersistImageAsBlockOptions): Promise<KodaXImageBlock>;
|
|
119
|
+
declare function prunePasteTmpDir(now?: number): Promise<number>;
|
|
120
|
+
|
|
121
|
+
type KodaXInputCapabilityStatus = 'supported' | 'provider-native-unwired' | 'unsupported';
|
|
122
|
+
interface KodaXModalityInputCapability<TMediaType extends string> {
|
|
123
|
+
readonly nativeSupported: boolean;
|
|
124
|
+
readonly sdkSupported: boolean;
|
|
125
|
+
readonly status: KodaXInputCapabilityStatus;
|
|
126
|
+
readonly mediaTypes: readonly TMediaType[];
|
|
127
|
+
readonly nativeMediaTypes?: readonly TMediaType[];
|
|
128
|
+
readonly maxBytes?: number;
|
|
129
|
+
readonly maxCount?: number;
|
|
130
|
+
readonly reason?: string;
|
|
131
|
+
}
|
|
132
|
+
interface ModelInputCapabilities {
|
|
133
|
+
readonly text: true;
|
|
134
|
+
readonly image: KodaXModalityInputCapability<KodaXImageMediaType>;
|
|
135
|
+
readonly video: KodaXModalityInputCapability<KodaXVideoMediaType>;
|
|
136
|
+
readonly file: KodaXModalityInputCapability<string>;
|
|
137
|
+
}
|
|
138
|
+
interface GetModelInputCapabilitiesInput {
|
|
139
|
+
readonly provider: string;
|
|
140
|
+
readonly model?: string;
|
|
141
|
+
}
|
|
142
|
+
declare const KODAX_IMAGE_MEDIA_TYPES: readonly KodaXImageMediaType[];
|
|
143
|
+
declare const KODAX_VIDEO_MEDIA_TYPES: readonly KodaXVideoMediaType[];
|
|
144
|
+
declare const KODAX_FILE_MEDIA_TYPES: readonly string[];
|
|
145
|
+
declare function getModelInputCapabilities(input: GetModelInputCapabilitiesInput): ModelInputCapabilities;
|
|
146
|
+
|
|
147
|
+
interface ValidateInputArtifactsOptions {
|
|
148
|
+
readonly provider: string;
|
|
149
|
+
readonly model?: string;
|
|
150
|
+
}
|
|
151
|
+
declare function validateInputArtifactsForModel(artifacts: readonly KodaXInputArtifact[], options: ValidateInputArtifactsOptions): void;
|
|
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
|
+
|
|
51
161
|
/**
|
|
52
162
|
* KodaX Error Classification
|
|
53
163
|
*
|
|
@@ -471,6 +581,7 @@ declare function toolSemanticLookup(input: Record<string, unknown>, ctx: KodaXTo
|
|
|
471
581
|
* - DD §14 — lifecycle, security model, registry merge semantics.
|
|
472
582
|
* - docs/features/v0.7.28.md — capability schema, generation flow.
|
|
473
583
|
*/
|
|
584
|
+
|
|
474
585
|
/**
|
|
475
586
|
* Handler script source. v0.7.28 limits language to `'javascript'` so that
|
|
476
587
|
* `loadHandler()` can `await import()` the file directly without an
|
|
@@ -611,6 +722,7 @@ interface AgentContent {
|
|
|
611
722
|
readonly guardrails?: readonly GuardrailRef[];
|
|
612
723
|
readonly model?: string;
|
|
613
724
|
readonly provider?: string;
|
|
725
|
+
readonly effort?: KodaXWireReasoningEffort;
|
|
614
726
|
/**
|
|
615
727
|
* FEATURE_191 — one-sentence human-readable summary surfaced in the
|
|
616
728
|
* Worker system prompt's `=== Available specialist agents ===`
|
|
@@ -1262,6 +1374,7 @@ declare function drainPendingSwaps(): readonly string[];
|
|
|
1262
1374
|
* description: Reviews DB migrations for safety
|
|
1263
1375
|
* tools: [read, grep]
|
|
1264
1376
|
* model: claude-sonnet-4-6
|
|
1377
|
+
* effort: high
|
|
1265
1378
|
* ---
|
|
1266
1379
|
* You are a DB migration reviewer. ...
|
|
1267
1380
|
*
|
|
@@ -1334,6 +1447,8 @@ interface DiscoveredMarkdownAgent {
|
|
|
1334
1447
|
readonly tools?: readonly string[];
|
|
1335
1448
|
/** Optional model alias from frontmatter `model` field. */
|
|
1336
1449
|
readonly model?: string;
|
|
1450
|
+
/** Optional reasoning effort from frontmatter `effort` field. */
|
|
1451
|
+
readonly effort?: string;
|
|
1337
1452
|
}
|
|
1338
1453
|
interface DiscoverMarkdownAgentsResult {
|
|
1339
1454
|
/**
|
|
@@ -1387,6 +1502,17 @@ declare function loadAgentsFromMarkdown(opts?: LoadAgentsFromMarkdownOptions): P
|
|
|
1387
1502
|
*/
|
|
1388
1503
|
declare function discoverMarkdownAgents(opts?: LoadAgentsFromMarkdownOptions): Promise<DiscoverMarkdownAgentsResult>;
|
|
1389
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
|
+
|
|
1390
1516
|
/**
|
|
1391
1517
|
* CtxProxy — runtime gate for constructed tool handlers.
|
|
1392
1518
|
*
|
|
@@ -1999,7 +2125,7 @@ interface ExtensionRuntimeDiagnostics {
|
|
|
1999
2125
|
defaults: {
|
|
2000
2126
|
activeTools?: string[];
|
|
2001
2127
|
modelSelection: ExtensionModelSelection;
|
|
2002
|
-
thinkingLevel?:
|
|
2128
|
+
thinkingLevel?: KodaXWireReasoningEffort;
|
|
2003
2129
|
};
|
|
2004
2130
|
}
|
|
2005
2131
|
interface ExtensionCommandInvocation {
|
|
@@ -2034,13 +2160,13 @@ interface ExtensionToolBeforeHookContext {
|
|
|
2034
2160
|
interface ExtensionProviderBeforeHookContext {
|
|
2035
2161
|
provider: string;
|
|
2036
2162
|
model?: string;
|
|
2037
|
-
reasoningMode?:
|
|
2163
|
+
reasoningMode?: KodaXWireReasoningEffort;
|
|
2038
2164
|
systemPrompt: string;
|
|
2039
2165
|
block: (reason: string) => void;
|
|
2040
2166
|
replaceProvider: (provider: string) => void;
|
|
2041
2167
|
replaceModel: (model?: string) => void;
|
|
2042
2168
|
replaceSystemPrompt: (systemPrompt: string) => void;
|
|
2043
|
-
setThinkingLevel: (level:
|
|
2169
|
+
setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
|
|
2044
2170
|
}
|
|
2045
2171
|
interface ExtensionTurnSettleHookContext {
|
|
2046
2172
|
sessionId: string;
|
|
@@ -2050,7 +2176,7 @@ interface ExtensionTurnSettleHookContext {
|
|
|
2050
2176
|
signal?: 'COMPLETE' | 'BLOCKED' | 'DECIDE';
|
|
2051
2177
|
queueUserMessage: (message: string | KodaXMessage) => void;
|
|
2052
2178
|
setModelSelection: (next: ExtensionModelSelection) => void;
|
|
2053
|
-
setThinkingLevel: (level:
|
|
2179
|
+
setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
|
|
2054
2180
|
}
|
|
2055
2181
|
/**
|
|
2056
2182
|
* FEATURE_184 (v0.7.45) — Stop Hook bridge context for extensions.
|
|
@@ -2273,8 +2399,8 @@ interface ExtensionRuntimeController {
|
|
|
2273
2399
|
setActiveTools(toolNames: string[]): void;
|
|
2274
2400
|
getModelSelection(): ExtensionModelSelection;
|
|
2275
2401
|
setModelSelection(next: ExtensionModelSelection): void;
|
|
2276
|
-
getThinkingLevel():
|
|
2277
|
-
setThinkingLevel(level:
|
|
2402
|
+
getThinkingLevel(): KodaXWireReasoningEffort | undefined;
|
|
2403
|
+
setThinkingLevel(level: KodaXWireReasoningEffort): void;
|
|
2278
2404
|
}
|
|
2279
2405
|
interface KodaXExtensionAPI {
|
|
2280
2406
|
registerTool: (definition: LocalToolDefinition) => () => void;
|
|
@@ -2630,11 +2756,38 @@ interface ImpactEstimateResult {
|
|
|
2630
2756
|
capability?: KodaXRepoIntelligenceCapability;
|
|
2631
2757
|
trace?: KodaXRepoIntelligenceTrace;
|
|
2632
2758
|
}
|
|
2759
|
+
|
|
2633
2760
|
declare function renderModuleContext(result: ModuleContextResult): string;
|
|
2634
2761
|
declare function renderSymbolContext(result: SymbolContextResult): string;
|
|
2635
2762
|
declare function renderProcessContext(result: ProcessContextResult): string;
|
|
2636
2763
|
declare function renderImpactEstimate(result: ImpactEstimateResult): string;
|
|
2637
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
|
+
|
|
2638
2791
|
type RepoContext = Pick<KodaXToolExecutionContext, 'executionCwd' | 'gitRoot'>;
|
|
2639
2792
|
declare function buildRepoIntelligenceIndex(context: RepoContext, options?: {
|
|
2640
2793
|
targetPath?: string;
|
|
@@ -2649,6 +2802,7 @@ declare function getModuleContext(context: RepoContext, options?: {
|
|
|
2649
2802
|
targetPath?: string;
|
|
2650
2803
|
refresh?: boolean;
|
|
2651
2804
|
mode?: KodaXRepoIntelligenceMode;
|
|
2805
|
+
maxWaitMs?: number;
|
|
2652
2806
|
}): Promise<ModuleContextResult>;
|
|
2653
2807
|
declare function getSymbolContext(context: RepoContext, options: {
|
|
2654
2808
|
symbol: string;
|
|
@@ -2656,6 +2810,7 @@ declare function getSymbolContext(context: RepoContext, options: {
|
|
|
2656
2810
|
targetPath?: string;
|
|
2657
2811
|
refresh?: boolean;
|
|
2658
2812
|
mode?: KodaXRepoIntelligenceMode;
|
|
2813
|
+
maxWaitMs?: number;
|
|
2659
2814
|
}): Promise<SymbolContextResult>;
|
|
2660
2815
|
declare function getProcessContext(context: RepoContext, options: {
|
|
2661
2816
|
entry?: string;
|
|
@@ -2663,6 +2818,7 @@ declare function getProcessContext(context: RepoContext, options: {
|
|
|
2663
2818
|
targetPath?: string;
|
|
2664
2819
|
refresh?: boolean;
|
|
2665
2820
|
mode?: KodaXRepoIntelligenceMode;
|
|
2821
|
+
maxWaitMs?: number;
|
|
2666
2822
|
}): Promise<ProcessContextResult>;
|
|
2667
2823
|
declare function getImpactEstimate(context: RepoContext, options: {
|
|
2668
2824
|
symbol?: string;
|
|
@@ -2671,6 +2827,7 @@ declare function getImpactEstimate(context: RepoContext, options: {
|
|
|
2671
2827
|
targetPath?: string;
|
|
2672
2828
|
refresh?: boolean;
|
|
2673
2829
|
mode?: KodaXRepoIntelligenceMode;
|
|
2830
|
+
maxWaitMs?: number;
|
|
2674
2831
|
}): Promise<ImpactEstimateResult>;
|
|
2675
2832
|
declare function getRepoRoutingSignals(context: RepoContext, options?: {
|
|
2676
2833
|
targetPath?: string;
|
|
@@ -2678,81 +2835,34 @@ declare function getRepoRoutingSignals(context: RepoContext, options?: {
|
|
|
2678
2835
|
mode?: KodaXRepoIntelligenceMode;
|
|
2679
2836
|
}): Promise<KodaXRepoRoutingSignals>;
|
|
2680
2837
|
/**
|
|
2681
|
-
* v0.7.41 L2
|
|
2838
|
+
* v0.7.41 L2 - best-effort warm both session-level caches (routing signals +
|
|
2682
2839
|
* preturn bundle) for a given workspace. Designed to be called fire-and-forget
|
|
2683
2840
|
* at REPL startup so the first user prompt finds the in-process caches warm.
|
|
2684
2841
|
*
|
|
2685
2842
|
* Why this works (and why M1's `refresh:true` design did NOT):
|
|
2686
|
-
* - Uses `refresh: false`
|
|
2687
|
-
*
|
|
2688
|
-
* -
|
|
2689
|
-
*
|
|
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.
|
|
2690
2847
|
* - If user submits BEFORE prewarm completes, P2 in-flight Promise sharing
|
|
2691
|
-
* coalesces both calls onto the same
|
|
2692
|
-
*
|
|
2848
|
+
* coalesces both calls onto the same full-engine work. The user avoids
|
|
2849
|
+
* paying a second cold refresh.
|
|
2693
2850
|
* - If user submits AFTER prewarm completes, P3+ session cache (60s TTL)
|
|
2694
2851
|
* serves the result in ~0ms.
|
|
2695
2852
|
* - The middleware/first-round path (L1) also uses `refresh:false`, so
|
|
2696
|
-
* prewarm and user-path are cache-coherent
|
|
2853
|
+
* prewarm and user-path are cache-coherent - the user-path call genuinely
|
|
2697
2854
|
* hits the warmed entry instead of being forced to bypass it.
|
|
2698
2855
|
*
|
|
2699
2856
|
* Failure modes:
|
|
2700
|
-
* - All calls `.catch(() => {})`
|
|
2701
|
-
*
|
|
2702
|
-
* - `off` mode short-circuits
|
|
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
|
|
2703
2860
|
* is disabled.
|
|
2704
2861
|
*/
|
|
2705
2862
|
declare function prewarmRepoIntelligenceCaches(context: RepoContext, options?: {
|
|
2706
2863
|
mode?: KodaXRepoIntelligenceMode;
|
|
2707
2864
|
}): void;
|
|
2708
2865
|
|
|
2709
|
-
declare const REPOINTEL_DEFAULT_ENDPOINT = "http://127.0.0.1:47891";
|
|
2710
|
-
|
|
2711
|
-
type RepoIntelligenceRequestedBridge = 'none' | 'shared' | 'native';
|
|
2712
|
-
type RepoIntelligenceEffectiveEngine = 'off' | 'oss' | 'premium';
|
|
2713
|
-
type RepoIntelligenceRuntimeStatus = 'disabled' | 'ok' | 'limited' | 'unavailable' | 'warming';
|
|
2714
|
-
type PremiumTransport = 'daemon' | 'direct';
|
|
2715
|
-
interface RepoIntelligenceRuntimeInspection {
|
|
2716
|
-
configuredMode: KodaXRepoIntelligenceMode;
|
|
2717
|
-
requestedMode: KodaXRepoIntelligenceResolvedMode;
|
|
2718
|
-
endpoint: string;
|
|
2719
|
-
bin: string;
|
|
2720
|
-
traceEnabled: boolean;
|
|
2721
|
-
requestedBridge: RepoIntelligenceRequestedBridge;
|
|
2722
|
-
effectiveEngine: RepoIntelligenceEffectiveEngine;
|
|
2723
|
-
effectiveBridge: RepoIntelligenceRequestedBridge;
|
|
2724
|
-
status: RepoIntelligenceRuntimeStatus;
|
|
2725
|
-
fallbackToOss: boolean;
|
|
2726
|
-
warnings: string[];
|
|
2727
|
-
error?: string;
|
|
2728
|
-
transport?: PremiumTransport;
|
|
2729
|
-
clientBuildId?: string;
|
|
2730
|
-
daemonBuildId?: string;
|
|
2731
|
-
daemonStartedAt?: string;
|
|
2732
|
-
daemonPid?: number;
|
|
2733
|
-
}
|
|
2734
|
-
interface RepoIntelligenceRuntimeWarmResult extends RepoIntelligenceRuntimeInspection {
|
|
2735
|
-
warmed: boolean;
|
|
2736
|
-
warmLatencyMs?: number;
|
|
2737
|
-
}
|
|
2738
|
-
interface RepoIntelligenceRuntimeConfig {
|
|
2739
|
-
mode: KodaXRepoIntelligenceMode;
|
|
2740
|
-
endpoint: string;
|
|
2741
|
-
bin: string;
|
|
2742
|
-
trace: boolean;
|
|
2743
|
-
}
|
|
2744
|
-
declare function resolveRepoIntelligenceRuntimeConfig(modeOverride?: KodaXRepoIntelligenceMode, traceOverride?: boolean): RepoIntelligenceRuntimeConfig;
|
|
2745
|
-
declare function resolveRepoIntelligenceMode(modeOverride?: KodaXRepoIntelligenceMode): KodaXRepoIntelligenceResolvedMode;
|
|
2746
|
-
declare function inspectRepoIntelligenceRuntime(options?: {
|
|
2747
|
-
mode?: KodaXRepoIntelligenceMode;
|
|
2748
|
-
trace?: boolean;
|
|
2749
|
-
probePremium?: boolean;
|
|
2750
|
-
}): Promise<RepoIntelligenceRuntimeInspection>;
|
|
2751
|
-
declare function warmRepoIntelligenceRuntime(options?: {
|
|
2752
|
-
mode?: KodaXRepoIntelligenceMode;
|
|
2753
|
-
trace?: boolean;
|
|
2754
|
-
}): Promise<RepoIntelligenceRuntimeWarmResult>;
|
|
2755
|
-
|
|
2756
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}";
|
|
2757
2867
|
|
|
2758
2868
|
type KodaXPromptSectionSlot = 'base' | 'runtime-context' | 'session-context' | 'capability-truth' | 'base-suffix' | 'mode-overlay' | 'project-rules' | 'skill-addendum' | 'specialist';
|
|
@@ -3009,10 +3119,16 @@ declare function buildProviderPolicyPromptNotes(decision: KodaXProviderPolicyDec
|
|
|
3009
3119
|
declare function evaluateProviderPolicy(options: EvaluateProviderPolicyOptions): KodaXProviderPolicyDecision;
|
|
3010
3120
|
|
|
3011
3121
|
interface ReasoningPlan {
|
|
3012
|
-
|
|
3013
|
-
|
|
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;
|
|
3014
3131
|
decision: KodaXTaskRoutingDecision;
|
|
3015
|
-
amaControllerDecision: KodaXAmaControllerDecision;
|
|
3016
3132
|
promptOverlay: string;
|
|
3017
3133
|
providerPolicy?: KodaXProviderPolicyDecision;
|
|
3018
3134
|
}
|
|
@@ -3043,8 +3159,6 @@ declare function reasoningModeToDepth(mode: KodaXReasoningMode): KodaXThinkingDe
|
|
|
3043
3159
|
declare function inferTaskType(prompt: string): KodaXTaskType;
|
|
3044
3160
|
declare function buildFallbackRoutingDecision(prompt: string, providerPolicy?: KodaXProviderPolicyDecision, routingEvidence?: RoutingEvidenceInput): KodaXTaskRoutingDecision;
|
|
3045
3161
|
declare function buildProviderPolicyHintsForDecision(decision: KodaXTaskRoutingDecision): KodaXProviderPolicyHints;
|
|
3046
|
-
declare function buildAmaControllerDecision(decision: KodaXTaskRoutingDecision): KodaXAmaControllerDecision;
|
|
3047
|
-
declare function buildPromptOverlay(decision: KodaXTaskRoutingDecision, extraNotes?: string[], _providerPolicy?: KodaXProviderPolicyDecision, amaControllerDecision?: KodaXAmaControllerDecision): string;
|
|
3048
3162
|
declare function createReasoningPlan(options: KodaXOptions, prompt: string, provider: KodaXBaseProvider, routingEvidence?: RoutingEvidenceInput): Promise<ReasoningPlan>;
|
|
3049
3163
|
|
|
3050
3164
|
/**
|
|
@@ -3567,15 +3681,6 @@ declare class KodaXClient {
|
|
|
3567
3681
|
clear(): void;
|
|
3568
3682
|
}
|
|
3569
3683
|
|
|
3570
|
-
declare function createFanoutSchedulerInput(controllerDecision: KodaXAmaControllerDecision, bundles: KodaXChildContextBundle[], reductionContract: KodaXParentReductionContract): KodaXFanoutSchedulerInput | undefined;
|
|
3571
|
-
declare function buildFanoutSchedulerPlan(input: KodaXFanoutSchedulerInput): KodaXFanoutSchedulerPlan;
|
|
3572
|
-
declare function getFanoutBranch(plan: KodaXFanoutSchedulerPlan, bundleId: string): KodaXFanoutBranchRecord;
|
|
3573
|
-
declare function countActiveFanoutBranches(plan: KodaXFanoutSchedulerPlan): number;
|
|
3574
|
-
declare function applyFanoutBranchTransition(plan: KodaXFanoutSchedulerPlan, transition: KodaXFanoutBranchTransition): KodaXFanoutSchedulerPlan;
|
|
3575
|
-
declare function assignFanoutBranchWorker(plan: KodaXFanoutSchedulerPlan, bundleId: string, workerId: string): KodaXFanoutSchedulerPlan;
|
|
3576
|
-
declare function markFanoutBranchCompleted(plan: KodaXFanoutSchedulerPlan, bundleId: string, childId?: string): KodaXFanoutSchedulerPlan;
|
|
3577
|
-
declare function markFanoutBranchCancelled(plan: KodaXFanoutSchedulerPlan, bundleId: string, reason: string): KodaXFanoutSchedulerPlan;
|
|
3578
|
-
|
|
3579
3684
|
/**
|
|
3580
3685
|
* Protocol emitter tools.
|
|
3581
3686
|
*
|
|
@@ -4488,24 +4593,32 @@ declare function checkAbsoluteDeny(call: RunnerToolCall, projectRoot: string): A
|
|
|
4488
4593
|
* Races an in-flight classifier promise against a short "quiet window".
|
|
4489
4594
|
* When the classifier returns within the window, callers can use the
|
|
4490
4595
|
* decision immediately — no confirm dialog, no perceptible latency. When
|
|
4491
|
-
* the window expires first,
|
|
4492
|
-
*
|
|
4493
|
-
*
|
|
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.
|
|
4494
4601
|
*
|
|
4495
|
-
* 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).
|
|
4496
4604
|
*
|
|
4497
4605
|
* **The promise is NOT aborted on window expiry.** The caller retains
|
|
4498
4606
|
* ownership; they pass the same `Promise<T>` to `speculativeRace` and
|
|
4499
|
-
*
|
|
4500
|
-
*
|
|
4501
|
-
*
|
|
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).
|
|
4502
4615
|
*
|
|
4503
4616
|
* Env knob: `KODAX_AUTO_SPECULATIVE_WINDOW_MS`
|
|
4504
|
-
* - default: 500
|
|
4505
|
-
*
|
|
4506
|
-
*
|
|
4507
|
-
* - `0` : disabled — `speculativeRace` waits
|
|
4508
|
-
* (
|
|
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)
|
|
4509
4622
|
* - negative: treated as `0` (disabled)
|
|
4510
4623
|
* - non-numeric: ignored, default used
|
|
4511
4624
|
*/
|
|
@@ -4998,7 +5111,7 @@ interface ChildExecutorOptions {
|
|
|
4998
5111
|
readonly maxParallel: number;
|
|
4999
5112
|
readonly maxIterationsPerChild: number;
|
|
5000
5113
|
readonly abortSignal?: AbortSignal;
|
|
5001
|
-
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'>>>;
|
|
5002
5115
|
readonly parentRole: string;
|
|
5003
5116
|
readonly parentHarness: string;
|
|
5004
5117
|
/**
|
|
@@ -5544,6 +5657,8 @@ interface GenerateWorkflowFromOptionsInput {
|
|
|
5544
5657
|
readonly request: string;
|
|
5545
5658
|
readonly options: KodaXOptions;
|
|
5546
5659
|
readonly skillContext?: string;
|
|
5660
|
+
readonly timeoutSec?: number;
|
|
5661
|
+
/** @deprecated Prefer timeoutSec for public SDK calls. */
|
|
5547
5662
|
readonly timeoutMs?: number;
|
|
5548
5663
|
readonly signal?: AbortSignal;
|
|
5549
5664
|
}
|
|
@@ -5562,7 +5677,7 @@ type WorkflowGenerationResult = {
|
|
|
5562
5677
|
} | ({
|
|
5563
5678
|
readonly kind: 'generated';
|
|
5564
5679
|
} & GeneratedWorkflow);
|
|
5565
|
-
declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv): number;
|
|
5680
|
+
declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv, timeouts?: KodaXTimeoutConfig): number;
|
|
5566
5681
|
declare function validateGeneratedWorkflowSource(source: string): string;
|
|
5567
5682
|
declare function buildWorkflowGenerationUserPrompt(request: string, skillContext?: string): string;
|
|
5568
5683
|
declare function buildWorkflowGenerationSkillContext(request: string, options: Pick<KodaXOptions, 'context'>): Promise<string | undefined>;
|
|
@@ -5607,5 +5722,5 @@ declare function getBuiltinWorkflow(name: string): WorkflowModule | undefined;
|
|
|
5607
5722
|
/** List built-in workflow metadata (for `/workflow` listing). */
|
|
5608
5723
|
declare function listBuiltinWorkflows(): readonly WorkflowModule['meta'][];
|
|
5609
5724
|
|
|
5610
|
-
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, KODAX_TOOLS,
|
|
5611
|
-
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, 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, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KodaXAgentWorkerSpec, KodaXExtensionAPI, KodaXExtensionActivationResult, KodaXExtensionModule, 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, ModelProviderRegistration, ModuleCapsule, ModuleContextResult, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, RegisteredCapabilityProviderDiagnostic, RegisteredCommandDiagnostic, RegisteredHookDiagnostic, RegisteredToolDefinition, RegisteredToolDiagnostic, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection,
|
|
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 };
|