@kodax-ai/kodax 0.7.77 → 0.7.78

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 (98) hide show
  1. package/CHANGELOG.md +176 -4
  2. package/README.md +200 -64
  3. package/README_CN.md +153 -49
  4. package/config-templates/config.example.jsonc +114 -32
  5. package/dist/chunks/agent-ASP4MS3X.js +2 -0
  6. package/dist/chunks/argument-completer-JYQ7FX3W.js +2 -0
  7. package/dist/chunks/{chunk-XSA37BVM.js → chunk-2CFHBKRE.js} +1 -1
  8. package/dist/chunks/chunk-35PPHOQ2.js +292 -0
  9. package/dist/chunks/chunk-43QNNDHR.js +29 -0
  10. package/dist/chunks/chunk-5BNQXXGY.js +1 -0
  11. package/dist/chunks/chunk-5GO6FH7L.js +458 -0
  12. package/dist/chunks/{chunk-FSXI4MAV.js → chunk-5NDCSFOP.js} +14 -14
  13. package/dist/chunks/{chunk-3DD4QEBH.js → chunk-6FOJVETH.js} +10 -10
  14. package/dist/chunks/chunk-6XM4B6K2.js +48 -0
  15. package/dist/chunks/chunk-6YZUE6NC.js +240 -0
  16. package/dist/chunks/{chunk-HORNWBYR.js → chunk-7OEBJGHK.js} +1 -1
  17. package/dist/chunks/{chunk-OAMKECRG.js → chunk-KQLQYHWU.js} +205 -200
  18. package/dist/chunks/{chunk-IQT4RPCE.js → chunk-NXO6GWSY.js} +2 -2
  19. package/dist/chunks/chunk-T2XZTLYE.js +316 -0
  20. package/dist/chunks/chunk-TQDBTTIM.js +348 -0
  21. package/dist/chunks/{chunk-FNW2XUL5.js → chunk-UID7BLAB.js} +1 -1
  22. package/dist/chunks/chunk-VAT2QYXM.js +765 -0
  23. package/dist/chunks/chunk-YAZQTC2L.js +5 -0
  24. package/dist/chunks/chunk-YVRYHC4C.js +655 -0
  25. package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-Z3KFRTSB.js} +1 -1
  26. package/dist/chunks/compaction-config-BQSSIWK5.js +2 -0
  27. package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-VQLQGWPY.js} +1 -1
  28. package/dist/chunks/{dist-FDSOIR35.js → dist-BFT5YIGU.js} +1 -1
  29. package/dist/chunks/dist-PCFE24YP.js +2 -0
  30. package/dist/chunks/host-UTFXCYYM.js +2 -0
  31. package/dist/chunks/run-manager-PJU3WIFJ.js +2 -0
  32. package/dist/chunks/utils-SID4HW2Q.js +2 -0
  33. package/dist/index.d.ts +18 -17
  34. package/dist/index.js +6 -6
  35. package/dist/kodax_cli.js +1751 -1352
  36. package/dist/kodax_resume.js +17 -17
  37. package/dist/runtime-worker.js +1680 -1299
  38. package/dist/sandbox-workspace-session.js +563 -0
  39. package/dist/sdk-a2a.d.ts +16 -16
  40. package/dist/sdk-a2a.js +8 -8
  41. package/dist/sdk-agent.d.ts +275 -60
  42. package/dist/sdk-agent.js +1 -1
  43. package/dist/sdk-coding.d.ts +33 -165
  44. package/dist/sdk-coding.js +1 -1
  45. package/dist/sdk-experimental-memory.d.ts +2 -2
  46. package/dist/sdk-experimental-memory.js +1 -1
  47. package/dist/sdk-llm.d.ts +2 -1
  48. package/dist/sdk-llm.js +1 -1
  49. package/dist/sdk-mcp.js +1 -1
  50. package/dist/sdk-media.js +1 -1
  51. package/dist/sdk-repl.d.ts +67 -25
  52. package/dist/sdk-repl.js +2 -2
  53. package/dist/sdk-runtime.d.ts +194 -147
  54. package/dist/sdk-runtime.js +1 -1
  55. package/dist/sdk-sandbox.d.ts +93 -0
  56. package/dist/sdk-sandbox.js +2 -0
  57. package/dist/sdk-session.d.ts +6 -7
  58. package/dist/sdk-session.js +1 -1
  59. package/dist/sdk-skills.d.ts +2 -2
  60. package/dist/sdk-skills.js +1 -1
  61. package/dist/semantic-worker.js +15 -15
  62. package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-uAe2Oqda.d.ts} +126 -8
  63. package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-BlSv9l3V.d.ts} +1 -1
  64. package/dist/types-chunks/{guardrail.d-CJx9RRd3.d.ts → guardrail.d-BRE_ErEj.d.ts} +1 -1
  65. package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-CXDYRgZ3.d.ts} +200 -34
  66. package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-DtCy7x64.d.ts} +1 -1
  67. package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
  68. package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-B3AohsxN.d.ts} +36 -7
  69. package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-Ie_ZXb_U.d.ts} +89 -78
  70. package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-iAQ9ocLB.d.ts} +3 -66
  71. package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-D1twIhF9.d.ts} +1 -1
  72. package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-DB9KksIx.d.ts} +2 -2
  73. package/dist/types-chunks/side-query.d-DTuLPcC5.d.ts +77 -0
  74. package/dist/types-chunks/{types-LanCEDj8.d.ts → types-D3g6XUQr.d.ts} +41 -2
  75. package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → types.d-BA-Jwpfs.d.ts} +459 -7
  76. package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BH0ZkTGf.d.ts} +1 -1
  77. package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
  78. package/dist/types-chunks/{types.d-DCsKM8aT.d.ts → types.d-DVDTIfB_.d.ts} +2 -2
  79. package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CVp6bFl9.d.ts} +22 -6
  80. package/docs/SDK_EMBEDDER_GUIDE.md +399 -55
  81. package/package.json +8 -1
  82. package/dist/chunks/agent-NGSWFE73.js +0 -2
  83. package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
  84. package/dist/chunks/chunk-27QLRH3D.js +0 -5
  85. package/dist/chunks/chunk-2MQPVY6P.js +0 -770
  86. package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
  87. package/dist/chunks/chunk-AOENDSVN.js +0 -448
  88. package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
  89. package/dist/chunks/chunk-JS2BHGJP.js +0 -158
  90. package/dist/chunks/chunk-ON2WG2LG.js +0 -622
  91. package/dist/chunks/chunk-RUGAAHTF.js +0 -321
  92. package/dist/chunks/chunk-TGCG7U2W.js +0 -37
  93. package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
  94. package/dist/chunks/dist-ZZBNVTKU.js +0 -2
  95. package/dist/chunks/host-QAKQVC4A.js +0 -2
  96. package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
  97. package/dist/chunks/utils-AUHCI4D5.js +0 -2
  98. package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
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-FSXI4MAV.js";import"./chunks/chunk-ONUPGMER.js";export{_o as DEFAULT_COST_RATES,d as KODAX_API_MIN_INTERVAL,b as KODAX_CAPPED_MAX_OUTPUT_TOKENS,ho as KODAX_DEFAULT_PROVIDER,w as KODAX_DEFAULT_THINKING_BUDGETS,c as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,a as KODAX_MAX_TOKENS,go as KODAX_PROVIDERS,co as KODAX_PROVIDER_SNAPSHOTS,u as KODAX_REASONING_MODE_SEQUENCE,y as KODAX_REASONING_SAFETY_RESERVE,v as KODAX_STABLE_EFFORT_INTENTS,po as KodaXAcpProvider,fo as KodaXAnthropicCompatProvider,V as KodaXBaseProvider,f as KodaXError,t as KodaXNetworkError,mo as KodaXOpenAICompatProvider,m as KodaXProviderError,p as KodaXRateLimitError,x as KodaXToolCallIdError,P as WORKFLOW_MAX_CONCURRENCY_ABSOLUTE,O as WORKFLOW_MAX_CONCURRENCY_DEFAULT,n as addRejectedEffort,or as calculateCost,j as capabilityCacheKey,K as clampThinkingBudget,X as classifyStopReason,_ as classifyVerifyError,Po as clearRuntimeModelProviders,rr as createCostTracker,Ao as createCustomProvider,E as effortToLegacyReasoningMode,N as extractHeadersFromError,pr as formatCost,tr as formatCostReport,So as getAvailableProviderNames,to as getCodexCliDefaultModel,ao as getCodexCliKnownModels,$o as getCostRate,Io as getCustomModelCapabilities,Co as getCustomProvider,Fo as getCustomProviderList,Ho as getCustomProviderModelDescriptors,Go as getCustomProviderModels,Eo as getCustomProviderNames,I as getDefaultThinkingDepthForMode,xo as getGeminiCliDefaultModel,bo as getGeminiCliKnownModels,wo as getModelCapabilities,io as getProvider,no as getProviderConfiguredCapabilityProfile,lo as getProviderConfiguredReasoningCapability,To as getProviderCredentialEnvironmentNames,qo as getProviderList,ko as getProviderModel,vo as getProviderModelDescriptors,so as getProviderModels,z as getReasoningCapability,l as getRejectedEfforts,S as getRunScopedConfig,Lo as getRuntimeModelProvider,Oo as getRuntimeModelProviderCredentialEnvironmentNames,No as getRuntimeModelProviderNames,r as getScopedProviderCredential,mr as getSummary,$ as insertCacheBoundary,oo as isCacheBoundary,Y as isCleanStop,Do as isCustomProviderName,Ro as isKnownProvider,jo as isProviderConfigured,uo as isProviderName,A as isReasoningEnabled,Mo as isRuntimeModelProviderName,Wo as listAllModelCapabilities,yo as listBuiltinModelCapabilities,Jo as listCustomProviderModelCapabilities,Yo as listProviderModels,ro as lowerCacheBoundaries,L as mapDepthToOpenAIReasoningEffort,D as mapLegacyReasoningModeToEffortIntent,k as narrowReasoningProfile,U as normalizeCapabilityProfile,C as normalizeReasoningEffortValue,B as normalizeReasoningRequest,F as parseReasoningEffortEnv,M as parseRetryAfter,h as parseTimeoutSecEnvMs,W as parseToolInputWithSalvage,er as recordRetry,fr as recordUsage,e as redactScopedProviderCredential,Bo as registerCustomProviders,Ko as registerModelProvider,q as removeCacheEntry,i as resolveLlmTimeoutConfig,Vo as resolveModelCapabilities,T as resolvePromptCacheDisabled,Qo as resolveProvider,Uo as resolveProviderModelDescriptors,G as resolveReasoningEffort,H as resolveReasoningEffortForModelSwitch,J as resolveThinkingBudget,Zo as resolveWireEffort,Q as resolveWorkflowMaxConcurrency,Z as runVerifyCredential,o as runWithProviderCredential,R as runWithScopedConfig,s as sanitizeCapabilityCache,xr as sideQuery,eo as stripCacheBoundaries,g as timeoutSecToMs,zo as validateCustomProviderConfig,Xo as verifyProviderCredential};
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-5NDCSFOP.js";import"./chunks/chunk-ONUPGMER.js";export{_o as DEFAULT_COST_RATES,d as KODAX_API_MIN_INTERVAL,b as KODAX_CAPPED_MAX_OUTPUT_TOKENS,ho as KODAX_DEFAULT_PROVIDER,w as KODAX_DEFAULT_THINKING_BUDGETS,c as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,a as KODAX_MAX_TOKENS,go as KODAX_PROVIDERS,co as KODAX_PROVIDER_SNAPSHOTS,u as KODAX_REASONING_MODE_SEQUENCE,y as KODAX_REASONING_SAFETY_RESERVE,v as KODAX_STABLE_EFFORT_INTENTS,po as KodaXAcpProvider,fo as KodaXAnthropicCompatProvider,V as KodaXBaseProvider,f as KodaXError,t as KodaXNetworkError,mo as KodaXOpenAICompatProvider,m as KodaXProviderError,p as KodaXRateLimitError,x as KodaXToolCallIdError,P as WORKFLOW_MAX_CONCURRENCY_ABSOLUTE,O as WORKFLOW_MAX_CONCURRENCY_DEFAULT,n as addRejectedEffort,or as calculateCost,j as capabilityCacheKey,K as clampThinkingBudget,X as classifyStopReason,_ as classifyVerifyError,Po as clearRuntimeModelProviders,rr as createCostTracker,Ao as createCustomProvider,E as effortToLegacyReasoningMode,N as extractHeadersFromError,pr as formatCost,tr as formatCostReport,So as getAvailableProviderNames,to as getCodexCliDefaultModel,ao as getCodexCliKnownModels,$o as getCostRate,Io as getCustomModelCapabilities,Co as getCustomProvider,Fo as getCustomProviderList,Ho as getCustomProviderModelDescriptors,Go as getCustomProviderModels,Eo as getCustomProviderNames,I as getDefaultThinkingDepthForMode,xo as getGeminiCliDefaultModel,bo as getGeminiCliKnownModels,wo as getModelCapabilities,io as getProvider,no as getProviderConfiguredCapabilityProfile,lo as getProviderConfiguredReasoningCapability,To as getProviderCredentialEnvironmentNames,qo as getProviderList,ko as getProviderModel,vo as getProviderModelDescriptors,so as getProviderModels,z as getReasoningCapability,l as getRejectedEfforts,S as getRunScopedConfig,Lo as getRuntimeModelProvider,Oo as getRuntimeModelProviderCredentialEnvironmentNames,No as getRuntimeModelProviderNames,r as getScopedProviderCredential,mr as getSummary,$ as insertCacheBoundary,oo as isCacheBoundary,Y as isCleanStop,Do as isCustomProviderName,Ro as isKnownProvider,jo as isProviderConfigured,uo as isProviderName,A as isReasoningEnabled,Mo as isRuntimeModelProviderName,Wo as listAllModelCapabilities,yo as listBuiltinModelCapabilities,Jo as listCustomProviderModelCapabilities,Yo as listProviderModels,ro as lowerCacheBoundaries,L as mapDepthToOpenAIReasoningEffort,D as mapLegacyReasoningModeToEffortIntent,k as narrowReasoningProfile,U as normalizeCapabilityProfile,C as normalizeReasoningEffortValue,B as normalizeReasoningRequest,F as parseReasoningEffortEnv,M as parseRetryAfter,h as parseTimeoutSecEnvMs,W as parseToolInputWithSalvage,er as recordRetry,fr as recordUsage,e as redactScopedProviderCredential,Bo as registerCustomProviders,Ko as registerModelProvider,q as removeCacheEntry,i as resolveLlmTimeoutConfig,Vo as resolveModelCapabilities,T as resolvePromptCacheDisabled,Qo as resolveProvider,Uo as resolveProviderModelDescriptors,G as resolveReasoningEffort,H as resolveReasoningEffortForModelSwitch,J as resolveThinkingBudget,Zo as resolveWireEffort,Q as resolveWorkflowMaxConcurrency,Z as runVerifyCredential,o as runWithProviderCredential,R as runWithScopedConfig,s as sanitizeCapabilityCache,xr as sideQuery,eo as stripCacheBoundaries,g as timeoutSecToMs,zo as validateCustomProviderConfig,Xo 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{$b as e,ac as t,bc as r,cc as a,dc as i,ec as p,fc as c,gc as o,hc as M,ic as n,jc as s,kc as l,lc as d,mc as u,nc as C,oc as v,pc as g,qc as S,rc as h,sc as R,tc as A,uc as b,vc as f}from"./chunks/chunk-2MQPVY6P.js";import"./chunks/chunk-TGCG7U2W.js";import"./chunks/chunk-XSA37BVM.js";import"./chunks/chunk-IQT4RPCE.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,R as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,h as McpServerRuntime,S as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,d as discoverAuthorizationServerMetadata,u as discoverOAuthEndpoints,l as discoverProtectedResourceMetadata,s as extractInsufficientScope,n as extractResourceMetadataUrl,p as getMcpCachePaths,g as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,v as performOAuthLogin,C as registerOAuthClient,i as searchMcpCatalog};
2
+ import{Ab as i,Bb as p,Cb as c,Db as o,Eb as M,Fb as n,Gb as s,Hb as l,Ib as d,Jb as u,Kb as C,Lb as v,Mb as g,Nb as S,Ob as h,Pb as R,Qb as A,Rb as b,Sb as f,wb as e,xb as t,yb as r,zb as a}from"./chunks/chunk-VAT2QYXM.js";import"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,R as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,h as McpServerRuntime,S as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,d as discoverAuthorizationServerMetadata,u as discoverOAuthEndpoints,l as discoverProtectedResourceMetadata,s as extractInsufficientScope,n as extractResourceMetadataUrl,p as getMcpCachePaths,g as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,v as performOAuthLogin,C as registerOAuthClient,i as searchMcpCatalog};
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 k,B as l,C as n,D as q,E as s,F as u,k as o,l as r,m as e,n as f,o as m,p,q as t,r as x,s as a,t as b,u as c,v as d,w as g,x as h,y as i,z as j}from"./chunks/chunk-XSA37BVM.js";import"./chunks/chunk-IQT4RPCE.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{A as k,B as l,C as n,D as q,E as s,F as u,k as o,l as r,m as e,n as f,o as m,p,q as t,r as x,s as a,t as b,u as c,v as d,w as g,x as h,y as i,z as j}from"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.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,29 +1,29 @@
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--fF88JrC.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--fF88JrC.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-BccESAMV.js';
5
- import { a as BashPrefixExtractor, Q as KodaXEvents, t as KodaXAgentMode, a$ as ProviderRecoveryEvent, ac as KodaXResult } from './types-chunks/bash-prefix-extractor.d-pZdu6qt7.js';
6
- import { c as QueuedMessage } from './types-chunks/types.d-CODuyyqy.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-CLWf8Adb.js';
8
- import { c as CommandInfo } from './types-chunks/utils.d-CDduqbFw.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-CDduqbFw.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-B3AohsxN.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-B3AohsxN.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-Ie_ZXb_U.js';
5
+ import { a as BashPrefixExtractor, Q as KodaXEvents, t as KodaXAgentMode, b5 as ProviderRecoveryEvent, ad as KodaXResult } from './types-chunks/bash-prefix-extractor.d-uAe2Oqda.js';
6
+ import { c as QueuedMessage } from './types-chunks/types.d-BH0ZkTGf.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-DB9KksIx.js';
8
+ import { c as CommandInfo } from './types-chunks/utils.d-CVp6bFl9.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-CVp6bFl9.js';
10
10
  import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-DIpZJKUl.js';
11
11
  export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-DIpZJKUl.js';
12
12
  import { Readable, Writable } from 'node:stream';
13
13
  import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
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';
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-RdWRfUEs.js';
16
- import { S as SignalCollector, e as AutoModeAskUser, q as AutoModeSharedState, s as AutoModeToolGuardrail, B as RulesLoadResult } from './types-chunks/guardrail.d-B0PwAZVR.js';
17
- import './types-chunks/center-types.d-BBT122uJ.js';
18
- import './types-chunks/types.d-DCQVBqVn.js';
14
+ 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';
15
+ export { c3 as KodaXSessionUiHistoryItem, c4 as KodaXSessionUiHistoryItemType, c5 as KodaXSessionUiTextHistoryItem, c6 as KodaXSessionUiTextHistoryItemType, c7 as KodaXSessionUiToolCall, c8 as KodaXSessionUiToolCallStatus, c9 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BA-Jwpfs.js';
16
+ import { S as SignalCollector, e as AutoModeAskUser, j as AutoModeGuardrailConfig, r as AutoModeSharedState, t as AutoModeToolGuardrail, O as RulesLoadResult } from './types-chunks/guardrail.d-CXDYRgZ3.js';
17
+ import './types-chunks/types.d-BbtGlKZu.js';
19
18
  import 'vscode-languageserver-protocol';
20
19
  import './types-chunks/cost-tracker.d-BeaenODW.js';
21
- import './types-chunks/types-LanCEDj8.js';
20
+ import './types-chunks/types-D3g6XUQr.js';
22
21
  import './types-chunks/capability.d-K664nHOS.js';
23
22
  import './types-chunks/base.d-4e74xDdy.js';
24
23
  import 'readline';
25
24
  import 'child_process';
26
- import './types-chunks/guardrail.d-CJx9RRd3.js';
25
+ import './types-chunks/guardrail.d-BRE_ErEj.js';
26
+ import './types-chunks/side-query.d-DTuLPcC5.js';
27
27
 
28
28
  /**
29
29
  * App - KodaX CLI root component.
@@ -2134,7 +2134,7 @@ declare function getThemeNames(): string[];
2134
2134
  declare function listRegisteredCommands(projectRoot?: string): CommandInfo[];
2135
2135
 
2136
2136
  declare const CONFIG_TEMPLATES: {
2137
- 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";
2137
+ 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 // 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 // \"timeoutMs\": 20000,\n // \"speculativeWindowMs\": 500\n // },\n\n // UI/manual locale.\n // \"locale\": \"zh\",\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 // \"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";
2138
2138
  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";
2139
2139
  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";
2140
2140
  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";
@@ -2176,13 +2176,9 @@ declare function getConfigTemplate(name: ConfigTemplateName): string;
2176
2176
  * unlike the load-time-frozen `KODAX_CONFIG_FILE` constant in
2177
2177
  * `common/utils.ts` that captures the path once at import time.
2178
2178
  *
2179
- * Concurrency / multi-process: this is a single-machine, last-write-
2180
- * wins implementation. If two SDK consumers (KodaX CLI + KodaX Space)
2181
- * both mutate the same config simultaneously, the later writer's view
2182
- * survives. KodaX is a single-user CLI; the multi-writer surface is
2183
- * not a real production concern for v0.7.42. A future FEATURE could
2184
- * layer file locking on top of this surface without changing the
2185
- * caller-facing API.
2179
+ * Concurrency / multi-process: mutations share the core-config writer lock
2180
+ * with setup and saveConfig, so cooperating KodaX processes fail with a
2181
+ * visible conflict instead of silently replacing one another.
2186
2182
  */
2187
2183
 
2188
2184
  /**
@@ -2337,6 +2333,7 @@ interface RunProviderSetupWizardInput {
2337
2333
  readonly interaction?: ProviderSetupInteraction;
2338
2334
  readonly input?: Readable;
2339
2335
  readonly output?: Writable;
2336
+ readonly customOnly?: boolean;
2340
2337
  }
2341
2338
  /**
2342
2339
  * Run the standalone first-use setup flow. It intentionally has no API-key
@@ -2344,6 +2341,47 @@ interface RunProviderSetupWizardInput {
2344
2341
  */
2345
2342
  declare function runProviderSetupWizard(input?: RunProviderSetupWizardInput): Promise<ProviderSetupWizardResult>;
2346
2343
 
2344
+ type SetupConfigDomain = 'core' | 'mcp' | 'extensions' | 'a2a';
2345
+ type SetupConfigFileKind = 'active' | 'template';
2346
+ type SetupConfigFileStatus = 'created' | 'existing' | 'invalid' | 'missing';
2347
+ interface SetupConfigFileResult {
2348
+ readonly domain: SetupConfigDomain;
2349
+ readonly kind: SetupConfigFileKind;
2350
+ readonly path: string;
2351
+ readonly status: SetupConfigFileStatus;
2352
+ readonly diagnostic?: string;
2353
+ }
2354
+ interface SetupConfigurationResult {
2355
+ readonly configHome: string;
2356
+ readonly files: readonly SetupConfigFileResult[];
2357
+ }
2358
+ interface InitializeSetupConfigurationInput {
2359
+ readonly configHome?: string;
2360
+ /**
2361
+ * Host-owned canonical A2A parser. The standalone REPL package can safely
2362
+ * recognize only the inert empty document without this dependency.
2363
+ */
2364
+ readonly validateA2A?: (value: unknown) => unknown;
2365
+ }
2366
+ /**
2367
+ * Install the inert active documents and annotated references needed by setup.
2368
+ * Existing files are authoritative and are never rewritten.
2369
+ */
2370
+ declare function initializeSetupConfiguration(input?: InitializeSetupConfigurationInput): SetupConfigurationResult;
2371
+
2372
+ interface RenderSetupGuideInput {
2373
+ readonly configHome?: string;
2374
+ readonly catalog?: readonly ProviderSetupCatalogEntry[];
2375
+ readonly cliBridges?: readonly string[];
2376
+ }
2377
+ declare function renderSetupGuide(input?: RenderSetupGuideInput): string;
2378
+
2379
+ declare class CoreConfigWriteConflictError extends Error {
2380
+ constructor(configPath: string);
2381
+ }
2382
+ declare function coreConfigWriteLockPath(configPath: string): string;
2383
+ declare function withCoreConfigWriteLock<T>(configPath: string, action: () => T): T;
2384
+
2347
2385
  /**
2348
2386
  * Typed MCP integration CRUD.
2349
2387
  *
@@ -2444,6 +2482,10 @@ interface AutoModeBootstrapDeps {
2444
2482
  readonly projectRoot: string;
2445
2483
  /** Directory used to resolve relative tool paths. */
2446
2484
  readonly executionCwd: string;
2485
+ /** Runtime-confirmed ASRT availability for exact workspace shell calls. */
2486
+ readonly workspaceShellSandboxAvailable?: boolean;
2487
+ /** Runtime-owned one-shot admission into the workspace shell sandbox. */
2488
+ readonly admitWorkspaceSandboxCall?: AutoModeGuardrailConfig['admitWorkspaceSandboxCall'];
2447
2489
  readonly getCurrentProviderName: () => string;
2448
2490
  readonly getCurrentModel: () => string | undefined;
2449
2491
  readonly getCurrentPermissionMode: () => PermissionMode;
@@ -2534,5 +2576,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
2534
2576
  declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
2535
2577
  declare function parseCommandCall(input: string): [string, string?] | null;
2536
2578
 
2537
- 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 };
2538
- 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 };
2579
+ export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CoreConfigWriteConflictError, 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, coreConfigWriteLockPath, 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, initializeSetupConfiguration, 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, renderSetupGuide, 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, withCoreConfigWriteLock };
2580
+ export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InitializeSetupConfigurationInput, 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, RenderSetupGuideInput, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, SetupConfigDomain, SetupConfigFileKind, SetupConfigFileResult, SetupConfigFileStatus, SetupConfigurationResult, 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 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-RUGAAHTF.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-ON2WG2LG.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-JS2BHGJP.js";import"./chunks/chunk-HORNWBYR.js";import"./chunks/chunk-AOENDSVN.js";import"./chunks/chunk-FNW2XUL5.js";import"./chunks/chunk-3DD4QEBH.js";import"./chunks/chunk-HV2GMZUZ.js";import"./chunks/chunk-EH7AOMJ7.js";import"./chunks/chunk-OAMKECRG.js";import"./chunks/chunk-27QLRH3D.js";import"./chunks/chunk-FSXI4MAV.js";import"./chunks/chunk-2MQPVY6P.js";import"./chunks/chunk-TGCG7U2W.js";import"./chunks/chunk-XSA37BVM.js";import"./chunks/chunk-IQT4RPCE.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};
2
+ import{$ as Vn,$a as Yo,A as Q,Aa as bo,Ab as be,B as T,Ba as wo,Bb as we,C as U,Ca as No,Cb as Ne,D as V,Da as _o,Db as _e,E as Y,Ea as jo,Eb as je,F as Z,Fa as ko,Fb as ke,G as tt,Ga as Ao,Gb as Ae,H as nt,Ha as Oo,Hb as Oe,I as ot,Ia as Ro,Ib as Re,J as et,Ja as So,Jb as Se,K as rt,Ka as vo,Kb as ve,L as at,La as Io,Lb as Ie,M as pt,Ma as Lo,Mb as Le,N as lt,Na as Wo,Nb as We,O as ut,Oa as Fo,Ob as Fe,P as ft,Pa as $o,Pb as $e,Q as $n,Qa as qo,Qb as qe,R as qn,Ra as zo,Rb as ze,S as zn,Sa as Bo,Sb as Be,T as Bn,Ta as Eo,Tb as Ee,U as En,Ua as Go,Ub as Ge,V as Gn,Va as Ho,Vb as He,W as Hn,Wa as Jo,Wb as Je,X as Jn,Xa as Qo,Xb as Qe,Y as Qn,Ya as To,Yb as Te,Z as Tn,Za as Uo,Zb as Ue,_ as Un,_a as Vo,_b as Ve,a as D,aa as Yn,ab as Zo,b as P,ba as Zn,bb as te,c as M,ca as to,cb as ne,d as b,da as no,db as oe,e as w,ea as oo,eb as ee,f as N,fa as eo,fb as re,g as _,ga as ro,gb as ae,h as j,ha as ao,hb as me,i as k,ia as mo,ib as ie,j as A,ja as io,jb as se,k as O,ka as so,kb as ce,l as R,la as co,lb as de,m as S,ma as po,mb as pe,n as v,na as lo,nb as le,o as I,oa as uo,ob as ue,p as L,pa as fo,pb as fe,q as W,qa as go,qb as ge,r as F,ra as Co,rb as Ce,s as $,sa as xo,sb as xe,t as q,ta as yo,tb as ye,u as z,ua as Ko,ub as Ke,v as B,va as Xo,vb as Xe,w as E,wa as ho,wb as he,x as G,xa as Do,xb as De,y as H,ya as Po,yb as Pe,z as J,za as Mo,zb as Me}from"./chunks/chunk-T2XZTLYE.js";import{$ as _n,A as gn,C as Cn,D as xn,E as yn,F as Kn,H as Xn,I as hn,J as Dn,L as Pn,M as Mn,O as bn,Oa as vn,Pa as In,Q as wn,Qa as Ln,R as Nn,Ra as Wn,Sa as Fn,a as mt,aa as jn,b as it,ba as kn,c as st,ca as An,d as ct,da as On,e as dt,f as gt,h as Ct,ia as Rn,j as xt,ja as Sn,k as yt,l as Kt,m as Xt,n as an,o as mn,p as sn,q as cn,r as dn,s as pn,t as ln,v as un,w as fn}from"./chunks/chunk-YVRYHC4C.js";import{$ as nn,O as Gt,P as Ht,Q as Jt,R as Qt,S as Tt,T as Ut,U as Vt,X as Yt,Y as Zt,_ as tn,aa as on,b as ht,c as Dt,ca as en,d as Pt,e as Mt,f as bt,g as wt,ga as rn,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,r as Lt,s as Wt,t as Ft,u as $t,w as qt,x as zt,y as Bt,z as Et}from"./chunks/chunk-6YZUE6NC.js";import"./chunks/chunk-7OEBJGHK.js";import"./chunks/chunk-5GO6FH7L.js";import"./chunks/chunk-TQDBTTIM.js";import"./chunks/chunk-UID7BLAB.js";import"./chunks/chunk-Z3KFRTSB.js";import"./chunks/chunk-6FOJVETH.js";import"./chunks/chunk-KQLQYHWU.js";import"./chunks/chunk-YAZQTC2L.js";import"./chunks/chunk-5NDCSFOP.js";import"./chunks/chunk-VAT2QYXM.js";import"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.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{ro as App,$n as AutocompleteContextProvider,In as BUILTIN_COMMANDS,ko as BackgroundTaskBar,ht as CONFIG_TEMPLATES,Oo as ChildActivitySurface,De as ConsoleCapturer,Pt as CoreConfigWriteConflictError,dt as DEFAULT_UI_STATE,bo as DialogSurface,Tn as DotsIndicator,xt as FILE_MODIFICATION_TOOLS,Ie as FileSessionStorage,mo as FullscreenTranscriptLayout,Zn as HistoryItemRenderer,Hn as InputPrompt,wt as IntegrationConfigConflictError,vt as IntegrationConfigController,u as KODAX_COMMANDS_DIR,Wt as KODAX_CONFIG_FILE,It as KODAX_DIR,Qt as KODAX_EXAMPLE_CONFIG_FILE,Tt as KODAX_INTEGRATION_EXAMPLE_FILES,Lt as KODAX_SESSIONS_DIR,Bt as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,Yn as LoadingIndicator,Qo as MemorySessionStorage,io as MessageActions,to as MessageList,so as MessageSelector,No as NotificationsSurface,gt as PERMISSION_MODES,Ft as PREVIEW_MAX_LENGTH,fe as PendingInputsIndicator,Un as ProgressIndicator,po as PromptComposer,fo as PromptFooter,lo as PromptFooterLeftSide,uo as PromptFooterRightSide,go as PromptHelpMenu,Mo as PromptSuggestionsSurface,an as ProviderSetupConfigConflictError,mn as ProviderSetupInvalidConfigError,wo as QueuedCommandsSurface,Bo as RUNTIME_PERMISSION_PENDING_NOTICE,ao as SimpleApp,Jn as SimpleInputPrompt,no as SimpleMessageDisplay,eo as SimpleStatusBar,tt as SingleLineTextInput,Qn as Spinner,jo as StashNotice,oo as StatusBar,_o as StatusNoticesSurface,So as StreamingProvider,mt as StreamingState,Po as SuggestionsDisplay,st as TOOL_STATUS_ICONS,En as TextBuffer,Z as TextInput,Vn as ThinkingIndicator,le as ToolCallDisplay,it as ToolCallStatus,ue as ToolGroup,pe as ToolProgressBar,de as ToolStatusBadge,co as TranscriptViewport,Ko as UIStateProvider,zo as _resetQueuedPromptsCacheForTests,ze as appendClientNotice,Qe as archiveSession,Jo as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,Dn as collectBashWriteTargets,We as compactSession,yt as computeConfirmTools,Mt as coreConfigWriteLockPath,se as createCliEvents,xo as createHistoryItem,Go as createInteractiveContext,ce as createJsonEvents,Fo as createKeyMatcher,pt as createKeypressManager,To as createMemorySessionStorage,re as createRecoveryHistoryItem,oe as createRetryHistoryItem,Ve as createSessionManager,Ro as createStreamingManager,yo as createToolCall,Q as darkTheme,Le as dedupeSessions,Je as deleteSession,he as detectTerminalCapabilities,j as detectTerminalHostProfile,_ as detectTerminalRenderHost,ae as emitRecoveryHistoryItem,ee as emitRetryHistoryItem,Vt as ensureExampleConfigFile,Ut as ensureExampleConfigFiles,Fn as executeCommand,Uo as executeShellCommand,kn as extractHistorySeedsFromMessage,An as extractHistorySeedsFromMessages,On as extractTextContent,Rn as extractTitle,ne as findMostRecentResumableSession,Be as forkSession,Sn as formatMessagePreview,Co as generateId,yn as generateSavePattern,Pn as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Ln as getCommandRegistry,Dt as getConfigTemplate,_e as getCustomProviderConfig,y as getDefaultCommandDir,en as getGitRoot,at as getKeyDisplayName,Oe as getMcpServerConfig,Mn as getPlanModeBlockReason,Gt as getProviderList,Et as getProviderModel,sn as getProviderSetupCatalog,S as getTerminalHostCapabilities,Ke as getTerminalWidth,V as getTheme,Y as getThemeNames,zt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,b as hasMainScreenRenderScrollRisk,$t as hydrateProcessEnvFromShell,ln as initializeSetupConfiguration,cn as inspectProviderSetupReadiness,Kn as isAlwaysConfirmPath,gn as isBashReadCommand,Cn as isBashWriteCommand,I as isClassicReplForced,Xn as isCommandOnProtectedPath,et as isFunctionKey,v as isOwnedRendererPreferred,hn as isPathInsideProject,Kt as isPermissionMode,rt as isPrintable,Ht as isProviderConfigured,M as isRemoteConptyHost,Xe as isScreenReader,Vo as isShellCommand,Yo as isShellCommandSuccess,w as isTmuxControlMode,xn as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,Ne as listCustomProviders,Ae as listMcpServers,vn as listRegisteredCommands,He as listRunningSessions,Fe as listSessions,wn as loadAutoModeSettings,K as loadCommands,Jt as loadConfig,qe as loadFullTranscript,$e as loadSession,Ao as measureChildActivitySurfaceRows,Rt as migrateLegacyIntegrationConfig,T as minimalTheme,Xt as normalizePermissionMode,Wn as parseCommand,h as parseCommandCall,_t as parseExtensionsIntegrationDocument,nt as parseKeypress,Nt as parseMcpIntegrationDocument,Ct as permissionModeDisplayName,dn as persistProviderSetupChoice,Ot as planLegacyIntegrationMigration,Yt as prepareRuntimeConfig,X as processCommandCall,we as processSpecialSyntax,pn as providerSetupRestartInstructions,rn as rateLimitedCall,At as readExtensionsIntegration,kt as readMcpIntegration,qt as registerConfiguredCustomProviders,ke as removeCustomProvider,Se as removeMcpServer,un as renderSetupGuide,bn as replBashPathSignalCollector,N as resetTmuxControlModeProbeForTesting,Nn as resolveAutoModeSettings,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,jt as resolveIntegrationConfigPath,O as resolveInteractiveSurfacePreference,on as resolveRuntimeEffortSelection,nn as resolveRuntimeModelSelection,tn as resolveRuntimeProviderSelection,te as restoreHistoryItemsFromSession,Ee as rewindSession,me as runInkInteractiveMode,be as runInteractiveMode,fn as runProviderSetupWizard,ie as runSessionPicker,Zt as saveConfig,_n as seedToHistoryItem,Ge as setActiveEntry,z as splitByCodePoints,Ce as supports256Colors,ye as supportsEmoji,ge as supportsTrueColor,xe as supportsUnicode,U as themes,Eo as toReplRuntimeAutoModeSettings,jn as toolCallSeedToHistoryToolCall,Ho as touchContext,Zo as trimPersistedUiHistorySnapshot,B as truncateByVisualWidth,Te as unarchiveSession,je as upsertCustomProvider,Re as upsertMcpServer,zn as useAutocomplete,qn as useAutocompleteContext,Bn as useInputHistory,Wo as useKeypress,ut as useKeypressManager,qo as useQueuedPromptContents,$o as useQueuedPrompts,Lo as useStreaming,Io as useStreamingActions,vo as useStreamingState,Gn as useTextBuffer,Do as useUI,ho as useUIActions,Xo as useUIState,ve as validateMcpServerConfig,E as visualWidthCache,Ue as watchSessions,Pe as withCapture,Me as withCaptureSync,bt as withCoreConfigWriteLock,St as writeIntegrationDocument};