@kodax-ai/kodax 0.7.72 → 0.7.74

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +226 -0
  2. package/README.md +72 -18
  3. package/README_CN.md +55 -14
  4. package/config-templates/config.example.jsonc +7 -0
  5. package/dist/chunks/agent-2ABIG5NW.js +2 -0
  6. package/dist/chunks/argument-completer-C45DEO34.js +2 -0
  7. package/dist/chunks/chunk-5GH3SVI3.js +74 -0
  8. package/dist/chunks/{chunk-SQODXBLX.js → chunk-64M5HOCA.js} +1 -1
  9. package/dist/chunks/{chunk-PKQOEDHJ.js → chunk-7W6KYJU2.js} +224 -230
  10. package/dist/chunks/chunk-C7TZAT3S.js +369 -0
  11. package/dist/chunks/chunk-F7AIEHSS.js +46 -0
  12. package/dist/chunks/{chunk-E27LHEIP.js → chunk-GAFFYJU3.js} +1 -1
  13. package/dist/chunks/chunk-KPGVY6PF.js +321 -0
  14. package/dist/chunks/{chunk-44QXPEEE.js → chunk-MBAPT2R5.js} +1 -1
  15. package/dist/chunks/{chunk-IR5KIK7E.js → chunk-MVCAFD6M.js} +1 -1
  16. package/dist/chunks/chunk-PP53SIIL.js +5 -0
  17. package/dist/chunks/chunk-QH56WEHK.js +2 -0
  18. package/dist/chunks/chunk-UJS7JAO6.js +770 -0
  19. package/dist/chunks/{chunk-MVARIMQV.js → chunk-VK5QTHS6.js} +6 -6
  20. package/dist/chunks/chunk-VPURXE2F.js +427 -0
  21. package/dist/chunks/chunk-XM724XAA.js +329 -0
  22. package/dist/chunks/{chunk-WIBLZK4G.js → chunk-XMP66YWG.js} +11 -4
  23. package/dist/chunks/chunk-XXQLPTAN.js +78 -0
  24. package/dist/chunks/compaction-config-QYCDOW3Q.js +2 -0
  25. package/dist/chunks/{construction-bootstrap-ZJPXUPXQ.js → construction-bootstrap-BKNPJI7O.js} +1 -1
  26. package/dist/chunks/dist-6EK4H7TP.js +2 -0
  27. package/dist/chunks/{dist-GOUP4YVE.js → dist-EVEJAII2.js} +1 -1
  28. package/dist/chunks/host-KS4TJKWQ.js +2 -0
  29. package/dist/chunks/run-manager-L7MKGQNX.js +2 -0
  30. package/dist/chunks/{utils-OTT5CG5J.js → utils-GTJLL4GT.js} +1 -1
  31. package/dist/index.d.ts +17 -16
  32. package/dist/index.js +5 -5
  33. package/dist/kodax_cli.js +1357 -1294
  34. package/dist/provider-capabilities.json +184 -5
  35. package/dist/runtime-worker.js +1277 -1224
  36. package/dist/sdk-a2a.d.ts +11 -10
  37. package/dist/sdk-a2a.js +1 -1
  38. package/dist/sdk-agent.d.ts +110 -62
  39. package/dist/sdk-agent.js +1 -1
  40. package/dist/sdk-coding.d.ts +114 -32
  41. package/dist/sdk-coding.js +1 -1
  42. package/dist/sdk-experimental-memory.d.ts +1 -1
  43. package/dist/sdk-experimental-memory.js +1 -1
  44. package/dist/sdk-llm.d.ts +8 -49
  45. package/dist/sdk-llm.js +1 -1
  46. package/dist/sdk-mcp.js +1 -1
  47. package/dist/sdk-media.d.ts +1 -1
  48. package/dist/sdk-media.js +1 -1
  49. package/dist/sdk-repl.d.ts +153 -24
  50. package/dist/sdk-repl.js +2 -2
  51. package/dist/sdk-runtime.d.ts +238 -19
  52. package/dist/sdk-runtime.js +1 -1
  53. package/dist/sdk-session.d.ts +6 -6
  54. package/dist/sdk-session.js +1 -1
  55. package/dist/sdk-skills.js +1 -1
  56. package/dist/semantic-worker.js +16 -14
  57. package/dist/types-chunks/{base.d-Cz_rwpOi.d.ts → base.d-ChvpaKjZ.d.ts} +1 -1
  58. package/dist/types-chunks/{bash-prefix-extractor.d-CHJO5y94.d.ts → bash-prefix-extractor.d-r1beOESM.d.ts} +50 -14
  59. package/dist/types-chunks/{capability-learning.d-_lR0J4iR.d.ts → capability-learning.d-DPrYxRjF.d.ts} +1 -1
  60. package/dist/types-chunks/{capsule.d-DxtdE-GD.d.ts → capsule.d-zeqV4IQX.d.ts} +11 -3
  61. package/dist/types-chunks/{commands.d-DZxHzH5-.d.ts → commands.d-DUxnK2TU.d.ts} +67 -8
  62. package/dist/types-chunks/{guardrail.d-DlpMnd-Y.d.ts → guardrail.d-CWYD1bdL.d.ts} +2 -1
  63. package/dist/types-chunks/{guardrail.d-auV61_h5.d.ts → guardrail.d-qjuKJZ31.d.ts} +79 -18
  64. package/dist/types-chunks/history-retrieval.d-BKTJIrVd.d.ts +57 -0
  65. package/dist/types-chunks/{public-api.d--IDNJsu1.d.ts → public-api.d-CX4B11qY.d.ts} +19 -5
  66. package/dist/types-chunks/{run-manager.d-Bh50OdVl.d.ts → run-manager.d-B9fEIjZk.d.ts} +1 -1
  67. package/dist/types-chunks/{sdk-session-Cfw6NFu-.d.ts → sdk-session-B0fhAOPa.d.ts} +3 -3
  68. package/dist/types-chunks/{resolver.d-ssgNSlrh.d.ts → side-query.d-DWTMsndP.d.ts} +68 -5
  69. package/dist/types-chunks/{types.d-EqQmHztg.d.ts → types.d-Bm_y6YuM.d.ts} +16 -9
  70. package/dist/types-chunks/{types.d-Cqaw71Ax.d.ts → types.d-CSmF0t0n.d.ts} +6 -5
  71. package/dist/types-chunks/{types.d-CNZgY52F.d.ts → types.d-DEctY20M.d.ts} +10 -3
  72. package/dist/types-chunks/{types.d-DH1mvdcl.d.ts → types.d-sRLugmjy.d.ts} +64 -15
  73. package/dist/types-chunks/{utils.d-gmn3c5U4.d.ts → utils.d-D0wPxz8y.d.ts} +94 -10
  74. package/docs/SDK_EMBEDDER_GUIDE.md +1952 -1573
  75. package/package.json +9 -2
  76. package/dist/chunks/agent-YKGU4USA.js +0 -2
  77. package/dist/chunks/argument-completer-QZETLNAB.js +0 -2
  78. package/dist/chunks/chunk-23X6REO4.js +0 -46
  79. package/dist/chunks/chunk-2RI252RN.js +0 -2
  80. package/dist/chunks/chunk-CLFP6UGU.js +0 -71
  81. package/dist/chunks/chunk-EDZ5KJFT.js +0 -5
  82. package/dist/chunks/chunk-GIK4SGAT.js +0 -364
  83. package/dist/chunks/chunk-GVWPHE23.js +0 -310
  84. package/dist/chunks/chunk-JSDLBXME.js +0 -755
  85. package/dist/chunks/chunk-VDGCGOQH.js +0 -328
  86. package/dist/chunks/chunk-VVE3UM4F.js +0 -410
  87. package/dist/chunks/chunk-ZJIMT5I3.js +0 -78
  88. package/dist/chunks/compaction-config-TWCDFLX6.js +0 -2
  89. package/dist/chunks/dist-JT4ATXVM.js +0 -2
  90. package/dist/chunks/host-SVEDZUC5.js +0 -2
  91. package/dist/chunks/run-manager-RX42UNEM.js +0 -2
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{F as u,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s}from"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.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};
2
+ import{F as u,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s}from"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.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};
@@ -1,27 +1,28 @@
1
1
  import React$1, { ReactNode } from 'react';
2
- import { A as AppProps, N as Message, ab as UIState, g as CreatableHistoryItem, l as HistoryItem, a8 as ToolCall, aa as UIActions, K as KeyInfo, z as KeypressHandler, a0 as StreamingState, S as PromptEditingMode, I as InputPromptProps, $ as StatusBarProps, a5 as Theme, a9 as ToolCallStatus, a1 as Suggestion, ac as UseTextBufferReturn, H as HistoryEntry, O as PastedContent, r as HistoryItemInfo, R as PermissionMode } from './types-chunks/public-api.d--IDNJsu1.js';
3
- export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, h as CursorPosition, D as DEFAULT_UI_STATE, i as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, j as FileSessionStorage, k as FullTranscriptSessionData, m as HistoryItemAssistant, n as HistoryItemBase, o as HistoryItemError, p as HistoryItemEvent, q as HistoryItemHint, s as HistoryItemSidecar, t as HistoryItemSystem, u as HistoryItemThinking, v as HistoryItemToolGroup, w as HistoryItemType, x as HistoryItemUser, y as KeypressEvent, B as KeypressHandlerPriority, L as LearningBinding, E as LearningSurfaceSnapshot, G as LegacyMessageListProps, J as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, Q as PermissionContext, T as PromptSubmitPayload, U as RunningSessionInfo, V as SessionData, W as SessionManager, X as SessionStorage, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, a2 as TOOL_STATUS_ICONS, a3 as TextBuffer, a4 as TextBufferOptions, a6 as ThemeColors, a7 as ThemeSymbols, ad as VisualCursor, ae as VisualLayout, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, aj as computeConfirmTools, ak as createMemorySessionStorage, al as createSessionManager, am as deleteSession, an as forkSession, ao as isPermissionMode, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, at as normalizePermissionMode, au as permissionModeDisplayName, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d--IDNJsu1.js';
4
- export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RepLOptions, d as ReplRuntimeRunner, e as ReplRuntimeRunnerInput, f as ReplRuntimeStatusProvider, g as executeCommand, h as getCommandRegistry, p as parseCommand, i as processSpecialSyntax, r as runInkInteractiveMode, j as runInteractiveMode } from './types-chunks/commands.d-DZxHzH5-.js';
5
- import { a as BashPrefixExtractor, O as KodaXEvents, t as KodaXAgentMode, aV as ProviderRecoveryEvent, a9 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-CHJO5y94.js';
6
- import { c as QueuedMessage } from './types-chunks/types.d-CNZgY52F.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-Cfw6NFu-.js';
8
- import { c as CommandInfo } from './types-chunks/utils.d-gmn3c5U4.js';
9
- export { 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 RuntimeSurfaceMode, n as RuntimeSurfaceStatus, o as createInteractiveContext, p as ensureExampleConfigFile, q as ensureExampleConfigFiles, r as getGitRoot, s as getProviderList, t as getProviderModel, u as getVersion, v as hydrateProcessEnvFromShell, w as isProviderConfigured, x as loadConfig, y as prepareRuntimeConfig, z as rateLimitedCall, A as registerConfiguredCustomProviders, B as resolveRuntimeEffortSelection, D as resolveRuntimeModelSelection, E as resolveRuntimeProviderSelection, F as saveConfig, G as touchContext } from './types-chunks/utils.d-gmn3c5U4.js';
10
- import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-Cqaw71Ax.js';
11
- export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-Cqaw71Ax.js';
2
+ import { A as AppProps, N as Message, ab as UIState, g as CreatableHistoryItem, l as HistoryItem, a8 as ToolCall, aa as UIActions, K as KeyInfo, z as KeypressHandler, a0 as StreamingState, S as PromptEditingMode, I as InputPromptProps, $ as StatusBarProps, a5 as Theme, a9 as ToolCallStatus, a1 as Suggestion, ac as UseTextBufferReturn, H as HistoryEntry, O as PastedContent, r as HistoryItemInfo, R as PermissionMode } from './types-chunks/public-api.d-CX4B11qY.js';
3
+ export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, h as CursorPosition, D as DEFAULT_UI_STATE, i as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, j as FileSessionStorage, k as FullTranscriptSessionData, m as HistoryItemAssistant, n as HistoryItemBase, o as HistoryItemError, p as HistoryItemEvent, q as HistoryItemHint, s as HistoryItemSidecar, t as HistoryItemSystem, u as HistoryItemThinking, v as HistoryItemToolGroup, w as HistoryItemType, x as HistoryItemUser, y as KeypressEvent, B as KeypressHandlerPriority, L as LearningBinding, E as LearningSurfaceSnapshot, G as LegacyMessageListProps, J as ListSessionsOptions, M as MemorySessionStorage, P as PERMISSION_MODES, Q as PermissionContext, T as PromptSubmitPayload, U as RunningSessionInfo, V as SessionData, W as SessionManager, X as SessionStorage, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, a2 as TOOL_STATUS_ICONS, a3 as TextBuffer, a4 as TextBufferOptions, a6 as ThemeColors, a7 as ThemeSymbols, ad as VisualCursor, ae as VisualLayout, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, aj as computeConfirmTools, ak as createMemorySessionStorage, al as createSessionManager, am as deleteSession, an as forkSession, ao as isPermissionMode, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, at as normalizePermissionMode, au as permissionModeDisplayName, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d-CX4B11qY.js';
4
+ export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RUNTIME_PERMISSION_PENDING_NOTICE, d as RepLOptions, e as ReplRuntimeAutoModeControl, f as ReplRuntimeAutoModeSettings, g as ReplRuntimePermissionDecision, h as ReplRuntimePermissionGrantSuggestion, i as ReplRuntimePermissionPrompt, j as ReplRuntimePermissionRequest, k as ReplRuntimeRunner, l as ReplRuntimeRunnerInput, m as ReplRuntimeStatusProvider, n as executeCommand, o as getCommandRegistry, p as parseCommand, q as processSpecialSyntax, r as runInkInteractiveMode, s as runInteractiveMode, t as toReplRuntimeAutoModeSettings } from './types-chunks/commands.d-DUxnK2TU.js';
5
+ import { a as BashPrefixExtractor, Q as KodaXEvents, t as KodaXAgentMode, aX as ProviderRecoveryEvent, ab as KodaXResult } from './types-chunks/bash-prefix-extractor.d-r1beOESM.js';
6
+ import { c as QueuedMessage } from './types-chunks/types.d-DEctY20M.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-B0fhAOPa.js';
8
+ import { c as CommandInfo } from './types-chunks/utils.d-D0wPxz8y.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-D0wPxz8y.js';
10
+ import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-CSmF0t0n.js';
11
+ export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CSmF0t0n.js';
12
+ import { Readable, Writable } from 'node:stream';
12
13
  import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
13
14
  export { E as ExtensionsIntegrationDocument, I as IntegrationConfigController, a as IntegrationConfigDiagnostic, b as IntegrationConfigListener, c as IntegrationConfigSnapshot, d as IntegrationConfigSource, e as IntegrationConfigStatus, f as IntegrationDocumentValidator, g as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, h as LegacyIntegrationMigrationPlan, i as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, j as parseMcpIntegrationDocument, k as planLegacyIntegrationMigration, r as readExtensionsIntegration, l as readMcpIntegration, n as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-ojG4swOP.js';
14
- export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-DH1mvdcl.js';
15
- import { S as SignalCollector, e as AutoModeAskUser, i as AutoModeSharedState, k as AutoModeToolGuardrail, s as RulesLoadResult } from './types-chunks/guardrail.d-auV61_h5.js';
15
+ export { bX as KodaXSessionUiHistoryItem, bY as KodaXSessionUiHistoryItemType, bZ as KodaXSessionUiTextHistoryItem, b_ as KodaXSessionUiTextHistoryItemType, b$ as KodaXSessionUiToolCall, c0 as KodaXSessionUiToolCallStatus, c1 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-sRLugmjy.js';
16
+ import { S as SignalCollector, e as AutoModeAskUser, q as AutoModeSharedState, s as AutoModeToolGuardrail, B as RulesLoadResult } from './types-chunks/guardrail.d-qjuKJZ31.js';
16
17
  import './types-chunks/center-types.d-BBT122uJ.js';
17
18
  import './types-chunks/types.d-DCQVBqVn.js';
18
19
  import 'vscode-languageserver-protocol';
19
20
  import './types-chunks/cost-tracker.d-BeaenODW.js';
20
21
  import './types-chunks/capability.d-K664nHOS.js';
21
- import './types-chunks/base.d-Cz_rwpOi.js';
22
+ import './types-chunks/base.d-ChvpaKjZ.js';
22
23
  import 'readline';
23
24
  import 'child_process';
24
- import './types-chunks/guardrail.d-DlpMnd-Y.js';
25
+ import './types-chunks/guardrail.d-CWYD1bdL.js';
25
26
 
26
27
  /**
27
28
  * App - KodaX CLI root component.
@@ -2132,7 +2133,7 @@ declare function getThemeNames(): string[];
2132
2133
  declare function listRegisteredCommands(projectRoot?: string): CommandInfo[];
2133
2134
 
2134
2135
  declare const CONFIG_TEMPLATES: {
2135
- readonly core: "// 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 --dry-run` for legacy declarations.\n{\n // \"provider\": \"deepseek\",\n // \"model\": \"deepseek-v4\",\n // \"runtimeMode\": \"embedded\",\n // \"effort\": \"high\",\n // \"agentMode\": \"ama\",\n // \"permissionMode\": \"accept-edits\",\n // \"locale\": \"zh\",\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 // \"reasoning\": { \"efforts\": [\"off\", \"low\", \"high\"], \"default\": \"high\" }\n // }\n // ],\n // \"repoIntelligenceMode\": \"auto\",\n // \"sessionRetentionDays\": 0,\n // \"workflow\": { \"maxConcurrency\": 8 }\n}\n";
2136
+ readonly core: "// 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 --dry-run` for legacy declarations.\n{\n // \"provider\": \"deepseek\",\n // \"model\": \"deepseek-v4\",\n // \"runtimeMode\": \"embedded\",\n // \"effort\": \"high\",\n // \"agentMode\": \"ama\",\n // \"permissionMode\": \"accept-edits\",\n // \"locale\": \"zh\",\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 // \"reasoning\": { \"efforts\": [\"off\", \"low\", \"high\"], \"default\": \"high\" }\n // }\n // ],\n // \"repoIntelligenceMode\": \"auto\",\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 // \"triggerPercent\": 75,\n // \"triggerTokens\": 0\n // },\n // \"sessionRetentionDays\": 0,\n // \"workflow\": { \"maxConcurrency\": 8 }\n}\n";
2136
2137
  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";
2137
2138
  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 // 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";
2138
2139
  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";
@@ -2221,6 +2222,127 @@ declare function upsertCustomProvider(config: KodaXCustomProviderConfig): KodaXC
2221
2222
  */
2222
2223
  declare function removeCustomProvider(name: string): boolean;
2223
2224
 
2225
+ /**
2226
+ * First-run provider setup.
2227
+ *
2228
+ * This module owns only provider/model metadata. API key values never cross
2229
+ * this boundary: setup records the environment-variable *name* and asks the
2230
+ * user to set its value outside KodaX before restarting the terminal.
2231
+ */
2232
+
2233
+ interface ProviderSetupCatalogEntry {
2234
+ readonly name: string;
2235
+ readonly apiKeyEnv: string;
2236
+ readonly defaultModel: string;
2237
+ readonly models: readonly string[];
2238
+ }
2239
+ type ProviderSetupReadiness = {
2240
+ readonly status: 'ready';
2241
+ readonly configPath: string;
2242
+ readonly configRevision: string;
2243
+ readonly provider?: string;
2244
+ } | {
2245
+ readonly status: 'needs-provider';
2246
+ readonly configPath: string;
2247
+ readonly configRevision: string;
2248
+ } | {
2249
+ readonly status: 'needs-credential';
2250
+ readonly configPath: string;
2251
+ readonly configRevision: string;
2252
+ readonly provider: string;
2253
+ readonly apiKeyEnv?: string;
2254
+ } | {
2255
+ readonly status: 'invalid-config';
2256
+ readonly configPath: string;
2257
+ readonly configRevision: string;
2258
+ readonly reason: string;
2259
+ };
2260
+ type ProviderSetupChoice = {
2261
+ readonly kind: 'builtin';
2262
+ readonly provider: string;
2263
+ readonly model: string;
2264
+ } | {
2265
+ readonly kind: 'custom';
2266
+ readonly provider: ProviderSetupCustomProviderMetadata;
2267
+ };
2268
+ /** The setup flow accepts public connection metadata, never provider secrets. */
2269
+ interface ProviderSetupCustomProviderMetadata {
2270
+ readonly name: string;
2271
+ readonly protocol: KodaXCustomProviderConfig['protocol'];
2272
+ readonly baseUrl: string;
2273
+ readonly apiKeyEnv: string;
2274
+ readonly model: string;
2275
+ }
2276
+ interface InspectProviderSetupReadinessInput {
2277
+ readonly configPath?: string;
2278
+ readonly catalog?: readonly ProviderSetupCatalogEntry[];
2279
+ readonly environment?: NodeJS.ProcessEnv | Readonly<Record<string, string | undefined>>;
2280
+ readonly explicitProvider?: string;
2281
+ }
2282
+ interface PersistProviderSetupChoiceInput {
2283
+ readonly configPath?: string;
2284
+ readonly expectedRevision: string;
2285
+ readonly catalog?: readonly ProviderSetupCatalogEntry[];
2286
+ readonly choice: ProviderSetupChoice;
2287
+ }
2288
+ interface PersistedProviderSetupChoice {
2289
+ readonly provider: string;
2290
+ readonly model: string;
2291
+ readonly apiKeyEnv: string;
2292
+ readonly configPath: string;
2293
+ }
2294
+ declare class ProviderSetupConfigConflictError extends Error {
2295
+ constructor(configPath: string);
2296
+ }
2297
+ declare class ProviderSetupInvalidConfigError extends Error {
2298
+ constructor(configPath: string, reason: string);
2299
+ }
2300
+ /** Built-in API providers only. CLI bridges retain their own authentication flows. */
2301
+ declare function getProviderSetupCatalog(): readonly ProviderSetupCatalogEntry[];
2302
+ /**
2303
+ * Determine whether automatic setup is appropriate without exposing an API-key
2304
+ * value to callers. An explicit provider or an existing valid config is never
2305
+ * replaced by automatic setup.
2306
+ */
2307
+ declare function inspectProviderSetupReadiness(input?: InspectProviderSetupReadinessInput): ProviderSetupReadiness;
2308
+ /**
2309
+ * Persist only non-secret provider metadata. The revision check prevents a
2310
+ * setup screen from replacing edits made by another process while it was open.
2311
+ */
2312
+ declare function persistProviderSetupChoice(input: PersistProviderSetupChoiceInput): PersistedProviderSetupChoice;
2313
+ declare function providerSetupRestartInstructions(input: {
2314
+ readonly apiKeyEnv: string;
2315
+ readonly platform?: NodeJS.Platform;
2316
+ }): readonly string[];
2317
+
2318
+ interface ProviderSetupInteraction {
2319
+ readonly choose: (message: string, items: readonly {
2320
+ readonly value: string;
2321
+ readonly label: string;
2322
+ }[]) => Promise<string | undefined>;
2323
+ readonly text: (message: string, defaultValue?: string) => Promise<string | undefined>;
2324
+ readonly confirm: (message: string) => Promise<boolean>;
2325
+ readonly close?: () => void;
2326
+ }
2327
+ type ProviderSetupWizardResult = {
2328
+ readonly status: 'configured';
2329
+ readonly selection: PersistedProviderSetupChoice;
2330
+ } | {
2331
+ readonly status: 'cancelled';
2332
+ };
2333
+ interface RunProviderSetupWizardInput {
2334
+ readonly configPath?: string;
2335
+ readonly catalog?: readonly ProviderSetupCatalogEntry[];
2336
+ readonly interaction?: ProviderSetupInteraction;
2337
+ readonly input?: Readable;
2338
+ readonly output?: Writable;
2339
+ }
2340
+ /**
2341
+ * Run the standalone first-use setup flow. It intentionally has no API-key
2342
+ * field: only public provider metadata crosses this boundary.
2343
+ */
2344
+ declare function runProviderSetupWizard(input?: RunProviderSetupWizardInput): Promise<ProviderSetupWizardResult>;
2345
+
2224
2346
  /**
2225
2347
  * Typed MCP integration CRUD.
2226
2348
  *
@@ -2237,6 +2359,15 @@ declare function upsertMcpServer(name: string, config: McpServerConfig): McpServ
2237
2359
  declare function removeMcpServer(name: string): boolean;
2238
2360
  declare function validateMcpServerConfig(name: string, config: McpServerConfig): void;
2239
2361
 
2362
+ declare function findMostRecentResumableSession<T extends {
2363
+ readonly id: string;
2364
+ readonly msgCount: number;
2365
+ }>(storage: {
2366
+ list(gitRoot?: string, options?: {
2367
+ limit?: number;
2368
+ }): Promise<T[]>;
2369
+ }, gitRoot?: string): Promise<T | undefined>;
2370
+
2240
2371
  type SessionDedupeSkipReason = 'managed-task-worker' | 'unreadable' | 'no-match' | 'ambiguous-match' | 'move-failed';
2241
2372
  interface SessionDedupeOptions {
2242
2373
  sessionsDir?: string;
@@ -2276,7 +2407,7 @@ declare function dedupeSessions(options?: SessionDedupeOptions): Promise<Session
2276
2407
  * Auto-Mode Guardrail Bootstrap — FEATURE_092 phase 2b.7b (v0.7.33).
2277
2408
  *
2278
2409
  * Builds an `AutoModeToolGuardrail` wired to the live REPL's provider
2279
- * registry, tool registry, AGENTS.md content, and confirm-dialog askUser
2410
+ * registry, tool registry, compact permission facts, and confirm-dialog askUser
2280
2411
  * surface. The factory returns a lazy accessor: the guardrail is constructed
2281
2412
  * on first call so REPLs that never enter `auto` mode pay zero cost.
2282
2413
  *
@@ -2295,12 +2426,10 @@ declare function dedupeSessions(options?: SessionDedupeOptions): Promise<Session
2295
2426
  * config (FEATURE_092 v0.7.34 hotfix-3). They are evaluated on every
2296
2427
  * classify() call, so mid-session `/model` and `/provider` swaps DO
2297
2428
  * retarget the classifier without the user re-entering auto mode.
2298
- * AGENTS.md is wired the same way via the `getClaudeMd` live getter
2299
- * (FEATURE_092 follow-up) — it reads `loadAgentsFiles` (mtime-cached)
2300
- * on every classify so mid-session AGENTS.md edits reach the classifier
2301
- * without a restart or `/reload`. Only `rules`
2302
- * (`~/.kodax/auto-rules.jsonc`) remains captured-at-init; those edits
2303
- * are rare and a restart applies them.
2429
+ * - Permission review receives compact deterministic operation facts and
2430
+ * user-only authority evidence. AGENTS.md, assistant narration, and tool
2431
+ * outputs are intentionally excluded. `rules` (`~/.kodax/auto-rules.jsonc`)
2432
+ * remains captured-at-init; a restart applies edits to that file.
2304
2433
  */
2305
2434
 
2306
2435
  interface AutoModeBootstrapDeps {
@@ -2404,5 +2533,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
2404
2533
  declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
2405
2534
  declare function parseCommandCall(input: string): [string, string?] | null;
2406
2535
 
2407
- export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, processCommandCall, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runSessionPicker, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
2408
- export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
2536
+ export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, ProviderSetupConfigConflictError, ProviderSetupInvalidConfigError, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, findMostRecentResumableSession, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, inspectProviderSetupReadiness, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, persistProviderSetupChoice, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runProviderSetupWizard, runSessionPicker, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
2537
+ export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, PersistedProviderSetupChoice, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, ProviderSetupCatalogEntry, ProviderSetupChoice, ProviderSetupCustomProviderMetadata, ProviderSetupInteraction, ProviderSetupReadiness, ProviderSetupWizardResult, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
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 In,$a as Lo,A as Q,Aa as co,Ab as de,B as T,Ba as po,Bb as pe,C as U,Ca as lo,Cb as le,D as V,Da as uo,Db as ue,E as Y,Ea as fo,Eb as fe,F as Z,Fa as go,Fb as ge,G as tt,Ga as Co,Gb as Ce,H as nt,Ha as xo,Hb as xe,I as ot,Ia as yo,Ib as ye,J as et,Ja as Ko,Jb as Ke,K as rt,Ka as Xo,Kb as Xe,L as at,La as ho,Lb as he,M as pt,Ma as Do,Mb as De,N as lt,Na as Po,Nb as Pe,O as ut,Oa as Mo,Ob as Me,P as ft,Pa as bo,Pb as be,Q as bn,Qa as wo,Qb as we,R as wn,Ra as No,Rb as Ne,S as Nn,Sa as _o,Sb as _e,T as _n,Ta as jo,Tb as je,U as jn,Ua as ko,Ub as ke,V as kn,Va as Ao,Vb as Ae,W as An,Wa as Oo,Wb as Oe,X as On,Xa as Ro,Xb as Re,Y as Rn,Ya as So,Z as Sn,Za as vo,_ as vn,_a as Io,a as D,aa as Ln,ab as Wo,b as P,ba as Wn,bb as Fo,c as M,ca as Fn,cb as $o,d as b,da as $n,db as qo,e as w,ea as qn,eb as zo,f as N,fa as zn,fb as Bo,g as _,ga as Bn,gb as Eo,h as j,ha as En,hb as Go,i as k,ia as Gn,ib as Ho,j as A,ja as Hn,jb as Jo,k as O,ka as Jn,kb as Qo,l as R,la as Qn,lb as To,m as S,ma as Tn,mb as Uo,n as v,na as Un,nb as Vo,o as I,oa as Vn,ob as Yo,p as L,pa as Yn,pb as Zo,q as W,qa as Zn,qb as te,r as F,ra as to,rb as ne,s as $,sa as no,sb as oe,t as q,ta as oo,tb as ee,u as z,ua as eo,ub as re,v as B,va as ro,vb as ae,w as E,wa as ao,wb as me,x as G,xa as mo,xb as ie,y as H,ya as io,yb as se,z as J,za as so,zb as ce}from"./chunks/chunk-GVWPHE23.js";import{Aa as Pn,Ba as Mn,K as un,L as fn,M as gn,N as Cn,O as xn,T as yn,U as Kn,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,j as xt,k as yt,l as Kt,m as Xt,n as nn,p as on,q as en,r as rn,s as an,t as mn,u as sn,v as cn,w as dn,x as pn,xa as Xn,y as ln,ya as hn,za as Dn}from"./chunks/chunk-PKQOEDHJ.js";import{K as qt,L as zt,M as Bt,N as Et,O as Gt,P as Ht,Q as Jt,T as Qt,U as Tt,W as Ut,X as Vt,Y as Yt,_ as Zt,b as ht,c as Dt,ca as tn,d as Pt,e as Mt,f as bt,g as wt,h as Nt,i as _t,j as jt,k as kt,l as At,m as Ot,n as Rt,o as St,p as vt,q as It,s as Lt,t as Wt,u as Ft,v as $t}from"./chunks/chunk-WIBLZK4G.js";import"./chunks/chunk-2RI252RN.js";import"./chunks/chunk-VVE3UM4F.js";import"./chunks/chunk-IR5KIK7E.js";import"./chunks/chunk-MVARIMQV.js";import"./chunks/chunk-VDGCGOQH.js";import"./chunks/chunk-SQODXBLX.js";import"./chunks/chunk-44QXPEEE.js";import"./chunks/chunk-GIK4SGAT.js";import"./chunks/chunk-ZJIMT5I3.js";import"./chunks/chunk-JSDLBXME.js";import"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import{a}from"./chunks/chunk-ONUPGMER.js";import l from"fs/promises";import c from"path";import x from"os";var u=c.join(x.homedir(),".kodax","commands");function y(){return u}a(y,"getDefaultCommandDir");async function K(e){let n=new Map,o=e??u;try{await l.mkdir(o,{recursive:!0});let r=await l.readdir(o);for(let t of r){let m=c.extname(t),f=t.replace(m,"");if(m===".md"){try{let d=await l.readFile(c.join(o,t),"utf-8"),i=(d.split(`
3
- `)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{Bn as App,bn as AutocompleteContextProvider,hn as BUILTIN_COMMANDS,go as BackgroundTaskBar,ht as CONFIG_TEMPLATES,xo as ChildActivitySurface,re as ConsoleCapturer,dt as DEFAULT_UI_STATE,co as DialogSurface,Sn as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,ye as FileSessionStorage,Gn as FullscreenTranscriptLayout,Wn as HistoryItemRenderer,An as InputPrompt,At as IntegrationConfigController,u as KODAX_COMMANDS_DIR,St as KODAX_CONFIG_FILE,Ot as KODAX_DIR,Et as KODAX_EXAMPLE_CONFIG_FILE,Gt as KODAX_INTEGRATION_EXAMPLE_FILES,Rt as KODAX_SESSIONS_DIR,Ft as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Ln as LoadingIndicator,Ao as MemorySessionStorage,Hn as MessageActions,Fn as MessageList,Jn as MessageSelector,lo as NotificationsSurface,gt as PERMISSION_MODES,vt as PREVIEW_MAX_LENGTH,Uo as PendingInputsIndicator,vn as ProgressIndicator,Tn as PromptComposer,Yn as PromptFooter,Un as PromptFooterLeftSide,Vn as PromptFooterRightSide,Zn as PromptHelpMenu,so as PromptSuggestionsSurface,po as QueuedCommandsSurface,En as SimpleApp,On as SimpleInputPrompt,$n as SimpleMessageDisplay,zn as SimpleStatusBar,tt as SingleLineTextInput,Rn as Spinner,fo as StashNotice,qn as StatusBar,uo as StatusNoticesSurface,Ko as StreamingProvider,mt as StreamingState,io as SuggestionsDisplay,st as TOOL_STATUS_ICONS,jn as TextBuffer,Z as TextInput,In as ThinkingIndicator,Qo as ToolCallDisplay,it as ToolCallStatus,To as ToolGroup,Jo as ToolProgressBar,Ho as ToolStatusBadge,Qn as TranscriptViewport,eo as UIStateProvider,No as _resetQueuedPromptsCacheForTests,Me as appendClientNotice,ke as archiveSession,ko as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,cn as collectBashWriteTargets,Xe as compactSession,yt as computeConfirmTools,Eo as createCliEvents,no as createHistoryItem,_o as createInteractiveContext,Go as createJsonEvents,Mo as createKeyMatcher,pt as createKeypressManager,Oo as createMemorySessionStorage,$o as createRecoveryHistoryItem,Wo as createRetryHistoryItem,Re as createSessionManager,yo as createStreamingManager,oo as createToolCall,Q as darkTheme,Ke as dedupeSessions,je as deleteSession,ee as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,qo as emitRecoveryHistoryItem,Fo as emitRetryHistoryItem,Jt as ensureExampleConfigFile,Ht as ensureExampleConfigFiles,Mn as executeCommand,Ro as executeShellCommand,gn as extractHistorySeedsFromMessage,Cn as extractHistorySeedsFromMessages,xn as extractTextContent,yn as extractTitle,be as forkSession,Kn as formatMessagePreview,to as generateId,rn as generateSavePattern,dn as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Dn as getCommandRegistry,Dt as getConfigTemplate,de as getCustomProviderConfig,y as getDefaultCommandDir,Zt as getGitRoot,at as getKeyDisplayName,fe as getMcpServerConfig,pn as getPlanModeBlockReason,qt as getProviderList,$t as getProviderModel,S as getTerminalHostCapabilities,ne as getTerminalWidth,V as getTheme,Y as getThemeNames,Wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,It as hydrateProcessEnvFromShell,an as isAlwaysConfirmPath,nn as isBashReadCommand,on as isBashWriteCommand,I as isClassicReplForced,mn as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,sn as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,zt as isProviderConfigured,M as isRemoteConptyHost,oe as isScreenReader,So as isShellCommand,vo as isShellCommandSuccess,w as isTmuxControlMode,en as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,ce as listCustomProviders,ue as listMcpServers,Xn as listRegisteredCommands,_e as listRunningSessions,he as listSessions,K as loadCommands,Bt as loadConfig,Pe as loadFullTranscript,De as loadSession,Co as measureChildActivitySurfaceRows,jt as migrateLegacyIntegrationConfig,T as minimalTheme,Xt as normalizePermissionMode,Pn as parseCommand,h as parseCommandCall,Mt as parseExtensionsIntegrationDocument,nt as parseKeypress,Pt as parseMcpIntegrationDocument,Ct as permissionModeDisplayName,_t as planLegacyIntegrationMigration,Qt as prepareRuntimeConfig,X as processCommandCall,se as processSpecialSyntax,tn as rateLimitedCall,Nt as readExtensionsIntegration,wt as readMcpIntegration,Lt as registerConfiguredCustomProviders,le as removeCustomProvider,Ce as removeMcpServer,ln as replBashPathSignalCollector,N as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,bt as resolveIntegrationConfigPath,O as resolveInteractiveSurfacePreference,Yt as resolveRuntimeEffortSelection,Vt as resolveRuntimeModelSelection,Ut as resolveRuntimeProviderSelection,Lo as restoreHistoryItemsFromSession,we as rewindSession,zo as runInkInteractiveMode,ie as runInteractiveMode,Bo as runSessionPicker,Tt as saveConfig,un as seedToHistoryItem,Ne as setActiveEntry,z as splitByCodePoints,Yo as supports256Colors,te as supportsEmoji,Vo as supportsTrueColor,Zo as supportsUnicode,U as themes,fn as toolCallSeedToHistoryToolCall,jo as touchContext,Io as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,Ae as unarchiveSession,pe as upsertCustomProvider,ge as upsertMcpServer,Nn as useAutocomplete,wn as useAutocompleteContext,_n as useInputHistory,Po as useKeypress,ut as useKeypressManager,wo as useQueuedPromptContents,bo as useQueuedPrompts,Do as useStreaming,ho as useStreamingActions,Xo as useStreamingState,kn as useTextBuffer,mo as useUI,ao as useUIActions,ro as useUIState,xe as validateMcpServerConfig,E as visualWidthCache,Oe as watchSessions,ae as withCapture,me as withCaptureSync,kt as writeIntegrationDocument};
2
+ import{$ as Wn,$a as Fo,$b as Fe,A as Q,Aa as lo,Ab as le,B as T,Ba as uo,Bb as ue,C as U,Ca as fo,Cb as fe,D as V,Da as go,Db as ge,E as Y,Ea as Co,Eb as Ce,F as Z,Fa as xo,Fb as xe,G as tt,Ga as yo,Gb as ye,H as nt,Ha as Ko,Hb as Ke,I as ot,Ia as Xo,Ib as Xe,J as et,Ja as ho,Jb as he,K as rt,Ka as Do,Kb as De,L as at,La as Po,Lb as Pe,M as pt,Ma as Mo,Mb as Me,N as lt,Na as bo,Nb as be,O as ut,Oa as wo,Ob as we,P as ft,Pa as No,Pb as Ne,Q as Nn,Qa as _o,Qb as _e,R as _n,Ra as jo,Rb as je,S as jn,Sa as ko,Sb as ke,T as kn,Ta as Ao,Tb as Ae,U as An,Ua as Oo,Ub as Oe,V as On,Va as Ro,Vb as Re,W as Rn,Wa as So,Wb as Se,X as Sn,Xa as vo,Xb as ve,Y as vn,Ya as Io,Yb as Ie,Z as In,Za as Lo,Zb as Le,_ as Ln,_a as Wo,_b as We,a as D,aa as Fn,ab as $o,ac as $e,b as P,ba as $n,bb as qo,bc as qe,c as M,ca as qn,cb as zo,cc as ze,d as b,da as zn,db as Bo,dc as Be,e as w,ea as Bn,eb as Eo,ec as Ee,f as N,fa as En,fb as Go,fc as Ge,g as _,ga as Gn,gb as Ho,h as j,ha as Hn,hb as Jo,i as k,ia as Jn,ib as Qo,j as A,ja as Qn,jb as To,k as O,ka as Tn,kb as Uo,l as R,la as Un,lb as Vo,m as S,ma as Vn,mb as Yo,n as v,na as Yn,nb as Zo,o as I,oa as Zn,ob as te,p as L,pa as to,pb as ne,q as W,qa as no,qb as oe,r as F,ra as oo,rb as ee,s as $,sa as eo,sb as re,t as q,ta as ro,tb as ae,u as z,ua as ao,ub as me,v as B,va as mo,vb as ie,w as E,wa as io,wb as se,x as G,xa as so,xb as ce,y as H,ya as co,yb as de,z as J,za as po,zb as pe}from"./chunks/chunk-KPGVY6PF.js";import{B as dn,C as pn,D as ln,Da as Dn,Ea as Pn,F as un,Fa as Mn,G as fn,Ga as bn,Ha as wn,Q as gn,R as Cn,S as xn,T as yn,U as Kn,Z as Xn,_ as hn,a as mt,b as it,c as st,d as ct,e as dt,f as gt,h as Ct,j as xt,k as yt,l as Kt,m as Xt,q as nn,s as on,t as en,u as rn,v as an,x as mn,y as sn,z as cn}from"./chunks/chunk-7W6KYJU2.js";import{K as qt,L as zt,M as Bt,N as Et,O as Gt,P as Ht,Q as Jt,T as Qt,U as Tt,W as Ut,X as Vt,Y as Yt,_ as Zt,b as ht,c as Dt,ca as tn,d as Pt,e as Mt,f as bt,g as wt,h as Nt,i as _t,j as jt,k as kt,l as At,m as Ot,n as Rt,o as St,p as vt,q as It,s as Lt,t as Wt,u as Ft,v as $t}from"./chunks/chunk-XMP66YWG.js";import"./chunks/chunk-QH56WEHK.js";import"./chunks/chunk-VPURXE2F.js";import"./chunks/chunk-MVCAFD6M.js";import"./chunks/chunk-VK5QTHS6.js";import"./chunks/chunk-XM724XAA.js";import"./chunks/chunk-64M5HOCA.js";import"./chunks/chunk-MBAPT2R5.js";import"./chunks/chunk-C7TZAT3S.js";import"./chunks/chunk-XXQLPTAN.js";import"./chunks/chunk-UJS7JAO6.js";import"./chunks/chunk-GAFFYJU3.js";import"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.js";import{a}from"./chunks/chunk-ONUPGMER.js";import l from"fs/promises";import c from"path";import x from"os";var u=c.join(x.homedir(),".kodax","commands");function y(){return u}a(y,"getDefaultCommandDir");async function K(e){let n=new Map,o=e??u;try{await l.mkdir(o,{recursive:!0});let r=await l.readdir(o);for(let t of r){let m=c.extname(t),f=t.replace(m,"");if(m===".md"){try{let d=await l.readFile(c.join(o,t),"utf-8"),i=(d.split(`
3
+ `)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).trim();if(!n)return null;let o=n.search(/\s/);if(o===-1)return[n];let r=n.slice(0,o),t=n.slice(o).trim();return t?[r,t]:[r]}a(h,"parseCommandCall");export{Gn as App,Nn as AutocompleteContextProvider,Pn as BUILTIN_COMMANDS,xo as BackgroundTaskBar,ht as CONFIG_TEMPLATES,Ko as ChildActivitySurface,ce as ConsoleCapturer,dt as DEFAULT_UI_STATE,lo as DialogSurface,In as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,ke as FileSessionStorage,Jn as FullscreenTranscriptLayout,$n as HistoryItemRenderer,Rn as InputPrompt,At as IntegrationConfigController,u as KODAX_COMMANDS_DIR,St as KODAX_CONFIG_FILE,Ot as KODAX_DIR,Et as KODAX_EXAMPLE_CONFIG_FILE,Gt as KODAX_INTEGRATION_EXAMPLE_FILES,Rt as KODAX_SESSIONS_DIR,Ft as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Fn as LoadingIndicator,vo as MemorySessionStorage,Qn as MessageActions,qn as MessageList,Tn as MessageSelector,fo as NotificationsSurface,gt as PERMISSION_MODES,vt as PREVIEW_MAX_LENGTH,ne as PendingInputsIndicator,Ln as ProgressIndicator,Vn as PromptComposer,to as PromptFooter,Yn as PromptFooterLeftSide,Zn as PromptFooterRightSide,no as PromptHelpMenu,po as PromptSuggestionsSurface,ye as ProviderSetupConfigConflictError,Ke as ProviderSetupInvalidConfigError,uo as QueuedCommandsSurface,ko as RUNTIME_PERMISSION_PENDING_NOTICE,Hn as SimpleApp,Sn as SimpleInputPrompt,zn as SimpleMessageDisplay,En as SimpleStatusBar,tt as SingleLineTextInput,vn as Spinner,Co as StashNotice,Bn as StatusBar,go as StatusNoticesSurface,ho as StreamingProvider,mt as StreamingState,co as SuggestionsDisplay,st as TOOL_STATUS_ICONS,An as TextBuffer,Z as TextInput,Wn as ThinkingIndicator,Zo as ToolCallDisplay,it as ToolCallStatus,te as ToolGroup,Yo as ToolProgressBar,Vo as ToolStatusBadge,Un as TranscriptViewport,ao as UIStateProvider,jo as _resetQueuedPromptsCacheForTests,Ie as appendClientNotice,ze as archiveSession,So as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,cn as collectBashWriteTargets,Oe as compactSession,yt as computeConfirmTools,To as createCliEvents,eo as createHistoryItem,Oo as createInteractiveContext,Uo as createJsonEvents,wo as createKeyMatcher,pt as createKeypressManager,Io as createMemorySessionStorage,Go as createRecoveryHistoryItem,Bo as createRetryHistoryItem,Ge as createSessionManager,Xo as createStreamingManager,ro as createToolCall,Q as darkTheme,Ae as dedupeSessions,qe as deleteSession,se as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,Ho as emitRecoveryHistoryItem,Eo as emitRetryHistoryItem,Jt as ensureExampleConfigFile,Ht as ensureExampleConfigFiles,wn as executeCommand,Lo as executeShellCommand,xn as extractHistorySeedsFromMessage,yn as extractHistorySeedsFromMessages,Kn as extractTextContent,Xn as extractTitle,zo as findMostRecentResumableSession,Le as forkSession,hn as formatMessagePreview,oo as generateId,rn as generateSavePattern,dn as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Mn as getCommandRegistry,Dt as getConfigTemplate,ge as getCustomProviderConfig,y as getDefaultCommandDir,Zt as getGitRoot,at as getKeyDisplayName,we as getMcpServerConfig,pn as getPlanModeBlockReason,qt as getProviderList,$t as getProviderModel,Xe as getProviderSetupCatalog,S as getTerminalHostCapabilities,me as getTerminalWidth,V as getTheme,Y as getThemeNames,Wt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,It as hydrateProcessEnvFromShell,he as inspectProviderSetupReadiness,an as isAlwaysConfirmPath,nn as isBashReadCommand,on as isBashWriteCommand,I as isClassicReplForced,mn as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,sn as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,zt as isProviderConfigured,M as isRemoteConptyHost,ie as isScreenReader,Wo as isShellCommand,Fo as isShellCommandSuccess,w as isTmuxControlMode,en as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,fe as listCustomProviders,be as listMcpServers,Dn as listRegisteredCommands,$e as listRunningSessions,Re as listSessions,un as loadAutoModeSettings,K as loadCommands,Bt as loadConfig,ve as loadFullTranscript,Se as loadSession,yo as measureChildActivitySurfaceRows,jt as migrateLegacyIntegrationConfig,T as minimalTheme,Xt as normalizePermissionMode,bn as parseCommand,h as parseCommandCall,Mt as parseExtensionsIntegrationDocument,nt as parseKeypress,Pt as parseMcpIntegrationDocument,Ct as permissionModeDisplayName,De as persistProviderSetupChoice,_t as planLegacyIntegrationMigration,Qt as prepareRuntimeConfig,X as processCommandCall,ue as processSpecialSyntax,Pe as providerSetupRestartInstructions,tn as rateLimitedCall,Nt as readExtensionsIntegration,wt as readMcpIntegration,Lt as registerConfiguredCustomProviders,xe as removeCustomProvider,_e as removeMcpServer,ln as replBashPathSignalCollector,N as resetTmuxControlModeProbeForTesting,fn as resolveAutoModeSettings,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,bt as resolveIntegrationConfigPath,O as resolveInteractiveSurfacePreference,Yt as resolveRuntimeEffortSelection,Vt as resolveRuntimeModelSelection,Ut as resolveRuntimeProviderSelection,qo as restoreHistoryItemsFromSession,We as rewindSession,Jo as runInkInteractiveMode,le as runInteractiveMode,Me as runProviderSetupWizard,Qo as runSessionPicker,Tt as saveConfig,gn as seedToHistoryItem,Fe as setActiveEntry,z as splitByCodePoints,ee as supports256Colors,ae as supportsEmoji,oe as supportsTrueColor,re as supportsUnicode,U as themes,Ao as toReplRuntimeAutoModeSettings,Cn as toolCallSeedToHistoryToolCall,Ro as touchContext,$o as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,Be as unarchiveSession,Ce as upsertCustomProvider,Ne as upsertMcpServer,jn as useAutocomplete,_n as useAutocompleteContext,kn as useInputHistory,bo as useKeypress,ut as useKeypressManager,_o as useQueuedPromptContents,No as useQueuedPrompts,Mo as useStreaming,Po as useStreamingActions,Do as useStreamingState,On as useTextBuffer,so as useUI,io as useUIActions,mo as useUIState,je as validateMcpServerConfig,E as visualWidthCache,Ee as watchSessions,de as withCapture,pe as withCaptureSync,kt as writeIntegrationDocument};