@kodax-ai/kodax 0.7.95 → 0.7.96-alpha.2
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 +178 -1
- package/LICENSE +158 -158
- package/README.md +149 -24
- package/README_CN.md +117 -24
- package/config-templates/config.example.jsonc +2 -1
- package/config-templates/integrations/a2a.example.jsonc +91 -91
- package/config-templates/integrations/extensions.example.jsonc +7 -7
- package/config-templates/integrations/mcp.example.jsonc +16 -16
- package/dist/builtin/code-review/SKILL.md +82 -82
- package/dist/builtin/git-workflow/SKILL.md +84 -84
- package/dist/builtin/skill-creator/SKILL.md +127 -127
- package/dist/builtin/skill-creator/agents/analyzer.md +12 -12
- package/dist/builtin/skill-creator/agents/comparator.md +13 -13
- package/dist/builtin/skill-creator/agents/grader.md +13 -13
- package/dist/builtin/skill-creator/references/schemas.md +227 -227
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +208 -208
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +286 -286
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +62 -62
- package/dist/builtin/skill-creator/scripts/compare-runs.js +330 -330
- package/dist/builtin/skill-creator/scripts/generate-review.d.ts +33 -33
- package/dist/builtin/skill-creator/scripts/generate-review.js +414 -414
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +73 -73
- package/dist/builtin/skill-creator/scripts/grade-evals.js +402 -402
- package/dist/builtin/skill-creator/scripts/improve-description.d.ts +23 -23
- package/dist/builtin/skill-creator/scripts/improve-description.js +160 -160
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +14 -14
- package/dist/builtin/skill-creator/scripts/init-skill.js +155 -155
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +29 -29
- package/dist/builtin/skill-creator/scripts/install-skill.js +173 -173
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +38 -38
- package/dist/builtin/skill-creator/scripts/package-skill.js +121 -121
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +8 -8
- package/dist/builtin/skill-creator/scripts/quick-validate.js +163 -163
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +66 -66
- package/dist/builtin/skill-creator/scripts/run-eval.js +353 -353
- package/dist/builtin/skill-creator/scripts/run-loop.d.ts +49 -49
- package/dist/builtin/skill-creator/scripts/run-loop.js +242 -242
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.d.ts +58 -58
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +224 -224
- package/dist/builtin/tdd/SKILL.md +56 -56
- package/dist/chunks/agent-4FABF6WK.js +2 -0
- package/dist/chunks/argument-completer-72VHB2VL.js +2 -0
- package/dist/chunks/{chunk-7JXA3533.js → chunk-4OIQZWA5.js} +223 -226
- package/dist/chunks/{chunk-BNVSKIAB.js → chunk-6BVF3HZ7.js} +136 -136
- package/dist/chunks/chunk-7JZZIFZH.js +501 -0
- package/dist/chunks/chunk-AC7Z2OIY.js +2 -0
- package/dist/chunks/{chunk-JS452J2F.js → chunk-C4KYZAFU.js} +2 -2
- package/dist/chunks/chunk-CHUPIWIF.js +251 -0
- package/dist/chunks/{chunk-C4DTUKTR.js → chunk-GYUU7XLH.js} +5 -4
- package/dist/chunks/{chunk-OK4AXDC5.js → chunk-HAX55GOQ.js} +1 -1
- package/dist/chunks/chunk-JKTJCGO2.js +418 -0
- package/dist/chunks/{chunk-O743AJ5V.js → chunk-LQYETRFK.js} +171 -175
- package/dist/chunks/{chunk-2PEDBGKN.js → chunk-LTUZTQ6W.js} +1 -1
- package/dist/chunks/chunk-LYWDUSKO.js +2 -0
- package/dist/chunks/chunk-NGH6T4FD.js +92 -0
- package/dist/chunks/{chunk-SRIJX5ZP.js → chunk-NVRWCSA5.js} +1 -1
- package/dist/chunks/chunk-O4DS7RIQ.js +384 -0
- package/dist/chunks/chunk-ORXU6OWZ.js +2 -0
- package/dist/chunks/chunk-POTW3O65.js +124 -0
- package/dist/chunks/{chunk-2TM3W3GK.js → chunk-RIQSS56Y.js} +1 -1
- package/dist/chunks/chunk-U27XKEN5.js +407 -0
- package/dist/chunks/{chunk-6ABQJUK6.js → chunk-XUX6OUCA.js} +2 -2
- package/dist/chunks/{client-JDOS3YJR.js → client-4C456K4O.js} +1 -1
- package/dist/chunks/compaction-config-3VQRDFF4.js +2 -0
- package/dist/chunks/{construction-bootstrap-YCWHHUYO.js → construction-bootstrap-AHN7EDGG.js} +1 -1
- package/dist/chunks/dist-BCBQXAGI.js +2 -0
- package/dist/chunks/dist-QK2YDWU6.js +2 -0
- package/dist/chunks/host-VIHV7ADG.js +2 -0
- package/dist/chunks/run-manager-NBVMU3KV.js +2 -0
- package/dist/chunks/utils-MEJZ2IGI.js +2 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +7 -7
- package/dist/kodax_bootstrap.js +26 -26
- package/dist/kodax_cli.js +1905 -1882
- package/dist/native/darwin-arm64/LICENSE-APACHE.txt +13 -0
- package/dist/native/darwin-arm64/kodax-text-transaction.node +0 -0
- package/dist/native/darwin-arm64/manifest.json +16 -0
- package/dist/native/darwin-x64/LICENSE-APACHE.txt +13 -0
- package/dist/native/darwin-x64/kodax-text-transaction.node +0 -0
- package/dist/native/darwin-x64/manifest.json +16 -0
- package/dist/native/linux-arm64/LICENSE-APACHE.txt +13 -0
- package/dist/native/linux-arm64/kodax-text-transaction.node +0 -0
- package/dist/native/linux-arm64/manifest.json +16 -0
- package/dist/native/linux-x64/LICENSE-APACHE.txt +13 -0
- package/dist/native/linux-x64/kodax-text-transaction.node +0 -0
- package/dist/native/linux-x64/manifest.json +16 -0
- package/dist/native/win32-x64/LICENSE-APACHE.txt +13 -0
- package/dist/native/win32-x64/NOTICE-windows-sandbox.txt +8 -0
- package/dist/native/win32-x64/kodax-windows-sandbox.exe +0 -0
- package/dist/native/win32-x64/kodax-windows-text-transaction.node +0 -0
- package/dist/native/win32-x64/manifest.json +30 -0
- package/dist/provider-capabilities.json +108 -2
- package/dist/runtime-worker.js +1745 -1727
- package/dist/sandbox-network-broker.js +1715 -0
- package/dist/sdk-a2a.d.ts +13 -12
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +27 -18
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +107 -58
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +4 -4
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +9 -10
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +25 -17
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +41 -17
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +17 -3
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +8 -7
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +61 -61
- package/dist/types-chunks/{base.d-vopO1rml.d.ts → base.d-COo8E2dk.d.ts} +18 -27
- package/dist/types-chunks/{bash-prefix-extractor.d-B2rxNI4L.d.ts → bash-prefix-extractor.d-DQOlA8cy.d.ts} +72 -52
- package/dist/types-chunks/{capability-learning.d-CE1tm29C.d.ts → capability-learning.d-lRPgA3Or.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-Y7QRS4J2.d.ts → capsule.d-0zxsgXg_.d.ts} +3 -3
- package/dist/types-chunks/{controller.d-BR-UVeUR.d.ts → controller.d-BTtyIIC1.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-C5noq5-w.d.ts → controller.d-C7tXUcXo.d.ts} +2 -2
- package/dist/types-chunks/{guardrail.d-DqHD-61O.d.ts → guardrail.d-DKTyEHJa.d.ts} +5 -5
- package/dist/types-chunks/{history-retrieval.d-CKU8zmt_.d.ts → history-retrieval.d-CHnL99S7.d.ts} +2 -2
- package/dist/types-chunks/{public-api.d-D7fXaWW8.d.ts → public-api.d-Dx3L3W4Z.d.ts} +7 -4
- package/dist/types-chunks/{repl.d-BYDb14s6.d.ts → repl.d-mO01olIa.d.ts} +5 -5
- package/dist/types-chunks/{resolver.d-CwHUwbdE.d.ts → resolver.d-DlXPjeyx.d.ts} +38 -6
- package/dist/types-chunks/{review-inbox.d-BSgFewyj.d.ts → review-inbox.d-WDSe1nze.d.ts} +1 -1
- package/dist/types-chunks/{run-manager.d-BVJSntpS.d.ts → run-manager.d-DENbbzgR.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-CqEG84oP.d.ts → sdk-session-DYHGXXH4.d.ts} +3 -3
- package/dist/types-chunks/{shell-command-sets.d-DqaaBwhU.d.ts → shell-command-sets.d-CjFqS4dp.d.ts} +1 -1
- package/dist/types-chunks/{side-query.d-iH0P9ASy.d.ts → side-query.d-j8A3sFv_.d.ts} +2 -2
- package/dist/types-chunks/{types.d-rUOjXych.d.ts → types.d-BbZjR0Wr.d.ts} +1 -1
- package/dist/types-chunks/{types.d-CaTXAW_Q.d.ts → types.d-BkTIKdH6.d.ts} +2 -2
- package/dist/types-chunks/{types.d-C5xQEFcj.d.ts → types.d-DncLrpu_.d.ts} +4 -4
- package/dist/types-chunks/{types.d-CK9A9rpP.d.ts → types.d-Xy0f3x4i.d.ts} +9 -0
- package/dist/types-chunks/{utils.d-CWUyLiXo.d.ts → utils.d-CnxefMos.d.ts} +6 -6
- package/package.json +10 -3
- package/public_docs/README.md +130 -0
- package/public_docs/configuration/sandbox.md +289 -0
- package/public_docs/sdk/embedder-guide.md +6674 -0
- package/scripts/kodax-bin.cjs +28 -28
- package/scripts/production-env.cjs +25 -25
- package/dist/chunks/agent-XXZMXKKA.js +0 -2
- package/dist/chunks/argument-completer-KCYDGTQW.js +0 -2
- package/dist/chunks/chunk-77PNP27P.js +0 -92
- package/dist/chunks/chunk-7QBWHCIZ.js +0 -2
- package/dist/chunks/chunk-BHE66SP3.js +0 -123
- package/dist/chunks/chunk-BR2OSB2I.js +0 -722
- package/dist/chunks/chunk-DSMONSVB.js +0 -407
- package/dist/chunks/chunk-Q5VRWSKG.js +0 -418
- package/dist/chunks/chunk-XWRPOGJN.js +0 -4
- package/dist/chunks/chunk-Y5VIQBT6.js +0 -383
- package/dist/chunks/compaction-config-EGS4577X.js +0 -2
- package/dist/chunks/dist-ITTXQHRJ.js +0 -2
- package/dist/chunks/dist-KFYN3OKD.js +0 -2
- package/dist/chunks/host-VAYADIPW.js +0 -2
- package/dist/chunks/run-manager-52IJZMZJ.js +0 -2
- package/dist/chunks/utils-P7PBSL3R.js +0 -2
- package/dist/sandbox-workspace-session.js +0 -1705
package/dist/sdk-llm.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a8 as KodaXVerifyCredentialResult, k as KodaXMessage, q as KodaXProviderCapabilityProfile, i as KodaXImageBlock, a2 as KodaXToolDefinition, I as KodaXReasoningRequest, z as KodaXProviderStreamOptions, O as KodaXStreamResult, a9 as KodaXVerifyStrategy, c as KodaXContentBlock, a as KodaXCacheBoundary } from './types-chunks/types.d-
|
|
2
|
-
export { K as KodaXAssuranceIntent, b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, e as KodaXEphemeralSuffix, f as KodaXExecutionMode, g as KodaXExecutionPattern, h as KodaXHarnessProfile, j as KodaXListModelsResult, l as KodaXModelDescriptor, m as KodaXMutationSurface, n as KodaXNormalizedReasoningRequest, o as KodaXOpenAICompatMaxOutputTokensField, 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, A as KodaXProviderToolCallingFidelity, B as KodaXProviderTransport, C as KodaXReasoningCapability, D as KodaXReasoningEffortPreset, E as KodaXReasoningEffortRequest, F as KodaXReasoningEffortWireStrategy, G as KodaXReasoningMode, H as KodaXReasoningProfile, J as KodaXRedactedThinkingBlock, L as KodaXReviewScale, M as KodaXRiskLevel, N as KodaXStableEffortIntent, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a0 as KodaXThinkingWireStrategy, a1 as KodaXTokenUsage, a3 as KodaXToolResultBlock, a4 as KodaXToolResultContentItem, a5 as KodaXToolResultImageItem, a6 as KodaXToolResultTextItem, a7 as KodaXToolUseBlock, aa as KodaXWireReasoningEffort } from './types-chunks/types.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 KODAX_STABLE_EFFORT_INTENTS, g as KodaXAnthropicCompatProvider, h as KodaXError, i as KodaXModelCapabilities, j as KodaXNetworkError, k as KodaXOpenAICompatProvider, l as KodaXProviderError, m as
|
|
1
|
+
import { a8 as KodaXVerifyCredentialResult, k as KodaXMessage, q as KodaXProviderCapabilityProfile, i as KodaXImageBlock, a2 as KodaXToolDefinition, I as KodaXReasoningRequest, z as KodaXProviderStreamOptions, O as KodaXStreamResult, a9 as KodaXVerifyStrategy, c as KodaXContentBlock, a as KodaXCacheBoundary } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
2
|
+
export { K as KodaXAssuranceIntent, b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, e as KodaXEphemeralSuffix, f as KodaXExecutionMode, g as KodaXExecutionPattern, h as KodaXHarnessProfile, j as KodaXListModelsResult, l as KodaXModelDescriptor, m as KodaXMutationSurface, n as KodaXNormalizedReasoningRequest, o as KodaXOpenAICompatMaxOutputTokensField, 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, A as KodaXProviderToolCallingFidelity, B as KodaXProviderTransport, C as KodaXReasoningCapability, D as KodaXReasoningEffortPreset, E as KodaXReasoningEffortRequest, F as KodaXReasoningEffortWireStrategy, G as KodaXReasoningMode, H as KodaXReasoningProfile, J as KodaXRedactedThinkingBlock, L as KodaXReviewScale, M as KodaXRiskLevel, N as KodaXStableEffortIntent, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a0 as KodaXThinkingWireStrategy, a1 as KodaXTokenUsage, a3 as KodaXToolResultBlock, a4 as KodaXToolResultContentItem, a5 as KodaXToolResultImageItem, a6 as KodaXToolResultTextItem, a7 as KodaXToolUseBlock, aa as KodaXWireReasoningEffort } from './types-chunks/types.d-Xy0f3x4i.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 KODAX_STABLE_EFFORT_INTENTS, g as KodaXAnthropicCompatProvider, h as KodaXError, i as KodaXModelCapabilities, j as KodaXNetworkError, k as KodaXOpenAICompatProvider, l as KodaXProviderError, m as KodaXProviderErrorMetadata, n as KodaXRateLimitError, o as KodaXReasoningEffortRejectedError, p as KodaXToolCallIdError, P as ProviderName, R as ResolveWireEffortInput, q as ResolvedWireEffort, r as clampThinkingBudget, s as clearRuntimeModelProviders, t as createCustomProvider, u as effortToLegacyReasoningMode, v as getAvailableProviderNames, w as getCustomModelCapabilities, x as getCustomProvider, y as getCustomProviderCapabilityProfile, z as getCustomProviderList, A as getCustomProviderModelDescriptors, B as getCustomProviderModels, C as getCustomProviderNames, D as getDefaultThinkingDepthForMode, E as getModelCapabilities, F as getProvider, G as getProviderConfiguredCapabilityProfile, H as getProviderConfiguredReasoningCapability, I as getProviderCredentialEnvironmentNames, J as getProviderList, L as getProviderModel, M as getProviderModelDescriptors, N as getProviderModels, O as getReasoningCapability, Q as getRuntimeModelProvider, S as getRuntimeModelProviderCredentialEnvironmentNames, T as getRuntimeModelProviderNames, U as isCustomProviderName, V as isKnownProvider, W as isProviderConfigured, X as isProviderName, Y as isReasoningEnabled, Z as isRuntimeModelProviderName, _ as listAllModelCapabilities, $ as listBuiltinModelCapabilities, a0 as listCustomProviderModelCapabilities, a1 as listProviderModels, a2 as mapDepthToOpenAIReasoningEffort, a3 as mapLegacyReasoningModeToEffortIntent, a4 as normalizeReasoningEffortValue, a5 as normalizeReasoningRequest, a6 as parseReasoningEffortEnv, a7 as registerCustomProviders, a8 as registerModelProvider, a9 as resolveModelCapabilities, aa as resolveProvider, ab as resolveProviderModelDescriptors, ac as resolveReasoningEffort, ad as resolveReasoningEffortForModelSwitch, ae as resolveThinkingBudget, af as resolveWireEffort, ag as validateCustomProviderConfig, ah as verifyProviderCredential } from './types-chunks/resolver.d-DlXPjeyx.js';
|
|
4
4
|
export { C as CostRate, a as CostTracker, D as DEFAULT_COST_RATES, K as KodaXLlmTimeoutConfig, b as KodaXResolvedLlmTimeoutConfig, P as ProviderCostSummary, R as RetryRecord, S as SessionCostSummary, T as TokenUsageRecord, c as calculateCost, d as createCostTracker, f as formatCost, e as formatCostReport, g as getCostRate, h as getSummary, p as parseTimeoutSecEnvMs, r as recordRetry, i as recordUsage, j as resolveLlmTimeoutConfig, t as timeoutSecToMs } from './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
5
|
-
export { C as CapabilityCache, a as CapabilityCacheEntry, b as CapabilityCacheSource, c as addRejectedEffort, d as capabilityCacheKey, g as getRejectedEfforts, n as narrowReasoningProfile, r as removeCacheEntry, s as sanitizeCapabilityCache } from './types-chunks/capability-learning.d-
|
|
6
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
7
|
-
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-
|
|
5
|
+
export { C as CapabilityCache, a as CapabilityCacheEntry, b as CapabilityCacheSource, c as addRejectedEffort, d as capabilityCacheKey, g as getRejectedEfforts, n as narrowReasoningProfile, r as removeCacheEntry, s as sanitizeCapabilityCache } from './types-chunks/capability-learning.d-lRPgA3Or.js';
|
|
6
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-COo8E2dk.js';
|
|
7
|
+
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-COo8E2dk.js';
|
|
8
8
|
import { SessionNotification } from '@agentclientprotocol/sdk';
|
|
9
|
-
export { S as SideQueryDiagnostics, a as SideQueryRequest, b as SideQueryResult, c as SideQueryStopReason, d as SideQueryTerminalPhase, s as sideQuery } from './types-chunks/side-query.d-
|
|
9
|
+
export { S as SideQueryDiagnostics, a as SideQueryRequest, b as SideQueryResult, c as SideQueryStopReason, d as SideQueryTerminalPhase, s as sideQuery } from './types-chunks/side-query.d-j8A3sFv_.js';
|
|
10
10
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
11
11
|
import '@anthropic-ai/sdk';
|
|
12
12
|
import 'openai';
|
|
@@ -37,9 +37,8 @@ declare const KODAX_CAPPED_MAX_OUTPUT_TOKENS = 32000;
|
|
|
37
37
|
/**
|
|
38
38
|
* One-shot escalated budget used by the agent loop when a capped turn
|
|
39
39
|
* returns `stop_reason: max_tokens`. The next stream call in the same
|
|
40
|
-
* logical turn is issued with this value
|
|
41
|
-
* provider
|
|
42
|
-
* next successful response in `base.ts withRateLimit`.
|
|
40
|
+
* logical turn is issued with this value through request-scoped stream
|
|
41
|
+
* options, so concurrent runs sharing a provider cannot affect each other.
|
|
43
42
|
*/
|
|
44
43
|
declare const KODAX_ESCALATED_MAX_OUTPUT_TOKENS = 64000;
|
|
45
44
|
declare const KODAX_API_MIN_INTERVAL = 0.5;
|
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 as or,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,Ga as Ho,H,Ha as Io,I,Ia as Jo,J,Ja as Ko,K,Ka as Lo,L,La as Mo,M,Ma as No,N,Na as Oo,O,Oa as Po,P,Pa as Qo,Q,Qa as Ro,R,Ra as So,S,Sa as To,T,Ta as Uo,U,Ua as Vo,V,Va as Wo,W,Wa as Xo,X,Xa as Yo,Y,Ya as Zo,Z,Za as _o,_,_a as $o,a as o,aa as oo,ab as rr,b as r,ba as ro,bb as er,c as e,ca as eo,cb as fr,d as f,da as fo,db as mr,e as m,ea as mo,eb as pr,f as p,fa as po,fb as tr,g as t,ga as to,gb as xr,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 as or,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,Ga as Ho,H,Ha as Io,I,Ia as Jo,J,Ja as Ko,K,Ka as Lo,L,La as Mo,M,Ma as No,N,Na as Oo,O,Oa as Po,P,Pa as Qo,Q,Qa as Ro,R,Ra as So,S,Sa as To,T,Ta as Uo,U,Ua as Vo,V,Va as Wo,W,Wa as Xo,X,Xa as Yo,Y,Ya as Zo,Z,Za as _o,_,_a as $o,a as o,aa as oo,ab as rr,b as r,ba as ro,bb as er,c as e,ca as eo,cb as fr,d as f,da as fo,db as mr,e as m,ea as mo,eb as pr,f as p,fa as po,fb as tr,g as t,ga as to,gb as xr,h as x,ha as xo,hb as ar,i as a,ia as ao,ib as br,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-POTW3O65.js";import"./chunks/chunk-ONUPGMER.js";export{or as DEFAULT_COST_RATES,g as KODAX_API_MIN_INTERVAL,c as KODAX_CAPPED_MAX_OUTPUT_TOKENS,io as KODAX_DEFAULT_PROVIDER,y as KODAX_DEFAULT_THINKING_BUDGETS,d as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,b as KODAX_MAX_TOKENS,ho as KODAX_PROVIDERS,go as KODAX_PROVIDER_SNAPSHOTS,v as KODAX_REASONING_MODE_SEQUENCE,z as KODAX_REASONING_SAFETY_RESERVE,w as KODAX_STABLE_EFFORT_INTENTS,to as KodaXAcpProvider,mo as KodaXAnthropicCompatProvider,W as KodaXBaseProvider,f as KodaXError,t as KodaXNetworkError,po as KodaXOpenAICompatProvider,m as KodaXProviderError,p as KodaXRateLimitError,x as KodaXReasoningEffortRejectedError,a as KodaXToolCallIdError,Q as WORKFLOW_MAX_CONCURRENCY_ABSOLUTE,P as WORKFLOW_MAX_CONCURRENCY_DEFAULT,q as addRejectedEffort,er as calculateCost,k as capabilityCacheKey,L as clampThinkingBudget,Y as classifyStopReason,$ as classifyVerifyError,Ro as clearRuntimeModelProviders,fr as createCostTracker,Bo as createCustomProvider,F as effortToLegacyReasoningMode,O as extractHeadersFromError,xr as formatCost,ar as formatCostReport,Uo as getAvailableProviderNames,xo as getCodexCliDefaultModel,bo as getCodexCliKnownModels,rr as getCostRate,Ko as getCustomModelCapabilities,Do as getCustomProvider,Eo as getCustomProviderCapabilityProfile,Ho as getCustomProviderList,Jo as getCustomProviderModelDescriptors,Io as getCustomProviderModels,Go as getCustomProviderNames,J as getDefaultThinkingDepthForMode,ao as getGeminiCliDefaultModel,co as getGeminiCliKnownModels,yo as getModelCapabilities,jo as getProvider,qo as getProviderConfiguredCapabilityProfile,no as getProviderConfiguredReasoningCapability,Vo as getProviderCredentialEnvironmentNames,so as getProviderList,lo as getProviderModel,wo as getProviderModelDescriptors,uo as getProviderModels,A as getReasoningCapability,n as getRejectedEfforts,T as getRunScopedConfig,No as getRuntimeModelProvider,Qo as getRuntimeModelProviderCredentialEnvironmentNames,Po as getRuntimeModelProviderNames,r as getScopedProviderCredential,tr as getSummary,oo as insertCacheBoundary,ro as isCacheBoundary,Z as isCleanStop,Fo as isCustomProviderName,To as isKnownProvider,ko as isProviderConfigured,vo as isProviderName,B as isReasoningEnabled,Oo as isRuntimeModelProviderName,Yo as listAllModelCapabilities,zo as listBuiltinModelCapabilities,Lo as listCustomProviderModelCapabilities,_o as listProviderModels,eo as lowerCacheBoundaries,M as mapDepthToOpenAIReasoningEffort,E as mapLegacyReasoningModeToEffortIntent,l as narrowReasoningProfile,V as normalizeCapabilityProfile,D as normalizeReasoningEffortValue,C as normalizeReasoningRequest,G as parseReasoningEffortEnv,N as parseRetryAfter,i as parseTimeoutSecEnvMs,X as parseToolInputWithSalvage,mr as recordRetry,pr as recordUsage,e as redactScopedProviderCredential,Co as registerCustomProviders,Mo as registerModelProvider,s as removeCacheEntry,j as resolveLlmTimeoutConfig,Xo as resolveModelCapabilities,U as resolvePromptCacheDisabled,So as resolveProvider,Wo as resolveProviderModelDescriptors,H as resolveReasoningEffort,I as resolveReasoningEffortForModelSwitch,K as resolveThinkingBudget,$o as resolveWireEffort,R as resolveWorkflowMaxConcurrency,_ as runVerifyCredential,o as runWithProviderCredential,S as runWithScopedConfig,u as sanitizeCapabilityCache,br as sideQuery,fo as stripCacheBoundaries,h as timeoutSecToMs,Ao as validateCustomProviderConfig,Zo as verifyProviderCredential};
|
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{Ae as
|
|
2
|
+
import{Ae as r,Be as a,Ce as p,De as i,Ee as c,Fe as o,Ge as n,He as M,Ie as s,Je as l,Ke as d,Le as u,Me as C,Ne as v,Oe as g,Pe as S,Qe as h,Re as R,Se as m,Te as A,Ue as b,Ve as f,ye as e,ze as t}from"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,m as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,R as McpServerRuntime,n as McpTransportCleanupIncompleteError,h as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,u as discoverAuthorizationServerMetadata,C as discoverOAuthEndpoints,d as discoverProtectedResourceMetadata,l as extractInsufficientScope,s as extractResourceMetadataUrl,i as getMcpCachePaths,S as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,g as performOAuthLogin,v as registerOAuthClient,p as searchMcpCatalog};
|
package/dist/sdk-media.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as KodaXImageBlock } from './types-chunks/types.d-
|
|
1
|
+
import { i as KodaXImageBlock } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
2
2
|
|
|
3
3
|
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
4
4
|
interface KodaXMediaErrorOptions {
|
package/dist/sdk-media.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{A as b,B as c,C as d,D as g,E as h,F as i,G as j,H as k,I as l,J as n,K as q,L as s,M as u,r as o,s as r,t as e,u as f,v as m,w as p,x as t,y as x,z as a}from"./chunks/chunk-
|
|
2
|
+
import{A as b,B as c,C as d,D as g,E as h,F as i,G as j,H as k,I as l,J as n,K as q,L as s,M as u,r as o,s as r,t as e,u as f,v as m,w as p,x as t,y as x,z as a}from"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{r as ImageResizeError,n as KODAX_FILE_MEDIA_TYPES,k as KODAX_IMAGE_MEDIA_TYPES,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,x as MAX_DIMENSION,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,a as TARGET_RAW_SIZE_BYTES,p as createFileArtifactFromPath,m as createImageArtifactFromPath,t as createVideoArtifactFromPath,u as enqueueWithArtifacts,q as getModelInputCapabilities,e as inferImageMediaType,f as inferVideoMediaType,b as normalizePastedImage,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,s as validateInputArtifactsForModel};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps, O as Message, au as UIState, h as CreatableHistoryItem, m as HistoryItem, ar as ToolCall, at as UIActions, K as KeyInfo, B as KeypressHandler, aj as StreamingState, V as PromptEditingMode, I as InputPromptProps, ai as StatusBarProps, ao as Theme, as as ToolCallStatus, ak as Suggestion, av as UseTextBufferReturn, H as HistoryEntry, Q as PastedContent, s as HistoryItemInfo, S as PermissionMode } from './types-chunks/public-api.d-
|
|
3
|
-
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, g as ConversationPageCacheCapacityError, i as CursorPosition, D as DEFAULT_UI_STATE, j as DeleteSessionResult, F as FileSessionStorage, k as ForkSessionOptions, l as FullTranscriptSessionData, n as HistoryItemAssistant, o as HistoryItemBase, p as HistoryItemError, q as HistoryItemEvent, r as HistoryItemHint, t as HistoryItemSidecar, u as HistoryItemSystem, v as HistoryItemThinking, w as HistoryItemToolGroup, x as HistoryItemType, y as HistoryItemUser, z as KeypressEvent, E as KeypressHandlerPriority, L as LearningBinding, G as LearningSurfaceSnapshot, J as LegacyMessageListProps, M as ListSessionsOptions, N as MemorySessionStorage, P as PERMISSION_MODES, R as PermissionContext, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, W as PromptSubmitPayload, X as RewindSessionOptions, Y as RunningSessionInfo, Z as SessionBundleExportDiagnostic, _ as SessionBundleExportFile, $ as SessionBundleExportOptions, a0 as SessionBundleExportResult, a1 as SessionBundleExportStatus, a2 as SessionConversationHistoryData, a3 as SessionConversationHistoryEntry, a4 as SessionConversationHistoryIssue, a5 as SessionConversationHistoryIssueCode, a6 as SessionConversationHistoryStatus, a7 as SessionConversationMutationBoundary, a8 as SessionData, a9 as SessionManager, aa as SessionReadCapture, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, ae as SessionStorage, af as SessionSummary, ag as SessionTranscriptEntry, ah as SessionTranscriptEntryType, al as TOOL_STATUS_ICONS, am as TextBuffer, an as TextBufferOptions, ap as ThemeColors, aq as ThemeSymbols, aw as VisualCursor, ax as VisualLayout, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aC as computeConfirmTools, aD as conversationHistoryFromCapture, aE as createConversationEntryChain, aF as createMemorySessionStorage, aG as createSessionConversationHistoryRevision, aH as createSessionManager, aI as deleteSession, aJ as emptyConversationEntryChain, aK as exportSessionBundle, aL as extendConversationEntryChain, aM as forkSession, aN as isPermissionMode, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aS as normalizePermissionMode, aT as permissionModeDisplayName, aU as readConversationHistory, aV as readFullTranscript, aW as readSessionCapture, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, d as InkTransientNotice, R as RUNTIME_PERMISSION_PENDING_NOTICE, e as RepLOptions, f as ReplRuntimeAutoModeControl, g as ReplRuntimeAutoModeSettings, h as ReplRuntimePermissionDecision, i as ReplRuntimePermissionGrantSuggestion, j as ReplRuntimePermissionPrompt, k as ReplRuntimePermissionRequest, l as ReplRuntimeRunner, m as ReplRuntimeRunnerInput, n as ReplRuntimeStatusProvider, o as executeCommand, p as getCommandRegistry, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode, u as toReplRuntimeAutoModeSettings } from './types-chunks/repl.d-
|
|
5
|
-
import { S as KodaXEvents, t as KodaXAgentMode,
|
|
6
|
-
import { M as MessageDelivery, d as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-
|
|
8
|
-
import { d as CommandInvocationRequest, c as CommandInfo } from './types-chunks/utils.d-
|
|
9
|
-
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, o as RuntimeSurfaceMode, p as RuntimeSurfaceStatus, q as createInteractiveContext, r as ensureExampleConfigFile, s as ensureExampleConfigFiles, t as getGitRoot, u as getProviderList, v as getProviderModel, w as getVersion, x as hydrateProcessEnvFromShell, y as isProviderConfigured, z as loadAutoModeSettings, B as loadConfig, D as prepareRuntimeConfig, E as rateLimitedCall, F as registerConfiguredCustomProviders, G as resolveAutoModeSettings, H as resolveRuntimeEffortSelection, J as resolveRuntimeModelSelection, L as resolveRuntimeProviderSelection, M as saveConfig, N as touchContext } from './types-chunks/utils.d-
|
|
2
|
+
import { A as AppProps, O as Message, au as UIState, h as CreatableHistoryItem, m as HistoryItem, ar as ToolCall, at as UIActions, K as KeyInfo, B as KeypressHandler, aj as StreamingState, V as PromptEditingMode, I as InputPromptProps, ai as StatusBarProps, ao as Theme, as as ToolCallStatus, ak as Suggestion, av as UseTextBufferReturn, H as HistoryEntry, Q as PastedContent, s as HistoryItemInfo, S as PermissionMode } from './types-chunks/public-api.d-Dx3L3W4Z.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, g as ConversationPageCacheCapacityError, i as CursorPosition, D as DEFAULT_UI_STATE, j as DeleteSessionResult, F as FileSessionStorage, k as ForkSessionOptions, l as FullTranscriptSessionData, n as HistoryItemAssistant, o as HistoryItemBase, p as HistoryItemError, q as HistoryItemEvent, r as HistoryItemHint, t as HistoryItemSidecar, u as HistoryItemSystem, v as HistoryItemThinking, w as HistoryItemToolGroup, x as HistoryItemType, y as HistoryItemUser, z as KeypressEvent, E as KeypressHandlerPriority, L as LearningBinding, G as LearningSurfaceSnapshot, J as LegacyMessageListProps, M as ListSessionsOptions, N as MemorySessionStorage, P as PERMISSION_MODES, R as PermissionContext, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, W as PromptSubmitPayload, X as RewindSessionOptions, Y as RunningSessionInfo, Z as SessionBundleExportDiagnostic, _ as SessionBundleExportFile, $ as SessionBundleExportOptions, a0 as SessionBundleExportResult, a1 as SessionBundleExportStatus, a2 as SessionConversationHistoryData, a3 as SessionConversationHistoryEntry, a4 as SessionConversationHistoryIssue, a5 as SessionConversationHistoryIssueCode, a6 as SessionConversationHistoryStatus, a7 as SessionConversationMutationBoundary, a8 as SessionData, a9 as SessionManager, aa as SessionReadCapture, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, ae as SessionStorage, af as SessionSummary, ag as SessionTranscriptEntry, ah as SessionTranscriptEntryType, al as TOOL_STATUS_ICONS, am as TextBuffer, an as TextBufferOptions, ap as ThemeColors, aq as ThemeSymbols, aw as VisualCursor, ax as VisualLayout, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aC as computeConfirmTools, aD as conversationHistoryFromCapture, aE as createConversationEntryChain, aF as createMemorySessionStorage, aG as createSessionConversationHistoryRevision, aH as createSessionManager, aI as deleteSession, aJ as emptyConversationEntryChain, aK as exportSessionBundle, aL as extendConversationEntryChain, aM as forkSession, aN as isPermissionMode, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aS as normalizePermissionMode, aT as permissionModeDisplayName, aU as readConversationHistory, aV as readFullTranscript, aW as readSessionCapture, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-Dx3L3W4Z.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, d as InkTransientNotice, R as RUNTIME_PERMISSION_PENDING_NOTICE, e as RepLOptions, f as ReplRuntimeAutoModeControl, g as ReplRuntimeAutoModeSettings, h as ReplRuntimePermissionDecision, i as ReplRuntimePermissionGrantSuggestion, j as ReplRuntimePermissionPrompt, k as ReplRuntimePermissionRequest, l as ReplRuntimeRunner, m as ReplRuntimeRunnerInput, n as ReplRuntimeStatusProvider, o as executeCommand, p as getCommandRegistry, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode, u as toReplRuntimeAutoModeSettings } from './types-chunks/repl.d-mO01olIa.js';
|
|
5
|
+
import { S as KodaXEvents, t as KodaXAgentMode, bm as ProviderRecoveryEvent, a3 as KodaXOptions, am as KodaXResult } from './types-chunks/bash-prefix-extractor.d-DQOlA8cy.js';
|
|
6
|
+
import { M as MessageDelivery, d as QueuedMessage } from './types-chunks/types.d-BkTIKdH6.js';
|
|
7
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-DYHGXXH4.js';
|
|
8
|
+
import { d as CommandInvocationRequest, c as CommandInfo } from './types-chunks/utils.d-CnxefMos.js';
|
|
9
|
+
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, o as RuntimeSurfaceMode, p as RuntimeSurfaceStatus, q as createInteractiveContext, r as ensureExampleConfigFile, s as ensureExampleConfigFiles, t as getGitRoot, u as getProviderList, v as getProviderModel, w as getVersion, x as hydrateProcessEnvFromShell, y as isProviderConfigured, z as loadAutoModeSettings, B as loadConfig, D as prepareRuntimeConfig, E as rateLimitedCall, F as registerConfiguredCustomProviders, G as resolveAutoModeSettings, H as resolveRuntimeEffortSelection, J as resolveRuntimeModelSelection, L as resolveRuntimeProviderSelection, M as saveConfig, N as touchContext } from './types-chunks/utils.d-CnxefMos.js';
|
|
10
10
|
import { c as SkillContext } from './types-chunks/types.d-Cb8RdrjU.js';
|
|
11
|
-
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
12
|
-
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-
|
|
11
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
12
|
+
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
13
13
|
import { Readable, Writable } from 'node:stream';
|
|
14
14
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
15
15
|
export { E as ExtensionsIntegrationDocument, I as IntegrationConfigConflictError, a as IntegrationConfigController, b as IntegrationConfigDiagnostic, c as IntegrationConfigListener, d as IntegrationConfigSnapshot, e as IntegrationConfigSource, f as IntegrationConfigStatus, g as IntegrationDocumentValidator, h as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, i as LegacyIntegrationMigrationPlan, j as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, k as parseMcpIntegrationDocument, l as planLegacyIntegrationMigration, r as readExtensionsIntegration, n as readMcpIntegration, o as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-BNowXE8k.js';
|
|
16
|
-
export { aq as KodaXSessionUiHistoryItem, ar as KodaXSessionUiHistoryItemType, as as KodaXSessionUiTextHistoryItem, at as KodaXSessionUiTextHistoryItemType, au as KodaXSessionUiToolCall, av as KodaXSessionUiToolCallStatus, aw as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-
|
|
17
|
-
export { F as FILE_MODIFICATION_TOOLS, c as collectBashWriteTargets, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, j as getPlanModeBlockReason, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, s as isPathInsideProject, v as isToolCallAllowed } from './types-chunks/shell-command-sets.d-
|
|
18
|
-
import { _ as SignalCollector, f as AutoModeAskUser, k as AutoModeGuardrailConfig, s as AutoModeSharedState, u as AutoModeToolGuardrail, Z as RulesLoadResult } from './types-chunks/guardrail.d-
|
|
19
|
-
import './types-chunks/controller.d-
|
|
16
|
+
export { aq as KodaXSessionUiHistoryItem, ar as KodaXSessionUiHistoryItemType, as as KodaXSessionUiTextHistoryItem, at as KodaXSessionUiTextHistoryItemType, au as KodaXSessionUiToolCall, av as KodaXSessionUiToolCallStatus, aw as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BbZjR0Wr.js';
|
|
17
|
+
export { F as FILE_MODIFICATION_TOOLS, c as collectBashWriteTargets, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, j as getPlanModeBlockReason, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, s as isPathInsideProject, v as isToolCallAllowed } from './types-chunks/shell-command-sets.d-CjFqS4dp.js';
|
|
18
|
+
import { _ as SignalCollector, f as AutoModeAskUser, k as AutoModeGuardrailConfig, s as AutoModeSharedState, u as AutoModeToolGuardrail, Z as RulesLoadResult } from './types-chunks/guardrail.d-DKTyEHJa.js';
|
|
19
|
+
import './types-chunks/controller.d-C7tXUcXo.js';
|
|
20
20
|
import 'vscode-languageserver-protocol';
|
|
21
|
+
import 'node:child_process';
|
|
21
22
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
22
23
|
import './types-chunks/types-PHjfwebT.js';
|
|
23
24
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
24
|
-
import './types-chunks/base.d-
|
|
25
|
+
import './types-chunks/base.d-COo8E2dk.js';
|
|
25
26
|
import 'readline';
|
|
26
27
|
import 'child_process';
|
|
27
|
-
import './types-chunks/side-query.d-
|
|
28
|
+
import './types-chunks/side-query.d-j8A3sFv_.js';
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* App - KodaX CLI root component.
|
|
@@ -567,6 +568,13 @@ interface TranscriptRow {
|
|
|
567
568
|
text: string;
|
|
568
569
|
itemId?: string;
|
|
569
570
|
color?: TranscriptColorToken;
|
|
571
|
+
/**
|
|
572
|
+
* Optional row background accent for diff rows. Resolved to
|
|
573
|
+
* theme.colors.diffAddBackground / diffRemoveBackground by the row
|
|
574
|
+
* renderer; a pure function of the diff text, so row fingerprints
|
|
575
|
+
* (key + text) stay sufficient for section identity.
|
|
576
|
+
*/
|
|
577
|
+
bg?: "diffAdd" | "diffRemove";
|
|
570
578
|
indent?: number;
|
|
571
579
|
bold?: boolean;
|
|
572
580
|
italic?: boolean;
|
|
@@ -1972,7 +1980,7 @@ declare function prepareInvocationExecution(baseOptions: KodaXOptions, request:
|
|
|
1972
1980
|
declare function listRegisteredCommands(projectRoot?: string): CommandInfo[];
|
|
1973
1981
|
|
|
1974
1982
|
declare const CONFIG_TEMPLATES: {
|
|
1975
|
-
readonly core: "// Split configs: ~/.kodax/integrations/mcp.json, extensions.json, and a2a.json.\n// KodaX core configuration template.\n// Copy only the fields you need to ~/.kodax/config.json (strict JSON).\n// MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use\n// `kodax integrations migrate` to preview legacy declarations.\n{\n // Active provider alias and optional model override. Run `kodax setup` or\n // `/model` instead of editing these manually when possible.\n // \"provider\": \"deepseek\",\n // \"model\": \"deepseek-v4-flash\",\n // Add or reorder model ids shown by `/model` for a provider.\n // \"providerModels\": {\n // \"deepseek\": [\"deepseek-v4-flash\", \"deepseek-v4-pro\"]\n // },\n\n // Interactive Runtime hosting: \"embedded\" (this process) or \"daemon\".\n // \"runtimeMode\": \"embedded\",\n\n // Worker-hosted embedded Runtime options. `configuredA2A` lets a\n // Worker-hosted embedded Runtime load and reconcile\n // ~/.kodax/integrations/a2a.json inside the Worker owner, so configured\n // outbound A2A Agents appear as `external:<name>` and can be dispatched\n // with spawn_agent. Default inline (non-Worker) CLI sessions already load\n // the configured A2A plane automatically; this key switches the embedded\n // session to a Worker-hosted Runtime and loads the plane in that mode.\n // \"worker\": {\n // \"configuredA2A\": true\n // },\n\n // Native model reasoning. `effort` is the preferred explicit depth;\n // `reasoningCeiling` is the session ceiling. `reasoningMode` and `thinking`\n // remain accepted for backward compatibility.\n // \"effort\": \"high\",\n // \"planModeEffort\": \"high\",\n // \"reasoningCeiling\": \"auto\",\n // \"reasoningMode\": \"auto\",\n // \"thinking\": true,\n\n // Agent harness: \"ama\" enables adaptive multi-agent use; \"sa\" forces one\n // agent. Permission mode is \"plan\", \"accept-edits\", or classifier-backed\n // \"auto\".\n // \"agentMode\": \"ama\",\n // \"permissionMode\": \"accept-edits\",\n // User-level Bash allow patterns. Project additions belong in\n // <project>/.kodax/config.local.json. Broad Bash(*) is rejected.\n // \"alwaysAllowTools\": [\"Bash(npm test)\", \"Bash(git status:*)\"],\n // \"autoMode\": {\n // \"engine\": \"llm\",\n // \"classifierModel\": \"provider:model\",\n // // Omit timeoutMs for the 45s first-attempt / 90s retry defaults.\n // // A configured timeoutMs applies the same deadline to both attempts.\n // \"speculativeWindowMs\": 500\n // },\n\n // UI/manual locale.\n // \"locale\": \"zh\",\n\n // Sensitive environment variables are filtered from model-issued commands by\n // default. List exact host variable names here to pass them to the command\n // target (including ASRT); values are never stored in this file. Project\n // config cannot extend this user-level list. Execution-control variables such\n // as NODE_OPTIONS and BASH_ENV remain blocked.\n // \"sandbox\": {\n // \"envPass\": [\"GH_TOKEN\", \"GITHUB_TOKEN\", \"OPENAI_API_KEY\"]\n // },\n\n // Custom providers store public connection metadata only. Put the actual\n // credential in the named environment variable, never in this file. Use\n // `kodax setup --custom` for the guided writer.\n // \"customProviders\": [\n // {\n // \"name\": \"my-relay\",\n // \"protocol\": \"openai\",\n // \"baseUrl\": \"https://api.example.com/v1\",\n // \"apiKeyEnv\": \"MY_RELAY_API_KEY\",\n // \"model\": \"provider/model\",\n // \"models\": [\"provider/model\", \"provider/fast-model\"],\n // \"reasoning\": { \"efforts\": [\"off\", \"low\", \"high\"], \"default\": \"high\" },\n // \"userAgentMode\": \"compat\",\n // \"contextWindow\": 128000,\n // \"maxOutputTokens\": 8192,\n // \"maxOutputTokensField\": \"max_completion_tokens\",\n // \"thinkingBudgetCap\": 32000,\n // \"promptCacheAffinity\": false,\n // \"replayReasoningContent\": false,\n // \"strictThinkingSignature\": false,\n // \"streamMaxDurationMs\": 300000,\n // \"verifyStrategy\": \"models-list\"\n // }\n // ],\n\n // Repository intelligence. Mode: \"auto\", \"full\", \"light\", or \"off\".\n // \"repoIntelligenceMode\": \"auto\",\n // \"repoIntelligenceTrace\": false,\n // \"repoIntelligence\": {\n // \"toolWaitMs\": 250,\n // \"workerTimeoutMs\": 30000,\n // \"workerOldSpaceMb\": 1024,\n // \"storageDir\": \"~/.kodax/repo-intelligence\"\n // },\n\n // Runtime/provider diagnostics and timeouts.\n // \"streamIdleTimeoutMs\": 120000,\n // \"verifierLog\": false,\n // \"stallLog\": false,\n\n // Ordered provider fallback for child tasks and optional model tiers used by\n // workflow/dispatch model hints.\n // \"fallbackProviders\": [\"ark-coding\", \"kimi-code\"],\n // \"fastProvider\": \"openai\",\n // \"fastModel\": \"gpt-5-mini\",\n // \"deepProvider\": \"anthropic\",\n // \"deepModel\": \"claude-opus-4-6\",\n\n // Provider/LSP/ACP process settings.\n // \"maxOutputTokens\": 8192,\n // \"disablePromptCache\": false,\n // \"lsp\": true,\n // \"lspAutoDownload\": false,\n // \"acpLogLevel\": \"info\",\n\n // Automatic large compaction is always enabled. Percentage defaults to 75\n // and is clamped to 15..90. A missing/zero absolute threshold is inactive;\n // otherwise the smaller percentage, absolute, and physical limit wins.\n // \"compaction\": {\n // \"enabled\": true,\n // \"contextWindow\": 128000,\n // \"triggerPercent\": 75,\n // \"triggerTokens\": 0\n // },\n\n // 0 disables automatic session pruning.\n // \"sessionRetentionDays\": 0,\n\n // Workflow host concurrency. The Runtime still applies its system cap.\n // \"workflow\": { \"maxConcurrency\": 8 }\n}\n";
|
|
1983
|
+
readonly core: "// Split configs: ~/.kodax/integrations/mcp.json, extensions.json, and a2a.json.\n// KodaX core configuration template.\n// Copy only the fields you need to ~/.kodax/config.json (strict JSON).\n// MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use\n// `kodax integrations migrate` to preview legacy declarations.\n{\n // Active provider alias and optional model override. Run `kodax setup` or\n // `/model` instead of editing these manually when possible.\n // \"provider\": \"deepseek\",\n // \"model\": \"deepseek-v4-flash\",\n // Add or reorder model ids shown by `/model` for a provider.\n // \"providerModels\": {\n // \"deepseek\": [\"deepseek-v4-flash\", \"deepseek-v4-pro\", \"deepseek-v4-flash-vision-exp\"]\n // },\n\n // Interactive Runtime hosting: \"embedded\" (this process) or \"daemon\".\n // \"runtimeMode\": \"embedded\",\n\n // Worker-hosted embedded Runtime options. `configuredA2A` lets a\n // Worker-hosted embedded Runtime load and reconcile\n // ~/.kodax/integrations/a2a.json inside the Worker owner, so configured\n // outbound A2A Agents appear as `external:<name>` and can be dispatched\n // with spawn_agent. Default inline (non-Worker) CLI sessions already load\n // the configured A2A plane automatically; this key switches the embedded\n // session to a Worker-hosted Runtime and loads the plane in that mode.\n // \"worker\": {\n // \"configuredA2A\": true\n // },\n\n // Native model reasoning. `effort` is the preferred explicit depth;\n // `reasoningCeiling` is the session ceiling. `reasoningMode` and `thinking`\n // remain accepted for backward compatibility.\n // \"effort\": \"high\",\n // \"planModeEffort\": \"high\",\n // \"reasoningCeiling\": \"auto\",\n // \"reasoningMode\": \"auto\",\n // \"thinking\": true,\n\n // Agent harness: \"ama\" enables adaptive multi-agent use; \"sa\" forces one\n // agent. Permission mode is \"plan\", \"accept-edits\", or classifier-backed\n // \"auto\".\n // \"agentMode\": \"ama\",\n // \"permissionMode\": \"accept-edits\",\n // User-level Bash allow patterns. Project additions belong in\n // <project>/.kodax/config.local.json. Broad Bash(*) is rejected.\n // \"alwaysAllowTools\": [\"Bash(npm test)\", \"Bash(git status:*)\"],\n // \"autoMode\": {\n // \"engine\": \"llm\",\n // \"classifierModel\": \"provider:model\",\n // // Omit timeoutMs for the 45s first-attempt / 90s retry defaults.\n // // A configured timeoutMs applies the same deadline to both attempts.\n // \"speculativeWindowMs\": 500\n // },\n\n // UI/manual locale.\n // \"locale\": \"zh\",\n\n // Sensitive environment variables are filtered from model-issued commands by\n // default. List exact host variable names here to pass them to the command\n // target (including ASRT); values are never stored in this file. Project\n // config cannot extend this user-level list. Execution-control variables such\n // as NODE_OPTIONS and BASH_ENV remain blocked.\n // \"sandbox\": {\n // \"envPass\": [\"GH_TOKEN\", \"GITHUB_TOKEN\", \"OPENAI_API_KEY\"]\n // },\n\n // Custom providers store public connection metadata only. Put the actual\n // credential in the named environment variable, never in this file. Use\n // `kodax setup --custom` for the guided writer.\n // \"customProviders\": [\n // {\n // \"name\": \"my-relay\",\n // \"protocol\": \"openai\",\n // \"baseUrl\": \"https://api.example.com/v1\",\n // \"apiKeyEnv\": \"MY_RELAY_API_KEY\",\n // \"model\": \"provider/model\",\n // \"models\": [\"provider/model\", \"provider/fast-model\"],\n // \"reasoning\": { \"efforts\": [\"off\", \"low\", \"high\"], \"default\": \"high\" },\n // \"userAgentMode\": \"compat\",\n // \"contextWindow\": 128000,\n // \"maxOutputTokens\": 8192,\n // \"maxOutputTokensField\": \"max_completion_tokens\",\n // \"thinkingBudgetCap\": 32000,\n // \"imageInput\": true,\n // \"promptCacheAffinity\": false,\n // \"replayReasoningContent\": false,\n // \"strictThinkingSignature\": false,\n // \"streamMaxDurationMs\": 300000,\n // \"verifyStrategy\": \"models-list\"\n // }\n // ],\n\n // Repository intelligence. Mode: \"auto\", \"full\", \"light\", or \"off\".\n // \"repoIntelligenceMode\": \"auto\",\n // \"repoIntelligenceTrace\": false,\n // \"repoIntelligence\": {\n // \"toolWaitMs\": 250,\n // \"workerTimeoutMs\": 30000,\n // \"workerOldSpaceMb\": 1024,\n // \"storageDir\": \"~/.kodax/repo-intelligence\"\n // },\n\n // Runtime/provider diagnostics and timeouts.\n // \"streamIdleTimeoutMs\": 120000,\n // \"verifierLog\": false,\n // \"stallLog\": false,\n\n // Ordered provider fallback for child tasks and optional model tiers used by\n // workflow/dispatch model hints.\n // \"fallbackProviders\": [\"ark-coding\", \"kimi-code\"],\n // \"fastProvider\": \"openai\",\n // \"fastModel\": \"gpt-5-mini\",\n // \"deepProvider\": \"anthropic\",\n // \"deepModel\": \"claude-opus-4-6\",\n\n // Provider/LSP/ACP process settings.\n // \"maxOutputTokens\": 8192,\n // \"disablePromptCache\": false,\n // \"lsp\": true,\n // \"lspAutoDownload\": false,\n // \"acpLogLevel\": \"info\",\n\n // Automatic large compaction is always enabled. Percentage defaults to 75\n // and is clamped to 15..90. A missing/zero absolute threshold is inactive;\n // otherwise the smaller percentage, absolute, and physical limit wins.\n // \"compaction\": {\n // \"enabled\": true,\n // \"contextWindow\": 128000,\n // \"triggerPercent\": 75,\n // \"triggerTokens\": 0\n // },\n\n // 0 disables automatic session pruning.\n // \"sessionRetentionDays\": 0,\n\n // Workflow host concurrency. The Runtime still applies its system cap.\n // \"workflow\": { \"maxConcurrency\": 8 }\n}\n";
|
|
1976
1984
|
readonly mcp: "// User MCP declarations: ~/.kodax/integrations/mcp.json (strict JSON).\n// The whole file hot-reloads; healthy entries remain active if one new entry\n// fails to prepare. Keep credentials in ${env:NAME} references.\n{\n \"version\": 1,\n \"servers\": {}\n // Example:\n // \"servers\": {\n // \"reporting\": {\n // \"type\": \"streamable-http\",\n // \"url\": \"https://mcp.example.com\",\n // \"headers\": { \"Authorization\": \"Bearer ${env:REPORTING_MCP_TOKEN}\" },\n // \"connect\": \"lazy\"\n // }\n // }\n}\n";
|
|
1977
1985
|
readonly a2a: "// Bidirectional A2A configuration: ~/.kodax/integrations/a2a.json.\n// `agents` calls many third-party Agents. The optional singleton `server`\n// exposes exactly one KodaX general task Agent; ACP remains the coding/editor\n// protocol. Uncomment only the entries you need; no token value belongs here.\n// Legacy version 1 files remain readable. Non-empty files require an explicit\n// stopped-daemon migration; new/empty files and every later write use version 2.\n{\n \"version\": 2,\n\n // Create this inbound block with `kodax a2a expose`; config never starts a\n // listener by itself. Do not copy private Agent instructions, Runtime Skills,\n // model names, or local paths into the public `published.skills` list.\n // Managed workspaces default below\n // ~/kodax_a2a_server_workspace/<runtime-profile>/contexts/<context-key>/.\n // Native read/grep/glob remains available according to workspace access.\n // Arbitrary shell is never exposed. Skill instructions/assets need no\n // process authority. An exact checked-in scripts/... entry requires\n // process=\"isolated\", skillScripts admission, and `kodax sandbox doctor`.\n // ASRT receives no KodaX credentials or ambient ~/.srt-settings.json and its\n // script quota is observed; hostile tenants also require an outer container/VM.\n //\n // \"server\": {\n // \"execution\": {\n // \"kind\": \"local-agent\",\n // \"agentRef\": { \"source\": \"markdown:user\", \"name\": \"report-agent\" },\n // \"workspace\": { \"mode\": \"managed\" },\n // \"toolPolicy\": {\n // \"workspace\": \"write\",\n // \"process\": \"deny\",\n // \"network\": { \"mode\": \"deny\" },\n // \"tools\": [],\n // \"mcp\": {},\n // \"skillScripts\": {},\n // \"subagents\": \"deny\"\n // }\n // },\n // \"published\": {\n // \"name\": \"KodaX Agent\",\n // \"description\": \"Completes approved general tasks.\",\n // \"version\": \"0.7.71\",\n // \"skills\": [{ \"id\": \"general\", \"name\": \"General\", \"description\": \"Complete general tasks.\", \"tags\": [] }],\n // \"inputModes\": [\"text/plain\"],\n // \"outputModes\": [\"text/plain\"]\n // },\n // \"authentication\": { \"type\": \"bearer-env\", \"tokenEnv\": \"KODAX_A2A_TOKEN\", \"principalId\": \"configured-client\" },\n // \"dataDir\": \"~/.kodax/a2a/tasks\"\n // },\n\n // Production OAuth2 resource-server alternative for the server above. The\n // external Authorization Server issues access tokens and, for JWT tokens,\n // signs them. KodaX holds no issuer signing key; it validates RFC 9068 tokens\n // against the issuer's rotating JWKS, audience, expiry, subject, and scopes.\n // Replace the server.authentication value above with:\n // {\n // \"type\": \"oauth2-jwt\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"audience\": \"https://agent.example.com/a2a\",\n // \"jwksUrl\": \"https://identity.example.com/.well-known/jwks.json\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"metadataUrl\": \"https://identity.example.com/.well-known/oauth-authorization-server\",\n // \"requiredScopes\": [\"a2a.invoke\"]\n // }\n\n \"agents\": {\n // Fixed Bearer compatibility example. `enabled` is hot desired state:\n // disabled Agents remain configured but are not candidates for new\n // orchestration, while already admitted remote tasks may finish.\n // \"reporting\": {\n // \"cardUrl\": \"https://agents.example.com/.well-known/agent-card.json\",\n // \"enabled\": true,\n // \"credentialEnv\": \"REPORTING_A2A_TOKEN\",\n // \"effect\": \"read\"\n // },\n\n // Private addresses and plaintext HTTP are separate, default-deny\n // permissions. Exact loopback HTTP needs neither. Private HTTP needs both;\n // private HTTPS needs only allowPrivateAddresses. Prefer TLS whenever it is\n // available. The equivalent CLI flags are `--allow-private` and\n // `--allow-insecure-http`. OAuth token endpoints keep their stricter\n // HTTPS-or-exact-loopback rule even when Agent transport HTTP is allowed.\n // \"intranet\": {\n // \"cardUrl\": \"http://10.20.30.40/.well-known/agent-card.json\",\n // \"enabled\": true,\n // \"network\": {\n // \"allowPrivateAddresses\": true,\n // \"allowInsecureHttp\": true\n // },\n // \"effect\": \"read\"\n // },\n\n // Standards-based machine-to-machine OAuth2 example. The external\n // Authorization Server issues access tokens; KodaX obtains and caches them\n // only in process memory. `tokenUrl` must exactly match the selected Card\n // OAuth2 clientCredentials flow. Use `kodax a2a enable|disable <name>` to\n // mutate `enabled` atomically; the owning Runtime applies it asynchronously.\n // \"reviewer\": {\n // \"cardUrl\": \"https://reviewer.example.com/.well-known/agent-card.json\",\n // \"enabled\": false,\n // \"effect\": \"read\",\n // \"authentication\": {\n // \"type\": \"oauth2-client-credentials\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"clientId\": \"kodax-reviewer\",\n // \"clientSecretEnv\": \"REVIEWER_CLIENT_SECRET\",\n // \"scopes\": [\"a2a.invoke\"],\n // \"resource\": \"https://reviewer.example.com/\",\n // \"clientAuthentication\": \"client-secret-basic\"\n // }\n // }\n }\n}\n";
|
|
1978
1986
|
readonly extensions: "// Trusted user Extension paths: ~/.kodax/integrations/extensions.json.\n// Extensions are host code. Reload is whole-domain atomic; use MCP for\n// capabilities that should remain outside the KodaX process.\n{\n \"version\": 1,\n \"paths\": []\n}\n";
|
package/dist/sdk-repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as re,$a as rn,$b as mr,A as dt,Aa as Se,Ab as Un,B as lt,Ba as Ue,Bb as _n,C as pt,Ca as _e,Cb as vn,D as ut,Da as ve,Db as An,E as ft,Ea as Ae,Eb as On,F as gt,Fa as Oe,Fb as Fn,G as Ct,Ga as Fe,Gb as Ln,H as xt,Ha as Le,Hb as $n,I as yt,Ia as $e,Ib as Tn,J as Kt,Ja as Te,Jb as In,K as Xt,Ka as Ie,Kb as Wn,L as bt,La as We,Lb as En,M as jt,Ma as Ee,Mb as qn,N as Rt,Na as qe,Nb as zn,O as kt,Oa as ze,Ob as Bn,P as Nt,Pa as Be,Pb as Gn,Q as Go,Qa as Ge,Qb as Hn,R as Ho,Ra as He,Rb as Jn,S as Jo,Sa as Je,Sb as Qn,T as Qo,Ta as Qe,Tb as Vn,U as Vo,Ua as Ve,Ub as Yn,V as Yo,Va as Ye,Vb as Zn,W as Zo,Wa as Ze,Wb as tr,X as te,Xa as tn,Xb as or,Y as oe,Ya as on,Yb as er,Z as ee,Za as en,Zb as nr,_ as ne,_a as nn,_b as rr,a as L,aa as me,ab as mn,ac as ar,b as $,ba as ae,bb as an,bc as ir,c as T,ca as ie,cb as sn,cc as sr,d as I,da as se,db as cn,dc as cr,e as W,ea as ce,eb as dn,ec as dr,f as E,fa as de,fb as ln,fc as lr,g as q,ga as le,gb as pn,gc as pr,h as z,ha as pe,hb as un,hc as ur,i as B,ia as ue,ib as fn,ic as fr,j as G,ja as fe,jb as gn,jc as gr,k as H,ka as ge,kb as Cn,kc as Cr,l as J,la as Ce,lb as xn,m as Q,ma as xe,mb as yn,n as V,na as ye,nb as Kn,o as Y,oa as Ke,ob as Xn,p as Z,pa as Xe,pb as bn,q as tt,qa as be,qb as hn,r as ot,ra as he,rb as Dn,s as et,sa as De,sb as wn,t as nt,ta as we,tb as Mn,u as rt,ua as Me,ub as Pn,v as mt,va as Pe,vb as jn,w as at,wa as je,wb as Rn,x as it,xa as Re,xb as kn,y as st,ya as ke,yb as Nn,z as ct,za as Ne,zb as Sn}from"./chunks/chunk-
|
|
2
|
+
import{$ as re,$a as rn,$b as mr,A as dt,Aa as Se,Ab as Un,B as lt,Ba as Ue,Bb as _n,C as pt,Ca as _e,Cb as vn,D as ut,Da as ve,Db as An,E as ft,Ea as Ae,Eb as On,F as gt,Fa as Oe,Fb as Fn,G as Ct,Ga as Fe,Gb as Ln,H as xt,Ha as Le,Hb as $n,I as yt,Ia as $e,Ib as Tn,J as Kt,Ja as Te,Jb as In,K as Xt,Ka as Ie,Kb as Wn,L as bt,La as We,Lb as En,M as jt,Ma as Ee,Mb as qn,N as Rt,Na as qe,Nb as zn,O as kt,Oa as ze,Ob as Bn,P as Nt,Pa as Be,Pb as Gn,Q as Go,Qa as Ge,Qb as Hn,R as Ho,Ra as He,Rb as Jn,S as Jo,Sa as Je,Sb as Qn,T as Qo,Ta as Qe,Tb as Vn,U as Vo,Ua as Ve,Ub as Yn,V as Yo,Va as Ye,Vb as Zn,W as Zo,Wa as Ze,Wb as tr,X as te,Xa as tn,Xb as or,Y as oe,Ya as on,Yb as er,Z as ee,Za as en,Zb as nr,_ as ne,_a as nn,_b as rr,a as L,aa as me,ab as mn,ac as ar,b as $,ba as ae,bb as an,bc as ir,c as T,ca as ie,cb as sn,cc as sr,d as I,da as se,db as cn,dc as cr,e as W,ea as ce,eb as dn,ec as dr,f as E,fa as de,fb as ln,fc as lr,g as q,ga as le,gb as pn,gc as pr,h as z,ha as pe,hb as un,hc as ur,i as B,ia as ue,ib as fn,ic as fr,j as G,ja as fe,jb as gn,jc as gr,k as H,ka as ge,kb as Cn,kc as Cr,l as J,la as Ce,lb as xn,m as Q,ma as xe,mb as yn,n as V,na as ye,nb as Kn,o as Y,oa as Ke,ob as Xn,p as Z,pa as Xe,pb as bn,q as tt,qa as be,qb as hn,r as ot,ra as he,rb as Dn,s as et,sa as De,sb as wn,t as nt,ta as we,tb as Mn,u as rt,ua as Me,ub as Pn,v as mt,va as Pe,vb as jn,w as at,wa as je,wb as Rn,x as it,xa as Re,xb as kn,y as st,ya as ke,yb as Nn,z as ct,za as Ne,zb as Sn}from"./chunks/chunk-LQYETRFK.js";import{$ as Io,A as So,B as Uo,Ga as Wo,Ha as Eo,I as _o,Ia as qo,J as vo,Ka as zo,La as Bo,R as Ao,S as Oo,T as Fo,U as Lo,V as $o,_ as To,a as ht,b as Dt,c as wt,d as Mt,e as Pt,f as St,i as Ut,k as _t,l as vt,m as At,n as bo,o as ho,p as Do,q as wo,r as Mo,s as Po,t as jo,v as Ro,w as ko,y as No}from"./chunks/chunk-XUX6OUCA.js";import{$ as xo,O as ao,P as io,Q as so,R as co,S as lo,T as po,U as uo,X as fo,Y as go,_ as Co,aa as yo,b as Ot,c as Ft,ca as Ko,d as Lt,e as $t,f as Tt,g as It,ga as Xo,h as Wt,i as Et,j as qt,k as zt,l as Bt,m as Gt,n as Ht,o as Jt,p as Qt,q as Vt,r as Yt,s as Zt,t as to,u as oo,w as eo,x as no,y as ro,z as mo}from"./chunks/chunk-GYUU7XLH.js";import"./chunks/chunk-HAX55GOQ.js";import"./chunks/chunk-U27XKEN5.js";import"./chunks/chunk-RIQSS56Y.js";import{Ab as R,Cb as k,Db as N,Eb as S,Hb as U,Ib as _,Jb as v,Mb as A,Ob as O,Pb as F,nb as P,yb as j}from"./chunks/chunk-JKTJCGO2.js";import"./chunks/chunk-AC7Z2OIY.js";import"./chunks/chunk-C4KYZAFU.js";import"./chunks/chunk-4OIQZWA5.js";import"./chunks/chunk-NVRWCSA5.js";import"./chunks/chunk-LTUZTQ6W.js";import"./chunks/chunk-POTW3O65.js";import{v as x}from"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import{a}from"./chunks/chunk-ONUPGMER.js";import u from"fs/promises";import i from"path";import K from"os";import{pathToFileURL as X}from"node:url";var f=i.join(K.homedir(),".kodax","commands");function b(){return f}a(b,"getDefaultCommandDir");function h(n){let t=i.extname(n);if(t!==".js"&&t!==".ts")throw new Error(`Unsupported programmable command module extension: ${t||"<none>"}.`);return X(i.resolve(n))}a(h,"resolveProgrammableCommandModuleUrl");async function D(n){let t=new Map,e=n??f;try{await u.mkdir(e,{recursive:!0});let r=await u.readdir(e);for(let o of r){let s=i.extname(o),g=o.replace(s,"");if(s===".md"){try{let m=await u.readFile(i.join(e,o),"utf-8"),l=(m.split(`
|
|
3
3
|
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";t.set(g,{name:g,description:l,content:m,type:"prompt"})}catch{}continue}if(s===".js"||s===".ts"){let m=i.join(e,o);try{let l=await import(h(m).href);for(let[C,p]of Object.entries(l))if(C.startsWith("command_")&&typeof p=="function"){let c=C.replace("command_",""),y=p.description??c;t.set(c,{name:c,description:String(y).slice(0,60),content:`[Programmable command: ${c}]`,type:"programmable",execute:p})}}catch(d){x({source:"cli:commands",level:"warn",message:s===".ts"?`Failed to load TypeScript programmable command ${m}; enable a TypeScript loader or compile it to .js.`:`Failed to load programmable command module ${m}.`,detail:d})}}}}catch{}return t}a(D,"loadCommands");async function w(n,t,e,r){let o=e.get(n);return o?o.type==="prompt"?t?o.content.replace(/{args}/g,t):o.content:o.type==="programmable"&&o.execute?o.execute({args:t,runAgent:r}):null:null}a(w,"processCommandCall");function M(n){if(!n.startsWith("/"))return null;let t=n.slice(1).trim();if(!t)return null;let e=t.search(/\s/);if(e===-1)return[t];let r=t.slice(0,e),o=t.slice(e).trim();return o?[r,o]:[r]}a(M,"parseCommandCall");export{le as App,Go as AutocompleteContextProvider,Eo as BUILTIN_COMMANDS,Oe as BackgroundTaskBar,Ot as CONFIG_TEMPLATES,Le as ChildActivitySurface,Fn as ConsoleCapturer,yn as ConversationPageCacheCapacityError,Lt as CoreConfigWriteConflictError,Pt as DEFAULT_UI_STATE,Se as DialogSurface,ee as DotsIndicator,P as FILE_MODIFICATION_TOOLS,Xn as FileSessionStorage,ue as FullscreenTranscriptLayout,ae as HistoryItemRenderer,Zo as InputPrompt,It as IntegrationConfigConflictError,Qt as IntegrationConfigController,f as KODAX_COMMANDS_DIR,Zt as KODAX_CONFIG_FILE,Vt as KODAX_DIR,co as KODAX_EXAMPLE_CONFIG_FILE,lo as KODAX_INTEGRATION_EXAMPLE_FILES,Yt as KODAX_SESSIONS_DIR,ro as KODAX_VERSION,Nt as KeyMatchers,Mt as KeypressHandlerPriority,yt as KeypressParser,Rt as KeypressProvider,Z as LRUCache,me as LoadingIndicator,on as MemorySessionStorage,fe as MessageActions,ie as MessageList,ge as MessageSelector,_e as NotificationsSurface,St as PERMISSION_MODES,to as PREVIEW_MAX_LENGTH,kn as PendingInputsIndicator,ne as ProgressIndicator,xe as PromptComposer,Xe as PromptFooter,ye as PromptFooterLeftSide,Ke as PromptFooterRightSide,be as PromptHelpMenu,Ne as PromptSuggestionsSurface,bo as ProviderSetupConfigConflictError,ho as ProviderSetupInvalidConfigError,Ue as QueuedCommandsSurface,Je as RUNTIME_PERMISSION_PENDING_NOTICE,Kn as SessionReadError,pe as SimpleApp,te as SimpleInputPrompt,se as SimpleMessageDisplay,de as SimpleStatusBar,Ct as SingleLineTextInput,oe as Spinner,Ae as StashNotice,ce as StatusBar,ve as StatusNoticesSurface,Te as StreamingProvider,ht as StreamingState,ke as SuggestionsDisplay,wt as TOOL_STATUS_ICONS,Vo as TextBuffer,gt as TextInput,re as ThinkingIndicator,jn as ToolCallDisplay,Dt as ToolCallStatus,Rn as ToolGroup,Pn as ToolProgressBar,Mn as ToolStatusBadge,Ce as TranscriptViewport,Me as UIStateProvider,He as _resetQueuedPromptsCacheForTests,ir as appendClientNotice,ur as archiveSession,Ze as bootstrapAutoMode,ct as calculateVisualCursorFromLayout,st as calculateVisualLayout,A as collectBashWriteTargets,Yn as compactSession,_t as computeConfirmTools,rr as conversationHistoryFromCapture,$t as coreConfigWriteLockPath,Dn as createCliEvents,Cn as createConversationEntryChain,De as createHistoryItem,Ve as createInteractiveContext,wn as createJsonEvents,ze as createKeyMatcher,jt as createKeypressManager,en as createMemorySessionStorage,pn as createRecoveryHistoryItem,dn as createRetryHistoryItem,xn as createSessionConversationHistoryRevision,Cr as createSessionManager,$e as createStreamingManager,we as createToolCall,_o as createUserSkillInvocation,dt as darkTheme,Vn as dedupeSessions,pr as deleteSession,On as detectTerminalCapabilities,z as detectTerminalHostProfile,q as detectTerminalRenderHost,un as emitRecoveryHistoryItem,ln as emitRetryHistoryItem,fn as emptyConversationEntryChain,uo as ensureExampleConfigFile,po as ensureExampleConfigFiles,Bo as executeCommand,nn as executeShellCommand,ar as exportSessionBundle,gn as extendConversationEntryChain,Fo as extractHistorySeedsFromMessage,Lo as extractHistorySeedsFromMessages,$o as extractTextContent,To as extractTitle,cn as findMostRecentResumableSession,sr as forkSession,Io as formatMessagePreview,he as generateId,N as generateSavePattern,O as getBashOutsideProjectWriteRisk,nt as getCharAtCodePoint,tt as getCodePointLength,qo as getCommandRegistry,Ft as getConfigTemplate,En as getCustomProviderConfig,b as getDefaultCommandDir,Ko as getGitRoot,bt as getKeyDisplayName,Gn as getMcpServerConfig,F as getPlanModeBlockReason,ao as getProviderList,mo as getProviderModel,Do as getProviderSetupCatalog,Q as getTerminalHostCapabilities,vn as getTerminalWidth,ut as getTheme,ft as getThemeNames,no as getVersion,et as getVisualWidth,it as getVisualWidthCached,$ as hasCursorUpViewportYankRisk,I as hasMainScreenRenderScrollRisk,oo as hydrateProcessEnvFromShell,jo as initializeSetupConfiguration,wo as inspectProviderSetupReadiness,S as isAlwaysConfirmPath,j as isBashReadCommand,_ as isBashReadCommandAutoAllowed,R as isBashWriteCommand,Y as isClassicReplForced,U as isCommandOnProtectedPath,Kt as isFunctionKey,V as isOwnedRendererPreferred,v as isPathInsideProject,vt as isPermissionMode,Xt as isPrintable,io as isProviderConfigured,T as isRemoteConptyHost,An as isScreenReader,rn as isShellCommand,mn as isShellCommandSuccess,W as isTmuxControlMode,k as isToolCallAllowed,L as isVsCodeTerminalHostEnv,ot as isWideChar,Wn as listCustomProviders,Bn as listMcpServers,Wo as listRegisteredCommands,lr as listRunningSessions,Zn as listSessions,So as loadAutoModeSettings,D as loadCommands,so as loadConfig,or as loadFullTranscript,tr as loadSession,Fe as measureChildActivitySurfaceRows,Ht as migrateLegacyIntegrationConfig,lt as minimalTheme,At as normalizePermissionMode,zo as parseCommand,M as parseCommandCall,Et as parseExtensionsIntegrationDocument,xt as parseKeypress,Wt as parseMcpIntegrationDocument,Ut as permissionModeDisplayName,Mo as persistProviderSetupChoice,Gt as planLegacyIntegrationMigration,tn as prepareInvocationExecution,fo as prepareRuntimeConfig,w as processCommandCall,In as processSpecialSyntax,Po as providerSetupRestartInstructions,Xo as rateLimitedCall,nr as readConversationHistory,Bt as readExtensionsIntegration,er as readFullTranscript,zt as readMcpIntegration,mr as readSessionCapture,eo as registerConfiguredCustomProviders,zn as removeCustomProvider,Jn as removeMcpServer,Ro as renderSetupGuide,No as replBashPathSignalCollector,E as resetTmuxControlModeProbeForTesting,Uo as resolveAutoModeSettings,B as resolveConfiguredTuiRendererMode,G as resolveEffectiveTuiRendererMode,J as resolveFullscreenPolicy,qt as resolveIntegrationConfigPath,H as resolveInteractiveSurfacePreference,yo as resolveRuntimeEffortSelection,xo as resolveRuntimeModelSelection,Co as resolveRuntimeProviderSelection,vo as resolveUserSkillInvocation,sn as restoreHistoryItemsFromSession,cr as rewindSession,bn as runInkInteractiveMode,Tn as runInteractiveMode,ko as runProviderSetupWizard,hn as runSessionPicker,go as saveConfig,Ao as seedToHistoryItem,dr as setActiveEntry,rt as splitByCodePoints,Sn as supports256Colors,_n as supportsEmoji,Nn as supportsTrueColor,Un as supportsUnicode,pt as themes,Qe as toReplRuntimeAutoModeSettings,Oo as toolCallSeedToHistoryToolCall,Ye as touchContext,an as trimPersistedUiHistorySnapshot,mt as truncateByVisualWidth,fr as unarchiveSession,qn as upsertCustomProvider,Hn as upsertMcpServer,Jo as useAutocomplete,Ho as useAutocompleteContext,Qo as useInputHistory,qe as useKeypress,kt as useKeypressManager,Ge as useQueuedPromptContents,Be as useQueuedPrompts,Ee as useStreaming,We as useStreamingActions,Ie as useStreamingState,Yo as useTextBuffer,Re as useUI,je as useUIActions,Pe as useUIState,Qn as validateMcpServerConfig,at as visualWidthCache,gr as watchSessions,Ln as withCapture,$n as withCaptureSync,Tt as withCoreConfigWriteLock,Jt as writeIntegrationDocument};
|
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
2
|
-
export { k as KodaXMessage } from './types-chunks/types.d-
|
|
3
|
-
import {
|
|
4
|
-
import { w as AgentExecutionKind, M as AgentTreeSnapshot, s as AgentDetail, L as AgentSpawnInput, P as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, H as AgentOutput, t as AgentEvent } from './types-chunks/types.d-
|
|
5
|
-
import { r as AgentDispatchContext, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bF as LearningSurfaceSnapshot, bv as LearningEvent, bE as LearningSubscribeOptions, B as AgentExecutorFactory, s as AgentDispatchPolicy, q as AgentCredentialBroker, h as AgentArtifactPolicy, aZ as KodaXImageInputArtifact, b0 as KodaXInputArtifactSource, b1 as KodaXVideoInputArtifact, de as WorkflowProcessSnapshot, d8 as WorkflowProcessEvent, W as AgentRegistrationService, ay as DispatchableAgentQuery, aw as DispatchableAgentListing, R as AgentPreflightInput, S as AgentPreflightResult } from './types-chunks/controller.d-
|
|
1
|
+
import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
2
|
+
export { k as KodaXMessage } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
3
|
+
import { a3 as KodaXOptions, au as KodaXShellExecutionContract, a8 as KodaXOutputSegmentProjection, a$ as KodaXToolSandboxObservationUpdate, aZ as KodaXToolEventMeta, Y as KodaXManagedTaskStatusEvent, S as KodaXEvents, am as KodaXResult, bC as RuntimeContextBudgetSnapshot, bJ as RuntimeToolExposurePlan, ae as KodaXPromptCacheDiagnosticEvent, P as KodaXContextOptions, ab as KodaXOutputSegmentStarted, K as KodaXActivityEventMeta, b9 as KodaXTurnStartedEvent, b6 as KodaXTurnCompletedEvent, b8 as KodaXTurnFailedEvent, T as KodaXLiveEventMeta, J as KodaXCompactionEndResult, bz as RuntimeCompactionSkippedEvent, N as KodaXContextCompactionFinishedEvent, O as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-DQOlA8cy.js';
|
|
4
|
+
import { w as AgentExecutionKind, M as AgentTreeSnapshot, s as AgentDetail, L as AgentSpawnInput, P as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, H as AgentOutput, t as AgentEvent } from './types-chunks/types.d-BbZjR0Wr.js';
|
|
5
|
+
import { r as AgentDispatchContext, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bF as LearningSurfaceSnapshot, bv as LearningEvent, bE as LearningSubscribeOptions, B as AgentExecutorFactory, s as AgentDispatchPolicy, q as AgentCredentialBroker, h as AgentArtifactPolicy, aZ as KodaXImageInputArtifact, b0 as KodaXInputArtifactSource, b1 as KodaXVideoInputArtifact, de as WorkflowProcessSnapshot, d8 as WorkflowProcessEvent, W as AgentRegistrationService, ay as DispatchableAgentQuery, aw as DispatchableAgentListing, R as AgentPreflightInput, S as AgentPreflightResult } from './types-chunks/controller.d-C7tXUcXo.js';
|
|
6
6
|
import { i as SkillMetadata } from './types-chunks/types.d-Cb8RdrjU.js';
|
|
7
7
|
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
8
8
|
import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.js';
|
|
9
|
-
import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-
|
|
10
|
-
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-
|
|
11
|
-
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-
|
|
12
|
-
import { i as AutoModeDecisionDiagnostics, t as AutoModeStats } from './types-chunks/guardrail.d-
|
|
13
|
-
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-
|
|
14
|
-
import { l as FullTranscriptSessionData, ag as SessionTranscriptEntry, a2 as SessionConversationHistoryData, a6 as SessionConversationHistoryStatus, a4 as SessionConversationHistoryIssue, a3 as SessionConversationHistoryEntry, c as CompactSessionResult } from './types-chunks/public-api.d-
|
|
9
|
+
import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-CHnL99S7.js';
|
|
10
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-DENbbzgR.js';
|
|
11
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-DncLrpu_.js';
|
|
12
|
+
import { i as AutoModeDecisionDiagnostics, t as AutoModeStats } from './types-chunks/guardrail.d-DKTyEHJa.js';
|
|
13
|
+
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CnxefMos.js';
|
|
14
|
+
import { l as FullTranscriptSessionData, ag as SessionTranscriptEntry, a2 as SessionConversationHistoryData, a6 as SessionConversationHistoryStatus, a4 as SessionConversationHistoryIssue, a3 as SessionConversationHistoryEntry, c as CompactSessionResult } from './types-chunks/public-api.d-Dx3L3W4Z.js';
|
|
15
15
|
import 'vscode-languageserver-protocol';
|
|
16
|
+
import 'node:child_process';
|
|
16
17
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
17
18
|
import './types-chunks/types-PHjfwebT.js';
|
|
18
19
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
19
|
-
import './types-chunks/base.d-
|
|
20
|
-
import './types-chunks/side-query.d-
|
|
20
|
+
import './types-chunks/base.d-COo8E2dk.js';
|
|
21
|
+
import './types-chunks/side-query.d-j8A3sFv_.js';
|
|
21
22
|
import 'readline';
|
|
22
23
|
import 'child_process';
|
|
23
24
|
|
|
@@ -1213,7 +1214,7 @@ declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
|
1213
1214
|
readonly daemonShutdownVerification: 1;
|
|
1214
1215
|
readonly managedRunDurability: 1;
|
|
1215
1216
|
readonly runtimeExitSettlement: 2;
|
|
1216
|
-
readonly sandboxRuntime:
|
|
1217
|
+
readonly sandboxRuntime: 6;
|
|
1217
1218
|
readonly sessionEventJournal: 1;
|
|
1218
1219
|
readonly runtimeEventCoalescing: 1;
|
|
1219
1220
|
readonly liveOutputSegments: 1;
|
|
@@ -1275,7 +1276,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
1275
1276
|
readonly integrationConfigResilience?: 1;
|
|
1276
1277
|
readonly actorControlPlane?: 1;
|
|
1277
1278
|
/** Require the sandbox-first execution chain and permission fallback revision. */
|
|
1278
|
-
readonly sandboxRuntime?: 1 | 2 | 3 | 4 | 5;
|
|
1279
|
+
readonly sandboxRuntime?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1279
1280
|
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
1280
1281
|
readonly runtimeAutoModeGuardrail?: 1 | 2 | 3 | 4;
|
|
1281
1282
|
}
|
|
@@ -1627,6 +1628,7 @@ interface RuntimeSessionDiagnosticRun {
|
|
|
1627
1628
|
readonly terminalAt?: string;
|
|
1628
1629
|
readonly terminalTimeKnown: boolean;
|
|
1629
1630
|
readonly terminal?: RuntimeTerminalFact;
|
|
1631
|
+
readonly failureDetail?: RuntimeFailureDetail;
|
|
1630
1632
|
readonly activeSubtaskCount: number | null;
|
|
1631
1633
|
readonly activeSubtaskCountSource: "run_status" | "unknown";
|
|
1632
1634
|
readonly stop?: RuntimeRunStopStatus;
|
|
@@ -2025,6 +2027,7 @@ interface RuntimeRunStatus {
|
|
|
2025
2027
|
readonly model?: string;
|
|
2026
2028
|
readonly reasoning?: KodaXReasoningMode;
|
|
2027
2029
|
readonly error?: string;
|
|
2030
|
+
readonly failureDetail?: RuntimeFailureDetail;
|
|
2028
2031
|
readonly lifecycleError?: RuntimeRunLifecycleError;
|
|
2029
2032
|
readonly terminal?: RuntimeTerminalFact;
|
|
2030
2033
|
readonly continuation?: RuntimeContinuationStatus;
|
|
@@ -2089,7 +2092,27 @@ interface RuntimeRunStopReceipt {
|
|
|
2089
2092
|
}
|
|
2090
2093
|
type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "actor_settlement_not_persisted" | "control_history_untrusted";
|
|
2091
2094
|
/** Credential-safe failure category; raw provider error text is never required. */
|
|
2092
|
-
type RuntimeRunFailureKind = "auth" | "rate_limit" | "network" | "provider_aborted" | "invalid_response" | "runtime_cleanup" | "provider";
|
|
2095
|
+
type RuntimeRunFailureKind = "auth" | "rate_limit" | "network" | "not_found" | "unknown_provider" | "request" | "upstream" | "cancelled" | "provider_aborted" | "invalid_response" | "runtime_cleanup" | "context_capacity" | "provider";
|
|
2096
|
+
type RuntimeFailureStage = "catalog" | "credential" | "request_build" | "transport" | "response_stream" | "runtime_control" | "runtime_settlement";
|
|
2097
|
+
type RuntimeProviderErrorCode = "credential_unavailable" | "authentication_failed" | "rate_limited" | "network_error" | "tls_error" | "request_timeout" | "provider_not_registered" | "catalog_error" | "model_not_found" | "endpoint_not_found" | "resource_not_found" | "request_build_failed" | "upstream_client_error" | "upstream_server_error" | "protocol_mismatch" | "response_stream_error" | "cancelled" | "runtime_settlement_failed" | "context_capacity_exceeded" | "provider_error";
|
|
2098
|
+
interface RuntimeFailureDetail {
|
|
2099
|
+
readonly failureKind: RuntimeRunFailureKind;
|
|
2100
|
+
readonly stage: RuntimeFailureStage;
|
|
2101
|
+
/** Stable KodaX code suitable for programmatic handling. */
|
|
2102
|
+
readonly providerErrorCode: RuntimeProviderErrorCode;
|
|
2103
|
+
/** Bounded KodaX-owned display text; never derived from provider response bodies. */
|
|
2104
|
+
readonly safeMessage: string;
|
|
2105
|
+
readonly httpStatus?: number;
|
|
2106
|
+
/** Provider-controlled code; informative only and not part of KodaX compatibility. */
|
|
2107
|
+
readonly upstreamErrorCode?: string;
|
|
2108
|
+
readonly requestId?: string;
|
|
2109
|
+
readonly retryAfterMs?: number;
|
|
2110
|
+
/** Local context-capacity accounting (FEATURE_296); absent for non-capacity failures. */
|
|
2111
|
+
readonly contextTokens?: {
|
|
2112
|
+
readonly required: number;
|
|
2113
|
+
readonly available: number;
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2093
2116
|
interface RuntimeTerminalFact {
|
|
2094
2117
|
readonly revision: number;
|
|
2095
2118
|
readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
|
|
@@ -2105,6 +2128,7 @@ interface RuntimeRunResult {
|
|
|
2105
2128
|
readonly phase: RuntimeRunPhase;
|
|
2106
2129
|
readonly result?: KodaXResult;
|
|
2107
2130
|
readonly error?: Error;
|
|
2131
|
+
readonly failureDetail?: RuntimeFailureDetail;
|
|
2108
2132
|
readonly terminal?: RuntimeTerminalFact;
|
|
2109
2133
|
readonly stop?: RuntimeRunStopStatus;
|
|
2110
2134
|
}
|
|
@@ -2697,4 +2721,4 @@ declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Prom
|
|
|
2697
2721
|
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2698
2722
|
|
|
2699
2723
|
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimeDaemonDisconnectError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, isRuntimeDaemonDisconnectError, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2700
|
-
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonDisconnectCode, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFailureKind, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
|
2724
|
+
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonDisconnectCode, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFailureDetail, RuntimeFailureStage, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeProviderErrorCode, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFailureKind, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
package/dist/sdk-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunks/chunk-
|
|
2
|
+
import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunks/chunk-O4DS7RIQ.js";import"./chunks/chunk-7JZZIFZH.js";import"./chunks/chunk-LYWDUSKO.js";import"./chunks/chunk-CHUPIWIF.js";import"./chunks/chunk-LQYETRFK.js";import"./chunks/chunk-XUX6OUCA.js";import"./chunks/chunk-GYUU7XLH.js";import"./chunks/chunk-HAX55GOQ.js";import"./chunks/chunk-U27XKEN5.js";import"./chunks/chunk-RIQSS56Y.js";import"./chunks/chunk-JKTJCGO2.js";import"./chunks/chunk-AC7Z2OIY.js";import"./chunks/chunk-C4KYZAFU.js";import"./chunks/chunk-4OIQZWA5.js";import"./chunks/chunk-NVRWCSA5.js";import"./chunks/chunk-LTUZTQ6W.js";import"./chunks/chunk-POTW3O65.js";import"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,v as KODAX_RUNTIME_SDK_CAPABILITIES,d as RUNTIME_DAEMON_METHODS,i as RUNTIME_DAEMON_METHOD_SCHEMAS,j as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,k as RUNTIME_DAEMON_PROTOCOL_SCHEMA,l as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,p as RuntimeAutoModeConfigurationError,o as RuntimeDaemonCapabilityUpgradeError,g as RuntimeDaemonDisconnectError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,q as acquireKodaXInlineOwner,x as captureRuntimeSessionDiagnostics,z as connectKodaXRuntime,y as createKodaXRuntime,t as enableKodaXDaemonOwner,r as getKodaXRuntimeOwnerPolicy,s as getKodaXRuntimeOwnerState,w as handleRuntimePermissionRequest,h as isRuntimeDaemonDisconnectError,m as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,u as setKodaXRuntimeOwnerMode,A as settleKodaXRuntimeExit,n as waitForRuntimeDaemonShutdown};
|
package/dist/sdk-sandbox.d.ts
CHANGED
|
@@ -17,12 +17,12 @@ type KodaXSandboxNetworkPolicy = {
|
|
|
17
17
|
interface KodaXSandboxFilesystemPolicy {
|
|
18
18
|
/**
|
|
19
19
|
* Read roots required by the command. ASRT permits ordinary reads by
|
|
20
|
-
* default
|
|
20
|
+
* default. An explicit denyRead remains authoritative beneath these roots.
|
|
21
21
|
*/
|
|
22
22
|
readonly allowRead: readonly string[];
|
|
23
23
|
/** The only roots in which the command may create, modify, or remove data. */
|
|
24
24
|
readonly allowWrite: readonly string[];
|
|
25
|
-
/** Read-denied roots;
|
|
25
|
+
/** Read-denied roots; denyRead takes precedence over allowRead. */
|
|
26
26
|
readonly denyRead?: readonly string[];
|
|
27
27
|
/** Write-denied roots; denyWrite takes precedence over allowWrite. */
|
|
28
28
|
readonly denyWrite?: readonly string[];
|
|
@@ -50,6 +50,17 @@ type KodaXSandboxRunResult = {
|
|
|
50
50
|
readonly status: 'unavailable';
|
|
51
51
|
readonly sandboxed: false;
|
|
52
52
|
readonly doctor: SandboxRuntimeDoctorResult;
|
|
53
|
+
readonly reason?: 'doctor_not_ready' | 'backend_launch_failed';
|
|
54
|
+
readonly diagnostic?: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly status: 'execution_uncertain';
|
|
57
|
+
readonly sandboxed: false;
|
|
58
|
+
readonly reason: 'attestation_failed';
|
|
59
|
+
readonly diagnostic: string;
|
|
60
|
+
readonly doctor: SandboxRuntimeDoctorResult;
|
|
61
|
+
readonly exitCode: number;
|
|
62
|
+
readonly stdout: string;
|
|
63
|
+
readonly stderr: string;
|
|
53
64
|
};
|
|
54
65
|
interface SandboxSetupOutcome {
|
|
55
66
|
readonly status: 'ready' | 'cancelled' | 'unavailable';
|
|
@@ -59,7 +70,7 @@ interface SandboxSetupOutcome {
|
|
|
59
70
|
readonly error?: string;
|
|
60
71
|
}
|
|
61
72
|
interface KodaXSandboxCapability {
|
|
62
|
-
readonly version:
|
|
73
|
+
readonly version: 6;
|
|
63
74
|
readonly asrtVersion: string;
|
|
64
75
|
readonly platform: NodeJS.Platform;
|
|
65
76
|
readonly backend: 'windows-restricted-user' | 'macos-seatbelt' | 'linux-bubblewrap' | 'unsupported';
|
|
@@ -78,6 +89,9 @@ interface KodaXSandboxCapability {
|
|
|
78
89
|
readonly gitSafeDirectory: 'authorized-repo-roots';
|
|
79
90
|
readonly delayedEffectDrainRecovery: 'automatic';
|
|
80
91
|
readonly sameBootAclRecovery: 'sandbox-user-process-probe';
|
|
92
|
+
readonly trustedTextAuthority: 'host-transaction';
|
|
93
|
+
readonly windowsShellAuthority: 'native-token-job-v2';
|
|
94
|
+
readonly commandLifetimeFilesystemLease: false;
|
|
81
95
|
}
|
|
82
96
|
declare function sandboxRuntimeCapability(): KodaXSandboxCapability;
|
|
83
97
|
declare function doctorSandboxRuntime(options?: {
|
package/dist/sdk-sandbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunks/chunk-5BNQXXGY.js";import{a,b,
|
|
2
|
+
import"./chunks/chunk-5BNQXXGY.js";import{a,b,d as c,e as d,f as e,g as f,h as g}from"./chunks/chunk-7JZZIFZH.js";import"./chunks/chunk-CHUPIWIF.js";import"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{a as KODAX_ASRT_VERSION,f as activateKodaXSandbox,c as doctorKodaXSandbox,b as getKodaXSandboxCapability,e as getKodaXSandboxSetupGuidance,g as runKodaXSandboxed,d as setupKodaXSandbox};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, h as CreatableHistoryItem, j as DeleteSessionResult, k as ForkSessionOptions, l as FullTranscriptSessionData, M as ListSessionsOptions, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, X as RewindSessionOptions, Y as RunningSessionInfo, Z as SessionBundleExportDiagnostic, _ as SessionBundleExportFile, $ as SessionBundleExportOptions, a0 as SessionBundleExportResult, a1 as SessionBundleExportStatus, a2 as SessionConversationHistoryData, a3 as SessionConversationHistoryEntry, a4 as SessionConversationHistoryIssue, a5 as SessionConversationHistoryIssueCode, a6 as SessionConversationHistoryStatus, a7 as SessionConversationMutationBoundary, a9 as SessionManager, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, af as SessionSummary, ag as SessionTranscriptEntry, ah as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-
|
|
2
|
-
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-
|
|
3
|
-
export { aq as KodaXSessionUiHistoryItem, ar as KodaXSessionUiHistoryItemType, as as KodaXSessionUiTextHistoryItem, at as KodaXSessionUiTextHistoryItemType, au as KodaXSessionUiToolCall, av as KodaXSessionUiToolCallStatus, aw as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-
|
|
4
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
1
|
+
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, h as CreatableHistoryItem, j as DeleteSessionResult, k as ForkSessionOptions, l as FullTranscriptSessionData, M as ListSessionsOptions, T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta, X as RewindSessionOptions, Y as RunningSessionInfo, Z as SessionBundleExportDiagnostic, _ as SessionBundleExportFile, $ as SessionBundleExportOptions, a0 as SessionBundleExportResult, a1 as SessionBundleExportStatus, a2 as SessionConversationHistoryData, a3 as SessionConversationHistoryEntry, a4 as SessionConversationHistoryIssue, a5 as SessionConversationHistoryIssueCode, a6 as SessionConversationHistoryStatus, a7 as SessionConversationMutationBoundary, a9 as SessionManager, ab as SessionReadError, ac as SessionReadErrorCode, ad as SessionReadOptions, af as SessionSummary, ag as SessionTranscriptEntry, ah as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-Dx3L3W4Z.js';
|
|
2
|
+
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-Xy0f3x4i.js';
|
|
3
|
+
export { aq as KodaXSessionUiHistoryItem, ar as KodaXSessionUiHistoryItemType, as as KodaXSessionUiTextHistoryItem, at as KodaXSessionUiTextHistoryItemType, au as KodaXSessionUiToolCall, av as KodaXSessionUiToolCallStatus, aw as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BbZjR0Wr.js';
|
|
4
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-DYHGXXH4.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-DQOlA8cy.js';
|
|
6
6
|
import 'vscode-languageserver-protocol';
|
|
7
|
-
import './types-chunks/controller.d-
|
|
7
|
+
import './types-chunks/controller.d-C7tXUcXo.js';
|
|
8
|
+
import 'node:child_process';
|
|
8
9
|
import './types-chunks/types.d-Cb8RdrjU.js';
|
|
9
10
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
10
11
|
import './types-chunks/types-PHjfwebT.js';
|
|
11
12
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
12
|
-
import './types-chunks/base.d-
|
|
13
|
+
import './types-chunks/base.d-COo8E2dk.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ub as n,Vb as t,Wb as r,Xb as a,Yb as S,Zb as d,ac as l,bc as p,cb as o,cc as u,dc as y,ec as c,fc as m,gc as H,hc as C,ic as T,jc as x,kc as R,nb as i}from"./chunks/chunk-
|
|
2
|
+
import{Ub as n,Vb as t,Wb as r,Xb as a,Yb as S,Zb as d,ac as l,bc as p,cb as o,cc as u,dc as y,ec as c,fc as m,gc as H,hc as C,ic as T,jc as x,kc as R,nb as i}from"./chunks/chunk-LQYETRFK.js";import{T as s,U as e}from"./chunks/chunk-XUX6OUCA.js";import"./chunks/chunk-GYUU7XLH.js";import"./chunks/chunk-HAX55GOQ.js";import"./chunks/chunk-U27XKEN5.js";import"./chunks/chunk-RIQSS56Y.js";import"./chunks/chunk-JKTJCGO2.js";import"./chunks/chunk-AC7Z2OIY.js";import"./chunks/chunk-C4KYZAFU.js";import"./chunks/chunk-4OIQZWA5.js";import"./chunks/chunk-NVRWCSA5.js";import"./chunks/chunk-LTUZTQ6W.js";import"./chunks/chunk-POTW3O65.js";import"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{i as SessionReadError,p as appendClientNotice,C as archiveSession,n as compactSession,R as createSessionManager,H as deleteSession,l as exportSessionBundle,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,u as forkSession,m as listRunningSessions,t as listSessions,a as loadFullTranscript,r as loadSession,d as readConversationHistory,S as readFullTranscript,o as restoreHistoryItemsFromSession,y as rewindSession,c as setActiveEntry,T as unarchiveSession,x as watchSessions};
|
package/dist/sdk-skills.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{Ed as n,Fd as g,Gd as u,Hd as c,Id as d,Jd as x,Kd as P,Md as R,Nd as h,Od as p,Pd as v,Qd as y,Rd as M,Sd as f,Td as m,Ud as E,lc as l,mc as e,nc as i,oc as t,pc as o,qc as a,uc as k,vc as r,wc as S,xc as s}from"./chunks/chunk-6BVF3HZ7.js";import"./chunks/chunk-NGH6T4FD.js";import"./chunks/chunk-ONUPGMER.js";export{y as SkillExecutor,R as SkillRegistry,d as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,x as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,o as getDefaultSkillPaths,g as getNestedSkillPaths,a as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};
|