@kodax-ai/kodax 0.7.56 → 0.7.58
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 +2004 -1887
- package/README.md +52 -48
- package/README_CN.md +37 -32
- package/dist/builtin/code-review/SKILL.md +22 -3
- package/dist/chunks/agent-YJNC2755.js +2 -0
- package/dist/chunks/argument-completer-QGBNXTYJ.js +2 -0
- package/dist/chunks/chunk-526OILYL.js +2 -0
- package/dist/chunks/{chunk-ZBK3DZ3S.js → chunk-6AU6EPO6.js} +1 -1
- package/dist/chunks/chunk-73Z7BK5H.js +15 -0
- package/dist/chunks/chunk-7QB55SYG.js +326 -0
- package/dist/chunks/chunk-CQ6EQG7E.js +322 -0
- package/dist/chunks/chunk-CV6JHPEO.js +2 -0
- package/dist/chunks/chunk-D6QVXQNI.js +1 -0
- package/dist/chunks/chunk-HS2K74I4.js +31 -0
- package/dist/chunks/chunk-NKHXRN7G.js +403 -0
- package/dist/chunks/chunk-OBPB5BQ6.js +310 -0
- package/dist/chunks/chunk-P4VF3JEP.js +7 -0
- package/dist/chunks/chunk-PIQWODWN.js +18 -0
- package/dist/chunks/chunk-QHWXPJEG.js +601 -0
- package/dist/chunks/chunk-XXEIFNBE.js +52 -0
- package/dist/chunks/chunk-ZZDC75H4.js +681 -0
- package/dist/chunks/compaction-config-OPMRZSAK.js +2 -0
- package/dist/chunks/{construction-bootstrap-EDDVNP2B.js → construction-bootstrap-CIXFH5SE.js} +4 -4
- package/dist/chunks/dist-JSE7NICF.js +2 -0
- package/dist/chunks/dist-SDNQOW52.js +2 -0
- package/dist/chunks/host-H7FQMMRC.js +2 -0
- package/dist/chunks/{paste-5IDBBQQ3.js → paste-Y4DVUWSM.js} +1 -1
- package/dist/chunks/run-manager-4H5HWMVW.js +2 -0
- package/dist/chunks/utils-FLVVQHM7.js +2 -0
- package/dist/index.d.ts +22 -18
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1303 -1108
- package/dist/provider-capabilities.json +986 -197
- package/dist/sdk-agent.d.ts +162 -14
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +285 -255
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +66 -43
- 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 +64 -5
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +114 -107
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-session.d.ts +7 -7
- 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-CwPfI8WQ.d.ts → base.d-BA9Doaj_.d.ts} +38 -8
- package/dist/types-chunks/{bash-prefix-extractor.d-DZF1gDDz.d.ts → bash-prefix-extractor.d-D3cddmyV.d.ts} +639 -163
- package/dist/types-chunks/capability-learning.d-DRV80ISB.d.ts +29 -0
- package/dist/types-chunks/{cost-tracker.d-wRtyEW9d.d.ts → cost-tracker.d-CBLk1fiD.d.ts} +24 -2
- package/dist/types-chunks/{guardrail.d-DQQknOfb.d.ts → guardrail.d-iK7FwMdW.d.ts} +32 -10
- package/dist/types-chunks/{manager.d-DLmDhX3i.d.ts → manager.d-DBD7SOTT.d.ts} +7 -2
- package/dist/types-chunks/{process.d-BdiIUr8T.d.ts → process.d-DHow2y2G.d.ts} +170 -14
- package/dist/types-chunks/{resolver.d-Djq8KlCE.d.ts → resolver.d-DDOfVYDr.d.ts} +111 -18
- package/dist/types-chunks/{capsule.d-D0kjnqYy.d.ts → run-manager.d-ByDcJc5g.d.ts} +124 -13
- package/dist/types-chunks/{sdk-session-BP6ZNpOp.d.ts → sdk-session-21Tt3N_x.d.ts} +74 -9
- package/dist/types-chunks/{storage.d-CkydxFsV.d.ts → storage.d-BsZrBPYu.d.ts} +2 -2
- package/dist/types-chunks/{types.d-BJmoMf5H.d.ts → types.d-Ci5YPFEh.d.ts} +135 -22
- package/dist/types-chunks/{types.d-BKuHSiR0.d.ts → types.d-D4ZA8LJV.d.ts} +7 -3
- package/dist/types-chunks/{utils.d-bC97IuQZ.d.ts → utils.d-BURxOxFd.d.ts} +94 -19
- package/package.json +12 -7
- package/dist/chunks/agent-MAAKRAF2.js +0 -2
- package/dist/chunks/argument-completer-OWEXGWNL.js +0 -2
- package/dist/chunks/chunk-4OHXHC2S.js +0 -314
- package/dist/chunks/chunk-5YJIAP6C.js +0 -551
- package/dist/chunks/chunk-7EAGBLRV.js +0 -2
- package/dist/chunks/chunk-CDGOEK3T.js +0 -31
- package/dist/chunks/chunk-DHETLULC.js +0 -425
- package/dist/chunks/chunk-JCDO2FR4.js +0 -584
- package/dist/chunks/chunk-NZVJ3DFC.js +0 -656
- package/dist/chunks/chunk-QI3MRJGU.js +0 -5
- package/dist/chunks/chunk-XXQ3RLA2.js +0 -2
- package/dist/chunks/compaction-config-NAJEEPG5.js +0 -2
- package/dist/chunks/dist-2267YGB5.js +0 -2
- package/dist/chunks/dist-GW32CHO5.js +0 -2
- package/dist/chunks/utils-J7XBBZGB.js +0 -2
package/dist/sdk-coding.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
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
|
|
4
|
-
import {
|
|
1
|
+
import { _ 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-Ci5YPFEh.js';
|
|
2
|
+
export { b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, h as KodaXImageBlock, 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-Ci5YPFEh.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-DDOfVYDr.js';
|
|
4
|
+
import { a as CostTracker } from './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
5
|
+
export { K as KodaXLlmTimeoutConfig, p as parseTimeoutSecEnvMs, t as timeoutSecToMs } from './types-chunks/cost-tracker.d-CBLk1fiD.js';
|
|
6
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-BA9Doaj_.js';
|
|
5
7
|
import { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
6
|
-
import {
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { an as KodaXToolExecutionContext, aQ as ToolSideEffect, T as KodaXRepoIntelligenceCapability, W as KodaXRepoIntelligenceTrace, U as KodaXRepoIntelligenceMode, V as KodaXRepoIntelligenceResolvedMode, Y as KodaXRepoRoutingSignals, P as KodaXOptions, u as KodaXContextOptions, S as KodaXProviderPolicyHints, aB as ProviderResilienceConfig, aC as ProviderResiliencePolicy, F as FailureStage, aH as ResilienceClassification, az as ProviderExecutionState, aE as RecoveryDecision, aG as RecoveryResult, Z as KodaXResult, a1 as KodaXSessionControl, a2 as KodaXSessionMutators, z as KodaXManagedProtocolPayload, E as ExtensionRuntimeContract, aM as RuntimeDefaultsSnapshot, c as BoundExtensionRuntimeController, x as KodaXEvents, g as GoalCompleteResult, aJ as ResolveKodaXManualInput, aK as ResolveKodaXManualOptions, aL as ResolveKodaXManualResult, M as KodaXManualTopicId, L as KodaXManualTopic, d as ChildSnapshotEvent, r as KodaXChildContextBundle, s as KodaXChildExecutionResult, aR as WorkflowHostPolicy, al as KodaXTimeoutConfig } from './types-chunks/bash-prefix-extractor.d-D3cddmyV.js';
|
|
9
|
+
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 KodaXAgentProfile, o as KodaXBudgetDisclosureZone, p as KodaXBudgetExtensionRequest, q as KodaXChildAgentResult, t as KodaXCompactionOverride, v as KodaXContextTokenSnapshot, w as KodaXEffectiveTaskConfig, y as KodaXManagedBudgetSnapshot, A as KodaXManagedTask, H as KodaXManagedTaskRuntimeState, I as KodaXManagedTaskStatusEvent, J as KodaXManualSource, N as KodaXManualTopicInput, O as KodaXMemoryStrategy, Q as KodaXOrchestrationVerdict, R as KodaXParentReductionContract, X as KodaXRepoIntelligenceTraceEvent, _ as KodaXRoleRoundSummary, $ as KodaXRuntimeVerificationContract, a0 as KodaXSelfManualConfig, a3 as KodaXSessionOptions, a4 as KodaXSidecarMessageEvent, a5 as KodaXSkillInvocationContext, a6 as KodaXSkillMap, a7 as KodaXSkillProjectionConfidence, a8 as KodaXTaskCapabilityHint, a9 as KodaXTaskContract, aa as KodaXTaskEvidenceArtifact, ab as KodaXTaskEvidenceBundle, ac as KodaXTaskEvidenceEntry, ad as KodaXTaskRole, ae as KodaXTaskRoleAssignment, af as KodaXTaskStatus, ag as KodaXTaskSurface, ah as KodaXTaskToolPolicy, ai as KodaXTaskVerificationContract, aj as KodaXTaskVerificationCriterion, ak as KodaXTaskWorkItem, am as KodaXToolEventMeta, ao as KodaXToolVisibilityMeta, ap as KodaXToolVisibilityPolicy, aq as KodaXVerificationScorecard, ar as KodaXVerificationScorecardCriterion, as as KodaXWorkflowAgentDigestEvent, at as KodaXWorkflowEventMeta, au as KodaXWorkflowTimeoutConfig, 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, aS as WorkflowInvocationAction, aT as WorkflowInvocationPolicyDecision, aU as WorkflowInvocationPolicyInput, aV as WorkflowInvocationSource, aW as WorkflowRunProgressView, aX as WorkflowStartOutcome, aY as WorkflowToolHost, aZ as WorkflowToolHostInlineInput, a_ as WorkflowToolHostResult, a$ as WorkflowToolHostStartResult, b0 as buildGoalRuntimeBinding, b1 as createBashPrefixExtractor, b2 as decideWorkflowInvocation, b3 as extractCommandPrefix, b4 as getDefaultLspService, b5 as makeDisabledGoalToolsContext, b6 as providerResilienceConfigFromTimeouts, b7 as shutdownDefaultLspService, b8 as withGoalBeforeNextTurn, b9 as withGoalStopHook, ba as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-D3cddmyV.js';
|
|
10
|
+
export { CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateVideoArtifactFromPathOptions, EnqueueWithArtifactsInput, GetModelInputCapabilitiesInput, ImageResizeError, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXInputCapabilityStatus, KodaXMediaError, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, MAX_DIMENSION, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, PersistImageAsBlockOptions, TARGET_RAW_SIZE_BYTES, ValidateInputArtifactsOptions, createFileArtifactFromPath, createImageArtifactFromPath, createVideoArtifactFromPath, enqueueWithArtifacts, getModelInputCapabilities, inferImageMediaType, inferVideoMediaType, normalizePastedImage, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, validateInputArtifactsForModel } from './sdk-media.js';
|
|
11
|
+
import { g as AgentMessage, e as Agent, aN as RunnerLlmReturn, a0 as KodaXJsonValue, Q as KodaXExtensionSessionRecord, S as KodaXExtensionStore, _ as KodaXInputArtifact, aV as SessionErrorMetadata, az as QualityInvariant, bf as ToolCapability, aJ as RunnableTool, aO as RunnerToolCall, W as KodaXGoalState, bt as WorkflowEventCorrelation, z as Guardrail, b$ as WorkflowTaskSummaryEventUpdate, bm as WorkflowAgentBackend, bB as WorkflowModule, bQ as WorkflowProcessTrackerOptions, bs as WorkflowEvent, bq as WorkflowArtifactRef, bz as WorkflowMeta, bS as WorkflowRunState, bo as WorkflowApproval, bF as WorkflowProcessEvent, bp as WorkflowApprovalSummary, bx as WorkflowLimits, bK as WorkflowProcessSnapshot } from './types-chunks/process.d-DHow2y2G.js';
|
|
12
|
+
export { i as AgentReasoningProfile, k as AgentTool, l as AskUserMultiOptions, m as AskUserQuestionItem, n as AskUserQuestionOptions, o as CompactionAnchor, r as CompactionResult, t as CompactionUpdate, H as Handoff, J as InMemorySessionOptions, O as KodaXCompactMemoryProgress, P as KodaXCompactMemorySeed, R as KodaXExtensionSessionState, U as KodaXFileInputArtifact, Y as KodaXImageInputArtifact, Z as KodaXImageMediaType, $ as KodaXInputArtifactSource, a2 as KodaXSessionArtifactLedgerEntry, a3 as KodaXSessionBranchSummaryEntry, a4 as KodaXSessionCompactionEntry, a5 as KodaXSessionData, a6 as KodaXSessionEntry, a7 as KodaXSessionEntryBase, a9 as KodaXSessionLabelEntry, aa as KodaXSessionLineage, ab as KodaXSessionMessageEntry, ac as KodaXSessionMeta, ad as KodaXSessionNavigationOptions, ae as KodaXSessionRuntimeInfo, af as KodaXSessionScope, ag as KodaXSessionStorage, ah as KodaXSessionTreeNode, ai as KodaXSessionUiHistoryItem, aj as KodaXSessionUiHistoryItemType, ak as KodaXSessionUiTextHistoryItem, al as KodaXSessionUiTextHistoryItemType, am as KodaXSessionUiToolCall, an as KodaXSessionUiToolCallStatus, ao as KodaXSessionUiToolGroupHistoryItem, ap as KodaXSessionWorkspaceKind, aq as KodaXVideoInputArtifact, ar as KodaXVideoMediaType, au as MessageEntry, ax as PresetDispatcher, aC as ReasoningDepth, aG as RunEvent, aH as RunOptions, aI as RunResult, aK as Runner, aS as Session, aU as SessionEntry, aW as SessionExtension, aX as SessionForkOptions, cc as createAgent, cd as createHandoff, ce as createInMemorySession, cv as registerPresetDispatcher } from './types-chunks/process.d-DHow2y2G.js';
|
|
13
|
+
import { y as MessageQueue, T as WorkflowScriptManifest, F as WorkflowCapsule, I as WorkflowCapsuleIntent, H as WorkflowCapsuleInputs, N as WorkflowCapsuleRequirements, J as WorkflowCapsuleProvenance, w as ManagedWorkflowSnapshot$1, R as WorkflowRunManager$1, O as WorkflowPatternId } from './types-chunks/run-manager.d-ByDcJc5g.js';
|
|
14
|
+
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, x as ManagedWorkflowStatus, P as PROMISE_PATTERN, U as appendSessionLineageLabel, X as applySessionCompaction, Y as archiveOldIslands, Z as buildSessionTree, a0 as cleanupIncompleteToolCalls, a1 as countActiveLineageMessages, a2 as countTokens, a3 as createSessionLineage, a7 as estimateTokens, a8 as extractArtifactLedger, aa as extractTitleFromMessages, ab as findPreviousUserEntryId, ac as forkSessionLineage, ad as generateSessionId, ae as getAgentConfigHome, af as getAgentConfigPath, ag as getAppDataDir, aj as getSessionLineagePath, ak as getSessionMessagesFromLineage, al as mergeArtifactLedger, an as resolveSessionLineageTarget, ao as rewindSessionLineage, ap as setAgentConfigHome, aq as setSessionLineageActiveEntry, ar as validateAndFixToolHistory } from './types-chunks/run-manager.d-ByDcJc5g.js';
|
|
12
15
|
import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
13
16
|
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-
|
|
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
|
|
16
|
-
import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-
|
|
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-
|
|
18
|
-
import {
|
|
19
|
-
import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
17
|
+
import { k as McpProviderOptions, c as McpCapabilityProvider, l as McpReverseCapabilities, m as McpRoot } from './types-chunks/manager.d-DBD7SOTT.js';
|
|
18
|
+
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';
|
|
19
|
+
import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-iK7FwMdW.js';
|
|
20
|
+
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-iK7FwMdW.js';
|
|
21
|
+
import { g as ToolGuardrail } from './types-chunks/types.d-D4ZA8LJV.js';
|
|
20
22
|
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
21
23
|
import '@anthropic-ai/sdk';
|
|
22
24
|
import 'openai';
|
|
@@ -49,90 +51,6 @@ declare class KodaXTerminalError extends KodaXError {
|
|
|
49
51
|
constructor(message: string, suggestions?: string[]);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
53
|
-
interface KodaXMediaErrorOptions {
|
|
54
|
-
readonly detail?: string;
|
|
55
|
-
readonly cause?: unknown;
|
|
56
|
-
}
|
|
57
|
-
declare class KodaXMediaError extends Error {
|
|
58
|
-
readonly code: KodaXMediaErrorCode;
|
|
59
|
-
readonly detail?: string;
|
|
60
|
-
readonly cause?: unknown;
|
|
61
|
-
constructor(code: KodaXMediaErrorCode, message: string, options?: KodaXMediaErrorOptions);
|
|
62
|
-
}
|
|
63
|
-
declare class ImageResizeError extends KodaXMediaError {
|
|
64
|
-
constructor(message: string, options?: KodaXMediaErrorOptions & {
|
|
65
|
-
readonly code?: KodaXMediaErrorCode;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface CreateImageArtifactFromPathOptions {
|
|
70
|
-
readonly mediaType?: KodaXImageMediaType;
|
|
71
|
-
readonly source?: KodaXInputArtifactSource;
|
|
72
|
-
readonly description?: string;
|
|
73
|
-
}
|
|
74
|
-
declare function inferImageMediaType(filePath: string): KodaXImageMediaType | undefined;
|
|
75
|
-
declare function createImageArtifactFromPath(filePath: string, options?: CreateImageArtifactFromPathOptions): KodaXImageInputArtifact;
|
|
76
|
-
|
|
77
|
-
declare const MAX_DIMENSION = 2000;
|
|
78
|
-
declare const TARGET_RAW_SIZE_BYTES: number;
|
|
79
|
-
interface NormalizedImage {
|
|
80
|
-
readonly buffer: Buffer;
|
|
81
|
-
readonly mediaType: 'image/png' | 'image/jpeg';
|
|
82
|
-
readonly width: number;
|
|
83
|
-
readonly height: number;
|
|
84
|
-
}
|
|
85
|
-
interface NormalizeImageOptions {
|
|
86
|
-
readonly maxDimension?: number;
|
|
87
|
-
readonly targetBytes?: number;
|
|
88
|
-
readonly preferMediaType?: 'image/png' | 'image/jpeg';
|
|
89
|
-
}
|
|
90
|
-
declare function normalizePastedImage(input: Buffer, options?: NormalizeImageOptions): Promise<NormalizedImage>;
|
|
91
|
-
|
|
92
|
-
declare function readClipboardImage(): Promise<Buffer | null>;
|
|
93
|
-
declare function readAndNormalizeClipboardImage(options?: NormalizeImageOptions): Promise<NormalizedImage | null>;
|
|
94
|
-
|
|
95
|
-
declare const PASTE_TMP_DIR_ENV = "KODAX_PASTE_TMP_DIR";
|
|
96
|
-
declare const PASTE_TMP_TTL_MS: number;
|
|
97
|
-
interface PersistImageAsBlockOptions {
|
|
98
|
-
readonly directory?: string;
|
|
99
|
-
readonly fileNamePrefix?: string;
|
|
100
|
-
}
|
|
101
|
-
declare function persistImageAsBlock(image: NormalizedImage, options?: PersistImageAsBlockOptions): Promise<KodaXImageBlock>;
|
|
102
|
-
declare function prunePasteTmpDir(now?: number): Promise<number>;
|
|
103
|
-
|
|
104
|
-
type KodaXVideoMediaType = 'video/mp4' | 'video/mpeg' | 'video/quicktime' | 'video/x-msvideo' | 'video/x-flv' | 'video/webm' | 'video/x-ms-wmv' | 'video/3gpp';
|
|
105
|
-
type KodaXInputCapabilityStatus = 'supported' | 'provider-native-unwired' | 'unsupported';
|
|
106
|
-
interface KodaXModalityInputCapability<TMediaType extends string> {
|
|
107
|
-
readonly nativeSupported: boolean;
|
|
108
|
-
readonly sdkSupported: boolean;
|
|
109
|
-
readonly status: KodaXInputCapabilityStatus;
|
|
110
|
-
readonly mediaTypes: readonly TMediaType[];
|
|
111
|
-
readonly nativeMediaTypes?: readonly TMediaType[];
|
|
112
|
-
readonly maxBytes?: number;
|
|
113
|
-
readonly maxCount?: number;
|
|
114
|
-
readonly reason?: string;
|
|
115
|
-
}
|
|
116
|
-
interface ModelInputCapabilities {
|
|
117
|
-
readonly text: true;
|
|
118
|
-
readonly image: KodaXModalityInputCapability<KodaXImageMediaType>;
|
|
119
|
-
readonly video: KodaXModalityInputCapability<KodaXVideoMediaType>;
|
|
120
|
-
readonly file: KodaXModalityInputCapability<string>;
|
|
121
|
-
}
|
|
122
|
-
interface GetModelInputCapabilitiesInput {
|
|
123
|
-
readonly provider: string;
|
|
124
|
-
readonly model?: string;
|
|
125
|
-
}
|
|
126
|
-
declare const KODAX_IMAGE_MEDIA_TYPES: readonly KodaXImageMediaType[];
|
|
127
|
-
declare const KODAX_VIDEO_MEDIA_TYPES: readonly KodaXVideoMediaType[];
|
|
128
|
-
declare function getModelInputCapabilities(input: GetModelInputCapabilitiesInput): ModelInputCapabilities;
|
|
129
|
-
|
|
130
|
-
interface ValidateInputArtifactsOptions {
|
|
131
|
-
readonly provider: string;
|
|
132
|
-
readonly model?: string;
|
|
133
|
-
}
|
|
134
|
-
declare function validateInputArtifactsForModel(artifacts: readonly KodaXInputArtifact[], options: ValidateInputArtifactsOptions): void;
|
|
135
|
-
|
|
136
54
|
/**
|
|
137
55
|
* KodaX Error Classification
|
|
138
56
|
*
|
|
@@ -196,44 +114,7 @@ type ToolHandlerSync = (input: Record<string, unknown>, context: KodaXToolExecut
|
|
|
196
114
|
type ToolHandlerStreaming = (input: Record<string, unknown>, context: KodaXToolExecutionContext) => AsyncGenerator<ToolProgress, ToolResult, void>;
|
|
197
115
|
/** Union of both handler types. Existing tools use ToolHandlerSync; new long-running tools may use ToolHandlerStreaming. */
|
|
198
116
|
type ToolHandler = ToolHandlerSync | ToolHandlerStreaming;
|
|
199
|
-
|
|
200
|
-
* v0.7.42 — Declarative tool side-effect class.
|
|
201
|
-
*
|
|
202
|
-
* Required field on every {@link LocalToolDefinition}. Used by:
|
|
203
|
-
* - Plan mode: tools with `sideEffect !== 'readonly'` are blocked unless
|
|
204
|
-
* they explicitly opt in via `planModeAllowed: true` (e.g.
|
|
205
|
-
* `exit_plan_mode`, `task_stop`).
|
|
206
|
-
* - SDK embedders (KodaX Space etc.): iterate `getAllRegisteredTools()`
|
|
207
|
-
* and build their own blocklist by category — replaces the previous
|
|
208
|
-
* practice of hardcoding a `Set<string>` of tool names, which silently
|
|
209
|
-
* drifted whenever KodaX added a new tool.
|
|
210
|
-
* - Internal permission system: `FILE_MODIFICATION_TOOLS` and
|
|
211
|
-
* `MODIFICATION_TOOLS` exports in `@kodax-ai/repl` are now computed
|
|
212
|
-
* from this metadata at module load time, so adding a new
|
|
213
|
-
* `'mutates-fs'` tool here automatically reaches every callsite
|
|
214
|
-
* that consumes those sets.
|
|
215
|
-
*
|
|
216
|
-
* Categories (mutually exclusive; pick the dominant effect):
|
|
217
|
-
* - `'readonly'` — produces no observable side effect, just reads
|
|
218
|
-
* local state (FS, registry, computed views).
|
|
219
|
-
* - `'mutates-fs'` — writes to the local filesystem (write, edit,
|
|
220
|
-
* multi-edit, undo, worktree-*, construction
|
|
221
|
-
* artifacts). Bash is NOT in this bucket; it has
|
|
222
|
-
* its own.
|
|
223
|
-
* - `'mutates-shell'` — invokes an arbitrary shell command (bash).
|
|
224
|
-
* - `'mutates-network'` — performs a network request that may have side
|
|
225
|
-
* effects on the remote (web_fetch with any
|
|
226
|
-
* method, web_search, MCP server calls).
|
|
227
|
-
* - `'mutates-state'` — changes internal session/agent state without
|
|
228
|
-
* FS or shell side effects (todo_update,
|
|
229
|
-
* send_message, dispatch_child_task,
|
|
230
|
-
* exit_plan_mode, emit_managed_protocol).
|
|
231
|
-
*
|
|
232
|
-
* Pick the dominant effect when a tool touches multiple. e.g. `dispatch_
|
|
233
|
-
* child_task` may transitively run any tool, but its own direct effect is
|
|
234
|
-
* spawning a child agent (`mutates-state`).
|
|
235
|
-
*/
|
|
236
|
-
type ToolSideEffect = 'readonly' | 'mutates-fs' | 'mutates-shell' | 'mutates-network' | 'mutates-state';
|
|
117
|
+
|
|
237
118
|
/**
|
|
238
119
|
* FEATURE_149 (v0.7.38) — interrupt-on-submit policy for in-flight tools.
|
|
239
120
|
*
|
|
@@ -454,6 +335,21 @@ declare function isToolPlanModeAllowed(name: string): boolean;
|
|
|
454
335
|
* scattered across 5+ callsites.
|
|
455
336
|
*/
|
|
456
337
|
declare function isToolFileMutation(name: string): boolean;
|
|
338
|
+
/**
|
|
339
|
+
* FEATURE_247 — does this tool perform a read-only network request
|
|
340
|
+
* (`sideEffect === 'reads-network'`)?
|
|
341
|
+
*
|
|
342
|
+
* Lets an SDK embedder's permission broker (e.g. KodaX-Space Partner) allow
|
|
343
|
+
* web research / MCP reads (`web_search`, `mcp_read_resource`, `mcp_get_prompt`)
|
|
344
|
+
* while still blocking mutating network calls (`web_fetch`, `mcp_call` →
|
|
345
|
+
* `mutates-network`). Fail-closed: unknown names return `false`.
|
|
346
|
+
*
|
|
347
|
+
* Note: `isToolMutation` intentionally still returns `true` for a
|
|
348
|
+
* `reads-network` tool (only `readonly` is treated as non-mutating there), so
|
|
349
|
+
* existing mutation-gate behavior is unchanged — use THIS predicate, or the
|
|
350
|
+
* `sideEffect` value directly, to select the read-network class.
|
|
351
|
+
*/
|
|
352
|
+
declare function isToolNetworkRead(name: string): boolean;
|
|
457
353
|
/**
|
|
458
354
|
* v0.7.42 — does this tool mutate anything (FS, shell, network, state)?
|
|
459
355
|
*
|
|
@@ -556,6 +452,7 @@ declare function toolSemanticLookup(input: Record<string, unknown>, ctx: KodaXTo
|
|
|
556
452
|
* - DD §14 — lifecycle, security model, registry merge semantics.
|
|
557
453
|
* - docs/features/v0.7.28.md — capability schema, generation flow.
|
|
558
454
|
*/
|
|
455
|
+
|
|
559
456
|
/**
|
|
560
457
|
* Handler script source. v0.7.28 limits language to `'javascript'` so that
|
|
561
458
|
* `loadHandler()` can `await import()` the file directly without an
|
|
@@ -696,6 +593,7 @@ interface AgentContent {
|
|
|
696
593
|
readonly guardrails?: readonly GuardrailRef[];
|
|
697
594
|
readonly model?: string;
|
|
698
595
|
readonly provider?: string;
|
|
596
|
+
readonly effort?: KodaXWireReasoningEffort;
|
|
699
597
|
/**
|
|
700
598
|
* FEATURE_191 — one-sentence human-readable summary surfaced in the
|
|
701
599
|
* Worker system prompt's `=== Available specialist agents ===`
|
|
@@ -1347,6 +1245,7 @@ declare function drainPendingSwaps(): readonly string[];
|
|
|
1347
1245
|
* description: Reviews DB migrations for safety
|
|
1348
1246
|
* tools: [read, grep]
|
|
1349
1247
|
* model: claude-sonnet-4-6
|
|
1248
|
+
* effort: high
|
|
1350
1249
|
* ---
|
|
1351
1250
|
* You are a DB migration reviewer. ...
|
|
1352
1251
|
*
|
|
@@ -1419,6 +1318,8 @@ interface DiscoveredMarkdownAgent {
|
|
|
1419
1318
|
readonly tools?: readonly string[];
|
|
1420
1319
|
/** Optional model alias from frontmatter `model` field. */
|
|
1421
1320
|
readonly model?: string;
|
|
1321
|
+
/** Optional reasoning effort from frontmatter `effort` field. */
|
|
1322
|
+
readonly effort?: string;
|
|
1422
1323
|
}
|
|
1423
1324
|
interface DiscoverMarkdownAgentsResult {
|
|
1424
1325
|
/**
|
|
@@ -1472,6 +1373,17 @@ declare function loadAgentsFromMarkdown(opts?: LoadAgentsFromMarkdownOptions): P
|
|
|
1472
1373
|
*/
|
|
1473
1374
|
declare function discoverMarkdownAgents(opts?: LoadAgentsFromMarkdownOptions): Promise<DiscoverMarkdownAgentsResult>;
|
|
1474
1375
|
|
|
1376
|
+
/**
|
|
1377
|
+
* Built-in specialist agents registered into the same resolver as
|
|
1378
|
+
* user/project markdown agents. They are intentionally tiny manifests:
|
|
1379
|
+
* KodaX already has the specialist routing runtime, so built-ins should
|
|
1380
|
+
* reuse that path instead of adding another agent system.
|
|
1381
|
+
*/
|
|
1382
|
+
|
|
1383
|
+
declare const REPO_EXPLORER_AGENT_NAME = "repo-explorer";
|
|
1384
|
+
declare const REPO_EXPLORER_TOOL_NAMES: readonly string[];
|
|
1385
|
+
declare function ensureBuiltinRepoExplorerAgent(): Promise<boolean>;
|
|
1386
|
+
|
|
1475
1387
|
/**
|
|
1476
1388
|
* CtxProxy — runtime gate for constructed tool handlers.
|
|
1477
1389
|
*
|
|
@@ -2084,7 +1996,7 @@ interface ExtensionRuntimeDiagnostics {
|
|
|
2084
1996
|
defaults: {
|
|
2085
1997
|
activeTools?: string[];
|
|
2086
1998
|
modelSelection: ExtensionModelSelection;
|
|
2087
|
-
thinkingLevel?:
|
|
1999
|
+
thinkingLevel?: KodaXWireReasoningEffort;
|
|
2088
2000
|
};
|
|
2089
2001
|
}
|
|
2090
2002
|
interface ExtensionCommandInvocation {
|
|
@@ -2119,13 +2031,13 @@ interface ExtensionToolBeforeHookContext {
|
|
|
2119
2031
|
interface ExtensionProviderBeforeHookContext {
|
|
2120
2032
|
provider: string;
|
|
2121
2033
|
model?: string;
|
|
2122
|
-
reasoningMode?:
|
|
2034
|
+
reasoningMode?: KodaXWireReasoningEffort;
|
|
2123
2035
|
systemPrompt: string;
|
|
2124
2036
|
block: (reason: string) => void;
|
|
2125
2037
|
replaceProvider: (provider: string) => void;
|
|
2126
2038
|
replaceModel: (model?: string) => void;
|
|
2127
2039
|
replaceSystemPrompt: (systemPrompt: string) => void;
|
|
2128
|
-
setThinkingLevel: (level:
|
|
2040
|
+
setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
|
|
2129
2041
|
}
|
|
2130
2042
|
interface ExtensionTurnSettleHookContext {
|
|
2131
2043
|
sessionId: string;
|
|
@@ -2135,7 +2047,7 @@ interface ExtensionTurnSettleHookContext {
|
|
|
2135
2047
|
signal?: 'COMPLETE' | 'BLOCKED' | 'DECIDE';
|
|
2136
2048
|
queueUserMessage: (message: string | KodaXMessage) => void;
|
|
2137
2049
|
setModelSelection: (next: ExtensionModelSelection) => void;
|
|
2138
|
-
setThinkingLevel: (level:
|
|
2050
|
+
setThinkingLevel: (level: KodaXWireReasoningEffort) => void;
|
|
2139
2051
|
}
|
|
2140
2052
|
/**
|
|
2141
2053
|
* FEATURE_184 (v0.7.45) — Stop Hook bridge context for extensions.
|
|
@@ -2358,8 +2270,8 @@ interface ExtensionRuntimeController {
|
|
|
2358
2270
|
setActiveTools(toolNames: string[]): void;
|
|
2359
2271
|
getModelSelection(): ExtensionModelSelection;
|
|
2360
2272
|
setModelSelection(next: ExtensionModelSelection): void;
|
|
2361
|
-
getThinkingLevel():
|
|
2362
|
-
setThinkingLevel(level:
|
|
2273
|
+
getThinkingLevel(): KodaXWireReasoningEffort | undefined;
|
|
2274
|
+
setThinkingLevel(level: KodaXWireReasoningEffort): void;
|
|
2363
2275
|
}
|
|
2364
2276
|
interface KodaXExtensionAPI {
|
|
2365
2277
|
registerTool: (definition: LocalToolDefinition) => () => void;
|
|
@@ -2715,11 +2627,38 @@ interface ImpactEstimateResult {
|
|
|
2715
2627
|
capability?: KodaXRepoIntelligenceCapability;
|
|
2716
2628
|
trace?: KodaXRepoIntelligenceTrace;
|
|
2717
2629
|
}
|
|
2630
|
+
|
|
2718
2631
|
declare function renderModuleContext(result: ModuleContextResult): string;
|
|
2719
2632
|
declare function renderSymbolContext(result: SymbolContextResult): string;
|
|
2720
2633
|
declare function renderProcessContext(result: ProcessContextResult): string;
|
|
2721
2634
|
declare function renderImpactEstimate(result: ImpactEstimateResult): string;
|
|
2722
2635
|
|
|
2636
|
+
interface RepoIntelligenceRuntimeInspection {
|
|
2637
|
+
configuredMode: KodaXRepoIntelligenceMode;
|
|
2638
|
+
requestedMode: KodaXRepoIntelligenceResolvedMode;
|
|
2639
|
+
traceEnabled: boolean;
|
|
2640
|
+
effectiveEngine: 'off' | 'light' | 'full';
|
|
2641
|
+
status: 'disabled' | 'ok' | 'limited' | 'unavailable' | 'warming';
|
|
2642
|
+
fallbackToLight: boolean;
|
|
2643
|
+
warnings: string[];
|
|
2644
|
+
error?: string;
|
|
2645
|
+
workerPath?: string;
|
|
2646
|
+
storageRoot?: string;
|
|
2647
|
+
}
|
|
2648
|
+
interface RepoIntelligenceRuntimeConfig {
|
|
2649
|
+
mode: KodaXRepoIntelligenceMode;
|
|
2650
|
+
trace: boolean;
|
|
2651
|
+
warnings: string[];
|
|
2652
|
+
}
|
|
2653
|
+
declare function resolveRepoIntelligenceRuntimeConfig(modeOverride?: KodaXRepoIntelligenceMode, traceOverride?: boolean): RepoIntelligenceRuntimeConfig;
|
|
2654
|
+
declare function resolveRepoIntelligenceMode(modeOverride?: KodaXRepoIntelligenceMode): KodaXRepoIntelligenceResolvedMode;
|
|
2655
|
+
declare function inspectRepoIntelligenceRuntime(options?: {
|
|
2656
|
+
mode?: KodaXRepoIntelligenceMode;
|
|
2657
|
+
trace?: boolean;
|
|
2658
|
+
probe?: boolean;
|
|
2659
|
+
workspaceRoot?: string;
|
|
2660
|
+
}): Promise<RepoIntelligenceRuntimeInspection>;
|
|
2661
|
+
|
|
2723
2662
|
type RepoContext = Pick<KodaXToolExecutionContext, 'executionCwd' | 'gitRoot'>;
|
|
2724
2663
|
declare function buildRepoIntelligenceIndex(context: RepoContext, options?: {
|
|
2725
2664
|
targetPath?: string;
|
|
@@ -2734,6 +2673,7 @@ declare function getModuleContext(context: RepoContext, options?: {
|
|
|
2734
2673
|
targetPath?: string;
|
|
2735
2674
|
refresh?: boolean;
|
|
2736
2675
|
mode?: KodaXRepoIntelligenceMode;
|
|
2676
|
+
maxWaitMs?: number;
|
|
2737
2677
|
}): Promise<ModuleContextResult>;
|
|
2738
2678
|
declare function getSymbolContext(context: RepoContext, options: {
|
|
2739
2679
|
symbol: string;
|
|
@@ -2741,6 +2681,7 @@ declare function getSymbolContext(context: RepoContext, options: {
|
|
|
2741
2681
|
targetPath?: string;
|
|
2742
2682
|
refresh?: boolean;
|
|
2743
2683
|
mode?: KodaXRepoIntelligenceMode;
|
|
2684
|
+
maxWaitMs?: number;
|
|
2744
2685
|
}): Promise<SymbolContextResult>;
|
|
2745
2686
|
declare function getProcessContext(context: RepoContext, options: {
|
|
2746
2687
|
entry?: string;
|
|
@@ -2748,6 +2689,7 @@ declare function getProcessContext(context: RepoContext, options: {
|
|
|
2748
2689
|
targetPath?: string;
|
|
2749
2690
|
refresh?: boolean;
|
|
2750
2691
|
mode?: KodaXRepoIntelligenceMode;
|
|
2692
|
+
maxWaitMs?: number;
|
|
2751
2693
|
}): Promise<ProcessContextResult>;
|
|
2752
2694
|
declare function getImpactEstimate(context: RepoContext, options: {
|
|
2753
2695
|
symbol?: string;
|
|
@@ -2756,6 +2698,7 @@ declare function getImpactEstimate(context: RepoContext, options: {
|
|
|
2756
2698
|
targetPath?: string;
|
|
2757
2699
|
refresh?: boolean;
|
|
2758
2700
|
mode?: KodaXRepoIntelligenceMode;
|
|
2701
|
+
maxWaitMs?: number;
|
|
2759
2702
|
}): Promise<ImpactEstimateResult>;
|
|
2760
2703
|
declare function getRepoRoutingSignals(context: RepoContext, options?: {
|
|
2761
2704
|
targetPath?: string;
|
|
@@ -2763,81 +2706,34 @@ declare function getRepoRoutingSignals(context: RepoContext, options?: {
|
|
|
2763
2706
|
mode?: KodaXRepoIntelligenceMode;
|
|
2764
2707
|
}): Promise<KodaXRepoRoutingSignals>;
|
|
2765
2708
|
/**
|
|
2766
|
-
* v0.7.41 L2
|
|
2709
|
+
* v0.7.41 L2 - best-effort warm both session-level caches (routing signals +
|
|
2767
2710
|
* preturn bundle) for a given workspace. Designed to be called fire-and-forget
|
|
2768
2711
|
* at REPL startup so the first user prompt finds the in-process caches warm.
|
|
2769
2712
|
*
|
|
2770
2713
|
* Why this works (and why M1's `refresh:true` design did NOT):
|
|
2771
|
-
* - Uses `refresh: false`
|
|
2772
|
-
*
|
|
2773
|
-
* -
|
|
2774
|
-
*
|
|
2714
|
+
* - Uses `refresh: false` so the built-in engine can reuse its warm cache.
|
|
2715
|
+
* Total warm preturn work is normally sub-second once the index exists.
|
|
2716
|
+
* - Incremental cache identity keeps state fresh enough for startup prewarm;
|
|
2717
|
+
* we don't force a cold refresh on every REPL startup.
|
|
2775
2718
|
* - If user submits BEFORE prewarm completes, P2 in-flight Promise sharing
|
|
2776
|
-
* coalesces both calls onto the same
|
|
2777
|
-
*
|
|
2719
|
+
* coalesces both calls onto the same full-engine work. The user avoids
|
|
2720
|
+
* paying a second cold refresh.
|
|
2778
2721
|
* - If user submits AFTER prewarm completes, P3+ session cache (60s TTL)
|
|
2779
2722
|
* serves the result in ~0ms.
|
|
2780
2723
|
* - The middleware/first-round path (L1) also uses `refresh:false`, so
|
|
2781
|
-
* prewarm and user-path are cache-coherent
|
|
2724
|
+
* prewarm and user-path are cache-coherent - the user-path call genuinely
|
|
2782
2725
|
* hits the warmed entry instead of being forced to bypass it.
|
|
2783
2726
|
*
|
|
2784
2727
|
* Failure modes:
|
|
2785
|
-
* - All calls `.catch(() => {})`
|
|
2786
|
-
*
|
|
2787
|
-
* - `off` mode short-circuits
|
|
2728
|
+
* - All calls `.catch(() => {})` - prewarm is best-effort. If full mode
|
|
2729
|
+
* fails, the first prompt falls back to light mode as before.
|
|
2730
|
+
* - `off` mode short-circuits - no work at all when repo intelligence
|
|
2788
2731
|
* is disabled.
|
|
2789
2732
|
*/
|
|
2790
2733
|
declare function prewarmRepoIntelligenceCaches(context: RepoContext, options?: {
|
|
2791
2734
|
mode?: KodaXRepoIntelligenceMode;
|
|
2792
2735
|
}): void;
|
|
2793
2736
|
|
|
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
2737
|
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
2738
|
|
|
2843
2739
|
type KodaXPromptSectionSlot = 'base' | 'runtime-context' | 'session-context' | 'capability-truth' | 'base-suffix' | 'mode-overlay' | 'project-rules' | 'skill-addendum' | 'specialist';
|
|
@@ -3094,10 +2990,16 @@ declare function buildProviderPolicyPromptNotes(decision: KodaXProviderPolicyDec
|
|
|
3094
2990
|
declare function evaluateProviderPolicy(options: EvaluateProviderPolicyOptions): KodaXProviderPolicyDecision;
|
|
3095
2991
|
|
|
3096
2992
|
interface ReasoningPlan {
|
|
3097
|
-
|
|
3098
|
-
|
|
2993
|
+
/**
|
|
2994
|
+
* Canonical per-turn reasoning control. Reasoning single-tracking (Phase B)
|
|
2995
|
+
* replaced the V1 `mode` (KodaXReasoningMode) + `depth` (KodaXThinkingDepth)
|
|
2996
|
+
* pair with a single `effort`. `'auto'` defers to the provider's
|
|
2997
|
+
* capability-aware default; `'none'` disables thinking. Providers resolve
|
|
2998
|
+
* the effective effort + any thinking budget from this value via
|
|
2999
|
+
* `resolveReasoningEffort` / `normalizeReasoningRequest`.
|
|
3000
|
+
*/
|
|
3001
|
+
effort: KodaXWireReasoningEffort;
|
|
3099
3002
|
decision: KodaXTaskRoutingDecision;
|
|
3100
|
-
amaControllerDecision: KodaXAmaControllerDecision;
|
|
3101
3003
|
promptOverlay: string;
|
|
3102
3004
|
providerPolicy?: KodaXProviderPolicyDecision;
|
|
3103
3005
|
}
|
|
@@ -3128,8 +3030,6 @@ declare function reasoningModeToDepth(mode: KodaXReasoningMode): KodaXThinkingDe
|
|
|
3128
3030
|
declare function inferTaskType(prompt: string): KodaXTaskType;
|
|
3129
3031
|
declare function buildFallbackRoutingDecision(prompt: string, providerPolicy?: KodaXProviderPolicyDecision, routingEvidence?: RoutingEvidenceInput): KodaXTaskRoutingDecision;
|
|
3130
3032
|
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
3033
|
declare function createReasoningPlan(options: KodaXOptions, prompt: string, provider: KodaXBaseProvider, routingEvidence?: RoutingEvidenceInput): Promise<ReasoningPlan>;
|
|
3134
3034
|
|
|
3135
3035
|
/**
|
|
@@ -3652,15 +3552,6 @@ declare class KodaXClient {
|
|
|
3652
3552
|
clear(): void;
|
|
3653
3553
|
}
|
|
3654
3554
|
|
|
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
3555
|
/**
|
|
3665
3556
|
* Protocol emitter tools.
|
|
3666
3557
|
*
|
|
@@ -4573,24 +4464,32 @@ declare function checkAbsoluteDeny(call: RunnerToolCall, projectRoot: string): A
|
|
|
4573
4464
|
* Races an in-flight classifier promise against a short "quiet window".
|
|
4574
4465
|
* When the classifier returns within the window, callers can use the
|
|
4575
4466
|
* decision immediately — no confirm dialog, no perceptible latency. When
|
|
4576
|
-
* the window expires first,
|
|
4577
|
-
*
|
|
4578
|
-
*
|
|
4467
|
+
* the window expires first, the caller (the auto-mode guardrail) awaits the
|
|
4468
|
+
* SAME promise and adopts whatever verdict arrives — see Issue 143 (WS1).
|
|
4469
|
+
* The window therefore only controls "resolve instantly vs wait a little
|
|
4470
|
+
* longer"; it never decides "escalate vs not". An `allow` verdict never
|
|
4471
|
+
* surfaces a confirm dialog no matter how slow the classifier is.
|
|
4579
4472
|
*
|
|
4580
|
-
* Design ref: ADR-025 + FEATURE_158 (docs/features/v0.7.39.md)
|
|
4473
|
+
* Design ref: ADR-025 + FEATURE_158 (docs/features/v0.7.39.md);
|
|
4474
|
+
* late-verdict adoption: Issue 143 (docs/KNOWN_ISSUES.md).
|
|
4581
4475
|
*
|
|
4582
4476
|
* **The promise is NOT aborted on window expiry.** The caller retains
|
|
4583
4477
|
* ownership; they pass the same `Promise<T>` to `speculativeRace` and
|
|
4584
|
-
*
|
|
4585
|
-
*
|
|
4586
|
-
*
|
|
4478
|
+
* then `await` it to adopt the late verdict. Cancelling mid-flight would
|
|
4479
|
+
* waste tokens already spent AND throw away the verdict the caller is
|
|
4480
|
+
* about to use.
|
|
4481
|
+
*
|
|
4482
|
+
* Callers may also force `windowMs = 0` to disable the race entirely when no
|
|
4483
|
+
* interactive surface is present (Issue 143 WS2 — the guardrail does this for
|
|
4484
|
+
* SDK / non-interactive / child-agent contexts, where there is no human to
|
|
4485
|
+
* spare from latency, so it just awaits the verdict directly).
|
|
4587
4486
|
*
|
|
4588
4487
|
* Env knob: `KODAX_AUTO_SPECULATIVE_WINDOW_MS`
|
|
4589
|
-
* - default: 500
|
|
4590
|
-
*
|
|
4591
|
-
*
|
|
4592
|
-
* - `0` : disabled — `speculativeRace` waits
|
|
4593
|
-
* (
|
|
4488
|
+
* - default: 500 — the threshold past which a slow classify waits for its
|
|
4489
|
+
* real verdict instead of resolving instantly. See WS4 micro-bench in
|
|
4490
|
+
* docs/features/v0.7.39.md for the measured p50/p95 this is set against.
|
|
4491
|
+
* - `0` : disabled — `speculativeRace` waits for the promise
|
|
4492
|
+
* (synchronous classify; identical verdict outcome to a non-zero window)
|
|
4594
4493
|
* - negative: treated as `0` (disabled)
|
|
4595
4494
|
* - non-numeric: ignored, default used
|
|
4596
4495
|
*/
|
|
@@ -4908,6 +4807,13 @@ interface SidecarVerifierContextInputs {
|
|
|
4908
4807
|
}[];
|
|
4909
4808
|
/** The exact text the Main Agent emitted as its final answer. */
|
|
4910
4809
|
readonly lastAssistantText: string;
|
|
4810
|
+
/**
|
|
4811
|
+
* FEATURE_247 (R3) — rendered profile/task verification criteria appended to
|
|
4812
|
+
* the verifier user message. Present only when a profile-default or per-task
|
|
4813
|
+
* verification standard was supplied, so the default coding verifier prompt is
|
|
4814
|
+
* byte-identical.
|
|
4815
|
+
*/
|
|
4816
|
+
readonly additionalCriteria?: string;
|
|
4911
4817
|
}
|
|
4912
4818
|
interface SidecarVerifierInvokeOptions {
|
|
4913
4819
|
/** Provider used for the verifier call. Often a stronger model than
|
|
@@ -5027,6 +4933,21 @@ declare function resolveKodaXManual(input: ResolveKodaXManualInput, options?: Re
|
|
|
5027
4933
|
|
|
5028
4934
|
/** Canonical topic order (also the index ordering). */
|
|
5029
4935
|
declare const MANUAL_TOPIC_IDS: readonly KodaXManualTopicId[];
|
|
4936
|
+
/**
|
|
4937
|
+
* FEATURE_221 — the base topics that describe UNDERLYING KodaX MECHANISMS a
|
|
4938
|
+
* product built on the SDK inherits (provider/config/permission/tool/MCP/
|
|
4939
|
+
* skill/extension/session/repo-intel/SDK behavior). A white-label consumer who
|
|
4940
|
+
* fully replaces the manual (`selfManual.baseTopics = []`) can pass THIS list
|
|
4941
|
+
* instead to keep the agent able to accurately explain the mechanisms it stands
|
|
4942
|
+
* on — e.g. `selfManual.baseTopics = [...KODAX_UNDERLYING_CAPABILITY_TOPICS]`.
|
|
4943
|
+
*
|
|
4944
|
+
* Excluded from this set (KodaX-CLI-specific UX, not mechanisms a product
|
|
4945
|
+
* inherits): overview / install / quickstart / commands / agents / doctor /
|
|
4946
|
+
* troubleshooting. It is a recommended STARTING POINT — a consumer is free to
|
|
4947
|
+
* pass any explicit subset of `MANUAL_TOPIC_IDS`.
|
|
4948
|
+
*/
|
|
4949
|
+
declare const KODAX_UNDERLYING_CAPABILITY_TOPICS: readonly KodaXManualTopicId[];
|
|
4950
|
+
declare const MANUAL_REGISTRY: Readonly<Record<KodaXManualTopicId, KodaXManualTopic>>;
|
|
5030
4951
|
|
|
5031
4952
|
/**
|
|
5032
4953
|
* FEATURE_218 — the single short prompt rule that routes product questions to
|
|
@@ -5039,6 +4960,34 @@ declare function buildSelfKnowledgeRoutingRule(productName?: string): string;
|
|
|
5039
4960
|
/** Default KodaX routing rule (backward-compatible const). */
|
|
5040
4961
|
declare const SELF_KNOWLEDGE_ROUTING_RULE: string;
|
|
5041
4962
|
|
|
4963
|
+
/**
|
|
4964
|
+
* FEATURE_218 / FEATURE_221 — the `kodax_manual` tool DESCRIPTION the model
|
|
4965
|
+
* reads (deciding when to call the tool), built from a product name so an SDK
|
|
4966
|
+
* consumer can white-label it. Sibling to `buildSelfKnowledgeRoutingRule` in
|
|
4967
|
+
* routing-rule.ts.
|
|
4968
|
+
*
|
|
4969
|
+
* `buildManualToolDescription()` (default 'KodaX') is the single source of truth
|
|
4970
|
+
* for the built-in tool description — `BUILTIN_TOOL_DEFINITIONS` uses it, so the
|
|
4971
|
+
* default output is byte-identical to the prior literal (pinned by a test). The
|
|
4972
|
+
* KodaX-specific config-path clause (`~/.kodax/config.json` + `KODAX_*`) is
|
|
4973
|
+
* gated on `productName === 'KodaX'`, matching `scopeAnchor`'s existing rule, so
|
|
4974
|
+
* a re-branded product does not leak KodaX config paths into the model's tool
|
|
4975
|
+
* surface.
|
|
4976
|
+
*/
|
|
4977
|
+
declare function buildManualToolDescription(productName?: string): string;
|
|
4978
|
+
/**
|
|
4979
|
+
* Re-brand the `kodax_manual` tool description with the consumer's product name
|
|
4980
|
+
* when building the model-visible tool list. Returns the def unchanged for any
|
|
4981
|
+
* other tool, or when no (or the default 'KodaX') product name is set — so the
|
|
4982
|
+
* default Coding Agent tool surface is byte-identical. Generic over the def
|
|
4983
|
+
* shape so both the SA (`getActiveToolDefinitions`) and AMA
|
|
4984
|
+
* (`buildAgentToolsFromRegistry`) assembly paths can share it.
|
|
4985
|
+
*/
|
|
4986
|
+
declare function withManualToolBranding<T extends {
|
|
4987
|
+
readonly name: string;
|
|
4988
|
+
readonly description: string;
|
|
4989
|
+
}>(def: T, productName?: string): T;
|
|
4990
|
+
|
|
5042
4991
|
/**
|
|
5043
4992
|
* Resolve the LSP languageId for a file path, or `undefined` when KodaX
|
|
5044
4993
|
* has no language mapping for its extension. Case-insensitive on the
|
|
@@ -5083,7 +5032,7 @@ interface ChildExecutorOptions {
|
|
|
5083
5032
|
readonly maxParallel: number;
|
|
5084
5033
|
readonly maxIterationsPerChild: number;
|
|
5085
5034
|
readonly abortSignal?: AbortSignal;
|
|
5086
|
-
readonly parentOptions: Readonly<Partial<Pick<KodaXOptions, 'provider' | 'model' | 'reasoningMode' | 'extensionRuntime' | 'events'>>>;
|
|
5035
|
+
readonly parentOptions: Readonly<Partial<Pick<KodaXOptions, 'provider' | 'model' | 'effort' | 'reasoningMode' | 'extensionRuntime' | 'events'> & Pick<KodaXContextOptions, 'repoIntelligenceMode' | 'repoIntelligenceTrace'>>>;
|
|
5087
5036
|
readonly parentRole: string;
|
|
5088
5037
|
readonly parentHarness: string;
|
|
5089
5038
|
/**
|
|
@@ -5217,6 +5166,21 @@ interface ParallelInvestigationResult {
|
|
|
5217
5166
|
}
|
|
5218
5167
|
declare const parallelInvestigation: WorkflowModule<ParallelInvestigationArgs, ParallelInvestigationResult>;
|
|
5219
5168
|
|
|
5169
|
+
/**
|
|
5170
|
+
* FEATURE_217 / FEATURE_246 — built-in workflow registry.
|
|
5171
|
+
*
|
|
5172
|
+
* A leaf module (imports only built-in workflow modules) so both the workflows
|
|
5173
|
+
* barrel and the nested-`workflow()` resolver can read the registry without the
|
|
5174
|
+
* `index.ts → workflow-runner.ts → index.ts` re-export cycle.
|
|
5175
|
+
*/
|
|
5176
|
+
|
|
5177
|
+
/** All built-in workflows shipped with KodaX. */
|
|
5178
|
+
declare const BUILTIN_WORKFLOWS: readonly WorkflowModule[];
|
|
5179
|
+
/** Resolve a built-in workflow by its declared `meta.name`. */
|
|
5180
|
+
declare function getBuiltinWorkflow(name: string): WorkflowModule | undefined;
|
|
5181
|
+
/** List built-in workflow metadata (for `/workflow` listing). */
|
|
5182
|
+
declare function listBuiltinWorkflows(): readonly WorkflowModule['meta'][];
|
|
5183
|
+
|
|
5220
5184
|
/**
|
|
5221
5185
|
* FEATURE_217 (v0.7.49) Phase D — Durable workflow run graph.
|
|
5222
5186
|
*
|
|
@@ -5289,7 +5253,6 @@ interface WorktreeSweepDeps {
|
|
|
5289
5253
|
|
|
5290
5254
|
declare const SYSTEM_WORKFLOW_LIMITS: {
|
|
5291
5255
|
readonly maxAgents: 64;
|
|
5292
|
-
readonly maxConcurrency: 16;
|
|
5293
5256
|
readonly tokenBudget: 200000;
|
|
5294
5257
|
};
|
|
5295
5258
|
interface RunWorkflowModuleOptions {
|
|
@@ -5315,6 +5278,10 @@ interface RunWorkflowModuleOptions {
|
|
|
5315
5278
|
readonly onWorkflowProcessEvent?: (event: WorkflowProcessEvent) => void;
|
|
5316
5279
|
readonly now?: () => number;
|
|
5317
5280
|
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5281
|
+
/** FEATURE_246 Part D (ADR-048): a prior run dir to seed the result cache from
|
|
5282
|
+
* for same-session resume. Unchanged effects replay from it; only changed
|
|
5283
|
+
* effects re-run live. */
|
|
5284
|
+
readonly resumeFromRunDir?: string;
|
|
5318
5285
|
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5319
5286
|
/** Optional lifecycle gate, used by WorkflowRunManager pause/resume. */
|
|
5320
5287
|
readonly beforeSpawn?: () => Promise<void>;
|
|
@@ -5356,9 +5323,18 @@ interface RunWorkflowFromOptionsInput {
|
|
|
5356
5323
|
readonly onWorkflowProcessEvent?: (event: WorkflowProcessEvent) => void;
|
|
5357
5324
|
readonly now?: () => number;
|
|
5358
5325
|
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5326
|
+
/** FEATURE_246 Part D (ADR-048): prior run dir to seed the resume cache. */
|
|
5327
|
+
readonly resumeFromRunDir?: string;
|
|
5359
5328
|
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5360
5329
|
readonly beforeSpawn?: () => Promise<void>;
|
|
5361
5330
|
}
|
|
5331
|
+
/**
|
|
5332
|
+
* ADR-049: forward a single workflow child-agent terminal/summary event to the
|
|
5333
|
+
* REPL's per-agent digest hook. Coarse gate here (the four summary event types);
|
|
5334
|
+
* the REPL's `formatWorkflowAgentDigest` does the fine filtering (status, pending
|
|
5335
|
+
* summaries) so inline and slash `/workflow` digests stay identical.
|
|
5336
|
+
*/
|
|
5337
|
+
declare function emitWorkflowAgentDigest(events: KodaXEvents | undefined, runId: string, event: WorkflowEvent): void;
|
|
5362
5338
|
/**
|
|
5363
5339
|
* High-level entry: build a tool-execution context + child options from
|
|
5364
5340
|
* `KodaXOptions` (provider / model / extensionRuntime) and run the
|
|
@@ -5485,18 +5461,22 @@ declare function loadGeneratedWorkflowFromRun(input: LoadGeneratedWorkflowFromRu
|
|
|
5485
5461
|
declare function saveGeneratedWorkflowFromRun(input: SaveGeneratedWorkflowFromRunInput): Promise<SavedWorkflowRef>;
|
|
5486
5462
|
declare function preflightWorkflowCapsule(capsule: WorkflowCapsule, env?: WorkflowCapsulePreflightEnvironment): WorkflowCapsulePreflightResult;
|
|
5487
5463
|
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5464
|
+
/**
|
|
5465
|
+
* FEATURE_246 Part A0b (ADR-046) — coding adapter over the neutral agent-layer
|
|
5466
|
+
* workflow run manager.
|
|
5467
|
+
*
|
|
5468
|
+
* The lifecycle core (registry / pause / resume / stop / process tracking /
|
|
5469
|
+
* settle) now lives in `@kodax-ai/agent` (`createWorkflowRunManager`). This
|
|
5470
|
+
* adapter preserves the coding-facing API (`start` / `startFromOptions` driven
|
|
5471
|
+
* by `RunWorkflowModuleOptions` / `KodaXOptions` + durable run dirs) by building
|
|
5472
|
+
* the agent manager's injected `runFn` from `runWorkflowModule` /
|
|
5473
|
+
* `runWorkflowFromOptions`, and augments the neutral snapshot with the
|
|
5474
|
+
* coding-specific `runDir`. Dependency arrows point coding → agent only.
|
|
5475
|
+
*/
|
|
5476
|
+
|
|
5477
|
+
/** Coding snapshot = the neutral agent snapshot plus the durable run dir. */
|
|
5478
|
+
interface ManagedWorkflowSnapshot extends ManagedWorkflowSnapshot$1 {
|
|
5493
5479
|
readonly runDir: string;
|
|
5494
|
-
readonly totalSpawned: number;
|
|
5495
|
-
readonly eventCount: number;
|
|
5496
|
-
readonly startedAt: number;
|
|
5497
|
-
readonly endedAt?: number;
|
|
5498
|
-
readonly error?: string;
|
|
5499
|
-
readonly resultText?: string;
|
|
5500
5480
|
}
|
|
5501
5481
|
interface ManagedWorkflowRun {
|
|
5502
5482
|
readonly runId: string;
|
|
@@ -5521,7 +5501,7 @@ interface WorkflowRunManager {
|
|
|
5521
5501
|
}
|
|
5522
5502
|
declare function createWorkflowRunManager(deps?: {
|
|
5523
5503
|
readonly now?: () => number;
|
|
5524
|
-
}): WorkflowRunManager;
|
|
5504
|
+
}, agent?: WorkflowRunManager$1): WorkflowRunManager;
|
|
5525
5505
|
declare function getDefaultWorkflowRunManager(): WorkflowRunManager;
|
|
5526
5506
|
|
|
5527
5507
|
type WorkflowIdentityResolution = {
|
|
@@ -5629,6 +5609,8 @@ interface GenerateWorkflowFromOptionsInput {
|
|
|
5629
5609
|
readonly request: string;
|
|
5630
5610
|
readonly options: KodaXOptions;
|
|
5631
5611
|
readonly skillContext?: string;
|
|
5612
|
+
readonly timeoutSec?: number;
|
|
5613
|
+
/** @deprecated Prefer timeoutSec for public SDK calls. */
|
|
5632
5614
|
readonly timeoutMs?: number;
|
|
5633
5615
|
readonly signal?: AbortSignal;
|
|
5634
5616
|
}
|
|
@@ -5647,7 +5629,7 @@ type WorkflowGenerationResult = {
|
|
|
5647
5629
|
} | ({
|
|
5648
5630
|
readonly kind: 'generated';
|
|
5649
5631
|
} & GeneratedWorkflow);
|
|
5650
|
-
declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv): number;
|
|
5632
|
+
declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv, timeouts?: KodaXTimeoutConfig): number;
|
|
5651
5633
|
declare function validateGeneratedWorkflowSource(source: string): string;
|
|
5652
5634
|
declare function buildWorkflowGenerationUserPrompt(request: string, skillContext?: string): string;
|
|
5653
5635
|
declare function buildWorkflowGenerationSkillContext(request: string, options: Pick<KodaXOptions, 'context'>): Promise<string | undefined>;
|
|
@@ -5678,19 +5660,67 @@ declare function getWorkflowPatternTemplate(name: string): WorkflowPatternTempla
|
|
|
5678
5660
|
declare function createWorkflowPatternTemplateModule(name: string): WorkflowModule;
|
|
5679
5661
|
|
|
5680
5662
|
/**
|
|
5681
|
-
*
|
|
5663
|
+
* FEATURE_246 Part A1 (ADR-046) — the coding WorkflowHost entrypoint.
|
|
5682
5664
|
*
|
|
5683
|
-
*
|
|
5684
|
-
*
|
|
5685
|
-
*
|
|
5665
|
+
* `startManagedWorkflow` is the single capability both the REPL `/workflow`
|
|
5666
|
+
* command / AMAW intercept AND the model-callable `run_workflow` tool call. It
|
|
5667
|
+
* resolves a workflow module from one of three sources (inline `{manifest,
|
|
5668
|
+
* source}` written by the Worker, a saved module, or a natural-language request
|
|
5669
|
+
* routed through the generator), mints the run id + durable run dir, and starts
|
|
5670
|
+
* it on the (agent-layer) run manager. UI — approval rendering, progress, final
|
|
5671
|
+
* messages — stays in the REPL, which passes an `approval` callback + `onEvent`
|
|
5672
|
+
* sink. This removes the start-glue that previously lived in the REPL
|
|
5673
|
+
* (`startGeneratedWorkflowFromRequest`).
|
|
5686
5674
|
*/
|
|
5687
5675
|
|
|
5688
|
-
/**
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5676
|
+
/** Where the workflow script comes from. */
|
|
5677
|
+
type ManagedWorkflowSource = {
|
|
5678
|
+
readonly kind: 'inline';
|
|
5679
|
+
readonly manifest: unknown;
|
|
5680
|
+
readonly source: string;
|
|
5681
|
+
} | {
|
|
5682
|
+
readonly kind: 'saved';
|
|
5683
|
+
readonly module: WorkflowModule;
|
|
5684
|
+
} | {
|
|
5685
|
+
readonly kind: 'request';
|
|
5686
|
+
readonly request: string;
|
|
5687
|
+
};
|
|
5688
|
+
interface StartManagedWorkflowInput {
|
|
5689
|
+
readonly source: ManagedWorkflowSource;
|
|
5690
|
+
readonly args: unknown;
|
|
5691
|
+
readonly options: KodaXOptions;
|
|
5692
|
+
/** Durable run-graph base dir (one run dir per run id is created under it). */
|
|
5693
|
+
readonly runsBaseDir: string;
|
|
5694
|
+
/** Override the minted run id (tests / explicit rerun ids). */
|
|
5695
|
+
readonly runId?: string;
|
|
5696
|
+
/** FEATURE_246 Part D (ADR-048): a prior run dir to seed the result cache from
|
|
5697
|
+
* (same-session resume). Unchanged effects replay; only changed ones re-run. */
|
|
5698
|
+
readonly resumeFromRunDir?: string;
|
|
5699
|
+
/** Defaults to the shared coding singleton (which wraps the agent default). */
|
|
5700
|
+
readonly manager?: WorkflowRunManager;
|
|
5701
|
+
/** Pre-run approval gate; when omitted the run auto-proceeds (headless). */
|
|
5702
|
+
readonly approval?: WorkflowApproval;
|
|
5703
|
+
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5704
|
+
readonly onEvent?: (event: WorkflowEvent) => void;
|
|
5705
|
+
readonly signal?: AbortSignal;
|
|
5706
|
+
/** Test seam: override the NL→workflow generator. */
|
|
5707
|
+
readonly generateWorkflow?: typeof generateWorkflowFromOptions;
|
|
5708
|
+
/** Test seam: clock for the minted run id. */
|
|
5709
|
+
readonly now?: () => number;
|
|
5710
|
+
}
|
|
5711
|
+
type StartManagedWorkflowResult = {
|
|
5712
|
+
readonly kind: 'declined';
|
|
5713
|
+
readonly reason: string;
|
|
5714
|
+
} | {
|
|
5715
|
+
readonly kind: 'started';
|
|
5716
|
+
readonly runId: string;
|
|
5717
|
+
readonly runDir: string;
|
|
5718
|
+
readonly module: WorkflowModule;
|
|
5719
|
+
readonly managed: ManagedWorkflowRun;
|
|
5720
|
+
readonly approvalSummary: WorkflowApprovalSummary;
|
|
5721
|
+
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5722
|
+
};
|
|
5723
|
+
declare function startManagedWorkflow(input: StartManagedWorkflowInput): Promise<StartManagedWorkflowResult>;
|
|
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,
|
|
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,
|
|
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, KODAX_TOOLS, KODAX_UNDERLYING_CAPABILITY_TOPICS, KodaXBaseProvider, KodaXChildContextBundle, KodaXClient, KodaXContentBlock, KodaXContextOptions, KodaXEvents, KodaXExecutionMode, KodaXExtensionRuntime, KodaXExtensionSessionRecord, KodaXInputArtifact, KodaXJsonValue, KodaXManualTopic, KodaXManualTopicId, 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, KodaXWireReasoningEffort, MANUAL_REGISTRY, MANUAL_TOPIC_IDS, McpCapabilityProvider, McpProviderOptions, McpReverseCapabilities, McpRoot, McpServersConfig, 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, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, ToolCallSignal, ToolSideEffect, 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, buildManualToolDescription, 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, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, defaultPolicy, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, drainPendingSwaps, emitVerdict, emitWorkflowAgentDigest, ensureBuiltinRepoExplorerAgent, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, exec, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getImpactEstimate, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, hasPendingSwap, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolNetworkRead, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, list as listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadSavedWorkflow, loadSavedWorkflowCapsule, mcpRootsFromWorkspace, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseWorkflowGeneration, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, readArtifact, readAuditEntries, readBudget, 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, startManagedWorkflow, 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, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, webhook, withManualToolBranding, 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, 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, ManagedWorkflowSource, 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, 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, StartManagedWorkflowInput, StartManagedWorkflowResult, StripOptions, SymbolContextResult, TestArtifactOptions, TestResult, TierZeroPatternId, ToolContent, ToolDefinitionSource, ToolHandler, ToolRegistrationOptions, ToolRegistry, VerifyGoalCompletionOptions, WebhookOptions, WebhookResult, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef };
|