@kodax-ai/kodax 0.7.43 → 0.7.45
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 +80 -0
- package/README.md +6 -5
- package/README_CN.md +6 -5
- package/dist/chunks/chunk-CZHIUJQS.js +535 -0
- package/dist/chunks/{chunk-IYSK7LUK.js → chunk-FKB7BWQT.js} +1 -1
- package/dist/chunks/chunk-FT2XFFNP.js +2 -0
- package/dist/chunks/chunk-IJUB7QXG.js +425 -0
- package/dist/chunks/chunk-PGF5EZ7C.js +31 -0
- package/dist/chunks/chunk-X6EHEQWP.js +849 -0
- package/dist/chunks/{compaction-config-3E57ABCT.js → compaction-config-WCNGYWT3.js} +1 -1
- package/dist/chunks/{construction-bootstrap-JR63KI5N.js → construction-bootstrap-OB5SDNBD.js} +1 -1
- package/dist/chunks/dist-C2VOGY5Z.js +2 -0
- package/dist/chunks/{dist-XANXEVTU.js → dist-Q2PQM7U7.js} +1 -1
- package/dist/chunks/{utils-HQ2QCKJA.js → utils-CHXCBR3Q.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/kodax_cli.js +764 -709
- package/dist/provider-capabilities.json +181 -0
- package/dist/sdk-agent.d.ts +108 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +385 -13
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +1 -1
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +7 -6
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-session.d.ts +2 -2
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-DMrGImMl.d.ts → bash-prefix-extractor.d-HrTUwtV7.d.ts} +597 -142
- package/dist/types-chunks/file-tracker.d-DOfaoCbJ.d.ts +633 -0
- package/dist/types-chunks/{resolver.d-CA68_NeH.d.ts → resolver.d-OMwxURit.d.ts} +17 -14
- package/dist/types-chunks/{storage.d-DPAEX7zS.d.ts → storage.d-BvTdjYQF.d.ts} +13 -1
- package/dist/types-chunks/{file-tracker.d-zaLZeNBK.d.ts → types.d-DM8zEJgF.d.ts} +1029 -535
- package/dist/types-chunks/{types.d-mM8vqvhT.d.ts → types.d-HBbWT-iA.d.ts} +41 -3
- package/dist/types-chunks/{utils.d-DkLZD_wa.d.ts → utils.d-DSEX6Rq1.d.ts} +15 -3
- package/package.json +2 -2
- package/dist/chunks/chunk-7G5PSL6C.js +0 -830
- package/dist/chunks/chunk-K75O2CAE.js +0 -31
- package/dist/chunks/chunk-UG4262JI.js +0 -502
- package/dist/chunks/chunk-VHKAJDQD.js +0 -425
- package/dist/chunks/chunk-YMRZBS4G.js +0 -2
- package/dist/chunks/dist-KWHUKXEL.js +0 -2
- package/dist/types-chunks/types.d-CKJtjo-6.d.ts +0 -1127
package/dist/sdk-coding.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { X as KodaXToolDefinition, Z as KodaXToolResultContentItem, D as KodaXReasoningMode, m as KodaXMessage, a0 as KodaXToolUseBlock, g as KodaXContentBlock, q as KodaXProviderCapabilityProfile, C as KodaXReasoningCapability, Q as KodaXTaskType, i as KodaXExecutionMode, P as KodaXTaskRoutingDecision, K as KodaXAmaControllerDecision, V as KodaXThinkingDepth } from './types-chunks/types.d-B1uGoVTE.js';
|
|
2
|
-
export { a as KodaXAmaFanoutClass, b as KodaXAmaFanoutPolicy, c as KodaXAmaProfile, d as KodaXAmaTactic, h as KodaXCustomProviderConfig, l as KodaXImageBlock, n as KodaXModelDescriptor, p as KodaXProtocolFamily, r as KodaXProviderConfig, t as KodaXProviderConversationSemantics, w as KodaXProviderMcpSupport, z as KodaXProviderStreamOptions, B as KodaXProviderTransport, E as KodaXReasoningOverride, F as KodaXReasoningRequest, G as KodaXRedactedThinkingBlock, H as KodaXReviewScale, I as KodaXRiskLevel, J as KodaXStreamResult, M as KodaXTaskBudgetOverrides, S as KodaXTextBlock, T as KodaXThinkingBlock, U as KodaXThinkingBudgetMap,
|
|
3
|
-
export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, P as ProviderName, n as buildReasoningOverrideKey, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, W as loadReasoningOverride, Z as reasoningCapabilityToOverride, _ as reasoningOverrideToCapability, $ as registerCustomProviders, a0 as registerModelProvider, a1 as resolveModelCapabilities, a2 as resolveProvider, a3 as resolveProviderModelDescriptors, a5 as saveReasoningOverride, a6 as validateCustomProviderConfig } from './types-chunks/resolver.d-
|
|
1
|
+
import { X as KodaXToolDefinition, Z as KodaXToolResultContentItem, D as KodaXReasoningMode, m as KodaXMessage, a0 as KodaXToolUseBlock, g as KodaXContentBlock, q as KodaXProviderCapabilityProfile, C as KodaXReasoningCapability, Q as KodaXTaskType, i as KodaXExecutionMode, P as KodaXTaskRoutingDecision, K as KodaXAmaControllerDecision, V as KodaXThinkingDepth, W as KodaXTokenUsage } from './types-chunks/types.d-B1uGoVTE.js';
|
|
2
|
+
export { a as KodaXAmaFanoutClass, b as KodaXAmaFanoutPolicy, c as KodaXAmaProfile, d as KodaXAmaTactic, h as KodaXCustomProviderConfig, l as KodaXImageBlock, n as KodaXModelDescriptor, p as KodaXProtocolFamily, r as KodaXProviderConfig, t as KodaXProviderConversationSemantics, w as KodaXProviderMcpSupport, z as KodaXProviderStreamOptions, B as KodaXProviderTransport, E as KodaXReasoningOverride, F as KodaXReasoningRequest, G as KodaXRedactedThinkingBlock, H as KodaXReviewScale, I as KodaXRiskLevel, J as KodaXStreamResult, M as KodaXTaskBudgetOverrides, S as KodaXTextBlock, T as KodaXThinkingBlock, U as KodaXThinkingBudgetMap, Y as KodaXToolResultBlock } from './types-chunks/types.d-B1uGoVTE.js';
|
|
3
|
+
export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, P as ProviderName, n as buildReasoningOverrideKey, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, W as loadReasoningOverride, Z as reasoningCapabilityToOverride, _ as reasoningOverrideToCapability, $ as registerCustomProviders, a0 as registerModelProvider, a1 as resolveModelCapabilities, a2 as resolveProvider, a3 as resolveProviderModelDescriptors, a5 as saveReasoningOverride, a6 as validateCustomProviderConfig } from './types-chunks/resolver.d-OMwxURit.js';
|
|
4
4
|
import { K as KodaXBaseProvider } from './types-chunks/base.d-FUJahC0i.js';
|
|
5
5
|
import { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
6
|
-
import {
|
|
7
|
-
export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, n as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AgentsFile, a as AskUserMultiOptions, b as AskUserQuestionItem, c as AskUserQuestionOptions, d as AutoModeAskUser, e as AutoModeAskUserVerdict, D as AutoModeDenialTracker, f as AutoModeEngine, g as AutoModeGuardrailConfig, h as AutoModeSharedState, i as AutoModeStats, j as AutoModeToolGuardrail, B as BASH_POLICY_SPEC, E as BREAKER_ERROR_THRESHOLD,
|
|
8
|
-
import {
|
|
9
|
-
export { K as KodaXCompactMemoryProgress, a as KodaXCompactMemorySeed, c as KodaXExtensionSessionState,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { c as AgentReasoningProfile, e as AgentTool, f as CompactionAnchor, i as CompactionResult, k as CompactionUpdate, o as Guardrail, H as Handoff, R as ReasoningDepth, a8 as createAgent, a9 as createHandoff } from './types-chunks/types.d-CKJtjo-6.js';
|
|
6
|
+
import { ax as KodaXToolExecutionContext, a5 as KodaXRepoIntelligenceCapability, a8 as KodaXRepoIntelligenceTrace, a6 as KodaXRepoIntelligenceMode, aa as KodaXRepoRoutingSignals, a7 as KodaXRepoIntelligenceResolvedMode, a1 as KodaXOptions, S as KodaXInputArtifact, J as KodaXContextOptions, a4 as KodaXProviderPolicyHints, aE as ProviderResilienceConfig, aF as ProviderResiliencePolicy, F as FailureStage, aK as ResilienceClassification, aC as ProviderExecutionState, aH as RecoveryDecision, aJ as RecoveryResult, ab as KodaXResult, ae as KodaXSessionControl, af as KodaXSessionMutators, R as KodaXFanoutSchedulerPlan, P as KodaXFanoutBranchTransition, Q as KodaXFanoutSchedulerInput, I as KodaXChildContextBundle, a3 as KodaXParentReductionContract, O as KodaXFanoutBranchRecord, U as KodaXManagedProtocolPayload, q as ExtensionRuntimeContract, M as KodaXEvents, k as AutoRules, aT as ToolCallSignal, aO as SignalCollector, s as GoalCompleteResult } from './types-chunks/bash-prefix-extractor.d-HrTUwtV7.js';
|
|
7
|
+
export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, n as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AgentsFile, a as AskUserMultiOptions, b as AskUserQuestionItem, c as AskUserQuestionOptions, d as AutoModeAskUser, e as AutoModeAskUserVerdict, D as AutoModeDenialTracker, f as AutoModeEngine, g as AutoModeGuardrailConfig, h as AutoModeSharedState, i as AutoModeStats, j as AutoModeToolGuardrail, B as BASH_POLICY_SPEC, E as BREAKER_ERROR_THRESHOLD, aV as BREAKER_WINDOW_MS, l as BashPrefixExtractor, m as BashPrefixResult, o as CircuitBreaker, p as CreateBashPrefixExtractorOptions, r as ExtractCommandPrefixOptions, G as GoalBlockedResult, t as GoalCreateInput, u as GoalLifecycleContext, v as GoalRuntimeBinding, w as GoalRuntimeBindingDeps, x as GoalToolsContext, K as KodaXAgentMode, y as KodaXBudgetDisclosureZone, z as KodaXBudgetExtensionRequest, H as KodaXChildAgentResult, L as KodaXContextTokenSnapshot, N as KodaXFanoutBranchLifecycle, T as KodaXManagedBudgetSnapshot, V as KodaXManagedTask, W as KodaXManagedTaskRuntimeState, X as KodaXManagedTaskStatusEvent, Y as KodaXMcpConnectMode, Z as KodaXMcpServerConfig, _ as KodaXMcpServersConfig, $ as KodaXMcpTransport, a0 as KodaXMemoryStrategy, a2 as KodaXOrchestrationVerdict, a9 as KodaXRepoIntelligenceTraceEvent, ac as KodaXRoleRoundSummary, ad as KodaXRuntimeVerificationContract, ag as KodaXSessionOptions, ah as KodaXSkillInvocationContext, ai as KodaXSkillMap, aj as KodaXSkillProjectionConfidence, ak as KodaXTaskCapabilityHint, al as KodaXTaskContract, am as KodaXTaskEvidenceArtifact, an as KodaXTaskEvidenceBundle, ao as KodaXTaskEvidenceEntry, ap as KodaXTaskRole, aq as KodaXTaskRoleAssignment, ar as KodaXTaskStatus, as as KodaXTaskSurface, at as KodaXTaskToolPolicy, au as KodaXTaskVerificationContract, av as KodaXTaskVerificationCriterion, aw as KodaXTaskWorkItem, ay as KodaXVerificationScorecard, az as KodaXVerificationScorecardCriterion, aA as LoadAgentsOptions, aB as LoadedRulesSource, aD as ProviderRecoveryEvent, aG as RecoveryAction, aI as RecoveryLadderStep, aL as ResilienceErrorClass, aM as RulesLoadError, aN as RulesLoadResult, aP as SkippedRulesSource, aQ as TodoItem, aR as TodoList, aS as TodoStatus, aU as TrustState, bc as autoModeDenialShouldFallback, bd as breakerShouldFallback, aW as buildGoalRuntimeBinding, aX as collectAllSignals, aY as computeRulesFingerprint, b0 as createAutoModeDenialTracker, aZ as createAutoModeToolGuardrail, a_ as createBashPrefixExtractor, a$ as createCircuitBreaker, b1 as extractCommandPrefix, b2 as formatAgentsForPrompt, b3 as getKodaxGlobalDir, b4 as loadAgentsFiles, b5 as loadAutoRules, b6 as makeDisabledGoalToolsContext, b7 as parseAutoRules, b8 as readTrustState, b9 as recordAutoModeAllow, ba as recordAutoModeBlock, bb as recordBreakerError, be as trustProjectRules, bf as withGoalBeforeNextTurn, bg as withGoalStopHook } from './types-chunks/bash-prefix-extractor.d-HrTUwtV7.js';
|
|
8
|
+
import { i as KodaXJsonValue, b as KodaXExtensionSessionRecord, d as KodaXExtensionStore, S as SessionErrorMetadata, g as KodaXGoalState } from './types-chunks/types.d-HBbWT-iA.js';
|
|
9
|
+
export { K as KodaXCompactMemoryProgress, a as KodaXCompactMemorySeed, c as KodaXExtensionSessionState, k as KodaXSessionArtifactLedgerEntry, l as KodaXSessionBranchSummaryEntry, m as KodaXSessionCompactionEntry, n as KodaXSessionData, o as KodaXSessionEntry, p as KodaXSessionEntryBase, r as KodaXSessionLabelEntry, s as KodaXSessionLineage, t as KodaXSessionMessageEntry, u as KodaXSessionMeta, v as KodaXSessionNavigationOptions, w as KodaXSessionRuntimeInfo, x as KodaXSessionScope, y as KodaXSessionStorage, z as KodaXSessionTreeNode, A as KodaXSessionUiHistoryItem, B as KodaXSessionUiHistoryItemType, C as KodaXSessionWorkspaceKind } from './types-chunks/types.d-HBbWT-iA.js';
|
|
10
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, D as DefaultSummaryCompaction, d as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, e as KODAX_DEFAULT_TIMEOUT, f as KODAX_HARD_TIMEOUT, g as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_RETRIES, j as KODAX_MAX_TOKENS, k as KODAX_RETRY_BASE_DELAY, l as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, m as LineageArtifactLedgerPayload, n as LineageCompaction, o as LineageCompactionDelegates, p as LineageEntryType, q as LineageExtension, r as LineageLabelPayload, s as LineageTreeNode, P as PROMISE_PATTERN, u as appendSessionLineageLabel, w as applySessionCompaction, x as archiveOldIslands, y as buildSessionTree, z as cleanupIncompleteToolCalls, A as countActiveLineageMessages, B as countTokens, E as createSessionLineage, F as estimateTokens, G as extractArtifactLedger, I as extractTitleFromMessages, J as findPreviousUserEntryId, M as forkSessionLineage, N as generateSessionId, O as getAgentConfigHome, Q as getAgentConfigPath, R as getAppDataDir, S as getSessionLineagePath, T as getSessionMessagesFromLineage, U as mergeArtifactLedger, W as resolveSessionLineageTarget, X as rewindSessionLineage, Y as setAgentConfigHome, Z as setSessionLineageActiveEntry, _ as validateAndFixToolHistory } from './types-chunks/file-tracker.d-DOfaoCbJ.js';
|
|
11
|
+
import { X as QualityInvariant, aD as ToolCapability, a5 as RunnableTool, d as Agent, aE as ToolGuardrail, f as AgentMessage, a9 as RunnerLlmReturn, aa as RunnerToolCall } from './types-chunks/types.d-DM8zEJgF.js';
|
|
12
|
+
export { h as AgentReasoningProfile, j as AgentTool, k as CompactionAnchor, n as CompactionResult, p as CompactionUpdate, v as Guardrail, H as Handoff, J as InMemorySessionOptions, R as MessageEntry, V as PresetDispatcher, _ as ReasoningDepth, a2 as RunEvent, a3 as RunOptions, a4 as RunResult, a6 as Runner, ae as Session, ag as SessionEntry, ah as SessionExtension, ai as SessionForkOptions, aQ as createAgent, aR as createHandoff, aS as createInMemorySession, b3 as registerPresetDispatcher } from './types-chunks/types.d-DM8zEJgF.js';
|
|
14
13
|
import { b as McpServersConfig } from './types-chunks/config.d-BfJUXxC0.js';
|
|
15
14
|
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-BfJUXxC0.js';
|
|
16
15
|
import { f as McpProviderOptions, b as McpCapabilityProvider } from './types-chunks/manager.d-87belpiS.js';
|
|
@@ -4496,5 +4495,378 @@ declare function readWindowFromEnv(): number | undefined;
|
|
|
4496
4495
|
*/
|
|
4497
4496
|
declare function speculativeRace<T>(promise: Promise<T>, windowMs?: number): Promise<SpeculativeResult<T>>;
|
|
4498
4497
|
|
|
4499
|
-
|
|
4500
|
-
|
|
4498
|
+
/**
|
|
4499
|
+
* FEATURE_192 v0.7.44 Phase B — Token + wall-time accounting for goals.
|
|
4500
|
+
*
|
|
4501
|
+
* Pure functions. The runtime middleware (`lifecycle.ts`) feeds these
|
|
4502
|
+
* deltas into the persisted `KodaXGoalState.tokensUsed` /
|
|
4503
|
+
* `timeUsedSeconds` counters.
|
|
4504
|
+
*
|
|
4505
|
+
* Codex parity: tokens charged against the goal exclude cached-input
|
|
4506
|
+
* reads (server-side cache hits that don't represent fresh computation)
|
|
4507
|
+
* to prevent token-budget exhaustion from cache thrashing. We DO charge
|
|
4508
|
+
* output tokens 1:1 — they always reflect new computation.
|
|
4509
|
+
*
|
|
4510
|
+
* Plan-mode exclusion: callers are responsible for skipping the
|
|
4511
|
+
* accounting call when `permissionMode === 'plan'`. We do not gate
|
|
4512
|
+
* inside this module so callers can decide per-turn (plan→non-plan
|
|
4513
|
+
* transitions mid-task should resume accounting cleanly).
|
|
4514
|
+
*/
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
* Per-turn token delta charged against the active goal.
|
|
4518
|
+
*
|
|
4519
|
+
* Formula: `max(0, input - cachedRead) + max(0, output)`. Mirrors
|
|
4520
|
+
* Codex `codex-rs/ext/goal/src/accounting.rs` minus the
|
|
4521
|
+
* cache-creation token (we treat cache writes as input cost — they ARE
|
|
4522
|
+
* new input bytes; only cache READS are deductible).
|
|
4523
|
+
*
|
|
4524
|
+
* Returns 0 (not NaN) when usage is unset — callers can blindly add
|
|
4525
|
+
* the result to `tokensUsed`.
|
|
4526
|
+
*/
|
|
4527
|
+
declare function goalTokenDelta(usage: KodaXTokenUsage | undefined): number;
|
|
4528
|
+
/**
|
|
4529
|
+
* Wall-clock delta in whole seconds. The runtime caller pairs each
|
|
4530
|
+
* turn boundary with a `Date.now()` reading; this helper just
|
|
4531
|
+
* normalizes the unit + drops sub-second precision so the persisted
|
|
4532
|
+
* counter stays compact and human-readable.
|
|
4533
|
+
*
|
|
4534
|
+
* Returns 0 for negative input (clock skew or out-of-order timestamps)
|
|
4535
|
+
* so a buggy caller can't silently accumulate negative time.
|
|
4536
|
+
*/
|
|
4537
|
+
declare function turnWallTimeDelta(turnStartMs: number, turnEndMs: number): number;
|
|
4538
|
+
/**
|
|
4539
|
+
* Returns true when applying `tokensDelta` to `currentUsed` would
|
|
4540
|
+
* cross (or has already crossed) `tokenBudget`. Callers use this to
|
|
4541
|
+
* decide whether to flip the goal status to `budget_limited`. Returns
|
|
4542
|
+
* false when `tokenBudget === null` (no explicit budget set).
|
|
4543
|
+
*/
|
|
4544
|
+
declare function shouldFlipBudgetLimited(currentUsed: number, tokensDelta: number, tokenBudget: number | null): boolean;
|
|
4545
|
+
|
|
4546
|
+
/**
|
|
4547
|
+
* FEATURE_192 v0.7.44 Phase B — 3-turn blocked-state validator.
|
|
4548
|
+
*
|
|
4549
|
+
* Codex `/goal` requires the agent to report the SAME blocker_kind
|
|
4550
|
+
* across 3 consecutive goal turns before `update_goal({status:
|
|
4551
|
+
* 'blocked'})` is accepted. KodaX implements this with both a prompt
|
|
4552
|
+
* rule (taught in the update_goal tool description) AND a runtime
|
|
4553
|
+
* counter (this module) so the model can't silently rush the blocked
|
|
4554
|
+
* state on a single-turn false signal.
|
|
4555
|
+
*
|
|
4556
|
+
* Pure functions over `KodaXGoalState.blockerTurnCount` +
|
|
4557
|
+
* `lastBlockerKind`. Each call returns the *next* counter values plus
|
|
4558
|
+
* an `allowed` flag the caller uses to gate the `update_goal({status:
|
|
4559
|
+
* 'blocked'})` tool. Persistence is the caller's responsibility.
|
|
4560
|
+
*
|
|
4561
|
+
* Why ADR-033 §1 quantitative-anchor exception: "3 turns" is a numeric
|
|
4562
|
+
* anchor tied to the runtime counter (physical state in code), not a
|
|
4563
|
+
* soft preference — see v0.7.44.md FEATURE_192 §3 audit notes.
|
|
4564
|
+
*/
|
|
4565
|
+
|
|
4566
|
+
interface BlockerAttemptResult {
|
|
4567
|
+
/** Whether the blocked-state transition is allowed THIS turn. */
|
|
4568
|
+
readonly allowed: boolean;
|
|
4569
|
+
/** New counter value to persist (1 / 2 / 3). */
|
|
4570
|
+
readonly nextCount: number;
|
|
4571
|
+
/** Blocker kind to persist on the next goal entry. */
|
|
4572
|
+
readonly nextKind: string;
|
|
4573
|
+
/** Human-readable status (also surfaced to the model on rejection). */
|
|
4574
|
+
readonly statusMessage: string;
|
|
4575
|
+
}
|
|
4576
|
+
/**
|
|
4577
|
+
* Record an `update_goal({status:'blocked', blocker_kind})` attempt.
|
|
4578
|
+
*
|
|
4579
|
+
* Logic:
|
|
4580
|
+
* - If the kind matches `lastBlockerKind`: increment the counter.
|
|
4581
|
+
* - If the kind differs (or `lastBlockerKind` is null): reset to 1.
|
|
4582
|
+
* - `allowed === true` iff the resulting counter reaches the 3-turn
|
|
4583
|
+
* requirement.
|
|
4584
|
+
*
|
|
4585
|
+
* Returns a structured result so the caller can both gate the tool
|
|
4586
|
+
* AND persist the updated counter regardless of `allowed`. Persisting
|
|
4587
|
+
* the in-progress count is important — without it, a blocker that
|
|
4588
|
+
* spans a process restart would lose its history.
|
|
4589
|
+
*/
|
|
4590
|
+
declare function recordBlockerAttempt(current: KodaXGoalState, blockerKind: string): BlockerAttemptResult;
|
|
4591
|
+
/**
|
|
4592
|
+
* Reset the blocker counter — called when the agent makes progress
|
|
4593
|
+
* (any non-blocker tool action that suggests the obstacle is gone).
|
|
4594
|
+
* The runtime middleware decides WHEN to reset; this is just the
|
|
4595
|
+
* canonical shape of the reset fields for `Object.assign` /
|
|
4596
|
+
* spread-into-persist patterns.
|
|
4597
|
+
*/
|
|
4598
|
+
declare function resetBlockerCounter(): Pick<KodaXGoalState, 'blockerTurnCount' | 'lastBlockerKind'>;
|
|
4599
|
+
/** Exposed for tests / docs that need the canonical constant. */
|
|
4600
|
+
declare const BLOCKER_REQUIRED_CONSECUTIVE_TURNS = 3;
|
|
4601
|
+
|
|
4602
|
+
/**
|
|
4603
|
+
* FEATURE_192 v0.7.44 Phase B — Goal state transitions.
|
|
4604
|
+
*
|
|
4605
|
+
* Pure transition functions over `KodaXGoalState`. Each transition
|
|
4606
|
+
* returns a fresh `KodaXGoalState` (immutable update); the caller is
|
|
4607
|
+
* responsible for persisting via `appendGoalEntry` from
|
|
4608
|
+
* `@kodax-ai/agent`.
|
|
4609
|
+
*
|
|
4610
|
+
* The runtime path is:
|
|
4611
|
+
* 1. REPL slash command (or tool) calls a transition function here
|
|
4612
|
+
* 2. Result is passed to `appendGoalEntry(lineage, state, event)`
|
|
4613
|
+
* 3. Updated lineage is persisted via the session storage
|
|
4614
|
+
*
|
|
4615
|
+
* No in-memory singleton: lineage IS the truth, and
|
|
4616
|
+
* `readLatestGoalState(lineage)` is the read API. The cost of walking
|
|
4617
|
+
* lineage entries per read is bounded (active branches stay small
|
|
4618
|
+
* relative to lineage length, and reads are not per-tool-call hot).
|
|
4619
|
+
*/
|
|
4620
|
+
|
|
4621
|
+
/**
|
|
4622
|
+
* Build a fresh `created` goal state. Caller persists with
|
|
4623
|
+
* `appendGoalEntry(lineage, state, 'created')`.
|
|
4624
|
+
*
|
|
4625
|
+
* Throws when `objective` is empty/whitespace or when `tokenBudget`
|
|
4626
|
+
* is a non-positive finite number. `tokenBudget === null` is the
|
|
4627
|
+
* canonical "no budget" form.
|
|
4628
|
+
*/
|
|
4629
|
+
declare function buildCreatedGoal(objective: string, tokenBudget: number | null, now?: number): KodaXGoalState;
|
|
4630
|
+
interface ApplyAccountingResult {
|
|
4631
|
+
readonly nextState: KodaXGoalState;
|
|
4632
|
+
/**
|
|
4633
|
+
* True when applying this delta crossed the configured budget — the
|
|
4634
|
+
* caller persists with `event: 'budget_limited'` instead of skipping
|
|
4635
|
+
* persistence. False when budget is null or the delta stayed under.
|
|
4636
|
+
*/
|
|
4637
|
+
readonly budgetLimited: boolean;
|
|
4638
|
+
}
|
|
4639
|
+
/**
|
|
4640
|
+
* Apply per-turn token + wall-time deltas to an active goal. Returns
|
|
4641
|
+
* the updated state (same id, same objective, bumped counters) plus a
|
|
4642
|
+
* `budgetLimited` flag the caller uses to decide whether to persist
|
|
4643
|
+
* with a status change.
|
|
4644
|
+
*
|
|
4645
|
+
* Guards:
|
|
4646
|
+
* - Returns nextState unchanged when status !== 'active' (paused /
|
|
4647
|
+
* blocked / complete / budget_limited do not accumulate).
|
|
4648
|
+
* - Token delta = 0 when usage is missing — see accounting.ts.
|
|
4649
|
+
* - Wall-time delta is in whole seconds; sub-second drift is dropped.
|
|
4650
|
+
*
|
|
4651
|
+
* NOTE: callers must NOT persist a new lineage entry on every turn —
|
|
4652
|
+
* we only persist on status transitions. The in-progress accounting
|
|
4653
|
+
* lives in memory until the next event. Process exit between turns
|
|
4654
|
+
* loses the in-flight delta; that's an accepted tradeoff to keep
|
|
4655
|
+
* lineage tidy (every turn writing a goal entry would balloon the
|
|
4656
|
+
* file). Re-init from the latest persisted entry on restart.
|
|
4657
|
+
*/
|
|
4658
|
+
declare function applyAccountingDelta(current: KodaXGoalState, usage: KodaXTokenUsage | undefined, wallTimeDeltaSeconds: number, now?: number): ApplyAccountingResult;
|
|
4659
|
+
/**
|
|
4660
|
+
* Transition to `paused`. Allowed only from `active`. Throws on
|
|
4661
|
+
* invalid source state so callers learn about the bug instead of
|
|
4662
|
+
* silently producing a no-op entry.
|
|
4663
|
+
*/
|
|
4664
|
+
declare function buildPausedGoal(current: KodaXGoalState, now?: number): KodaXGoalState;
|
|
4665
|
+
/**
|
|
4666
|
+
* Transition to `active` from `paused`. The reverse of buildPausedGoal.
|
|
4667
|
+
*/
|
|
4668
|
+
declare function buildResumedGoal(current: KodaXGoalState, now?: number): KodaXGoalState;
|
|
4669
|
+
/**
|
|
4670
|
+
* Transition to `blocked` with the validated blocker_kind. Caller MUST
|
|
4671
|
+
* verify the 3-turn rule via `recordBlockerAttempt` BEFORE invoking
|
|
4672
|
+
* this — invoking here unconditionally would let the model rush the
|
|
4673
|
+
* blocked state. Throws when called from a non-active source.
|
|
4674
|
+
*/
|
|
4675
|
+
declare function buildBlockedGoal(current: KodaXGoalState, blockerKind: string, blockerTurnCount: number, now?: number): KodaXGoalState;
|
|
4676
|
+
/**
|
|
4677
|
+
* Transition to `complete`. Caller MUST verify the Sidecar Verifier
|
|
4678
|
+
* has BLESSED the completion BEFORE invoking — see
|
|
4679
|
+
* sidecar-bind.ts (Phase C).
|
|
4680
|
+
*/
|
|
4681
|
+
declare function buildCompleteGoal(current: KodaXGoalState, now?: number): KodaXGoalState;
|
|
4682
|
+
/**
|
|
4683
|
+
* Visible-for-tests: re-export tokenBudget validation so the slash
|
|
4684
|
+
* command can pre-validate user input without instantiating a goal.
|
|
4685
|
+
*/
|
|
4686
|
+
declare function isValidTokenBudget(value: unknown): value is number | null;
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* FEATURE_184 (v0.7.45) — Sidecar Verifier invoker + Stop hook factory.
|
|
4690
|
+
*
|
|
4691
|
+
* Phase D.1 of ADR-030 (claudecode-shape Main Agent + Sidecar Verifier).
|
|
4692
|
+
*
|
|
4693
|
+
* When the Main Agent terminates a turn text-only (no tool_use), the
|
|
4694
|
+
* agent-layer `RunOptions.stopHook` fires. This module:
|
|
4695
|
+
*
|
|
4696
|
+
* 1. Runs a second-pass LLM verification call (independent context,
|
|
4697
|
+
* configurable model — usually a strong family) via
|
|
4698
|
+
* `provider.stream` with a forced `emit_sidecar_verdict` tool call
|
|
4699
|
+
* 2. Maps the 3-state verdict ('accept' / 'revise' / 'blocked') to
|
|
4700
|
+
* the agent-layer `StopHookResult` 3-state surface
|
|
4701
|
+
* (undefined / string / {abort, reason})
|
|
4702
|
+
* 3. Honors a fail-open policy: timeout, provider error, missing tool
|
|
4703
|
+
* call, or parse failure → default `'accept'` (do not block the
|
|
4704
|
+
* happy path)
|
|
4705
|
+
*
|
|
4706
|
+
* **Model selection**: by default the verifier **inherits the Main
|
|
4707
|
+
* Agent's provider+model** (see `verifier-provider-resolver.ts`). The
|
|
4708
|
+
* core architectural value of FEATURE_184 is the Stop-hook shape (out-
|
|
4709
|
+
* of-chain verification after Worker text-only termination, replacing
|
|
4710
|
+
* the in-chain Evaluator role), NOT automatic model-family decoupling.
|
|
4711
|
+
* Users who want to route around model quirks (e.g. zhipu/glm-5.1
|
|
4712
|
+
* intent-vs-action floor, memory: project_feature_167) can opt into
|
|
4713
|
+
* cross-family verification via `KODAX_VERIFIER_PROVIDER` +
|
|
4714
|
+
* `KODAX_VERIFIER_MODEL` env vars — provider injection here is the
|
|
4715
|
+
* indirection that makes that override possible.
|
|
4716
|
+
*
|
|
4717
|
+
* Phase D.1 scope (this commit): substrate module only. The
|
|
4718
|
+
* `createSidecarVerifierStopHook` factory returns a `StopHookFn` but it
|
|
4719
|
+
* is NOT yet wired into `runner-driven.ts`'s `runOnce` RunOptions —
|
|
4720
|
+
* that wiring is Phase D.2 (atomic swap with C.1/C.2/C.3).
|
|
4721
|
+
*
|
|
4722
|
+
* Design references:
|
|
4723
|
+
* - ADR-030 (docs/ADR.md)
|
|
4724
|
+
* - v0.7.45.md §FEATURE_184 Phase D
|
|
4725
|
+
* - F178 stall-sidecar.ts — invocation / fuzzy-match / fail-open patterns
|
|
4726
|
+
*
|
|
4727
|
+
* DI-clean: provider injection is the only external surface. Tests
|
|
4728
|
+
* pass a fake provider returning canned `{textBlocks, toolBlocks}`.
|
|
4729
|
+
*/
|
|
4730
|
+
|
|
4731
|
+
/** Accepted verdict values. Pinned by `VERIFIER_REPORT_TOOL.input_schema`. */
|
|
4732
|
+
type SidecarVerifierVerdictValue = 'accept' | 'revise' | 'blocked';
|
|
4733
|
+
/**
|
|
4734
|
+
* Diagnostic trace tag — explains why the verdict took its final shape.
|
|
4735
|
+
* Not forwarded to the Main Agent; surfaces in spans + tests.
|
|
4736
|
+
*/
|
|
4737
|
+
type SidecarVerifierTrace = 'verifier_ok' | 'fuzzy_tool_match' | 'no_tool_call' | 'invalid_verdict_value' | 'missing_reason' | 'provider_error' | 'timeout';
|
|
4738
|
+
/**
|
|
4739
|
+
* Verifier's structured output. `verdict='accept'` is the safe-default:
|
|
4740
|
+
* any parse failure, timeout, provider error, or schema violation lands
|
|
4741
|
+
* here so the Main Agent's happy path is never blocked by a buggy
|
|
4742
|
+
* verifier.
|
|
4743
|
+
*/
|
|
4744
|
+
interface SidecarVerifierVerdict {
|
|
4745
|
+
readonly verdict: SidecarVerifierVerdictValue;
|
|
4746
|
+
/**
|
|
4747
|
+
* For 'revise': becomes the synthetic user-message follow-up the Main
|
|
4748
|
+
* Agent sees. For 'blocked': shown to the user verbatim. For 'accept':
|
|
4749
|
+
* may be empty or carry a one-line note (currently unused by Stop hook
|
|
4750
|
+
* mapping).
|
|
4751
|
+
*/
|
|
4752
|
+
readonly reason: string;
|
|
4753
|
+
/** Optional one-line how-to-fix hint. */
|
|
4754
|
+
readonly suggestedFix?: string;
|
|
4755
|
+
/** Diagnostic only — not forwarded to Main Agent. */
|
|
4756
|
+
readonly trace: SidecarVerifierTrace;
|
|
4757
|
+
}
|
|
4758
|
+
interface SidecarVerifierContextInputs {
|
|
4759
|
+
/** All user-role messages emitted during the CURRENT turn — kept in full. */
|
|
4760
|
+
readonly currentTurnUserQueries: readonly string[];
|
|
4761
|
+
/** Rolling window of recent transcript messages (recommend last 24). */
|
|
4762
|
+
readonly recentTranscript: readonly KodaXMessage[];
|
|
4763
|
+
/**
|
|
4764
|
+
* Summary of file edits performed THIS turn — paths + truncated diff
|
|
4765
|
+
* hints. Critical: verifier must see WHAT the agent changed, not just
|
|
4766
|
+
* what the agent CLAIMED it changed. Without this, prompt drift
|
|
4767
|
+
* ("done!" with no actual edits) is invisible.
|
|
4768
|
+
*/
|
|
4769
|
+
readonly fileEditSummary: readonly {
|
|
4770
|
+
readonly path: string;
|
|
4771
|
+
readonly diffHint: string;
|
|
4772
|
+
}[];
|
|
4773
|
+
/** The exact text the Main Agent emitted as its final answer. */
|
|
4774
|
+
readonly lastAssistantText: string;
|
|
4775
|
+
}
|
|
4776
|
+
interface SidecarVerifierInvokeOptions {
|
|
4777
|
+
/** Provider used for the verifier call. Often a stronger model than
|
|
4778
|
+
* the Main Agent's. Injection target = test fakes + production
|
|
4779
|
+
* resolution from `verifier-provider-resolver.ts`. */
|
|
4780
|
+
readonly provider: KodaXBaseProvider;
|
|
4781
|
+
/** Specific model id on the provider. When omitted, the provider's
|
|
4782
|
+
* registered default model is used. Production wiring passes the
|
|
4783
|
+
* resolved model string from `resolveVerifierProvider()` so model
|
|
4784
|
+
* selection is explicit (rather than implicitly inheriting whatever
|
|
4785
|
+
* default model the provider happens to ship). */
|
|
4786
|
+
readonly model?: string;
|
|
4787
|
+
/** Verifier context built by the caller (`buildVerifierContext`). */
|
|
4788
|
+
readonly inputs: SidecarVerifierContextInputs;
|
|
4789
|
+
/** Timeout in ms. Default 15000 (verification is heavier than F178
|
|
4790
|
+
* anomaly detection's 5s budget). */
|
|
4791
|
+
readonly timeoutMs?: number;
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
/**
|
|
4795
|
+
* FEATURE_192 v0.7.44 Phase C — Sidecar Verifier bind for goal complete.
|
|
4796
|
+
*
|
|
4797
|
+
* `update_goal({status:'complete'})` cannot trust the model's claim
|
|
4798
|
+
* alone — same problem domain as F184 Sidecar Verifier (text-only
|
|
4799
|
+
* termination that says "done!" with no actual progress). We reuse the
|
|
4800
|
+
* F184 public surface (`invokeSidecarVerifier`) and feed it a custom
|
|
4801
|
+
* context describing the goal's CURRENT objective + the recent
|
|
4802
|
+
* transcript window.
|
|
4803
|
+
*
|
|
4804
|
+
* Why a separate bind (not just wire F184's stop hook here):
|
|
4805
|
+
* - F184 fires on EVERY text-only termination; we only need to fire
|
|
4806
|
+
* on explicit complete claims.
|
|
4807
|
+
* - F184's context is "did the agent do what the LAST user message
|
|
4808
|
+
* asked for?" We need "did the agent achieve the GOAL OBJECTIVE?"
|
|
4809
|
+
* - The verdict mapping differs: F184 maps accept→stop, revise→
|
|
4810
|
+
* reanimate, blocked→halt. Goal-complete only cares about
|
|
4811
|
+
* accept (transition allowed) vs anything-else (rejection with
|
|
4812
|
+
* reason).
|
|
4813
|
+
*
|
|
4814
|
+
* **This module is the integration boundary; actual provider wiring
|
|
4815
|
+
* lives in Phase D (REPL adapter) where verifier-provider-resolver is
|
|
4816
|
+
* resolvable.** Phase C exposes the pure async function and an
|
|
4817
|
+
* adapter shape that the REPL can inject.
|
|
4818
|
+
*/
|
|
4819
|
+
|
|
4820
|
+
/**
|
|
4821
|
+
* The Phase D REPL adapter supplies this function. It pairs the
|
|
4822
|
+
* resolved verifier provider with a freshly-built context snapshot
|
|
4823
|
+
* for the moment the tool fired.
|
|
4824
|
+
*/
|
|
4825
|
+
type GoalCompletionVerifier = (options: SidecarVerifierInvokeOptions) => Promise<SidecarVerifierVerdict>;
|
|
4826
|
+
interface VerifyGoalCompletionOptions {
|
|
4827
|
+
readonly goal: KodaXGoalState;
|
|
4828
|
+
readonly recentTranscript: readonly KodaXMessage[];
|
|
4829
|
+
readonly lastAssistantText: string;
|
|
4830
|
+
readonly currentTurnUserQueries: readonly string[];
|
|
4831
|
+
readonly fileEditSummary: readonly {
|
|
4832
|
+
readonly path: string;
|
|
4833
|
+
readonly diffHint: string;
|
|
4834
|
+
}[];
|
|
4835
|
+
/** The resolved provider — Phase D wires this from
|
|
4836
|
+
* `verifier-provider-resolver.ts`. Same provider F184 uses. */
|
|
4837
|
+
readonly invokeVerifier: GoalCompletionVerifier;
|
|
4838
|
+
readonly providerInvocation: Omit<SidecarVerifierInvokeOptions, 'inputs'>;
|
|
4839
|
+
}
|
|
4840
|
+
/**
|
|
4841
|
+
* Verify the agent's claim of goal completion via the F184 Sidecar
|
|
4842
|
+
* Verifier. Returns `{ok:true}` only on `accept`; on `revise`,
|
|
4843
|
+
* `blocked`, or any internal error/timeout, returns `{ok:false}` with
|
|
4844
|
+
* the verifier's reason + optional suggestedFix.
|
|
4845
|
+
*
|
|
4846
|
+
* Custom context wrap: we prepend a synthetic "current turn user
|
|
4847
|
+
* query" describing the goal's objective. This is the key hack — the
|
|
4848
|
+
* F184 verifier expects to see a user query AND an assistant claim;
|
|
4849
|
+
* for goal-complete the implicit "user query" is "achieve <objective>".
|
|
4850
|
+
*/
|
|
4851
|
+
declare function verifyGoalCompletion(options: VerifyGoalCompletionOptions): Promise<GoalCompleteResult>;
|
|
4852
|
+
|
|
4853
|
+
/** Environment variable that disables tracing activation when set to `'0'`. */
|
|
4854
|
+
declare const TRACING_ENV = "KODAX_TRACING";
|
|
4855
|
+
interface BootstrapTracingOptions {
|
|
4856
|
+
/**
|
|
4857
|
+
* Override the trace output directory. Defaults to `<config home>/.traces`
|
|
4858
|
+
* (i.e. `~/.kodax/.traces` unless `KODAX_HOME` is set).
|
|
4859
|
+
*/
|
|
4860
|
+
readonly traceDir?: string;
|
|
4861
|
+
}
|
|
4862
|
+
/**
|
|
4863
|
+
* Register the `FileTracingProcessor` so production spans are persisted to
|
|
4864
|
+
* disk. Idempotent — a second call returns the existing dispose without
|
|
4865
|
+
* registering another processor. Returns a dispose function that unregisters
|
|
4866
|
+
* the processor (used by graceful shutdown and tests), or `undefined` — a
|
|
4867
|
+
* no-op — when tracing is disabled via `KODAX_TRACING=0`.
|
|
4868
|
+
*/
|
|
4869
|
+
declare function bootstrapTracing(opts?: BootstrapTracingOptions): (() => void) | undefined;
|
|
4870
|
+
|
|
4871
|
+
export { Agent, AgentMessage, AutoRules, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, 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, 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, EMIT_VERDICT_TOOL_NAME, ErrorCategory, FailureStage, GENERATOR_AGENT_NAME, GoalCompleteResult, KODAX_TOOLS, KodaXAmaControllerDecision, KodaXBaseProvider, KodaXChildContextBundle, KodaXClient, KodaXContentBlock, KodaXContextOptions, KodaXEvents, KodaXExecutionMode, KodaXExtensionRuntime, KodaXExtensionSessionRecord, KodaXFanoutBranchRecord, KodaXFanoutBranchTransition, KodaXFanoutSchedulerInput, KodaXFanoutSchedulerPlan, KodaXInputArtifact, KodaXJsonValue, KodaXMessage, KodaXOptions, KodaXParentReductionContract, KodaXProviderCapabilityProfile, KodaXProviderPolicyHints, KodaXReasoningCapability, KodaXReasoningMode, KodaXRepoIntelligenceCapability, KodaXRepoIntelligenceMode, KodaXRepoIntelligenceResolvedMode, KodaXRepoIntelligenceTrace, KodaXRepoRoutingSignals, KodaXResult, KodaXSessionControl, KodaXSessionError, KodaXSessionMutators, KodaXTaskRoutingDecision, KodaXTaskType, KodaXTerminalError, KodaXThinkingDepth, KodaXTokenUsage, KodaXToolDefinition, KodaXToolError, KodaXToolExecutionContext, KodaXToolUseBlock, McpCapabilityProvider, McpProviderOptions, 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, REPOINTEL_DEFAULT_ENDPOINT, RecoveryDecision, RecoveryResult, ResilienceClassification, SCOUT_AGENT_NAME, SYSTEM_PROMPT, SessionErrorMetadata, SignalCollector, StableBoundaryTracker, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, ToolCallSignal, WORKER_AGENT_NAME, _resetRuntimeForTesting, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyFanoutBranchTransition, applyToolResultGuardrail, assignFanoutBranchWorker, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildAmaControllerDecision, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildFanoutSchedulerPlan, buildLlmReviewPrompt, buildPausedGoal, buildPromptMessageContent, buildPromptOverlay, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildSystemPrompt, buildSystemPromptSnapshot, checkAbsoluteDeny, checkIncompleteToolCalls, checkPromiseSignal, classify, classifyBashCommand, classifyError, classifyResilienceError, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, countActiveFanoutBranches, createBashClassifierConfig, createBuiltinToolDefinition, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createFanoutSchedulerInput, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createSessionControl, createToolResultTruncationGuardrail, defaultPolicy, disableSelfModify, discoverMarkdownAgents, drainPendingSwaps, emitVerdict, evaluateProviderPolicy, exec, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, formatParallelDispatchResult, formatSize, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getDenialContext, getFanoutBranch, getImpactEstimate, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, goalTokenDelta, hasPendingSwap, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, isDeniedRecently, isParallelDispatchDirective, isToolFileMutation, isToolMutation, isToolPlanModeAllowed, isValidTokenBudget, listAll, list as listArtifacts, listBuiltinToolDefinitions, listConstructed, listToolDefinitions, listTools, loadAgentsFromMarkdown, loadHandler, markFanoutBranchCancelled, markFanoutBranchCompleted, orderPromptSections, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, persistToolOutput, prewarmRepoIntelligenceCaches, readArtifact, readAuditEntries, readBudget, readDisableState, readWindowFromEnv as readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remaining as remainingSelfModifyBudget, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveConstructedAgent, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolCapability, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, setActiveExtensionRuntime, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, stripAssistantText, stripHtmlToText, test as testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, warmRepoIntelligenceRuntime, webhook, workerAgent };
|
|
4872
|
+
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, ConstructionArtifact, ConstructionPolicy, ConstructionPolicyVerdict, CreateCtxProxyOptions, CreateKodaXTaskRunnerOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EditRecoveryDiagnostic, EditToolErrorCode, ErrorClassification, ExecOptions, ExecResult, ExtensionCommandContext, ExtensionCommandDefinition, ExtensionCommandInvocation, ExtensionCommandResult, ExtensionContributionSource, ExtensionEventMap, ExtensionFailureDiagnostic, ExtensionFailureStage, ExtensionHookMap, ExtensionLoadSource, ExtensionLogger, ExtensionRuntimeController, ExtensionRuntimeDiagnostics, ExtensionToolBeforeHookContext, GoalCompletionVerifier, ImpactEstimateResult, 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, LoadHandlerOptions, LoadHandlerScope, LoadedExtensionDiagnostic, LocalToolDefinition, MarkdownLoadFailure, ModelProviderRegistration, ModuleCapsule, ModuleContextResult, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, ParallelDispatchDirective, ParallelDispatchResult, ParallelSubtask, ParsedModelSpec, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, RegisteredCapabilityProviderDiagnostic, RegisteredCommandDiagnostic, RegisteredHookDiagnostic, RegisteredToolDefinition, RegisteredToolDiagnostic, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoIntelligenceRuntimeWarmResult, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, RollbackResult, RunningSession, SchemaProvider, SchemaValidationResult, ScriptSource, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SpeculativeResult, StagedHandle, StripOptions, SymbolContextResult, TestArtifactOptions, TestResult, TierZeroPatternId, ToolContent, ToolDefinitionSource, ToolHandler, ToolRegistrationOptions, ToolRegistry, ToolSideEffect, VerifyGoalCompletionOptions, WebhookOptions, WebhookResult };
|
package/dist/sdk-coding.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as Wr,$a as We,$b as Xf,$c as Xm,A as ur,Aa as ue,Ab as vf,Ac as vm,Ad as vp,B as vr,Ba as ve,Bb as wf,Bc as wm,Bd as wp,C as wr,Ca as we,Cb as yf,Cc as ym,Cd as yp,D as yr,Da as ye,Db as zf,Dc as zm,Dd as zp,E as zr,Ea as ze,Eb as Af,Ec as Am,Ed as Ap,F as Ar,Fa as Ae,Fb as Bf,Fc as Bm,Fd as Bp,G as Br,Ga as Be,Gb as Cf,Gc as Cm,Gd as Cp,H as Cr,Ha as Ce,Hb as Df,Hc as Dm,I as Dr,Ia as De,Ib as Ef,Ic as Em,J as Er,Ja as Ee,Jb as Ff,Jc as Fm,K as Fr,Ka as Fe,Kb as Gf,Kc as Gm,L as Gr,La as Ge,Lb as Hf,Lc as Hm,M as Hr,Ma as He,Mb as If,Mc as Im,N as Ir,Na as Ie,Nb as Jf,Nc as Jm,O as Jr,Oa as Je,Ob as Kf,Oc as Km,P as Kr,Pa as Ke,Pb as Lf,Pc as Lm,Q as Lr,Qa as Le,Qb as Mf,Qc as Mm,R as Mr,Ra as Me,Rb as Nf,Rc as Nm,S as Nr,Sa as Ne,Sb as Of,Sc as Om,T as Or,Ta as Oe,Tb as Pf,Tc as Pm,U as Pr,Ua as Pe,Ub as Qf,Uc as Qm,V as Qr,Va as Qe,Vb as Rf,Vc as Rm,W as Rr,Wa as Re,Wb as Sf,Wc as Sm,X as Sr,Xa as Se,Xb as Tf,Xc as Tm,Y as Tr,Ya as Te,Yb as Uf,Yc as Um,Z as Ur,Za as Ue,Zb as Vf,Zc as Vm,_ as Vr,_a as Ve,_b as Wf,_c as Wm,a as X,aa as Xr,ab as Xe,ac as Yf,ad as Ym,b as Y,ba as Yr,bb as Ye,bc as Zf,bd as Zm,c as Z,ca as Zr,cb as Ze,cc as _f,cd as _m,d as _,da as _r,db as _e,dc as $f,dd as $m,e as $,ea as $r,eb as $e,ec as om,ed as op,f as or,fa as oe,fb as of,fc as rm,fd as rp,g as rr,ga as re,gb as rf,gc as em,gd as ep,h as er,ha as ee,hb as ef,hc as fm,hd as fp,i as fr,ia as fe,ib as ff,ic as mm,id as mp,j as mr,ja as me,jb as mf,jc as pm,jd as pp,k as pr,ka as pe,kb as pf,kc as tm,kd as tp,l as tr,la as te,lb as tf,lc as xm,ld as xp,m as xr,ma as xe,mb as xf,mc as am,md as ap,n as ar,na as ae,nb as af,nc as bm,nd as bp,o as br,oa as be,ob as bf,oc as cm,od as cp,p as cr,pa as ce,pb as cf,pc as dm,pd as dp,q as dr,qa as de,qb as df,qc as gm,qd as gp,r as gr,ra as ge,rb as gf,rc as hm,rd as hp,s as hr,sa as he,sb as hf,sc as im,sd as ip,t as ir,ta as ie,tb as jf,tc as jm,td as jp,u as jr,ua as je,ub as kf,uc as km,ud as kp,v as kr,va as ke,vb as lf,vc as lm,vd as lp,w as lr,wa as le,wb as nf,wc as nm,wd as np,x as nr,xa as ne,xb as qf,xc as qm,xd as qp,y as qr,ya as qe,yb as sf,yc as sm,yd as sp,z as sr,za as se,zb as uf,zc as um,zd as up}from"./chunks/chunk-7G5PSL6C.js";import{$ as A,C as c,I as d,J as g,O as h,P as i,Q as j,R as k,S as l,T as n,U as q,V as s,W as u,X as v,Y as w,Z as y,_ as z,a as o,aa as B,b as r,ba as C,c as e,ca as D,da as E,ea as F,fa as G,ga as H,ha as I,ia as J,j as f,ja as K,ka as L,la as M,ma as N,na as O,oa as P,pa as Q,qa as R,ra as S,sa as T,t as m,ta as U,u as p,ua as V,v as t,va as W,w as x,x as a,y as b}from"./chunks/chunk-K75O2CAE.js";import{$b as Lo,Xa as vo,Ya as wo,Yb as Io,Zb as Jo,_b as Ko,a as oo,ac as Mo,b as ro,c as eo,d as fo,e as mo,f as po,h as to,hc as No,i as xo,ic as Oo,j as ao,jc as Po,k as bo,ka as ko,kb as yo,kc as Qo,l as co,lb as zo,lc as Ro,m as go,mb as Ao,mc as So,n as ho,na as lo,nb as Bo,nc as To,o as io,ob as Co,p as jo,pb as Do,pc as Uo,qb as Eo,qc as Vo,rb as Fo,rc as Wo,sb as Go,sc as Xo,tb as Ho,tc as Yo,ua as no,uc as Zo,va as qo,wa as so,xa as uo,xc as _o,yc as $o}from"./chunks/chunk-VHKAJDQD.js";import"./chunks/chunk-V4WSBIXB.js";export{pp as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,tp as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Ap as BASH_POLICY_SPEC,dp as BREAKER_ERROR_THRESHOLD,gp as BREAKER_WINDOW_MS,rr as CANCELLED_TOOL_RESULT_MESSAGE,or as CANCELLED_TOOL_RESULT_PREFIX,Xm as CODING_AGENT_MARKER,km as CODING_INVARIANTS,pm as CODING_SUMMARY_PROMPT,tm as CODING_UPDATE_SUMMARY_PROMPT,Be as CapabilityDeniedError,nm as Client,Ce as ConstructionManifestError,xm as DEFAULT_CODING_AGENT_NAME,Mm as DEFAULT_DANGEROUS_PATTERNS,ze as DEFAULT_HANDLER_TIMEOUT_MS,Pf as DEFAULT_RESILIENCE_CONFIG,Lm as DEFAULT_SAFE_PATTERNS,Me as DEFAULT_SELF_MODIFY_BUDGET,vp as DEFAULT_SPECULATIVE_WINDOW_MS,fr as DEFAULT_TOOL_OUTPUT_MAX_BYTES,er as DEFAULT_TOOL_OUTPUT_MAX_LINES,jo as DefaultSummaryCompaction,Um as EMIT_VERDICT_TOOL_NAME,_ as ErrorCategory,ke as GENERATOR_AGENT_NAME,xo as KODAX_API_MIN_INTERVAL,j as KODAX_DEFAULT_PROVIDER,ro as KODAX_DEFAULT_TIMEOUT,eo as KODAX_HARD_TIMEOUT,po as KODAX_MAX_INCOMPLETE_RETRIES,fo as KODAX_MAX_RETRIES,oo as KODAX_MAX_TOKENS,i as KODAX_PROVIDERS,h as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,mo as KODAX_RETRY_BASE_DELAY,to as KODAX_STAGGER_DELAY,bf as KODAX_TOOLS,d as KodaXAnthropicCompatProvider,c as KodaXBaseProvider,nm as KodaXClient,o as KodaXError,pf as KodaXExtensionRuntime,g as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,Y as KodaXSessionError,Z as KodaXTerminalError,X as KodaXToolError,Io as LINEAGE_ENTRY_TYPES,Ko as LineageCompaction,Jo as LineageExtension,Fo as McpCapabilityProvider,Go as McpManager,Eo as McpServerRuntime,je as PLANNER_AGENT_NAME,ao as PROMISE_PATTERN,Df as PROMPT_SECTION_REGISTRY,Wm as PROTOCOL_EMITTER_TOOLS,Uf as ProviderRecoveryCoordinator,mr as READ_DEFAULT_LIMIT,tr as READ_MAX_LINE_CHARS,pr as READ_PREFLIGHT_SIZE_BYTES,Kr as REPOINTEL_DEFAULT_ENDPOINT,lo as Runner,ie as SCOUT_AGENT_NAME,Cf as SYSTEM_PROMPT,Sf as StableBoundaryTracker,qe as TASK_ENGINE_ROLE_AGENTS,Bm as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,le as WORKER_AGENT_NAME,Te as _resetRuntimeForTesting,We as activate,Br as analyzeChangedScope,Ke as appendAuditEntry,So as appendSessionLineageLabel,wm as applyFanoutBranchTransition,To as applySessionCompaction,oe as applyToolResultGuardrail,Zo as archiveOldIslands,ym as assignFanoutBranchWorker,cp as autoModeDenialShouldFallback,qp as bashSignalCollector,gm as boundedRevise,jp as breakerShouldFallback,hm as budgetCeiling,rm as buildAmaControllerDecision,If as buildCapabilityContextSections,Ym as buildClassifierPrompt,$f as buildFallbackRoutingDecision,sm as buildFanoutSchedulerPlan,He as buildLlmReviewPrompt,Mf as buildPromptMessageContent,em as buildPromptOverlay,Hf as buildPromptSnapshot,Vf as buildProviderCapabilitySnapshot,om as buildProviderPolicyHintsForDecision,Wf as buildProviderPolicyPromptNotes,t as buildReasoningOverrideKey,Ar as buildRepoIntelligenceContext,Pr as buildRepoIntelligenceIndex,wr as buildRepoOverview,Xo as buildSessionTree,Kf as buildSystemPrompt,Jf as buildSystemPromptSnapshot,np as checkAbsoluteDeny,Lf as checkIncompleteToolCalls,mm as checkPromiseSignal,_m as classify,Om as classifyBashCommand,$ as classifyError,Rf as classifyResilienceError,wo as cleanupIncompleteToolCalls,b as clearReasoningOverride,Q as clearRuntimeModelProviders,up as collectAllSignals,Qm as computeInputSignature,$m as computeRulesFingerprint,Se as configureRuntime,me as convertCapabilityReadResult,fe as convertProviderSearchResults,vm as countActiveFanoutBranches,Yo as countActiveLineageMessages,co as countTokens,go as createAgent,xp as createAutoModeDenialTracker,zp as createAutoModeToolGuardrail,Nm as createBashClassifierConfig,Cp as createBashPrefixExtractor,nf as createBuiltinToolDefinition,hp as createCircuitBreaker,De as createCtxProxy,C as createCustomProvider,am as createDefaultCodingAgent,Pm as createDenialTracker,tf as createExtensionRuntime,qm as createFanoutSchedulerInput,ho as createHandoff,io as createInMemorySession,Hm as createKodaXTaskRunner,zo as createMcpCapabilityId,Ho as createMcpManager,Do as createMcpTransport,Ef as createPromptSection,fm as createReasoningPlan,cm as createSessionControl,No as createSessionLineage,Cm as createToolResultTruncationGuardrail,yo as defaultMcpCacheDir,Ae as defaultPolicy,Re as disableSelfModify,ff as discoverMarkdownAgents,ve as drainPendingSwaps,Vm as emitVerdict,bo as estimateTokens,Xf as evaluateProviderPolicy,we as exec,Bf as executeTool,_o as extractArtifactLedger,Bp as extractCommandPrefix,Of as extractComparableUserMessageText,ee as extractHtmlTitle,Nf as extractPromptComparableText,Mo as extractTitleFromMessages,sp as fileSignalCollector,te as finalizeRetrievalResult,of as findByVersion,Uo as findPreviousUserEntryId,Wo as forkSessionLineage,he as formatAgentsForPrompt,Jm as formatParallelDispatchResult,xr as formatSize,Lo as generateSessionId,af as getActiveExtensionRuntime,qo as getAgentConfigHome,so as getAgentConfigPath,sf as getAllRegisteredTools,uo as getAppDataDir,T as getAvailableProviderNames,lf as getBuiltinRegisteredToolDefinition,kf as getBuiltinToolDefinition,K as getCustomModelCapabilities,E as getCustomProvider,H as getCustomProviderList,J as getCustomProviderModelDescriptors,I as getCustomProviderModels,G as getCustomProviderNames,Tm as getDenialContext,um as getFanoutBranch,Ur as getImpactEstimate,de as getKodaxGlobalDir,Co as getMcpCachePaths,z as getModelCapabilities,Rr as getModuleContext,Tr as getProcessContext,k as getProvider,s as getProviderConfiguredCapabilityProfile,q as getProviderConfiguredReasoningCapability,u as getProviderList,n as getProviderModel,y as getProviderModelDescriptors,v as getProviderModels,hf as getRegisteredToolDefinition,Qr as getRepoIntelligenceIndex,yr as getRepoOverview,Vr as getRepoRoutingSignals,yf as getRequiredToolParams,N as getRuntimeModelProvider,P as getRuntimeModelProviderNames,Oo as getSessionLineagePath,Po as getSessionMessagesFromLineage,Sr as getSymbolContext,df as getTool,gf as getToolDefinition,jf as getToolRegistrations,$r as getToolResultPolicy,ue as hasPendingSwap,_f as inferTaskType,kr as inspectEditFailure,Nr as inspectRepoIntelligenceRuntime,F as isCustomProviderName,Sm as isDeniedRecently,S as isKnownProvider,Im as isParallelDispatchDirective,l as isProviderConfigured,w as isProviderName,O as isRuntimeModelProviderName,vf as isToolFileMutation,wf as isToolMutation,uf as isToolPlanModeAllowed,rf as listAll,W as listAllModelCapabilities,Ze as listArtifacts,A as listBuiltinModelCapabilities,qf as listBuiltinToolDefinitions,$e as listConstructed,L as listCustomProviderModelCapabilities,Af as listToolDefinitions,zf as listTools,ge as loadAgentsFiles,ef as loadAgentsFromMarkdown,fp as loadAutoRules,Ee as loadHandler,x as loadReasoningOverride,Am as markFanoutBranchCancelled,zm as markFanoutBranchCompleted,$o as mergeArtifactLedger,Ff as orderPromptSections,ep as parseAutoRules,Zm as parseClassifierOutput,jr as parseEditToolError,Ie as parseLlmReviewVerdict,Ao as parseMcpCapabilityId,kp as parseModelSpec,dr as persistToolOutput,Wr as prewarmRepoIntelligenceCaches,_e as readArtifact,Le as readAuditEntries,Ne as readBudget,Qe as readDisableState,wp as readSpeculativeWindowFromEnv,op as readTrustState,m as reasoningCapabilityToOverride,Zf as reasoningModeToDepth,p as reasoningOverrideToCapability,Tf as reconstructMessagesWithToolGuard,bp as recordAutoModeAllow,ap as recordAutoModeBlock,ip as recordBreakerError,Rm as recordDenial,lm as registerCodingInvariants,Em as registerConfiguredMcpCapabilityProvider,D as registerCustomProviders,M as registerModelProvider,Fm as registerOfficialSandboxExtension,ko as registerPresetDispatcher,cf as registerTool,Xe as rehydrateActiveArtifacts,Oe as remainingSelfModifyBudget,Cr as renderChangedScope,Jr as renderImpactEstimate,Gr as renderModuleContext,Ir as renderProcessContext,Gf as renderPromptSections,zr as renderRepoOverview,pe as renderRetrievalResult,Hr as renderSymbolContext,Pe as resetBudget,lp as resolveClassifierModel,se as resolveConstructedAgent,V as resolveModelCapabilities,R as resolveProvider,U as resolveProviderModelDescriptors,Yf as resolveReasoningMode,Mr as resolveRepoIntelligenceMode,Lr as resolveRepoIntelligenceRuntimeConfig,Qf as resolveResilienceConfig,Qo as resolveSessionLineageTarget,im as resolveToolCapability,Ye as revoke,Vo as rewindSessionLineage,mf as rollbackSelfModify,Fe as runAstRules,bm as runKodaX,Je as runLlmReview,Dm as runManagedTask,Gm as runOrchestration,a as saveReasoningOverride,Bo as searchMcpCatalog,xf as setActiveExtensionRuntime,no as setAgentConfigHome,Ro as setSessionLineageActiveEntry,yp as speculativeRace,Ue as stage,dm as startKodaX,mp as stripAssistantText,re as stripHtmlToText,Ve as testArtifact,vr as toolAskUserQuestion,nr as toolBash,Fr as toolChangedDiff,Er as toolChangedScope,be as toolCodeSearch,ir as toolEdit,qr as toolGlob,sr as toolGrep,_r as toolImpactEstimate,lr as toolInsertAfterAnchor,Xr as toolModuleContext,jm as toolPermission,Zr as toolProcessContext,gr as toolRead,Dr as toolRepoOverview,ce as toolSemanticLookup,Yr as toolSymbolContext,ur as toolUndo,ae as toolWebFetch,xe as toolWebSearch,hr as toolWrite,ar as truncateHead,cr as truncateLine,br as truncateTail,rp as trustProjectRules,vo as validateAndFixToolHistory,B as validateCustomProviderConfig,Km as validateSubtaskIndependence,Ge as validateToolSchemaForProvider,Or as warmRepoIntelligenceRuntime,ye as webhook,ne as workerAgent};
|
|
2
|
+
import{$ as Wr,$a as We,$b as Xf,$c as Xm,A as ur,Aa as ue,Ab as vf,Ac as vm,Ad as vp,B as vr,Ba as ve,Bb as wf,Bc as wm,Bd as wp,C as wr,Ca as we,Cb as yf,Cc as ym,Cd as yp,D as yr,Da as ye,Db as zf,Dc as zm,Dd as zp,E as zr,Ea as ze,Eb as Af,Ec as Am,Ed as Ap,F as Ar,Fa as Ae,Fb as Bf,Fc as Bm,Fd as Bp,G as Br,Ga as Be,Gb as Cf,Gc as Cm,Gd as Cp,H as Cr,Ha as Ce,Hb as Df,Hc as Dm,Hd as Dp,I as Dr,Ia as De,Ib as Ef,Ic as Em,Id as Ep,J as Er,Ja as Ee,Jb as Ff,Jc as Fm,Jd as Fp,K as Fr,Ka as Fe,Kb as Gf,Kc as Gm,Kd as Gp,L as Gr,La as Ge,Lb as Hf,Lc as Hm,Ld as Hp,M as Hr,Ma as He,Mb as If,Mc as Im,Md as Ip,N as Ir,Na as Ie,Nb as Jf,Nc as Jm,Nd as Jp,O as Jr,Oa as Je,Ob as Kf,Oc as Km,Od as Kp,P as Kr,Pa as Ke,Pb as Lf,Pc as Lm,Pd as Lp,Q as Lr,Qa as Le,Qb as Mf,Qc as Mm,Qd as Mp,R as Mr,Ra as Me,Rb as Nf,Rc as Nm,Rd as Np,S as Nr,Sa as Ne,Sb as Of,Sc as Om,Sd as Op,T as Or,Ta as Oe,Tb as Pf,Tc as Pm,Td as Pp,U as Pr,Ua as Pe,Ub as Qf,Uc as Qm,Ud as Qp,V as Qr,Va as Qe,Vb as Rf,Vc as Rm,Vd as Rp,W as Rr,Wa as Re,Wb as Sf,Wc as Sm,Wd as Sp,X as Sr,Xa as Se,Xb as Tf,Xc as Tm,Xd as Tp,Y as Tr,Ya as Te,Yb as Uf,Yc as Um,Yd as Up,Z as Ur,Za as Ue,Zb as Vf,Zc as Vm,Zd as Vp,_ as Vr,_a as Ve,_b as Wf,_c as Wm,_d as Wp,a as X,aa as Xr,ab as Xe,ac as Yf,ad as Ym,b as Y,ba as Yr,bb as Ye,bc as Zf,bd as Zm,c as Z,ca as Zr,cb as Ze,cc as _f,cd as _m,d as _,da as _r,db as _e,dc as $f,dd as $m,e as $,ea as $r,eb as $e,ec as om,ed as op,f as or,fa as oe,fb as of,fc as rm,fd as rp,g as rr,ga as re,gb as rf,gc as em,gd as ep,h as er,ha as ee,hb as ef,hc as fm,hd as fp,i as fr,ia as fe,ib as ff,ic as mm,id as mp,j as mr,ja as me,jb as mf,jc as pm,jd as pp,k as pr,ka as pe,kb as pf,kc as tm,kd as tp,l as tr,la as te,lb as tf,lc as xm,ld as xp,m as xr,ma as xe,mb as xf,mc as am,md as ap,n as ar,na as ae,nb as af,nc as bm,nd as bp,o as br,oa as be,ob as bf,oc as cm,od as cp,p as cr,pa as ce,pb as cf,pc as dm,pd as dp,q as dr,qa as de,qb as df,qc as gm,qd as gp,r as gr,ra as ge,rb as gf,rc as hm,rd as hp,s as hr,sa as he,sb as hf,sc as im,sd as ip,t as ir,ta as ie,tb as jf,tc as jm,td as jp,u as jr,ua as je,ub as kf,uc as km,ud as kp,v as kr,va as ke,vb as lf,vc as lm,vd as lp,w as lr,wa as le,wb as nf,wc as nm,wd as np,x as nr,xa as ne,xb as qf,xc as qm,xd as qp,y as qr,ya as qe,yb as sf,yc as sm,yd as sp,z as sr,za as se,zb as uf,zc as um,zd as up}from"./chunks/chunk-X6EHEQWP.js";import{$ as A,C as c,I as d,J as g,O as h,P as i,Q as j,R as k,S as l,T as n,U as q,V as s,W as u,X as v,Y as w,Z as y,_ as z,a as o,aa as B,b as r,ba as C,c as e,ca as D,da as E,ea as F,fa as G,ga as H,ha as I,ia as J,j as f,ja as K,ka as L,la as M,ma as N,na as O,oa as P,pa as Q,qa as R,ra as S,sa as T,t as m,ta as U,u as p,ua as V,v as t,va as W,w as x,x as a,y as b}from"./chunks/chunk-PGF5EZ7C.js";import{$a as vo,Fc as _o,Gc as $o,a as oo,ab as wo,ac as Io,b as ro,bc as Jo,c as eo,cc as Ko,d as fo,dc as Lo,e as mo,ec as Mo,f as po,h as to,i as xo,j as ao,k as bo,ka as ko,l as co,lc as No,m as go,mc as Oo,n as ho,na as lo,nc as Po,o as io,ob as yo,oc as Qo,p as jo,pb as zo,pc as Ro,qb as Ao,qc as So,rb as Bo,rc as To,sb as Co,tb as Do,tc as Uo,ua as no,ub as Eo,uc as Vo,va as qo,vb as Fo,vc as Wo,wa as so,wb as Go,wc as Xo,xa as uo,xb as Ho,xc as Yo,yc as Zo}from"./chunks/chunk-IJUB7QXG.js";import"./chunks/chunk-V4WSBIXB.js";export{wp as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,yp as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Sp as BASH_POLICY_SPEC,Qm as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,Dp as BREAKER_ERROR_THRESHOLD,Ep as BREAKER_WINDOW_MS,rr as CANCELLED_TOOL_RESULT_MESSAGE,or as CANCELLED_TOOL_RESULT_PREFIX,hp as CODING_AGENT_MARKER,Bm as CODING_INVARIANTS,km as CODING_SUMMARY_PROMPT,lm as CODING_UPDATE_SUMMARY_PROMPT,Me as CapabilityDeniedError,Dm as Client,Ne as ConstructionManifestError,nm as DEFAULT_CODING_AGENT_NAME,ep as DEFAULT_DANGEROUS_PATTERNS,Ke as DEFAULT_HANDLER_TIMEOUT_MS,_f as DEFAULT_RESILIENCE_CONFIG,rp as DEFAULT_SAFE_PATTERNS,Xe as DEFAULT_SELF_MODIFY_BUDGET,Op as DEFAULT_SPECULATIVE_WINDOW_MS,fr as DEFAULT_TOOL_OUTPUT_MAX_BYTES,er as DEFAULT_TOOL_OUTPUT_MAX_LINES,jo as DefaultSummaryCompaction,cp as EMIT_VERDICT_TOOL_NAME,_ as ErrorCategory,ke as GENERATOR_AGENT_NAME,xo as KODAX_API_MIN_INTERVAL,j as KODAX_DEFAULT_PROVIDER,ro as KODAX_DEFAULT_TIMEOUT,eo as KODAX_HARD_TIMEOUT,po as KODAX_MAX_INCOMPLETE_RETRIES,fo as KODAX_MAX_RETRIES,oo as KODAX_MAX_TOKENS,i as KODAX_PROVIDERS,h as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,mo as KODAX_RETRY_BASE_DELAY,to as KODAX_STAGGER_DELAY,uf as KODAX_TOOLS,d as KodaXAnthropicCompatProvider,c as KodaXBaseProvider,Dm as KodaXClient,o as KodaXError,lf as KodaXExtensionRuntime,g as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,Y as KodaXSessionError,Z as KodaXTerminalError,X as KodaXToolError,Io as LINEAGE_ENTRY_TYPES,Ko as LineageCompaction,Jo as LineageExtension,Fo as McpCapabilityProvider,Go as McpManager,Eo as McpServerRuntime,je as PLANNER_AGENT_NAME,ao as PROMISE_PATTERN,Of as PROMPT_SECTION_REGISTRY,gp as PROTOCOL_EMITTER_TOOLS,fm as ProviderRecoveryCoordinator,mr as READ_DEFAULT_LIMIT,tr as READ_MAX_LINE_CHARS,pr as READ_PREFLIGHT_SIZE_BYTES,Kr as REPOINTEL_DEFAULT_ENDPOINT,lo as Runner,ie as SCOUT_AGENT_NAME,Nf as SYSTEM_PROMPT,rm as StableBoundaryTracker,qe as TASK_ENGINE_ROLE_AGENTS,Mm as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Vp as TRACING_ENV,le as WORKER_AGENT_NAME,ef as _resetRuntimeForTesting,pf as activate,Br as analyzeChangedScope,Ve as appendAuditEntry,So as appendSessionLineageLabel,Ce as applyAccountingDelta,Im as applyFanoutBranchTransition,To as applySessionCompaction,oe as applyToolResultGuardrail,Zo as archiveOldIslands,Jm as assignFanoutBranchWorker,Cp as autoModeDenialShouldFallback,Lp as bashSignalCollector,Wp as bootstrapTracing,wm as boundedRevise,Hp as breakerShouldFallback,ym as budgetCeiling,gm as buildAmaControllerDecision,Fe as buildBlockedGoal,Tf as buildCapabilityContextSections,ip as buildClassifierPrompt,Ge as buildCompleteGoal,Be as buildCreatedGoal,cm as buildFallbackRoutingDecision,Fm as buildFanoutSchedulerPlan,Um as buildGoalRuntimeBinding,Se as buildLlmReviewPrompt,De as buildPausedGoal,Xf as buildPromptMessageContent,hm as buildPromptOverlay,Sf as buildPromptSnapshot,mm as buildProviderCapabilitySnapshot,dm as buildProviderPolicyHintsForDecision,pm as buildProviderPolicyPromptNotes,t as buildReasoningOverrideKey,Ar as buildRepoIntelligenceContext,Pr as buildRepoIntelligenceIndex,wr as buildRepoOverview,Ee as buildResumedGoal,Xo as buildSessionTree,Vf as buildSystemPrompt,Uf as buildSystemPromptSnapshot,Kp as checkAbsoluteDeny,Wf as checkIncompleteToolCalls,jm as checkPromiseSignal,kp as classify,mp as classifyBashCommand,$ as classifyError,om as classifyResilienceError,wo as cleanupIncompleteToolCalls,b as clearReasoningOverride,Q as clearRuntimeModelProviders,Np as collectAllSignals,tp as computeInputSignature,lp as computeRulesFingerprint,rf as configureRuntime,me as convertCapabilityReadResult,fe as convertProviderSearchResults,Hm as countActiveFanoutBranches,Yo as countActiveLineageMessages,co as countTokens,go as createAgent,zp as createAutoModeDenialTracker,Rp as createAutoModeToolGuardrail,fp as createBashClassifierConfig,Up as createBashPrefixExtractor,Df as createBuiltinToolDefinition,Fp as createCircuitBreaker,Oe as createCtxProxy,C as createCustomProvider,qm as createDefaultCodingAgent,pp as createDenialTracker,nf as createExtensionRuntime,Em as createFanoutSchedulerInput,ho as createHandoff,io as createInMemorySession,Zm as createKodaXTaskRunner,zo as createMcpCapabilityId,Ho as createMcpManager,Do as createMcpTransport,Pf as createPromptSection,im as createReasoningPlan,um as createSessionControl,No as createSessionLineage,Nm as createToolResultTruncationGuardrail,yo as defaultMcpCacheDir,Le as defaultPolicy,of as disableSelfModify,jf as discoverMarkdownAgents,ve as drainPendingSwaps,dp as emitVerdict,bo as estimateTokens,tm as evaluateProviderPolicy,Ie as exec,Mf as executeTool,_o as extractArtifactLedger,Tp as extractCommandPrefix,Zf as extractComparableUserMessageText,ee as extractHtmlTitle,Yf as extractPromptComparableText,Mo as extractTitleFromMessages,Mp as fileSignalCollector,te as finalizeRetrievalResult,df as findByVersion,Uo as findPreviousUserEntryId,Wo as forkSessionLineage,he as formatAgentsForPrompt,$m as formatParallelDispatchResult,xr as formatSize,Lo as generateSessionId,sf as getActiveExtensionRuntime,qo as getAgentConfigHome,so as getAgentConfigPath,Ff as getAllRegisteredTools,uo as getAppDataDir,T as getAvailableProviderNames,Cf as getBuiltinRegisteredToolDefinition,Bf as getBuiltinToolDefinition,K as getCustomModelCapabilities,E as getCustomProvider,H as getCustomProviderList,J as getCustomProviderModelDescriptors,I as getCustomProviderModels,G as getCustomProviderNames,bp as getDenialContext,Gm as getFanoutBranch,Ur as getImpactEstimate,de as getKodaxGlobalDir,Co as getMcpCachePaths,z as getModelCapabilities,Rr as getModuleContext,Tr as getProcessContext,k as getProvider,s as getProviderConfiguredCapabilityProfile,q as getProviderConfiguredReasoningCapability,u as getProviderList,n as getProviderModel,y as getProviderModelDescriptors,v as getProviderModels,zf as getRegisteredToolDefinition,Qr as getRepoIntelligenceIndex,yr as getRepoOverview,Vr as getRepoRoutingSignals,Jf as getRequiredToolParams,N as getRuntimeModelProvider,P as getRuntimeModelProviderNames,Oo as getSessionLineagePath,Po as getSessionMessagesFromLineage,Sr as getSymbolContext,wf as getTool,yf as getToolDefinition,Af as getToolRegistrations,$r as getToolResultPolicy,ye as goalTokenDelta,ue as hasPendingSwap,bm as inferTaskType,kr as inspectEditFailure,Nr as inspectRepoIntelligenceRuntime,F as isCustomProviderName,ap as isDeniedRecently,S as isKnownProvider,_m as isParallelDispatchDirective,l as isProviderConfigured,w as isProviderName,O as isRuntimeModelProviderName,Hf as isToolFileMutation,If as isToolMutation,Gf as isToolPlanModeAllowed,He as isValidTokenBudget,gf as listAll,W as listAllModelCapabilities,af as listArtifacts,A as listBuiltinModelCapabilities,Ef as listBuiltinToolDefinitions,cf as listConstructed,L as listCustomProviderModelCapabilities,Lf as listToolDefinitions,Kf as listTools,ge as loadAgentsFiles,hf as loadAgentsFromMarkdown,up as loadAutoRules,Pe as loadHandler,x as loadReasoningOverride,we as makeDisabledGoalToolsContext,Lm as markFanoutBranchCancelled,Km as markFanoutBranchCompleted,$o as mergeArtifactLedger,Qf as orderPromptSections,sp as parseAutoRules,jp as parseClassifierOutput,jr as parseEditToolError,Te as parseLlmReviewVerdict,Ao as parseMcpCapabilityId,Ip as parseModelSpec,dr as persistToolOutput,Wr as prewarmRepoIntelligenceCaches,bf as readArtifact,We as readAuditEntries,Ye as readBudget,$e as readDisableState,Pp as readSpeculativeWindowFromEnv,np as readTrustState,m as reasoningCapabilityToOverride,am as reasoningModeToDepth,p as reasoningOverrideToCapability,em as reconstructMessagesWithToolGuard,Bp as recordAutoModeAllow,Ap as recordAutoModeBlock,Om as recordBlockerAttempt,Gp as recordBreakerError,xp as recordDenial,Cm as registerCodingInvariants,Wm as registerConfiguredMcpCapabilityProvider,D as registerCustomProviders,M as registerModelProvider,Xm as registerOfficialSandboxExtension,ko as registerPresetDispatcher,vf as registerTool,tf as rehydrateActiveArtifacts,Ze as remainingSelfModifyBudget,Cr as renderChangedScope,Jr as renderImpactEstimate,Gr as renderModuleContext,Ir as renderProcessContext,Rf as renderPromptSections,zr as renderRepoOverview,pe as renderRetrievalResult,Hr as renderSymbolContext,Pm as resetBlockerCounter,_e as resetBudget,Jp as resolveClassifierModel,se as resolveConstructedAgent,V as resolveModelCapabilities,R as resolveProvider,U as resolveProviderModelDescriptors,xm as resolveReasoningMode,Mr as resolveRepoIntelligenceMode,Lr as resolveRepoIntelligenceRuntimeConfig,$f as resolveResilienceConfig,Qo as resolveSessionLineageTarget,zm as resolveToolCapability,xf as revoke,Vo as rewindSessionLineage,kf as rollbackSelfModify,Qe as runAstRules,sm as runKodaX,Ue as runLlmReview,Vm as runManagedTask,Ym as runOrchestration,a as saveReasoningOverride,Bo as searchMcpCatalog,qf as setActiveExtensionRuntime,no as setAgentConfigHome,Ro as setSessionLineageActiveEntry,Ae as shouldFlipBudgetLimited,Qp as speculativeRace,ff as stage,vm as startKodaX,vp as stripAssistantText,re as stripHtmlToText,mf as testArtifact,vr as toolAskUserQuestion,nr as toolBash,Fr as toolChangedDiff,Er as toolChangedScope,be as toolCodeSearch,ir as toolEdit,qr as toolGlob,sr as toolGrep,_r as toolImpactEstimate,lr as toolInsertAfterAnchor,Xr as toolModuleContext,Am as toolPermission,Zr as toolProcessContext,gr as toolRead,Dr as toolRepoOverview,ce as toolSemanticLookup,Yr as toolSymbolContext,ur as toolUndo,ae as toolWebFetch,xe as toolWebSearch,hr as toolWrite,ar as truncateHead,cr as truncateLine,br as truncateTail,qp as trustProjectRules,ze as turnWallTimeDelta,vo as validateAndFixToolHistory,B as validateCustomProviderConfig,op as validateSubtaskIndependence,Re as validateToolSchemaForProvider,Tm as verifyGoalCompletion,Or as warmRepoIntelligenceRuntime,Je as webhook,Rm as withGoalBeforeNextTurn,Sm as withGoalStopHook,ne as workerAgent};
|
package/dist/sdk-llm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as KodaXProviderCapabilityProfile, m as KodaXMessage, F as KodaXReasoningRequest, W as KodaXTokenUsage, g as KodaXContentBlock, f as KodaXCacheBoundary } from './types-chunks/types.d-B1uGoVTE.js';
|
|
2
2
|
export { K as KodaXAmaControllerDecision, a as KodaXAmaFanoutClass, b as KodaXAmaFanoutPolicy, c as KodaXAmaProfile, d as KodaXAmaTactic, e as KodaXAssuranceIntent, h as KodaXCustomProviderConfig, i as KodaXExecutionMode, j as KodaXExecutionPattern, k as KodaXHarnessProfile, l as KodaXImageBlock, n as KodaXModelDescriptor, o as KodaXMutationSurface, p as KodaXProtocolFamily, r as KodaXProviderConfig, s as KodaXProviderContextFidelity, t as KodaXProviderConversationSemantics, u as KodaXProviderEvidenceSupport, v as KodaXProviderLongRunningSupport, w as KodaXProviderMcpSupport, x as KodaXProviderMultimodalSupport, y as KodaXProviderSessionSupport, z as KodaXProviderStreamOptions, A as KodaXProviderToolCallingFidelity, B as KodaXProviderTransport, C as KodaXReasoningCapability, D as KodaXReasoningMode, E as KodaXReasoningOverride, G as KodaXRedactedThinkingBlock, H as KodaXReviewScale, I as KodaXRiskLevel, J as KodaXStreamResult, L as KodaXTaskActionability, M as KodaXTaskBudgetOverrides, N as KodaXTaskComplexity, O as KodaXTaskFamily, P as KodaXTaskRoutingDecision, Q as KodaXTaskType, R as KodaXTaskWorkIntent, S as KodaXTextBlock, T as KodaXThinkingBlock, U as KodaXThinkingBudgetMap, V as KodaXThinkingDepth, X as KodaXToolDefinition, Y as KodaXToolResultBlock, Z as KodaXToolResultContentItem, _ as KodaXToolResultImageItem, $ as KodaXToolResultTextItem, a0 as KodaXToolUseBlock } from './types-chunks/types.d-B1uGoVTE.js';
|
|
3
|
-
export { K as KODAX_DEFAULT_PROVIDER, a as KODAX_DEFAULT_THINKING_BUDGETS, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, e as KODAX_REASONING_SAFETY_RESERVE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, i as KodaXNetworkError, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, m as KodaXToolCallIdError, P as ProviderName, n as buildReasoningOverrideKey, o as clampThinkingBudget, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, z as getDefaultThinkingDepthForMode, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, I as getReasoningCapability, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, R as isReasoningEnabled, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, W as loadReasoningOverride, X as mapDepthToOpenAIReasoningEffort, Y as normalizeReasoningRequest, Z as reasoningCapabilityToOverride, _ as reasoningOverrideToCapability, $ as registerCustomProviders, a0 as registerModelProvider, a1 as resolveModelCapabilities, a2 as resolveProvider, a3 as resolveProviderModelDescriptors, a4 as resolveThinkingBudget, a5 as saveReasoningOverride, a6 as validateCustomProviderConfig } from './types-chunks/resolver.d-
|
|
3
|
+
export { K as KODAX_DEFAULT_PROVIDER, a as KODAX_DEFAULT_THINKING_BUDGETS, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, e as KODAX_REASONING_SAFETY_RESERVE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, i as KodaXNetworkError, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, m as KodaXToolCallIdError, P as ProviderName, n as buildReasoningOverrideKey, o as clampThinkingBudget, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, z as getDefaultThinkingDepthForMode, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, I as getReasoningCapability, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, R as isReasoningEnabled, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, W as loadReasoningOverride, X as mapDepthToOpenAIReasoningEffort, Y as normalizeReasoningRequest, Z as reasoningCapabilityToOverride, _ as reasoningOverrideToCapability, $ as registerCustomProviders, a0 as registerModelProvider, a1 as resolveModelCapabilities, a2 as resolveProvider, a3 as resolveProviderModelDescriptors, a4 as resolveThinkingBudget, a5 as saveReasoningOverride, a6 as validateCustomProviderConfig } from './types-chunks/resolver.d-OMwxURit.js';
|
|
4
4
|
import { K as KodaXBaseProvider } from './types-chunks/base.d-FUJahC0i.js';
|
|
5
5
|
export { a as KodaXOnRetryAfterCallback, b as KodaXRetryAfterEvent, P as ParseRetryAfterOptions, R as RetryAfterResult, c as RetryAfterSource, e as extractHeadersFromError, p as parseRetryAfter } from './types-chunks/base.d-FUJahC0i.js';
|
|
6
6
|
import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
package/dist/sdk-llm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$,A,Aa as Bo,B,Ba as Co,C,Ca as Do,D,Da as Eo,E,Ea as Fo,F,Fa as Go,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a as o,aa as oo,b as r,ba as ro,c as e,ca as eo,d as f,da as fo,e as m,ea as mo,f as p,fa as po,g as t,ga as to,h as x,ha as xo,i as a,ia as ao,j as b,ja as bo,k as c,ka as co,l as d,la as go,m as g,ma as ho,n as h,na as io,o as i,oa as jo,p as j,pa as ko,q as k,qa as lo,r as l,ra as no,s as n,sa as qo,t as q,ta as so,u as s,ua as uo,v as u,va as vo,w as v,wa as wo,x as w,xa as yo,y,ya as zo,z,za as Ao}from"./chunks/chunk-
|
|
2
|
+
import{$,A,Aa as Bo,B,Ba as Co,C,Ca as Do,D,Da as Eo,E,Ea as Fo,F,Fa as Go,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a as o,aa as oo,b as r,ba as ro,c as e,ca as eo,d as f,da as fo,e as m,ea as mo,f as p,fa as po,g as t,ga as to,h as x,ha as xo,i as a,ia as ao,j as b,ja as bo,k as c,ka as co,l as d,la as go,m as g,ma as ho,n as h,na as io,o as i,oa as jo,p as j,pa as ko,q as k,qa as lo,r as l,ra as no,s as n,sa as qo,t as q,ta as so,u as s,ua as uo,v as u,va as vo,w as v,wa as wo,x as w,xa as yo,y,ya as zo,z,za as Ao}from"./chunks/chunk-PGF5EZ7C.js";import"./chunks/chunk-V4WSBIXB.js";export{wo as DEFAULT_COST_RATES,a as KODAX_API_MIN_INTERVAL,t as KODAX_CAPPED_MAX_OUTPUT_TOKENS,Q as KODAX_DEFAULT_PROVIDER,c as KODAX_DEFAULT_THINKING_BUDGETS,x as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,p as KODAX_MAX_TOKENS,P as KODAX_PROVIDERS,O as KODAX_PROVIDER_SNAPSHOTS,b as KODAX_REASONING_MODE_SEQUENCE,d as KODAX_REASONING_SAFETY_RESERVE,I as KodaXAnthropicCompatProvider,C as KodaXBaseProvider,o as KodaXError,f as KodaXNetworkError,J as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,m as KodaXToolCallIdError,u as buildReasoningOverrideKey,zo as calculateCost,l as clampThinkingBudget,y as clearReasoningOverride,ko as clearRuntimeModelProviders,Ao as createCostTracker,ro as createCustomProvider,A as extractHeadersFromError,Eo as formatCost,Fo as formatCostReport,qo as getAvailableProviderNames,K as getCodexCliDefaultModel,M as getCodexCliKnownModels,yo as getCostRate,bo as getCustomModelCapabilities,fo as getCustomProvider,to as getCustomProviderList,ao as getCustomProviderModelDescriptors,xo as getCustomProviderModels,po as getCustomProviderNames,j as getDefaultThinkingDepthForMode,L as getGeminiCliDefaultModel,N as getGeminiCliKnownModels,_ as getModelCapabilities,R as getProvider,V as getProviderConfiguredCapabilityProfile,U as getProviderConfiguredReasoningCapability,W as getProviderList,T as getProviderModel,Z as getProviderModelDescriptors,X as getProviderModels,g as getReasoningCapability,ho as getRuntimeModelProvider,jo as getRuntimeModelProviderNames,Do as getSummary,E as insertCacheBoundary,F as isCacheBoundary,mo as isCustomProviderName,no as isKnownProvider,S as isProviderConfigured,Y as isProviderName,h as isReasoningEnabled,io as isRuntimeModelProviderName,vo as listAllModelCapabilities,$ as listBuiltinModelCapabilities,co as listCustomProviderModelCapabilities,v as loadReasoningOverride,G as lowerCacheBoundaries,n as mapDepthToOpenAIReasoningEffort,B as normalizeCapabilityProfile,i as normalizeReasoningRequest,z as parseRetryAfter,D as parseToolInputWithSalvage,q as reasoningCapabilityToOverride,s as reasoningOverrideToCapability,Bo as recordRetry,Co as recordUsage,eo as registerCustomProviders,go as registerModelProvider,uo as resolveModelCapabilities,lo as resolveProvider,so as resolveProviderModelDescriptors,k as resolveThinkingBudget,w as saveReasoningOverride,Go as sideQuery,H as stripCacheBoundaries,oo as validateCustomProviderConfig};
|
package/dist/sdk-mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{ob as e,pb as r,qb as p,rb as a,sb as t,tb as c,ub as M,vb as i,wb as o,xb as n,yb as s}from"./chunks/chunk-IJUB7QXG.js";import"./chunks/chunk-V4WSBIXB.js";export{i as McpCapabilityProvider,o as McpManager,M as McpServerRuntime,r as createMcpCapabilityId,n as createMcpManager,s as createMcpTestServerFixture,c as createMcpTransport,e as defaultMcpCacheDir,t as getMcpCachePaths,p as parseMcpCapabilityId,a as searchMcpCatalog};
|