@kodax-ai/kodax 0.7.57 → 0.7.59
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 +2032 -1920
- package/README.md +1228 -1219
- package/README_CN.md +647 -638
- package/dist/chunks/agent-QQCRBU4C.js +2 -0
- package/dist/chunks/argument-completer-7Q2T4YWA.js +2 -0
- package/dist/chunks/{chunk-LZKGOR2C.js → chunk-2UUOFT3Z.js} +1 -1
- package/dist/chunks/chunk-5GPJ6MB5.js +405 -0
- package/dist/chunks/chunk-BEXLPFFB.js +7 -0
- package/dist/chunks/chunk-D6QVXQNI.js +1 -0
- package/dist/chunks/chunk-D7RENPQQ.js +322 -0
- package/dist/chunks/chunk-PRIBJN5E.js +683 -0
- package/dist/chunks/chunk-S4GVQO3W.js +31 -0
- package/dist/chunks/chunk-SDSLWDAZ.js +17 -0
- package/dist/chunks/chunk-SVEJFERZ.js +326 -0
- package/dist/chunks/chunk-TBXP7FEG.js +52 -0
- package/dist/chunks/chunk-UA744TZM.js +2 -0
- package/dist/chunks/{chunk-YSVPF6SN.js → chunk-UXQILGRX.js} +262 -259
- package/dist/chunks/{chunk-4SHP3M67.js → chunk-YADBB5GN.js} +1 -1
- package/dist/chunks/chunk-Z23LK3IV.js +310 -0
- package/dist/chunks/chunk-Z3ZXV3DZ.js +18 -0
- package/dist/chunks/compaction-config-GQIPCVFD.js +2 -0
- package/dist/chunks/{construction-bootstrap-55B7Q5RX.js → construction-bootstrap-YON4ZEMO.js} +1 -1
- package/dist/chunks/dist-73L4OYPD.js +2 -0
- package/dist/chunks/dist-EZXBR6NW.js +2 -0
- package/dist/chunks/host-LO6ZNTMV.js +2 -0
- package/dist/chunks/paste-4THGP5XW.js +2 -0
- package/dist/chunks/run-manager-HTLXKU66.js +2 -0
- package/dist/chunks/utils-5XVW33SY.js +2 -0
- package/dist/index.d.ts +15 -14
- package/dist/index.js +2 -2
- package/dist/kodax_cli.js +1222 -1047
- package/dist/provider-capabilities.json +971 -986
- package/dist/sdk-agent.d.ts +156 -14
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +253 -188
- 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.js +1 -1
- package/dist/sdk-media.d.ts +18 -2
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +21 -22
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-session.d.ts +8 -7
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +4 -231
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{base.d-BnjQrSVf.d.ts → base.d-BA9Doaj_.d.ts} +3 -3
- package/dist/types-chunks/{bash-prefix-extractor.d-BgvMbfq6.d.ts → bash-prefix-extractor.d-BNdpV4Cf.d.ts} +515 -69
- 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-C1DhxnvC.d.ts → guardrail.d-CNdKuSD_.d.ts} +4 -4
- package/dist/types-chunks/{process.d-BZncyzEj.d.ts → process.d-BOrAxjvM.d.ts} +188 -15
- package/dist/types-chunks/{resolver.d-ZvKQgl0X.d.ts → resolver.d-DFAKKUvt.d.ts} +87 -4
- package/dist/types-chunks/{capsule.d-DwJp5r63.d.ts → run-manager.d-CsJC9zYf.d.ts} +113 -5
- package/dist/types-chunks/{sdk-session-DAScB0rW.d.ts → sdk-session-ByZlwgdM.d.ts} +83 -9
- package/dist/types-chunks/{storage.d-CPvn9qI0.d.ts → storage.d-DHL3XpAL.d.ts} +2 -2
- package/dist/types-chunks/{guardrail.d-BP3yyr6u.d.ts → types.d-CE_Ter29.d.ts} +125 -3
- package/dist/types-chunks/{types.d-6VOXvF88.d.ts → types.d-Ci5YPFEh.d.ts} +39 -5
- package/dist/types-chunks/types.d-vJExiRje.d.ts +232 -0
- package/dist/types-chunks/{utils.d-CpgVIjYZ.d.ts → utils.d-D9FHU4wB.d.ts} +84 -6
- package/package.json +2 -2
- package/dist/chunks/agent-EHWQZA4C.js +0 -2
- package/dist/chunks/argument-completer-AYDAYGKL.js +0 -2
- package/dist/chunks/chunk-3WWPJGPQ.js +0 -2
- package/dist/chunks/chunk-KN6IJMTB.js +0 -636
- package/dist/chunks/chunk-MJFPFRGK.js +0 -423
- package/dist/chunks/chunk-N2N2W3AQ.js +0 -584
- package/dist/chunks/chunk-PCPFLPS4.js +0 -5
- package/dist/chunks/chunk-TCLSPUTR.js +0 -31
- package/dist/chunks/chunk-VACH6QWN.js +0 -315
- package/dist/chunks/compaction-config-TLDMFMZO.js +0 -2
- package/dist/chunks/dist-IE4HVWP7.js +0 -2
- package/dist/chunks/dist-IKOK2MJQ.js +0 -2
- package/dist/chunks/paste-WTL2XN7P.js +0 -2
- package/dist/chunks/utils-EJ2VCRTC.js +0 -2
- package/dist/types-chunks/types.d-D8WcfrOD.d.ts +0 -143
package/dist/sdk-coding.d.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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,
|
|
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, R as ResolveWireEffortInput, o as ResolvedWireEffort, q as clearRuntimeModelProviders, r as createCustomProvider, s as effortToLegacyReasoningMode, t as getAvailableProviderNames, u as getCustomModelCapabilities, v as getCustomProvider, w as getCustomProviderList, x as getCustomProviderModelDescriptors, y as getCustomProviderModels, z as getCustomProviderNames, B as getModelCapabilities, C as getProvider, D as getProviderConfiguredCapabilityProfile, E as getProviderConfiguredReasoningCapability, F as getProviderList, G as getProviderModel, H as getProviderModelDescriptors, I as getProviderModels, L as getRuntimeModelProvider, M as getRuntimeModelProviderNames, N as isCustomProviderName, O as isKnownProvider, Q as isProviderConfigured, S as isProviderName, U as isRuntimeModelProviderName, V as listAllModelCapabilities, W as listBuiltinModelCapabilities, X as listCustomProviderModelCapabilities, _ as mapLegacyReasoningModeToEffortIntent, $ as normalizeReasoningEffortValue, a1 as parseReasoningEffortEnv, a2 as registerCustomProviders, a3 as registerModelProvider, a4 as resolveModelCapabilities, a5 as resolveProvider, a6 as resolveProviderModelDescriptors, a7 as resolveReasoningEffort, a8 as resolveReasoningEffortForModelSwitch, aa as resolveWireEffort, ab as validateCustomProviderConfig } from './types-chunks/resolver.d-DFAKKUvt.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
|
-
import {
|
|
10
|
-
export {
|
|
11
|
-
import {
|
|
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,
|
|
8
|
+
import { ao as KodaXToolExecutionContext, aR 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, aC as ProviderResilienceConfig, aD as ProviderResiliencePolicy, F as FailureStage, aI as ResilienceClassification, aA as ProviderExecutionState, aF as RecoveryDecision, aH as RecoveryResult, Z as KodaXResult, a1 as KodaXSessionControl, a2 as KodaXSessionMutators, z as KodaXManagedProtocolPayload, E as ExtensionRuntimeContract, aN as RuntimeDefaultsSnapshot, c as BoundExtensionRuntimeController, x as KodaXEvents, g as GoalCompleteResult, aK as ResolveKodaXManualInput, aL as ResolveKodaXManualOptions, aM as ResolveKodaXManualResult, M as KodaXManualTopicId, L as KodaXManualTopic, d as ChildSnapshotEvent, r as KodaXChildContextBundle, s as KodaXChildExecutionResult, aS as WorkflowHostPolicy, am as KodaXTimeoutConfig } from './types-chunks/bash-prefix-extractor.d-BNdpV4Cf.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 KodaXSkillDynamicContextPolicy, a6 as KodaXSkillInvocationContext, a7 as KodaXSkillMap, a8 as KodaXSkillProjectionConfidence, a9 as KodaXTaskCapabilityHint, aa as KodaXTaskContract, ab as KodaXTaskEvidenceArtifact, ac as KodaXTaskEvidenceBundle, ad as KodaXTaskEvidenceEntry, ae as KodaXTaskRole, af as KodaXTaskRoleAssignment, ag as KodaXTaskStatus, ah as KodaXTaskSurface, ai as KodaXTaskToolPolicy, aj as KodaXTaskVerificationContract, ak as KodaXTaskVerificationCriterion, al as KodaXTaskWorkItem, an as KodaXToolEventMeta, ap as KodaXToolVisibilityMeta, aq as KodaXToolVisibilityPolicy, ar as KodaXVerificationScorecard, as as KodaXVerificationScorecardCriterion, at as KodaXWorkflowAgentDigestEvent, 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, aT as WorkflowInvocationAction, aU as WorkflowInvocationPolicyDecision, aV as WorkflowInvocationPolicyInput, aW as WorkflowInvocationSource, aX as WorkflowRunProgressView, aY as WorkflowStartOutcome, aZ as WorkflowToolHost, a_ as WorkflowToolHostInlineInput, a$ as WorkflowToolHostResult, b0 as WorkflowToolHostStartResult, b1 as buildGoalRuntimeBinding, b2 as createBashPrefixExtractor, b3 as decideWorkflowInvocation, b4 as extractCommandPrefix, b5 as getDefaultLspService, b6 as makeDisabledGoalToolsContext, b7 as providerResilienceConfigFromTimeouts, b8 as shutdownDefaultLspService, b9 as withGoalBeforeNextTurn, ba as withGoalStopHook, bb as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-BNdpV4Cf.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, c0 as WorkflowTaskSummaryEventUpdate, bm as WorkflowAgentBackend, bB as WorkflowModule, bR as WorkflowProcessTrackerOptions, bs as WorkflowEvent, bq as WorkflowArtifactRef, bz as WorkflowMeta, bT as WorkflowRunState, bo as WorkflowApproval, bF as WorkflowProcessEvent, bp as WorkflowApprovalSummary, bx as WorkflowLimits, bL as WorkflowProcessSnapshot } from './types-chunks/process.d-BOrAxjvM.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, cd as createAgent, ce as createHandoff, cf as createInMemorySession, cw as registerPresetDispatcher } from './types-chunks/process.d-BOrAxjvM.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-CsJC9zYf.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-CsJC9zYf.js';
|
|
13
15
|
import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
14
16
|
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
15
17
|
import { k as McpProviderOptions, c as McpCapabilityProvider, l as McpReverseCapabilities, m as McpRoot } from './types-chunks/manager.d-DBD7SOTT.js';
|
|
16
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';
|
|
17
|
-
import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-
|
|
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-
|
|
19
|
-
import {
|
|
20
|
-
import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
19
|
+
import { h as AutoRules, T as ToolCallSignal, S as SignalCollector } from './types-chunks/guardrail.d-CNdKuSD_.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-CNdKuSD_.js';
|
|
21
|
+
import { g as ToolGuardrail } from './types-chunks/types.d-CE_Ter29.js';
|
|
21
22
|
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
22
23
|
import '@anthropic-ai/sdk';
|
|
23
24
|
import 'openai';
|
|
25
|
+
import './types-chunks/types.d-vJExiRje.js';
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* KodaX Core Errors
|
|
@@ -50,114 +52,6 @@ declare class KodaXTerminalError extends KodaXError {
|
|
|
50
52
|
constructor(message: string, suggestions?: string[]);
|
|
51
53
|
}
|
|
52
54
|
|
|
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
|
-
|
|
161
55
|
/**
|
|
162
56
|
* KodaX Error Classification
|
|
163
57
|
*
|
|
@@ -221,44 +115,7 @@ type ToolHandlerSync = (input: Record<string, unknown>, context: KodaXToolExecut
|
|
|
221
115
|
type ToolHandlerStreaming = (input: Record<string, unknown>, context: KodaXToolExecutionContext) => AsyncGenerator<ToolProgress, ToolResult, void>;
|
|
222
116
|
/** Union of both handler types. Existing tools use ToolHandlerSync; new long-running tools may use ToolHandlerStreaming. */
|
|
223
117
|
type ToolHandler = ToolHandlerSync | ToolHandlerStreaming;
|
|
224
|
-
|
|
225
|
-
* v0.7.42 — Declarative tool side-effect class.
|
|
226
|
-
*
|
|
227
|
-
* Required field on every {@link LocalToolDefinition}. Used by:
|
|
228
|
-
* - Plan mode: tools with `sideEffect !== 'readonly'` are blocked unless
|
|
229
|
-
* they explicitly opt in via `planModeAllowed: true` (e.g.
|
|
230
|
-
* `exit_plan_mode`, `task_stop`).
|
|
231
|
-
* - SDK embedders (KodaX Space etc.): iterate `getAllRegisteredTools()`
|
|
232
|
-
* and build their own blocklist by category — replaces the previous
|
|
233
|
-
* practice of hardcoding a `Set<string>` of tool names, which silently
|
|
234
|
-
* drifted whenever KodaX added a new tool.
|
|
235
|
-
* - Internal permission system: `FILE_MODIFICATION_TOOLS` and
|
|
236
|
-
* `MODIFICATION_TOOLS` exports in `@kodax-ai/repl` are now computed
|
|
237
|
-
* from this metadata at module load time, so adding a new
|
|
238
|
-
* `'mutates-fs'` tool here automatically reaches every callsite
|
|
239
|
-
* that consumes those sets.
|
|
240
|
-
*
|
|
241
|
-
* Categories (mutually exclusive; pick the dominant effect):
|
|
242
|
-
* - `'readonly'` — produces no observable side effect, just reads
|
|
243
|
-
* local state (FS, registry, computed views).
|
|
244
|
-
* - `'mutates-fs'` — writes to the local filesystem (write, edit,
|
|
245
|
-
* multi-edit, undo, worktree-*, construction
|
|
246
|
-
* artifacts). Bash is NOT in this bucket; it has
|
|
247
|
-
* its own.
|
|
248
|
-
* - `'mutates-shell'` — invokes an arbitrary shell command (bash).
|
|
249
|
-
* - `'mutates-network'` — performs a network request that may have side
|
|
250
|
-
* effects on the remote (web_fetch with any
|
|
251
|
-
* method, web_search, MCP server calls).
|
|
252
|
-
* - `'mutates-state'` — changes internal session/agent state without
|
|
253
|
-
* FS or shell side effects (todo_update,
|
|
254
|
-
* send_message, dispatch_child_task,
|
|
255
|
-
* exit_plan_mode, emit_managed_protocol).
|
|
256
|
-
*
|
|
257
|
-
* Pick the dominant effect when a tool touches multiple. e.g. `dispatch_
|
|
258
|
-
* child_task` may transitively run any tool, but its own direct effect is
|
|
259
|
-
* spawning a child agent (`mutates-state`).
|
|
260
|
-
*/
|
|
261
|
-
type ToolSideEffect = 'readonly' | 'mutates-fs' | 'mutates-shell' | 'mutates-network' | 'mutates-state';
|
|
118
|
+
|
|
262
119
|
/**
|
|
263
120
|
* FEATURE_149 (v0.7.38) — interrupt-on-submit policy for in-flight tools.
|
|
264
121
|
*
|
|
@@ -479,6 +336,21 @@ declare function isToolPlanModeAllowed(name: string): boolean;
|
|
|
479
336
|
* scattered across 5+ callsites.
|
|
480
337
|
*/
|
|
481
338
|
declare function isToolFileMutation(name: string): boolean;
|
|
339
|
+
/**
|
|
340
|
+
* FEATURE_247 — does this tool perform a read-only network request
|
|
341
|
+
* (`sideEffect === 'reads-network'`)?
|
|
342
|
+
*
|
|
343
|
+
* Lets an SDK embedder's permission broker (e.g. KodaX-Space Partner) allow
|
|
344
|
+
* web research / MCP reads (`web_search`, `mcp_read_resource`, `mcp_get_prompt`)
|
|
345
|
+
* while still blocking mutating network calls (`web_fetch`, `mcp_call` →
|
|
346
|
+
* `mutates-network`). Fail-closed: unknown names return `false`.
|
|
347
|
+
*
|
|
348
|
+
* Note: `isToolMutation` intentionally still returns `true` for a
|
|
349
|
+
* `reads-network` tool (only `readonly` is treated as non-mutating there), so
|
|
350
|
+
* existing mutation-gate behavior is unchanged — use THIS predicate, or the
|
|
351
|
+
* `sideEffect` value directly, to select the read-network class.
|
|
352
|
+
*/
|
|
353
|
+
declare function isToolNetworkRead(name: string): boolean;
|
|
482
354
|
/**
|
|
483
355
|
* v0.7.42 — does this tool mutate anything (FS, shell, network, state)?
|
|
484
356
|
*
|
|
@@ -4936,6 +4808,13 @@ interface SidecarVerifierContextInputs {
|
|
|
4936
4808
|
}[];
|
|
4937
4809
|
/** The exact text the Main Agent emitted as its final answer. */
|
|
4938
4810
|
readonly lastAssistantText: string;
|
|
4811
|
+
/**
|
|
4812
|
+
* FEATURE_247 (R3) — rendered profile/task verification criteria appended to
|
|
4813
|
+
* the verifier user message. Present only when a profile-default or per-task
|
|
4814
|
+
* verification standard was supplied, so the default coding verifier prompt is
|
|
4815
|
+
* byte-identical.
|
|
4816
|
+
*/
|
|
4817
|
+
readonly additionalCriteria?: string;
|
|
4939
4818
|
}
|
|
4940
4819
|
interface SidecarVerifierInvokeOptions {
|
|
4941
4820
|
/** Provider used for the verifier call. Often a stronger model than
|
|
@@ -5055,6 +4934,21 @@ declare function resolveKodaXManual(input: ResolveKodaXManualInput, options?: Re
|
|
|
5055
4934
|
|
|
5056
4935
|
/** Canonical topic order (also the index ordering). */
|
|
5057
4936
|
declare const MANUAL_TOPIC_IDS: readonly KodaXManualTopicId[];
|
|
4937
|
+
/**
|
|
4938
|
+
* FEATURE_221 — the base topics that describe UNDERLYING KodaX MECHANISMS a
|
|
4939
|
+
* product built on the SDK inherits (provider/config/permission/tool/MCP/
|
|
4940
|
+
* skill/extension/session/repo-intel/SDK behavior). A white-label consumer who
|
|
4941
|
+
* fully replaces the manual (`selfManual.baseTopics = []`) can pass THIS list
|
|
4942
|
+
* instead to keep the agent able to accurately explain the mechanisms it stands
|
|
4943
|
+
* on — e.g. `selfManual.baseTopics = [...KODAX_UNDERLYING_CAPABILITY_TOPICS]`.
|
|
4944
|
+
*
|
|
4945
|
+
* Excluded from this set (KodaX-CLI-specific UX, not mechanisms a product
|
|
4946
|
+
* inherits): overview / install / quickstart / commands / agents / doctor /
|
|
4947
|
+
* troubleshooting. It is a recommended STARTING POINT — a consumer is free to
|
|
4948
|
+
* pass any explicit subset of `MANUAL_TOPIC_IDS`.
|
|
4949
|
+
*/
|
|
4950
|
+
declare const KODAX_UNDERLYING_CAPABILITY_TOPICS: readonly KodaXManualTopicId[];
|
|
4951
|
+
declare const MANUAL_REGISTRY: Readonly<Record<KodaXManualTopicId, KodaXManualTopic>>;
|
|
5058
4952
|
|
|
5059
4953
|
/**
|
|
5060
4954
|
* FEATURE_218 — the single short prompt rule that routes product questions to
|
|
@@ -5067,6 +4961,34 @@ declare function buildSelfKnowledgeRoutingRule(productName?: string): string;
|
|
|
5067
4961
|
/** Default KodaX routing rule (backward-compatible const). */
|
|
5068
4962
|
declare const SELF_KNOWLEDGE_ROUTING_RULE: string;
|
|
5069
4963
|
|
|
4964
|
+
/**
|
|
4965
|
+
* FEATURE_218 / FEATURE_221 — the `kodax_manual` tool DESCRIPTION the model
|
|
4966
|
+
* reads (deciding when to call the tool), built from a product name so an SDK
|
|
4967
|
+
* consumer can white-label it. Sibling to `buildSelfKnowledgeRoutingRule` in
|
|
4968
|
+
* routing-rule.ts.
|
|
4969
|
+
*
|
|
4970
|
+
* `buildManualToolDescription()` (default 'KodaX') is the single source of truth
|
|
4971
|
+
* for the built-in tool description — `BUILTIN_TOOL_DEFINITIONS` uses it, so the
|
|
4972
|
+
* default output is byte-identical to the prior literal (pinned by a test). The
|
|
4973
|
+
* KodaX-specific config-path clause (`~/.kodax/config.json` + `KODAX_*`) is
|
|
4974
|
+
* gated on `productName === 'KodaX'`, matching `scopeAnchor`'s existing rule, so
|
|
4975
|
+
* a re-branded product does not leak KodaX config paths into the model's tool
|
|
4976
|
+
* surface.
|
|
4977
|
+
*/
|
|
4978
|
+
declare function buildManualToolDescription(productName?: string): string;
|
|
4979
|
+
/**
|
|
4980
|
+
* Re-brand the `kodax_manual` tool description with the consumer's product name
|
|
4981
|
+
* when building the model-visible tool list. Returns the def unchanged for any
|
|
4982
|
+
* other tool, or when no (or the default 'KodaX') product name is set — so the
|
|
4983
|
+
* default Coding Agent tool surface is byte-identical. Generic over the def
|
|
4984
|
+
* shape so both the SA (`getActiveToolDefinitions`) and AMA
|
|
4985
|
+
* (`buildAgentToolsFromRegistry`) assembly paths can share it.
|
|
4986
|
+
*/
|
|
4987
|
+
declare function withManualToolBranding<T extends {
|
|
4988
|
+
readonly name: string;
|
|
4989
|
+
readonly description: string;
|
|
4990
|
+
}>(def: T, productName?: string): T;
|
|
4991
|
+
|
|
5070
4992
|
/**
|
|
5071
4993
|
* Resolve the LSP languageId for a file path, or `undefined` when KodaX
|
|
5072
4994
|
* has no language mapping for its extension. Case-insensitive on the
|
|
@@ -5245,6 +5167,21 @@ interface ParallelInvestigationResult {
|
|
|
5245
5167
|
}
|
|
5246
5168
|
declare const parallelInvestigation: WorkflowModule<ParallelInvestigationArgs, ParallelInvestigationResult>;
|
|
5247
5169
|
|
|
5170
|
+
/**
|
|
5171
|
+
* FEATURE_217 / FEATURE_246 — built-in workflow registry.
|
|
5172
|
+
*
|
|
5173
|
+
* A leaf module (imports only built-in workflow modules) so both the workflows
|
|
5174
|
+
* barrel and the nested-`workflow()` resolver can read the registry without the
|
|
5175
|
+
* `index.ts → workflow-runner.ts → index.ts` re-export cycle.
|
|
5176
|
+
*/
|
|
5177
|
+
|
|
5178
|
+
/** All built-in workflows shipped with KodaX. */
|
|
5179
|
+
declare const BUILTIN_WORKFLOWS: readonly WorkflowModule[];
|
|
5180
|
+
/** Resolve a built-in workflow by its declared `meta.name`. */
|
|
5181
|
+
declare function getBuiltinWorkflow(name: string): WorkflowModule | undefined;
|
|
5182
|
+
/** List built-in workflow metadata (for `/workflow` listing). */
|
|
5183
|
+
declare function listBuiltinWorkflows(): readonly WorkflowModule['meta'][];
|
|
5184
|
+
|
|
5248
5185
|
/**
|
|
5249
5186
|
* FEATURE_217 (v0.7.49) Phase D — Durable workflow run graph.
|
|
5250
5187
|
*
|
|
@@ -5259,7 +5196,7 @@ declare const parallelInvestigation: WorkflowModule<ParallelInvestigationArgs, P
|
|
|
5259
5196
|
* recorder's `seq` order with no async interleave.
|
|
5260
5197
|
*/
|
|
5261
5198
|
|
|
5262
|
-
type WorkflowRunProcessMetadata = Pick<WorkflowProcessTrackerOptions, 'displayName' | 'goal' | 'source' | 'savedWorkflowName' | 'sourceRunId' | 'sourceWorkflowName' | 'revisionOf' | 'hostMetadata'>;
|
|
5199
|
+
type WorkflowRunProcessMetadata = Pick<WorkflowProcessTrackerOptions, 'displayName' | 'goal' | 'source' | 'savedWorkflowName' | 'sourceRunId' | 'sourceWorkflowName' | 'revisionOf' | 'resumedFromRunId' | 'hostMetadata'>;
|
|
5263
5200
|
interface RunGraphWriterDeps {
|
|
5264
5201
|
/** Clock for the per-event `ts` stamp. Defaults to `Date.now`. */
|
|
5265
5202
|
readonly now?: () => number;
|
|
@@ -5317,7 +5254,6 @@ interface WorktreeSweepDeps {
|
|
|
5317
5254
|
|
|
5318
5255
|
declare const SYSTEM_WORKFLOW_LIMITS: {
|
|
5319
5256
|
readonly maxAgents: 64;
|
|
5320
|
-
readonly maxConcurrency: 16;
|
|
5321
5257
|
readonly tokenBudget: 200000;
|
|
5322
5258
|
};
|
|
5323
5259
|
interface RunWorkflowModuleOptions {
|
|
@@ -5343,6 +5279,10 @@ interface RunWorkflowModuleOptions {
|
|
|
5343
5279
|
readonly onWorkflowProcessEvent?: (event: WorkflowProcessEvent) => void;
|
|
5344
5280
|
readonly now?: () => number;
|
|
5345
5281
|
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5282
|
+
/** FEATURE_246 Part D (ADR-048): a prior run dir to seed the result cache from
|
|
5283
|
+
* for same-session resume. Unchanged effects replay from it; only changed
|
|
5284
|
+
* effects re-run live. */
|
|
5285
|
+
readonly resumeFromRunDir?: string;
|
|
5346
5286
|
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5347
5287
|
/** Optional lifecycle gate, used by WorkflowRunManager pause/resume. */
|
|
5348
5288
|
readonly beforeSpawn?: () => Promise<void>;
|
|
@@ -5384,9 +5324,18 @@ interface RunWorkflowFromOptionsInput {
|
|
|
5384
5324
|
readonly onWorkflowProcessEvent?: (event: WorkflowProcessEvent) => void;
|
|
5385
5325
|
readonly now?: () => number;
|
|
5386
5326
|
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5327
|
+
/** FEATURE_246 Part D (ADR-048): prior run dir to seed the resume cache. */
|
|
5328
|
+
readonly resumeFromRunDir?: string;
|
|
5387
5329
|
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5388
5330
|
readonly beforeSpawn?: () => Promise<void>;
|
|
5389
5331
|
}
|
|
5332
|
+
/**
|
|
5333
|
+
* ADR-049: forward a single workflow child-agent terminal/summary event to the
|
|
5334
|
+
* REPL's per-agent digest hook. Coarse gate here (the four summary event types);
|
|
5335
|
+
* the REPL's `formatWorkflowAgentDigest` does the fine filtering (status, pending
|
|
5336
|
+
* summaries) so inline and slash `/workflow` digests stay identical.
|
|
5337
|
+
*/
|
|
5338
|
+
declare function emitWorkflowAgentDigest(events: KodaXEvents | undefined, runId: string, event: WorkflowEvent): void;
|
|
5390
5339
|
/**
|
|
5391
5340
|
* High-level entry: build a tool-execution context + child options from
|
|
5392
5341
|
* `KodaXOptions` (provider / model / extensionRuntime) and run the
|
|
@@ -5513,18 +5462,22 @@ declare function loadGeneratedWorkflowFromRun(input: LoadGeneratedWorkflowFromRu
|
|
|
5513
5462
|
declare function saveGeneratedWorkflowFromRun(input: SaveGeneratedWorkflowFromRunInput): Promise<SavedWorkflowRef>;
|
|
5514
5463
|
declare function preflightWorkflowCapsule(capsule: WorkflowCapsule, env?: WorkflowCapsulePreflightEnvironment): WorkflowCapsulePreflightResult;
|
|
5515
5464
|
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5465
|
+
/**
|
|
5466
|
+
* FEATURE_246 Part A0b (ADR-046) — coding adapter over the neutral agent-layer
|
|
5467
|
+
* workflow run manager.
|
|
5468
|
+
*
|
|
5469
|
+
* The lifecycle core (registry / pause / resume / stop / process tracking /
|
|
5470
|
+
* settle) now lives in `@kodax-ai/agent` (`createWorkflowRunManager`). This
|
|
5471
|
+
* adapter preserves the coding-facing API (`start` / `startFromOptions` driven
|
|
5472
|
+
* by `RunWorkflowModuleOptions` / `KodaXOptions` + durable run dirs) by building
|
|
5473
|
+
* the agent manager's injected `runFn` from `runWorkflowModule` /
|
|
5474
|
+
* `runWorkflowFromOptions`, and augments the neutral snapshot with the
|
|
5475
|
+
* coding-specific `runDir`. Dependency arrows point coding → agent only.
|
|
5476
|
+
*/
|
|
5477
|
+
|
|
5478
|
+
/** Coding snapshot = the neutral agent snapshot plus the durable run dir. */
|
|
5479
|
+
interface ManagedWorkflowSnapshot extends ManagedWorkflowSnapshot$1 {
|
|
5521
5480
|
readonly runDir: string;
|
|
5522
|
-
readonly totalSpawned: number;
|
|
5523
|
-
readonly eventCount: number;
|
|
5524
|
-
readonly startedAt: number;
|
|
5525
|
-
readonly endedAt?: number;
|
|
5526
|
-
readonly error?: string;
|
|
5527
|
-
readonly resultText?: string;
|
|
5528
5481
|
}
|
|
5529
5482
|
interface ManagedWorkflowRun {
|
|
5530
5483
|
readonly runId: string;
|
|
@@ -5549,7 +5502,7 @@ interface WorkflowRunManager {
|
|
|
5549
5502
|
}
|
|
5550
5503
|
declare function createWorkflowRunManager(deps?: {
|
|
5551
5504
|
readonly now?: () => number;
|
|
5552
|
-
}): WorkflowRunManager;
|
|
5505
|
+
}, agent?: WorkflowRunManager$1): WorkflowRunManager;
|
|
5553
5506
|
declare function getDefaultWorkflowRunManager(): WorkflowRunManager;
|
|
5554
5507
|
|
|
5555
5508
|
type WorkflowIdentityResolution = {
|
|
@@ -5680,7 +5633,7 @@ type WorkflowGenerationResult = {
|
|
|
5680
5633
|
declare function resolveWorkflowGenerationTimeoutMs(env?: NodeJS.ProcessEnv, timeouts?: KodaXTimeoutConfig): number;
|
|
5681
5634
|
declare function validateGeneratedWorkflowSource(source: string): string;
|
|
5682
5635
|
declare function buildWorkflowGenerationUserPrompt(request: string, skillContext?: string): string;
|
|
5683
|
-
declare function buildWorkflowGenerationSkillContext(request: string, options: Pick<KodaXOptions, 'context'>): Promise<string | undefined>;
|
|
5636
|
+
declare function buildWorkflowGenerationSkillContext(request: string, options: Pick<KodaXOptions, 'context' | 'skillDynamicContext'>): Promise<string | undefined>;
|
|
5684
5637
|
interface ParseWorkflowGenerationOptions {
|
|
5685
5638
|
readonly request?: string;
|
|
5686
5639
|
}
|
|
@@ -5708,19 +5661,131 @@ declare function getWorkflowPatternTemplate(name: string): WorkflowPatternTempla
|
|
|
5708
5661
|
declare function createWorkflowPatternTemplateModule(name: string): WorkflowModule;
|
|
5709
5662
|
|
|
5710
5663
|
/**
|
|
5711
|
-
*
|
|
5664
|
+
* FEATURE_246 Part A1 (ADR-046) — the coding WorkflowHost entrypoint.
|
|
5712
5665
|
*
|
|
5713
|
-
*
|
|
5714
|
-
*
|
|
5715
|
-
*
|
|
5666
|
+
* `startManagedWorkflow` is the single capability both the REPL `/workflow`
|
|
5667
|
+
* command / AMAW intercept AND the model-callable `run_workflow` tool call. It
|
|
5668
|
+
* resolves a workflow module from one of three sources (inline `{manifest,
|
|
5669
|
+
* source}` written by the Worker, a saved module, or a natural-language request
|
|
5670
|
+
* routed through the generator), mints the run id + durable run dir, and starts
|
|
5671
|
+
* it on the (agent-layer) run manager. UI — approval rendering, progress, final
|
|
5672
|
+
* messages — stays in the REPL, which passes an `approval` callback + `onEvent`
|
|
5673
|
+
* sink. This removes the start-glue that previously lived in the REPL
|
|
5674
|
+
* (`startGeneratedWorkflowFromRequest`).
|
|
5716
5675
|
*/
|
|
5717
5676
|
|
|
5718
|
-
/**
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5677
|
+
/** Where the workflow script comes from. */
|
|
5678
|
+
type ManagedWorkflowSource = {
|
|
5679
|
+
readonly kind: 'inline';
|
|
5680
|
+
readonly manifest: unknown;
|
|
5681
|
+
readonly source: string;
|
|
5682
|
+
} | {
|
|
5683
|
+
readonly kind: 'saved';
|
|
5684
|
+
readonly module: WorkflowModule;
|
|
5685
|
+
} | {
|
|
5686
|
+
readonly kind: 'request';
|
|
5687
|
+
readonly request: string;
|
|
5688
|
+
};
|
|
5689
|
+
interface StartManagedWorkflowInput {
|
|
5690
|
+
readonly source: ManagedWorkflowSource;
|
|
5691
|
+
readonly args: unknown;
|
|
5692
|
+
readonly options: KodaXOptions;
|
|
5693
|
+
/** Durable run-graph base dir (one run dir per run id is created under it). */
|
|
5694
|
+
readonly runsBaseDir: string;
|
|
5695
|
+
/** Override the minted run id (tests / explicit rerun ids). */
|
|
5696
|
+
readonly runId?: string;
|
|
5697
|
+
/** FEATURE_246 Part D (ADR-048): a prior run dir to seed the result cache from
|
|
5698
|
+
* (same-session resume). Unchanged effects replay; only changed ones re-run. */
|
|
5699
|
+
readonly resumeFromRunDir?: string;
|
|
5700
|
+
/** Defaults to the shared coding singleton (which wraps the agent default). */
|
|
5701
|
+
readonly manager?: WorkflowRunManager;
|
|
5702
|
+
/** Pre-run approval gate; when omitted the run auto-proceeds (headless). */
|
|
5703
|
+
readonly approval?: WorkflowApproval;
|
|
5704
|
+
readonly processMetadata?: WorkflowRunProcessMetadata;
|
|
5705
|
+
readonly onEvent?: (event: WorkflowEvent) => void;
|
|
5706
|
+
readonly signal?: AbortSignal;
|
|
5707
|
+
/** Test seam: override the NL→workflow generator. */
|
|
5708
|
+
readonly generateWorkflow?: typeof generateWorkflowFromOptions;
|
|
5709
|
+
/** Test seam: clock for the minted run id. */
|
|
5710
|
+
readonly now?: () => number;
|
|
5711
|
+
}
|
|
5712
|
+
type StartManagedWorkflowResult = {
|
|
5713
|
+
readonly kind: 'declined';
|
|
5714
|
+
readonly reason: string;
|
|
5715
|
+
} | {
|
|
5716
|
+
readonly kind: 'started';
|
|
5717
|
+
readonly runId: string;
|
|
5718
|
+
readonly runDir: string;
|
|
5719
|
+
readonly module: WorkflowModule;
|
|
5720
|
+
readonly managed: ManagedWorkflowRun;
|
|
5721
|
+
readonly approvalSummary: WorkflowApprovalSummary;
|
|
5722
|
+
readonly scriptSnapshot?: WorkflowScriptSnapshotInput;
|
|
5723
|
+
};
|
|
5724
|
+
declare function startManagedWorkflow(input: StartManagedWorkflowInput): Promise<StartManagedWorkflowResult>;
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
* FEATURE_246 — host-facing "author a workflow via the Worker" entrypoint.
|
|
5728
|
+
*
|
|
5729
|
+
* The REPL's `/workflow create <request>` does NOT call the context-blind
|
|
5730
|
+
* `generateWorkflowFromOptions`; it submits the request as an agent turn with
|
|
5731
|
+
* `agentMode:'amaw'`, so the Worker scouts the repo with its own tools and then
|
|
5732
|
+
* authors + runs the workflow via `run_workflow` (ADR-047 scout-then-author).
|
|
5733
|
+
* That elevation is REPL-internal glue (`agentModeOverride` →
|
|
5734
|
+
* `handleCommandResult` → `runAgentRound`), so a non-REPL embedder host (e.g.
|
|
5735
|
+
* KodaX-Space) previously had no documented one-call way to reach it and fell
|
|
5736
|
+
* back to the blind generator.
|
|
5737
|
+
*
|
|
5738
|
+
* `authorWorkflowViaWorker` is that one call: it forces `agentMode:'amaw'` for
|
|
5739
|
+
* the turn, prepends the same scout-then-author instruction the REPL uses (a
|
|
5740
|
+
* single shared constant, so both stay byte-identical), and starts the turn via
|
|
5741
|
+
* the existing `startKodaX` handle. The host observes progress through the
|
|
5742
|
+
* options it already passes (`events.onWorkflowProcessEvent`); the returned
|
|
5743
|
+
* `workflowRunId` promise resolves once the Worker actually launches a workflow
|
|
5744
|
+
* (or `undefined` if the turn ends without one — the Worker judged a workflow
|
|
5745
|
+
* unnecessary). It composes existing pieces only — no new session/runner/tool.
|
|
5746
|
+
*/
|
|
5747
|
+
|
|
5748
|
+
/**
|
|
5749
|
+
* The scout-then-author instruction lines handed to the Worker. Single source
|
|
5750
|
+
* of truth: the REPL `/workflow create` path imports these same lines so the
|
|
5751
|
+
* built-in command and this SDK entrypoint produce a byte-identical authoring
|
|
5752
|
+
* turn (guarded by a test). Keep in sync ONLY by editing here.
|
|
5753
|
+
*/
|
|
5754
|
+
declare const SCOUT_THEN_AUTHOR_PROMPT_LINES: readonly string[];
|
|
5755
|
+
/** Build the full scout-then-author turn prompt for a free-text request. */
|
|
5756
|
+
declare function buildScoutThenAuthorPrompt(request: string): string;
|
|
5757
|
+
interface AuthorWorkflowViaWorkerInput {
|
|
5758
|
+
/** The natural-language authoring request (what to build a workflow for). */
|
|
5759
|
+
readonly request: string;
|
|
5760
|
+
/**
|
|
5761
|
+
* Base session options. MUST include `workflowRunsBaseDir` — without it the
|
|
5762
|
+
* Worker's `run_workflow` tool does not wire and no workflow can be authored
|
|
5763
|
+
* (this call throws early rather than silently degrading). `agentMode` is
|
|
5764
|
+
* forced to `'amaw'` for this turn regardless of what the base options carry.
|
|
5765
|
+
*/
|
|
5766
|
+
readonly options: KodaXOptions;
|
|
5767
|
+
}
|
|
5768
|
+
interface AuthorWorkflowViaWorkerHandle {
|
|
5769
|
+
/** The underlying run handle (result / abort / mid-turn mutators). */
|
|
5770
|
+
readonly session: RunningSession;
|
|
5771
|
+
/**
|
|
5772
|
+
* Resolves with the workflow run id once the Worker launches a workflow
|
|
5773
|
+
* during this turn, or `undefined` if the turn ends without starting one.
|
|
5774
|
+
* Backed by the FIRST `workflow_started` process event — the same runId a
|
|
5775
|
+
* host sees on `events.onWorkflowProcessEvent`.
|
|
5776
|
+
*
|
|
5777
|
+
* NOTE: reflects only the first workflow the Worker starts this turn. If the
|
|
5778
|
+
* Worker starts several (e.g. stops one and reruns another), `workflowRunId`
|
|
5779
|
+
* still resolves to the first; subscribe to `events.onWorkflowProcessEvent`
|
|
5780
|
+
* for the full set of runs.
|
|
5781
|
+
*/
|
|
5782
|
+
readonly workflowRunId: Promise<string | undefined>;
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
* Route a natural-language authoring request into the Worker's scout-then-author
|
|
5786
|
+
* path (AMAW), returning a run handle plus the eventual workflow run id.
|
|
5787
|
+
*/
|
|
5788
|
+
declare function authorWorkflowViaWorker(input: AuthorWorkflowViaWorkerInput): AuthorWorkflowViaWorkerHandle;
|
|
5724
5789
|
|
|
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,
|
|
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,
|
|
5790
|
+
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, SCOUT_THEN_AUTHOR_PROMPT_LINES, 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, authorWorkflowViaWorker, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildLlmReviewPrompt, buildManualToolDescription, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildScoutThenAuthorPrompt, 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 };
|
|
5791
|
+
export type { AbsoluteDenyMatch, AbsoluteDenyMiss, AbsoluteDenyResult, AgentArtifact, ArtifactStatus, AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, AuthorWorkflowViaWorkerHandle, AuthorWorkflowViaWorkerInput, 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 };
|