@code-yeongyu/senpi 2026.6.17 → 2026.6.21

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 (2919) hide show
  1. package/CHANGELOG.md +166 -279
  2. package/README.md +46 -45
  3. package/dist/cli/list-models.js +1 -1
  4. package/dist/cli/list-models.js.map +1 -1
  5. package/dist/config.d.ts +6 -2
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +21 -13
  8. package/dist/config.js.map +1 -1
  9. package/dist/core/agent-session.d.ts.map +1 -1
  10. package/dist/core/agent-session.js +14 -1
  11. package/dist/core/agent-session.js.map +1 -1
  12. package/dist/core/compaction/compaction.d.ts +1 -0
  13. package/dist/core/compaction/compaction.d.ts.map +1 -1
  14. package/dist/core/compaction/compaction.js.map +1 -1
  15. package/dist/core/extensions/builtin/bash-timeout/timeout.js +2 -2
  16. package/dist/core/extensions/builtin/bash-timeout/timeout.js.map +1 -1
  17. package/dist/core/extensions/builtin/nested-agents-md/index.js +1 -1
  18. package/dist/core/extensions/builtin/nested-agents-md/index.js.map +1 -1
  19. package/dist/core/extensions/builtin/prompt-preset/glm-5-2.d.ts +3 -0
  20. package/dist/core/extensions/builtin/prompt-preset/glm-5-2.d.ts.map +1 -0
  21. package/dist/core/extensions/builtin/prompt-preset/glm-5-2.js +14 -0
  22. package/dist/core/extensions/builtin/prompt-preset/glm-5-2.js.map +1 -0
  23. package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
  24. package/dist/core/extensions/builtin/prompt-preset/presets.js +12 -0
  25. package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
  26. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts +1 -1
  27. package/dist/core/extensions/builtin/prompt-preset/settings.d.ts.map +1 -1
  28. package/dist/core/extensions/builtin/prompt-preset/settings.js +1 -0
  29. package/dist/core/extensions/builtin/prompt-preset/settings.js.map +1 -1
  30. package/dist/core/extensions/builtin/websearch/websearch/config.js +23 -23
  31. package/dist/core/extensions/builtin/websearch/websearch/config.js.map +1 -1
  32. package/dist/core/extensions/builtin/websearch/websearch/duckduckgo-html.d.ts +3 -0
  33. package/dist/core/extensions/builtin/websearch/websearch/duckduckgo-html.d.ts.map +1 -0
  34. package/dist/core/extensions/builtin/websearch/websearch/duckduckgo-html.js +48 -0
  35. package/dist/core/extensions/builtin/websearch/websearch/duckduckgo-html.js.map +1 -0
  36. package/dist/core/extensions/builtin/websearch/websearch/providers.d.ts +2 -3
  37. package/dist/core/extensions/builtin/websearch/websearch/providers.d.ts.map +1 -1
  38. package/dist/core/extensions/builtin/websearch/websearch/providers.js +2 -463
  39. package/dist/core/extensions/builtin/websearch/websearch/providers.js.map +1 -1
  40. package/dist/core/extensions/builtin/websearch/websearch/request-builder.d.ts +3 -0
  41. package/dist/core/extensions/builtin/websearch/websearch/request-builder.d.ts.map +1 -0
  42. package/dist/core/extensions/builtin/websearch/websearch/request-builder.js +247 -0
  43. package/dist/core/extensions/builtin/websearch/websearch/request-builder.js.map +1 -0
  44. package/dist/core/extensions/builtin/websearch/websearch/response-normalizer.d.ts +3 -0
  45. package/dist/core/extensions/builtin/websearch/websearch/response-normalizer.d.ts.map +1 -0
  46. package/dist/core/extensions/builtin/websearch/websearch/response-normalizer.js +183 -0
  47. package/dist/core/extensions/builtin/websearch/websearch/response-normalizer.js.map +1 -0
  48. package/dist/core/extensions/builtin/websearch/websearch/search-format.d.ts +3 -0
  49. package/dist/core/extensions/builtin/websearch/websearch/search-format.d.ts.map +1 -0
  50. package/dist/core/extensions/builtin/websearch/websearch/search-format.js +31 -0
  51. package/dist/core/extensions/builtin/websearch/websearch/search-format.js.map +1 -0
  52. package/dist/core/extensions/builtin/websearch/websearch/search.d.ts +1 -1
  53. package/dist/core/extensions/builtin/websearch/websearch/search.d.ts.map +1 -1
  54. package/dist/core/extensions/builtin/websearch/websearch/search.js +4 -26
  55. package/dist/core/extensions/builtin/websearch/websearch/search.js.map +1 -1
  56. package/dist/core/extensions/loader.d.ts +2 -3
  57. package/dist/core/extensions/loader.d.ts.map +1 -1
  58. package/dist/core/extensions/loader.js +48 -7
  59. package/dist/core/extensions/loader.js.map +1 -1
  60. package/dist/core/model-registry.d.ts.map +1 -1
  61. package/dist/core/model-registry.js +16 -0
  62. package/dist/core/model-registry.js.map +1 -1
  63. package/dist/core/project-trust.d.ts.map +1 -1
  64. package/dist/core/project-trust.js +2 -1
  65. package/dist/core/project-trust.js.map +1 -1
  66. package/dist/core/resolve-config-value.d.ts.map +1 -1
  67. package/dist/core/resolve-config-value.js +5 -3
  68. package/dist/core/resolve-config-value.js.map +1 -1
  69. package/dist/core/resource-loader.d.ts +1 -0
  70. package/dist/core/resource-loader.d.ts.map +1 -1
  71. package/dist/core/resource-loader.js +6 -1
  72. package/dist/core/resource-loader.js.map +1 -1
  73. package/dist/core/session-manager.d.ts.map +1 -1
  74. package/dist/core/session-manager.js +2 -1
  75. package/dist/core/session-manager.js.map +1 -1
  76. package/dist/core/settings-manager.d.ts +1 -0
  77. package/dist/core/settings-manager.d.ts.map +1 -1
  78. package/dist/core/settings-manager.js +8 -1
  79. package/dist/core/settings-manager.js.map +1 -1
  80. package/dist/core/tools/bash.d.ts.map +1 -1
  81. package/dist/core/tools/bash.js +9 -4
  82. package/dist/core/tools/bash.js.map +1 -1
  83. package/dist/core/tools/edit-diff.d.ts +23 -4
  84. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  85. package/dist/core/tools/edit-diff.js +99 -20
  86. package/dist/core/tools/edit-diff.js.map +1 -1
  87. package/dist/core/tools/edit.js +2 -2
  88. package/dist/core/tools/edit.js.map +1 -1
  89. package/dist/core/tools/write.js +1 -1
  90. package/dist/core/tools/write.js.map +1 -1
  91. package/dist/index.d.ts +2 -1
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +2 -1
  94. package/dist/index.js.map +1 -1
  95. package/dist/modes/interactive/components/config-selector.js +5 -5
  96. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  97. package/dist/modes/interactive/components/favorite-models-selector.d.ts.map +1 -1
  98. package/dist/modes/interactive/components/favorite-models-selector.js +4 -4
  99. package/dist/modes/interactive/components/favorite-models-selector.js.map +1 -1
  100. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  101. package/dist/modes/interactive/components/model-selector.js +4 -4
  102. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  103. package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
  104. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  105. package/dist/modes/interactive/components/settings-selector.js +165 -15
  106. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  107. package/dist/modes/interactive/components/tool-execution.js +1 -1
  108. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  109. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  110. package/dist/modes/interactive/components/tree-selector.js +44 -4
  111. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  112. package/dist/modes/interactive/interactive-mode.d.ts +4 -6
  113. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  114. package/dist/modes/interactive/interactive-mode.js +31 -63
  115. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  116. package/dist/modes/interactive/model-search.d.ts +12 -0
  117. package/dist/modes/interactive/model-search.d.ts.map +1 -0
  118. package/dist/modes/interactive/model-search.js +15 -0
  119. package/dist/modes/interactive/model-search.js.map +1 -0
  120. package/dist/modes/interactive/theme/theme-controller.d.ts +30 -0
  121. package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
  122. package/dist/modes/interactive/theme/theme-controller.js +108 -0
  123. package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
  124. package/dist/modes/interactive/theme/theme-schema.json +2 -1
  125. package/dist/modes/interactive/theme/theme.d.ts +5 -0
  126. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  127. package/dist/modes/interactive/theme/theme.js +34 -1
  128. package/dist/modes/interactive/theme/theme.js.map +1 -1
  129. package/dist/modes/rpc/rpc-mode.js +1 -1
  130. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  131. package/dist/package-manager-cli.d.ts.map +1 -1
  132. package/dist/package-manager-cli.js +66 -23
  133. package/dist/package-manager-cli.js.map +1 -1
  134. package/dist/utils/shell.d.ts +1 -0
  135. package/dist/utils/shell.d.ts.map +1 -1
  136. package/dist/utils/shell.js +12 -5
  137. package/dist/utils/shell.js.map +1 -1
  138. package/docs/custom-provider.md +4 -3
  139. package/docs/extensions.md +14 -0
  140. package/docs/models.md +3 -2
  141. package/docs/packages.md +32 -31
  142. package/docs/rpc.md +4 -0
  143. package/docs/sdk.md +2 -1
  144. package/docs/themes.md +1 -1
  145. package/docs/tui.md +1 -1
  146. package/docs/usage.md +62 -54
  147. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  148. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  149. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  150. package/examples/extensions/gondolin/package-lock.json +2 -2
  151. package/examples/extensions/gondolin/package.json +1 -1
  152. package/examples/extensions/preset.ts +4 -4
  153. package/examples/extensions/provider-payload.ts +5 -5
  154. package/examples/extensions/sandbox/index.ts +2 -2
  155. package/examples/extensions/sandbox/package-lock.json +2 -2
  156. package/examples/extensions/sandbox/package.json +1 -1
  157. package/examples/extensions/subagent/agents.ts +126 -0
  158. package/examples/extensions/subagent/index.ts +1015 -0
  159. package/examples/extensions/with-deps/package-lock.json +2 -2
  160. package/examples/extensions/with-deps/package.json +1 -1
  161. package/node_modules/@earendil-works/pi-agent-core/README.md +18 -0
  162. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +1 -1
  163. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
  164. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +1 -1
  165. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
  166. package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +1 -1
  167. package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
  168. package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +1 -1
  169. package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
  170. package/node_modules/@earendil-works/pi-agent-core/dist/base.d.ts +20 -0
  171. package/node_modules/@earendil-works/pi-agent-core/dist/base.d.ts.map +1 -0
  172. package/node_modules/@earendil-works/pi-agent-core/dist/base.js +20 -0
  173. package/node_modules/@earendil-works/pi-agent-core/dist/base.js.map +1 -0
  174. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +1 -1
  175. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -1
  176. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +1 -1
  177. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -1
  178. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +1 -1
  179. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
  180. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +1 -1
  181. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -1
  182. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +1 -1
  183. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
  184. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +1 -1
  185. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
  186. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +1 -1
  187. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +1 -1
  188. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +1 -1
  189. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -1
  190. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +19 -7
  191. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +1 -1
  192. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +1 -1
  193. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
  194. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
  195. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +1 -1
  196. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -1
  197. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -1
  198. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +2 -2
  199. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -1
  200. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -1
  201. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +2 -19
  202. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
  203. package/node_modules/@earendil-works/pi-agent-core/dist/index.js +4 -24
  204. package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -1
  205. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +1 -1
  206. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -1
  207. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +1 -1
  208. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -1
  209. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +1 -1
  210. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
  211. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
  212. package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  213. package/node_modules/@earendil-works/pi-ai/README.md +31 -2
  214. package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts +1 -0
  215. package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts.map +1 -1
  216. package/node_modules/@earendil-works/pi-ai/dist/api-registry.js +3 -0
  217. package/node_modules/@earendil-works/pi-ai/dist/api-registry.js.map +1 -1
  218. package/node_modules/@earendil-works/pi-ai/dist/base.d.ts +30 -0
  219. package/node_modules/@earendil-works/pi-ai/dist/base.d.ts.map +1 -0
  220. package/node_modules/@earendil-works/pi-ai/dist/base.js +18 -0
  221. package/node_modules/@earendil-works/pi-ai/dist/base.js.map +1 -0
  222. package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +2 -0
  223. package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +1 -1
  224. package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js +2 -1
  225. package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +1 -1
  226. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +30 -0
  227. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -1
  228. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +30 -0
  229. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -1
  230. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +1 -0
  231. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +1 -1
  232. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +3 -0
  233. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +1 -1
  234. package/node_modules/@earendil-works/pi-ai/dist/images.d.ts +0 -1
  235. package/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +1 -1
  236. package/node_modules/@earendil-works/pi-ai/dist/images.js +0 -1
  237. package/node_modules/@earendil-works/pi-ai/dist/images.js.map +1 -1
  238. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +1 -20
  239. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
  240. package/node_modules/@earendil-works/pi-ai/dist/index.js +3 -9
  241. package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
  242. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +134 -100
  243. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
  244. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +206 -157
  245. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
  246. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +1 -0
  247. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
  248. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +8 -0
  249. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -1
  250. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +1 -0
  251. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
  252. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +25 -0
  253. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -1
  254. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts +1 -0
  255. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
  256. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +8 -0
  257. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
  258. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +1 -0
  259. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +1 -1
  260. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +8 -0
  261. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +1 -1
  262. package/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +1 -0
  263. package/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +1 -1
  264. package/node_modules/@earendil-works/pi-ai/dist/providers/google.js +8 -0
  265. package/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +1 -1
  266. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts +1 -0
  267. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts.map +1 -1
  268. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +7 -0
  269. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js.map +1 -1
  270. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +1 -0
  271. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +1 -1
  272. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +33 -4
  273. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +1 -1
  274. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts +1 -0
  275. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
  276. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +8 -0
  277. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
  278. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts +1 -0
  279. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
  280. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +40 -0
  281. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js.map +1 -1
  282. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts +1 -0
  283. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
  284. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +8 -0
  285. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js.map +1 -1
  286. package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.d.ts +5 -3
  287. package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.d.ts.map +1 -1
  288. package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js +109 -172
  289. package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js.map +1 -1
  290. package/node_modules/@earendil-works/pi-ai/dist/stream.d.ts +0 -2
  291. package/node_modules/@earendil-works/pi-ai/dist/stream.d.ts.map +1 -1
  292. package/node_modules/@earendil-works/pi-ai/dist/stream.js +0 -2
  293. package/node_modules/@earendil-works/pi-ai/dist/stream.js.map +1 -1
  294. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +8 -2
  295. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
  296. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
  297. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -1
  298. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +66 -7
  299. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -1
  300. package/node_modules/@earendil-works/pi-ai/package.json +16 -3
  301. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
  302. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +23 -0
  303. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
  304. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +2 -2
  305. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
  306. package/node_modules/@earendil-works/pi-tui/dist/index.js +2 -2
  307. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
  308. package/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +2 -0
  309. package/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts.map +1 -1
  310. package/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js +8 -0
  311. package/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js.map +1 -1
  312. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
  313. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +4 -0
  314. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
  315. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +14 -1
  316. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
  317. package/node_modules/@earendil-works/pi-tui/dist/tui.js +63 -1
  318. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
  319. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  320. package/node_modules/@mistralai/mistralai/FUNCTIONS.md +2 -2
  321. package/node_modules/@mistralai/mistralai/README.md +88 -2
  322. package/node_modules/@mistralai/mistralai/esm/extra/observability/formatting.d.ts +40 -0
  323. package/node_modules/@mistralai/mistralai/esm/extra/observability/formatting.d.ts.map +1 -0
  324. package/node_modules/@mistralai/mistralai/esm/extra/observability/formatting.js +187 -0
  325. package/node_modules/@mistralai/mistralai/esm/extra/observability/formatting.js.map +1 -0
  326. package/node_modules/@mistralai/mistralai/esm/extra/observability/index.d.ts +3 -0
  327. package/node_modules/@mistralai/mistralai/esm/extra/observability/index.d.ts.map +1 -0
  328. package/node_modules/@mistralai/mistralai/esm/extra/observability/index.js +3 -0
  329. package/node_modules/@mistralai/mistralai/esm/extra/observability/index.js.map +1 -0
  330. package/node_modules/@mistralai/mistralai/esm/extra/observability/otel.d.ts +59 -0
  331. package/node_modules/@mistralai/mistralai/esm/extra/observability/otel.d.ts.map +1 -0
  332. package/node_modules/@mistralai/mistralai/esm/extra/observability/otel.js +578 -0
  333. package/node_modules/@mistralai/mistralai/esm/extra/observability/otel.js.map +1 -0
  334. package/node_modules/@mistralai/mistralai/esm/extra/observability/streaming.d.ts +25 -0
  335. package/node_modules/@mistralai/mistralai/esm/extra/observability/streaming.d.ts.map +1 -0
  336. package/node_modules/@mistralai/mistralai/esm/extra/observability/streaming.js +142 -0
  337. package/node_modules/@mistralai/mistralai/esm/extra/observability/streaming.js.map +1 -0
  338. package/node_modules/@mistralai/mistralai/esm/extra/structChat.d.ts.map +1 -1
  339. package/node_modules/@mistralai/mistralai/esm/extra/structChat.js +30 -9
  340. package/node_modules/@mistralai/mistralai/esm/extra/structChat.js.map +1 -1
  341. package/node_modules/@mistralai/mistralai/esm/funcs/agentsComplete.js +1 -1
  342. package/node_modules/@mistralai/mistralai/esm/funcs/agentsStream.js +1 -1
  343. package/node_modules/@mistralai/mistralai/esm/funcs/audioSpeechComplete.js +1 -1
  344. package/node_modules/@mistralai/mistralai/esm/funcs/audioTranscriptionsComplete.js +1 -1
  345. package/node_modules/@mistralai/mistralai/esm/funcs/audioTranscriptionsStream.js +1 -1
  346. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesCreate.js +1 -1
  347. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesDelete.js +1 -1
  348. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesGet.js +1 -1
  349. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesGetSampleAudio.js +1 -1
  350. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesList.js +1 -1
  351. package/node_modules/@mistralai/mistralai/esm/funcs/audioVoicesUpdate.js +1 -1
  352. package/node_modules/@mistralai/mistralai/esm/funcs/batchJobsCancel.js +1 -1
  353. package/node_modules/@mistralai/mistralai/esm/funcs/batchJobsCreate.js +1 -1
  354. package/node_modules/@mistralai/mistralai/esm/funcs/batchJobsDelete.js +1 -1
  355. package/node_modules/@mistralai/mistralai/esm/funcs/batchJobsGet.js +1 -1
  356. package/node_modules/@mistralai/mistralai/esm/funcs/batchJobsList.js +1 -1
  357. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsCreate.js +1 -1
  358. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsCreateVersionAlias.js +1 -1
  359. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsDelete.js +1 -1
  360. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsDeleteVersionAlias.js +1 -1
  361. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsGet.js +1 -1
  362. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsGetVersion.js +1 -1
  363. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsList.js +1 -1
  364. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsListVersionAliases.js +1 -1
  365. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsListVersions.js +1 -1
  366. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsUpdate.js +1 -1
  367. package/node_modules/@mistralai/mistralai/esm/funcs/betaAgentsUpdateVersion.js +1 -1
  368. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForOrganization.d.ts +19 -0
  369. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForOrganization.d.ts.map +1 -0
  370. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForOrganization.js +93 -0
  371. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForOrganization.js.map +1 -0
  372. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForUser.d.ts +19 -0
  373. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForUser.d.ts.map +1 -0
  374. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForUser.js +93 -0
  375. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForUser.js.map +1 -0
  376. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForWorkspace.d.ts +19 -0
  377. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForWorkspace.d.ts.map +1 -0
  378. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForWorkspace.js +93 -0
  379. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsActivateForWorkspace.js.map +1 -0
  380. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsCallTool.js +1 -1
  381. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsCreate.js +1 -1
  382. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsCreateOrUpdateOrganizationCredentials.js +1 -1
  383. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsCreateOrUpdateUserCredentials.js +1 -1
  384. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsCreateOrUpdateWorkspaceCredentials.js +1 -1
  385. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForOrganization.d.ts +19 -0
  386. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForOrganization.d.ts.map +1 -0
  387. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForOrganization.js +91 -0
  388. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForOrganization.js.map +1 -0
  389. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForUser.d.ts +19 -0
  390. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForUser.d.ts.map +1 -0
  391. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForUser.js +90 -0
  392. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForUser.js.map +1 -0
  393. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForWorkspace.d.ts +19 -0
  394. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForWorkspace.d.ts.map +1 -0
  395. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForWorkspace.js +90 -0
  396. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeactivateForWorkspace.js.map +1 -0
  397. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDelete.js +1 -1
  398. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeleteOrganizationCredentials.js +1 -1
  399. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeleteUserCredentials.js +1 -1
  400. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsDeleteWorkspaceCredentials.js +1 -1
  401. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsGet.js +2 -2
  402. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsGet.js.map +1 -1
  403. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsGetAuthUrl.js +3 -1
  404. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsGetAuthUrl.js.map +1 -1
  405. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsGetAuthenticationMethods.js +1 -1
  406. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsList.js +1 -1
  407. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsListOrganizationCredentials.js +1 -1
  408. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsListTools.js +1 -1
  409. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsListUserCredentials.js +1 -1
  410. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsListWorkspaceCredentials.js +1 -1
  411. package/node_modules/@mistralai/mistralai/esm/funcs/betaConnectorsUpdate.js +1 -1
  412. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsAppend.js +1 -1
  413. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsAppendStream.js +1 -1
  414. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsDelete.js +1 -1
  415. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsGet.js +1 -1
  416. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsGetHistory.js +1 -1
  417. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsGetMessages.js +1 -1
  418. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsList.js +1 -1
  419. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsRestart.js +1 -1
  420. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsRestartStream.js +1 -1
  421. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsStart.js +1 -1
  422. package/node_modules/@mistralai/mistralai/esm/funcs/betaConversationsStartStream.js +1 -1
  423. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesAccessesDelete.d.ts +1 -1
  424. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesAccessesDelete.js +2 -2
  425. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesAccessesList.js +1 -1
  426. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesAccessesUpdateOrCreate.js +1 -1
  427. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesCreate.js +1 -1
  428. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDelete.d.ts +1 -1
  429. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDelete.js +2 -2
  430. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsDelete.js +1 -1
  431. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js +1 -1
  432. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsGet.js +1 -1
  433. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsGetSignedUrl.js +1 -1
  434. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.d.ts +21 -0
  435. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.d.ts.map +1 -0
  436. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.js +99 -0
  437. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.js.map +1 -0
  438. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsList.js +1 -1
  439. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsReprocess.js +1 -1
  440. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsStatus.js +1 -1
  441. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsTextContent.js +1 -1
  442. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsUpdate.d.ts +2 -2
  443. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsUpdate.d.ts.map +1 -1
  444. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsUpdate.js +5 -5
  445. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsUpdate.js.map +1 -1
  446. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesDocumentsUpload.js +1 -1
  447. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesGet.js +1 -1
  448. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesLibrariesUpdateV1.d.ts +21 -0
  449. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesLibrariesUpdateV1.d.ts.map +1 -0
  450. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesLibrariesUpdateV1.js +95 -0
  451. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesLibrariesUpdateV1.js.map +1 -0
  452. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesList.js +1 -1
  453. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesUpdate.d.ts +1 -1
  454. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesUpdate.d.ts.map +1 -1
  455. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesUpdate.js +4 -4
  456. package/node_modules/@mistralai/mistralai/esm/funcs/betaLibrariesUpdate.js.map +1 -1
  457. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsCreate.js +1 -1
  458. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsDelete.js +1 -1
  459. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsFetch.js +1 -1
  460. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsFetchStatus.js +1 -1
  461. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsList.js +1 -1
  462. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityCampaignsListEvents.js +1 -1
  463. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsFetch.js +1 -1
  464. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsFetchSimilarEvents.js +1 -1
  465. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptionCounts.js +1 -1
  466. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptions.js +1 -1
  467. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsFieldsList.js +1 -1
  468. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsJudge.js +1 -1
  469. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsSearch.js +1 -1
  470. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityChatCompletionEventsSearchIds.js +1 -1
  471. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsCreate.js +1 -1
  472. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsCreateRecord.js +1 -1
  473. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsDelete.js +1 -1
  474. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsExportToJsonl.js +1 -1
  475. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsFetch.js +1 -1
  476. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsFetchTask.js +1 -1
  477. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsImportFromCampaign.js +1 -1
  478. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsImportFromDatasetRecords.js +1 -1
  479. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsImportFromExplorer.js +1 -1
  480. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsImportFromFile.js +1 -1
  481. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsImportFromPlayground.js +1 -1
  482. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsList.js +1 -1
  483. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsListRecords.js +1 -1
  484. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsListTasks.js +1 -1
  485. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsBulkDelete.js +1 -1
  486. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsDelete.js +1 -1
  487. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsFetch.js +1 -1
  488. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsJudge.js +1 -1
  489. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsUpdatePayload.js +1 -1
  490. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsRecordsUpdateProperties.js +1 -1
  491. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityDatasetsUpdate.js +1 -1
  492. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesCreate.js +1 -1
  493. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesDelete.js +1 -1
  494. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesFetch.js +1 -1
  495. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesJudgeConversation.js +1 -1
  496. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesList.js +1 -1
  497. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityJudgesUpdate.js +1 -1
  498. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsFetchOptions.d.ts +16 -0
  499. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsFetchOptions.d.ts.map +1 -0
  500. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsFetchOptions.js +94 -0
  501. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsFetchOptions.js.map +1 -0
  502. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsList.d.ts +15 -0
  503. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsList.d.ts.map +1 -0
  504. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsList.js +71 -0
  505. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsList.js.map +1 -0
  506. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsSearch.d.ts +16 -0
  507. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsSearch.d.ts.map +1 -0
  508. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsSearch.js +90 -0
  509. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityLogsSearch.js.map +1 -0
  510. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanEvalFieldOptions.d.ts +16 -0
  511. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanEvalFieldOptions.d.ts.map +1 -0
  512. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanEvalFieldOptions.js +94 -0
  513. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanEvalFieldOptions.js.map +1 -0
  514. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanFieldOptions.d.ts +16 -0
  515. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanFieldOptions.d.ts.map +1 -0
  516. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanFieldOptions.js +94 -0
  517. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansFetchSpanFieldOptions.js.map +1 -0
  518. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanEvalFields.d.ts +15 -0
  519. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanEvalFields.d.ts.map +1 -0
  520. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanEvalFields.js +71 -0
  521. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanEvalFields.js.map +1 -0
  522. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanFields.d.ts +15 -0
  523. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanFields.d.ts.map +1 -0
  524. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanFields.js +71 -0
  525. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansListSpanFields.js.map +1 -0
  526. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchLatestSpanEvaluations.d.ts +16 -0
  527. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchLatestSpanEvaluations.d.ts.map +1 -0
  528. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchLatestSpanEvaluations.js +93 -0
  529. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchLatestSpanEvaluations.js.map +1 -0
  530. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpanEvaluations.d.ts +16 -0
  531. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpanEvaluations.d.ts.map +1 -0
  532. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpanEvaluations.js +93 -0
  533. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpanEvaluations.js.map +1 -0
  534. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpans.d.ts +16 -0
  535. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpans.d.ts.map +1 -0
  536. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpans.js +90 -0
  537. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilitySpansSearchSpans.js.map +1 -0
  538. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesFetchOptions.d.ts +16 -0
  539. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesFetchOptions.d.ts.map +1 -0
  540. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesFetchOptions.js +94 -0
  541. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesFetchOptions.js.map +1 -0
  542. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetSpanById.d.ts +16 -0
  543. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetSpanById.d.ts.map +1 -0
  544. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetSpanById.js +98 -0
  545. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetSpanById.js.map +1 -0
  546. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceById.d.ts +16 -0
  547. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceById.d.ts.map +1 -0
  548. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceById.js +89 -0
  549. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceById.js.map +1 -0
  550. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceFields.d.ts +15 -0
  551. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceFields.d.ts.map +1 -0
  552. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceFields.js +71 -0
  553. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceFields.js.map +1 -0
  554. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceSpans.d.ts +16 -0
  555. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceSpans.d.ts.map +1 -0
  556. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceSpans.js +96 -0
  557. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesGetTraceSpans.js.map +1 -0
  558. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesSearch.d.ts +16 -0
  559. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesSearch.d.ts.map +1 -0
  560. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesSearch.js +91 -0
  561. package/node_modules/@mistralai/mistralai/esm/funcs/betaObservabilityTracesSearch.js.map +1 -0
  562. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsList.js +1 -1
  563. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.d.ts +18 -0
  564. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.d.ts.map +1 -0
  565. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.js +85 -0
  566. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.js.map +1 -0
  567. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.d.ts +16 -0
  568. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.d.ts.map +1 -0
  569. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.js +90 -0
  570. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.js.map +1 -0
  571. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesList.d.ts +14 -0
  572. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesList.d.ts.map +1 -0
  573. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesList.js +68 -0
  574. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesList.js.map +1 -0
  575. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesRegister.d.ts +15 -0
  576. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesRegister.d.ts.map +1 -0
  577. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesRegister.js +81 -0
  578. package/node_modules/@mistralai/mistralai/esm/funcs/betaRagSearchIndexesRegister.js.map +1 -0
  579. package/node_modules/@mistralai/mistralai/esm/funcs/chatComplete.js +1 -1
  580. package/node_modules/@mistralai/mistralai/esm/funcs/chatStream.js +1 -1
  581. package/node_modules/@mistralai/mistralai/esm/funcs/classifiersClassify.js +1 -1
  582. package/node_modules/@mistralai/mistralai/esm/funcs/classifiersClassifyChat.js +1 -1
  583. package/node_modules/@mistralai/mistralai/esm/funcs/classifiersModerate.js +1 -1
  584. package/node_modules/@mistralai/mistralai/esm/funcs/classifiersModerateChat.js +1 -1
  585. package/node_modules/@mistralai/mistralai/esm/funcs/embeddingsCreate.js +1 -1
  586. package/node_modules/@mistralai/mistralai/esm/funcs/eventsGetStreamEvents.js +1 -1
  587. package/node_modules/@mistralai/mistralai/esm/funcs/eventsGetWorkflowEvents.js +1 -1
  588. package/node_modules/@mistralai/mistralai/esm/funcs/filesDelete.js +1 -1
  589. package/node_modules/@mistralai/mistralai/esm/funcs/filesDownload.js +1 -1
  590. package/node_modules/@mistralai/mistralai/esm/funcs/filesGetSignedUrl.js +1 -1
  591. package/node_modules/@mistralai/mistralai/esm/funcs/filesList.js +1 -1
  592. package/node_modules/@mistralai/mistralai/esm/funcs/filesRetrieve.js +1 -1
  593. package/node_modules/@mistralai/mistralai/esm/funcs/filesUpload.js +1 -1
  594. package/node_modules/@mistralai/mistralai/esm/funcs/fimComplete.js +1 -1
  595. package/node_modules/@mistralai/mistralai/esm/funcs/fimStream.js +1 -1
  596. package/node_modules/@mistralai/mistralai/esm/funcs/fineTuningJobsCancel.js +1 -1
  597. package/node_modules/@mistralai/mistralai/esm/funcs/fineTuningJobsCreate.js +1 -1
  598. package/node_modules/@mistralai/mistralai/esm/funcs/fineTuningJobsGet.js +1 -1
  599. package/node_modules/@mistralai/mistralai/esm/funcs/fineTuningJobsList.js +1 -1
  600. package/node_modules/@mistralai/mistralai/esm/funcs/fineTuningJobsStart.js +1 -1
  601. package/node_modules/@mistralai/mistralai/esm/funcs/modelsArchive.js +1 -1
  602. package/node_modules/@mistralai/mistralai/esm/funcs/modelsDelete.js +1 -1
  603. package/node_modules/@mistralai/mistralai/esm/funcs/modelsList.js +1 -1
  604. package/node_modules/@mistralai/mistralai/esm/funcs/modelsRetrieve.js +1 -1
  605. package/node_modules/@mistralai/mistralai/esm/funcs/modelsUnarchive.js +1 -1
  606. package/node_modules/@mistralai/mistralai/esm/funcs/modelsUpdate.js +1 -1
  607. package/node_modules/@mistralai/mistralai/esm/funcs/ocrProcess.js +1 -1
  608. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsArchiveWorkflow.js +1 -1
  609. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkArchiveWorkflows.d.ts +15 -0
  610. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkArchiveWorkflows.d.ts.map +1 -0
  611. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkArchiveWorkflows.js +81 -0
  612. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkArchiveWorkflows.js.map +1 -0
  613. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkUnarchiveWorkflows.d.ts +15 -0
  614. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkUnarchiveWorkflows.d.ts.map +1 -0
  615. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkUnarchiveWorkflows.js +81 -0
  616. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsBulkUnarchiveWorkflows.js.map +1 -0
  617. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsDeploymentsGetDeployment.js +1 -1
  618. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsDeploymentsListDeployments.js +6 -1
  619. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsDeploymentsListDeployments.js.map +1 -1
  620. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecuteWorkflow.js +1 -1
  621. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecuteWorkflowRegistration.js +1 -1
  622. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsBatchCancelWorkflowExecutions.js +1 -1
  623. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsBatchTerminateWorkflowExecutions.js +1 -1
  624. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsCancelWorkflowExecution.js +1 -1
  625. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecution.js +1 -1
  626. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionHistory.js +1 -1
  627. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionLogs.d.ts +24 -0
  628. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionLogs.d.ts.map +1 -0
  629. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionLogs.js +105 -0
  630. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionLogs.js.map +1 -0
  631. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceEvents.js +1 -1
  632. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceOtel.js +1 -1
  633. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceSummary.js +1 -1
  634. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsQueryWorkflowExecution.js +1 -1
  635. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsResetWorkflow.js +1 -1
  636. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsSignalWorkflowExecution.js +1 -1
  637. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsStream.js +1 -1
  638. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsStreamWorkflowExecutionLogs.d.ts +22 -0
  639. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsStreamWorkflowExecutionLogs.d.ts.map +1 -0
  640. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsStreamWorkflowExecutionLogs.js +110 -0
  641. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsStreamWorkflowExecutionLogs.js.map +1 -0
  642. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsTerminateWorkflowExecution.js +1 -1
  643. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsExecutionsUpdateWorkflowExecution.js +1 -1
  644. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsGetWorkflow.js +1 -1
  645. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsGetWorkflowRegistration.js +1 -1
  646. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsGetWorkflowRegistrations.js +1 -1
  647. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsGetWorkflows.js +7 -1
  648. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsGetWorkflows.js.map +1 -1
  649. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsMetricsGetWorkflowMetrics.js +1 -1
  650. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsRunsGetRun.js +1 -1
  651. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsRunsGetRunHistory.js +1 -1
  652. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsRunsListRuns.js +8 -1
  653. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsRunsListRuns.js.map +1 -1
  654. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedule.d.ts +16 -0
  655. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedule.d.ts.map +1 -0
  656. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedule.js +89 -0
  657. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedule.js.map +1 -0
  658. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedules.d.ts +6 -2
  659. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedules.d.ts.map +1 -1
  660. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedules.js +65 -10
  661. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesGetSchedules.js.map +1 -1
  662. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesPauseSchedule.d.ts +15 -0
  663. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesPauseSchedule.d.ts.map +1 -0
  664. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesPauseSchedule.js +92 -0
  665. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesPauseSchedule.js.map +1 -0
  666. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesResumeSchedule.d.ts +15 -0
  667. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesResumeSchedule.d.ts.map +1 -0
  668. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesResumeSchedule.js +92 -0
  669. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesResumeSchedule.js.map +1 -0
  670. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesScheduleWorkflow.js +1 -1
  671. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesTriggerSchedule.d.ts +15 -0
  672. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesTriggerSchedule.d.ts.map +1 -0
  673. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesTriggerSchedule.js +92 -0
  674. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesTriggerSchedule.js.map +1 -0
  675. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesUnscheduleWorkflow.js +1 -1
  676. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesUpdateSchedule.d.ts +16 -0
  677. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesUpdateSchedule.d.ts.map +1 -0
  678. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesUpdateSchedule.js +92 -0
  679. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsSchedulesUpdateSchedule.js.map +1 -0
  680. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsUnarchiveWorkflow.js +1 -1
  681. package/node_modules/@mistralai/mistralai/esm/funcs/workflowsUpdateWorkflow.js +1 -1
  682. package/node_modules/@mistralai/mistralai/esm/hooks/deprecation_warning.d.ts.map +1 -1
  683. package/node_modules/@mistralai/mistralai/esm/hooks/deprecation_warning.js +1 -1
  684. package/node_modules/@mistralai/mistralai/esm/hooks/deprecation_warning.js.map +1 -1
  685. package/node_modules/@mistralai/mistralai/esm/hooks/registration.d.ts.map +1 -1
  686. package/node_modules/@mistralai/mistralai/esm/hooks/registration.js +6 -0
  687. package/node_modules/@mistralai/mistralai/esm/hooks/registration.js.map +1 -1
  688. package/node_modules/@mistralai/mistralai/esm/hooks/tracing.d.ts +21 -0
  689. package/node_modules/@mistralai/mistralai/esm/hooks/tracing.d.ts.map +1 -0
  690. package/node_modules/@mistralai/mistralai/esm/hooks/tracing.js +104 -0
  691. package/node_modules/@mistralai/mistralai/esm/hooks/tracing.js.map +1 -0
  692. package/node_modules/@mistralai/mistralai/esm/lib/config.d.ts +3 -3
  693. package/node_modules/@mistralai/mistralai/esm/lib/config.js +3 -3
  694. package/node_modules/@mistralai/mistralai/esm/lib/config.js.map +1 -1
  695. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskcompletedattributesresponse.d.ts +2 -0
  696. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskcompletedattributesresponse.d.ts.map +1 -1
  697. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskcompletedattributesresponse.js.map +1 -1
  698. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskstartedattributesresponse.d.ts +2 -0
  699. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskstartedattributesresponse.d.ts.map +1 -1
  700. package/node_modules/@mistralai/mistralai/esm/models/components/activitytaskstartedattributesresponse.js.map +1 -1
  701. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionrequest.d.ts +2 -0
  702. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
  703. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionrequest.js +2 -0
  704. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionrequest.js.map +1 -1
  705. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionstreamrequest.d.ts +2 -0
  706. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
  707. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionstreamrequest.js +2 -0
  708. package/node_modules/@mistralai/mistralai/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
  709. package/node_modules/@mistralai/mistralai/esm/models/components/authdata.d.ts +2 -2
  710. package/node_modules/@mistralai/mistralai/esm/models/components/authdata.d.ts.map +1 -1
  711. package/node_modules/@mistralai/mistralai/esm/models/components/authdata.js +1 -1
  712. package/node_modules/@mistralai/mistralai/esm/models/components/authdata.js.map +1 -1
  713. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationconfiguration.d.ts +6 -2
  714. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationconfiguration.d.ts.map +1 -1
  715. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationconfiguration.js +6 -2
  716. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationconfiguration.js.map +1 -1
  717. package/node_modules/@mistralai/mistralai/esm/models/components/authstatus.d.ts +11 -0
  718. package/node_modules/@mistralai/mistralai/esm/models/components/authstatus.d.ts.map +1 -0
  719. package/node_modules/@mistralai/mistralai/esm/models/components/authstatus.js +13 -0
  720. package/node_modules/@mistralai/mistralai/esm/models/components/authstatus.js.map +1 -0
  721. package/node_modules/@mistralai/mistralai/esm/models/components/basefielddefinition.d.ts +8 -8
  722. package/node_modules/@mistralai/mistralai/esm/models/components/basefielddefinition.d.ts.map +1 -1
  723. package/node_modules/@mistralai/mistralai/esm/models/components/basefielddefinition.js +6 -7
  724. package/node_modules/@mistralai/mistralai/esm/models/components/basefielddefinition.js.map +1 -1
  725. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionevent.d.ts +6 -2
  726. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionevent.d.ts.map +1 -1
  727. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionevent.js +2 -0
  728. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionevent.js.map +1 -1
  729. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletioneventpreview.d.ts +6 -2
  730. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletioneventpreview.d.ts.map +1 -1
  731. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletioneventpreview.js +2 -0
  732. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletioneventpreview.js.map +1 -1
  733. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionrequest.d.ts +2 -0
  734. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
  735. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionrequest.js +2 -0
  736. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionrequest.js.map +1 -1
  737. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionstreamrequest.d.ts +2 -0
  738. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
  739. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionstreamrequest.js +2 -0
  740. package/node_modules/@mistralai/mistralai/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
  741. package/node_modules/@mistralai/mistralai/esm/models/components/classifierfinetuningjob.d.ts +1 -1
  742. package/node_modules/@mistralai/mistralai/esm/models/components/classifierfinetuningjobdetails.d.ts +42 -0
  743. package/node_modules/@mistralai/mistralai/esm/models/components/classifierfinetuningjobdetails.d.ts.map +1 -1
  744. package/node_modules/@mistralai/mistralai/esm/models/components/classifierfinetuningjobdetails.js +3 -0
  745. package/node_modules/@mistralai/mistralai/esm/models/components/classifierfinetuningjobdetails.js.map +1 -1
  746. package/node_modules/@mistralai/mistralai/esm/models/components/classifiertrainingparameters.d.ts +12 -0
  747. package/node_modules/@mistralai/mistralai/esm/models/components/classifiertrainingparameters.d.ts.map +1 -1
  748. package/node_modules/@mistralai/mistralai/esm/models/components/classifiertrainingparameters.js.map +1 -1
  749. package/node_modules/@mistralai/mistralai/esm/models/components/clientcapabilities.d.ts +26 -0
  750. package/node_modules/@mistralai/mistralai/esm/models/components/clientcapabilities.d.ts.map +1 -0
  751. package/node_modules/@mistralai/mistralai/esm/models/components/clientcapabilities.js +23 -0
  752. package/node_modules/@mistralai/mistralai/esm/models/components/clientcapabilities.js.map +1 -0
  753. package/node_modules/@mistralai/mistralai/esm/models/components/clienttaskscapability.d.ts +21 -0
  754. package/node_modules/@mistralai/mistralai/esm/models/components/clienttaskscapability.d.ts.map +1 -0
  755. package/node_modules/@mistralai/mistralai/esm/models/components/clienttaskscapability.js +17 -0
  756. package/node_modules/@mistralai/mistralai/esm/models/components/clienttaskscapability.js.map +1 -0
  757. package/node_modules/@mistralai/mistralai/esm/models/components/clienttasksrequestscapability.d.ts +17 -0
  758. package/node_modules/@mistralai/mistralai/esm/models/components/clienttasksrequestscapability.d.ts.map +1 -0
  759. package/node_modules/@mistralai/mistralai/esm/models/components/clienttasksrequestscapability.js +17 -0
  760. package/node_modules/@mistralai/mistralai/esm/models/components/clienttasksrequestscapability.js.map +1 -0
  761. package/node_modules/@mistralai/mistralai/esm/models/components/completionfinetuningjob.d.ts +1 -1
  762. package/node_modules/@mistralai/mistralai/esm/models/components/completionfinetuningjobdetails.d.ts +42 -0
  763. package/node_modules/@mistralai/mistralai/esm/models/components/completionfinetuningjobdetails.d.ts.map +1 -1
  764. package/node_modules/@mistralai/mistralai/esm/models/components/completionfinetuningjobdetails.js +3 -0
  765. package/node_modules/@mistralai/mistralai/esm/models/components/completionfinetuningjobdetails.js.map +1 -1
  766. package/node_modules/@mistralai/mistralai/esm/models/components/completiontokensdetails.d.ts +13 -0
  767. package/node_modules/@mistralai/mistralai/esm/models/components/completiontokensdetails.d.ts.map +1 -0
  768. package/node_modules/@mistralai/mistralai/esm/models/components/completiontokensdetails.js +19 -0
  769. package/node_modules/@mistralai/mistralai/esm/models/components/completiontokensdetails.js.map +1 -0
  770. package/node_modules/@mistralai/mistralai/esm/models/components/completiontrainingparameters.d.ts +12 -0
  771. package/node_modules/@mistralai/mistralai/esm/models/components/completiontrainingparameters.d.ts.map +1 -1
  772. package/node_modules/@mistralai/mistralai/esm/models/components/completiontrainingparameters.js.map +1 -1
  773. package/node_modules/@mistralai/mistralai/esm/models/components/connectionconfigtype.d.ts +11 -0
  774. package/node_modules/@mistralai/mistralai/esm/models/components/connectionconfigtype.d.ts.map +1 -0
  775. package/node_modules/@mistralai/mistralai/esm/models/components/connectionconfigtype.js +13 -0
  776. package/node_modules/@mistralai/mistralai/esm/models/components/connectionconfigtype.js.map +1 -0
  777. package/node_modules/@mistralai/mistralai/esm/models/components/connectioncredentials.d.ts +2 -0
  778. package/node_modules/@mistralai/mistralai/esm/models/components/connectioncredentials.d.ts.map +1 -1
  779. package/node_modules/@mistralai/mistralai/esm/models/components/connectioncredentials.js +2 -0
  780. package/node_modules/@mistralai/mistralai/esm/models/components/connectioncredentials.js.map +1 -1
  781. package/node_modules/@mistralai/mistralai/esm/models/components/connectionpreference.d.ts +15 -0
  782. package/node_modules/@mistralai/mistralai/esm/models/components/connectionpreference.d.ts.map +1 -0
  783. package/node_modules/@mistralai/mistralai/esm/models/components/connectionpreference.js +26 -0
  784. package/node_modules/@mistralai/mistralai/esm/models/components/connectionpreference.js.map +1 -0
  785. package/node_modules/@mistralai/mistralai/esm/models/components/connector.d.ts +29 -1
  786. package/node_modules/@mistralai/mistralai/esm/models/components/connector.d.ts.map +1 -1
  787. package/node_modules/@mistralai/mistralai/esm/models/components/connector.js +42 -2
  788. package/node_modules/@mistralai/mistralai/esm/models/components/connector.js.map +1 -1
  789. package/node_modules/@mistralai/mistralai/esm/models/components/connectorlocale.d.ts +18 -0
  790. package/node_modules/@mistralai/mistralai/esm/models/components/connectorlocale.d.ts.map +1 -0
  791. package/node_modules/@mistralai/mistralai/esm/models/components/connectorlocale.js +21 -0
  792. package/node_modules/@mistralai/mistralai/esm/models/components/connectorlocale.js.map +1 -0
  793. package/node_modules/@mistralai/mistralai/esm/models/components/connectorprotocol.d.ts +11 -0
  794. package/node_modules/@mistralai/mistralai/esm/models/components/connectorprotocol.d.ts.map +1 -0
  795. package/node_modules/@mistralai/mistralai/esm/models/components/connectorprotocol.js +13 -0
  796. package/node_modules/@mistralai/mistralai/esm/models/components/connectorprotocol.js.map +1 -0
  797. package/node_modules/@mistralai/mistralai/esm/models/components/connectorsqueryfilters.d.ts +0 -5
  798. package/node_modules/@mistralai/mistralai/esm/models/components/connectorsqueryfilters.d.ts.map +1 -1
  799. package/node_modules/@mistralai/mistralai/esm/models/components/connectorsqueryfilters.js +0 -6
  800. package/node_modules/@mistralai/mistralai/esm/models/components/connectorsqueryfilters.js.map +1 -1
  801. package/node_modules/@mistralai/mistralai/esm/models/components/consumertype.d.ts +12 -0
  802. package/node_modules/@mistralai/mistralai/esm/models/components/consumertype.d.ts.map +1 -0
  803. package/node_modules/@mistralai/mistralai/esm/models/components/consumertype.js +14 -0
  804. package/node_modules/@mistralai/mistralai/esm/models/components/consumertype.js.map +1 -0
  805. package/node_modules/@mistralai/mistralai/esm/models/components/createbatchjobrequest.d.ts +8 -1
  806. package/node_modules/@mistralai/mistralai/esm/models/components/createbatchjobrequest.d.ts.map +1 -1
  807. package/node_modules/@mistralai/mistralai/esm/models/components/createbatchjobrequest.js.map +1 -1
  808. package/node_modules/@mistralai/mistralai/esm/models/components/createconnectorrequest.d.ts +18 -0
  809. package/node_modules/@mistralai/mistralai/esm/models/components/createconnectorrequest.d.ts.map +1 -1
  810. package/node_modules/@mistralai/mistralai/esm/models/components/createconnectorrequest.js +8 -0
  811. package/node_modules/@mistralai/mistralai/esm/models/components/createconnectorrequest.js.map +1 -1
  812. package/node_modules/@mistralai/mistralai/esm/models/components/createingestionpipelineconfigurationrequest.d.ts +18 -0
  813. package/node_modules/@mistralai/mistralai/esm/models/components/createingestionpipelineconfigurationrequest.d.ts.map +1 -0
  814. package/node_modules/@mistralai/mistralai/esm/models/components/createingestionpipelineconfigurationrequest.js +20 -0
  815. package/node_modules/@mistralai/mistralai/esm/models/components/createingestionpipelineconfigurationrequest.js.map +1 -0
  816. package/node_modules/@mistralai/mistralai/esm/models/components/createlibraryrequest.d.ts +5 -0
  817. package/node_modules/@mistralai/mistralai/esm/models/components/createlibraryrequest.d.ts.map +1 -1
  818. package/node_modules/@mistralai/mistralai/esm/models/components/createlibraryrequest.js.map +1 -1
  819. package/node_modules/@mistralai/mistralai/esm/models/components/createsearchindexinforequest.d.ts +33 -0
  820. package/node_modules/@mistralai/mistralai/esm/models/components/createsearchindexinforequest.d.ts.map +1 -0
  821. package/node_modules/@mistralai/mistralai/esm/models/components/createsearchindexinforequest.js +33 -0
  822. package/node_modules/@mistralai/mistralai/esm/models/components/createsearchindexinforequest.js.map +1 -0
  823. package/node_modules/@mistralai/mistralai/esm/models/components/createvespaschemarequest.d.ts +14 -0
  824. package/node_modules/@mistralai/mistralai/esm/models/components/createvespaschemarequest.d.ts.map +1 -0
  825. package/node_modules/@mistralai/mistralai/esm/models/components/createvespaschemarequest.js +19 -0
  826. package/node_modules/@mistralai/mistralai/esm/models/components/createvespaschemarequest.js.map +1 -0
  827. package/node_modules/@mistralai/mistralai/esm/models/components/createvespasearchindexinforequest.d.ts +21 -0
  828. package/node_modules/@mistralai/mistralai/esm/models/components/createvespasearchindexinforequest.d.ts.map +1 -0
  829. package/node_modules/@mistralai/mistralai/esm/models/components/createvespasearchindexinforequest.js +25 -0
  830. package/node_modules/@mistralai/mistralai/esm/models/components/createvespasearchindexinforequest.js.map +1 -0
  831. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsresponse.d.ts +2 -2
  832. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsresponse.d.ts.map +1 -1
  833. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsresponse.js +2 -2
  834. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsresponse.js.map +1 -1
  835. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsstatus.d.ts +15 -0
  836. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsstatus.d.ts.map +1 -0
  837. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsstatus.js +27 -0
  838. package/node_modules/@mistralai/mistralai/esm/models/components/credentialsstatus.js.map +1 -0
  839. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskcompletedattributesresponse.d.ts +2 -0
  840. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskcompletedattributesresponse.d.ts.map +1 -1
  841. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskcompletedattributesresponse.js.map +1 -1
  842. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskstartedattributesresponse.d.ts +2 -0
  843. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskstartedattributesresponse.d.ts.map +1 -1
  844. package/node_modules/@mistralai/mistralai/esm/models/components/customtaskstartedattributesresponse.js.map +1 -1
  845. package/node_modules/@mistralai/mistralai/esm/models/components/deletemodelresponse.d.ts +2 -2
  846. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentdetailresponse.d.ts +4 -0
  847. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentdetailresponse.d.ts.map +1 -1
  848. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentdetailresponse.js +2 -0
  849. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentdetailresponse.js.map +1 -1
  850. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentlistresponse.d.ts +8 -0
  851. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentlistresponse.d.ts.map +1 -1
  852. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentlistresponse.js +8 -0
  853. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentlistresponse.js.map +1 -1
  854. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentresponse.d.ts +4 -0
  855. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentresponse.d.ts.map +1 -1
  856. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentresponse.js +2 -0
  857. package/node_modules/@mistralai/mistralai/esm/models/components/deploymentresponse.js.map +1 -1
  858. package/node_modules/@mistralai/mistralai/esm/models/components/document.d.ts +16 -0
  859. package/node_modules/@mistralai/mistralai/esm/models/components/document.d.ts.map +1 -1
  860. package/node_modules/@mistralai/mistralai/esm/models/components/document.js +2 -0
  861. package/node_modules/@mistralai/mistralai/esm/models/components/document.js.map +1 -1
  862. package/node_modules/@mistralai/mistralai/esm/models/components/elicitationcapability.d.ts +23 -0
  863. package/node_modules/@mistralai/mistralai/esm/models/components/elicitationcapability.d.ts.map +1 -0
  864. package/node_modules/@mistralai/mistralai/esm/models/components/elicitationcapability.js +15 -0
  865. package/node_modules/@mistralai/mistralai/esm/models/components/elicitationcapability.js.map +1 -0
  866. package/node_modules/@mistralai/mistralai/esm/models/components/encodedpayloadoptions.d.ts +6 -3
  867. package/node_modules/@mistralai/mistralai/esm/models/components/encodedpayloadoptions.d.ts.map +1 -1
  868. package/node_modules/@mistralai/mistralai/esm/models/components/encodedpayloadoptions.js +5 -2
  869. package/node_modules/@mistralai/mistralai/esm/models/components/encodedpayloadoptions.js.map +1 -1
  870. package/node_modules/@mistralai/mistralai/esm/models/components/encryptedpatchvalue.d.ts +21 -0
  871. package/node_modules/@mistralai/mistralai/esm/models/components/encryptedpatchvalue.d.ts.map +1 -0
  872. package/node_modules/@mistralai/mistralai/esm/models/components/encryptedpatchvalue.js +15 -0
  873. package/node_modules/@mistralai/mistralai/esm/models/components/encryptedpatchvalue.js.map +1 -0
  874. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogrecord.d.ts +17 -0
  875. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogrecord.d.ts.map +1 -0
  876. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogrecord.js +27 -0
  877. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogrecord.js.map +1 -0
  878. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogsearchresponse.d.ts +12 -0
  879. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogsearchresponse.d.ts.map +1 -0
  880. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogsearchresponse.js +21 -0
  881. package/node_modules/@mistralai/mistralai/esm/models/components/executionlogsearchresponse.js.map +1 -0
  882. package/node_modules/@mistralai/mistralai/esm/models/components/extendedoauthservermetadata.d.ts +64 -0
  883. package/node_modules/@mistralai/mistralai/esm/models/components/extendedoauthservermetadata.d.ts.map +1 -0
  884. package/node_modules/@mistralai/mistralai/esm/models/components/extendedoauthservermetadata.js +64 -0
  885. package/node_modules/@mistralai/mistralai/esm/models/components/extendedoauthservermetadata.js.map +1 -0
  886. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetlog.d.ts +13 -0
  887. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetlog.d.ts.map +1 -0
  888. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetlog.js +17 -0
  889. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetlog.js.map +1 -0
  890. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspan.d.ts +13 -0
  891. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspan.d.ts.map +1 -0
  892. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspan.js +17 -0
  893. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspan.js.map +1 -0
  894. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspanevaluation.d.ts +13 -0
  895. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspanevaluation.d.ts.map +1 -0
  896. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspanevaluation.js +17 -0
  897. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgetspanevaluation.js.map +1 -0
  898. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgettrace.d.ts +13 -0
  899. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgettrace.d.ts.map +1 -0
  900. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgettrace.js +17 -0
  901. package/node_modules/@mistralai/mistralai/esm/models/components/feedresultgettrace.js.map +1 -0
  902. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionrequest.d.ts +2 -0
  903. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionrequest.d.ts.map +1 -1
  904. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionrequest.js +2 -0
  905. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionrequest.js.map +1 -1
  906. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionstreamrequest.d.ts +2 -0
  907. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionstreamrequest.d.ts.map +1 -1
  908. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionstreamrequest.js +2 -0
  909. package/node_modules/@mistralai/mistralai/esm/models/components/fimcompletionstreamrequest.js.map +1 -1
  910. package/node_modules/@mistralai/mistralai/esm/models/components/getlog.d.ts +35 -0
  911. package/node_modules/@mistralai/mistralai/esm/models/components/getlog.d.ts.map +1 -0
  912. package/node_modules/@mistralai/mistralai/esm/models/components/getlog.js +55 -0
  913. package/node_modules/@mistralai/mistralai/esm/models/components/getlog.js.map +1 -0
  914. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfieldoptions.d.ts +10 -0
  915. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfieldoptions.d.ts.map +1 -0
  916. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfieldoptions.js +14 -0
  917. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfieldoptions.js.map +1 -0
  918. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfields.d.ts +11 -0
  919. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfields.d.ts.map +1 -0
  920. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfields.js +21 -0
  921. package/node_modules/@mistralai/mistralai/esm/models/components/getlogfields.js.map +1 -0
  922. package/node_modules/@mistralai/mistralai/esm/models/components/getlogs.d.ts +11 -0
  923. package/node_modules/@mistralai/mistralai/esm/models/components/getlogs.d.ts.map +1 -0
  924. package/node_modules/@mistralai/mistralai/esm/models/components/getlogs.js +15 -0
  925. package/node_modules/@mistralai/mistralai/esm/models/components/getlogs.js.map +1 -0
  926. package/node_modules/@mistralai/mistralai/esm/models/components/getspan.d.ts +81 -0
  927. package/node_modules/@mistralai/mistralai/esm/models/components/getspan.d.ts.map +1 -0
  928. package/node_modules/@mistralai/mistralai/esm/models/components/getspan.js +143 -0
  929. package/node_modules/@mistralai/mistralai/esm/models/components/getspan.js.map +1 -0
  930. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluation.d.ts +25 -0
  931. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluation.d.ts.map +1 -0
  932. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluation.js +42 -0
  933. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluation.js.map +1 -0
  934. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfieldoptions.d.ts +10 -0
  935. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfieldoptions.d.ts.map +1 -0
  936. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfieldoptions.js +14 -0
  937. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfieldoptions.js.map +1 -0
  938. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfields.d.ts +11 -0
  939. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfields.d.ts.map +1 -0
  940. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfields.js +20 -0
  941. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluationfields.js.map +1 -0
  942. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluations.d.ts +11 -0
  943. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluations.d.ts.map +1 -0
  944. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluations.js +20 -0
  945. package/node_modules/@mistralai/mistralai/esm/models/components/getspanevaluations.js.map +1 -0
  946. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfieldoptions.d.ts +10 -0
  947. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfieldoptions.d.ts.map +1 -0
  948. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfieldoptions.js +14 -0
  949. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfieldoptions.js.map +1 -0
  950. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfields.d.ts +11 -0
  951. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfields.d.ts.map +1 -0
  952. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfields.js +21 -0
  953. package/node_modules/@mistralai/mistralai/esm/models/components/getspanfields.js.map +1 -0
  954. package/node_modules/@mistralai/mistralai/esm/models/components/getspans.d.ts +11 -0
  955. package/node_modules/@mistralai/mistralai/esm/models/components/getspans.d.ts.map +1 -0
  956. package/node_modules/@mistralai/mistralai/esm/models/components/getspans.js +15 -0
  957. package/node_modules/@mistralai/mistralai/esm/models/components/getspans.js.map +1 -0
  958. package/node_modules/@mistralai/mistralai/esm/models/components/gettrace.d.ts +51 -0
  959. package/node_modules/@mistralai/mistralai/esm/models/components/gettrace.d.ts.map +1 -0
  960. package/node_modules/@mistralai/mistralai/esm/models/components/gettrace.js +91 -0
  961. package/node_modules/@mistralai/mistralai/esm/models/components/gettrace.js.map +1 -0
  962. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefieldoptions.d.ts +10 -0
  963. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefieldoptions.d.ts.map +1 -0
  964. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefieldoptions.js +14 -0
  965. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefieldoptions.js.map +1 -0
  966. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefields.d.ts +11 -0
  967. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefields.d.ts.map +1 -0
  968. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefields.js +20 -0
  969. package/node_modules/@mistralai/mistralai/esm/models/components/gettracefields.js.map +1 -0
  970. package/node_modules/@mistralai/mistralai/esm/models/components/gettraces.d.ts +11 -0
  971. package/node_modules/@mistralai/mistralai/esm/models/components/gettraces.d.ts.map +1 -0
  972. package/node_modules/@mistralai/mistralai/esm/models/components/gettraces.js +15 -0
  973. package/node_modules/@mistralai/mistralai/esm/models/components/gettraces.js.map +1 -0
  974. package/node_modules/@mistralai/mistralai/esm/models/components/httpstatus.d.ts +112 -0
  975. package/node_modules/@mistralai/mistralai/esm/models/components/httpstatus.d.ts.map +1 -0
  976. package/node_modules/@mistralai/mistralai/esm/models/components/httpstatus.js +93 -0
  977. package/node_modules/@mistralai/mistralai/esm/models/components/httpstatus.js.map +1 -0
  978. package/node_modules/@mistralai/mistralai/esm/models/components/index.d.ts +93 -1
  979. package/node_modules/@mistralai/mistralai/esm/models/components/index.d.ts.map +1 -1
  980. package/node_modules/@mistralai/mistralai/esm/models/components/index.js +93 -1
  981. package/node_modules/@mistralai/mistralai/esm/models/components/index.js.map +1 -1
  982. package/node_modules/@mistralai/mistralai/esm/models/components/ingestionpipelineconfiguration.d.ts +7 -0
  983. package/node_modules/@mistralai/mistralai/esm/models/components/ingestionpipelineconfiguration.d.ts.map +1 -1
  984. package/node_modules/@mistralai/mistralai/esm/models/components/ingestionpipelineconfiguration.js +10 -0
  985. package/node_modules/@mistralai/mistralai/esm/models/components/ingestionpipelineconfiguration.js.map +1 -1
  986. package/node_modules/@mistralai/mistralai/esm/models/components/jobmetadata.d.ts +18 -0
  987. package/node_modules/@mistralai/mistralai/esm/models/components/jobmetadata.d.ts.map +1 -1
  988. package/node_modules/@mistralai/mistralai/esm/models/components/jobmetadata.js.map +1 -1
  989. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatch.d.ts +13 -0
  990. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatch.d.ts.map +1 -0
  991. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatch.js +21 -0
  992. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatch.js.map +1 -0
  993. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchappend.d.ts +10 -2
  994. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchappend.d.ts.map +1 -1
  995. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchappend.js +8 -1
  996. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchappend.js.map +1 -1
  997. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadresponse.d.ts +7 -11
  998. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadresponse.d.ts.map +1 -1
  999. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadresponse.js +10 -21
  1000. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadresponse.js.map +1 -1
  1001. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadvalueresponse.d.ts +9 -0
  1002. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadvalueresponse.d.ts.map +1 -0
  1003. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadvalueresponse.js +14 -0
  1004. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpatchpayloadvalueresponse.js.map +1 -0
  1005. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpayloadresponse.d.ts +8 -1
  1006. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpayloadresponse.d.ts.map +1 -1
  1007. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpayloadresponse.js +8 -0
  1008. package/node_modules/@mistralai/mistralai/esm/models/components/jsonpayloadresponse.js.map +1 -1
  1009. package/node_modules/@mistralai/mistralai/esm/models/components/library.d.ts +17 -0
  1010. package/node_modules/@mistralai/mistralai/esm/models/components/library.d.ts.map +1 -1
  1011. package/node_modules/@mistralai/mistralai/esm/models/components/library.js.map +1 -1
  1012. package/node_modules/@mistralai/mistralai/esm/models/components/logicalexpression.d.ts +39 -0
  1013. package/node_modules/@mistralai/mistralai/esm/models/components/logicalexpression.d.ts.map +1 -0
  1014. package/node_modules/@mistralai/mistralai/esm/models/components/logicalexpression.js +60 -0
  1015. package/node_modules/@mistralai/mistralai/esm/models/components/logicalexpression.js.map +1 -0
  1016. package/node_modules/@mistralai/mistralai/esm/models/components/logsrequest.d.ts +22 -0
  1017. package/node_modules/@mistralai/mistralai/esm/models/components/logsrequest.d.ts.map +1 -0
  1018. package/node_modules/@mistralai/mistralai/esm/models/components/logsrequest.js +25 -0
  1019. package/node_modules/@mistralai/mistralai/esm/models/components/logsrequest.js.map +1 -0
  1020. package/node_modules/@mistralai/mistralai/esm/models/components/mcpprompt.d.ts +20 -0
  1021. package/node_modules/@mistralai/mistralai/esm/models/components/mcpprompt.d.ts.map +1 -0
  1022. package/node_modules/@mistralai/mistralai/esm/models/components/mcpprompt.js +26 -0
  1023. package/node_modules/@mistralai/mistralai/esm/models/components/mcpprompt.js.map +1 -0
  1024. package/node_modules/@mistralai/mistralai/esm/models/components/mcpresource.d.ts +23 -0
  1025. package/node_modules/@mistralai/mistralai/esm/models/components/mcpresource.d.ts.map +1 -0
  1026. package/node_modules/@mistralai/mistralai/esm/models/components/mcpresource.js +30 -0
  1027. package/node_modules/@mistralai/mistralai/esm/models/components/mcpresource.js.map +1 -0
  1028. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverauthenticationrequirement.d.ts +20 -0
  1029. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverauthenticationrequirement.d.ts.map +1 -0
  1030. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverauthenticationrequirement.js +15 -0
  1031. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverauthenticationrequirement.js.map +1 -0
  1032. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercard.d.ts +58 -0
  1033. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercard.d.ts.map +1 -0
  1034. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercard.js +66 -0
  1035. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercard.js.map +1 -0
  1036. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardmeta.d.ts +19 -0
  1037. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardmeta.d.ts.map +1 -0
  1038. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardmeta.js +20 -0
  1039. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardmeta.js.map +1 -0
  1040. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardtool.d.ts +27 -0
  1041. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardtool.d.ts.map +1 -0
  1042. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardtool.js +31 -0
  1043. package/node_modules/@mistralai/mistralai/esm/models/components/mcpservercardtool.js.map +1 -0
  1044. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremote.d.ts +39 -0
  1045. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremote.d.ts.map +1 -0
  1046. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremote.js +31 -0
  1047. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremote.js.map +1 -0
  1048. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremoteheader.d.ts +24 -0
  1049. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremoteheader.d.ts.map +1 -0
  1050. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremoteheader.js +19 -0
  1051. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverremoteheader.js.map +1 -0
  1052. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverrepository.d.ts +21 -0
  1053. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverrepository.d.ts.map +1 -0
  1054. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverrepository.js +16 -0
  1055. package/node_modules/@mistralai/mistralai/esm/models/components/mcpserverrepository.js.map +1 -0
  1056. package/node_modules/@mistralai/mistralai/esm/models/components/observabilityerrorcode.d.ts +0 -1
  1057. package/node_modules/@mistralai/mistralai/esm/models/components/observabilityerrorcode.d.ts.map +1 -1
  1058. package/node_modules/@mistralai/mistralai/esm/models/components/observabilityerrorcode.js +0 -1
  1059. package/node_modules/@mistralai/mistralai/esm/models/components/observabilityerrorcode.js.map +1 -1
  1060. package/node_modules/@mistralai/mistralai/esm/models/components/ocrrequest.d.ts +0 -2
  1061. package/node_modules/@mistralai/mistralai/esm/models/components/ocrrequest.d.ts.map +1 -1
  1062. package/node_modules/@mistralai/mistralai/esm/models/components/ocrrequest.js +0 -1
  1063. package/node_modules/@mistralai/mistralai/esm/models/components/ocrrequest.js.map +1 -1
  1064. package/node_modules/@mistralai/mistralai/esm/models/components/otelfielddefinition.d.ts +57 -0
  1065. package/node_modules/@mistralai/mistralai/esm/models/components/otelfielddefinition.d.ts.map +1 -0
  1066. package/node_modules/@mistralai/mistralai/esm/models/components/otelfielddefinition.js +64 -0
  1067. package/node_modules/@mistralai/mistralai/esm/models/components/otelfielddefinition.js.map +1 -0
  1068. package/node_modules/@mistralai/mistralai/esm/models/components/outboundauthenticationtype.d.ts +15 -0
  1069. package/node_modules/@mistralai/mistralai/esm/models/components/outboundauthenticationtype.d.ts.map +1 -0
  1070. package/node_modules/@mistralai/mistralai/esm/models/components/outboundauthenticationtype.js +17 -0
  1071. package/node_modules/@mistralai/mistralai/esm/models/components/outboundauthenticationtype.js.map +1 -0
  1072. package/node_modules/@mistralai/mistralai/esm/models/components/partialscheduledefinition.d.ts +78 -0
  1073. package/node_modules/@mistralai/mistralai/esm/models/components/partialscheduledefinition.d.ts.map +1 -0
  1074. package/node_modules/@mistralai/mistralai/esm/models/components/partialscheduledefinition.js +35 -0
  1075. package/node_modules/@mistralai/mistralai/esm/models/components/partialscheduledefinition.js.map +1 -0
  1076. package/node_modules/@mistralai/mistralai/esm/models/components/processingstatus.d.ts +3 -0
  1077. package/node_modules/@mistralai/mistralai/esm/models/components/processingstatus.d.ts.map +1 -1
  1078. package/node_modules/@mistralai/mistralai/esm/models/components/processingstatus.js.map +1 -1
  1079. package/node_modules/@mistralai/mistralai/esm/models/components/promptargument.d.ts +16 -0
  1080. package/node_modules/@mistralai/mistralai/esm/models/components/promptargument.d.ts.map +1 -0
  1081. package/node_modules/@mistralai/mistralai/esm/models/components/promptargument.js +16 -0
  1082. package/node_modules/@mistralai/mistralai/esm/models/components/promptargument.js.map +1 -0
  1083. package/node_modules/@mistralai/mistralai/esm/models/components/promptscapability.d.ts +14 -0
  1084. package/node_modules/@mistralai/mistralai/esm/models/components/promptscapability.d.ts.map +1 -0
  1085. package/node_modules/@mistralai/mistralai/esm/models/components/promptscapability.js +14 -0
  1086. package/node_modules/@mistralai/mistralai/esm/models/components/promptscapability.js.map +1 -0
  1087. package/node_modules/@mistralai/mistralai/esm/models/components/prompttokensdetails.d.ts +1 -0
  1088. package/node_modules/@mistralai/mistralai/esm/models/components/prompttokensdetails.d.ts.map +1 -1
  1089. package/node_modules/@mistralai/mistralai/esm/models/components/prompttokensdetails.js +2 -0
  1090. package/node_modules/@mistralai/mistralai/esm/models/components/prompttokensdetails.js.map +1 -1
  1091. package/node_modules/@mistralai/mistralai/esm/models/components/publicauthenticationmethod.d.ts +3 -2
  1092. package/node_modules/@mistralai/mistralai/esm/models/components/publicauthenticationmethod.d.ts.map +1 -1
  1093. package/node_modules/@mistralai/mistralai/esm/models/components/publicauthenticationmethod.js +4 -2
  1094. package/node_modules/@mistralai/mistralai/esm/models/components/publicauthenticationmethod.js.map +1 -1
  1095. package/node_modules/@mistralai/mistralai/esm/models/components/publicconnectionconfig.d.ts +16 -0
  1096. package/node_modules/@mistralai/mistralai/esm/models/components/publicconnectionconfig.d.ts.map +1 -0
  1097. package/node_modules/@mistralai/mistralai/esm/models/components/publicconnectionconfig.js +23 -0
  1098. package/node_modules/@mistralai/mistralai/esm/models/components/publicconnectionconfig.js.map +1 -0
  1099. package/node_modules/@mistralai/mistralai/esm/models/components/reasoningeffort.d.ts +4 -0
  1100. package/node_modules/@mistralai/mistralai/esm/models/components/reasoningeffort.d.ts.map +1 -1
  1101. package/node_modules/@mistralai/mistralai/esm/models/components/reasoningeffort.js +4 -0
  1102. package/node_modules/@mistralai/mistralai/esm/models/components/reasoningeffort.js.map +1 -1
  1103. package/node_modules/@mistralai/mistralai/esm/models/components/referencechunk.d.ts +4 -4
  1104. package/node_modules/@mistralai/mistralai/esm/models/components/referencechunk.js +4 -4
  1105. package/node_modules/@mistralai/mistralai/esm/models/components/referencechunk.js.map +1 -1
  1106. package/node_modules/@mistralai/mistralai/esm/models/components/resourcescapability.d.ts +15 -0
  1107. package/node_modules/@mistralai/mistralai/esm/models/components/resourcescapability.d.ts.map +1 -0
  1108. package/node_modules/@mistralai/mistralai/esm/models/components/resourcescapability.js +15 -0
  1109. package/node_modules/@mistralai/mistralai/esm/models/components/resourcescapability.js.map +1 -0
  1110. package/node_modules/@mistralai/mistralai/esm/models/components/resourcetype.d.ts +12 -0
  1111. package/node_modules/@mistralai/mistralai/esm/models/components/resourcetype.d.ts.map +1 -0
  1112. package/node_modules/@mistralai/mistralai/esm/models/components/resourcetype.js +14 -0
  1113. package/node_modules/@mistralai/mistralai/esm/models/components/resourcetype.js.map +1 -0
  1114. package/node_modules/@mistralai/mistralai/esm/models/components/rootscapability.d.ts +14 -0
  1115. package/node_modules/@mistralai/mistralai/esm/models/components/rootscapability.d.ts.map +1 -0
  1116. package/node_modules/@mistralai/mistralai/esm/models/components/rootscapability.js +14 -0
  1117. package/node_modules/@mistralai/mistralai/esm/models/components/rootscapability.js.map +1 -0
  1118. package/node_modules/@mistralai/mistralai/esm/models/components/samplingcapability.d.ts +19 -0
  1119. package/node_modules/@mistralai/mistralai/esm/models/components/samplingcapability.d.ts.map +1 -0
  1120. package/node_modules/@mistralai/mistralai/esm/models/components/samplingcapability.js +15 -0
  1121. package/node_modules/@mistralai/mistralai/esm/models/components/samplingcapability.js.map +1 -0
  1122. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinition.d.ts +5 -0
  1123. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinition.d.ts.map +1 -1
  1124. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinition.js +2 -0
  1125. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinition.js.map +1 -1
  1126. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinitionoutput.d.ts +26 -0
  1127. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinitionoutput.d.ts.map +1 -1
  1128. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinitionoutput.js +12 -0
  1129. package/node_modules/@mistralai/mistralai/esm/models/components/scheduledefinitionoutput.js.map +1 -1
  1130. package/node_modules/@mistralai/mistralai/esm/models/components/schedulefutureexecution.d.ts +13 -0
  1131. package/node_modules/@mistralai/mistralai/esm/models/components/schedulefutureexecution.d.ts.map +1 -0
  1132. package/node_modules/@mistralai/mistralai/esm/models/components/schedulefutureexecution.js +19 -0
  1133. package/node_modules/@mistralai/mistralai/esm/models/components/schedulefutureexecution.js.map +1 -0
  1134. package/node_modules/@mistralai/mistralai/esm/models/components/schedulerecentexecution.d.ts +21 -0
  1135. package/node_modules/@mistralai/mistralai/esm/models/components/schedulerecentexecution.d.ts.map +1 -0
  1136. package/node_modules/@mistralai/mistralai/esm/models/components/schedulerecentexecution.js +23 -0
  1137. package/node_modules/@mistralai/mistralai/esm/models/components/schedulerecentexecution.js.map +1 -0
  1138. package/node_modules/@mistralai/mistralai/esm/models/components/searchindexresponse.d.ts +30 -0
  1139. package/node_modules/@mistralai/mistralai/esm/models/components/searchindexresponse.d.ts.map +1 -0
  1140. package/node_modules/@mistralai/mistralai/esm/models/components/searchindexresponse.js +42 -0
  1141. package/node_modules/@mistralai/mistralai/esm/models/components/searchindexresponse.js.map +1 -0
  1142. package/node_modules/@mistralai/mistralai/esm/models/components/servercapabilities.d.ts +32 -0
  1143. package/node_modules/@mistralai/mistralai/esm/models/components/servercapabilities.d.ts.map +1 -0
  1144. package/node_modules/@mistralai/mistralai/esm/models/components/servercapabilities.js +25 -0
  1145. package/node_modules/@mistralai/mistralai/esm/models/components/servercapabilities.js.map +1 -0
  1146. package/node_modules/@mistralai/mistralai/esm/models/components/serverlocale.d.ts +24 -0
  1147. package/node_modules/@mistralai/mistralai/esm/models/components/serverlocale.d.ts.map +1 -0
  1148. package/node_modules/@mistralai/mistralai/esm/models/components/serverlocale.js +27 -0
  1149. package/node_modules/@mistralai/mistralai/esm/models/components/serverlocale.js.map +1 -0
  1150. package/node_modules/@mistralai/mistralai/esm/models/components/servertaskscapability.d.ts +21 -0
  1151. package/node_modules/@mistralai/mistralai/esm/models/components/servertaskscapability.d.ts.map +1 -0
  1152. package/node_modules/@mistralai/mistralai/esm/models/components/servertaskscapability.js +17 -0
  1153. package/node_modules/@mistralai/mistralai/esm/models/components/servertaskscapability.js.map +1 -0
  1154. package/node_modules/@mistralai/mistralai/esm/models/components/servertasksrequestscapability.d.ts +15 -0
  1155. package/node_modules/@mistralai/mistralai/esm/models/components/servertasksrequestscapability.d.ts.map +1 -0
  1156. package/node_modules/@mistralai/mistralai/esm/models/components/servertasksrequestscapability.js +15 -0
  1157. package/node_modules/@mistralai/mistralai/esm/models/components/servertasksrequestscapability.js.map +1 -0
  1158. package/node_modules/@mistralai/mistralai/esm/models/components/sharing.d.ts +6 -0
  1159. package/node_modules/@mistralai/mistralai/esm/models/components/sharing.d.ts.map +1 -1
  1160. package/node_modules/@mistralai/mistralai/esm/models/components/sharing.js.map +1 -1
  1161. package/node_modules/@mistralai/mistralai/esm/models/components/sharingdelete.d.ts +3 -0
  1162. package/node_modules/@mistralai/mistralai/esm/models/components/sharingdelete.d.ts.map +1 -1
  1163. package/node_modules/@mistralai/mistralai/esm/models/components/sharingdelete.js.map +1 -1
  1164. package/node_modules/@mistralai/mistralai/esm/models/components/sharingrequest.d.ts +3 -0
  1165. package/node_modules/@mistralai/mistralai/esm/models/components/sharingrequest.d.ts.map +1 -1
  1166. package/node_modules/@mistralai/mistralai/esm/models/components/sharingrequest.js.map +1 -1
  1167. package/node_modules/@mistralai/mistralai/esm/models/components/spanevaluationsrequest.d.ts +12 -0
  1168. package/node_modules/@mistralai/mistralai/esm/models/components/spanevaluationsrequest.d.ts.map +1 -0
  1169. package/node_modules/@mistralai/mistralai/esm/models/components/spanevaluationsrequest.js +18 -0
  1170. package/node_modules/@mistralai/mistralai/esm/models/components/spanevaluationsrequest.js.map +1 -0
  1171. package/node_modules/@mistralai/mistralai/esm/models/components/spansrequest.d.ts +12 -0
  1172. package/node_modules/@mistralai/mistralai/esm/models/components/spansrequest.d.ts.map +1 -0
  1173. package/node_modules/@mistralai/mistralai/esm/models/components/spansrequest.js +18 -0
  1174. package/node_modules/@mistralai/mistralai/esm/models/components/spansrequest.js.map +1 -0
  1175. package/node_modules/@mistralai/mistralai/esm/models/components/streamerror.d.ts +10 -0
  1176. package/node_modules/@mistralai/mistralai/esm/models/components/streamerror.d.ts.map +1 -0
  1177. package/node_modules/@mistralai/mistralai/esm/models/components/streamerror.js +15 -0
  1178. package/node_modules/@mistralai/mistralai/esm/models/components/streamerror.js.map +1 -0
  1179. package/node_modules/@mistralai/mistralai/esm/models/components/taskselicitationcapability.d.ts +16 -0
  1180. package/node_modules/@mistralai/mistralai/esm/models/components/taskselicitationcapability.d.ts.map +1 -0
  1181. package/node_modules/@mistralai/mistralai/esm/models/components/taskselicitationcapability.js +14 -0
  1182. package/node_modules/@mistralai/mistralai/esm/models/components/taskselicitationcapability.js.map +1 -0
  1183. package/node_modules/@mistralai/mistralai/esm/models/components/taskssamplingcapability.d.ts +16 -0
  1184. package/node_modules/@mistralai/mistralai/esm/models/components/taskssamplingcapability.d.ts.map +1 -0
  1185. package/node_modules/@mistralai/mistralai/esm/models/components/taskssamplingcapability.js +14 -0
  1186. package/node_modules/@mistralai/mistralai/esm/models/components/taskssamplingcapability.js.map +1 -0
  1187. package/node_modules/@mistralai/mistralai/esm/models/components/taskstoolscapability.d.ts +16 -0
  1188. package/node_modules/@mistralai/mistralai/esm/models/components/taskstoolscapability.d.ts.map +1 -0
  1189. package/node_modules/@mistralai/mistralai/esm/models/components/taskstoolscapability.js +14 -0
  1190. package/node_modules/@mistralai/mistralai/esm/models/components/taskstoolscapability.js.map +1 -0
  1191. package/node_modules/@mistralai/mistralai/esm/models/components/toolexecutionconfiguration.d.ts +43 -0
  1192. package/node_modules/@mistralai/mistralai/esm/models/components/toolexecutionconfiguration.d.ts.map +1 -0
  1193. package/node_modules/@mistralai/mistralai/esm/models/components/toolexecutionconfiguration.js +93 -0
  1194. package/node_modules/@mistralai/mistralai/esm/models/components/toolexecutionconfiguration.js.map +1 -0
  1195. package/node_modules/@mistralai/mistralai/esm/models/components/toolproperties.d.ts +17 -0
  1196. package/node_modules/@mistralai/mistralai/esm/models/components/toolproperties.d.ts.map +1 -0
  1197. package/node_modules/@mistralai/mistralai/esm/models/components/toolproperties.js +30 -0
  1198. package/node_modules/@mistralai/mistralai/esm/models/components/toolproperties.js.map +1 -0
  1199. package/node_modules/@mistralai/mistralai/esm/models/components/toolscapability.d.ts +14 -0
  1200. package/node_modules/@mistralai/mistralai/esm/models/components/toolscapability.d.ts.map +1 -0
  1201. package/node_modules/@mistralai/mistralai/esm/models/components/toolscapability.js +14 -0
  1202. package/node_modules/@mistralai/mistralai/esm/models/components/toolscapability.js.map +1 -0
  1203. package/node_modules/@mistralai/mistralai/esm/models/components/tracesrequest.d.ts +12 -0
  1204. package/node_modules/@mistralai/mistralai/esm/models/components/tracesrequest.d.ts.map +1 -0
  1205. package/node_modules/@mistralai/mistralai/esm/models/components/tracesrequest.js +18 -0
  1206. package/node_modules/@mistralai/mistralai/esm/models/components/tracesrequest.js.map +1 -0
  1207. package/node_modules/@mistralai/mistralai/esm/models/components/turbinemeta.d.ts +12 -0
  1208. package/node_modules/@mistralai/mistralai/esm/models/components/turbinemeta.d.ts.map +1 -0
  1209. package/node_modules/@mistralai/mistralai/esm/models/components/turbinemeta.js +22 -0
  1210. package/node_modules/@mistralai/mistralai/esm/models/components/turbinemeta.js.map +1 -0
  1211. package/node_modules/@mistralai/mistralai/esm/models/components/updateconnectorrequest.d.ts +7 -0
  1212. package/node_modules/@mistralai/mistralai/esm/models/components/updateconnectorrequest.d.ts.map +1 -1
  1213. package/node_modules/@mistralai/mistralai/esm/models/components/updateconnectorrequest.js +2 -0
  1214. package/node_modules/@mistralai/mistralai/esm/models/components/updateconnectorrequest.js.map +1 -1
  1215. package/node_modules/@mistralai/mistralai/esm/models/components/updatedocumentrequest.d.ts +7 -2
  1216. package/node_modules/@mistralai/mistralai/esm/models/components/updatedocumentrequest.d.ts.map +1 -1
  1217. package/node_modules/@mistralai/mistralai/esm/models/components/updatedocumentrequest.js +7 -1
  1218. package/node_modules/@mistralai/mistralai/esm/models/components/updatedocumentrequest.js.map +1 -1
  1219. package/node_modules/@mistralai/mistralai/esm/models/components/updatelibraryrequest.d.ts +2 -2
  1220. package/node_modules/@mistralai/mistralai/esm/models/components/updatelibraryrequest.d.ts.map +1 -1
  1221. package/node_modules/@mistralai/mistralai/esm/models/components/updatelibraryrequest.js +1 -1
  1222. package/node_modules/@mistralai/mistralai/esm/models/components/updatelibraryrequest.js.map +1 -1
  1223. package/node_modules/@mistralai/mistralai/esm/models/components/updateruninfo.d.ts +14 -0
  1224. package/node_modules/@mistralai/mistralai/esm/models/components/updateruninfo.d.ts.map +1 -0
  1225. package/node_modules/@mistralai/mistralai/esm/models/components/updateruninfo.js +20 -0
  1226. package/node_modules/@mistralai/mistralai/esm/models/components/updateruninfo.js.map +1 -0
  1227. package/node_modules/@mistralai/mistralai/esm/models/components/usageinfodollardefs.d.ts +2 -0
  1228. package/node_modules/@mistralai/mistralai/esm/models/components/usageinfodollardefs.d.ts.map +1 -1
  1229. package/node_modules/@mistralai/mistralai/esm/models/components/usageinfodollardefs.js +4 -0
  1230. package/node_modules/@mistralai/mistralai/esm/models/components/usageinfodollardefs.js.map +1 -1
  1231. package/node_modules/@mistralai/mistralai/esm/models/components/vespaschemaresponse.d.ts +11 -0
  1232. package/node_modules/@mistralai/mistralai/esm/models/components/vespaschemaresponse.d.ts.map +1 -0
  1233. package/node_modules/@mistralai/mistralai/esm/models/components/vespaschemaresponse.js +20 -0
  1234. package/node_modules/@mistralai/mistralai/esm/models/components/vespaschemaresponse.js.map +1 -0
  1235. package/node_modules/@mistralai/mistralai/esm/models/components/vespasearchindexinforesponse.d.ts +15 -0
  1236. package/node_modules/@mistralai/mistralai/esm/models/components/vespasearchindexinforesponse.d.ts.map +1 -0
  1237. package/node_modules/@mistralai/mistralai/esm/models/components/vespasearchindexinforesponse.js +26 -0
  1238. package/node_modules/@mistralai/mistralai/esm/models/components/vespasearchindexinforesponse.js.map +1 -0
  1239. package/node_modules/@mistralai/mistralai/esm/models/components/voicecreaterequest.d.ts +2 -0
  1240. package/node_modules/@mistralai/mistralai/esm/models/components/voicecreaterequest.d.ts.map +1 -1
  1241. package/node_modules/@mistralai/mistralai/esm/models/components/voicecreaterequest.js +1 -0
  1242. package/node_modules/@mistralai/mistralai/esm/models/components/voicecreaterequest.js.map +1 -1
  1243. package/node_modules/@mistralai/mistralai/esm/models/components/voiceresponse.d.ts +2 -0
  1244. package/node_modules/@mistralai/mistralai/esm/models/components/voiceresponse.d.ts.map +1 -1
  1245. package/node_modules/@mistralai/mistralai/esm/models/components/voiceresponse.js +3 -0
  1246. package/node_modules/@mistralai/mistralai/esm/models/components/voiceresponse.js.map +1 -1
  1247. package/node_modules/@mistralai/mistralai/esm/models/components/voiceupdaterequest.d.ts +2 -0
  1248. package/node_modules/@mistralai/mistralai/esm/models/components/voiceupdaterequest.d.ts.map +1 -1
  1249. package/node_modules/@mistralai/mistralai/esm/models/components/voiceupdaterequest.js +1 -0
  1250. package/node_modules/@mistralai/mistralai/esm/models/components/voiceupdaterequest.js.map +1 -1
  1251. package/node_modules/@mistralai/mistralai/esm/models/components/workflow.d.ts +4 -4
  1252. package/node_modules/@mistralai/mistralai/esm/models/components/workflow.d.ts.map +1 -1
  1253. package/node_modules/@mistralai/mistralai/esm/models/components/workflow.js +1 -2
  1254. package/node_modules/@mistralai/mistralai/esm/models/components/workflow.js.map +1 -1
  1255. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbasicdefinition.d.ts +4 -0
  1256. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbasicdefinition.d.ts.map +1 -1
  1257. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbasicdefinition.js +1 -0
  1258. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbasicdefinition.js.map +1 -1
  1259. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiverequest.d.ts +15 -0
  1260. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiverequest.d.ts.map +1 -0
  1261. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiverequest.js +18 -0
  1262. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiverequest.js.map +1 -0
  1263. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiveresponse.d.ts +19 -0
  1264. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiveresponse.d.ts.map +1 -0
  1265. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiveresponse.js +17 -0
  1266. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkarchiveresponse.js.map +1 -0
  1267. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkerror.d.ts +22 -0
  1268. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkerror.d.ts.map +1 -0
  1269. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkerror.js +22 -0
  1270. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkerror.js.map +1 -0
  1271. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiverequest.d.ts +15 -0
  1272. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiverequest.d.ts.map +1 -0
  1273. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiverequest.js +18 -0
  1274. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiverequest.js.map +1 -0
  1275. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiveresponse.d.ts +19 -0
  1276. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiveresponse.d.ts.map +1 -0
  1277. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiveresponse.js +17 -0
  1278. package/node_modules/@mistralai/mistralai/esm/models/components/workflowbulkunarchiveresponse.js.map +1 -0
  1279. package/node_modules/@mistralai/mistralai/esm/models/components/workflowcodedefinition.d.ts +4 -0
  1280. package/node_modules/@mistralai/mistralai/esm/models/components/workflowcodedefinition.d.ts.map +1 -1
  1281. package/node_modules/@mistralai/mistralai/esm/models/components/workflowcodedefinition.js +2 -0
  1282. package/node_modules/@mistralai/mistralai/esm/models/components/workflowcodedefinition.js.map +1 -1
  1283. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts +2 -0
  1284. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts.map +1 -1
  1285. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncompletedattributesresponse.js.map +1 -1
  1286. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.d.ts +2 -0
  1287. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.d.ts.map +1 -1
  1288. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.js.map +1 -1
  1289. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionrequest.d.ts +0 -6
  1290. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionrequest.d.ts.map +1 -1
  1291. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionrequest.js +0 -3
  1292. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionrequest.js.map +1 -1
  1293. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionstartedattributesresponse.d.ts +2 -0
  1294. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionstartedattributesresponse.d.ts.map +1 -1
  1295. package/node_modules/@mistralai/mistralai/esm/models/components/workflowexecutionstartedattributesresponse.js.map +1 -1
  1296. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulelistresponse.d.ts +4 -0
  1297. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulelistresponse.d.ts.map +1 -1
  1298. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulelistresponse.js +6 -0
  1299. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulelistresponse.js.map +1 -1
  1300. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulepauserequest.d.ts +15 -0
  1301. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulepauserequest.d.ts.map +1 -0
  1302. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulepauserequest.js +13 -0
  1303. package/node_modules/@mistralai/mistralai/esm/models/components/workflowschedulepauserequest.js.map +1 -0
  1304. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduletriggerrequest.d.ts +16 -0
  1305. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduletriggerrequest.d.ts.map +1 -0
  1306. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduletriggerrequest.js +14 -0
  1307. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduletriggerrequest.js.map +1 -0
  1308. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduleupdaterequest.d.ts +21 -0
  1309. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduleupdaterequest.d.ts.map +1 -0
  1310. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduleupdaterequest.js +14 -0
  1311. package/node_modules/@mistralai/mistralai/esm/models/components/workflowscheduleupdaterequest.js.map +1 -0
  1312. package/node_modules/@mistralai/mistralai/esm/models/components/workflowupdaterequest.d.ts +5 -0
  1313. package/node_modules/@mistralai/mistralai/esm/models/components/workflowupdaterequest.d.ts.map +1 -1
  1314. package/node_modules/@mistralai/mistralai/esm/models/components/workflowupdaterequest.js +1 -0
  1315. package/node_modules/@mistralai/mistralai/esm/models/components/workflowupdaterequest.js.map +1 -1
  1316. package/node_modules/@mistralai/mistralai/esm/models/components/workflowwithworkerstatus.d.ts +4 -4
  1317. package/node_modules/@mistralai/mistralai/esm/models/components/workflowwithworkerstatus.d.ts.map +1 -1
  1318. package/node_modules/@mistralai/mistralai/esm/models/components/workflowwithworkerstatus.js +1 -2
  1319. package/node_modules/@mistralai/mistralai/esm/models/components/workflowwithworkerstatus.js.map +1 -1
  1320. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivatefororganizationv1.d.ts +15 -0
  1321. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivatefororganizationv1.d.ts.map +1 -0
  1322. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivatefororganizationv1.js +21 -0
  1323. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivatefororganizationv1.js.map +1 -0
  1324. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforuserv1.d.ts +15 -0
  1325. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforuserv1.d.ts.map +1 -0
  1326. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforuserv1.js +21 -0
  1327. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforuserv1.js.map +1 -0
  1328. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforworkspacev1.d.ts +15 -0
  1329. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforworkspacev1.d.ts.map +1 -0
  1330. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforworkspacev1.js +21 -0
  1331. package/node_modules/@mistralai/mistralai/esm/models/operations/connectoractivateforworkspacev1.js.map +1 -0
  1332. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivatefororganizationv1.d.ts +12 -0
  1333. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivatefororganizationv1.d.ts.map +1 -0
  1334. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivatefororganizationv1.js +18 -0
  1335. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivatefororganizationv1.js.map +1 -0
  1336. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforuserv1.d.ts +12 -0
  1337. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforuserv1.d.ts.map +1 -0
  1338. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforuserv1.js +18 -0
  1339. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforuserv1.js.map +1 -0
  1340. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforworkspacev1.d.ts +12 -0
  1341. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforworkspacev1.d.ts.map +1 -0
  1342. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforworkspacev1.js +18 -0
  1343. package/node_modules/@mistralai/mistralai/esm/models/operations/connectordeactivateforworkspacev1.js.map +1 -0
  1344. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetauthurlv1.d.ts +11 -0
  1345. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetauthurlv1.d.ts.map +1 -1
  1346. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetauthurlv1.js +5 -0
  1347. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetauthurlv1.js.map +1 -1
  1348. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetv1.d.ts +5 -5
  1349. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetv1.d.ts.map +1 -1
  1350. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetv1.js +2 -2
  1351. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorgetv1.js.map +1 -1
  1352. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistorganizationcredentialsv1.d.ts +1 -1
  1353. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistorganizationcredentialsv1.d.ts.map +1 -1
  1354. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistorganizationcredentialsv1.js +1 -1
  1355. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistorganizationcredentialsv1.js.map +1 -1
  1356. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistusercredentialsv1.d.ts +1 -1
  1357. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistusercredentialsv1.d.ts.map +1 -1
  1358. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistusercredentialsv1.js +2 -1
  1359. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistusercredentialsv1.js.map +1 -1
  1360. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistworkspacecredentialsv1.d.ts +1 -1
  1361. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistworkspacecredentialsv1.d.ts.map +1 -1
  1362. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistworkspacecredentialsv1.js +1 -1
  1363. package/node_modules/@mistralai/mistralai/esm/models/operations/connectorlistworkspacecredentialsv1.js.map +1 -1
  1364. package/node_modules/@mistralai/mistralai/esm/models/operations/getlogfieldoptionsv1observabilitylogsfieldsfieldnameoptionsget.d.ts +16 -0
  1365. package/node_modules/@mistralai/mistralai/esm/models/operations/getlogfieldoptionsv1observabilitylogsfieldsfieldnameoptionsget.d.ts.map +1 -0
  1366. package/node_modules/@mistralai/mistralai/esm/models/operations/getlogfieldoptionsv1observabilitylogsfieldsfieldnameoptionsget.js +21 -0
  1367. package/node_modules/@mistralai/mistralai/esm/models/operations/getlogfieldoptionsv1observabilitylogsfieldsfieldnameoptionsget.js.map +1 -0
  1368. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulesv1workflowsschedulesget.d.ts +58 -0
  1369. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulesv1workflowsschedulesget.d.ts.map +1 -0
  1370. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulesv1workflowsschedulesget.js +48 -0
  1371. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulesv1workflowsschedulesget.js.map +1 -0
  1372. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.d.ts +12 -0
  1373. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.d.ts.map +1 -0
  1374. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.js +18 -0
  1375. package/node_modules/@mistralai/mistralai/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.js.map +1 -0
  1376. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanbyidv1observabilitytracestraceidspansspanidget.d.ts +18 -0
  1377. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanbyidv1observabilitytracestraceidspansspanidget.d.ts.map +1 -0
  1378. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanbyidv1observabilitytracestraceidspansspanidget.js +23 -0
  1379. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanbyidv1observabilitytracestraceidspansspanidget.js.map +1 -0
  1380. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanevaluationfieldoptionsv1observabilityspansevaluationsfieldsfieldnameoptionsget.d.ts +16 -0
  1381. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanevaluationfieldoptionsv1observabilityspansevaluationsfieldsfieldnameoptionsget.d.ts.map +1 -0
  1382. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanevaluationfieldoptionsv1observabilityspansevaluationsfieldsfieldnameoptionsget.js +21 -0
  1383. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanevaluationfieldoptionsv1observabilityspansevaluationsfieldsfieldnameoptionsget.js.map +1 -0
  1384. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.d.ts +16 -0
  1385. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.d.ts.map +1 -0
  1386. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.js +21 -0
  1387. package/node_modules/@mistralai/mistralai/esm/models/operations/getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.js.map +1 -0
  1388. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracebyidv1observabilitytracestraceidget.d.ts +12 -0
  1389. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracebyidv1observabilitytracestraceidget.d.ts.map +1 -0
  1390. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracebyidv1observabilitytracestraceidget.js +18 -0
  1391. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracebyidv1observabilitytracestraceidget.js.map +1 -0
  1392. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracefieldoptionsv1observabilitytracesfieldsfieldnameoptionsget.d.ts +16 -0
  1393. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracefieldoptionsv1observabilitytracesfieldsfieldnameoptionsget.d.ts.map +1 -0
  1394. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracefieldoptionsv1observabilitytracesfieldsfieldnameoptionsget.js +21 -0
  1395. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracefieldoptionsv1observabilitytracesfieldsfieldnameoptionsget.js.map +1 -0
  1396. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracespansv1observabilitytracestraceidspansget.d.ts +20 -0
  1397. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracespansv1observabilitytracestraceidspansget.d.ts.map +1 -0
  1398. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracespansv1observabilitytracestraceidspansget.js +24 -0
  1399. package/node_modules/@mistralai/mistralai/esm/models/operations/gettracespansv1observabilitytracestraceidspansget.js.map +1 -0
  1400. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowexecutionlogs.d.ts +61 -0
  1401. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowexecutionlogs.d.ts.map +1 -0
  1402. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowexecutionlogs.js +36 -0
  1403. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowexecutionlogs.js.map +1 -0
  1404. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowsv1workflowsget.d.ts +71 -3
  1405. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowsv1workflowsget.d.ts.map +1 -1
  1406. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowsv1workflowsget.js +41 -2
  1407. package/node_modules/@mistralai/mistralai/esm/models/operations/getworkflowsv1workflowsget.js.map +1 -1
  1408. package/node_modules/@mistralai/mistralai/esm/models/operations/index.d.ts +29 -0
  1409. package/node_modules/@mistralai/mistralai/esm/models/operations/index.d.ts.map +1 -1
  1410. package/node_modules/@mistralai/mistralai/esm/models/operations/index.js +29 -0
  1411. package/node_modules/@mistralai/mistralai/esm/models/operations/index.js.map +1 -1
  1412. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentslistv1.d.ts +5 -0
  1413. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentslistv1.d.ts.map +1 -1
  1414. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentslistv1.js.map +1 -1
  1415. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentspatchv1.d.ts +17 -0
  1416. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentspatchv1.d.ts.map +1 -0
  1417. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentspatchv1.js +23 -0
  1418. package/node_modules/@mistralai/mistralai/esm/models/operations/librariesdocumentspatchv1.js.map +1 -0
  1419. package/node_modules/@mistralai/mistralai/esm/models/operations/librarieslistv1.d.ts +3 -1
  1420. package/node_modules/@mistralai/mistralai/esm/models/operations/librarieslistv1.d.ts.map +1 -1
  1421. package/node_modules/@mistralai/mistralai/esm/models/operations/librarieslistv1.js.map +1 -1
  1422. package/node_modules/@mistralai/mistralai/esm/models/operations/librariespatchv1.d.ts +15 -0
  1423. package/node_modules/@mistralai/mistralai/esm/models/operations/librariespatchv1.d.ts.map +1 -0
  1424. package/node_modules/@mistralai/mistralai/esm/models/operations/librariespatchv1.js +21 -0
  1425. package/node_modules/@mistralai/mistralai/esm/models/operations/librariespatchv1.js.map +1 -0
  1426. package/node_modules/@mistralai/mistralai/esm/models/operations/listdeploymentsv1workflowsdeploymentsget.d.ts +25 -0
  1427. package/node_modules/@mistralai/mistralai/esm/models/operations/listdeploymentsv1workflowsdeploymentsget.d.ts.map +1 -1
  1428. package/node_modules/@mistralai/mistralai/esm/models/operations/listdeploymentsv1workflowsdeploymentsget.js +7 -0
  1429. package/node_modules/@mistralai/mistralai/esm/models/operations/listdeploymentsv1workflowsdeploymentsget.js.map +1 -1
  1430. package/node_modules/@mistralai/mistralai/esm/models/operations/listrunsv1workflowsrunsget.d.ts +63 -1
  1431. package/node_modules/@mistralai/mistralai/esm/models/operations/listrunsv1workflowsrunsget.d.ts.map +1 -1
  1432. package/node_modules/@mistralai/mistralai/esm/models/operations/listrunsv1workflowsrunsget.js +34 -0
  1433. package/node_modules/@mistralai/mistralai/esm/models/operations/listrunsv1workflowsrunsget.js.map +1 -1
  1434. package/node_modules/@mistralai/mistralai/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.d.ts +15 -0
  1435. package/node_modules/@mistralai/mistralai/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.d.ts.map +1 -0
  1436. package/node_modules/@mistralai/mistralai/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.js +22 -0
  1437. package/node_modules/@mistralai/mistralai/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.js.map +1 -0
  1438. package/node_modules/@mistralai/mistralai/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.d.ts +15 -0
  1439. package/node_modules/@mistralai/mistralai/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.d.ts.map +1 -0
  1440. package/node_modules/@mistralai/mistralai/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.js +22 -0
  1441. package/node_modules/@mistralai/mistralai/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.js.map +1 -0
  1442. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpost.d.ts +21 -0
  1443. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpost.d.ts.map +1 -0
  1444. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpost.js +25 -0
  1445. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpost.js.map +1 -0
  1446. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlogsv1observabilitylogssearchpost.d.ts +21 -0
  1447. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlogsv1observabilitylogssearchpost.d.ts.map +1 -0
  1448. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlogsv1observabilitylogssearchpost.js +24 -0
  1449. package/node_modules/@mistralai/mistralai/esm/models/operations/searchlogsv1observabilitylogssearchpost.js.map +1 -0
  1450. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspanevaluationsv1observabilityspansevaluationssearchpost.d.ts +21 -0
  1451. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspanevaluationsv1observabilityspansevaluationssearchpost.d.ts.map +1 -0
  1452. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspanevaluationsv1observabilityspansevaluationssearchpost.js +25 -0
  1453. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspanevaluationsv1observabilityspansevaluationssearchpost.js.map +1 -0
  1454. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspansv1observabilityspanssearchpost.d.ts +21 -0
  1455. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspansv1observabilityspanssearchpost.d.ts.map +1 -0
  1456. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspansv1observabilityspanssearchpost.js +24 -0
  1457. package/node_modules/@mistralai/mistralai/esm/models/operations/searchspansv1observabilityspanssearchpost.js.map +1 -0
  1458. package/node_modules/@mistralai/mistralai/esm/models/operations/searchtracesv1observabilitytracessearchpost.d.ts +21 -0
  1459. package/node_modules/@mistralai/mistralai/esm/models/operations/searchtracesv1observabilitytracessearchpost.d.ts.map +1 -0
  1460. package/node_modules/@mistralai/mistralai/esm/models/operations/searchtracesv1observabilitytracessearchpost.js +24 -0
  1461. package/node_modules/@mistralai/mistralai/esm/models/operations/searchtracesv1observabilitytracessearchpost.js.map +1 -0
  1462. package/node_modules/@mistralai/mistralai/esm/models/operations/speechv1audiospeechpost.d.ts +3 -3
  1463. package/node_modules/@mistralai/mistralai/esm/models/operations/speechv1audiospeechpost.d.ts.map +1 -1
  1464. package/node_modules/@mistralai/mistralai/esm/models/operations/speechv1audiospeechpost.js +3 -3
  1465. package/node_modules/@mistralai/mistralai/esm/models/operations/speechv1audiospeechpost.js.map +1 -1
  1466. package/node_modules/@mistralai/mistralai/esm/models/operations/streamworkflowexecutionlogs.d.ts +58 -0
  1467. package/node_modules/@mistralai/mistralai/esm/models/operations/streamworkflowexecutionlogs.d.ts.map +1 -0
  1468. package/node_modules/@mistralai/mistralai/esm/models/operations/streamworkflowexecutionlogs.js +70 -0
  1469. package/node_modules/@mistralai/mistralai/esm/models/operations/streamworkflowexecutionlogs.js.map +1 -0
  1470. package/node_modules/@mistralai/mistralai/esm/models/operations/triggerschedulev1workflowsschedulesscheduleidtriggerpost.d.ts +15 -0
  1471. package/node_modules/@mistralai/mistralai/esm/models/operations/triggerschedulev1workflowsschedulesscheduleidtriggerpost.d.ts.map +1 -0
  1472. package/node_modules/@mistralai/mistralai/esm/models/operations/triggerschedulev1workflowsschedulesscheduleidtriggerpost.js +22 -0
  1473. package/node_modules/@mistralai/mistralai/esm/models/operations/triggerschedulev1workflowsschedulesscheduleidtriggerpost.js.map +1 -0
  1474. package/node_modules/@mistralai/mistralai/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.d.ts +15 -0
  1475. package/node_modules/@mistralai/mistralai/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.d.ts.map +1 -0
  1476. package/node_modules/@mistralai/mistralai/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.js +21 -0
  1477. package/node_modules/@mistralai/mistralai/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.js.map +1 -0
  1478. package/node_modules/@mistralai/mistralai/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.d.ts +15 -0
  1479. package/node_modules/@mistralai/mistralai/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.d.ts.map +1 -0
  1480. package/node_modules/@mistralai/mistralai/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.js +22 -0
  1481. package/node_modules/@mistralai/mistralai/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.js.map +1 -0
  1482. package/node_modules/@mistralai/mistralai/esm/sdk/accesses.d.ts +1 -1
  1483. package/node_modules/@mistralai/mistralai/esm/sdk/accesses.js +1 -1
  1484. package/node_modules/@mistralai/mistralai/esm/sdk/connectors.d.ts +42 -0
  1485. package/node_modules/@mistralai/mistralai/esm/sdk/connectors.d.ts.map +1 -1
  1486. package/node_modules/@mistralai/mistralai/esm/sdk/connectors.js +60 -0
  1487. package/node_modules/@mistralai/mistralai/esm/sdk/connectors.js.map +1 -1
  1488. package/node_modules/@mistralai/mistralai/esm/sdk/documents.d.ts +10 -1
  1489. package/node_modules/@mistralai/mistralai/esm/sdk/documents.d.ts.map +1 -1
  1490. package/node_modules/@mistralai/mistralai/esm/sdk/documents.js +13 -1
  1491. package/node_modules/@mistralai/mistralai/esm/sdk/documents.js.map +1 -1
  1492. package/node_modules/@mistralai/mistralai/esm/sdk/executions.d.ts +22 -0
  1493. package/node_modules/@mistralai/mistralai/esm/sdk/executions.d.ts.map +1 -1
  1494. package/node_modules/@mistralai/mistralai/esm/sdk/executions.js +28 -0
  1495. package/node_modules/@mistralai/mistralai/esm/sdk/executions.js.map +1 -1
  1496. package/node_modules/@mistralai/mistralai/esm/sdk/ingestionpipelineconfigurations.d.ts +12 -0
  1497. package/node_modules/@mistralai/mistralai/esm/sdk/ingestionpipelineconfigurations.d.ts.map +1 -1
  1498. package/node_modules/@mistralai/mistralai/esm/sdk/ingestionpipelineconfigurations.js +17 -0
  1499. package/node_modules/@mistralai/mistralai/esm/sdk/ingestionpipelineconfigurations.js.map +1 -1
  1500. package/node_modules/@mistralai/mistralai/esm/sdk/libraries.d.ts +11 -2
  1501. package/node_modules/@mistralai/mistralai/esm/sdk/libraries.d.ts.map +1 -1
  1502. package/node_modules/@mistralai/mistralai/esm/sdk/libraries.js +13 -1
  1503. package/node_modules/@mistralai/mistralai/esm/sdk/libraries.js.map +1 -1
  1504. package/node_modules/@mistralai/mistralai/esm/sdk/logs.d.ts +18 -0
  1505. package/node_modules/@mistralai/mistralai/esm/sdk/logs.d.ts.map +1 -0
  1506. package/node_modules/@mistralai/mistralai/esm/sdk/logs.js +30 -0
  1507. package/node_modules/@mistralai/mistralai/esm/sdk/logs.js.map +1 -0
  1508. package/node_modules/@mistralai/mistralai/esm/sdk/observability.d.ts +9 -0
  1509. package/node_modules/@mistralai/mistralai/esm/sdk/observability.d.ts.map +1 -1
  1510. package/node_modules/@mistralai/mistralai/esm/sdk/observability.js +15 -0
  1511. package/node_modules/@mistralai/mistralai/esm/sdk/observability.js.map +1 -1
  1512. package/node_modules/@mistralai/mistralai/esm/sdk/rag.d.ts +3 -0
  1513. package/node_modules/@mistralai/mistralai/esm/sdk/rag.d.ts.map +1 -1
  1514. package/node_modules/@mistralai/mistralai/esm/sdk/rag.js +5 -0
  1515. package/node_modules/@mistralai/mistralai/esm/sdk/rag.js.map +1 -1
  1516. package/node_modules/@mistralai/mistralai/esm/sdk/schedules.d.ts +24 -1
  1517. package/node_modules/@mistralai/mistralai/esm/sdk/schedules.d.ts.map +1 -1
  1518. package/node_modules/@mistralai/mistralai/esm/sdk/schedules.js +38 -2
  1519. package/node_modules/@mistralai/mistralai/esm/sdk/schedules.js.map +1 -1
  1520. package/node_modules/@mistralai/mistralai/esm/sdk/searchindexes.d.ts +13 -0
  1521. package/node_modules/@mistralai/mistralai/esm/sdk/searchindexes.d.ts.map +1 -0
  1522. package/node_modules/@mistralai/mistralai/esm/sdk/searchindexes.js +23 -0
  1523. package/node_modules/@mistralai/mistralai/esm/sdk/searchindexes.js.map +1 -0
  1524. package/node_modules/@mistralai/mistralai/esm/sdk/spans.d.ts +34 -0
  1525. package/node_modules/@mistralai/mistralai/esm/sdk/spans.d.ts.map +1 -0
  1526. package/node_modules/@mistralai/mistralai/esm/sdk/spans.js +58 -0
  1527. package/node_modules/@mistralai/mistralai/esm/sdk/spans.js.map +1 -0
  1528. package/node_modules/@mistralai/mistralai/esm/sdk/traces.d.ts +30 -0
  1529. package/node_modules/@mistralai/mistralai/esm/sdk/traces.d.ts.map +1 -0
  1530. package/node_modules/@mistralai/mistralai/esm/sdk/traces.js +51 -0
  1531. package/node_modules/@mistralai/mistralai/esm/sdk/traces.js.map +1 -0
  1532. package/node_modules/@mistralai/mistralai/esm/sdk/workflows.d.ts +8 -0
  1533. package/node_modules/@mistralai/mistralai/esm/sdk/workflows.d.ts.map +1 -1
  1534. package/node_modules/@mistralai/mistralai/esm/sdk/workflows.js +14 -0
  1535. package/node_modules/@mistralai/mistralai/esm/sdk/workflows.js.map +1 -1
  1536. package/node_modules/@mistralai/mistralai/esm/types/async.d.ts.map +1 -1
  1537. package/node_modules/@mistralai/mistralai/esm/types/async.js +6 -6
  1538. package/node_modules/@mistralai/mistralai/esm/types/async.js.map +1 -1
  1539. package/node_modules/@mistralai/mistralai/examples/src/reasoning.ts +50 -0
  1540. package/node_modules/@mistralai/mistralai/examples/src/reasoning_multi_turn.ts +77 -0
  1541. package/node_modules/@mistralai/mistralai/examples/src/reasoning_response_shape.ts +33 -0
  1542. package/node_modules/@mistralai/mistralai/examples/src/reasoning_with_streaming.ts +68 -0
  1543. package/node_modules/@mistralai/mistralai/jsr.json +1 -1
  1544. package/node_modules/@mistralai/mistralai/package.json +21 -1
  1545. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/funcs/chatComplete.ts +5 -3
  1546. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/funcs/chatStream.ts +5 -3
  1547. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/funcs/ocrProcess.ts +5 -3
  1548. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/config.ts +3 -3
  1549. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/encodings.ts +32 -4
  1550. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/files.ts +22 -0
  1551. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/sdks.ts +10 -11
  1552. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/security.ts +14 -2
  1553. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/lib/url.ts +16 -14
  1554. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/apikeyauth.ts +30 -0
  1555. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts +5 -2
  1556. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts +136 -15
  1557. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts +138 -15
  1558. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/codeinterpretertool.ts +44 -0
  1559. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/customconnector.ts +82 -0
  1560. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/deltamessage.ts +10 -0
  1561. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/documentlibrarytool.ts +51 -0
  1562. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/guardrailconfig.ts +55 -0
  1563. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/imagegenerationtool.ts +44 -0
  1564. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/imageurlchunk.ts +1 -1
  1565. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/index.ts +18 -1
  1566. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/moderationllmaction.ts +18 -0
  1567. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/moderationllmv1categorythresholds.ts +64 -0
  1568. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/moderationllmv1config.ts +70 -0
  1569. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/moderationllmv2categorythresholds.ts +69 -0
  1570. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/moderationllmv2config.ts +70 -0
  1571. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/oauth2tokenauth.ts +32 -0
  1572. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/ocrconfidencescore.ts +52 -0
  1573. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/ocrpageconfidencescores.ts +66 -0
  1574. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/ocrpageobject.ts +15 -0
  1575. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/ocrrequest.ts +42 -7
  1576. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/ocrtableobject.ts +16 -0
  1577. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/reasoningeffort.ts +17 -0
  1578. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/referencechunk.ts +32 -4
  1579. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/thinkchunk.ts +6 -0
  1580. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/tool.ts +3 -4
  1581. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolcall.ts +3 -8
  1582. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolchoice.ts +2 -3
  1583. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolconfiguration.ts +42 -0
  1584. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/toolreferencechunk.ts +11 -7
  1585. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/websearchpremiumtool.ts +44 -0
  1586. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/websearchtool.ts +40 -0
  1587. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/types/async.ts +8 -7
  1588. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/chatComplete.ts +5 -3
  1589. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/chatStream.ts +5 -3
  1590. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/fimComplete.ts +5 -3
  1591. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/funcs/fimStream.ts +5 -3
  1592. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/config.ts +3 -3
  1593. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/encodings.ts +32 -4
  1594. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/files.ts +22 -0
  1595. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/sdks.ts +10 -11
  1596. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/security.ts +14 -2
  1597. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/lib/url.ts +16 -14
  1598. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/apikeyauth.ts +30 -0
  1599. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts +5 -2
  1600. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts +136 -15
  1601. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts +138 -15
  1602. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/codeinterpretertool.ts +44 -0
  1603. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/customconnector.ts +82 -0
  1604. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/deltamessage.ts +10 -0
  1605. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/documentlibrarytool.ts +51 -0
  1606. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts +6 -6
  1607. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts +6 -6
  1608. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/guardrailconfig.ts +55 -0
  1609. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/imagegenerationtool.ts +44 -0
  1610. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/imageurlchunk.ts +1 -1
  1611. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/index.ts +16 -1
  1612. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/moderationllmaction.ts +18 -0
  1613. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/moderationllmv1categorythresholds.ts +64 -0
  1614. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/moderationllmv1config.ts +70 -0
  1615. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/moderationllmv2categorythresholds.ts +69 -0
  1616. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/moderationllmv2config.ts +70 -0
  1617. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/oauth2tokenauth.ts +32 -0
  1618. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/reasoningeffort.ts +17 -0
  1619. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/referencechunk.ts +32 -4
  1620. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/thinkchunk.ts +6 -0
  1621. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/tool.ts +3 -4
  1622. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolcall.ts +3 -8
  1623. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolchoice.ts +2 -3
  1624. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolconfiguration.ts +42 -0
  1625. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/toolreferencechunk.ts +11 -7
  1626. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/websearchpremiumtool.ts +44 -0
  1627. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/websearchtool.ts +40 -0
  1628. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +1 -1
  1629. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/index.ts +1 -1
  1630. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +1 -1
  1631. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/sdkerror.ts +1 -1
  1632. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/types/async.ts +8 -7
  1633. package/node_modules/@mistralai/mistralai/src/extra/observability/formatting.ts +194 -0
  1634. package/node_modules/@mistralai/mistralai/src/extra/observability/index.ts +2 -0
  1635. package/node_modules/@mistralai/mistralai/src/extra/observability/otel.ts +750 -0
  1636. package/node_modules/@mistralai/mistralai/src/extra/observability/streaming.ts +174 -0
  1637. package/node_modules/@mistralai/mistralai/src/extra/structChat.ts +25 -5
  1638. package/node_modules/@mistralai/mistralai/src/funcs/agentsComplete.ts +1 -1
  1639. package/node_modules/@mistralai/mistralai/src/funcs/agentsStream.ts +1 -1
  1640. package/node_modules/@mistralai/mistralai/src/funcs/audioSpeechComplete.ts +1 -1
  1641. package/node_modules/@mistralai/mistralai/src/funcs/audioTranscriptionsComplete.ts +1 -1
  1642. package/node_modules/@mistralai/mistralai/src/funcs/audioTranscriptionsStream.ts +1 -1
  1643. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesCreate.ts +1 -1
  1644. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesDelete.ts +1 -1
  1645. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesGet.ts +1 -1
  1646. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesGetSampleAudio.ts +1 -1
  1647. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesList.ts +1 -1
  1648. package/node_modules/@mistralai/mistralai/src/funcs/audioVoicesUpdate.ts +1 -1
  1649. package/node_modules/@mistralai/mistralai/src/funcs/batchJobsCancel.ts +1 -1
  1650. package/node_modules/@mistralai/mistralai/src/funcs/batchJobsCreate.ts +1 -1
  1651. package/node_modules/@mistralai/mistralai/src/funcs/batchJobsDelete.ts +1 -1
  1652. package/node_modules/@mistralai/mistralai/src/funcs/batchJobsGet.ts +1 -1
  1653. package/node_modules/@mistralai/mistralai/src/funcs/batchJobsList.ts +1 -1
  1654. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsCreate.ts +1 -1
  1655. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsCreateVersionAlias.ts +1 -1
  1656. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsDelete.ts +1 -1
  1657. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsDeleteVersionAlias.ts +1 -1
  1658. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsGet.ts +1 -1
  1659. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsGetVersion.ts +1 -1
  1660. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsList.ts +1 -1
  1661. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsListVersionAliases.ts +1 -1
  1662. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsListVersions.ts +1 -1
  1663. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsUpdate.ts +1 -1
  1664. package/node_modules/@mistralai/mistralai/src/funcs/betaAgentsUpdateVersion.ts +1 -1
  1665. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsActivateForOrganization.ts +186 -0
  1666. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsActivateForUser.ts +184 -0
  1667. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsActivateForWorkspace.ts +186 -0
  1668. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsCallTool.ts +1 -1
  1669. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsCreate.ts +1 -1
  1670. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsCreateOrUpdateOrganizationCredentials.ts +1 -1
  1671. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsCreateOrUpdateUserCredentials.ts +1 -1
  1672. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsCreateOrUpdateWorkspaceCredentials.ts +1 -1
  1673. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeactivateForOrganization.ts +182 -0
  1674. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeactivateForUser.ts +183 -0
  1675. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeactivateForWorkspace.ts +183 -0
  1676. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDelete.ts +1 -1
  1677. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeleteOrganizationCredentials.ts +1 -1
  1678. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeleteUserCredentials.ts +1 -1
  1679. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsDeleteWorkspaceCredentials.ts +1 -1
  1680. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsGet.ts +2 -2
  1681. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsGetAuthUrl.ts +3 -1
  1682. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsGetAuthenticationMethods.ts +1 -1
  1683. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsList.ts +1 -1
  1684. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsListOrganizationCredentials.ts +1 -1
  1685. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsListTools.ts +1 -1
  1686. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsListUserCredentials.ts +1 -1
  1687. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsListWorkspaceCredentials.ts +1 -1
  1688. package/node_modules/@mistralai/mistralai/src/funcs/betaConnectorsUpdate.ts +1 -1
  1689. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsAppend.ts +1 -1
  1690. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsAppendStream.ts +1 -1
  1691. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsDelete.ts +1 -1
  1692. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsGet.ts +1 -1
  1693. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsGetHistory.ts +1 -1
  1694. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsGetMessages.ts +1 -1
  1695. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsList.ts +1 -1
  1696. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsRestart.ts +1 -1
  1697. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsRestartStream.ts +1 -1
  1698. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsStart.ts +1 -1
  1699. package/node_modules/@mistralai/mistralai/src/funcs/betaConversationsStartStream.ts +1 -1
  1700. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesAccessesDelete.ts +2 -2
  1701. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesAccessesList.ts +1 -1
  1702. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesAccessesUpdateOrCreate.ts +1 -1
  1703. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesCreate.ts +1 -1
  1704. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDelete.ts +2 -2
  1705. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsDelete.ts +1 -1
  1706. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.ts +1 -1
  1707. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsGet.ts +1 -1
  1708. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsGetSignedUrl.ts +1 -1
  1709. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.ts +190 -0
  1710. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsList.ts +1 -1
  1711. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsReprocess.ts +1 -1
  1712. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsStatus.ts +1 -1
  1713. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsTextContent.ts +1 -1
  1714. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsUpdate.ts +7 -7
  1715. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesDocumentsUpload.ts +1 -1
  1716. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesGet.ts +1 -1
  1717. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesLibrariesUpdateV1.ts +183 -0
  1718. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesList.ts +1 -1
  1719. package/node_modules/@mistralai/mistralai/src/funcs/betaLibrariesUpdate.ts +6 -6
  1720. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsCreate.ts +1 -1
  1721. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsDelete.ts +1 -1
  1722. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsFetch.ts +1 -1
  1723. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsFetchStatus.ts +1 -1
  1724. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsList.ts +1 -1
  1725. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityCampaignsListEvents.ts +1 -1
  1726. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsFetch.ts +1 -1
  1727. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsFetchSimilarEvents.ts +1 -1
  1728. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptionCounts.ts +1 -1
  1729. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptions.ts +1 -1
  1730. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsFieldsList.ts +1 -1
  1731. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsJudge.ts +1 -1
  1732. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsSearch.ts +1 -1
  1733. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityChatCompletionEventsSearchIds.ts +1 -1
  1734. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsCreate.ts +1 -1
  1735. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsCreateRecord.ts +1 -1
  1736. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsDelete.ts +1 -1
  1737. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsExportToJsonl.ts +1 -1
  1738. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsFetch.ts +1 -1
  1739. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsFetchTask.ts +1 -1
  1740. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsImportFromCampaign.ts +1 -1
  1741. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsImportFromDatasetRecords.ts +1 -1
  1742. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsImportFromExplorer.ts +1 -1
  1743. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsImportFromFile.ts +1 -1
  1744. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsImportFromPlayground.ts +1 -1
  1745. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsList.ts +1 -1
  1746. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsListRecords.ts +1 -1
  1747. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsListTasks.ts +1 -1
  1748. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsBulkDelete.ts +1 -1
  1749. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsDelete.ts +1 -1
  1750. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsFetch.ts +1 -1
  1751. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsJudge.ts +1 -1
  1752. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsUpdatePayload.ts +1 -1
  1753. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsRecordsUpdateProperties.ts +1 -1
  1754. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityDatasetsUpdate.ts +1 -1
  1755. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesCreate.ts +1 -1
  1756. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesDelete.ts +1 -1
  1757. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesFetch.ts +1 -1
  1758. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesJudgeConversation.ts +1 -1
  1759. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesList.ts +1 -1
  1760. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityJudgesUpdate.ts +1 -1
  1761. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityLogsFetchOptions.ts +192 -0
  1762. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityLogsList.ts +154 -0
  1763. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityLogsSearch.ts +183 -0
  1764. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansFetchSpanEvalFieldOptions.ts +192 -0
  1765. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansFetchSpanFieldOptions.ts +192 -0
  1766. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansListSpanEvalFields.ts +155 -0
  1767. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansListSpanFields.ts +154 -0
  1768. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansSearchLatestSpanEvaluations.ts +191 -0
  1769. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansSearchSpanEvaluations.ts +189 -0
  1770. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilitySpansSearchSpans.ts +183 -0
  1771. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesFetchOptions.ts +192 -0
  1772. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesGetSpanById.ts +196 -0
  1773. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesGetTraceById.ts +181 -0
  1774. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesGetTraceFields.ts +154 -0
  1775. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesGetTraceSpans.ts +191 -0
  1776. package/node_modules/@mistralai/mistralai/src/funcs/betaObservabilityTracesSearch.ts +184 -0
  1777. package/node_modules/@mistralai/mistralai/src/funcs/betaRagIngestionPipelineConfigurationsList.ts +1 -1
  1778. package/node_modules/@mistralai/mistralai/src/funcs/betaRagIngestionPipelineConfigurationsRegister.ts +174 -0
  1779. package/node_modules/@mistralai/mistralai/src/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.ts +184 -0
  1780. package/node_modules/@mistralai/mistralai/src/funcs/betaRagSearchIndexesList.ts +143 -0
  1781. package/node_modules/@mistralai/mistralai/src/funcs/betaRagSearchIndexesRegister.ts +170 -0
  1782. package/node_modules/@mistralai/mistralai/src/funcs/chatComplete.ts +1 -1
  1783. package/node_modules/@mistralai/mistralai/src/funcs/chatStream.ts +1 -1
  1784. package/node_modules/@mistralai/mistralai/src/funcs/classifiersClassify.ts +1 -1
  1785. package/node_modules/@mistralai/mistralai/src/funcs/classifiersClassifyChat.ts +1 -1
  1786. package/node_modules/@mistralai/mistralai/src/funcs/classifiersModerate.ts +1 -1
  1787. package/node_modules/@mistralai/mistralai/src/funcs/classifiersModerateChat.ts +1 -1
  1788. package/node_modules/@mistralai/mistralai/src/funcs/embeddingsCreate.ts +1 -1
  1789. package/node_modules/@mistralai/mistralai/src/funcs/eventsGetStreamEvents.ts +1 -1
  1790. package/node_modules/@mistralai/mistralai/src/funcs/eventsGetWorkflowEvents.ts +1 -1
  1791. package/node_modules/@mistralai/mistralai/src/funcs/filesDelete.ts +1 -1
  1792. package/node_modules/@mistralai/mistralai/src/funcs/filesDownload.ts +1 -1
  1793. package/node_modules/@mistralai/mistralai/src/funcs/filesGetSignedUrl.ts +1 -1
  1794. package/node_modules/@mistralai/mistralai/src/funcs/filesList.ts +1 -1
  1795. package/node_modules/@mistralai/mistralai/src/funcs/filesRetrieve.ts +1 -1
  1796. package/node_modules/@mistralai/mistralai/src/funcs/filesUpload.ts +1 -1
  1797. package/node_modules/@mistralai/mistralai/src/funcs/fimComplete.ts +1 -1
  1798. package/node_modules/@mistralai/mistralai/src/funcs/fimStream.ts +1 -1
  1799. package/node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsCancel.ts +1 -1
  1800. package/node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsCreate.ts +1 -1
  1801. package/node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsGet.ts +1 -1
  1802. package/node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsList.ts +1 -1
  1803. package/node_modules/@mistralai/mistralai/src/funcs/fineTuningJobsStart.ts +1 -1
  1804. package/node_modules/@mistralai/mistralai/src/funcs/modelsArchive.ts +1 -1
  1805. package/node_modules/@mistralai/mistralai/src/funcs/modelsDelete.ts +1 -1
  1806. package/node_modules/@mistralai/mistralai/src/funcs/modelsList.ts +1 -1
  1807. package/node_modules/@mistralai/mistralai/src/funcs/modelsRetrieve.ts +1 -1
  1808. package/node_modules/@mistralai/mistralai/src/funcs/modelsUnarchive.ts +1 -1
  1809. package/node_modules/@mistralai/mistralai/src/funcs/modelsUpdate.ts +1 -1
  1810. package/node_modules/@mistralai/mistralai/src/funcs/ocrProcess.ts +1 -1
  1811. package/node_modules/@mistralai/mistralai/src/funcs/workflowsArchiveWorkflow.ts +1 -1
  1812. package/node_modules/@mistralai/mistralai/src/funcs/workflowsBulkArchiveWorkflows.ts +170 -0
  1813. package/node_modules/@mistralai/mistralai/src/funcs/workflowsBulkUnarchiveWorkflows.ts +170 -0
  1814. package/node_modules/@mistralai/mistralai/src/funcs/workflowsDeploymentsGetDeployment.ts +1 -1
  1815. package/node_modules/@mistralai/mistralai/src/funcs/workflowsDeploymentsListDeployments.ts +6 -1
  1816. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecuteWorkflow.ts +1 -1
  1817. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecuteWorkflowRegistration.ts +1 -1
  1818. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsBatchCancelWorkflowExecutions.ts +1 -1
  1819. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsBatchTerminateWorkflowExecutions.ts +1 -1
  1820. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsCancelWorkflowExecution.ts +1 -1
  1821. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecution.ts +1 -1
  1822. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecutionHistory.ts +1 -1
  1823. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecutionLogs.ts +197 -0
  1824. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceEvents.ts +1 -1
  1825. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceOtel.ts +1 -1
  1826. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceSummary.ts +1 -1
  1827. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsQueryWorkflowExecution.ts +1 -1
  1828. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsResetWorkflow.ts +1 -1
  1829. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsSignalWorkflowExecution.ts +1 -1
  1830. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsStream.ts +1 -1
  1831. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsStreamWorkflowExecutionLogs.ts +207 -0
  1832. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsTerminateWorkflowExecution.ts +1 -1
  1833. package/node_modules/@mistralai/mistralai/src/funcs/workflowsExecutionsUpdateWorkflowExecution.ts +1 -1
  1834. package/node_modules/@mistralai/mistralai/src/funcs/workflowsGetWorkflow.ts +1 -1
  1835. package/node_modules/@mistralai/mistralai/src/funcs/workflowsGetWorkflowRegistration.ts +1 -1
  1836. package/node_modules/@mistralai/mistralai/src/funcs/workflowsGetWorkflowRegistrations.ts +1 -1
  1837. package/node_modules/@mistralai/mistralai/src/funcs/workflowsGetWorkflows.ts +7 -1
  1838. package/node_modules/@mistralai/mistralai/src/funcs/workflowsMetricsGetWorkflowMetrics.ts +1 -1
  1839. package/node_modules/@mistralai/mistralai/src/funcs/workflowsRunsGetRun.ts +1 -1
  1840. package/node_modules/@mistralai/mistralai/src/funcs/workflowsRunsGetRunHistory.ts +1 -1
  1841. package/node_modules/@mistralai/mistralai/src/funcs/workflowsRunsListRuns.ts +8 -1
  1842. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesGetSchedule.ts +178 -0
  1843. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesGetSchedules.ts +141 -30
  1844. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesPauseSchedule.ts +186 -0
  1845. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesResumeSchedule.ts +186 -0
  1846. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesScheduleWorkflow.ts +1 -1
  1847. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesTriggerSchedule.ts +186 -0
  1848. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesUnscheduleWorkflow.ts +1 -1
  1849. package/node_modules/@mistralai/mistralai/src/funcs/workflowsSchedulesUpdateSchedule.ts +181 -0
  1850. package/node_modules/@mistralai/mistralai/src/funcs/workflowsUnarchiveWorkflow.ts +1 -1
  1851. package/node_modules/@mistralai/mistralai/src/funcs/workflowsUpdateWorkflow.ts +1 -1
  1852. package/node_modules/@mistralai/mistralai/src/hooks/deprecation_warning.ts +1 -2
  1853. package/node_modules/@mistralai/mistralai/src/hooks/registration.ts +6 -0
  1854. package/node_modules/@mistralai/mistralai/src/hooks/tracing.ts +173 -0
  1855. package/node_modules/@mistralai/mistralai/src/lib/config.ts +3 -3
  1856. package/node_modules/@mistralai/mistralai/src/models/components/activitytaskcompletedattributesresponse.ts +2 -0
  1857. package/node_modules/@mistralai/mistralai/src/models/components/activitytaskstartedattributesresponse.ts +2 -0
  1858. package/node_modules/@mistralai/mistralai/src/models/components/agentscompletionrequest.ts +4 -0
  1859. package/node_modules/@mistralai/mistralai/src/models/components/agentscompletionstreamrequest.ts +4 -0
  1860. package/node_modules/@mistralai/mistralai/src/models/components/authdata.ts +3 -3
  1861. package/node_modules/@mistralai/mistralai/src/models/components/authenticationconfiguration.ts +14 -5
  1862. package/node_modules/@mistralai/mistralai/src/models/components/authstatus.ts +19 -0
  1863. package/node_modules/@mistralai/mistralai/src/models/components/basefielddefinition.ts +19 -13
  1864. package/node_modules/@mistralai/mistralai/src/models/components/chatcompletionevent.ts +7 -9
  1865. package/node_modules/@mistralai/mistralai/src/models/components/chatcompletioneventpreview.ts +7 -9
  1866. package/node_modules/@mistralai/mistralai/src/models/components/chatcompletionrequest.ts +4 -0
  1867. package/node_modules/@mistralai/mistralai/src/models/components/chatcompletionstreamrequest.ts +4 -0
  1868. package/node_modules/@mistralai/mistralai/src/models/components/classifierfinetuningjob.ts +1 -1
  1869. package/node_modules/@mistralai/mistralai/src/models/components/classifierfinetuningjobdetails.ts +42 -0
  1870. package/node_modules/@mistralai/mistralai/src/models/components/classifiertrainingparameters.ts +12 -0
  1871. package/node_modules/@mistralai/mistralai/src/models/components/clientcapabilities.ts +60 -0
  1872. package/node_modules/@mistralai/mistralai/src/models/components/clienttaskscapability.ts +43 -0
  1873. package/node_modules/@mistralai/mistralai/src/models/components/clienttasksrequestscapability.ts +45 -0
  1874. package/node_modules/@mistralai/mistralai/src/models/components/completionfinetuningjob.ts +1 -1
  1875. package/node_modules/@mistralai/mistralai/src/models/components/completionfinetuningjobdetails.ts +42 -0
  1876. package/node_modules/@mistralai/mistralai/src/models/components/completiontokensdetails.ts +39 -0
  1877. package/node_modules/@mistralai/mistralai/src/models/components/completiontrainingparameters.ts +12 -0
  1878. package/node_modules/@mistralai/mistralai/src/models/components/connectionconfigtype.ts +21 -0
  1879. package/node_modules/@mistralai/mistralai/src/models/components/connectioncredentials.ts +4 -0
  1880. package/node_modules/@mistralai/mistralai/src/models/components/connectionpreference.ts +49 -0
  1881. package/node_modules/@mistralai/mistralai/src/models/components/connector.ts +88 -3
  1882. package/node_modules/@mistralai/mistralai/src/models/components/connectorlocale.ts +40 -0
  1883. package/node_modules/@mistralai/mistralai/src/models/components/connectorprotocol.ts +21 -0
  1884. package/node_modules/@mistralai/mistralai/src/models/components/connectorsqueryfilters.ts +0 -11
  1885. package/node_modules/@mistralai/mistralai/src/models/components/consumertype.ts +20 -0
  1886. package/node_modules/@mistralai/mistralai/src/models/components/createbatchjobrequest.ts +8 -1
  1887. package/node_modules/@mistralai/mistralai/src/models/components/createconnectorrequest.ts +32 -0
  1888. package/node_modules/@mistralai/mistralai/src/models/components/createingestionpipelineconfigurationrequest.ts +44 -0
  1889. package/node_modules/@mistralai/mistralai/src/models/components/createlibraryrequest.ts +5 -0
  1890. package/node_modules/@mistralai/mistralai/src/models/components/createsearchindexinforequest.ts +89 -0
  1891. package/node_modules/@mistralai/mistralai/src/models/components/createvespaschemarequest.ts +39 -0
  1892. package/node_modules/@mistralai/mistralai/src/models/components/createvespasearchindexinforequest.ts +57 -0
  1893. package/node_modules/@mistralai/mistralai/src/models/components/credentialsresponse.ts +7 -5
  1894. package/node_modules/@mistralai/mistralai/src/models/components/credentialsstatus.ts +49 -0
  1895. package/node_modules/@mistralai/mistralai/src/models/components/customtaskcompletedattributesresponse.ts +2 -0
  1896. package/node_modules/@mistralai/mistralai/src/models/components/customtaskstartedattributesresponse.ts +2 -0
  1897. package/node_modules/@mistralai/mistralai/src/models/components/deletemodelresponse.ts +2 -2
  1898. package/node_modules/@mistralai/mistralai/src/models/components/deploymentdetailresponse.ts +6 -0
  1899. package/node_modules/@mistralai/mistralai/src/models/components/deploymentlistresponse.ts +16 -0
  1900. package/node_modules/@mistralai/mistralai/src/models/components/deploymentresponse.ts +6 -0
  1901. package/node_modules/@mistralai/mistralai/src/models/components/document.ts +20 -0
  1902. package/node_modules/@mistralai/mistralai/src/models/components/elicitationcapability.ts +41 -0
  1903. package/node_modules/@mistralai/mistralai/src/models/components/encodedpayloadoptions.ts +13 -5
  1904. package/node_modules/@mistralai/mistralai/src/models/components/encryptedpatchvalue.ts +43 -0
  1905. package/node_modules/@mistralai/mistralai/src/models/components/executionlogrecord.ts +49 -0
  1906. package/node_modules/@mistralai/mistralai/src/models/components/executionlogsearchresponse.ts +42 -0
  1907. package/node_modules/@mistralai/mistralai/src/models/components/extendedoauthservermetadata.ts +163 -0
  1908. package/node_modules/@mistralai/mistralai/src/models/components/feedresultgetlog.ts +36 -0
  1909. package/node_modules/@mistralai/mistralai/src/models/components/feedresultgetspan.ts +36 -0
  1910. package/node_modules/@mistralai/mistralai/src/models/components/feedresultgetspanevaluation.ts +39 -0
  1911. package/node_modules/@mistralai/mistralai/src/models/components/feedresultgettrace.ts +36 -0
  1912. package/node_modules/@mistralai/mistralai/src/models/components/fimcompletionrequest.ts +4 -0
  1913. package/node_modules/@mistralai/mistralai/src/models/components/fimcompletionstreamrequest.ts +4 -0
  1914. package/node_modules/@mistralai/mistralai/src/models/components/getlog.ts +88 -0
  1915. package/node_modules/@mistralai/mistralai/src/models/components/getlogfieldoptions.ts +31 -0
  1916. package/node_modules/@mistralai/mistralai/src/models/components/getlogfields.ts +38 -0
  1917. package/node_modules/@mistralai/mistralai/src/models/components/getlogs.ts +32 -0
  1918. package/node_modules/@mistralai/mistralai/src/models/components/getspan.ts +222 -0
  1919. package/node_modules/@mistralai/mistralai/src/models/components/getspanevaluation.ts +72 -0
  1920. package/node_modules/@mistralai/mistralai/src/models/components/getspanevaluationfieldoptions.ts +31 -0
  1921. package/node_modules/@mistralai/mistralai/src/models/components/getspanevaluationfields.ts +40 -0
  1922. package/node_modules/@mistralai/mistralai/src/models/components/getspanevaluations.ts +40 -0
  1923. package/node_modules/@mistralai/mistralai/src/models/components/getspanfieldoptions.ts +31 -0
  1924. package/node_modules/@mistralai/mistralai/src/models/components/getspanfields.ts +38 -0
  1925. package/node_modules/@mistralai/mistralai/src/models/components/getspans.ts +32 -0
  1926. package/node_modules/@mistralai/mistralai/src/models/components/gettrace.ts +145 -0
  1927. package/node_modules/@mistralai/mistralai/src/models/components/gettracefieldoptions.ts +31 -0
  1928. package/node_modules/@mistralai/mistralai/src/models/components/gettracefields.ts +38 -0
  1929. package/node_modules/@mistralai/mistralai/src/models/components/gettraces.ts +32 -0
  1930. package/node_modules/@mistralai/mistralai/src/models/components/httpstatus.ts +120 -0
  1931. package/node_modules/@mistralai/mistralai/src/models/components/index.ts +93 -1
  1932. package/node_modules/@mistralai/mistralai/src/models/components/ingestionpipelineconfiguration.ts +17 -0
  1933. package/node_modules/@mistralai/mistralai/src/models/components/jobmetadata.ts +18 -0
  1934. package/node_modules/@mistralai/mistralai/src/models/components/jsonpatch.ts +50 -0
  1935. package/node_modules/@mistralai/mistralai/src/models/components/jsonpatchappend.ts +29 -3
  1936. package/node_modules/@mistralai/mistralai/src/models/components/jsonpatchpayloadresponse.ts +19 -57
  1937. package/node_modules/@mistralai/mistralai/src/models/components/jsonpatchpayloadvalueresponse.ts +29 -0
  1938. package/node_modules/@mistralai/mistralai/src/models/components/jsonpayloadresponse.ts +18 -1
  1939. package/node_modules/@mistralai/mistralai/src/models/components/library.ts +17 -0
  1940. package/node_modules/@mistralai/mistralai/src/models/components/logicalexpression.ts +132 -0
  1941. package/node_modules/@mistralai/mistralai/src/models/components/logsrequest.ts +45 -0
  1942. package/node_modules/@mistralai/mistralai/src/models/components/mcpprompt.ts +49 -0
  1943. package/node_modules/@mistralai/mistralai/src/models/components/mcpresource.ts +53 -0
  1944. package/node_modules/@mistralai/mistralai/src/models/components/mcpserverauthenticationrequirement.ts +43 -0
  1945. package/node_modules/@mistralai/mistralai/src/models/components/mcpservercard.ts +162 -0
  1946. package/node_modules/@mistralai/mistralai/src/models/components/mcpservercardmeta.ts +45 -0
  1947. package/node_modules/@mistralai/mistralai/src/models/components/mcpservercardtool.ts +60 -0
  1948. package/node_modules/@mistralai/mistralai/src/models/components/mcpserverremote.ts +77 -0
  1949. package/node_modules/@mistralai/mistralai/src/models/components/mcpserverremoteheader.ts +50 -0
  1950. package/node_modules/@mistralai/mistralai/src/models/components/mcpserverrepository.ts +44 -0
  1951. package/node_modules/@mistralai/mistralai/src/models/components/observabilityerrorcode.ts +0 -1
  1952. package/node_modules/@mistralai/mistralai/src/models/components/ocrrequest.ts +0 -3
  1953. package/node_modules/@mistralai/mistralai/src/models/components/otelfielddefinition.ts +102 -0
  1954. package/node_modules/@mistralai/mistralai/src/models/components/outboundauthenticationtype.ts +30 -0
  1955. package/node_modules/@mistralai/mistralai/src/models/components/partialscheduledefinition.ts +128 -0
  1956. package/node_modules/@mistralai/mistralai/src/models/components/processingstatus.ts +3 -0
  1957. package/node_modules/@mistralai/mistralai/src/models/components/promptargument.ts +37 -0
  1958. package/node_modules/@mistralai/mistralai/src/models/components/promptscapability.ts +35 -0
  1959. package/node_modules/@mistralai/mistralai/src/models/components/prompttokensdetails.ts +3 -0
  1960. package/node_modules/@mistralai/mistralai/src/models/components/publicauthenticationmethod.ts +9 -6
  1961. package/node_modules/@mistralai/mistralai/src/models/components/publicconnectionconfig.ts +46 -0
  1962. package/node_modules/@mistralai/mistralai/src/models/components/reasoningeffort.ts +4 -0
  1963. package/node_modules/@mistralai/mistralai/src/models/components/referencechunk.ts +8 -8
  1964. package/node_modules/@mistralai/mistralai/src/models/components/resourcescapability.ts +37 -0
  1965. package/node_modules/@mistralai/mistralai/src/models/components/resourcetype.ts +20 -0
  1966. package/node_modules/@mistralai/mistralai/src/models/components/rootscapability.ts +35 -0
  1967. package/node_modules/@mistralai/mistralai/src/models/components/samplingcapability.ts +37 -0
  1968. package/node_modules/@mistralai/mistralai/src/models/components/scheduledefinition.ts +7 -0
  1969. package/node_modules/@mistralai/mistralai/src/models/components/scheduledefinitionoutput.ts +42 -0
  1970. package/node_modules/@mistralai/mistralai/src/models/components/schedulefutureexecution.ts +39 -0
  1971. package/node_modules/@mistralai/mistralai/src/models/components/schedulerecentexecution.ts +51 -0
  1972. package/node_modules/@mistralai/mistralai/src/models/components/searchindexresponse.ts +91 -0
  1973. package/node_modules/@mistralai/mistralai/src/models/components/servercapabilities.ts +64 -0
  1974. package/node_modules/@mistralai/mistralai/src/models/components/serverlocale.ts +45 -0
  1975. package/node_modules/@mistralai/mistralai/src/models/components/servertaskscapability.ts +43 -0
  1976. package/node_modules/@mistralai/mistralai/src/models/components/servertasksrequestscapability.ts +39 -0
  1977. package/node_modules/@mistralai/mistralai/src/models/components/sharing.ts +6 -0
  1978. package/node_modules/@mistralai/mistralai/src/models/components/sharingdelete.ts +3 -0
  1979. package/node_modules/@mistralai/mistralai/src/models/components/sharingrequest.ts +3 -0
  1980. package/node_modules/@mistralai/mistralai/src/models/components/spanevaluationsrequest.ts +36 -0
  1981. package/node_modules/@mistralai/mistralai/src/models/components/spansrequest.ts +32 -0
  1982. package/node_modules/@mistralai/mistralai/src/models/components/streamerror.ts +29 -0
  1983. package/node_modules/@mistralai/mistralai/src/models/components/taskselicitationcapability.ts +35 -0
  1984. package/node_modules/@mistralai/mistralai/src/models/components/taskssamplingcapability.ts +35 -0
  1985. package/node_modules/@mistralai/mistralai/src/models/components/taskstoolscapability.ts +35 -0
  1986. package/node_modules/@mistralai/mistralai/src/models/components/toolexecutionconfiguration.ts +224 -0
  1987. package/node_modules/@mistralai/mistralai/src/models/components/toolproperties.ts +53 -0
  1988. package/node_modules/@mistralai/mistralai/src/models/components/toolscapability.ts +35 -0
  1989. package/node_modules/@mistralai/mistralai/src/models/components/tracesrequest.ts +32 -0
  1990. package/node_modules/@mistralai/mistralai/src/models/components/turbinemeta.ts +37 -0
  1991. package/node_modules/@mistralai/mistralai/src/models/components/updateconnectorrequest.ts +9 -0
  1992. package/node_modules/@mistralai/mistralai/src/models/components/updatedocumentrequest.ts +14 -3
  1993. package/node_modules/@mistralai/mistralai/src/models/components/updatelibraryrequest.ts +3 -3
  1994. package/node_modules/@mistralai/mistralai/src/models/components/updateruninfo.ts +36 -0
  1995. package/node_modules/@mistralai/mistralai/src/models/components/usageinfodollardefs.ts +8 -0
  1996. package/node_modules/@mistralai/mistralai/src/models/components/vespaschemaresponse.ts +38 -0
  1997. package/node_modules/@mistralai/mistralai/src/models/components/vespasearchindexinforesponse.ts +50 -0
  1998. package/node_modules/@mistralai/mistralai/src/models/components/voicecreaterequest.ts +3 -0
  1999. package/node_modules/@mistralai/mistralai/src/models/components/voiceresponse.ts +5 -0
  2000. package/node_modules/@mistralai/mistralai/src/models/components/voiceupdaterequest.ts +3 -0
  2001. package/node_modules/@mistralai/mistralai/src/models/components/workflow.ts +5 -6
  2002. package/node_modules/@mistralai/mistralai/src/models/components/workflowbasicdefinition.ts +5 -0
  2003. package/node_modules/@mistralai/mistralai/src/models/components/workflowbulkarchiverequest.ts +39 -0
  2004. package/node_modules/@mistralai/mistralai/src/models/components/workflowbulkarchiveresponse.ts +44 -0
  2005. package/node_modules/@mistralai/mistralai/src/models/components/workflowbulkerror.ts +50 -0
  2006. package/node_modules/@mistralai/mistralai/src/models/components/workflowbulkunarchiverequest.ts +41 -0
  2007. package/node_modules/@mistralai/mistralai/src/models/components/workflowbulkunarchiveresponse.ts +44 -0
  2008. package/node_modules/@mistralai/mistralai/src/models/components/workflowcodedefinition.ts +6 -0
  2009. package/node_modules/@mistralai/mistralai/src/models/components/workflowexecutioncompletedattributesresponse.ts +2 -0
  2010. package/node_modules/@mistralai/mistralai/src/models/components/workflowexecutioncontinuedasnewattributesresponse.ts +2 -0
  2011. package/node_modules/@mistralai/mistralai/src/models/components/workflowexecutionrequest.ts +0 -12
  2012. package/node_modules/@mistralai/mistralai/src/models/components/workflowexecutionstartedattributesresponse.ts +2 -0
  2013. package/node_modules/@mistralai/mistralai/src/models/components/workflowschedulelistresponse.ts +10 -0
  2014. package/node_modules/@mistralai/mistralai/src/models/components/workflowschedulepauserequest.ts +36 -0
  2015. package/node_modules/@mistralai/mistralai/src/models/components/workflowscheduletriggerrequest.ts +40 -0
  2016. package/node_modules/@mistralai/mistralai/src/models/components/workflowscheduleupdaterequest.ts +46 -0
  2017. package/node_modules/@mistralai/mistralai/src/models/components/workflowupdaterequest.ts +6 -0
  2018. package/node_modules/@mistralai/mistralai/src/models/components/workflowwithworkerstatus.ts +5 -6
  2019. package/node_modules/@mistralai/mistralai/src/models/operations/connectoractivatefororganizationv1.ts +53 -0
  2020. package/node_modules/@mistralai/mistralai/src/models/operations/connectoractivateforuserv1.ts +51 -0
  2021. package/node_modules/@mistralai/mistralai/src/models/operations/connectoractivateforworkspacev1.ts +52 -0
  2022. package/node_modules/@mistralai/mistralai/src/models/operations/connectordeactivatefororganizationv1.ts +40 -0
  2023. package/node_modules/@mistralai/mistralai/src/models/operations/connectordeactivateforuserv1.ts +38 -0
  2024. package/node_modules/@mistralai/mistralai/src/models/operations/connectordeactivateforworkspacev1.ts +39 -0
  2025. package/node_modules/@mistralai/mistralai/src/models/operations/connectorgetauthurlv1.ts +15 -0
  2026. package/node_modules/@mistralai/mistralai/src/models/operations/connectorgetv1.ts +7 -7
  2027. package/node_modules/@mistralai/mistralai/src/models/operations/connectorlistorganizationcredentialsv1.ts +2 -2
  2028. package/node_modules/@mistralai/mistralai/src/models/operations/connectorlistusercredentialsv1.ts +3 -2
  2029. package/node_modules/@mistralai/mistralai/src/models/operations/connectorlistworkspacecredentialsv1.ts +2 -2
  2030. package/node_modules/@mistralai/mistralai/src/models/operations/getlogfieldoptionsv1observabilitylogsfieldsfieldnameoptionsget.ts +49 -0
  2031. package/node_modules/@mistralai/mistralai/src/models/operations/getschedulesv1workflowsschedulesget.ts +126 -0
  2032. package/node_modules/@mistralai/mistralai/src/models/operations/getschedulev1workflowsschedulesscheduleidget.ts +40 -0
  2033. package/node_modules/@mistralai/mistralai/src/models/operations/getspanbyidv1observabilitytracestraceidspansspanidget.ts +50 -0
  2034. package/node_modules/@mistralai/mistralai/src/models/operations/getspanevaluationfieldoptionsv1observabilityspansevaluationsfieldsfieldnameoptionsget.ts +49 -0
  2035. package/node_modules/@mistralai/mistralai/src/models/operations/getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.ts +49 -0
  2036. package/node_modules/@mistralai/mistralai/src/models/operations/gettracebyidv1observabilitytracestraceidget.ts +40 -0
  2037. package/node_modules/@mistralai/mistralai/src/models/operations/gettracefieldoptionsv1observabilitytracesfieldsfieldnameoptionsget.ts +49 -0
  2038. package/node_modules/@mistralai/mistralai/src/models/operations/gettracespansv1observabilitytracestraceidspansget.ts +53 -0
  2039. package/node_modules/@mistralai/mistralai/src/models/operations/getworkflowexecutionlogs.ts +102 -0
  2040. package/node_modules/@mistralai/mistralai/src/models/operations/getworkflowsv1workflowsget.ts +122 -5
  2041. package/node_modules/@mistralai/mistralai/src/models/operations/index.ts +29 -0
  2042. package/node_modules/@mistralai/mistralai/src/models/operations/librariesdocumentslistv1.ts +5 -0
  2043. package/node_modules/@mistralai/mistralai/src/models/operations/librariesdocumentspatchv1.ts +47 -0
  2044. package/node_modules/@mistralai/mistralai/src/models/operations/librarieslistv1.ts +3 -1
  2045. package/node_modules/@mistralai/mistralai/src/models/operations/librariespatchv1.ts +41 -0
  2046. package/node_modules/@mistralai/mistralai/src/models/operations/listdeploymentsv1workflowsdeploymentsget.ts +32 -0
  2047. package/node_modules/@mistralai/mistralai/src/models/operations/listrunsv1workflowsrunsget.ts +87 -1
  2048. package/node_modules/@mistralai/mistralai/src/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.ts +53 -0
  2049. package/node_modules/@mistralai/mistralai/src/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.ts +53 -0
  2050. package/node_modules/@mistralai/mistralai/src/models/operations/searchlatestspanevaluationsv1observabilityspansevaluationssearchlatestpost.ts +57 -0
  2051. package/node_modules/@mistralai/mistralai/src/models/operations/searchlogsv1observabilitylogssearchpost.ts +54 -0
  2052. package/node_modules/@mistralai/mistralai/src/models/operations/searchspanevaluationsv1observabilityspansevaluationssearchpost.ts +57 -0
  2053. package/node_modules/@mistralai/mistralai/src/models/operations/searchspansv1observabilityspanssearchpost.ts +54 -0
  2054. package/node_modules/@mistralai/mistralai/src/models/operations/searchtracesv1observabilitytracessearchpost.ts +54 -0
  2055. package/node_modules/@mistralai/mistralai/src/models/operations/speechv1audiospeechpost.ts +12 -12
  2056. package/node_modules/@mistralai/mistralai/src/models/operations/streamworkflowexecutionlogs.ts +157 -0
  2057. package/node_modules/@mistralai/mistralai/src/models/operations/triggerschedulev1workflowsschedulesscheduleidtriggerpost.ts +53 -0
  2058. package/node_modules/@mistralai/mistralai/src/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.ts +47 -0
  2059. package/node_modules/@mistralai/mistralai/src/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.ts +47 -0
  2060. package/node_modules/@mistralai/mistralai/src/sdk/accesses.ts +1 -1
  2061. package/node_modules/@mistralai/mistralai/src/sdk/connectors.ts +108 -0
  2062. package/node_modules/@mistralai/mistralai/src/sdk/documents.ts +22 -2
  2063. package/node_modules/@mistralai/mistralai/src/sdk/executions.ts +44 -0
  2064. package/node_modules/@mistralai/mistralai/src/sdk/ingestionpipelineconfigurations.ts +35 -0
  2065. package/node_modules/@mistralai/mistralai/src/sdk/libraries.ts +22 -2
  2066. package/node_modules/@mistralai/mistralai/src/sdk/logs.ts +55 -0
  2067. package/node_modules/@mistralai/mistralai/src/sdk/observability.ts +18 -0
  2068. package/node_modules/@mistralai/mistralai/src/sdk/rag.ts +6 -0
  2069. package/node_modules/@mistralai/mistralai/src/sdk/schedules.ts +89 -2
  2070. package/node_modules/@mistralai/mistralai/src/sdk/searchindexes.ts +38 -0
  2071. package/node_modules/@mistralai/mistralai/src/sdk/spans.ts +116 -0
  2072. package/node_modules/@mistralai/mistralai/src/sdk/traces.ts +102 -0
  2073. package/node_modules/@mistralai/mistralai/src/sdk/workflows.ts +30 -0
  2074. package/node_modules/@mistralai/mistralai/src/types/async.ts +8 -7
  2075. package/node_modules/@mistralai/mistralai/tests/extra/observability/customProvider.test.ts +98 -0
  2076. package/node_modules/@mistralai/mistralai/tests/extra/observability/formatting.test.ts +111 -0
  2077. package/node_modules/@mistralai/mistralai/tests/extra/observability/helpers.ts +62 -0
  2078. package/node_modules/@mistralai/mistralai/tests/extra/observability/otel.test.ts +453 -0
  2079. package/node_modules/@mistralai/mistralai/tests/extra/observability/streaming.test.ts +94 -0
  2080. package/node_modules/@mistralai/mistralai/tests/extra/structChat.test.ts +131 -0
  2081. package/node_modules/@opentelemetry/api/LICENSE +201 -0
  2082. package/node_modules/@opentelemetry/api/README.md +116 -0
  2083. package/node_modules/@opentelemetry/api/build/esm/api/context.d.ts +41 -0
  2084. package/node_modules/@opentelemetry/api/build/esm/api/context.js +110 -0
  2085. package/node_modules/@opentelemetry/api/build/esm/api/context.js.map +1 -0
  2086. package/node_modules/@opentelemetry/api/build/esm/api/diag.d.ts +30 -0
  2087. package/node_modules/@opentelemetry/api/build/esm/api/diag.js +121 -0
  2088. package/node_modules/@opentelemetry/api/build/esm/api/diag.js.map +1 -0
  2089. package/node_modules/@opentelemetry/api/build/esm/api/metrics.d.ts +28 -0
  2090. package/node_modules/@opentelemetry/api/build/esm/api/metrics.js +60 -0
  2091. package/node_modules/@opentelemetry/api/build/esm/api/metrics.js.map +1 -0
  2092. package/node_modules/@opentelemetry/api/build/esm/api/propagation.d.ts +49 -0
  2093. package/node_modules/@opentelemetry/api/build/esm/api/propagation.js +89 -0
  2094. package/node_modules/@opentelemetry/api/build/esm/api/propagation.js.map +1 -0
  2095. package/node_modules/@opentelemetry/api/build/esm/api/trace.d.ts +40 -0
  2096. package/node_modules/@opentelemetry/api/build/esm/api/trace.js +77 -0
  2097. package/node_modules/@opentelemetry/api/build/esm/api/trace.js.map +1 -0
  2098. package/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.d.ts +29 -0
  2099. package/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js +56 -0
  2100. package/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js.map +1 -0
  2101. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.d.ts +12 -0
  2102. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js +98 -0
  2103. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js.map +1 -0
  2104. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.d.ts +5 -0
  2105. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js +20 -0
  2106. package/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js.map +1 -0
  2107. package/node_modules/@opentelemetry/api/build/esm/baggage/types.d.ts +60 -0
  2108. package/node_modules/@opentelemetry/api/build/esm/baggage/types.js +17 -0
  2109. package/node_modules/@opentelemetry/api/build/esm/baggage/types.js.map +1 -0
  2110. package/node_modules/@opentelemetry/api/build/esm/baggage/utils.d.ts +15 -0
  2111. package/node_modules/@opentelemetry/api/build/esm/baggage/utils.js +47 -0
  2112. package/node_modules/@opentelemetry/api/build/esm/baggage/utils.js.map +1 -0
  2113. package/node_modules/@opentelemetry/api/build/esm/common/Attributes.d.ts +15 -0
  2114. package/node_modules/@opentelemetry/api/build/esm/common/Attributes.js +17 -0
  2115. package/node_modules/@opentelemetry/api/build/esm/common/Attributes.js.map +1 -0
  2116. package/node_modules/@opentelemetry/api/build/esm/common/Exception.d.ts +26 -0
  2117. package/node_modules/@opentelemetry/api/build/esm/common/Exception.js +17 -0
  2118. package/node_modules/@opentelemetry/api/build/esm/common/Exception.js.map +1 -0
  2119. package/node_modules/@opentelemetry/api/build/esm/common/Time.d.ts +20 -0
  2120. package/node_modules/@opentelemetry/api/build/esm/common/Time.js +2 -0
  2121. package/node_modules/@opentelemetry/api/build/esm/common/Time.js.map +1 -0
  2122. package/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.d.ts +9 -0
  2123. package/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js +67 -0
  2124. package/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js.map +1 -0
  2125. package/node_modules/@opentelemetry/api/build/esm/context/context.d.ts +6 -0
  2126. package/node_modules/@opentelemetry/api/build/esm/context/context.js +52 -0
  2127. package/node_modules/@opentelemetry/api/build/esm/context/context.js.map +1 -0
  2128. package/node_modules/@opentelemetry/api/build/esm/context/types.d.ts +52 -0
  2129. package/node_modules/@opentelemetry/api/build/esm/context/types.js +17 -0
  2130. package/node_modules/@opentelemetry/api/build/esm/context/types.js.map +1 -0
  2131. package/node_modules/@opentelemetry/api/build/esm/context-api.d.ts +4 -0
  2132. package/node_modules/@opentelemetry/api/build/esm/context-api.js +21 -0
  2133. package/node_modules/@opentelemetry/api/build/esm/context-api.js.map +1 -0
  2134. package/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.d.ts +20 -0
  2135. package/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js +102 -0
  2136. package/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js.map +1 -0
  2137. package/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.d.ts +38 -0
  2138. package/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js +59 -0
  2139. package/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js.map +1 -0
  2140. package/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.d.ts +3 -0
  2141. package/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js +41 -0
  2142. package/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js.map +1 -0
  2143. package/node_modules/@opentelemetry/api/build/esm/diag/internal/noopLogger.d.ts +8 -0
  2144. package/node_modules/@opentelemetry/api/build/esm/diag/internal/noopLogger.js +31 -0
  2145. package/node_modules/@opentelemetry/api/build/esm/diag/internal/noopLogger.js.map +1 -0
  2146. package/node_modules/@opentelemetry/api/build/esm/diag/types.d.ts +100 -0
  2147. package/node_modules/@opentelemetry/api/build/esm/diag/types.js +41 -0
  2148. package/node_modules/@opentelemetry/api/build/esm/diag/types.js.map +1 -0
  2149. package/node_modules/@opentelemetry/api/build/esm/diag-api.d.ts +9 -0
  2150. package/node_modules/@opentelemetry/api/build/esm/diag-api.js +26 -0
  2151. package/node_modules/@opentelemetry/api/build/esm/diag-api.js.map +1 -0
  2152. package/node_modules/@opentelemetry/api/build/esm/experimental/index.d.ts +3 -0
  2153. package/node_modules/@opentelemetry/api/build/esm/experimental/index.js +17 -0
  2154. package/node_modules/@opentelemetry/api/build/esm/experimental/index.js.map +1 -0
  2155. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredOptions.d.ts +13 -0
  2156. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredOptions.js +17 -0
  2157. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredOptions.js.map +1 -0
  2158. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredTracer.d.ts +64 -0
  2159. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredTracer.js +92 -0
  2160. package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredTracer.js.map +1 -0
  2161. package/node_modules/@opentelemetry/api/build/esm/index.d.ts +54 -0
  2162. package/node_modules/@opentelemetry/api/build/esm/index.js +53 -0
  2163. package/node_modules/@opentelemetry/api/build/esm/index.js.map +1 -0
  2164. package/node_modules/@opentelemetry/api/build/esm/internal/global-utils.d.ts +18 -0
  2165. package/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js +59 -0
  2166. package/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js.map +1 -0
  2167. package/node_modules/@opentelemetry/api/build/esm/internal/semver.d.ts +34 -0
  2168. package/node_modules/@opentelemetry/api/build/esm/internal/semver.js +118 -0
  2169. package/node_modules/@opentelemetry/api/build/esm/internal/semver.js.map +1 -0
  2170. package/node_modules/@opentelemetry/api/build/esm/metrics/Meter.d.ts +110 -0
  2171. package/node_modules/@opentelemetry/api/build/esm/metrics/Meter.js +17 -0
  2172. package/node_modules/@opentelemetry/api/build/esm/metrics/Meter.js.map +1 -0
  2173. package/node_modules/@opentelemetry/api/build/esm/metrics/MeterProvider.d.ts +17 -0
  2174. package/node_modules/@opentelemetry/api/build/esm/metrics/MeterProvider.js +17 -0
  2175. package/node_modules/@opentelemetry/api/build/esm/metrics/MeterProvider.js.map +1 -0
  2176. package/node_modules/@opentelemetry/api/build/esm/metrics/Metric.d.ts +115 -0
  2177. package/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js +22 -0
  2178. package/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js.map +1 -0
  2179. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.d.ts +82 -0
  2180. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js +181 -0
  2181. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js.map +1 -0
  2182. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.d.ts +11 -0
  2183. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js +31 -0
  2184. package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js.map +1 -0
  2185. package/node_modules/@opentelemetry/api/build/esm/metrics/ObservableResult.d.ts +31 -0
  2186. package/node_modules/@opentelemetry/api/build/esm/metrics/ObservableResult.js +17 -0
  2187. package/node_modules/@opentelemetry/api/build/esm/metrics/ObservableResult.js.map +1 -0
  2188. package/node_modules/@opentelemetry/api/build/esm/metrics-api.d.ts +4 -0
  2189. package/node_modules/@opentelemetry/api/build/esm/metrics-api.js +21 -0
  2190. package/node_modules/@opentelemetry/api/build/esm/metrics-api.js.map +1 -0
  2191. package/node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.d.ts +10 -0
  2192. package/node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js +35 -0
  2193. package/node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js.map +1 -0
  2194. package/node_modules/@opentelemetry/api/build/esm/platform/browser/index.d.ts +2 -0
  2195. package/node_modules/@opentelemetry/api/build/esm/platform/browser/index.js +17 -0
  2196. package/node_modules/@opentelemetry/api/build/esm/platform/browser/index.js.map +1 -0
  2197. package/node_modules/@opentelemetry/api/build/esm/platform/index.d.ts +2 -0
  2198. package/node_modules/@opentelemetry/api/build/esm/platform/index.js +17 -0
  2199. package/node_modules/@opentelemetry/api/build/esm/platform/index.js.map +1 -0
  2200. package/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.d.ts +3 -0
  2201. package/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js +19 -0
  2202. package/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js.map +1 -0
  2203. package/node_modules/@opentelemetry/api/build/esm/platform/node/index.d.ts +2 -0
  2204. package/node_modules/@opentelemetry/api/build/esm/platform/node/index.js +17 -0
  2205. package/node_modules/@opentelemetry/api/build/esm/platform/node/index.js.map +1 -0
  2206. package/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.d.ts +13 -0
  2207. package/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js +34 -0
  2208. package/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js.map +1 -0
  2209. package/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.d.ts +84 -0
  2210. package/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js +38 -0
  2211. package/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js.map +1 -0
  2212. package/node_modules/@opentelemetry/api/build/esm/propagation-api.d.ts +4 -0
  2213. package/node_modules/@opentelemetry/api/build/esm/propagation-api.js +21 -0
  2214. package/node_modules/@opentelemetry/api/build/esm/propagation-api.js.map +1 -0
  2215. package/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.d.ts +28 -0
  2216. package/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js +68 -0
  2217. package/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js.map +1 -0
  2218. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.d.ts +14 -0
  2219. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js +76 -0
  2220. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js.map +1 -0
  2221. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.d.ts +13 -0
  2222. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js +32 -0
  2223. package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js.map +1 -0
  2224. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.d.ts +27 -0
  2225. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js +53 -0
  2226. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js.map +1 -0
  2227. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.d.ts +25 -0
  2228. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js +54 -0
  2229. package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js.map +1 -0
  2230. package/node_modules/@opentelemetry/api/build/esm/trace/Sampler.d.ts +31 -0
  2231. package/node_modules/@opentelemetry/api/build/esm/trace/Sampler.js +17 -0
  2232. package/node_modules/@opentelemetry/api/build/esm/trace/Sampler.js.map +1 -0
  2233. package/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.d.ts +49 -0
  2234. package/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js +39 -0
  2235. package/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js.map +1 -0
  2236. package/node_modules/@opentelemetry/api/build/esm/trace/SpanOptions.d.ts +23 -0
  2237. package/node_modules/@opentelemetry/api/build/esm/trace/SpanOptions.js +17 -0
  2238. package/node_modules/@opentelemetry/api/build/esm/trace/SpanOptions.js.map +1 -0
  2239. package/node_modules/@opentelemetry/api/build/esm/trace/attributes.d.ts +10 -0
  2240. package/node_modules/@opentelemetry/api/build/esm/trace/attributes.js +17 -0
  2241. package/node_modules/@opentelemetry/api/build/esm/trace/attributes.js.map +1 -0
  2242. package/node_modules/@opentelemetry/api/build/esm/trace/context-utils.d.ts +41 -0
  2243. package/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js +73 -0
  2244. package/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js.map +1 -0
  2245. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.d.ts +22 -0
  2246. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js +102 -0
  2247. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js.map +1 -0
  2248. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.d.ts +15 -0
  2249. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js +41 -0
  2250. package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js.map +1 -0
  2251. package/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.d.ts +3 -0
  2252. package/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js +20 -0
  2253. package/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js.map +1 -0
  2254. package/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.d.ts +5 -0
  2255. package/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js +24 -0
  2256. package/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js.map +1 -0
  2257. package/node_modules/@opentelemetry/api/build/esm/trace/link.d.ts +26 -0
  2258. package/node_modules/@opentelemetry/api/build/esm/trace/link.js +17 -0
  2259. package/node_modules/@opentelemetry/api/build/esm/trace/link.js.map +1 -0
  2260. package/node_modules/@opentelemetry/api/build/esm/trace/span.d.ts +120 -0
  2261. package/node_modules/@opentelemetry/api/build/esm/trace/span.js +17 -0
  2262. package/node_modules/@opentelemetry/api/build/esm/trace/span.js.map +1 -0
  2263. package/node_modules/@opentelemetry/api/build/esm/trace/span_context.d.ts +53 -0
  2264. package/node_modules/@opentelemetry/api/build/esm/trace/span_context.js +17 -0
  2265. package/node_modules/@opentelemetry/api/build/esm/trace/span_context.js.map +1 -0
  2266. package/node_modules/@opentelemetry/api/build/esm/trace/span_kind.d.ts +27 -0
  2267. package/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js +43 -0
  2268. package/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js.map +1 -0
  2269. package/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.d.ts +17 -0
  2270. package/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js +42 -0
  2271. package/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js.map +1 -0
  2272. package/node_modules/@opentelemetry/api/build/esm/trace/status.d.ts +25 -0
  2273. package/node_modules/@opentelemetry/api/build/esm/trace/status.js +20 -0
  2274. package/node_modules/@opentelemetry/api/build/esm/trace/status.js.map +1 -0
  2275. package/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.d.ts +7 -0
  2276. package/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js +23 -0
  2277. package/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js.map +1 -0
  2278. package/node_modules/@opentelemetry/api/build/esm/trace/trace_state.d.ts +38 -0
  2279. package/node_modules/@opentelemetry/api/build/esm/trace/trace_state.js +17 -0
  2280. package/node_modules/@opentelemetry/api/build/esm/trace/trace_state.js.map +1 -0
  2281. package/node_modules/@opentelemetry/api/build/esm/trace/tracer.d.ts +71 -0
  2282. package/node_modules/@opentelemetry/api/build/esm/trace/tracer.js +17 -0
  2283. package/node_modules/@opentelemetry/api/build/esm/trace/tracer.js.map +1 -0
  2284. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_options.d.ts +10 -0
  2285. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_options.js +17 -0
  2286. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_options.js.map +1 -0
  2287. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_provider.d.ts +21 -0
  2288. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_provider.js +17 -0
  2289. package/node_modules/@opentelemetry/api/build/esm/trace/tracer_provider.js.map +1 -0
  2290. package/node_modules/@opentelemetry/api/build/esm/trace-api.d.ts +4 -0
  2291. package/node_modules/@opentelemetry/api/build/esm/trace-api.js +21 -0
  2292. package/node_modules/@opentelemetry/api/build/esm/trace-api.js.map +1 -0
  2293. package/node_modules/@opentelemetry/api/build/esm/version.d.ts +2 -0
  2294. package/node_modules/@opentelemetry/api/build/esm/version.js +18 -0
  2295. package/node_modules/@opentelemetry/api/build/esm/version.js.map +1 -0
  2296. package/node_modules/@opentelemetry/api/build/esnext/api/context.d.ts +41 -0
  2297. package/node_modules/@opentelemetry/api/build/esnext/api/context.js +77 -0
  2298. package/node_modules/@opentelemetry/api/build/esnext/api/context.js.map +1 -0
  2299. package/node_modules/@opentelemetry/api/build/esnext/api/diag.d.ts +30 -0
  2300. package/node_modules/@opentelemetry/api/build/esnext/api/diag.js +89 -0
  2301. package/node_modules/@opentelemetry/api/build/esnext/api/diag.js.map +1 -0
  2302. package/node_modules/@opentelemetry/api/build/esnext/api/metrics.d.ts +28 -0
  2303. package/node_modules/@opentelemetry/api/build/esnext/api/metrics.js +57 -0
  2304. package/node_modules/@opentelemetry/api/build/esnext/api/metrics.js.map +1 -0
  2305. package/node_modules/@opentelemetry/api/build/esnext/api/propagation.d.ts +49 -0
  2306. package/node_modules/@opentelemetry/api/build/esnext/api/propagation.js +85 -0
  2307. package/node_modules/@opentelemetry/api/build/esnext/api/propagation.js.map +1 -0
  2308. package/node_modules/@opentelemetry/api/build/esnext/api/trace.d.ts +40 -0
  2309. package/node_modules/@opentelemetry/api/build/esnext/api/trace.js +75 -0
  2310. package/node_modules/@opentelemetry/api/build/esnext/api/trace.js.map +1 -0
  2311. package/node_modules/@opentelemetry/api/build/esnext/baggage/context-helpers.d.ts +29 -0
  2312. package/node_modules/@opentelemetry/api/build/esnext/baggage/context-helpers.js +56 -0
  2313. package/node_modules/@opentelemetry/api/build/esnext/baggage/context-helpers.js.map +1 -0
  2314. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/baggage-impl.d.ts +12 -0
  2315. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/baggage-impl.js +51 -0
  2316. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/baggage-impl.js.map +1 -0
  2317. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/symbol.d.ts +5 -0
  2318. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/symbol.js +20 -0
  2319. package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/symbol.js.map +1 -0
  2320. package/node_modules/@opentelemetry/api/build/esnext/baggage/types.d.ts +60 -0
  2321. package/node_modules/@opentelemetry/api/build/esnext/baggage/types.js +17 -0
  2322. package/node_modules/@opentelemetry/api/build/esnext/baggage/types.js.map +1 -0
  2323. package/node_modules/@opentelemetry/api/build/esnext/baggage/utils.d.ts +15 -0
  2324. package/node_modules/@opentelemetry/api/build/esnext/baggage/utils.js +46 -0
  2325. package/node_modules/@opentelemetry/api/build/esnext/baggage/utils.js.map +1 -0
  2326. package/node_modules/@opentelemetry/api/build/esnext/common/Attributes.d.ts +15 -0
  2327. package/node_modules/@opentelemetry/api/build/esnext/common/Attributes.js +17 -0
  2328. package/node_modules/@opentelemetry/api/build/esnext/common/Attributes.js.map +1 -0
  2329. package/node_modules/@opentelemetry/api/build/esnext/common/Exception.d.ts +26 -0
  2330. package/node_modules/@opentelemetry/api/build/esnext/common/Exception.js +17 -0
  2331. package/node_modules/@opentelemetry/api/build/esnext/common/Exception.js.map +1 -0
  2332. package/node_modules/@opentelemetry/api/build/esnext/common/Time.d.ts +20 -0
  2333. package/node_modules/@opentelemetry/api/build/esnext/common/Time.js +2 -0
  2334. package/node_modules/@opentelemetry/api/build/esnext/common/Time.js.map +1 -0
  2335. package/node_modules/@opentelemetry/api/build/esnext/context/NoopContextManager.d.ts +9 -0
  2336. package/node_modules/@opentelemetry/api/build/esnext/context/NoopContextManager.js +34 -0
  2337. package/node_modules/@opentelemetry/api/build/esnext/context/NoopContextManager.js.map +1 -0
  2338. package/node_modules/@opentelemetry/api/build/esnext/context/context.d.ts +6 -0
  2339. package/node_modules/@opentelemetry/api/build/esnext/context/context.js +51 -0
  2340. package/node_modules/@opentelemetry/api/build/esnext/context/context.js.map +1 -0
  2341. package/node_modules/@opentelemetry/api/build/esnext/context/types.d.ts +52 -0
  2342. package/node_modules/@opentelemetry/api/build/esnext/context/types.js +17 -0
  2343. package/node_modules/@opentelemetry/api/build/esnext/context/types.js.map +1 -0
  2344. package/node_modules/@opentelemetry/api/build/esnext/context-api.d.ts +4 -0
  2345. package/node_modules/@opentelemetry/api/build/esnext/context-api.js +21 -0
  2346. package/node_modules/@opentelemetry/api/build/esnext/context-api.js.map +1 -0
  2347. package/node_modules/@opentelemetry/api/build/esnext/diag/ComponentLogger.d.ts +20 -0
  2348. package/node_modules/@opentelemetry/api/build/esnext/diag/ComponentLogger.js +55 -0
  2349. package/node_modules/@opentelemetry/api/build/esnext/diag/ComponentLogger.js.map +1 -0
  2350. package/node_modules/@opentelemetry/api/build/esnext/diag/consoleLogger.d.ts +38 -0
  2351. package/node_modules/@opentelemetry/api/build/esnext/diag/consoleLogger.js +53 -0
  2352. package/node_modules/@opentelemetry/api/build/esnext/diag/consoleLogger.js.map +1 -0
  2353. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/logLevelLogger.d.ts +3 -0
  2354. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/logLevelLogger.js +41 -0
  2355. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/logLevelLogger.js.map +1 -0
  2356. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/noopLogger.d.ts +8 -0
  2357. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/noopLogger.js +31 -0
  2358. package/node_modules/@opentelemetry/api/build/esnext/diag/internal/noopLogger.js.map +1 -0
  2359. package/node_modules/@opentelemetry/api/build/esnext/diag/types.d.ts +100 -0
  2360. package/node_modules/@opentelemetry/api/build/esnext/diag/types.js +41 -0
  2361. package/node_modules/@opentelemetry/api/build/esnext/diag/types.js.map +1 -0
  2362. package/node_modules/@opentelemetry/api/build/esnext/diag-api.d.ts +9 -0
  2363. package/node_modules/@opentelemetry/api/build/esnext/diag-api.js +26 -0
  2364. package/node_modules/@opentelemetry/api/build/esnext/diag-api.js.map +1 -0
  2365. package/node_modules/@opentelemetry/api/build/esnext/experimental/index.d.ts +3 -0
  2366. package/node_modules/@opentelemetry/api/build/esnext/experimental/index.js +17 -0
  2367. package/node_modules/@opentelemetry/api/build/esnext/experimental/index.js.map +1 -0
  2368. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredOptions.d.ts +13 -0
  2369. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredOptions.js +17 -0
  2370. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredOptions.js.map +1 -0
  2371. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredTracer.d.ts +64 -0
  2372. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredTracer.js +88 -0
  2373. package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredTracer.js.map +1 -0
  2374. package/node_modules/@opentelemetry/api/build/esnext/index.d.ts +54 -0
  2375. package/node_modules/@opentelemetry/api/build/esnext/index.js +53 -0
  2376. package/node_modules/@opentelemetry/api/build/esnext/index.js.map +1 -0
  2377. package/node_modules/@opentelemetry/api/build/esnext/internal/global-utils.d.ts +18 -0
  2378. package/node_modules/@opentelemetry/api/build/esnext/internal/global-utils.js +58 -0
  2379. package/node_modules/@opentelemetry/api/build/esnext/internal/global-utils.js.map +1 -0
  2380. package/node_modules/@opentelemetry/api/build/esnext/internal/semver.d.ts +34 -0
  2381. package/node_modules/@opentelemetry/api/build/esnext/internal/semver.js +118 -0
  2382. package/node_modules/@opentelemetry/api/build/esnext/internal/semver.js.map +1 -0
  2383. package/node_modules/@opentelemetry/api/build/esnext/metrics/Meter.d.ts +110 -0
  2384. package/node_modules/@opentelemetry/api/build/esnext/metrics/Meter.js +17 -0
  2385. package/node_modules/@opentelemetry/api/build/esnext/metrics/Meter.js.map +1 -0
  2386. package/node_modules/@opentelemetry/api/build/esnext/metrics/MeterProvider.d.ts +17 -0
  2387. package/node_modules/@opentelemetry/api/build/esnext/metrics/MeterProvider.js +17 -0
  2388. package/node_modules/@opentelemetry/api/build/esnext/metrics/MeterProvider.js.map +1 -0
  2389. package/node_modules/@opentelemetry/api/build/esnext/metrics/Metric.d.ts +115 -0
  2390. package/node_modules/@opentelemetry/api/build/esnext/metrics/Metric.js +22 -0
  2391. package/node_modules/@opentelemetry/api/build/esnext/metrics/Metric.js.map +1 -0
  2392. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeter.d.ts +82 -0
  2393. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeter.js +113 -0
  2394. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeter.js.map +1 -0
  2395. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeterProvider.d.ts +11 -0
  2396. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeterProvider.js +27 -0
  2397. package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeterProvider.js.map +1 -0
  2398. package/node_modules/@opentelemetry/api/build/esnext/metrics/ObservableResult.d.ts +31 -0
  2399. package/node_modules/@opentelemetry/api/build/esnext/metrics/ObservableResult.js +17 -0
  2400. package/node_modules/@opentelemetry/api/build/esnext/metrics/ObservableResult.js.map +1 -0
  2401. package/node_modules/@opentelemetry/api/build/esnext/metrics-api.d.ts +4 -0
  2402. package/node_modules/@opentelemetry/api/build/esnext/metrics-api.js +21 -0
  2403. package/node_modules/@opentelemetry/api/build/esnext/metrics-api.js.map +1 -0
  2404. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/globalThis.d.ts +10 -0
  2405. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/globalThis.js +35 -0
  2406. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/globalThis.js.map +1 -0
  2407. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/index.d.ts +2 -0
  2408. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/index.js +17 -0
  2409. package/node_modules/@opentelemetry/api/build/esnext/platform/browser/index.js.map +1 -0
  2410. package/node_modules/@opentelemetry/api/build/esnext/platform/index.d.ts +2 -0
  2411. package/node_modules/@opentelemetry/api/build/esnext/platform/index.js +17 -0
  2412. package/node_modules/@opentelemetry/api/build/esnext/platform/index.js.map +1 -0
  2413. package/node_modules/@opentelemetry/api/build/esnext/platform/node/globalThis.d.ts +3 -0
  2414. package/node_modules/@opentelemetry/api/build/esnext/platform/node/globalThis.js +19 -0
  2415. package/node_modules/@opentelemetry/api/build/esnext/platform/node/globalThis.js.map +1 -0
  2416. package/node_modules/@opentelemetry/api/build/esnext/platform/node/index.d.ts +2 -0
  2417. package/node_modules/@opentelemetry/api/build/esnext/platform/node/index.js +17 -0
  2418. package/node_modules/@opentelemetry/api/build/esnext/platform/node/index.js.map +1 -0
  2419. package/node_modules/@opentelemetry/api/build/esnext/propagation/NoopTextMapPropagator.d.ts +13 -0
  2420. package/node_modules/@opentelemetry/api/build/esnext/propagation/NoopTextMapPropagator.js +30 -0
  2421. package/node_modules/@opentelemetry/api/build/esnext/propagation/NoopTextMapPropagator.js.map +1 -0
  2422. package/node_modules/@opentelemetry/api/build/esnext/propagation/TextMapPropagator.d.ts +84 -0
  2423. package/node_modules/@opentelemetry/api/build/esnext/propagation/TextMapPropagator.js +38 -0
  2424. package/node_modules/@opentelemetry/api/build/esnext/propagation/TextMapPropagator.js.map +1 -0
  2425. package/node_modules/@opentelemetry/api/build/esnext/propagation-api.d.ts +4 -0
  2426. package/node_modules/@opentelemetry/api/build/esnext/propagation-api.js +21 -0
  2427. package/node_modules/@opentelemetry/api/build/esnext/propagation-api.js.map +1 -0
  2428. package/node_modules/@opentelemetry/api/build/esnext/trace/NonRecordingSpan.d.ts +28 -0
  2429. package/node_modules/@opentelemetry/api/build/esnext/trace/NonRecordingSpan.js +65 -0
  2430. package/node_modules/@opentelemetry/api/build/esnext/trace/NonRecordingSpan.js.map +1 -0
  2431. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracer.d.ts +14 -0
  2432. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracer.js +71 -0
  2433. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracer.js.map +1 -0
  2434. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracerProvider.d.ts +13 -0
  2435. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracerProvider.js +28 -0
  2436. package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracerProvider.js.map +1 -0
  2437. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracer.d.ts +27 -0
  2438. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracer.js +51 -0
  2439. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracer.js.map +1 -0
  2440. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracerProvider.d.ts +25 -0
  2441. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracerProvider.js +50 -0
  2442. package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracerProvider.js.map +1 -0
  2443. package/node_modules/@opentelemetry/api/build/esnext/trace/Sampler.d.ts +31 -0
  2444. package/node_modules/@opentelemetry/api/build/esnext/trace/Sampler.js +17 -0
  2445. package/node_modules/@opentelemetry/api/build/esnext/trace/Sampler.js.map +1 -0
  2446. package/node_modules/@opentelemetry/api/build/esnext/trace/SamplingResult.d.ts +49 -0
  2447. package/node_modules/@opentelemetry/api/build/esnext/trace/SamplingResult.js +39 -0
  2448. package/node_modules/@opentelemetry/api/build/esnext/trace/SamplingResult.js.map +1 -0
  2449. package/node_modules/@opentelemetry/api/build/esnext/trace/SpanOptions.d.ts +23 -0
  2450. package/node_modules/@opentelemetry/api/build/esnext/trace/SpanOptions.js +17 -0
  2451. package/node_modules/@opentelemetry/api/build/esnext/trace/SpanOptions.js.map +1 -0
  2452. package/node_modules/@opentelemetry/api/build/esnext/trace/attributes.d.ts +10 -0
  2453. package/node_modules/@opentelemetry/api/build/esnext/trace/attributes.js +17 -0
  2454. package/node_modules/@opentelemetry/api/build/esnext/trace/attributes.js.map +1 -0
  2455. package/node_modules/@opentelemetry/api/build/esnext/trace/context-utils.d.ts +41 -0
  2456. package/node_modules/@opentelemetry/api/build/esnext/trace/context-utils.js +73 -0
  2457. package/node_modules/@opentelemetry/api/build/esnext/trace/context-utils.js.map +1 -0
  2458. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-impl.d.ts +22 -0
  2459. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-impl.js +99 -0
  2460. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-impl.js.map +1 -0
  2461. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-validators.d.ts +15 -0
  2462. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-validators.js +41 -0
  2463. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-validators.js.map +1 -0
  2464. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/utils.d.ts +3 -0
  2465. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/utils.js +20 -0
  2466. package/node_modules/@opentelemetry/api/build/esnext/trace/internal/utils.js.map +1 -0
  2467. package/node_modules/@opentelemetry/api/build/esnext/trace/invalid-span-constants.d.ts +5 -0
  2468. package/node_modules/@opentelemetry/api/build/esnext/trace/invalid-span-constants.js +24 -0
  2469. package/node_modules/@opentelemetry/api/build/esnext/trace/invalid-span-constants.js.map +1 -0
  2470. package/node_modules/@opentelemetry/api/build/esnext/trace/link.d.ts +26 -0
  2471. package/node_modules/@opentelemetry/api/build/esnext/trace/link.js +17 -0
  2472. package/node_modules/@opentelemetry/api/build/esnext/trace/link.js.map +1 -0
  2473. package/node_modules/@opentelemetry/api/build/esnext/trace/span.d.ts +120 -0
  2474. package/node_modules/@opentelemetry/api/build/esnext/trace/span.js +17 -0
  2475. package/node_modules/@opentelemetry/api/build/esnext/trace/span.js.map +1 -0
  2476. package/node_modules/@opentelemetry/api/build/esnext/trace/span_context.d.ts +53 -0
  2477. package/node_modules/@opentelemetry/api/build/esnext/trace/span_context.js +17 -0
  2478. package/node_modules/@opentelemetry/api/build/esnext/trace/span_context.js.map +1 -0
  2479. package/node_modules/@opentelemetry/api/build/esnext/trace/span_kind.d.ts +27 -0
  2480. package/node_modules/@opentelemetry/api/build/esnext/trace/span_kind.js +43 -0
  2481. package/node_modules/@opentelemetry/api/build/esnext/trace/span_kind.js.map +1 -0
  2482. package/node_modules/@opentelemetry/api/build/esnext/trace/spancontext-utils.d.ts +17 -0
  2483. package/node_modules/@opentelemetry/api/build/esnext/trace/spancontext-utils.js +42 -0
  2484. package/node_modules/@opentelemetry/api/build/esnext/trace/spancontext-utils.js.map +1 -0
  2485. package/node_modules/@opentelemetry/api/build/esnext/trace/status.d.ts +25 -0
  2486. package/node_modules/@opentelemetry/api/build/esnext/trace/status.js +20 -0
  2487. package/node_modules/@opentelemetry/api/build/esnext/trace/status.js.map +1 -0
  2488. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_flags.d.ts +7 -0
  2489. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_flags.js +23 -0
  2490. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_flags.js.map +1 -0
  2491. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_state.d.ts +38 -0
  2492. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_state.js +17 -0
  2493. package/node_modules/@opentelemetry/api/build/esnext/trace/trace_state.js.map +1 -0
  2494. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer.d.ts +71 -0
  2495. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer.js +17 -0
  2496. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer.js.map +1 -0
  2497. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_options.d.ts +10 -0
  2498. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_options.js +17 -0
  2499. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_options.js.map +1 -0
  2500. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_provider.d.ts +21 -0
  2501. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_provider.js +17 -0
  2502. package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_provider.js.map +1 -0
  2503. package/node_modules/@opentelemetry/api/build/esnext/trace-api.d.ts +4 -0
  2504. package/node_modules/@opentelemetry/api/build/esnext/trace-api.js +21 -0
  2505. package/node_modules/@opentelemetry/api/build/esnext/trace-api.js.map +1 -0
  2506. package/node_modules/@opentelemetry/api/build/esnext/version.d.ts +2 -0
  2507. package/node_modules/@opentelemetry/api/build/esnext/version.js +18 -0
  2508. package/node_modules/@opentelemetry/api/build/esnext/version.js.map +1 -0
  2509. package/node_modules/@opentelemetry/api/build/src/api/context.d.ts +41 -0
  2510. package/node_modules/@opentelemetry/api/build/src/api/context.js +81 -0
  2511. package/node_modules/@opentelemetry/api/build/src/api/context.js.map +1 -0
  2512. package/node_modules/@opentelemetry/api/build/src/api/diag.d.ts +30 -0
  2513. package/node_modules/@opentelemetry/api/build/src/api/diag.js +93 -0
  2514. package/node_modules/@opentelemetry/api/build/src/api/diag.js.map +1 -0
  2515. package/node_modules/@opentelemetry/api/build/src/api/metrics.d.ts +28 -0
  2516. package/node_modules/@opentelemetry/api/build/src/api/metrics.js +61 -0
  2517. package/node_modules/@opentelemetry/api/build/src/api/metrics.js.map +1 -0
  2518. package/node_modules/@opentelemetry/api/build/src/api/propagation.d.ts +49 -0
  2519. package/node_modules/@opentelemetry/api/build/src/api/propagation.js +89 -0
  2520. package/node_modules/@opentelemetry/api/build/src/api/propagation.js.map +1 -0
  2521. package/node_modules/@opentelemetry/api/build/src/api/trace.d.ts +40 -0
  2522. package/node_modules/@opentelemetry/api/build/src/api/trace.js +79 -0
  2523. package/node_modules/@opentelemetry/api/build/src/api/trace.js.map +1 -0
  2524. package/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.d.ts +29 -0
  2525. package/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js +63 -0
  2526. package/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js.map +1 -0
  2527. package/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.d.ts +12 -0
  2528. package/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js +55 -0
  2529. package/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js.map +1 -0
  2530. package/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.d.ts +5 -0
  2531. package/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js +23 -0
  2532. package/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js.map +1 -0
  2533. package/node_modules/@opentelemetry/api/build/src/baggage/types.d.ts +60 -0
  2534. package/node_modules/@opentelemetry/api/build/src/baggage/types.js +18 -0
  2535. package/node_modules/@opentelemetry/api/build/src/baggage/types.js.map +1 -0
  2536. package/node_modules/@opentelemetry/api/build/src/baggage/utils.d.ts +15 -0
  2537. package/node_modules/@opentelemetry/api/build/src/baggage/utils.js +51 -0
  2538. package/node_modules/@opentelemetry/api/build/src/baggage/utils.js.map +1 -0
  2539. package/node_modules/@opentelemetry/api/build/src/common/Attributes.d.ts +15 -0
  2540. package/node_modules/@opentelemetry/api/build/src/common/Attributes.js +18 -0
  2541. package/node_modules/@opentelemetry/api/build/src/common/Attributes.js.map +1 -0
  2542. package/node_modules/@opentelemetry/api/build/src/common/Exception.d.ts +26 -0
  2543. package/node_modules/@opentelemetry/api/build/src/common/Exception.js +18 -0
  2544. package/node_modules/@opentelemetry/api/build/src/common/Exception.js.map +1 -0
  2545. package/node_modules/@opentelemetry/api/build/src/common/Time.d.ts +20 -0
  2546. package/node_modules/@opentelemetry/api/build/src/common/Time.js +3 -0
  2547. package/node_modules/@opentelemetry/api/build/src/common/Time.js.map +1 -0
  2548. package/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.d.ts +9 -0
  2549. package/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js +38 -0
  2550. package/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js.map +1 -0
  2551. package/node_modules/@opentelemetry/api/build/src/context/context.d.ts +6 -0
  2552. package/node_modules/@opentelemetry/api/build/src/context/context.js +55 -0
  2553. package/node_modules/@opentelemetry/api/build/src/context/context.js.map +1 -0
  2554. package/node_modules/@opentelemetry/api/build/src/context/types.d.ts +52 -0
  2555. package/node_modules/@opentelemetry/api/build/src/context/types.js +18 -0
  2556. package/node_modules/@opentelemetry/api/build/src/context/types.js.map +1 -0
  2557. package/node_modules/@opentelemetry/api/build/src/context-api.d.ts +4 -0
  2558. package/node_modules/@opentelemetry/api/build/src/context-api.js +24 -0
  2559. package/node_modules/@opentelemetry/api/build/src/context-api.js.map +1 -0
  2560. package/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.d.ts +20 -0
  2561. package/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js +59 -0
  2562. package/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js.map +1 -0
  2563. package/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.d.ts +38 -0
  2564. package/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js +57 -0
  2565. package/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js.map +1 -0
  2566. package/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.d.ts +3 -0
  2567. package/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js +45 -0
  2568. package/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js.map +1 -0
  2569. package/node_modules/@opentelemetry/api/build/src/diag/internal/noopLogger.d.ts +8 -0
  2570. package/node_modules/@opentelemetry/api/build/src/diag/internal/noopLogger.js +35 -0
  2571. package/node_modules/@opentelemetry/api/build/src/diag/internal/noopLogger.js.map +1 -0
  2572. package/node_modules/@opentelemetry/api/build/src/diag/types.d.ts +100 -0
  2573. package/node_modules/@opentelemetry/api/build/src/diag/types.js +44 -0
  2574. package/node_modules/@opentelemetry/api/build/src/diag/types.js.map +1 -0
  2575. package/node_modules/@opentelemetry/api/build/src/diag-api.d.ts +9 -0
  2576. package/node_modules/@opentelemetry/api/build/src/diag-api.js +29 -0
  2577. package/node_modules/@opentelemetry/api/build/src/diag-api.js.map +1 -0
  2578. package/node_modules/@opentelemetry/api/build/src/experimental/index.d.ts +3 -0
  2579. package/node_modules/@opentelemetry/api/build/src/experimental/index.js +22 -0
  2580. package/node_modules/@opentelemetry/api/build/src/experimental/index.js.map +1 -0
  2581. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredOptions.d.ts +13 -0
  2582. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredOptions.js +18 -0
  2583. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredOptions.js.map +1 -0
  2584. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredTracer.d.ts +64 -0
  2585. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredTracer.js +93 -0
  2586. package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredTracer.js.map +1 -0
  2587. package/node_modules/@opentelemetry/api/build/src/index.d.ts +54 -0
  2588. package/node_modules/@opentelemetry/api/build/src/index.js +81 -0
  2589. package/node_modules/@opentelemetry/api/build/src/index.js.map +1 -0
  2590. package/node_modules/@opentelemetry/api/build/src/internal/global-utils.d.ts +18 -0
  2591. package/node_modules/@opentelemetry/api/build/src/internal/global-utils.js +64 -0
  2592. package/node_modules/@opentelemetry/api/build/src/internal/global-utils.js.map +1 -0
  2593. package/node_modules/@opentelemetry/api/build/src/internal/semver.d.ts +34 -0
  2594. package/node_modules/@opentelemetry/api/build/src/internal/semver.js +122 -0
  2595. package/node_modules/@opentelemetry/api/build/src/internal/semver.js.map +1 -0
  2596. package/node_modules/@opentelemetry/api/build/src/metrics/Meter.d.ts +110 -0
  2597. package/node_modules/@opentelemetry/api/build/src/metrics/Meter.js +18 -0
  2598. package/node_modules/@opentelemetry/api/build/src/metrics/Meter.js.map +1 -0
  2599. package/node_modules/@opentelemetry/api/build/src/metrics/MeterProvider.d.ts +17 -0
  2600. package/node_modules/@opentelemetry/api/build/src/metrics/MeterProvider.js +18 -0
  2601. package/node_modules/@opentelemetry/api/build/src/metrics/MeterProvider.js.map +1 -0
  2602. package/node_modules/@opentelemetry/api/build/src/metrics/Metric.d.ts +115 -0
  2603. package/node_modules/@opentelemetry/api/build/src/metrics/Metric.js +25 -0
  2604. package/node_modules/@opentelemetry/api/build/src/metrics/Metric.js.map +1 -0
  2605. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.d.ts +82 -0
  2606. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js +127 -0
  2607. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js.map +1 -0
  2608. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.d.ts +11 -0
  2609. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js +31 -0
  2610. package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js.map +1 -0
  2611. package/node_modules/@opentelemetry/api/build/src/metrics/ObservableResult.d.ts +31 -0
  2612. package/node_modules/@opentelemetry/api/build/src/metrics/ObservableResult.js +18 -0
  2613. package/node_modules/@opentelemetry/api/build/src/metrics/ObservableResult.js.map +1 -0
  2614. package/node_modules/@opentelemetry/api/build/src/metrics-api.d.ts +4 -0
  2615. package/node_modules/@opentelemetry/api/build/src/metrics-api.js +24 -0
  2616. package/node_modules/@opentelemetry/api/build/src/metrics-api.js.map +1 -0
  2617. package/node_modules/@opentelemetry/api/build/src/platform/browser/globalThis.d.ts +10 -0
  2618. package/node_modules/@opentelemetry/api/build/src/platform/browser/globalThis.js +38 -0
  2619. package/node_modules/@opentelemetry/api/build/src/platform/browser/globalThis.js.map +1 -0
  2620. package/node_modules/@opentelemetry/api/build/src/platform/browser/index.d.ts +2 -0
  2621. package/node_modules/@opentelemetry/api/build/src/platform/browser/index.js +29 -0
  2622. package/node_modules/@opentelemetry/api/build/src/platform/browser/index.js.map +1 -0
  2623. package/node_modules/@opentelemetry/api/build/src/platform/index.d.ts +2 -0
  2624. package/node_modules/@opentelemetry/api/build/src/platform/index.js +29 -0
  2625. package/node_modules/@opentelemetry/api/build/src/platform/index.js.map +1 -0
  2626. package/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.d.ts +3 -0
  2627. package/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js +22 -0
  2628. package/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js.map +1 -0
  2629. package/node_modules/@opentelemetry/api/build/src/platform/node/index.d.ts +2 -0
  2630. package/node_modules/@opentelemetry/api/build/src/platform/node/index.js +29 -0
  2631. package/node_modules/@opentelemetry/api/build/src/platform/node/index.js.map +1 -0
  2632. package/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.d.ts +13 -0
  2633. package/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js +34 -0
  2634. package/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js.map +1 -0
  2635. package/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.d.ts +84 -0
  2636. package/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js +41 -0
  2637. package/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js.map +1 -0
  2638. package/node_modules/@opentelemetry/api/build/src/propagation-api.d.ts +4 -0
  2639. package/node_modules/@opentelemetry/api/build/src/propagation-api.js +24 -0
  2640. package/node_modules/@opentelemetry/api/build/src/propagation-api.js.map +1 -0
  2641. package/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.d.ts +28 -0
  2642. package/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js +69 -0
  2643. package/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js.map +1 -0
  2644. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.d.ts +14 -0
  2645. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js +75 -0
  2646. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js.map +1 -0
  2647. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.d.ts +13 -0
  2648. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js +32 -0
  2649. package/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js.map +1 -0
  2650. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.d.ts +27 -0
  2651. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js +55 -0
  2652. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js.map +1 -0
  2653. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.d.ts +25 -0
  2654. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js +54 -0
  2655. package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js.map +1 -0
  2656. package/node_modules/@opentelemetry/api/build/src/trace/Sampler.d.ts +31 -0
  2657. package/node_modules/@opentelemetry/api/build/src/trace/Sampler.js +18 -0
  2658. package/node_modules/@opentelemetry/api/build/src/trace/Sampler.js.map +1 -0
  2659. package/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.d.ts +49 -0
  2660. package/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js +42 -0
  2661. package/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js.map +1 -0
  2662. package/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts +23 -0
  2663. package/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js +18 -0
  2664. package/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js.map +1 -0
  2665. package/node_modules/@opentelemetry/api/build/src/trace/attributes.d.ts +10 -0
  2666. package/node_modules/@opentelemetry/api/build/src/trace/attributes.js +18 -0
  2667. package/node_modules/@opentelemetry/api/build/src/trace/attributes.js.map +1 -0
  2668. package/node_modules/@opentelemetry/api/build/src/trace/context-utils.d.ts +41 -0
  2669. package/node_modules/@opentelemetry/api/build/src/trace/context-utils.js +82 -0
  2670. package/node_modules/@opentelemetry/api/build/src/trace/context-utils.js.map +1 -0
  2671. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.d.ts +22 -0
  2672. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js +103 -0
  2673. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js.map +1 -0
  2674. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.d.ts +15 -0
  2675. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js +46 -0
  2676. package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js.map +1 -0
  2677. package/node_modules/@opentelemetry/api/build/src/trace/internal/utils.d.ts +3 -0
  2678. package/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js +24 -0
  2679. package/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js.map +1 -0
  2680. package/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.d.ts +5 -0
  2681. package/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js +27 -0
  2682. package/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js.map +1 -0
  2683. package/node_modules/@opentelemetry/api/build/src/trace/link.d.ts +26 -0
  2684. package/node_modules/@opentelemetry/api/build/src/trace/link.js +18 -0
  2685. package/node_modules/@opentelemetry/api/build/src/trace/link.js.map +1 -0
  2686. package/node_modules/@opentelemetry/api/build/src/trace/span.d.ts +120 -0
  2687. package/node_modules/@opentelemetry/api/build/src/trace/span.js +18 -0
  2688. package/node_modules/@opentelemetry/api/build/src/trace/span.js.map +1 -0
  2689. package/node_modules/@opentelemetry/api/build/src/trace/span_context.d.ts +53 -0
  2690. package/node_modules/@opentelemetry/api/build/src/trace/span_context.js +18 -0
  2691. package/node_modules/@opentelemetry/api/build/src/trace/span_context.js.map +1 -0
  2692. package/node_modules/@opentelemetry/api/build/src/trace/span_kind.d.ts +27 -0
  2693. package/node_modules/@opentelemetry/api/build/src/trace/span_kind.js +46 -0
  2694. package/node_modules/@opentelemetry/api/build/src/trace/span_kind.js.map +1 -0
  2695. package/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.d.ts +17 -0
  2696. package/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js +49 -0
  2697. package/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js.map +1 -0
  2698. package/node_modules/@opentelemetry/api/build/src/trace/status.d.ts +25 -0
  2699. package/node_modules/@opentelemetry/api/build/src/trace/status.js +23 -0
  2700. package/node_modules/@opentelemetry/api/build/src/trace/status.js.map +1 -0
  2701. package/node_modules/@opentelemetry/api/build/src/trace/trace_flags.d.ts +7 -0
  2702. package/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js +26 -0
  2703. package/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js.map +1 -0
  2704. package/node_modules/@opentelemetry/api/build/src/trace/trace_state.d.ts +38 -0
  2705. package/node_modules/@opentelemetry/api/build/src/trace/trace_state.js +18 -0
  2706. package/node_modules/@opentelemetry/api/build/src/trace/trace_state.js.map +1 -0
  2707. package/node_modules/@opentelemetry/api/build/src/trace/tracer.d.ts +71 -0
  2708. package/node_modules/@opentelemetry/api/build/src/trace/tracer.js +18 -0
  2709. package/node_modules/@opentelemetry/api/build/src/trace/tracer.js.map +1 -0
  2710. package/node_modules/@opentelemetry/api/build/src/trace/tracer_options.d.ts +10 -0
  2711. package/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js +18 -0
  2712. package/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js.map +1 -0
  2713. package/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.d.ts +21 -0
  2714. package/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js +18 -0
  2715. package/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js.map +1 -0
  2716. package/node_modules/@opentelemetry/api/build/src/trace-api.d.ts +4 -0
  2717. package/node_modules/@opentelemetry/api/build/src/trace-api.js +24 -0
  2718. package/node_modules/@opentelemetry/api/build/src/trace-api.js.map +1 -0
  2719. package/node_modules/@opentelemetry/api/build/src/version.d.ts +2 -0
  2720. package/node_modules/@opentelemetry/api/build/src/version.js +21 -0
  2721. package/node_modules/@opentelemetry/api/build/src/version.js.map +1 -0
  2722. package/node_modules/@opentelemetry/api/package.json +113 -0
  2723. package/node_modules/@opentelemetry/semantic-conventions/LICENSE +201 -0
  2724. package/node_modules/@opentelemetry/semantic-conventions/README.md +228 -0
  2725. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +15315 -0
  2726. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +15322 -0
  2727. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js.map +1 -0
  2728. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +265 -0
  2729. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +272 -0
  2730. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js.map +1 -0
  2731. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +3988 -0
  2732. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +3995 -0
  2733. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js.map +1 -0
  2734. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +7 -0
  2735. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +13 -0
  2736. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js.map +1 -0
  2737. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +6 -0
  2738. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +16 -0
  2739. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js.map +1 -0
  2740. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.d.ts +7 -0
  2741. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +23 -0
  2742. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js.map +1 -0
  2743. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.d.ts +1453 -0
  2744. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +1250 -0
  2745. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js.map +1 -0
  2746. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.d.ts +2 -0
  2747. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +10 -0
  2748. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js.map +1 -0
  2749. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +1221 -0
  2750. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +1228 -0
  2751. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +1 -0
  2752. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +5 -0
  2753. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +12 -0
  2754. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js.map +1 -0
  2755. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.d.ts +308 -0
  2756. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +315 -0
  2757. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js.map +1 -0
  2758. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.d.ts +2664 -0
  2759. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +2360 -0
  2760. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js.map +1 -0
  2761. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.d.ts +2 -0
  2762. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +10 -0
  2763. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js.map +1 -0
  2764. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +2 -0
  2765. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +7 -0
  2766. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js.map +1 -0
  2767. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +15315 -0
  2768. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +15322 -0
  2769. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js.map +1 -0
  2770. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +265 -0
  2771. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +272 -0
  2772. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js.map +1 -0
  2773. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +3988 -0
  2774. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +3995 -0
  2775. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js.map +1 -0
  2776. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +7 -0
  2777. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +13 -0
  2778. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js.map +1 -0
  2779. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +6 -0
  2780. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +16 -0
  2781. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js.map +1 -0
  2782. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.d.ts +7 -0
  2783. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +23 -0
  2784. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js.map +1 -0
  2785. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.d.ts +1453 -0
  2786. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +1250 -0
  2787. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js.map +1 -0
  2788. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.d.ts +2 -0
  2789. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +10 -0
  2790. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js.map +1 -0
  2791. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +1221 -0
  2792. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +1228 -0
  2793. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js.map +1 -0
  2794. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +5 -0
  2795. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +12 -0
  2796. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js.map +1 -0
  2797. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.d.ts +308 -0
  2798. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +315 -0
  2799. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js.map +1 -0
  2800. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.d.ts +2664 -0
  2801. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +2360 -0
  2802. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js.map +1 -0
  2803. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.d.ts +2 -0
  2804. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +10 -0
  2805. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js.map +1 -0
  2806. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +2 -0
  2807. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +7 -0
  2808. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js.map +1 -0
  2809. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +15315 -0
  2810. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +15397 -0
  2811. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js.map +1 -0
  2812. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +265 -0
  2813. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +275 -0
  2814. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js.map +1 -0
  2815. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +3988 -0
  2816. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +4007 -0
  2817. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js.map +1 -0
  2818. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +7 -0
  2819. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +29 -0
  2820. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js.map +1 -0
  2821. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +6 -0
  2822. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +32 -0
  2823. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js.map +1 -0
  2824. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.d.ts +7 -0
  2825. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +27 -0
  2826. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js.map +1 -0
  2827. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.d.ts +1453 -0
  2828. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +1255 -0
  2829. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js.map +1 -0
  2830. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.d.ts +2 -0
  2831. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +26 -0
  2832. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js.map +1 -0
  2833. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +1221 -0
  2834. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +1235 -0
  2835. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js.map +1 -0
  2836. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +5 -0
  2837. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +15 -0
  2838. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js.map +1 -0
  2839. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.d.ts +308 -0
  2840. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +319 -0
  2841. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js.map +1 -0
  2842. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.d.ts +2664 -0
  2843. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +2368 -0
  2844. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js.map +1 -0
  2845. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.d.ts +2 -0
  2846. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +26 -0
  2847. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js.map +1 -0
  2848. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +2 -0
  2849. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +10 -0
  2850. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js.map +1 -0
  2851. package/node_modules/@opentelemetry/semantic-conventions/package.json +82 -0
  2852. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  2853. package/node_modules/@protobufjs/eventemitter/index.d.ts +10 -8
  2854. package/node_modules/@protobufjs/eventemitter/index.js +17 -7
  2855. package/node_modules/@protobufjs/eventemitter/package.json +2 -2
  2856. package/node_modules/@protobufjs/eventemitter/tests/index.js +39 -3
  2857. package/node_modules/protobufjs/README.md +1 -1
  2858. package/node_modules/protobufjs/dist/light/protobuf.js +294 -274
  2859. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  2860. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  2861. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  2862. package/node_modules/protobufjs/dist/minimal/protobuf.js +95 -101
  2863. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  2864. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  2865. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  2866. package/node_modules/protobufjs/dist/protobuf.js +335 -301
  2867. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  2868. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  2869. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  2870. package/node_modules/protobufjs/ext/descriptor/index.js +7 -2
  2871. package/node_modules/protobufjs/index.d.ts +13 -11
  2872. package/node_modules/protobufjs/package.json +4 -5
  2873. package/node_modules/protobufjs/src/converter.js +22 -14
  2874. package/node_modules/protobufjs/src/decoder.js +1 -1
  2875. package/node_modules/protobufjs/src/encoder.js +8 -5
  2876. package/node_modules/protobufjs/src/enum.js +2 -2
  2877. package/node_modules/protobufjs/src/field.js +1 -1
  2878. package/node_modules/protobufjs/src/namespace.js +2 -0
  2879. package/node_modules/protobufjs/src/object.js +6 -6
  2880. package/node_modules/protobufjs/src/parse.js +19 -5
  2881. package/node_modules/protobufjs/src/root.js +14 -8
  2882. package/node_modules/protobufjs/src/roots.js +1 -1
  2883. package/node_modules/protobufjs/src/service.js +5 -7
  2884. package/node_modules/protobufjs/src/type.js +12 -7
  2885. package/node_modules/protobufjs/src/util/minimal.js +33 -11
  2886. package/node_modules/protobufjs/src/util/patterns.js +0 -1
  2887. package/node_modules/protobufjs/src/util.js +4 -3
  2888. package/node_modules/protobufjs/src/verifier.js +1 -1
  2889. package/node_modules/protobufjs/src/wrappers.js +11 -7
  2890. package/node_modules/protobufjs/src/writer.js +11 -9
  2891. package/node_modules/ws/lib/receiver.js +54 -0
  2892. package/node_modules/ws/lib/websocket-server.js +8 -0
  2893. package/node_modules/ws/lib/websocket.js +14 -0
  2894. package/node_modules/ws/package.json +1 -1
  2895. package/npm-shrinkwrap.json +52 -289
  2896. package/package.json +8 -7
  2897. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +0 -4
  2898. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +0 -1
  2899. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +0 -34
  2900. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +0 -1
  2901. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationtype.d.ts +0 -13
  2902. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationtype.d.ts.map +0 -1
  2903. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationtype.js +0 -15
  2904. package/node_modules/@mistralai/mistralai/esm/models/components/authenticationtype.js.map +0 -1
  2905. package/node_modules/@mistralai/mistralai/packages/mistralai-azure/src/models/components/tooltypes.ts +0 -20
  2906. package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/components/tooltypes.ts +0 -20
  2907. package/node_modules/@mistralai/mistralai/src/models/components/authenticationtype.ts +0 -26
  2908. package/node_modules/@protobufjs/inquire/CHANGELOG.md +0 -8
  2909. package/node_modules/@protobufjs/inquire/LICENSE +0 -26
  2910. package/node_modules/@protobufjs/inquire/README.md +0 -13
  2911. package/node_modules/@protobufjs/inquire/index.d.ts +0 -10
  2912. package/node_modules/@protobufjs/inquire/index.js +0 -38
  2913. package/node_modules/@protobufjs/inquire/package.json +0 -21
  2914. package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
  2915. package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
  2916. package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
  2917. package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
  2918. package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
  2919. /package/node_modules/@mistralai/mistralai/packages/mistralai-gcp/src/models/errors/{mistralgoogleclouderror.ts → mistralgcperror.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/modes/interactive/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAEN,eAAe,GAKf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4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ED,MAAM,UAAU,oBAAoB;IACnC,OAAO;QACN,KAAK,EAAE,CAAC,IAAY,EAAE,QAAiB,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxF,KAAK,EAAE,CAAC,IAAY,EAAE,QAAiB,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC3G,WAAW,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QACpD,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC;QAChC,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;KAC7C,CAAC;AACH,CAAC","sourcesContent":["import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n\ttype EditorTheme,\n\tgetCapabilities,\n\ttype MarkdownTheme,\n\ttype RgbColor,\n\ttype SelectListTheme,\n\ttype SettingsListTheme,\n} from \"@earendil-works/pi-tui\";\nimport chalk from \"chalk\";\nimport { type Static, Type } from \"typebox\";\nimport { Compile } from \"typebox/compile\";\nimport { getCustomThemesDir, getThemesDir } from \"../../../config.ts\";\nimport type { SourceInfo } from \"../../../core/source-info.ts\";\nimport { closeWatcher, watchWithErrorHandler } from \"../../../utils/fs-watch.ts\";\nimport { highlight, supportsLanguage } from \"../../../utils/syntax-highlight.ts\";\n\n// ============================================================================\n// Types & Schema\n// ============================================================================\n\nconst ColorValueSchema = Type.Union([\n\tType.String(), // hex \"#ff0000\", var ref \"primary\", or empty \"\"\n\tType.Integer({ minimum: 0, maximum: 255 }), // 256-color index\n]);\n\ntype ColorValue = Static<typeof ColorValueSchema>;\n\nconst ThemeJsonSchema = Type.Object({\n\t$schema: Type.Optional(Type.String()),\n\tname: Type.String(),\n\tvars: Type.Optional(Type.Record(Type.String(), ColorValueSchema)),\n\tcolors: Type.Object({\n\t\t// Core UI (10 colors)\n\t\taccent: ColorValueSchema,\n\t\tborder: ColorValueSchema,\n\t\tborderAccent: ColorValueSchema,\n\t\tborderMuted: ColorValueSchema,\n\t\tsuccess: ColorValueSchema,\n\t\terror: ColorValueSchema,\n\t\twarning: ColorValueSchema,\n\t\tmuted: ColorValueSchema,\n\t\tdim: ColorValueSchema,\n\t\ttext: ColorValueSchema,\n\t\tthinkingText: ColorValueSchema,\n\t\t// Backgrounds & Content Text (11 colors)\n\t\tselectedBg: ColorValueSchema,\n\t\tuserMessageBg: ColorValueSchema,\n\t\tuserMessageText: ColorValueSchema,\n\t\tcustomMessageBg: ColorValueSchema,\n\t\tcustomMessageText: ColorValueSchema,\n\t\tcustomMessageLabel: ColorValueSchema,\n\t\ttoolPendingBg: ColorValueSchema,\n\t\ttoolSuccessBg: ColorValueSchema,\n\t\ttoolErrorBg: ColorValueSchema,\n\t\ttoolTitle: ColorValueSchema,\n\t\ttoolOutput: ColorValueSchema,\n\t\t// Markdown (10 colors)\n\t\tmdHeading: ColorValueSchema,\n\t\tmdLink: ColorValueSchema,\n\t\tmdLinkUrl: ColorValueSchema,\n\t\tmdCode: ColorValueSchema,\n\t\tmdCodeBlock: ColorValueSchema,\n\t\tmdCodeBlockBorder: ColorValueSchema,\n\t\tmdQuote: ColorValueSchema,\n\t\tmdQuoteBorder: ColorValueSchema,\n\t\tmdHr: ColorValueSchema,\n\t\tmdListBullet: ColorValueSchema,\n\t\t// Tool Diffs (3 colors)\n\t\ttoolDiffAdded: ColorValueSchema,\n\t\ttoolDiffRemoved: ColorValueSchema,\n\t\ttoolDiffContext: ColorValueSchema,\n\t\t// Syntax Highlighting (9 colors)\n\t\tsyntaxComment: ColorValueSchema,\n\t\tsyntaxKeyword: ColorValueSchema,\n\t\tsyntaxFunction: ColorValueSchema,\n\t\tsyntaxVariable: ColorValueSchema,\n\t\tsyntaxString: ColorValueSchema,\n\t\tsyntaxNumber: ColorValueSchema,\n\t\tsyntaxType: ColorValueSchema,\n\t\tsyntaxOperator: ColorValueSchema,\n\t\tsyntaxPunctuation: ColorValueSchema,\n\t\t// Thinking Level Borders (6 colors)\n\t\tthinkingOff: ColorValueSchema,\n\t\tthinkingMinimal: ColorValueSchema,\n\t\tthinkingLow: ColorValueSchema,\n\t\tthinkingMedium: ColorValueSchema,\n\t\tthinkingHigh: ColorValueSchema,\n\t\tthinkingXhigh: ColorValueSchema,\n\t\t// Bash Mode (1 color)\n\t\tbashMode: ColorValueSchema,\n\t}),\n\texport: Type.Optional(\n\t\tType.Object({\n\t\t\tpageBg: Type.Optional(ColorValueSchema),\n\t\t\tcardBg: Type.Optional(ColorValueSchema),\n\t\t\tinfoBg: Type.Optional(ColorValueSchema),\n\t\t}),\n\t),\n});\n\ntype ThemeJson = Static<typeof ThemeJsonSchema>;\n\nconst validateThemeJson = Compile(ThemeJsonSchema);\n\nexport type ThemeColor =\n\t| \"accent\"\n\t| \"border\"\n\t| \"borderAccent\"\n\t| \"borderMuted\"\n\t| \"success\"\n\t| \"error\"\n\t| \"warning\"\n\t| \"muted\"\n\t| \"dim\"\n\t| \"text\"\n\t| \"thinkingText\"\n\t| \"userMessageText\"\n\t| \"customMessageText\"\n\t| \"customMessageLabel\"\n\t| \"toolTitle\"\n\t| \"toolOutput\"\n\t| \"mdHeading\"\n\t| \"mdLink\"\n\t| \"mdLinkUrl\"\n\t| \"mdCode\"\n\t| \"mdCodeBlock\"\n\t| \"mdCodeBlockBorder\"\n\t| \"mdQuote\"\n\t| \"mdQuoteBorder\"\n\t| \"mdHr\"\n\t| \"mdListBullet\"\n\t| \"toolDiffAdded\"\n\t| \"toolDiffRemoved\"\n\t| \"toolDiffContext\"\n\t| \"syntaxComment\"\n\t| \"syntaxKeyword\"\n\t| \"syntaxFunction\"\n\t| \"syntaxVariable\"\n\t| \"syntaxString\"\n\t| \"syntaxNumber\"\n\t| \"syntaxType\"\n\t| \"syntaxOperator\"\n\t| \"syntaxPunctuation\"\n\t| \"thinkingOff\"\n\t| \"thinkingMinimal\"\n\t| \"thinkingLow\"\n\t| \"thinkingMedium\"\n\t| \"thinkingHigh\"\n\t| \"thinkingXhigh\"\n\t| \"bashMode\";\n\nexport type ThemeBg =\n\t| \"selectedBg\"\n\t| \"userMessageBg\"\n\t| \"customMessageBg\"\n\t| \"toolPendingBg\"\n\t| \"toolSuccessBg\"\n\t| \"toolErrorBg\";\n\ntype ColorMode = \"truecolor\" | \"256color\";\n\n// ============================================================================\n// Color Utilities\n// ============================================================================\n\nfunction hexToRgb(hex: string): { r: number; g: number; b: number } {\n\tconst cleaned = hex.replace(\"#\", \"\");\n\tif (cleaned.length !== 6) {\n\t\tthrow new Error(`Invalid hex color: ${hex}`);\n\t}\n\tconst r = parseInt(cleaned.substring(0, 2), 16);\n\tconst g = parseInt(cleaned.substring(2, 4), 16);\n\tconst b = parseInt(cleaned.substring(4, 6), 16);\n\tif (Number.isNaN(r) || Number.isNaN(g) || Number.isNaN(b)) {\n\t\tthrow new Error(`Invalid hex color: ${hex}`);\n\t}\n\treturn { r, g, b };\n}\n\n// The 6x6x6 color cube channel values (indices 0-5)\nconst CUBE_VALUES = [0, 95, 135, 175, 215, 255];\n\n// Grayscale ramp values (indices 232-255, 24 grays from 8 to 238)\nconst GRAY_VALUES = Array.from({ length: 24 }, (_, i) => 8 + i * 10);\n\nfunction findClosestCubeIndex(value: number): number {\n\tlet minDist = Infinity;\n\tlet minIdx = 0;\n\tfor (let i = 0; i < CUBE_VALUES.length; i++) {\n\t\tconst dist = Math.abs(value - CUBE_VALUES[i]);\n\t\tif (dist < minDist) {\n\t\t\tminDist = dist;\n\t\t\tminIdx = i;\n\t\t}\n\t}\n\treturn minIdx;\n}\n\nfunction findClosestGrayIndex(gray: number): number {\n\tlet minDist = Infinity;\n\tlet minIdx = 0;\n\tfor (let i = 0; i < GRAY_VALUES.length; i++) {\n\t\tconst dist = Math.abs(gray - GRAY_VALUES[i]);\n\t\tif (dist < minDist) {\n\t\t\tminDist = dist;\n\t\t\tminIdx = i;\n\t\t}\n\t}\n\treturn minIdx;\n}\n\nfunction colorDistance(r1: number, g1: number, b1: number, r2: number, g2: number, b2: number): number {\n\t// Weighted Euclidean distance (human eye is more sensitive to green)\n\tconst dr = r1 - r2;\n\tconst dg = g1 - g2;\n\tconst db = b1 - b2;\n\treturn dr * dr * 0.299 + dg * dg * 0.587 + db * db * 0.114;\n}\n\nfunction rgbTo256(r: number, g: number, b: number): number {\n\t// Find closest color in the 6x6x6 cube\n\tconst rIdx = findClosestCubeIndex(r);\n\tconst gIdx = findClosestCubeIndex(g);\n\tconst bIdx = findClosestCubeIndex(b);\n\tconst cubeR = CUBE_VALUES[rIdx];\n\tconst cubeG = CUBE_VALUES[gIdx];\n\tconst cubeB = CUBE_VALUES[bIdx];\n\tconst cubeIndex = 16 + 36 * rIdx + 6 * gIdx + bIdx;\n\tconst cubeDist = colorDistance(r, g, b, cubeR, cubeG, cubeB);\n\n\t// Find closest grayscale\n\tconst gray = Math.round(0.299 * r + 0.587 * g + 0.114 * b);\n\tconst grayIdx = findClosestGrayIndex(gray);\n\tconst grayValue = GRAY_VALUES[grayIdx];\n\tconst grayIndex = 232 + grayIdx;\n\tconst grayDist = colorDistance(r, g, b, grayValue, grayValue, grayValue);\n\n\t// Check if color has noticeable saturation (hue matters)\n\t// If max-min spread is significant, prefer cube to preserve tint\n\tconst maxC = Math.max(r, g, b);\n\tconst minC = Math.min(r, g, b);\n\tconst spread = maxC - minC;\n\n\t// Only consider grayscale if color is nearly neutral (spread < 10)\n\t// AND grayscale is actually closer\n\tif (spread < 10 && grayDist < cubeDist) {\n\t\treturn grayIndex;\n\t}\n\n\treturn cubeIndex;\n}\n\nfunction hexTo256(hex: string): number {\n\tconst { r, g, b } = hexToRgb(hex);\n\treturn rgbTo256(r, g, b);\n}\n\nfunction fgAnsi(color: string | number, mode: ColorMode): string {\n\tif (color === \"\") return \"\\x1b[39m\";\n\tif (typeof color === \"number\") return `\\x1b[38;5;${color}m`;\n\tif (color.startsWith(\"#\")) {\n\t\tif (mode === \"truecolor\") {\n\t\t\tconst { r, g, b } = hexToRgb(color);\n\t\t\treturn `\\x1b[38;2;${r};${g};${b}m`;\n\t\t} else {\n\t\t\tconst index = hexTo256(color);\n\t\t\treturn `\\x1b[38;5;${index}m`;\n\t\t}\n\t}\n\tthrow new Error(`Invalid color value: ${color}`);\n}\n\nfunction bgAnsi(color: string | number, mode: ColorMode): string {\n\tif (color === \"\") return \"\\x1b[49m\";\n\tif (typeof color === \"number\") return `\\x1b[48;5;${color}m`;\n\tif (color.startsWith(\"#\")) {\n\t\tif (mode === \"truecolor\") {\n\t\t\tconst { r, g, b } = hexToRgb(color);\n\t\t\treturn `\\x1b[48;2;${r};${g};${b}m`;\n\t\t} else {\n\t\t\tconst index = hexTo256(color);\n\t\t\treturn `\\x1b[48;5;${index}m`;\n\t\t}\n\t}\n\tthrow new Error(`Invalid color value: ${color}`);\n}\n\nfunction resolveVarRefs(\n\tvalue: ColorValue,\n\tvars: Record<string, ColorValue>,\n\tvisited = new Set<string>(),\n): string | number {\n\tif (typeof value === \"number\" || value === \"\" || value.startsWith(\"#\")) {\n\t\treturn value;\n\t}\n\tif (visited.has(value)) {\n\t\tthrow new Error(`Circular variable reference detected: ${value}`);\n\t}\n\tif (!(value in vars)) {\n\t\tthrow new Error(`Variable reference not found: ${value}`);\n\t}\n\tvisited.add(value);\n\treturn resolveVarRefs(vars[value], vars, visited);\n}\n\nfunction resolveThemeColors<T extends Record<string, ColorValue>>(\n\tcolors: T,\n\tvars: Record<string, ColorValue> = {},\n): Record<keyof T, string | number> {\n\tconst resolved: Record<string, string | number> = {};\n\tfor (const [key, value] of Object.entries(colors)) {\n\t\tresolved[key] = resolveVarRefs(value, vars);\n\t}\n\treturn resolved as Record<keyof T, string | number>;\n}\n\n// ============================================================================\n// Theme Class\n// ============================================================================\n\nexport class Theme {\n\treadonly name?: string;\n\treadonly sourcePath?: string;\n\tsourceInfo?: SourceInfo;\n\tprivate fgColors: Map<ThemeColor, string>;\n\tprivate bgColors: Map<ThemeBg, string>;\n\tprivate mode: ColorMode;\n\n\tconstructor(\n\t\tfgColors: Record<ThemeColor, string | number>,\n\t\tbgColors: Record<ThemeBg, string | number>,\n\t\tmode: ColorMode,\n\t\toptions: { name?: string; sourcePath?: string; sourceInfo?: SourceInfo } = {},\n\t) {\n\t\tthis.name = options.name;\n\t\tthis.sourcePath = options.sourcePath;\n\t\tthis.sourceInfo = options.sourceInfo;\n\t\tthis.mode = mode;\n\t\tthis.fgColors = new Map();\n\t\tfor (const [key, value] of Object.entries(fgColors) as [ThemeColor, string | number][]) {\n\t\t\tthis.fgColors.set(key, fgAnsi(value, mode));\n\t\t}\n\t\tthis.bgColors = new Map();\n\t\tfor (const [key, value] of Object.entries(bgColors) as [ThemeBg, string | number][]) {\n\t\t\tthis.bgColors.set(key, bgAnsi(value, mode));\n\t\t}\n\t}\n\n\tfg(color: ThemeColor, text: string): string {\n\t\tconst ansi = this.fgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme color: ${color}`);\n\t\treturn `${ansi}${text}\\x1b[39m`; // Reset only foreground color\n\t}\n\n\tbg(color: ThemeBg, text: string): string {\n\t\tconst ansi = this.bgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme background color: ${color}`);\n\t\treturn `${ansi}${text}\\x1b[49m`; // Reset only background color\n\t}\n\n\tbold(text: string): string {\n\t\treturn chalk.bold(text);\n\t}\n\n\titalic(text: string): string {\n\t\treturn chalk.italic(text);\n\t}\n\n\tunderline(text: string): string {\n\t\treturn chalk.underline(text);\n\t}\n\n\tinverse(text: string): string {\n\t\treturn chalk.inverse(text);\n\t}\n\n\tstrikethrough(text: string): string {\n\t\treturn chalk.strikethrough(text);\n\t}\n\n\tgetFgAnsi(color: ThemeColor): string {\n\t\tconst ansi = this.fgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme color: ${color}`);\n\t\treturn ansi;\n\t}\n\n\tgetBgAnsi(color: ThemeBg): string {\n\t\tconst ansi = this.bgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme background color: ${color}`);\n\t\treturn ansi;\n\t}\n\n\tgetColorMode(): ColorMode {\n\t\treturn this.mode;\n\t}\n\n\tgetThinkingBorderColor(\n\t\tlevel: \"off\" | \"minimal\" | \"low\" | \"medium\" | \"high\" | \"xhigh\" | \"max\",\n\t): (str: string) => string {\n\t\tswitch (level) {\n\t\t\tcase \"off\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingOff\", str);\n\t\t\tcase \"minimal\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingMinimal\", str);\n\t\t\tcase \"low\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingLow\", str);\n\t\t\tcase \"medium\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingMedium\", str);\n\t\t\tcase \"high\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingHigh\", str);\n\t\t\tcase \"xhigh\":\n\t\t\tcase \"max\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingXhigh\", str);\n\t\t\tdefault:\n\t\t\t\treturn (str: string) => this.fg(\"thinkingOff\", str);\n\t\t}\n\t}\n\n\tgetBashModeBorderColor(): (str: string) => string {\n\t\treturn (str: string) => this.fg(\"bashMode\", str);\n\t}\n}\n\n// ============================================================================\n// Theme Loading\n// ============================================================================\n\nlet BUILTIN_THEMES: Record<string, ThemeJson> | undefined;\n\nfunction getBuiltinThemes(): Record<string, ThemeJson> {\n\tif (!BUILTIN_THEMES) {\n\t\tconst themesDir = getThemesDir();\n\t\tconst darkPath = path.join(themesDir, \"dark.json\");\n\t\tconst lightPath = path.join(themesDir, \"light.json\");\n\t\tBUILTIN_THEMES = {\n\t\t\tdark: JSON.parse(fs.readFileSync(darkPath, \"utf-8\")) as ThemeJson,\n\t\t\tlight: JSON.parse(fs.readFileSync(lightPath, \"utf-8\")) as ThemeJson,\n\t\t};\n\t}\n\treturn BUILTIN_THEMES;\n}\n\nexport function getAvailableThemes(): string[] {\n\treturn getAvailableThemesWithPaths().map(({ name }) => name);\n}\n\nexport interface ThemeInfo {\n\tname: string;\n\tpath: string | undefined;\n}\n\nexport function getAvailableThemesWithPaths(): ThemeInfo[] {\n\tconst themesDir = getThemesDir();\n\tconst result: ThemeInfo[] = [];\n\tconst seen = new Set<string>();\n\tconst addTheme = (themeInfo: ThemeInfo) => {\n\t\tif (seen.has(themeInfo.name)) {\n\t\t\treturn;\n\t\t}\n\t\tseen.add(themeInfo.name);\n\t\tresult.push(themeInfo);\n\t};\n\n\t// Built-in themes\n\tfor (const name of Object.keys(getBuiltinThemes())) {\n\t\taddTheme({ name, path: path.join(themesDir, `${name}.json`) });\n\t}\n\n\t// Custom themes\n\tfor (const themeInfo of getCustomThemeInfos()) {\n\t\taddTheme(themeInfo);\n\t}\n\n\tfor (const [name, theme] of registeredThemes.entries()) {\n\t\taddTheme({ name, path: theme.sourcePath });\n\t}\n\n\treturn result.sort((a, b) => a.name.localeCompare(b.name));\n}\n\nfunction getCustomThemeInfos(): ThemeInfo[] {\n\tconst customThemesDir = getCustomThemesDir();\n\tconst result: ThemeInfo[] = [];\n\tif (!fs.existsSync(customThemesDir)) {\n\t\treturn result;\n\t}\n\n\tfor (const file of fs.readdirSync(customThemesDir)) {\n\t\tif (!file.endsWith(\".json\")) {\n\t\t\tcontinue;\n\t\t}\n\t\tconst themePath = path.join(customThemesDir, file);\n\t\ttry {\n\t\t\tconst customTheme = loadThemeFromPath(themePath);\n\t\t\tif (customTheme.name) {\n\t\t\t\tresult.push({ name: customTheme.name, path: themePath });\n\t\t\t}\n\t\t} catch {\n\t\t\t// Invalid themes are ignored here; the resource loader reports them\n\t\t\t// during normal startup/reload.\n\t\t}\n\t}\n\treturn result;\n}\n\nfunction parseThemeJson(label: string, json: unknown): ThemeJson {\n\tif (!validateThemeJson.Check(json)) {\n\t\tconst errors = Array.from(validateThemeJson.Errors(json));\n\t\tconst missingColors = new Set<string>();\n\t\tconst otherErrors: string[] = [];\n\n\t\tfor (const error of errors) {\n\t\t\tif (error.keyword === \"required\" && error.instancePath === \"/colors\") {\n\t\t\t\tconst requiredProperties = (error.params as { requiredProperties?: string[] }).requiredProperties;\n\t\t\t\tfor (const requiredProperty of requiredProperties ?? []) {\n\t\t\t\t\tmissingColors.add(requiredProperty);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst path = error.instancePath || \"/\";\n\t\t\totherErrors.push(` - ${path}: ${error.message}`);\n\t\t}\n\n\t\tlet errorMessage = `Invalid theme \"${label}\":\\n`;\n\t\tif (missingColors.size > 0) {\n\t\t\terrorMessage += \"\\nMissing required color tokens:\\n\";\n\t\t\terrorMessage += Array.from(missingColors)\n\t\t\t\t.sort()\n\t\t\t\t.map((color) => ` - ${color}`)\n\t\t\t\t.join(\"\\n\");\n\t\t\terrorMessage += '\\n\\nPlease add these colors to your theme\\'s \"colors\" object.';\n\t\t\terrorMessage += \"\\nSee the built-in themes (dark.json, light.json) for reference values.\";\n\t\t}\n\t\tif (otherErrors.length > 0) {\n\t\t\terrorMessage += `\\n\\nOther errors:\\n${otherErrors.join(\"\\n\")}`;\n\t\t}\n\n\t\tthrow new Error(errorMessage);\n\t}\n\n\treturn json as ThemeJson;\n}\n\nfunction parseThemeJsonContent(label: string, content: string): ThemeJson {\n\tlet json: unknown;\n\ttry {\n\t\tjson = JSON.parse(content);\n\t} catch (error) {\n\t\tthrow new Error(`Failed to parse theme ${label}: ${error}`);\n\t}\n\treturn parseThemeJson(label, json);\n}\n\nfunction loadThemeJson(name: string): ThemeJson {\n\tconst builtinThemes = getBuiltinThemes();\n\tif (name in builtinThemes) {\n\t\treturn builtinThemes[name];\n\t}\n\tconst registeredTheme = registeredThemes.get(name);\n\tif (registeredTheme?.sourcePath) {\n\t\tconst content = fs.readFileSync(registeredTheme.sourcePath, \"utf-8\");\n\t\treturn parseThemeJsonContent(registeredTheme.sourcePath, content);\n\t}\n\tif (registeredTheme) {\n\t\tthrow new Error(`Theme \"${name}\" does not have a source path for export`);\n\t}\n\tconst customThemesDir = getCustomThemesDir();\n\tconst themePath = path.join(customThemesDir, `${name}.json`);\n\tif (!fs.existsSync(themePath)) {\n\t\tthrow new Error(`Theme not found: ${name}`);\n\t}\n\tconst content = fs.readFileSync(themePath, \"utf-8\");\n\treturn parseThemeJsonContent(name, content);\n}\n\nfunction createTheme(themeJson: ThemeJson, mode?: ColorMode, sourcePath?: string): Theme {\n\tconst colorMode = mode ?? (getCapabilities().trueColor ? \"truecolor\" : \"256color\");\n\tconst resolvedColors = resolveThemeColors(themeJson.colors, themeJson.vars);\n\tconst fgColors: Record<ThemeColor, string | number> = {} as Record<ThemeColor, string | number>;\n\tconst bgColors: Record<ThemeBg, string | number> = {} as Record<ThemeBg, string | number>;\n\tconst bgColorKeys: Set<string> = new Set([\n\t\t\"selectedBg\",\n\t\t\"userMessageBg\",\n\t\t\"customMessageBg\",\n\t\t\"toolPendingBg\",\n\t\t\"toolSuccessBg\",\n\t\t\"toolErrorBg\",\n\t]);\n\tfor (const [key, value] of Object.entries(resolvedColors)) {\n\t\tif (bgColorKeys.has(key)) {\n\t\t\tbgColors[key as ThemeBg] = value;\n\t\t} else {\n\t\t\tfgColors[key as ThemeColor] = value;\n\t\t}\n\t}\n\treturn new Theme(fgColors, bgColors, colorMode, {\n\t\tname: themeJson.name,\n\t\tsourcePath,\n\t});\n}\n\nexport function loadThemeFromPath(themePath: string, mode?: ColorMode): Theme {\n\tconst content = fs.readFileSync(themePath, \"utf-8\");\n\tconst themeJson = parseThemeJsonContent(themePath, content);\n\treturn createTheme(themeJson, mode, themePath);\n}\n\nfunction loadTheme(name: string, mode?: ColorMode): Theme {\n\tconst registeredTheme = registeredThemes.get(name);\n\tif (registeredTheme) {\n\t\treturn registeredTheme;\n\t}\n\tconst themeJson = loadThemeJson(name);\n\treturn createTheme(themeJson, mode);\n}\n\nexport function getThemeByName(name: string): Theme | undefined {\n\ttry {\n\t\treturn loadTheme(name);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\nexport type TerminalTheme = \"dark\" | \"light\";\n\nexport interface TerminalThemeDetection {\n\ttheme: TerminalTheme;\n\tsource: \"terminal background\" | \"COLORFGBG\" | \"fallback\";\n\tdetail: string;\n\tconfidence: \"high\" | \"low\";\n}\n\nexport interface TerminalThemeDetectionOptions {\n\tenv?: NodeJS.ProcessEnv;\n}\n\nexport interface TerminalBackgroundThemeDetector {\n\tqueryTerminalBackgroundColor({ timeoutMs }: { timeoutMs: number }): Promise<RgbColor | undefined>;\n}\n\nexport interface TerminalBackgroundThemeDetectionOptions extends TerminalThemeDetectionOptions {\n\tui: TerminalBackgroundThemeDetector;\n\ttimeoutMs: number;\n}\n\nfunction getColorFgBgBackgroundIndex(colorfgbg: string): number | undefined {\n\tconst parts = colorfgbg.split(\";\");\n\tfor (let i = parts.length - 1; i >= 0; i--) {\n\t\tconst bg = parseInt(parts[i].trim(), 10);\n\t\tif (Number.isInteger(bg) && bg >= 0 && bg <= 255) {\n\t\t\treturn bg;\n\t\t}\n\t}\n\treturn undefined;\n}\n\nfunction getRgbColorLuminance({ r, g, b }: RgbColor): number {\n\tconst toLinear = (channel: number) => {\n\t\tconst value = channel / 255;\n\t\treturn value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;\n\t};\n\treturn 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n}\n\nfunction getAnsiColorLuminance(index: number): number {\n\treturn getRgbColorLuminance(hexToRgb(ansi256ToHex(index)));\n}\n\nexport function getThemeForRgbColor(rgb: RgbColor): TerminalTheme {\n\treturn getRgbColorLuminance(rgb) >= 0.5 ? \"light\" : \"dark\";\n}\n\nexport function detectTerminalBackgroundFromEnv(options: TerminalThemeDetectionOptions = {}): TerminalThemeDetection {\n\tconst env = options.env ?? process.env;\n\tconst colorfgbg = env.COLORFGBG || \"\";\n\tconst bg = getColorFgBgBackgroundIndex(colorfgbg);\n\tif (bg !== undefined) {\n\t\treturn {\n\t\t\ttheme: getAnsiColorLuminance(bg) >= 0.5 ? \"light\" : \"dark\",\n\t\t\tsource: \"COLORFGBG\",\n\t\t\tdetail: `background color index ${bg}`,\n\t\t\tconfidence: \"high\",\n\t\t};\n\t}\n\n\treturn {\n\t\ttheme: \"dark\",\n\t\tsource: \"fallback\",\n\t\tdetail: \"no terminal background hint found\",\n\t\tconfidence: \"low\",\n\t};\n}\n\nexport async function detectTerminalBackgroundTheme({\n\tui,\n\ttimeoutMs,\n\tenv,\n}: TerminalBackgroundThemeDetectionOptions): Promise<TerminalThemeDetection> {\n\ttry {\n\t\tconst rgb = await ui.queryTerminalBackgroundColor({ timeoutMs });\n\t\tif (rgb) {\n\t\t\treturn {\n\t\t\t\ttheme: getThemeForRgbColor(rgb),\n\t\t\t\tsource: \"terminal background\",\n\t\t\t\tdetail: `OSC 11 background rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`,\n\t\t\t\tconfidence: \"high\",\n\t\t\t};\n\t\t}\n\t} catch {\n\t\t// Fall back to environment-based detection when the terminal query fails.\n\t}\n\n\treturn detectTerminalBackgroundFromEnv({ env });\n}\n\nexport function getDefaultTheme(): string {\n\treturn detectTerminalBackgroundFromEnv().theme;\n}\n\n// ============================================================================\n// Global Theme Instance\n// ============================================================================\n\n// Use globalThis to share theme across module loaders (tsx + jiti in dev mode)\nconst THEME_KEY = Symbol.for(\"@earendil-works/pi-coding-agent:theme\");\nconst THEME_KEY_OLD = Symbol.for(\"@mariozechner/pi-coding-agent:theme\");\n\n// Export theme as a getter that reads from globalThis\n// This ensures all module instances (tsx, jiti) see the same theme\nexport const theme: Theme = new Proxy({} as Theme, {\n\tget(_target, prop) {\n\t\tconst t = (globalThis as Record<symbol, Theme>)[THEME_KEY];\n\t\tif (!t) throw new Error(\"Theme not initialized. Call initTheme() first.\");\n\t\treturn Reflect.get(t, prop);\n\t},\n});\n\nfunction setGlobalTheme(t: Theme): void {\n\t(globalThis as Record<symbol, Theme>)[THEME_KEY] = t;\n\t(globalThis as Record<symbol, Theme>)[THEME_KEY_OLD] = t;\n}\n\nlet currentThemeName: string | undefined;\nlet themeWatcher: fs.FSWatcher | undefined;\nlet themeReloadTimer: NodeJS.Timeout | undefined;\nlet onThemeChangeCallback: (() => void) | undefined;\nconst registeredThemes = new Map<string, Theme>();\n\nexport function setRegisteredThemes(themes: Theme[]): void {\n\tregisteredThemes.clear();\n\tfor (const theme of themes) {\n\t\tif (theme.name) {\n\t\t\tregisteredThemes.set(theme.name, theme);\n\t\t}\n\t}\n}\n\nexport function initTheme(themeName?: string, enableWatcher: boolean = false): void {\n\tconst name = themeName ?? getDefaultTheme();\n\tcurrentThemeName = name;\n\ttry {\n\t\tsetGlobalTheme(loadTheme(name));\n\t\tif (enableWatcher) {\n\t\t\tstartThemeWatcher();\n\t\t}\n\t} catch (_error) {\n\t\t// Theme is invalid - fall back to dark theme silently\n\t\tcurrentThemeName = \"dark\";\n\t\tsetGlobalTheme(loadTheme(\"dark\"));\n\t\t// Don't start watcher for fallback theme\n\t}\n}\n\nexport function setTheme(name: string, enableWatcher: boolean = false): { success: boolean; error?: string } {\n\tcurrentThemeName = name;\n\ttry {\n\t\tsetGlobalTheme(loadTheme(name));\n\t\tif (enableWatcher) {\n\t\t\tstartThemeWatcher();\n\t\t}\n\t\tif (onThemeChangeCallback) {\n\t\t\tonThemeChangeCallback();\n\t\t}\n\t\treturn { success: true };\n\t} catch (error) {\n\t\t// Theme is invalid - fall back to dark theme\n\t\tcurrentThemeName = \"dark\";\n\t\tsetGlobalTheme(loadTheme(\"dark\"));\n\t\t// Don't start watcher for fallback theme\n\t\treturn {\n\t\t\tsuccess: false,\n\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t};\n\t}\n}\n\nexport function setThemeInstance(themeInstance: Theme): void {\n\tsetGlobalTheme(themeInstance);\n\tcurrentThemeName = \"<in-memory>\";\n\tstopThemeWatcher(); // Can't watch a direct instance\n\tif (onThemeChangeCallback) {\n\t\tonThemeChangeCallback();\n\t}\n}\n\nexport function onThemeChange(callback: () => void): void {\n\tonThemeChangeCallback = callback;\n}\n\nfunction startThemeWatcher(): void {\n\tstopThemeWatcher();\n\n\t// Only watch if it's a custom theme (not built-in)\n\tif (!currentThemeName || currentThemeName === \"dark\" || currentThemeName === \"light\") {\n\t\treturn;\n\t}\n\n\tconst customThemesDir = getCustomThemesDir();\n\tconst watchedThemeName = currentThemeName;\n\tconst watchedFileName = `${watchedThemeName}.json`;\n\tconst themeFile = path.join(customThemesDir, watchedFileName);\n\n\t// Only watch if the file exists\n\tif (!fs.existsSync(themeFile)) {\n\t\treturn;\n\t}\n\n\tconst scheduleReload = () => {\n\t\tif (themeReloadTimer) {\n\t\t\tclearTimeout(themeReloadTimer);\n\t\t}\n\t\tthemeReloadTimer = setTimeout(() => {\n\t\t\tthemeReloadTimer = undefined;\n\n\t\t\t// Ignore stale timers after switching themes or stopping the watcher\n\t\t\tif (currentThemeName !== watchedThemeName) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Keep the last successfully loaded theme active if the file is temporarily missing\n\t\t\tif (!fs.existsSync(themeFile)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Reload the theme from disk and refresh the registry cache\n\t\t\t\tconst reloadedTheme = loadThemeFromPath(themeFile);\n\t\t\t\tregisteredThemes.set(watchedThemeName, reloadedTheme);\n\t\t\t\tsetGlobalTheme(reloadedTheme);\n\t\t\t\t// Notify callback (to invalidate UI)\n\t\t\t\tif (onThemeChangeCallback) {\n\t\t\t\t\tonThemeChangeCallback();\n\t\t\t\t}\n\t\t\t} catch (_error) {\n\t\t\t\t// Ignore errors (file might be in invalid state while being edited)\n\t\t\t}\n\t\t}, 100);\n\t};\n\n\tthemeWatcher =\n\t\twatchWithErrorHandler(\n\t\t\tcustomThemesDir,\n\t\t\t(_eventType, filename) => {\n\t\t\t\tif (currentThemeName !== watchedThemeName) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (!filename) {\n\t\t\t\t\tscheduleReload();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (filename !== watchedFileName) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tscheduleReload();\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tcloseWatcher(themeWatcher);\n\t\t\t\tthemeWatcher = undefined;\n\t\t\t},\n\t\t) ?? undefined;\n}\n\nexport function stopThemeWatcher(): void {\n\tif (themeReloadTimer) {\n\t\tclearTimeout(themeReloadTimer);\n\t\tthemeReloadTimer = undefined;\n\t}\n\tcloseWatcher(themeWatcher);\n\tthemeWatcher = undefined;\n}\n\n// ============================================================================\n// HTML Export Helpers\n// ============================================================================\n\n/**\n * Convert a 256-color index to hex string.\n * Indices 0-15: basic colors (approximate)\n * Indices 16-231: 6x6x6 color cube\n * Indices 232-255: grayscale ramp\n */\nfunction ansi256ToHex(index: number): string {\n\t// Basic colors (0-15) - approximate common terminal values\n\tconst basicColors = [\n\t\t\"#000000\",\n\t\t\"#800000\",\n\t\t\"#008000\",\n\t\t\"#808000\",\n\t\t\"#000080\",\n\t\t\"#800080\",\n\t\t\"#008080\",\n\t\t\"#c0c0c0\",\n\t\t\"#808080\",\n\t\t\"#ff0000\",\n\t\t\"#00ff00\",\n\t\t\"#ffff00\",\n\t\t\"#0000ff\",\n\t\t\"#ff00ff\",\n\t\t\"#00ffff\",\n\t\t\"#ffffff\",\n\t];\n\tif (index < 16) {\n\t\treturn basicColors[index];\n\t}\n\n\t// Color cube (16-231): 6x6x6 = 216 colors\n\tif (index < 232) {\n\t\tconst cubeIndex = index - 16;\n\t\tconst r = Math.floor(cubeIndex / 36);\n\t\tconst g = Math.floor((cubeIndex % 36) / 6);\n\t\tconst b = cubeIndex % 6;\n\t\tconst toHex = (n: number) => (n === 0 ? 0 : 55 + n * 40).toString(16).padStart(2, \"0\");\n\t\treturn `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n\t}\n\n\t// Grayscale (232-255): 24 shades\n\tconst gray = 8 + (index - 232) * 10;\n\tconst grayHex = gray.toString(16).padStart(2, \"0\");\n\treturn `#${grayHex}${grayHex}${grayHex}`;\n}\n\n/**\n * Get resolved theme colors as CSS-compatible hex strings.\n * Used by HTML export to generate CSS custom properties.\n */\nexport function getResolvedThemeColors(themeName?: string): Record<string, string> {\n\tconst name = themeName ?? currentThemeName ?? getDefaultTheme();\n\tconst isLight = name === \"light\";\n\tconst themeJson = loadThemeJson(name);\n\tconst resolved = resolveThemeColors(themeJson.colors, themeJson.vars);\n\n\t// Default text color for empty values (terminal uses default fg color)\n\tconst defaultText = isLight ? \"#000000\" : \"#e5e5e7\";\n\n\tconst cssColors: Record<string, string> = {};\n\tfor (const [key, value] of Object.entries(resolved)) {\n\t\tif (typeof value === \"number\") {\n\t\t\tcssColors[key] = ansi256ToHex(value);\n\t\t} else if (value === \"\") {\n\t\t\t// Empty means default terminal color - use sensible fallback for HTML\n\t\t\tcssColors[key] = defaultText;\n\t\t} else {\n\t\t\tcssColors[key] = value;\n\t\t}\n\t}\n\treturn cssColors;\n}\n\n/**\n * Get explicit export colors from theme JSON, if specified.\n * Returns undefined for each color that isn't explicitly set.\n */\nexport function getThemeExportColors(themeName?: string): {\n\tpageBg?: string;\n\tcardBg?: string;\n\tinfoBg?: string;\n} {\n\tconst name = themeName ?? currentThemeName ?? getDefaultTheme();\n\ttry {\n\t\tconst themeJson = loadThemeJson(name);\n\t\tconst exportSection = themeJson.export;\n\t\tif (!exportSection) return {};\n\n\t\tconst vars = themeJson.vars ?? {};\n\t\tconst resolve = (value: ColorValue | undefined): string | undefined => {\n\t\t\tif (value === undefined) return undefined;\n\t\t\tconst resolved = resolveVarRefs(value, vars);\n\t\t\tif (typeof resolved === \"number\") return ansi256ToHex(resolved);\n\t\t\tif (resolved === \"\") return undefined;\n\t\t\treturn resolved;\n\t\t};\n\n\t\treturn {\n\t\t\tpageBg: resolve(exportSection.pageBg),\n\t\t\tcardBg: resolve(exportSection.cardBg),\n\t\t\tinfoBg: resolve(exportSection.infoBg),\n\t\t};\n\t} catch {\n\t\treturn {};\n\t}\n}\n\n// ============================================================================\n// TUI Helpers\n// ============================================================================\n\ntype CliHighlightTheme = Record<string, (s: string) => string>;\n\nlet cachedHighlightThemeFor: Theme | undefined;\nlet cachedCliHighlightTheme: CliHighlightTheme | undefined;\n\nfunction buildCliHighlightTheme(t: Theme): CliHighlightTheme {\n\treturn {\n\t\tkeyword: (s: string) => t.fg(\"syntaxKeyword\", s),\n\t\tbuilt_in: (s: string) => t.fg(\"syntaxType\", s),\n\t\tliteral: (s: string) => t.fg(\"syntaxNumber\", s),\n\t\tnumber: (s: string) => t.fg(\"syntaxNumber\", s),\n\t\tregexp: (s: string) => t.fg(\"syntaxString\", s),\n\t\tstring: (s: string) => t.fg(\"syntaxString\", s),\n\t\tcomment: (s: string) => t.fg(\"syntaxComment\", s),\n\t\tdoctag: (s: string) => t.fg(\"syntaxComment\", s),\n\t\tmeta: (s: string) => t.fg(\"muted\", s),\n\t\tfunction: (s: string) => t.fg(\"syntaxFunction\", s),\n\t\ttitle: (s: string) => t.fg(\"syntaxFunction\", s),\n\t\tclass: (s: string) => t.fg(\"syntaxType\", s),\n\t\ttype: (s: string) => t.fg(\"syntaxType\", s),\n\t\ttag: (s: string) => t.fg(\"syntaxPunctuation\", s),\n\t\tname: (s: string) => t.fg(\"syntaxKeyword\", s),\n\t\tattr: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\tvariable: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\tparams: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\toperator: (s: string) => t.fg(\"syntaxOperator\", s),\n\t\tpunctuation: (s: string) => t.fg(\"syntaxPunctuation\", s),\n\t\temphasis: (s: string) => t.italic(s),\n\t\tstrong: (s: string) => t.bold(s),\n\t\tlink: (s: string) => t.underline(s),\n\t\taddition: (s: string) => t.fg(\"toolDiffAdded\", s),\n\t\tdeletion: (s: string) => t.fg(\"toolDiffRemoved\", s),\n\t};\n}\n\nfunction getCliHighlightTheme(t: Theme): CliHighlightTheme {\n\tif (cachedHighlightThemeFor !== t || !cachedCliHighlightTheme) {\n\t\tcachedHighlightThemeFor = t;\n\t\tcachedCliHighlightTheme = buildCliHighlightTheme(t);\n\t}\n\treturn cachedCliHighlightTheme;\n}\n\n/**\n * Highlight code with syntax coloring based on file extension or language.\n * Returns array of highlighted lines.\n */\nexport function highlightCode(code: string, lang?: string): string[] {\n\t// Validate language before highlighting to avoid stderr spam from cli-highlight\n\tconst validLang = lang && supportsLanguage(lang) ? lang : undefined;\n\t// Skip highlighting when no valid language is specified. cli-highlight's\n\t// auto-detection is unreliable and can misidentify prose as AppleScript,\n\t// LiveCodeServer, etc., coloring random English words as keywords.\n\tif (!validLang) {\n\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t}\n\tconst opts = {\n\t\tlanguage: validLang,\n\t\tignoreIllegals: true,\n\t\ttheme: getCliHighlightTheme(theme),\n\t};\n\ttry {\n\t\treturn highlight(code, opts).split(\"\\n\");\n\t} catch {\n\t\treturn code.split(\"\\n\");\n\t}\n}\n\n/**\n * Get language identifier from file path extension.\n */\nexport function getLanguageFromPath(filePath: string): string | undefined {\n\tconst ext = filePath.split(\".\").pop()?.toLowerCase();\n\tif (!ext) return undefined;\n\n\tconst extToLang: Record<string, string> = {\n\t\tts: \"typescript\",\n\t\ttsx: \"typescript\",\n\t\tjs: \"javascript\",\n\t\tjsx: \"javascript\",\n\t\tmjs: \"javascript\",\n\t\tcjs: \"javascript\",\n\t\tpy: \"python\",\n\t\trb: \"ruby\",\n\t\trs: \"rust\",\n\t\tgo: \"go\",\n\t\tjava: \"java\",\n\t\tkt: \"kotlin\",\n\t\tswift: \"swift\",\n\t\tc: \"c\",\n\t\th: \"c\",\n\t\tcpp: \"cpp\",\n\t\tcc: \"cpp\",\n\t\tcxx: \"cpp\",\n\t\thpp: \"cpp\",\n\t\tcs: \"csharp\",\n\t\tphp: \"php\",\n\t\tsh: \"bash\",\n\t\tbash: \"bash\",\n\t\tzsh: \"bash\",\n\t\tfish: \"fish\",\n\t\tps1: \"powershell\",\n\t\tsql: \"sql\",\n\t\thtml: \"html\",\n\t\thtm: \"html\",\n\t\tcss: \"css\",\n\t\tscss: \"scss\",\n\t\tsass: \"sass\",\n\t\tless: \"less\",\n\t\tjson: \"json\",\n\t\tyaml: \"yaml\",\n\t\tyml: \"yaml\",\n\t\ttoml: \"toml\",\n\t\txml: \"xml\",\n\t\tmd: \"markdown\",\n\t\tmarkdown: \"markdown\",\n\t\tdockerfile: \"dockerfile\",\n\t\tmakefile: \"makefile\",\n\t\tcmake: \"cmake\",\n\t\tlua: \"lua\",\n\t\tperl: \"perl\",\n\t\tr: \"r\",\n\t\tscala: \"scala\",\n\t\tclj: \"clojure\",\n\t\tex: \"elixir\",\n\t\texs: \"elixir\",\n\t\terl: \"erlang\",\n\t\ths: \"haskell\",\n\t\tml: \"ocaml\",\n\t\tvim: \"vim\",\n\t\tgraphql: \"graphql\",\n\t\tproto: \"protobuf\",\n\t\ttf: \"hcl\",\n\t\thcl: \"hcl\",\n\t};\n\n\treturn extToLang[ext];\n}\n\nexport function getMarkdownTheme(): MarkdownTheme {\n\treturn {\n\t\theading: (text: string) => theme.fg(\"mdHeading\", text),\n\t\tlink: (text: string) => theme.fg(\"mdLink\", text),\n\t\tlinkUrl: (text: string) => theme.fg(\"mdLinkUrl\", text),\n\t\tcode: (text: string) => theme.fg(\"mdCode\", text),\n\t\tcodeBlock: (text: string) => theme.fg(\"mdCodeBlock\", text),\n\t\tcodeBlockBorder: (text: string) => theme.fg(\"mdCodeBlockBorder\", text),\n\t\tquote: (text: string) => theme.fg(\"mdQuote\", text),\n\t\tquoteBorder: (text: string) => theme.fg(\"mdQuoteBorder\", text),\n\t\thr: (text: string) => theme.fg(\"mdHr\", text),\n\t\tlistBullet: (text: string) => theme.fg(\"mdListBullet\", text),\n\t\tbold: (text: string) => theme.bold(text),\n\t\titalic: (text: string) => theme.italic(text),\n\t\tunderline: (text: string) => theme.underline(text),\n\t\tstrikethrough: (text: string) => chalk.strikethrough(text),\n\t\thighlightCode: (code: string, lang?: string): string[] => {\n\t\t\t// Validate language before highlighting to avoid stderr spam from cli-highlight\n\t\t\tconst validLang = lang && supportsLanguage(lang) ? lang : undefined;\n\t\t\t// Skip highlighting when no valid language is specified. cli-highlight's\n\t\t\t// auto-detection is unreliable and can misidentify prose as AppleScript,\n\t\t\t// LiveCodeServer, etc., coloring random English words as keywords.\n\t\t\tif (!validLang) {\n\t\t\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t\t\t}\n\t\t\tconst opts = {\n\t\t\t\tlanguage: validLang,\n\t\t\t\tignoreIllegals: true,\n\t\t\t\ttheme: getCliHighlightTheme(theme),\n\t\t\t};\n\t\t\ttry {\n\t\t\t\treturn highlight(code, opts).split(\"\\n\");\n\t\t\t} catch {\n\t\t\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t\t\t}\n\t\t},\n\t};\n}\n\nexport function getSelectListTheme(): SelectListTheme {\n\treturn {\n\t\tselectedPrefix: (text: string) => theme.fg(\"accent\", text),\n\t\tselectedText: (text: string) => theme.fg(\"accent\", text),\n\t\tdescription: (text: string) => theme.fg(\"muted\", text),\n\t\tscrollInfo: (text: string) => theme.fg(\"muted\", text),\n\t\tnoMatch: (text: string) => theme.fg(\"muted\", text),\n\t};\n}\n\nexport function getEditorTheme(): EditorTheme {\n\treturn {\n\t\tborderColor: (text: string) => theme.fg(\"borderMuted\", text),\n\t\tselectList: getSelectListTheme(),\n\t};\n}\n\nexport function getSettingsListTheme(): SettingsListTheme {\n\treturn {\n\t\tlabel: (text: string, selected: boolean) => (selected ? theme.fg(\"accent\", text) : text),\n\t\tvalue: (text: string, selected: boolean) => (selected ? theme.fg(\"accent\", text) : theme.fg(\"muted\", text)),\n\t\tdescription: (text: string) => theme.fg(\"dim\", text),\n\t\tcursor: theme.fg(\"accent\", \"→ \"),\n\t\thint: (text: string) => theme.fg(\"dim\", text),\n\t};\n}\n"]}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/modes/interactive/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAEN,eAAe,GAKf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEjF,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC;IACnC,IAAI,CAAC,MAAM,EAAE,EAAE,gDAAgD;IAC/D,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,kBAAkB;CAC9D,CAAC,CAAC;AAIH,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,IAAI,E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E,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC3G,WAAW,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QACpD,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC;QAChC,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;KAC7C,CAAC;AACH,CAAC","sourcesContent":["import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n\ttype EditorTheme,\n\tgetCapabilities,\n\ttype MarkdownTheme,\n\ttype RgbColor,\n\ttype SelectListTheme,\n\ttype SettingsListTheme,\n} from \"@earendil-works/pi-tui\";\nimport chalk from \"chalk\";\nimport { type Static, Type } from \"typebox\";\nimport { Compile } from \"typebox/compile\";\nimport { getCustomThemesDir, getThemesDir } from \"../../../config.ts\";\nimport type { SourceInfo } from \"../../../core/source-info.ts\";\nimport { closeWatcher, watchWithErrorHandler } from \"../../../utils/fs-watch.ts\";\nimport { highlight, supportsLanguage } from \"../../../utils/syntax-highlight.ts\";\n\n// ============================================================================\n// Types & Schema\n// ============================================================================\n\nconst ColorValueSchema = Type.Union([\n\tType.String(), // hex \"#ff0000\", var ref \"primary\", or empty \"\"\n\tType.Integer({ minimum: 0, maximum: 255 }), // 256-color index\n]);\n\ntype ColorValue = Static<typeof ColorValueSchema>;\n\nconst ThemeJsonSchema = Type.Object({\n\t$schema: Type.Optional(Type.String()),\n\tname: Type.String(),\n\tvars: Type.Optional(Type.Record(Type.String(), ColorValueSchema)),\n\tcolors: Type.Object({\n\t\t// Core UI (10 colors)\n\t\taccent: ColorValueSchema,\n\t\tborder: ColorValueSchema,\n\t\tborderAccent: ColorValueSchema,\n\t\tborderMuted: ColorValueSchema,\n\t\tsuccess: ColorValueSchema,\n\t\terror: ColorValueSchema,\n\t\twarning: ColorValueSchema,\n\t\tmuted: ColorValueSchema,\n\t\tdim: ColorValueSchema,\n\t\ttext: ColorValueSchema,\n\t\tthinkingText: ColorValueSchema,\n\t\t// Backgrounds & Content Text (11 colors)\n\t\tselectedBg: ColorValueSchema,\n\t\tuserMessageBg: ColorValueSchema,\n\t\tuserMessageText: ColorValueSchema,\n\t\tcustomMessageBg: ColorValueSchema,\n\t\tcustomMessageText: ColorValueSchema,\n\t\tcustomMessageLabel: ColorValueSchema,\n\t\ttoolPendingBg: ColorValueSchema,\n\t\ttoolSuccessBg: ColorValueSchema,\n\t\ttoolErrorBg: ColorValueSchema,\n\t\ttoolTitle: ColorValueSchema,\n\t\ttoolOutput: ColorValueSchema,\n\t\t// Markdown (10 colors)\n\t\tmdHeading: ColorValueSchema,\n\t\tmdLink: ColorValueSchema,\n\t\tmdLinkUrl: ColorValueSchema,\n\t\tmdCode: ColorValueSchema,\n\t\tmdCodeBlock: ColorValueSchema,\n\t\tmdCodeBlockBorder: ColorValueSchema,\n\t\tmdQuote: ColorValueSchema,\n\t\tmdQuoteBorder: ColorValueSchema,\n\t\tmdHr: ColorValueSchema,\n\t\tmdListBullet: ColorValueSchema,\n\t\t// Tool Diffs (3 colors)\n\t\ttoolDiffAdded: ColorValueSchema,\n\t\ttoolDiffRemoved: ColorValueSchema,\n\t\ttoolDiffContext: ColorValueSchema,\n\t\t// Syntax Highlighting (9 colors)\n\t\tsyntaxComment: ColorValueSchema,\n\t\tsyntaxKeyword: ColorValueSchema,\n\t\tsyntaxFunction: ColorValueSchema,\n\t\tsyntaxVariable: ColorValueSchema,\n\t\tsyntaxString: ColorValueSchema,\n\t\tsyntaxNumber: ColorValueSchema,\n\t\tsyntaxType: ColorValueSchema,\n\t\tsyntaxOperator: ColorValueSchema,\n\t\tsyntaxPunctuation: ColorValueSchema,\n\t\t// Thinking Level Borders (6 colors)\n\t\tthinkingOff: ColorValueSchema,\n\t\tthinkingMinimal: ColorValueSchema,\n\t\tthinkingLow: ColorValueSchema,\n\t\tthinkingMedium: ColorValueSchema,\n\t\tthinkingHigh: ColorValueSchema,\n\t\tthinkingXhigh: ColorValueSchema,\n\t\t// Bash Mode (1 color)\n\t\tbashMode: ColorValueSchema,\n\t}),\n\texport: Type.Optional(\n\t\tType.Object({\n\t\t\tpageBg: Type.Optional(ColorValueSchema),\n\t\t\tcardBg: Type.Optional(ColorValueSchema),\n\t\t\tinfoBg: Type.Optional(ColorValueSchema),\n\t\t}),\n\t),\n});\n\ntype ThemeJson = Static<typeof ThemeJsonSchema>;\n\nconst validateThemeJson = Compile(ThemeJsonSchema);\n\nexport type ThemeColor =\n\t| \"accent\"\n\t| \"border\"\n\t| \"borderAccent\"\n\t| \"borderMuted\"\n\t| \"success\"\n\t| \"error\"\n\t| \"warning\"\n\t| \"muted\"\n\t| \"dim\"\n\t| \"text\"\n\t| \"thinkingText\"\n\t| \"userMessageText\"\n\t| \"customMessageText\"\n\t| \"customMessageLabel\"\n\t| \"toolTitle\"\n\t| \"toolOutput\"\n\t| \"mdHeading\"\n\t| \"mdLink\"\n\t| \"mdLinkUrl\"\n\t| \"mdCode\"\n\t| \"mdCodeBlock\"\n\t| \"mdCodeBlockBorder\"\n\t| \"mdQuote\"\n\t| \"mdQuoteBorder\"\n\t| \"mdHr\"\n\t| \"mdListBullet\"\n\t| \"toolDiffAdded\"\n\t| \"toolDiffRemoved\"\n\t| \"toolDiffContext\"\n\t| \"syntaxComment\"\n\t| \"syntaxKeyword\"\n\t| \"syntaxFunction\"\n\t| \"syntaxVariable\"\n\t| \"syntaxString\"\n\t| \"syntaxNumber\"\n\t| \"syntaxType\"\n\t| \"syntaxOperator\"\n\t| \"syntaxPunctuation\"\n\t| \"thinkingOff\"\n\t| \"thinkingMinimal\"\n\t| \"thinkingLow\"\n\t| \"thinkingMedium\"\n\t| \"thinkingHigh\"\n\t| \"thinkingXhigh\"\n\t| \"bashMode\";\n\nexport type ThemeBg =\n\t| \"selectedBg\"\n\t| \"userMessageBg\"\n\t| \"customMessageBg\"\n\t| \"toolPendingBg\"\n\t| \"toolSuccessBg\"\n\t| \"toolErrorBg\";\n\ntype ColorMode = \"truecolor\" | \"256color\";\n\n// ============================================================================\n// Color Utilities\n// ============================================================================\n\nfunction hexToRgb(hex: string): { r: number; g: number; b: number } {\n\tconst cleaned = hex.replace(\"#\", \"\");\n\tif (cleaned.length !== 6) {\n\t\tthrow new Error(`Invalid hex color: ${hex}`);\n\t}\n\tconst r = parseInt(cleaned.substring(0, 2), 16);\n\tconst g = parseInt(cleaned.substring(2, 4), 16);\n\tconst b = parseInt(cleaned.substring(4, 6), 16);\n\tif (Number.isNaN(r) || Number.isNaN(g) || Number.isNaN(b)) {\n\t\tthrow new Error(`Invalid hex color: ${hex}`);\n\t}\n\treturn { r, g, b };\n}\n\n// The 6x6x6 color cube channel values (indices 0-5)\nconst CUBE_VALUES = [0, 95, 135, 175, 215, 255];\n\n// Grayscale ramp values (indices 232-255, 24 grays from 8 to 238)\nconst GRAY_VALUES = Array.from({ length: 24 }, (_, i) => 8 + i * 10);\n\nfunction findClosestCubeIndex(value: number): number {\n\tlet minDist = Infinity;\n\tlet minIdx = 0;\n\tfor (let i = 0; i < CUBE_VALUES.length; i++) {\n\t\tconst dist = Math.abs(value - CUBE_VALUES[i]);\n\t\tif (dist < minDist) {\n\t\t\tminDist = dist;\n\t\t\tminIdx = i;\n\t\t}\n\t}\n\treturn minIdx;\n}\n\nfunction findClosestGrayIndex(gray: number): number {\n\tlet minDist = Infinity;\n\tlet minIdx = 0;\n\tfor (let i = 0; i < GRAY_VALUES.length; i++) {\n\t\tconst dist = Math.abs(gray - GRAY_VALUES[i]);\n\t\tif (dist < minDist) {\n\t\t\tminDist = dist;\n\t\t\tminIdx = i;\n\t\t}\n\t}\n\treturn minIdx;\n}\n\nfunction colorDistance(r1: number, g1: number, b1: number, r2: number, g2: number, b2: number): number {\n\t// Weighted Euclidean distance (human eye is more sensitive to green)\n\tconst dr = r1 - r2;\n\tconst dg = g1 - g2;\n\tconst db = b1 - b2;\n\treturn dr * dr * 0.299 + dg * dg * 0.587 + db * db * 0.114;\n}\n\nfunction rgbTo256(r: number, g: number, b: number): number {\n\t// Find closest color in the 6x6x6 cube\n\tconst rIdx = findClosestCubeIndex(r);\n\tconst gIdx = findClosestCubeIndex(g);\n\tconst bIdx = findClosestCubeIndex(b);\n\tconst cubeR = CUBE_VALUES[rIdx];\n\tconst cubeG = CUBE_VALUES[gIdx];\n\tconst cubeB = CUBE_VALUES[bIdx];\n\tconst cubeIndex = 16 + 36 * rIdx + 6 * gIdx + bIdx;\n\tconst cubeDist = colorDistance(r, g, b, cubeR, cubeG, cubeB);\n\n\t// Find closest grayscale\n\tconst gray = Math.round(0.299 * r + 0.587 * g + 0.114 * b);\n\tconst grayIdx = findClosestGrayIndex(gray);\n\tconst grayValue = GRAY_VALUES[grayIdx];\n\tconst grayIndex = 232 + grayIdx;\n\tconst grayDist = colorDistance(r, g, b, grayValue, grayValue, grayValue);\n\n\t// Check if color has noticeable saturation (hue matters)\n\t// If max-min spread is significant, prefer cube to preserve tint\n\tconst maxC = Math.max(r, g, b);\n\tconst minC = Math.min(r, g, b);\n\tconst spread = maxC - minC;\n\n\t// Only consider grayscale if color is nearly neutral (spread < 10)\n\t// AND grayscale is actually closer\n\tif (spread < 10 && grayDist < cubeDist) {\n\t\treturn grayIndex;\n\t}\n\n\treturn cubeIndex;\n}\n\nfunction hexTo256(hex: string): number {\n\tconst { r, g, b } = hexToRgb(hex);\n\treturn rgbTo256(r, g, b);\n}\n\nfunction fgAnsi(color: string | number, mode: ColorMode): string {\n\tif (color === \"\") return \"\\x1b[39m\";\n\tif (typeof color === \"number\") return `\\x1b[38;5;${color}m`;\n\tif (color.startsWith(\"#\")) {\n\t\tif (mode === \"truecolor\") {\n\t\t\tconst { r, g, b } = hexToRgb(color);\n\t\t\treturn `\\x1b[38;2;${r};${g};${b}m`;\n\t\t} else {\n\t\t\tconst index = hexTo256(color);\n\t\t\treturn `\\x1b[38;5;${index}m`;\n\t\t}\n\t}\n\tthrow new Error(`Invalid color value: ${color}`);\n}\n\nfunction bgAnsi(color: string | number, mode: ColorMode): string {\n\tif (color === \"\") return \"\\x1b[49m\";\n\tif (typeof color === \"number\") return `\\x1b[48;5;${color}m`;\n\tif (color.startsWith(\"#\")) {\n\t\tif (mode === \"truecolor\") {\n\t\t\tconst { r, g, b } = hexToRgb(color);\n\t\t\treturn `\\x1b[48;2;${r};${g};${b}m`;\n\t\t} else {\n\t\t\tconst index = hexTo256(color);\n\t\t\treturn `\\x1b[48;5;${index}m`;\n\t\t}\n\t}\n\tthrow new Error(`Invalid color value: ${color}`);\n}\n\nfunction resolveVarRefs(\n\tvalue: ColorValue,\n\tvars: Record<string, ColorValue>,\n\tvisited = new Set<string>(),\n): string | number {\n\tif (typeof value === \"number\" || value === \"\" || value.startsWith(\"#\")) {\n\t\treturn value;\n\t}\n\tif (visited.has(value)) {\n\t\tthrow new Error(`Circular variable reference detected: ${value}`);\n\t}\n\tif (!(value in vars)) {\n\t\tthrow new Error(`Variable reference not found: ${value}`);\n\t}\n\tvisited.add(value);\n\treturn resolveVarRefs(vars[value], vars, visited);\n}\n\nfunction resolveThemeColors<T extends Record<string, ColorValue>>(\n\tcolors: T,\n\tvars: Record<string, ColorValue> = {},\n): Record<keyof T, string | number> {\n\tconst resolved: Record<string, string | number> = {};\n\tfor (const [key, value] of Object.entries(colors)) {\n\t\tresolved[key] = resolveVarRefs(value, vars);\n\t}\n\treturn resolved as Record<keyof T, string | number>;\n}\n\n// ============================================================================\n// Theme Class\n// ============================================================================\n\nexport class Theme {\n\treadonly name?: string;\n\treadonly sourcePath?: string;\n\tsourceInfo?: SourceInfo;\n\tprivate fgColors: Map<ThemeColor, string>;\n\tprivate bgColors: Map<ThemeBg, string>;\n\tprivate mode: ColorMode;\n\n\tconstructor(\n\t\tfgColors: Record<ThemeColor, string | number>,\n\t\tbgColors: Record<ThemeBg, string | number>,\n\t\tmode: ColorMode,\n\t\toptions: { name?: string; sourcePath?: string; sourceInfo?: SourceInfo } = {},\n\t) {\n\t\tthis.name = options.name;\n\t\tthis.sourcePath = options.sourcePath;\n\t\tthis.sourceInfo = options.sourceInfo;\n\t\tthis.mode = mode;\n\t\tthis.fgColors = new Map();\n\t\tfor (const [key, value] of Object.entries(fgColors) as [ThemeColor, string | number][]) {\n\t\t\tthis.fgColors.set(key, fgAnsi(value, mode));\n\t\t}\n\t\tthis.bgColors = new Map();\n\t\tfor (const [key, value] of Object.entries(bgColors) as [ThemeBg, string | number][]) {\n\t\t\tthis.bgColors.set(key, bgAnsi(value, mode));\n\t\t}\n\t}\n\n\tfg(color: ThemeColor, text: string): string {\n\t\tconst ansi = this.fgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme color: ${color}`);\n\t\treturn `${ansi}${text}\\x1b[39m`; // Reset only foreground color\n\t}\n\n\tbg(color: ThemeBg, text: string): string {\n\t\tconst ansi = this.bgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme background color: ${color}`);\n\t\treturn `${ansi}${text}\\x1b[49m`; // Reset only background color\n\t}\n\n\tbold(text: string): string {\n\t\treturn chalk.bold(text);\n\t}\n\n\titalic(text: string): string {\n\t\treturn chalk.italic(text);\n\t}\n\n\tunderline(text: string): string {\n\t\treturn chalk.underline(text);\n\t}\n\n\tinverse(text: string): string {\n\t\treturn chalk.inverse(text);\n\t}\n\n\tstrikethrough(text: string): string {\n\t\treturn chalk.strikethrough(text);\n\t}\n\n\tgetFgAnsi(color: ThemeColor): string {\n\t\tconst ansi = this.fgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme color: ${color}`);\n\t\treturn ansi;\n\t}\n\n\tgetBgAnsi(color: ThemeBg): string {\n\t\tconst ansi = this.bgColors.get(color);\n\t\tif (!ansi) throw new Error(`Unknown theme background color: ${color}`);\n\t\treturn ansi;\n\t}\n\n\tgetColorMode(): ColorMode {\n\t\treturn this.mode;\n\t}\n\n\tgetThinkingBorderColor(\n\t\tlevel: \"off\" | \"minimal\" | \"low\" | \"medium\" | \"high\" | \"xhigh\" | \"max\",\n\t): (str: string) => string {\n\t\tswitch (level) {\n\t\t\tcase \"off\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingOff\", str);\n\t\t\tcase \"minimal\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingMinimal\", str);\n\t\t\tcase \"low\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingLow\", str);\n\t\t\tcase \"medium\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingMedium\", str);\n\t\t\tcase \"high\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingHigh\", str);\n\t\t\tcase \"xhigh\":\n\t\t\tcase \"max\":\n\t\t\t\treturn (str: string) => this.fg(\"thinkingXhigh\", str);\n\t\t\tdefault:\n\t\t\t\treturn (str: string) => this.fg(\"thinkingOff\", str);\n\t\t}\n\t}\n\n\tgetBashModeBorderColor(): (str: string) => string {\n\t\treturn (str: string) => this.fg(\"bashMode\", str);\n\t}\n}\n\n// ============================================================================\n// Theme Loading\n// ============================================================================\n\nlet BUILTIN_THEMES: Record<string, ThemeJson> | undefined;\n\nfunction getBuiltinThemes(): Record<string, ThemeJson> {\n\tif (!BUILTIN_THEMES) {\n\t\tconst themesDir = getThemesDir();\n\t\tconst darkPath = path.join(themesDir, \"dark.json\");\n\t\tconst lightPath = path.join(themesDir, \"light.json\");\n\t\tBUILTIN_THEMES = {\n\t\t\tdark: JSON.parse(fs.readFileSync(darkPath, \"utf-8\")) as ThemeJson,\n\t\t\tlight: JSON.parse(fs.readFileSync(lightPath, \"utf-8\")) as ThemeJson,\n\t\t};\n\t}\n\treturn BUILTIN_THEMES;\n}\n\nexport function getAvailableThemes(): string[] {\n\treturn getAvailableThemesWithPaths().map(({ name }) => name);\n}\n\nexport interface ThemeInfo {\n\tname: string;\n\tpath: string | undefined;\n}\n\nexport function getAvailableThemesWithPaths(): ThemeInfo[] {\n\tconst themesDir = getThemesDir();\n\tconst result: ThemeInfo[] = [];\n\tconst seen = new Set<string>();\n\tconst addTheme = (themeInfo: ThemeInfo) => {\n\t\tif (seen.has(themeInfo.name)) {\n\t\t\treturn;\n\t\t}\n\t\tseen.add(themeInfo.name);\n\t\tresult.push(themeInfo);\n\t};\n\n\t// Built-in themes\n\tfor (const name of Object.keys(getBuiltinThemes())) {\n\t\taddTheme({ name, path: path.join(themesDir, `${name}.json`) });\n\t}\n\n\t// Custom themes\n\tfor (const themeInfo of getCustomThemeInfos()) {\n\t\taddTheme(themeInfo);\n\t}\n\n\tfor (const [name, theme] of registeredThemes.entries()) {\n\t\taddTheme({ name, path: theme.sourcePath });\n\t}\n\n\treturn result.sort((a, b) => a.name.localeCompare(b.name));\n}\n\nfunction getCustomThemeInfos(): ThemeInfo[] {\n\tconst customThemesDir = getCustomThemesDir();\n\tconst result: ThemeInfo[] = [];\n\tif (!fs.existsSync(customThemesDir)) {\n\t\treturn result;\n\t}\n\n\tfor (const file of fs.readdirSync(customThemesDir)) {\n\t\tif (!file.endsWith(\".json\")) {\n\t\t\tcontinue;\n\t\t}\n\t\tconst themePath = path.join(customThemesDir, file);\n\t\ttry {\n\t\t\tconst customTheme = loadThemeFromPath(themePath);\n\t\t\tif (customTheme.name) {\n\t\t\t\tresult.push({ name: customTheme.name, path: themePath });\n\t\t\t}\n\t\t} catch {\n\t\t\t// Invalid themes are ignored here; the resource loader reports them\n\t\t\t// during normal startup/reload.\n\t\t}\n\t}\n\treturn result;\n}\n\nfunction assertThemeNameIsValid(name: string): void {\n\tif (name.includes(\"/\")) {\n\t\tthrow new Error(\n\t\t\t`Invalid theme name \"${name}\": theme names cannot contain \"/\" because it is reserved for automatic light/dark theme settings.`,\n\t\t);\n\t}\n}\n\nfunction parseThemeJson(label: string, json: unknown): ThemeJson {\n\tif (!validateThemeJson.Check(json)) {\n\t\tconst errors = Array.from(validateThemeJson.Errors(json));\n\t\tconst missingColors = new Set<string>();\n\t\tconst otherErrors: string[] = [];\n\n\t\tfor (const error of errors) {\n\t\t\tif (error.keyword === \"required\" && error.instancePath === \"/colors\") {\n\t\t\t\tconst requiredProperties = (error.params as { requiredProperties?: string[] }).requiredProperties;\n\t\t\t\tfor (const requiredProperty of requiredProperties ?? []) {\n\t\t\t\t\tmissingColors.add(requiredProperty);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst path = error.instancePath || \"/\";\n\t\t\totherErrors.push(` - ${path}: ${error.message}`);\n\t\t}\n\n\t\tlet errorMessage = `Invalid theme \"${label}\":\\n`;\n\t\tif (missingColors.size > 0) {\n\t\t\terrorMessage += \"\\nMissing required color tokens:\\n\";\n\t\t\terrorMessage += Array.from(missingColors)\n\t\t\t\t.sort()\n\t\t\t\t.map((color) => ` - ${color}`)\n\t\t\t\t.join(\"\\n\");\n\t\t\terrorMessage += '\\n\\nPlease add these colors to your theme\\'s \"colors\" object.';\n\t\t\terrorMessage += \"\\nSee the built-in themes (dark.json, light.json) for reference values.\";\n\t\t}\n\t\tif (otherErrors.length > 0) {\n\t\t\terrorMessage += `\\n\\nOther errors:\\n${otherErrors.join(\"\\n\")}`;\n\t\t}\n\n\t\tthrow new Error(errorMessage);\n\t}\n\n\tconst themeJson = json as ThemeJson;\n\tassertThemeNameIsValid(themeJson.name);\n\treturn themeJson;\n}\n\nfunction parseThemeJsonContent(label: string, content: string): ThemeJson {\n\tlet json: unknown;\n\ttry {\n\t\tjson = JSON.parse(content);\n\t} catch (error) {\n\t\tthrow new Error(`Failed to parse theme ${label}: ${error}`);\n\t}\n\treturn parseThemeJson(label, json);\n}\n\nfunction loadThemeJson(name: string): ThemeJson {\n\tconst builtinThemes = getBuiltinThemes();\n\tif (name in builtinThemes) {\n\t\treturn builtinThemes[name];\n\t}\n\tconst registeredTheme = registeredThemes.get(name);\n\tif (registeredTheme?.sourcePath) {\n\t\tconst content = fs.readFileSync(registeredTheme.sourcePath, \"utf-8\");\n\t\treturn parseThemeJsonContent(registeredTheme.sourcePath, content);\n\t}\n\tif (registeredTheme) {\n\t\tthrow new Error(`Theme \"${name}\" does not have a source path for export`);\n\t}\n\tconst customThemesDir = getCustomThemesDir();\n\tconst themePath = path.join(customThemesDir, `${name}.json`);\n\tif (!fs.existsSync(themePath)) {\n\t\tthrow new Error(`Theme not found: ${name}`);\n\t}\n\tconst content = fs.readFileSync(themePath, \"utf-8\");\n\treturn parseThemeJsonContent(name, content);\n}\n\nfunction createTheme(themeJson: ThemeJson, mode?: ColorMode, sourcePath?: string): Theme {\n\tconst colorMode = mode ?? (getCapabilities().trueColor ? \"truecolor\" : \"256color\");\n\tconst resolvedColors = resolveThemeColors(themeJson.colors, themeJson.vars);\n\tconst fgColors: Record<ThemeColor, string | number> = {} as Record<ThemeColor, string | number>;\n\tconst bgColors: Record<ThemeBg, string | number> = {} as Record<ThemeBg, string | number>;\n\tconst bgColorKeys: Set<string> = new Set([\n\t\t\"selectedBg\",\n\t\t\"userMessageBg\",\n\t\t\"customMessageBg\",\n\t\t\"toolPendingBg\",\n\t\t\"toolSuccessBg\",\n\t\t\"toolErrorBg\",\n\t]);\n\tfor (const [key, value] of Object.entries(resolvedColors)) {\n\t\tif (bgColorKeys.has(key)) {\n\t\t\tbgColors[key as ThemeBg] = value;\n\t\t} else {\n\t\t\tfgColors[key as ThemeColor] = value;\n\t\t}\n\t}\n\treturn new Theme(fgColors, bgColors, colorMode, {\n\t\tname: themeJson.name,\n\t\tsourcePath,\n\t});\n}\n\nexport function loadThemeFromPath(themePath: string, mode?: ColorMode): Theme {\n\tconst content = fs.readFileSync(themePath, \"utf-8\");\n\tconst themeJson = parseThemeJsonContent(themePath, content);\n\treturn createTheme(themeJson, mode, themePath);\n}\n\nfunction loadTheme(name: string, mode?: ColorMode): Theme {\n\tconst registeredTheme = registeredThemes.get(name);\n\tif (registeredTheme) {\n\t\treturn registeredTheme;\n\t}\n\tconst themeJson = loadThemeJson(name);\n\treturn createTheme(themeJson, mode);\n}\n\nexport function getThemeByName(name: string): Theme | undefined {\n\ttry {\n\t\treturn loadTheme(name);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\nexport type TerminalTheme = \"dark\" | \"light\";\n\nexport function parseAutoThemeSetting(\n\tthemeSetting: string | undefined,\n): { lightTheme: string; darkTheme: string } | undefined {\n\tif (!themeSetting) return undefined;\n\tconst slashIndex = themeSetting.indexOf(\"/\");\n\tif (slashIndex === -1 || themeSetting.indexOf(\"/\", slashIndex + 1) !== -1) {\n\t\treturn undefined;\n\t}\n\n\tconst lightTheme = themeSetting.slice(0, slashIndex).trim();\n\tconst darkTheme = themeSetting.slice(slashIndex + 1).trim();\n\tif (!lightTheme || !darkTheme) {\n\t\treturn undefined;\n\t}\n\treturn { lightTheme, darkTheme };\n}\n\nexport function resolveThemeSetting(\n\tthemeSetting: string | undefined,\n\tterminalTheme: TerminalTheme,\n): string | undefined {\n\tconst autoTheme = parseAutoThemeSetting(themeSetting);\n\tif (autoTheme) {\n\t\treturn terminalTheme === \"light\" ? autoTheme.lightTheme : autoTheme.darkTheme;\n\t}\n\tif (themeSetting?.includes(\"/\")) return undefined;\n\tif (typeof themeSetting === \"string\") return themeSetting;\n\treturn undefined;\n}\n\nexport interface TerminalThemeDetection {\n\ttheme: TerminalTheme;\n\tsource: \"terminal background\" | \"COLORFGBG\" | \"fallback\";\n\tdetail: string;\n\tconfidence: \"high\" | \"low\";\n}\n\nexport interface TerminalThemeDetectionOptions {\n\tenv?: NodeJS.ProcessEnv;\n}\n\nexport interface TerminalBackgroundThemeDetector {\n\tqueryTerminalBackgroundColor({ timeoutMs }: { timeoutMs: number }): Promise<RgbColor | undefined>;\n}\n\nexport interface TerminalBackgroundThemeDetectionOptions extends TerminalThemeDetectionOptions {\n\tui: TerminalBackgroundThemeDetector;\n\ttimeoutMs: number;\n}\n\nfunction getColorFgBgBackgroundIndex(colorfgbg: string): number | undefined {\n\tconst parts = colorfgbg.split(\";\");\n\tfor (let i = parts.length - 1; i >= 0; i--) {\n\t\tconst bg = parseInt(parts[i].trim(), 10);\n\t\tif (Number.isInteger(bg) && bg >= 0 && bg <= 255) {\n\t\t\treturn bg;\n\t\t}\n\t}\n\treturn undefined;\n}\n\nfunction getRgbColorLuminance({ r, g, b }: RgbColor): number {\n\tconst toLinear = (channel: number) => {\n\t\tconst value = channel / 255;\n\t\treturn value <= 0.03928 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4;\n\t};\n\treturn 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n}\n\nfunction getAnsiColorLuminance(index: number): number {\n\treturn getRgbColorLuminance(hexToRgb(ansi256ToHex(index)));\n}\n\nexport function getThemeForRgbColor(rgb: RgbColor): TerminalTheme {\n\treturn getRgbColorLuminance(rgb) >= 0.5 ? \"light\" : \"dark\";\n}\n\nexport function detectTerminalBackgroundFromEnv(options: TerminalThemeDetectionOptions = {}): TerminalThemeDetection {\n\tconst env = options.env ?? process.env;\n\tconst colorfgbg = env.COLORFGBG || \"\";\n\tconst bg = getColorFgBgBackgroundIndex(colorfgbg);\n\tif (bg !== undefined) {\n\t\treturn {\n\t\t\ttheme: getAnsiColorLuminance(bg) >= 0.5 ? \"light\" : \"dark\",\n\t\t\tsource: \"COLORFGBG\",\n\t\t\tdetail: `background color index ${bg}`,\n\t\t\tconfidence: \"high\",\n\t\t};\n\t}\n\n\treturn {\n\t\ttheme: \"dark\",\n\t\tsource: \"fallback\",\n\t\tdetail: \"no terminal background hint found\",\n\t\tconfidence: \"low\",\n\t};\n}\n\nexport async function detectTerminalBackgroundTheme({\n\tui,\n\ttimeoutMs,\n\tenv,\n}: TerminalBackgroundThemeDetectionOptions): Promise<TerminalThemeDetection> {\n\ttry {\n\t\tconst rgb = await ui.queryTerminalBackgroundColor({ timeoutMs });\n\t\tif (rgb) {\n\t\t\treturn {\n\t\t\t\ttheme: getThemeForRgbColor(rgb),\n\t\t\t\tsource: \"terminal background\",\n\t\t\t\tdetail: `OSC 11 background rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`,\n\t\t\t\tconfidence: \"high\",\n\t\t\t};\n\t\t}\n\t} catch {\n\t\t// Fall back to environment-based detection when the terminal query fails.\n\t}\n\n\treturn detectTerminalBackgroundFromEnv({ env });\n}\n\nexport function getDefaultTheme(): string {\n\treturn detectTerminalBackgroundFromEnv().theme;\n}\n\n// ============================================================================\n// Global Theme Instance\n// ============================================================================\n\n// Use globalThis to share theme across module loaders (tsx + jiti in dev mode)\nconst THEME_KEY = Symbol.for(\"@earendil-works/pi-coding-agent:theme\");\nconst THEME_KEY_OLD = Symbol.for(\"@mariozechner/pi-coding-agent:theme\");\n\n// Export theme as a getter that reads from globalThis\n// This ensures all module instances (tsx, jiti) see the same theme\nexport const theme: Theme = new Proxy({} as Theme, {\n\tget(_target, prop) {\n\t\tconst t = (globalThis as Record<symbol, Theme>)[THEME_KEY];\n\t\tif (!t) throw new Error(\"Theme not initialized. Call initTheme() first.\");\n\t\treturn Reflect.get(t, prop);\n\t},\n});\n\nfunction setGlobalTheme(t: Theme): void {\n\t(globalThis as Record<symbol, Theme>)[THEME_KEY] = t;\n\t(globalThis as Record<symbol, Theme>)[THEME_KEY_OLD] = t;\n}\n\nlet currentThemeName: string | undefined;\nlet themeWatcher: fs.FSWatcher | undefined;\nlet themeReloadTimer: NodeJS.Timeout | undefined;\nlet onThemeChangeCallback: (() => void) | undefined;\nconst registeredThemes = new Map<string, Theme>();\n\nexport function setRegisteredThemes(themes: Theme[]): void {\n\tregisteredThemes.clear();\n\tfor (const theme of themes) {\n\t\tif (theme.name) {\n\t\t\tassertThemeNameIsValid(theme.name);\n\t\t\tregisteredThemes.set(theme.name, theme);\n\t\t}\n\t}\n}\n\nexport function initTheme(themeName?: string, enableWatcher: boolean = false): void {\n\tconst name = themeName ?? getDefaultTheme();\n\tcurrentThemeName = name;\n\ttry {\n\t\tsetGlobalTheme(loadTheme(name));\n\t\tif (enableWatcher) {\n\t\t\tstartThemeWatcher();\n\t\t}\n\t} catch (_error) {\n\t\t// Theme is invalid - fall back to dark theme silently\n\t\tcurrentThemeName = \"dark\";\n\t\tsetGlobalTheme(loadTheme(\"dark\"));\n\t\t// Don't start watcher for fallback theme\n\t}\n}\n\nexport function setTheme(name: string, enableWatcher: boolean = false): { success: boolean; error?: string } {\n\tcurrentThemeName = name;\n\ttry {\n\t\tsetGlobalTheme(loadTheme(name));\n\t\tif (enableWatcher) {\n\t\t\tstartThemeWatcher();\n\t\t}\n\t\tif (onThemeChangeCallback) {\n\t\t\tonThemeChangeCallback();\n\t\t}\n\t\treturn { success: true };\n\t} catch (error) {\n\t\t// Theme is invalid - fall back to dark theme\n\t\tcurrentThemeName = \"dark\";\n\t\tsetGlobalTheme(loadTheme(\"dark\"));\n\t\t// Don't start watcher for fallback theme\n\t\treturn {\n\t\t\tsuccess: false,\n\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t};\n\t}\n}\n\nexport function setThemeInstance(themeInstance: Theme): void {\n\tsetGlobalTheme(themeInstance);\n\tcurrentThemeName = \"<in-memory>\";\n\tstopThemeWatcher(); // Can't watch a direct instance\n\tif (onThemeChangeCallback) {\n\t\tonThemeChangeCallback();\n\t}\n}\n\nexport function onThemeChange(callback: () => void): void {\n\tonThemeChangeCallback = callback;\n}\n\nfunction startThemeWatcher(): void {\n\tstopThemeWatcher();\n\n\t// Only watch if it's a custom theme (not built-in)\n\tif (!currentThemeName || currentThemeName === \"dark\" || currentThemeName === \"light\") {\n\t\treturn;\n\t}\n\n\tconst customThemesDir = getCustomThemesDir();\n\tconst watchedThemeName = currentThemeName;\n\tconst watchedFileName = `${watchedThemeName}.json`;\n\tconst themeFile = path.join(customThemesDir, watchedFileName);\n\n\t// Only watch if the file exists\n\tif (!fs.existsSync(themeFile)) {\n\t\treturn;\n\t}\n\n\tconst scheduleReload = () => {\n\t\tif (themeReloadTimer) {\n\t\t\tclearTimeout(themeReloadTimer);\n\t\t}\n\t\tthemeReloadTimer = setTimeout(() => {\n\t\t\tthemeReloadTimer = undefined;\n\n\t\t\t// Ignore stale timers after switching themes or stopping the watcher\n\t\t\tif (currentThemeName !== watchedThemeName) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Keep the last successfully loaded theme active if the file is temporarily missing\n\t\t\tif (!fs.existsSync(themeFile)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Reload the theme from disk and refresh the registry cache\n\t\t\t\tconst reloadedTheme = loadThemeFromPath(themeFile);\n\t\t\t\tregisteredThemes.set(watchedThemeName, reloadedTheme);\n\t\t\t\tsetGlobalTheme(reloadedTheme);\n\t\t\t\t// Notify callback (to invalidate UI)\n\t\t\t\tif (onThemeChangeCallback) {\n\t\t\t\t\tonThemeChangeCallback();\n\t\t\t\t}\n\t\t\t} catch (_error) {\n\t\t\t\t// Ignore errors (file might be in invalid state while being edited)\n\t\t\t}\n\t\t}, 100);\n\t};\n\n\tthemeWatcher =\n\t\twatchWithErrorHandler(\n\t\t\tcustomThemesDir,\n\t\t\t(_eventType, filename) => {\n\t\t\t\tif (currentThemeName !== watchedThemeName) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (!filename) {\n\t\t\t\t\tscheduleReload();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (filename !== watchedFileName) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tscheduleReload();\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tcloseWatcher(themeWatcher);\n\t\t\t\tthemeWatcher = undefined;\n\t\t\t},\n\t\t) ?? undefined;\n}\n\nexport function stopThemeWatcher(): void {\n\tif (themeReloadTimer) {\n\t\tclearTimeout(themeReloadTimer);\n\t\tthemeReloadTimer = undefined;\n\t}\n\tcloseWatcher(themeWatcher);\n\tthemeWatcher = undefined;\n}\n\n// ============================================================================\n// HTML Export Helpers\n// ============================================================================\n\n/**\n * Convert a 256-color index to hex string.\n * Indices 0-15: basic colors (approximate)\n * Indices 16-231: 6x6x6 color cube\n * Indices 232-255: grayscale ramp\n */\nfunction ansi256ToHex(index: number): string {\n\t// Basic colors (0-15) - approximate common terminal values\n\tconst basicColors = [\n\t\t\"#000000\",\n\t\t\"#800000\",\n\t\t\"#008000\",\n\t\t\"#808000\",\n\t\t\"#000080\",\n\t\t\"#800080\",\n\t\t\"#008080\",\n\t\t\"#c0c0c0\",\n\t\t\"#808080\",\n\t\t\"#ff0000\",\n\t\t\"#00ff00\",\n\t\t\"#ffff00\",\n\t\t\"#0000ff\",\n\t\t\"#ff00ff\",\n\t\t\"#00ffff\",\n\t\t\"#ffffff\",\n\t];\n\tif (index < 16) {\n\t\treturn basicColors[index];\n\t}\n\n\t// Color cube (16-231): 6x6x6 = 216 colors\n\tif (index < 232) {\n\t\tconst cubeIndex = index - 16;\n\t\tconst r = Math.floor(cubeIndex / 36);\n\t\tconst g = Math.floor((cubeIndex % 36) / 6);\n\t\tconst b = cubeIndex % 6;\n\t\tconst toHex = (n: number) => (n === 0 ? 0 : 55 + n * 40).toString(16).padStart(2, \"0\");\n\t\treturn `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n\t}\n\n\t// Grayscale (232-255): 24 shades\n\tconst gray = 8 + (index - 232) * 10;\n\tconst grayHex = gray.toString(16).padStart(2, \"0\");\n\treturn `#${grayHex}${grayHex}${grayHex}`;\n}\n\n/**\n * Get resolved theme colors as CSS-compatible hex strings.\n * Used by HTML export to generate CSS custom properties.\n */\nexport function getResolvedThemeColors(themeName?: string): Record<string, string> {\n\tconst name = themeName ?? currentThemeName ?? getDefaultTheme();\n\tconst isLight = name === \"light\";\n\tconst themeJson = loadThemeJson(name);\n\tconst resolved = resolveThemeColors(themeJson.colors, themeJson.vars);\n\n\t// Default text color for empty values (terminal uses default fg color)\n\tconst defaultText = isLight ? \"#000000\" : \"#e5e5e7\";\n\n\tconst cssColors: Record<string, string> = {};\n\tfor (const [key, value] of Object.entries(resolved)) {\n\t\tif (typeof value === \"number\") {\n\t\t\tcssColors[key] = ansi256ToHex(value);\n\t\t} else if (value === \"\") {\n\t\t\t// Empty means default terminal color - use sensible fallback for HTML\n\t\t\tcssColors[key] = defaultText;\n\t\t} else {\n\t\t\tcssColors[key] = value;\n\t\t}\n\t}\n\treturn cssColors;\n}\n\n/**\n * Get explicit export colors from theme JSON, if specified.\n * Returns undefined for each color that isn't explicitly set.\n */\nexport function getThemeExportColors(themeName?: string): {\n\tpageBg?: string;\n\tcardBg?: string;\n\tinfoBg?: string;\n} {\n\tconst name = themeName ?? currentThemeName ?? getDefaultTheme();\n\ttry {\n\t\tconst themeJson = loadThemeJson(name);\n\t\tconst exportSection = themeJson.export;\n\t\tif (!exportSection) return {};\n\n\t\tconst vars = themeJson.vars ?? {};\n\t\tconst resolve = (value: ColorValue | undefined): string | undefined => {\n\t\t\tif (value === undefined) return undefined;\n\t\t\tconst resolved = resolveVarRefs(value, vars);\n\t\t\tif (typeof resolved === \"number\") return ansi256ToHex(resolved);\n\t\t\tif (resolved === \"\") return undefined;\n\t\t\treturn resolved;\n\t\t};\n\n\t\treturn {\n\t\t\tpageBg: resolve(exportSection.pageBg),\n\t\t\tcardBg: resolve(exportSection.cardBg),\n\t\t\tinfoBg: resolve(exportSection.infoBg),\n\t\t};\n\t} catch {\n\t\treturn {};\n\t}\n}\n\n// ============================================================================\n// TUI Helpers\n// ============================================================================\n\ntype CliHighlightTheme = Record<string, (s: string) => string>;\n\nlet cachedHighlightThemeFor: Theme | undefined;\nlet cachedCliHighlightTheme: CliHighlightTheme | undefined;\n\nfunction buildCliHighlightTheme(t: Theme): CliHighlightTheme {\n\treturn {\n\t\tkeyword: (s: string) => t.fg(\"syntaxKeyword\", s),\n\t\tbuilt_in: (s: string) => t.fg(\"syntaxType\", s),\n\t\tliteral: (s: string) => t.fg(\"syntaxNumber\", s),\n\t\tnumber: (s: string) => t.fg(\"syntaxNumber\", s),\n\t\tregexp: (s: string) => t.fg(\"syntaxString\", s),\n\t\tstring: (s: string) => t.fg(\"syntaxString\", s),\n\t\tcomment: (s: string) => t.fg(\"syntaxComment\", s),\n\t\tdoctag: (s: string) => t.fg(\"syntaxComment\", s),\n\t\tmeta: (s: string) => t.fg(\"muted\", s),\n\t\tfunction: (s: string) => t.fg(\"syntaxFunction\", s),\n\t\ttitle: (s: string) => t.fg(\"syntaxFunction\", s),\n\t\tclass: (s: string) => t.fg(\"syntaxType\", s),\n\t\ttype: (s: string) => t.fg(\"syntaxType\", s),\n\t\ttag: (s: string) => t.fg(\"syntaxPunctuation\", s),\n\t\tname: (s: string) => t.fg(\"syntaxKeyword\", s),\n\t\tattr: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\tvariable: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\tparams: (s: string) => t.fg(\"syntaxVariable\", s),\n\t\toperator: (s: string) => t.fg(\"syntaxOperator\", s),\n\t\tpunctuation: (s: string) => t.fg(\"syntaxPunctuation\", s),\n\t\temphasis: (s: string) => t.italic(s),\n\t\tstrong: (s: string) => t.bold(s),\n\t\tlink: (s: string) => t.underline(s),\n\t\taddition: (s: string) => t.fg(\"toolDiffAdded\", s),\n\t\tdeletion: (s: string) => t.fg(\"toolDiffRemoved\", s),\n\t};\n}\n\nfunction getCliHighlightTheme(t: Theme): CliHighlightTheme {\n\tif (cachedHighlightThemeFor !== t || !cachedCliHighlightTheme) {\n\t\tcachedHighlightThemeFor = t;\n\t\tcachedCliHighlightTheme = buildCliHighlightTheme(t);\n\t}\n\treturn cachedCliHighlightTheme;\n}\n\n/**\n * Highlight code with syntax coloring based on file extension or language.\n * Returns array of highlighted lines.\n */\nexport function highlightCode(code: string, lang?: string): string[] {\n\t// Validate language before highlighting to avoid stderr spam from cli-highlight\n\tconst validLang = lang && supportsLanguage(lang) ? lang : undefined;\n\t// Skip highlighting when no valid language is specified. cli-highlight's\n\t// auto-detection is unreliable and can misidentify prose as AppleScript,\n\t// LiveCodeServer, etc., coloring random English words as keywords.\n\tif (!validLang) {\n\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t}\n\tconst opts = {\n\t\tlanguage: validLang,\n\t\tignoreIllegals: true,\n\t\ttheme: getCliHighlightTheme(theme),\n\t};\n\ttry {\n\t\treturn highlight(code, opts).split(\"\\n\");\n\t} catch {\n\t\treturn code.split(\"\\n\");\n\t}\n}\n\n/**\n * Get language identifier from file path extension.\n */\nexport function getLanguageFromPath(filePath: string): string | undefined {\n\tconst ext = filePath.split(\".\").pop()?.toLowerCase();\n\tif (!ext) return undefined;\n\n\tconst extToLang: Record<string, string> = {\n\t\tts: \"typescript\",\n\t\ttsx: \"typescript\",\n\t\tjs: \"javascript\",\n\t\tjsx: \"javascript\",\n\t\tmjs: \"javascript\",\n\t\tcjs: \"javascript\",\n\t\tpy: \"python\",\n\t\trb: \"ruby\",\n\t\trs: \"rust\",\n\t\tgo: \"go\",\n\t\tjava: \"java\",\n\t\tkt: \"kotlin\",\n\t\tswift: \"swift\",\n\t\tc: \"c\",\n\t\th: \"c\",\n\t\tcpp: \"cpp\",\n\t\tcc: \"cpp\",\n\t\tcxx: \"cpp\",\n\t\thpp: \"cpp\",\n\t\tcs: \"csharp\",\n\t\tphp: \"php\",\n\t\tsh: \"bash\",\n\t\tbash: \"bash\",\n\t\tzsh: \"bash\",\n\t\tfish: \"fish\",\n\t\tps1: \"powershell\",\n\t\tsql: \"sql\",\n\t\thtml: \"html\",\n\t\thtm: \"html\",\n\t\tcss: \"css\",\n\t\tscss: \"scss\",\n\t\tsass: \"sass\",\n\t\tless: \"less\",\n\t\tjson: \"json\",\n\t\tyaml: \"yaml\",\n\t\tyml: \"yaml\",\n\t\ttoml: \"toml\",\n\t\txml: \"xml\",\n\t\tmd: \"markdown\",\n\t\tmarkdown: \"markdown\",\n\t\tdockerfile: \"dockerfile\",\n\t\tmakefile: \"makefile\",\n\t\tcmake: \"cmake\",\n\t\tlua: \"lua\",\n\t\tperl: \"perl\",\n\t\tr: \"r\",\n\t\tscala: \"scala\",\n\t\tclj: \"clojure\",\n\t\tex: \"elixir\",\n\t\texs: \"elixir\",\n\t\terl: \"erlang\",\n\t\ths: \"haskell\",\n\t\tml: \"ocaml\",\n\t\tvim: \"vim\",\n\t\tgraphql: \"graphql\",\n\t\tproto: \"protobuf\",\n\t\ttf: \"hcl\",\n\t\thcl: \"hcl\",\n\t};\n\n\treturn extToLang[ext];\n}\n\nexport function getMarkdownTheme(): MarkdownTheme {\n\treturn {\n\t\theading: (text: string) => theme.fg(\"mdHeading\", text),\n\t\tlink: (text: string) => theme.fg(\"mdLink\", text),\n\t\tlinkUrl: (text: string) => theme.fg(\"mdLinkUrl\", text),\n\t\tcode: (text: string) => theme.fg(\"mdCode\", text),\n\t\tcodeBlock: (text: string) => theme.fg(\"mdCodeBlock\", text),\n\t\tcodeBlockBorder: (text: string) => theme.fg(\"mdCodeBlockBorder\", text),\n\t\tquote: (text: string) => theme.fg(\"mdQuote\", text),\n\t\tquoteBorder: (text: string) => theme.fg(\"mdQuoteBorder\", text),\n\t\thr: (text: string) => theme.fg(\"mdHr\", text),\n\t\tlistBullet: (text: string) => theme.fg(\"mdListBullet\", text),\n\t\tbold: (text: string) => theme.bold(text),\n\t\titalic: (text: string) => theme.italic(text),\n\t\tunderline: (text: string) => theme.underline(text),\n\t\tstrikethrough: (text: string) => chalk.strikethrough(text),\n\t\thighlightCode: (code: string, lang?: string): string[] => {\n\t\t\t// Validate language before highlighting to avoid stderr spam from cli-highlight\n\t\t\tconst validLang = lang && supportsLanguage(lang) ? lang : undefined;\n\t\t\t// Skip highlighting when no valid language is specified. cli-highlight's\n\t\t\t// auto-detection is unreliable and can misidentify prose as AppleScript,\n\t\t\t// LiveCodeServer, etc., coloring random English words as keywords.\n\t\t\tif (!validLang) {\n\t\t\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t\t\t}\n\t\t\tconst opts = {\n\t\t\t\tlanguage: validLang,\n\t\t\t\tignoreIllegals: true,\n\t\t\t\ttheme: getCliHighlightTheme(theme),\n\t\t\t};\n\t\t\ttry {\n\t\t\t\treturn highlight(code, opts).split(\"\\n\");\n\t\t\t} catch {\n\t\t\t\treturn code.split(\"\\n\").map((line) => theme.fg(\"mdCodeBlock\", line));\n\t\t\t}\n\t\t},\n\t};\n}\n\nexport function getSelectListTheme(): SelectListTheme {\n\treturn {\n\t\tselectedPrefix: (text: string) => theme.fg(\"accent\", text),\n\t\tselectedText: (text: string) => theme.fg(\"accent\", text),\n\t\tdescription: (text: string) => theme.fg(\"muted\", text),\n\t\tscrollInfo: (text: string) => theme.fg(\"muted\", text),\n\t\tnoMatch: (text: string) => theme.fg(\"muted\", text),\n\t};\n}\n\nexport function getEditorTheme(): EditorTheme {\n\treturn {\n\t\tborderColor: (text: string) => theme.fg(\"borderMuted\", text),\n\t\tselectList: getSelectListTheme(),\n\t};\n}\n\nexport function getSettingsListTheme(): SettingsListTheme {\n\treturn {\n\t\tlabel: (text: string, selected: boolean) => (selected ? theme.fg(\"accent\", text) : text),\n\t\tvalue: (text: string, selected: boolean) => (selected ? theme.fg(\"accent\", text) : theme.fg(\"muted\", text)),\n\t\tdescription: (text: string) => theme.fg(\"dim\", text),\n\t\tcursor: theme.fg(\"accent\", \"→ \"),\n\t\thint: (text: string) => theme.fg(\"dim\", text),\n\t};\n}\n"]}
@@ -537,7 +537,7 @@ export async function runRpcMode(runtimeHost) {
537
537
  }
538
538
  default: {
539
539
  const unknownCommand = command;
540
- return error(undefined, unknownCommand.type, `Unknown command: ${unknownCommand.type}`);
540
+ return error(id, unknownCommand.type, `Unknown command: ${unknownCommand.type}`);
541
541
  }
542
542
  }
543
543
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-mode.js","sourceRoot":"","sources":["../../../src/modes/rpc/rpc-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAQtC,OAAO,EACN,cAAc,EACd,cAAc,EACd,4BAA4B,EAC5B,cAAc,GACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,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I,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACX,WAAW,EAAE,CAAC;YACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QACtC,CAAC,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,6BAA6B;IAC7B,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/**\n * RPC mode: Headless operation with JSON stdin/stdout protocol.\n *\n * Used for embedding the agent in other applications.\n * Receives commands as JSON on stdin, outputs events and responses as JSON on stdout.\n *\n * Protocol:\n * - Commands: JSON objects with `type` field, optional `id` for correlation\n * - Responses: JSON objects with `type: \"response\"`, `command`, `success`, and optional `data`/`error`\n * - Events: AgentSessionEvent objects streamed as they occur\n * - Extension UI: Extension UI requests are emitted, client responds with extension_ui_response\n */\n\nimport * as crypto from \"node:crypto\";\nimport type { AgentSessionRuntime } from \"../../core/agent-session-runtime.ts\";\nimport type {\n\tExtensionUIContext,\n\tExtensionUIDialogOptions,\n\tExtensionWidgetOptions,\n\tWorkingIndicatorOptions,\n} from \"../../core/extensions/index.ts\";\nimport {\n\tflushRawStdout,\n\ttakeOverStdout,\n\twaitForRawStdoutBackpressure,\n\twriteRawStdout,\n} from \"../../core/output-guard.ts\";\nimport { killTrackedDetachedChildren } from \"../../utils/shell.ts\";\nimport { type Theme, theme } from \"../interactive/theme/theme.ts\";\nimport { createRpcEventOutputBuffer } from \"./event-output-buffer.ts\";\nimport { attachJsonlLineReader } from \"./jsonl.ts\";\nimport type {\n\tRpcCommand,\n\tRpcExtensionUIRequest,\n\tRpcExtensionUIResponse,\n\tRpcResponse,\n\tRpcSessionState,\n\tRpcSlashCommand,\n} from \"./rpc-types.ts\";\n\n// Re-export types for consumers\nexport type {\n\tRpcCommand,\n\tRpcExtensionUIRequest,\n\tRpcExtensionUIResponse,\n\tRpcResponse,\n\tRpcSessionState,\n} from \"./rpc-types.ts\";\n\n/**\n * Run in RPC mode.\n * Listens for JSON commands on stdin, outputs events and responses on stdout.\n */\nexport async function runRpcMode(runtimeHost: AgentSessionRuntime): Promise<never> {\n\ttakeOverStdout();\n\tlet session = runtimeHost.session;\n\tlet unsubscribe: (() => void) | undefined;\n\tlet unsubscribeBackpressure: (() => void) | undefined;\n\tconst eventOutput = createRpcEventOutputBuffer(writeRawStdout);\n\n\tconst output = (obj: RpcResponse | RpcExtensionUIRequest | object) => {\n\t\teventOutput.writeImmediate(obj);\n\t};\n\n\tconst outputEvent = (event: object) => {\n\t\teventOutput.enqueueEvent(event);\n\t};\n\n\tconst waitForRpcStdoutBackpressure = async (): Promise<void> => {\n\t\teventOutput.flushEvents();\n\t\tawait waitForRawStdoutBackpressure();\n\t};\n\n\tconst success = <T extends RpcCommand[\"type\"]>(\n\t\tid: string | undefined,\n\t\tcommand: T,\n\t\tdata?: object | null,\n\t): RpcResponse => {\n\t\tif (data === undefined) {\n\t\t\treturn { id, type: \"response\", command, success: true } as RpcResponse;\n\t\t}\n\t\treturn { id, type: \"response\", command, success: true, data } as RpcResponse;\n\t};\n\n\tconst error = (id: string | undefined, command: string, message: string): RpcResponse => {\n\t\treturn { id, type: \"response\", command, success: false, error: message };\n\t};\n\n\t// Pending extension UI requests waiting for response\n\tconst pendingExtensionRequests = new Map<\n\t\tstring,\n\t\t{ resolve: (value: any) => void; reject: (error: Error) => void }\n\t>();\n\n\t// Shutdown request flag\n\tlet shutdownRequested = false;\n\tlet shuttingDown = false;\n\tconst signalCleanupHandlers: Array<() => void> = [];\n\n\t/** Helper for dialog methods with signal/timeout support */\n\tfunction createDialogPromise<T>(\n\t\topts: ExtensionUIDialogOptions | undefined,\n\t\tdefaultValue: T,\n\t\trequest: Record<string, unknown>,\n\t\tparseResponse: (response: RpcExtensionUIResponse) => T,\n\t): Promise<T> {\n\t\tif (opts?.signal?.aborted) return Promise.resolve(defaultValue);\n\n\t\tconst id = crypto.randomUUID();\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n\t\t\tconst cleanup = () => {\n\t\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\t\topts?.signal?.removeEventListener(\"abort\", onAbort);\n\t\t\t\tpendingExtensionRequests.delete(id);\n\t\t\t};\n\n\t\t\tconst onAbort = () => {\n\t\t\t\tcleanup();\n\t\t\t\tresolve(defaultValue);\n\t\t\t};\n\t\t\topts?.signal?.addEventListener(\"abort\", onAbort, { once: true });\n\n\t\t\tif (opts?.timeout) {\n\t\t\t\ttimeoutId = setTimeout(() => {\n\t\t\t\t\tcleanup();\n\t\t\t\t\tresolve(defaultValue);\n\t\t\t\t}, opts.timeout);\n\t\t\t}\n\n\t\t\tpendingExtensionRequests.set(id, {\n\t\t\t\tresolve: (response: RpcExtensionUIResponse) => {\n\t\t\t\t\tcleanup();\n\t\t\t\t\tresolve(parseResponse(response));\n\t\t\t\t},\n\t\t\t\treject,\n\t\t\t});\n\t\t\toutput({ type: \"extension_ui_request\", id, ...request } as RpcExtensionUIRequest);\n\t\t});\n\t}\n\n\t/**\n\t * Create an extension UI context that uses the RPC protocol.\n\t */\n\tconst createExtensionUIContext = (): ExtensionUIContext => ({\n\t\tselect: (title, options, opts) =>\n\t\t\tcreateDialogPromise(opts, undefined, { method: \"select\", title, options, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? undefined : \"value\" in r ? r.value : undefined,\n\t\t\t),\n\n\t\tconfirm: (title, message, opts) =>\n\t\t\tcreateDialogPromise(opts, false, { method: \"confirm\", title, message, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? false : \"confirmed\" in r ? r.confirmed : false,\n\t\t\t),\n\n\t\tinput: (title, placeholder, opts) =>\n\t\t\tcreateDialogPromise(opts, undefined, { method: \"input\", title, placeholder, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? undefined : \"value\" in r ? r.value : undefined,\n\t\t\t),\n\n\t\tnotify(message: string, type?: \"info\" | \"warning\" | \"error\"): void {\n\t\t\t// Fire and forget - no response needed\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"notify\",\n\t\t\t\tmessage,\n\t\t\t\tnotifyType: type,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tonTerminalInput(): () => void {\n\t\t\t// Raw terminal input not supported in RPC mode\n\t\t\treturn () => {};\n\t\t},\n\n\t\tsetStatus(key: string, text: string | undefined): void {\n\t\t\t// Fire and forget - no response needed\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"setStatus\",\n\t\t\t\tstatusKey: key,\n\t\t\t\tstatusText: text,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tsetWorkingMessage(_message?: string): void {\n\t\t\t// Working message not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetWorkingVisible(_visible: boolean): void {\n\t\t\t// Working visibility not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetWorkingIndicator(_options?: WorkingIndicatorOptions): void {\n\t\t\t// Working indicator customization not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetHiddenThinkingLabel(_label?: string): void {\n\t\t\t// Hidden thinking label not supported in RPC mode - requires TUI message rendering access\n\t\t},\n\n\t\tsetWidget(key: string, content: unknown, options?: ExtensionWidgetOptions): void {\n\t\t\t// Only support string arrays in RPC mode - factory functions are ignored\n\t\t\tif (content === undefined || Array.isArray(content)) {\n\t\t\t\toutput({\n\t\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\t\tmethod: \"setWidget\",\n\t\t\t\t\twidgetKey: key,\n\t\t\t\t\twidgetLines: content as string[] | undefined,\n\t\t\t\t\twidgetPlacement: options?.placement,\n\t\t\t\t} as RpcExtensionUIRequest);\n\t\t\t}\n\t\t\t// Component factories are not supported in RPC mode - would need TUI access\n\t\t},\n\n\t\tsetFooter(_factory: unknown): void {\n\t\t\t// Custom footer not supported in RPC mode - requires TUI access\n\t\t},\n\n\t\tsetHeader(_factory: unknown): void {\n\t\t\t// Custom header not supported in RPC mode - requires TUI access\n\t\t},\n\n\t\tsetTitle(title: string): void {\n\t\t\t// Fire and forget - host can implement terminal title control\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"setTitle\",\n\t\t\t\ttitle,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tasync custom() {\n\t\t\t// Custom UI not supported in RPC mode\n\t\t\treturn undefined as never;\n\t\t},\n\n\t\tpasteToEditor(text: string): void {\n\t\t\t// Paste handling not supported in RPC mode - falls back to setEditorText\n\t\t\tthis.setEditorText(text);\n\t\t},\n\n\t\tsetEditorText(text: string): void {\n\t\t\t// Fire and forget - host can implement editor control\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"set_editor_text\",\n\t\t\t\ttext,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tgetEditorText(): string {\n\t\t\t// Synchronous method can't wait for RPC response\n\t\t\t// Host should track editor state locally if needed\n\t\t\treturn \"\";\n\t\t},\n\n\t\tasync editor(title: string, prefill?: string): Promise<string | undefined> {\n\t\t\tconst id = crypto.randomUUID();\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tpendingExtensionRequests.set(id, {\n\t\t\t\t\tresolve: (response: RpcExtensionUIResponse) => {\n\t\t\t\t\t\tif (\"cancelled\" in response && response.cancelled) {\n\t\t\t\t\t\t\tresolve(undefined);\n\t\t\t\t\t\t} else if (\"value\" in response) {\n\t\t\t\t\t\t\tresolve(response.value);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresolve(undefined);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treject,\n\t\t\t\t});\n\t\t\t\toutput({ type: \"extension_ui_request\", id, method: \"editor\", title, prefill } as RpcExtensionUIRequest);\n\t\t\t});\n\t\t},\n\n\t\taddAutocompleteProvider(): void {\n\t\t\t// Autocomplete provider composition is not supported in RPC mode\n\t\t},\n\n\t\tsetEditorComponent(): void {\n\t\t\t// Custom editor components not supported in RPC mode\n\t\t},\n\n\t\tgetEditorComponent() {\n\t\t\t// Custom editor components not supported in RPC mode\n\t\t\treturn undefined;\n\t\t},\n\n\t\tget theme() {\n\t\t\treturn theme;\n\t\t},\n\n\t\tgetAllThemes() {\n\t\t\treturn [];\n\t\t},\n\n\t\tgetTheme(_name: string) {\n\t\t\treturn undefined;\n\t\t},\n\n\t\tsetTheme(_theme: string | Theme) {\n\t\t\t// Theme switching not supported in RPC mode\n\t\t\treturn { success: false, error: \"Theme switching not supported in RPC mode\" };\n\t\t},\n\n\t\tgetToolsExpanded() {\n\t\t\t// Tool expansion not supported in RPC mode - no TUI\n\t\t\treturn false;\n\t\t},\n\n\t\tsetToolsExpanded(_expanded: boolean) {\n\t\t\t// Tool expansion not supported in RPC mode - no TUI\n\t\t},\n\t});\n\n\truntimeHost.setRebindSession(async () => {\n\t\tawait rebindSession();\n\t});\n\n\tconst rebindSession = async (): Promise<void> => {\n\t\tsession = runtimeHost.session;\n\t\tawait session.bindExtensions({\n\t\t\tuiContext: createExtensionUIContext(),\n\t\t\tmode: \"rpc\",\n\t\t\tcommandContextActions: {\n\t\t\t\twaitForIdle: () => session.agent.waitForIdle(),\n\t\t\t\tnewSession: async (options) => runtimeHost.newSession(options),\n\t\t\t\tfork: async (entryId, forkOptions) => {\n\t\t\t\t\tconst result = await runtimeHost.fork(entryId, forkOptions);\n\t\t\t\t\treturn { cancelled: result.cancelled };\n\t\t\t\t},\n\t\t\t\tnavigateTree: async (targetId, options) => {\n\t\t\t\t\tconst result = await session.navigateTree(targetId, {\n\t\t\t\t\t\tsummarize: options?.summarize,\n\t\t\t\t\t\tcustomInstructions: options?.customInstructions,\n\t\t\t\t\t\treplaceInstructions: options?.replaceInstructions,\n\t\t\t\t\t\tlabel: options?.label,\n\t\t\t\t\t});\n\t\t\t\t\treturn { cancelled: result.cancelled };\n\t\t\t\t},\n\t\t\t\tswitchSession: async (sessionPath, options) => {\n\t\t\t\t\treturn runtimeHost.switchSession(sessionPath, options);\n\t\t\t\t},\n\t\t\t\treload: async () => {\n\t\t\t\t\tawait session.reload();\n\t\t\t\t},\n\t\t\t},\n\t\t\tshutdownHandler: () => {\n\t\t\t\tshutdownRequested = true;\n\t\t\t},\n\t\t\tonError: (err) => {\n\t\t\t\toutput({ type: \"extension_error\", extensionPath: err.extensionPath, event: err.event, error: err.error });\n\t\t\t},\n\t\t});\n\n\t\tunsubscribe?.();\n\t\tunsubscribeBackpressure?.();\n\t\tunsubscribe = session.subscribe((event) => {\n\t\t\toutputEvent(event);\n\t\t});\n\t\tunsubscribeBackpressure = session.agent.subscribe(async () => {\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t});\n\t};\n\n\tconst registerSignalHandlers = (): void => {\n\t\tconst signals: NodeJS.Signals[] = [\"SIGTERM\"];\n\t\tif (process.platform !== \"win32\") {\n\t\t\tsignals.push(\"SIGHUP\");\n\t\t}\n\n\t\tfor (const signal of signals) {\n\t\t\tconst handler = () => {\n\t\t\t\tkillTrackedDetachedChildren();\n\t\t\t\tvoid shutdown(signal === \"SIGHUP\" ? 129 : 143, signal);\n\t\t\t};\n\t\t\tprocess.on(signal, handler);\n\t\t\tsignalCleanupHandlers.push(() => process.off(signal, handler));\n\t\t}\n\t};\n\n\tawait rebindSession();\n\tregisterSignalHandlers();\n\n\t// Handle a single command\n\tconst handleCommand = async (command: RpcCommand): Promise<RpcResponse | undefined> => {\n\t\tconst id = command.id;\n\n\t\tswitch (command.type) {\n\t\t\t// =================================================================\n\t\t\t// Prompting\n\t\t\t// =================================================================\n\n\t\t\tcase \"prompt\": {\n\t\t\t\t// Start prompt handling immediately, but emit the authoritative response only after\n\t\t\t\t// prompt preflight succeeds. Queued and immediately handled prompts also count as success.\n\t\t\t\tlet preflightSucceeded = false;\n\t\t\t\tvoid session\n\t\t\t\t\t.prompt(command.message, {\n\t\t\t\t\t\timages: command.images,\n\t\t\t\t\t\tstreamingBehavior: command.streamingBehavior,\n\t\t\t\t\t\tsource: \"rpc\",\n\t\t\t\t\t\tpreflightResult: (didSucceed) => {\n\t\t\t\t\t\t\tif (didSucceed) {\n\t\t\t\t\t\t\t\tpreflightSucceeded = true;\n\t\t\t\t\t\t\t\toutput(success(id, \"prompt\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\tif (!preflightSucceeded) {\n\t\t\t\t\t\t\toutput(error(id, \"prompt\", e.message));\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\tcase \"steer\": {\n\t\t\t\tawait session.steer(command.message, command.images);\n\t\t\t\treturn success(id, \"steer\");\n\t\t\t}\n\n\t\t\tcase \"follow_up\": {\n\t\t\t\tawait session.followUp(command.message, command.images);\n\t\t\t\treturn success(id, \"follow_up\");\n\t\t\t}\n\n\t\t\tcase \"abort\": {\n\t\t\t\tawait session.abort();\n\t\t\t\treturn success(id, \"abort\");\n\t\t\t}\n\n\t\t\tcase \"new_session\": {\n\t\t\t\tconst options = command.parentSession ? { parentSession: command.parentSession } : undefined;\n\t\t\t\tconst result = await runtimeHost.newSession(options);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"new_session\", result);\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// State\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_state\": {\n\t\t\t\tconst state: RpcSessionState = {\n\t\t\t\t\tmodel: session.model,\n\t\t\t\t\tthinkingLevel: session.thinkingLevel,\n\t\t\t\t\tisStreaming: session.isStreaming,\n\t\t\t\t\tisCompacting: session.isCompacting,\n\t\t\t\t\tsteeringMode: session.steeringMode,\n\t\t\t\t\tfollowUpMode: session.followUpMode,\n\t\t\t\t\tsessionFile: session.sessionFile,\n\t\t\t\t\tsessionId: session.sessionId,\n\t\t\t\t\tsessionName: session.sessionName,\n\t\t\t\t\tautoCompactionEnabled: session.autoCompactionEnabled,\n\t\t\t\t\tmessageCount: session.messages.length,\n\t\t\t\t\tpendingMessageCount: session.pendingMessageCount,\n\t\t\t\t};\n\t\t\t\treturn success(id, \"get_state\", state);\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Model\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_model\": {\n\t\t\t\tconst models = await session.modelRegistry.getAvailable();\n\t\t\t\tconst model = models.find((m) => m.provider === command.provider && m.id === command.modelId);\n\t\t\t\tif (!model) {\n\t\t\t\t\treturn error(id, \"set_model\", `Model not found: ${command.provider}/${command.modelId}`);\n\t\t\t\t}\n\t\t\t\tawait session.setModel(model);\n\t\t\t\treturn success(id, \"set_model\", model);\n\t\t\t}\n\n\t\t\tcase \"cycle_model\": {\n\t\t\t\tconst result = await session.cycleModel();\n\t\t\t\tif (!result) {\n\t\t\t\t\treturn success(id, \"cycle_model\", null);\n\t\t\t\t}\n\t\t\t\treturn success(id, \"cycle_model\", result);\n\t\t\t}\n\n\t\t\tcase \"get_available_models\": {\n\t\t\t\tconst models = await session.modelRegistry.getAvailable();\n\t\t\t\treturn success(id, \"get_available_models\", { models });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Thinking\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_thinking_level\": {\n\t\t\t\tsession.setThinkingLevel(command.level);\n\t\t\t\treturn success(id, \"set_thinking_level\");\n\t\t\t}\n\n\t\t\tcase \"cycle_thinking_level\": {\n\t\t\t\tconst level = session.cycleThinkingLevel();\n\t\t\t\tif (!level) {\n\t\t\t\t\treturn success(id, \"cycle_thinking_level\", null);\n\t\t\t\t}\n\t\t\t\treturn success(id, \"cycle_thinking_level\", { level });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Queue Modes\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_steering_mode\": {\n\t\t\t\tsession.setSteeringMode(command.mode);\n\t\t\t\treturn success(id, \"set_steering_mode\");\n\t\t\t}\n\n\t\t\tcase \"set_follow_up_mode\": {\n\t\t\t\tsession.setFollowUpMode(command.mode);\n\t\t\t\treturn success(id, \"set_follow_up_mode\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Compaction\n\t\t\t// =================================================================\n\n\t\t\tcase \"compact\": {\n\t\t\t\tconst result = await session.compact(command.customInstructions);\n\t\t\t\treturn success(id, \"compact\", result);\n\t\t\t}\n\n\t\t\tcase \"set_auto_compaction\": {\n\t\t\t\tsession.setAutoCompactionEnabled(command.enabled);\n\t\t\t\treturn success(id, \"set_auto_compaction\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Retry\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_auto_retry\": {\n\t\t\t\tsession.setAutoRetryEnabled(command.enabled);\n\t\t\t\treturn success(id, \"set_auto_retry\");\n\t\t\t}\n\n\t\t\tcase \"abort_retry\": {\n\t\t\t\tsession.abortRetry();\n\t\t\t\treturn success(id, \"abort_retry\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Bash\n\t\t\t// =================================================================\n\n\t\t\tcase \"bash\": {\n\t\t\t\tconst result = await session.executeBash(command.command, undefined, {\n\t\t\t\t\texcludeFromContext: command.excludeFromContext,\n\t\t\t\t});\n\t\t\t\treturn success(id, \"bash\", result);\n\t\t\t}\n\n\t\t\tcase \"abort_bash\": {\n\t\t\t\tsession.abortBash();\n\t\t\t\treturn success(id, \"abort_bash\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Session\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_session_stats\": {\n\t\t\t\tconst stats = session.getSessionStats();\n\t\t\t\treturn success(id, \"get_session_stats\", stats);\n\t\t\t}\n\n\t\t\tcase \"export_html\": {\n\t\t\t\tconst path = await session.exportToHtml(command.outputPath);\n\t\t\t\treturn success(id, \"export_html\", { path });\n\t\t\t}\n\n\t\t\tcase \"switch_session\": {\n\t\t\t\tconst result = await runtimeHost.switchSession(command.sessionPath);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"switch_session\", result);\n\t\t\t}\n\n\t\t\tcase \"fork\": {\n\t\t\t\tconst result = await runtimeHost.fork(command.entryId);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"fork\", { text: result.selectedText, cancelled: result.cancelled });\n\t\t\t}\n\n\t\t\tcase \"clone\": {\n\t\t\t\tconst leafId = session.sessionManager.getLeafId();\n\t\t\t\tif (!leafId) {\n\t\t\t\t\treturn error(id, \"clone\", \"Cannot clone session: no current entry selected\");\n\t\t\t\t}\n\t\t\t\tconst result = await runtimeHost.fork(leafId, { position: \"at\" });\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"clone\", { cancelled: result.cancelled });\n\t\t\t}\n\n\t\t\tcase \"get_fork_messages\": {\n\t\t\t\tconst messages = session.getUserMessagesForForking();\n\t\t\t\treturn success(id, \"get_fork_messages\", { messages });\n\t\t\t}\n\n\t\t\tcase \"get_last_assistant_text\": {\n\t\t\t\tconst text = session.getLastAssistantText();\n\t\t\t\treturn success(id, \"get_last_assistant_text\", { text });\n\t\t\t}\n\n\t\t\tcase \"set_session_name\": {\n\t\t\t\tconst name = command.name.trim();\n\t\t\t\tif (!name) {\n\t\t\t\t\treturn error(id, \"set_session_name\", \"Session name cannot be empty\");\n\t\t\t\t}\n\t\t\t\tsession.setSessionName(name);\n\t\t\t\treturn success(id, \"set_session_name\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Messages\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_messages\": {\n\t\t\t\treturn success(id, \"get_messages\", { messages: session.messages });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Commands (available for invocation via prompt)\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_commands\": {\n\t\t\t\tconst commands: RpcSlashCommand[] = [];\n\n\t\t\t\tfor (const command of session.extensionRunner.getRegisteredCommands()) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: command.invocationName,\n\t\t\t\t\t\tdescription: command.description,\n\t\t\t\t\t\tsource: \"extension\",\n\t\t\t\t\t\tsourceInfo: command.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tfor (const template of session.promptTemplates) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: template.name,\n\t\t\t\t\t\tdescription: template.description,\n\t\t\t\t\t\tsource: \"prompt\",\n\t\t\t\t\t\tsourceInfo: template.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tfor (const skill of session.resourceLoader.getSkills().skills) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: `skill:${skill.name}`,\n\t\t\t\t\t\tdescription: skill.description,\n\t\t\t\t\t\tsource: \"skill\",\n\t\t\t\t\t\tsourceInfo: skill.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\treturn success(id, \"get_commands\", { commands });\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\tconst unknownCommand = command as { type: string };\n\t\t\t\treturn error(undefined, unknownCommand.type, `Unknown command: ${unknownCommand.type}`);\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Check if shutdown was requested and perform shutdown if so.\n\t * Called after handling each command when waiting for the next command.\n\t */\n\tlet detachInput = () => {};\n\n\tasync function shutdown(exitCode = 0, signal?: NodeJS.Signals): Promise<never> {\n\t\tif (shuttingDown) {\n\t\t\tprocess.exit(exitCode);\n\t\t}\n\t\tshuttingDown = true;\n\t\tfor (const cleanup of signalCleanupHandlers) {\n\t\t\tcleanup();\n\t\t}\n\t\tunsubscribe?.();\n\t\tunsubscribeBackpressure?.();\n\t\tawait runtimeHost.dispose();\n\t\tdetachInput();\n\t\tprocess.stdin.pause();\n\t\tif (signal !== \"SIGTERM\") {\n\t\t\teventOutput.flushEvents();\n\t\t\tawait flushRawStdout();\n\t\t}\n\t\tprocess.exit(exitCode);\n\t}\n\n\tasync function checkShutdownRequested(): Promise<void> {\n\t\tif (!shutdownRequested) return;\n\t\tawait shutdown();\n\t}\n\n\tconst handleInputLine = async (line: string) => {\n\t\tlet parsed: unknown;\n\t\ttry {\n\t\t\tparsed = JSON.parse(line);\n\t\t} catch (parseError: unknown) {\n\t\t\toutput(\n\t\t\t\terror(\n\t\t\t\t\tundefined,\n\t\t\t\t\t\"parse\",\n\t\t\t\t\t`Failed to parse command: ${parseError instanceof Error ? parseError.message : String(parseError)}`,\n\t\t\t\t),\n\t\t\t);\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle extension UI responses\n\t\tif (\n\t\t\ttypeof parsed === \"object\" &&\n\t\t\tparsed !== null &&\n\t\t\t\"type\" in parsed &&\n\t\t\tparsed.type === \"extension_ui_response\"\n\t\t) {\n\t\t\tconst response = parsed as RpcExtensionUIResponse;\n\t\t\tconst pending = pendingExtensionRequests.get(response.id);\n\t\t\tif (pending) {\n\t\t\t\tpendingExtensionRequests.delete(response.id);\n\t\t\t\tpending.resolve(response);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst command = parsed as RpcCommand;\n\t\ttry {\n\t\t\tconst response = await handleCommand(command);\n\t\t\tif (response) {\n\t\t\t\toutput(response);\n\t\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t\t}\n\t\t\tawait checkShutdownRequested();\n\t\t} catch (commandError: unknown) {\n\t\t\toutput(\n\t\t\t\terror(\n\t\t\t\t\tcommand.id,\n\t\t\t\t\tcommand.type,\n\t\t\t\t\tcommandError instanceof Error ? commandError.message : String(commandError),\n\t\t\t\t),\n\t\t\t);\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t}\n\t};\n\n\tconst onInputEnd = () => {\n\t\tvoid shutdown();\n\t};\n\tprocess.stdin.on(\"end\", onInputEnd);\n\n\tdetachInput = (() => {\n\t\tconst detachJsonl = attachJsonlLineReader(process.stdin, (line) => {\n\t\t\tvoid handleInputLine(line);\n\t\t});\n\t\treturn () => {\n\t\t\tdetachJsonl();\n\t\t\tprocess.stdin.off(\"end\", onInputEnd);\n\t\t};\n\t})();\n\n\t// Keep process alive forever\n\treturn new Promise(() => {});\n}\n"]}
1
+ {"version":3,"file":"rpc-mode.js","sourceRoot":"","sources":["../../../src/modes/rpc/rpc-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAQtC,OAAO,EACN,cAAc,EACd,cAAc,EACd,4BAA4B,EAC5B,cAAc,GACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAc,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAmBnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,WAAgC;IAChE,cAAc,EAAE,CAAC;IACjB,IAAI,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAClC,IAAI,WAAqC,CAAC;IAC1C,IAAI,uBAAiD,CAAC;IACtD,MAAM,WAAW,GAAG,0BAA0B,CAAC,cAA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;YACJ,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;YAC9C,IAAI,QAAQ,EAAE,CAAC;gBACd,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACjB,MAAM,4BAA4B,EAAE,CAAC;YACtC,CAAC;YACD,MAAM,sBAAsB,EAAE,CAAC;QAChC,CAAC;QAAC,OAAO,YAAqB,EAAE,CAAC;YAChC,MAAM,CACL,KAAK,CACJ,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,YAAY,YAAY,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC3E,CACD,CAAC;YACF,MAAM,4BAA4B,EAAE,CAAC;QACtC,CAAC;IACF,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACvB,KAAK,QAAQ,EAAE,CAAC;IACjB,CAAC,CAAC;IACF,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAEpC,WAAW,GAAG,CAAC,GAAG,EAAE;QACnB,MAAM,WAAW,GAAG,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;YACjE,KAAK,eAAe,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACX,WAAW,EAAE,CAAC;YACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QACtC,CAAC,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,6BAA6B;IAC7B,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/**\n * RPC mode: Headless operation with JSON stdin/stdout protocol.\n *\n * Used for embedding the agent in other applications.\n * Receives commands as JSON on stdin, outputs events and responses as JSON on stdout.\n *\n * Protocol:\n * - Commands: JSON objects with `type` field, optional `id` for correlation\n * - Responses: JSON objects with `type: \"response\"`, `command`, `success`, and optional `data`/`error`\n * - Events: AgentSessionEvent objects streamed as they occur\n * - Extension UI: Extension UI requests are emitted, client responds with extension_ui_response\n */\n\nimport * as crypto from \"node:crypto\";\nimport type { AgentSessionRuntime } from \"../../core/agent-session-runtime.ts\";\nimport type {\n\tExtensionUIContext,\n\tExtensionUIDialogOptions,\n\tExtensionWidgetOptions,\n\tWorkingIndicatorOptions,\n} from \"../../core/extensions/index.ts\";\nimport {\n\tflushRawStdout,\n\ttakeOverStdout,\n\twaitForRawStdoutBackpressure,\n\twriteRawStdout,\n} from \"../../core/output-guard.ts\";\nimport { killTrackedDetachedChildren } from \"../../utils/shell.ts\";\nimport { type Theme, theme } from \"../interactive/theme/theme.ts\";\nimport { createRpcEventOutputBuffer } from \"./event-output-buffer.ts\";\nimport { attachJsonlLineReader } from \"./jsonl.ts\";\nimport type {\n\tRpcCommand,\n\tRpcExtensionUIRequest,\n\tRpcExtensionUIResponse,\n\tRpcResponse,\n\tRpcSessionState,\n\tRpcSlashCommand,\n} from \"./rpc-types.ts\";\n\n// Re-export types for consumers\nexport type {\n\tRpcCommand,\n\tRpcExtensionUIRequest,\n\tRpcExtensionUIResponse,\n\tRpcResponse,\n\tRpcSessionState,\n} from \"./rpc-types.ts\";\n\n/**\n * Run in RPC mode.\n * Listens for JSON commands on stdin, outputs events and responses on stdout.\n */\nexport async function runRpcMode(runtimeHost: AgentSessionRuntime): Promise<never> {\n\ttakeOverStdout();\n\tlet session = runtimeHost.session;\n\tlet unsubscribe: (() => void) | undefined;\n\tlet unsubscribeBackpressure: (() => void) | undefined;\n\tconst eventOutput = createRpcEventOutputBuffer(writeRawStdout);\n\n\tconst output = (obj: RpcResponse | RpcExtensionUIRequest | object) => {\n\t\teventOutput.writeImmediate(obj);\n\t};\n\n\tconst outputEvent = (event: object) => {\n\t\teventOutput.enqueueEvent(event);\n\t};\n\n\tconst waitForRpcStdoutBackpressure = async (): Promise<void> => {\n\t\teventOutput.flushEvents();\n\t\tawait waitForRawStdoutBackpressure();\n\t};\n\n\tconst success = <T extends RpcCommand[\"type\"]>(\n\t\tid: string | undefined,\n\t\tcommand: T,\n\t\tdata?: object | null,\n\t): RpcResponse => {\n\t\tif (data === undefined) {\n\t\t\treturn { id, type: \"response\", command, success: true } as RpcResponse;\n\t\t}\n\t\treturn { id, type: \"response\", command, success: true, data } as RpcResponse;\n\t};\n\n\tconst error = (id: string | undefined, command: string, message: string): RpcResponse => {\n\t\treturn { id, type: \"response\", command, success: false, error: message };\n\t};\n\n\t// Pending extension UI requests waiting for response\n\tconst pendingExtensionRequests = new Map<\n\t\tstring,\n\t\t{ resolve: (value: any) => void; reject: (error: Error) => void }\n\t>();\n\n\t// Shutdown request flag\n\tlet shutdownRequested = false;\n\tlet shuttingDown = false;\n\tconst signalCleanupHandlers: Array<() => void> = [];\n\n\t/** Helper for dialog methods with signal/timeout support */\n\tfunction createDialogPromise<T>(\n\t\topts: ExtensionUIDialogOptions | undefined,\n\t\tdefaultValue: T,\n\t\trequest: Record<string, unknown>,\n\t\tparseResponse: (response: RpcExtensionUIResponse) => T,\n\t): Promise<T> {\n\t\tif (opts?.signal?.aborted) return Promise.resolve(defaultValue);\n\n\t\tconst id = crypto.randomUUID();\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n\t\t\tconst cleanup = () => {\n\t\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\t\topts?.signal?.removeEventListener(\"abort\", onAbort);\n\t\t\t\tpendingExtensionRequests.delete(id);\n\t\t\t};\n\n\t\t\tconst onAbort = () => {\n\t\t\t\tcleanup();\n\t\t\t\tresolve(defaultValue);\n\t\t\t};\n\t\t\topts?.signal?.addEventListener(\"abort\", onAbort, { once: true });\n\n\t\t\tif (opts?.timeout) {\n\t\t\t\ttimeoutId = setTimeout(() => {\n\t\t\t\t\tcleanup();\n\t\t\t\t\tresolve(defaultValue);\n\t\t\t\t}, opts.timeout);\n\t\t\t}\n\n\t\t\tpendingExtensionRequests.set(id, {\n\t\t\t\tresolve: (response: RpcExtensionUIResponse) => {\n\t\t\t\t\tcleanup();\n\t\t\t\t\tresolve(parseResponse(response));\n\t\t\t\t},\n\t\t\t\treject,\n\t\t\t});\n\t\t\toutput({ type: \"extension_ui_request\", id, ...request } as RpcExtensionUIRequest);\n\t\t});\n\t}\n\n\t/**\n\t * Create an extension UI context that uses the RPC protocol.\n\t */\n\tconst createExtensionUIContext = (): ExtensionUIContext => ({\n\t\tselect: (title, options, opts) =>\n\t\t\tcreateDialogPromise(opts, undefined, { method: \"select\", title, options, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? undefined : \"value\" in r ? r.value : undefined,\n\t\t\t),\n\n\t\tconfirm: (title, message, opts) =>\n\t\t\tcreateDialogPromise(opts, false, { method: \"confirm\", title, message, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? false : \"confirmed\" in r ? r.confirmed : false,\n\t\t\t),\n\n\t\tinput: (title, placeholder, opts) =>\n\t\t\tcreateDialogPromise(opts, undefined, { method: \"input\", title, placeholder, timeout: opts?.timeout }, (r) =>\n\t\t\t\t\"cancelled\" in r && r.cancelled ? undefined : \"value\" in r ? r.value : undefined,\n\t\t\t),\n\n\t\tnotify(message: string, type?: \"info\" | \"warning\" | \"error\"): void {\n\t\t\t// Fire and forget - no response needed\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"notify\",\n\t\t\t\tmessage,\n\t\t\t\tnotifyType: type,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tonTerminalInput(): () => void {\n\t\t\t// Raw terminal input not supported in RPC mode\n\t\t\treturn () => {};\n\t\t},\n\n\t\tsetStatus(key: string, text: string | undefined): void {\n\t\t\t// Fire and forget - no response needed\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"setStatus\",\n\t\t\t\tstatusKey: key,\n\t\t\t\tstatusText: text,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tsetWorkingMessage(_message?: string): void {\n\t\t\t// Working message not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetWorkingVisible(_visible: boolean): void {\n\t\t\t// Working visibility not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetWorkingIndicator(_options?: WorkingIndicatorOptions): void {\n\t\t\t// Working indicator customization not supported in RPC mode - requires TUI loader access\n\t\t},\n\n\t\tsetHiddenThinkingLabel(_label?: string): void {\n\t\t\t// Hidden thinking label not supported in RPC mode - requires TUI message rendering access\n\t\t},\n\n\t\tsetWidget(key: string, content: unknown, options?: ExtensionWidgetOptions): void {\n\t\t\t// Only support string arrays in RPC mode - factory functions are ignored\n\t\t\tif (content === undefined || Array.isArray(content)) {\n\t\t\t\toutput({\n\t\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\t\tmethod: \"setWidget\",\n\t\t\t\t\twidgetKey: key,\n\t\t\t\t\twidgetLines: content as string[] | undefined,\n\t\t\t\t\twidgetPlacement: options?.placement,\n\t\t\t\t} as RpcExtensionUIRequest);\n\t\t\t}\n\t\t\t// Component factories are not supported in RPC mode - would need TUI access\n\t\t},\n\n\t\tsetFooter(_factory: unknown): void {\n\t\t\t// Custom footer not supported in RPC mode - requires TUI access\n\t\t},\n\n\t\tsetHeader(_factory: unknown): void {\n\t\t\t// Custom header not supported in RPC mode - requires TUI access\n\t\t},\n\n\t\tsetTitle(title: string): void {\n\t\t\t// Fire and forget - host can implement terminal title control\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"setTitle\",\n\t\t\t\ttitle,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tasync custom() {\n\t\t\t// Custom UI not supported in RPC mode\n\t\t\treturn undefined as never;\n\t\t},\n\n\t\tpasteToEditor(text: string): void {\n\t\t\t// Paste handling not supported in RPC mode - falls back to setEditorText\n\t\t\tthis.setEditorText(text);\n\t\t},\n\n\t\tsetEditorText(text: string): void {\n\t\t\t// Fire and forget - host can implement editor control\n\t\t\toutput({\n\t\t\t\ttype: \"extension_ui_request\",\n\t\t\t\tid: crypto.randomUUID(),\n\t\t\t\tmethod: \"set_editor_text\",\n\t\t\t\ttext,\n\t\t\t} as RpcExtensionUIRequest);\n\t\t},\n\n\t\tgetEditorText(): string {\n\t\t\t// Synchronous method can't wait for RPC response\n\t\t\t// Host should track editor state locally if needed\n\t\t\treturn \"\";\n\t\t},\n\n\t\tasync editor(title: string, prefill?: string): Promise<string | undefined> {\n\t\t\tconst id = crypto.randomUUID();\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tpendingExtensionRequests.set(id, {\n\t\t\t\t\tresolve: (response: RpcExtensionUIResponse) => {\n\t\t\t\t\t\tif (\"cancelled\" in response && response.cancelled) {\n\t\t\t\t\t\t\tresolve(undefined);\n\t\t\t\t\t\t} else if (\"value\" in response) {\n\t\t\t\t\t\t\tresolve(response.value);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresolve(undefined);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\treject,\n\t\t\t\t});\n\t\t\t\toutput({ type: \"extension_ui_request\", id, method: \"editor\", title, prefill } as RpcExtensionUIRequest);\n\t\t\t});\n\t\t},\n\n\t\taddAutocompleteProvider(): void {\n\t\t\t// Autocomplete provider composition is not supported in RPC mode\n\t\t},\n\n\t\tsetEditorComponent(): void {\n\t\t\t// Custom editor components not supported in RPC mode\n\t\t},\n\n\t\tgetEditorComponent() {\n\t\t\t// Custom editor components not supported in RPC mode\n\t\t\treturn undefined;\n\t\t},\n\n\t\tget theme() {\n\t\t\treturn theme;\n\t\t},\n\n\t\tgetAllThemes() {\n\t\t\treturn [];\n\t\t},\n\n\t\tgetTheme(_name: string) {\n\t\t\treturn undefined;\n\t\t},\n\n\t\tsetTheme(_theme: string | Theme) {\n\t\t\t// Theme switching not supported in RPC mode\n\t\t\treturn { success: false, error: \"Theme switching not supported in RPC mode\" };\n\t\t},\n\n\t\tgetToolsExpanded() {\n\t\t\t// Tool expansion not supported in RPC mode - no TUI\n\t\t\treturn false;\n\t\t},\n\n\t\tsetToolsExpanded(_expanded: boolean) {\n\t\t\t// Tool expansion not supported in RPC mode - no TUI\n\t\t},\n\t});\n\n\truntimeHost.setRebindSession(async () => {\n\t\tawait rebindSession();\n\t});\n\n\tconst rebindSession = async (): Promise<void> => {\n\t\tsession = runtimeHost.session;\n\t\tawait session.bindExtensions({\n\t\t\tuiContext: createExtensionUIContext(),\n\t\t\tmode: \"rpc\",\n\t\t\tcommandContextActions: {\n\t\t\t\twaitForIdle: () => session.agent.waitForIdle(),\n\t\t\t\tnewSession: async (options) => runtimeHost.newSession(options),\n\t\t\t\tfork: async (entryId, forkOptions) => {\n\t\t\t\t\tconst result = await runtimeHost.fork(entryId, forkOptions);\n\t\t\t\t\treturn { cancelled: result.cancelled };\n\t\t\t\t},\n\t\t\t\tnavigateTree: async (targetId, options) => {\n\t\t\t\t\tconst result = await session.navigateTree(targetId, {\n\t\t\t\t\t\tsummarize: options?.summarize,\n\t\t\t\t\t\tcustomInstructions: options?.customInstructions,\n\t\t\t\t\t\treplaceInstructions: options?.replaceInstructions,\n\t\t\t\t\t\tlabel: options?.label,\n\t\t\t\t\t});\n\t\t\t\t\treturn { cancelled: result.cancelled };\n\t\t\t\t},\n\t\t\t\tswitchSession: async (sessionPath, options) => {\n\t\t\t\t\treturn runtimeHost.switchSession(sessionPath, options);\n\t\t\t\t},\n\t\t\t\treload: async () => {\n\t\t\t\t\tawait session.reload();\n\t\t\t\t},\n\t\t\t},\n\t\t\tshutdownHandler: () => {\n\t\t\t\tshutdownRequested = true;\n\t\t\t},\n\t\t\tonError: (err) => {\n\t\t\t\toutput({ type: \"extension_error\", extensionPath: err.extensionPath, event: err.event, error: err.error });\n\t\t\t},\n\t\t});\n\n\t\tunsubscribe?.();\n\t\tunsubscribeBackpressure?.();\n\t\tunsubscribe = session.subscribe((event) => {\n\t\t\toutputEvent(event);\n\t\t});\n\t\tunsubscribeBackpressure = session.agent.subscribe(async () => {\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t});\n\t};\n\n\tconst registerSignalHandlers = (): void => {\n\t\tconst signals: NodeJS.Signals[] = [\"SIGTERM\"];\n\t\tif (process.platform !== \"win32\") {\n\t\t\tsignals.push(\"SIGHUP\");\n\t\t}\n\n\t\tfor (const signal of signals) {\n\t\t\tconst handler = () => {\n\t\t\t\tkillTrackedDetachedChildren();\n\t\t\t\tvoid shutdown(signal === \"SIGHUP\" ? 129 : 143, signal);\n\t\t\t};\n\t\t\tprocess.on(signal, handler);\n\t\t\tsignalCleanupHandlers.push(() => process.off(signal, handler));\n\t\t}\n\t};\n\n\tawait rebindSession();\n\tregisterSignalHandlers();\n\n\t// Handle a single command\n\tconst handleCommand = async (command: RpcCommand): Promise<RpcResponse | undefined> => {\n\t\tconst id = command.id;\n\n\t\tswitch (command.type) {\n\t\t\t// =================================================================\n\t\t\t// Prompting\n\t\t\t// =================================================================\n\n\t\t\tcase \"prompt\": {\n\t\t\t\t// Start prompt handling immediately, but emit the authoritative response only after\n\t\t\t\t// prompt preflight succeeds. Queued and immediately handled prompts also count as success.\n\t\t\t\tlet preflightSucceeded = false;\n\t\t\t\tvoid session\n\t\t\t\t\t.prompt(command.message, {\n\t\t\t\t\t\timages: command.images,\n\t\t\t\t\t\tstreamingBehavior: command.streamingBehavior,\n\t\t\t\t\t\tsource: \"rpc\",\n\t\t\t\t\t\tpreflightResult: (didSucceed) => {\n\t\t\t\t\t\t\tif (didSucceed) {\n\t\t\t\t\t\t\t\tpreflightSucceeded = true;\n\t\t\t\t\t\t\t\toutput(success(id, \"prompt\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\tif (!preflightSucceeded) {\n\t\t\t\t\t\t\toutput(error(id, \"prompt\", e.message));\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\tcase \"steer\": {\n\t\t\t\tawait session.steer(command.message, command.images);\n\t\t\t\treturn success(id, \"steer\");\n\t\t\t}\n\n\t\t\tcase \"follow_up\": {\n\t\t\t\tawait session.followUp(command.message, command.images);\n\t\t\t\treturn success(id, \"follow_up\");\n\t\t\t}\n\n\t\t\tcase \"abort\": {\n\t\t\t\tawait session.abort();\n\t\t\t\treturn success(id, \"abort\");\n\t\t\t}\n\n\t\t\tcase \"new_session\": {\n\t\t\t\tconst options = command.parentSession ? { parentSession: command.parentSession } : undefined;\n\t\t\t\tconst result = await runtimeHost.newSession(options);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"new_session\", result);\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// State\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_state\": {\n\t\t\t\tconst state: RpcSessionState = {\n\t\t\t\t\tmodel: session.model,\n\t\t\t\t\tthinkingLevel: session.thinkingLevel,\n\t\t\t\t\tisStreaming: session.isStreaming,\n\t\t\t\t\tisCompacting: session.isCompacting,\n\t\t\t\t\tsteeringMode: session.steeringMode,\n\t\t\t\t\tfollowUpMode: session.followUpMode,\n\t\t\t\t\tsessionFile: session.sessionFile,\n\t\t\t\t\tsessionId: session.sessionId,\n\t\t\t\t\tsessionName: session.sessionName,\n\t\t\t\t\tautoCompactionEnabled: session.autoCompactionEnabled,\n\t\t\t\t\tmessageCount: session.messages.length,\n\t\t\t\t\tpendingMessageCount: session.pendingMessageCount,\n\t\t\t\t};\n\t\t\t\treturn success(id, \"get_state\", state);\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Model\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_model\": {\n\t\t\t\tconst models = await session.modelRegistry.getAvailable();\n\t\t\t\tconst model = models.find((m) => m.provider === command.provider && m.id === command.modelId);\n\t\t\t\tif (!model) {\n\t\t\t\t\treturn error(id, \"set_model\", `Model not found: ${command.provider}/${command.modelId}`);\n\t\t\t\t}\n\t\t\t\tawait session.setModel(model);\n\t\t\t\treturn success(id, \"set_model\", model);\n\t\t\t}\n\n\t\t\tcase \"cycle_model\": {\n\t\t\t\tconst result = await session.cycleModel();\n\t\t\t\tif (!result) {\n\t\t\t\t\treturn success(id, \"cycle_model\", null);\n\t\t\t\t}\n\t\t\t\treturn success(id, \"cycle_model\", result);\n\t\t\t}\n\n\t\t\tcase \"get_available_models\": {\n\t\t\t\tconst models = await session.modelRegistry.getAvailable();\n\t\t\t\treturn success(id, \"get_available_models\", { models });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Thinking\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_thinking_level\": {\n\t\t\t\tsession.setThinkingLevel(command.level);\n\t\t\t\treturn success(id, \"set_thinking_level\");\n\t\t\t}\n\n\t\t\tcase \"cycle_thinking_level\": {\n\t\t\t\tconst level = session.cycleThinkingLevel();\n\t\t\t\tif (!level) {\n\t\t\t\t\treturn success(id, \"cycle_thinking_level\", null);\n\t\t\t\t}\n\t\t\t\treturn success(id, \"cycle_thinking_level\", { level });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Queue Modes\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_steering_mode\": {\n\t\t\t\tsession.setSteeringMode(command.mode);\n\t\t\t\treturn success(id, \"set_steering_mode\");\n\t\t\t}\n\n\t\t\tcase \"set_follow_up_mode\": {\n\t\t\t\tsession.setFollowUpMode(command.mode);\n\t\t\t\treturn success(id, \"set_follow_up_mode\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Compaction\n\t\t\t// =================================================================\n\n\t\t\tcase \"compact\": {\n\t\t\t\tconst result = await session.compact(command.customInstructions);\n\t\t\t\treturn success(id, \"compact\", result);\n\t\t\t}\n\n\t\t\tcase \"set_auto_compaction\": {\n\t\t\t\tsession.setAutoCompactionEnabled(command.enabled);\n\t\t\t\treturn success(id, \"set_auto_compaction\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Retry\n\t\t\t// =================================================================\n\n\t\t\tcase \"set_auto_retry\": {\n\t\t\t\tsession.setAutoRetryEnabled(command.enabled);\n\t\t\t\treturn success(id, \"set_auto_retry\");\n\t\t\t}\n\n\t\t\tcase \"abort_retry\": {\n\t\t\t\tsession.abortRetry();\n\t\t\t\treturn success(id, \"abort_retry\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Bash\n\t\t\t// =================================================================\n\n\t\t\tcase \"bash\": {\n\t\t\t\tconst result = await session.executeBash(command.command, undefined, {\n\t\t\t\t\texcludeFromContext: command.excludeFromContext,\n\t\t\t\t});\n\t\t\t\treturn success(id, \"bash\", result);\n\t\t\t}\n\n\t\t\tcase \"abort_bash\": {\n\t\t\t\tsession.abortBash();\n\t\t\t\treturn success(id, \"abort_bash\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Session\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_session_stats\": {\n\t\t\t\tconst stats = session.getSessionStats();\n\t\t\t\treturn success(id, \"get_session_stats\", stats);\n\t\t\t}\n\n\t\t\tcase \"export_html\": {\n\t\t\t\tconst path = await session.exportToHtml(command.outputPath);\n\t\t\t\treturn success(id, \"export_html\", { path });\n\t\t\t}\n\n\t\t\tcase \"switch_session\": {\n\t\t\t\tconst result = await runtimeHost.switchSession(command.sessionPath);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"switch_session\", result);\n\t\t\t}\n\n\t\t\tcase \"fork\": {\n\t\t\t\tconst result = await runtimeHost.fork(command.entryId);\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"fork\", { text: result.selectedText, cancelled: result.cancelled });\n\t\t\t}\n\n\t\t\tcase \"clone\": {\n\t\t\t\tconst leafId = session.sessionManager.getLeafId();\n\t\t\t\tif (!leafId) {\n\t\t\t\t\treturn error(id, \"clone\", \"Cannot clone session: no current entry selected\");\n\t\t\t\t}\n\t\t\t\tconst result = await runtimeHost.fork(leafId, { position: \"at\" });\n\t\t\t\tif (!result.cancelled) {\n\t\t\t\t\tawait rebindSession();\n\t\t\t\t}\n\t\t\t\treturn success(id, \"clone\", { cancelled: result.cancelled });\n\t\t\t}\n\n\t\t\tcase \"get_fork_messages\": {\n\t\t\t\tconst messages = session.getUserMessagesForForking();\n\t\t\t\treturn success(id, \"get_fork_messages\", { messages });\n\t\t\t}\n\n\t\t\tcase \"get_last_assistant_text\": {\n\t\t\t\tconst text = session.getLastAssistantText();\n\t\t\t\treturn success(id, \"get_last_assistant_text\", { text });\n\t\t\t}\n\n\t\t\tcase \"set_session_name\": {\n\t\t\t\tconst name = command.name.trim();\n\t\t\t\tif (!name) {\n\t\t\t\t\treturn error(id, \"set_session_name\", \"Session name cannot be empty\");\n\t\t\t\t}\n\t\t\t\tsession.setSessionName(name);\n\t\t\t\treturn success(id, \"set_session_name\");\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Messages\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_messages\": {\n\t\t\t\treturn success(id, \"get_messages\", { messages: session.messages });\n\t\t\t}\n\n\t\t\t// =================================================================\n\t\t\t// Commands (available for invocation via prompt)\n\t\t\t// =================================================================\n\n\t\t\tcase \"get_commands\": {\n\t\t\t\tconst commands: RpcSlashCommand[] = [];\n\n\t\t\t\tfor (const command of session.extensionRunner.getRegisteredCommands()) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: command.invocationName,\n\t\t\t\t\t\tdescription: command.description,\n\t\t\t\t\t\tsource: \"extension\",\n\t\t\t\t\t\tsourceInfo: command.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tfor (const template of session.promptTemplates) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: template.name,\n\t\t\t\t\t\tdescription: template.description,\n\t\t\t\t\t\tsource: \"prompt\",\n\t\t\t\t\t\tsourceInfo: template.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tfor (const skill of session.resourceLoader.getSkills().skills) {\n\t\t\t\t\tcommands.push({\n\t\t\t\t\t\tname: `skill:${skill.name}`,\n\t\t\t\t\t\tdescription: skill.description,\n\t\t\t\t\t\tsource: \"skill\",\n\t\t\t\t\t\tsourceInfo: skill.sourceInfo,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\treturn success(id, \"get_commands\", { commands });\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\tconst unknownCommand = command as { type: string };\n\t\t\t\treturn error(id, unknownCommand.type, `Unknown command: ${unknownCommand.type}`);\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * Check if shutdown was requested and perform shutdown if so.\n\t * Called after handling each command when waiting for the next command.\n\t */\n\tlet detachInput = () => {};\n\n\tasync function shutdown(exitCode = 0, signal?: NodeJS.Signals): Promise<never> {\n\t\tif (shuttingDown) {\n\t\t\tprocess.exit(exitCode);\n\t\t}\n\t\tshuttingDown = true;\n\t\tfor (const cleanup of signalCleanupHandlers) {\n\t\t\tcleanup();\n\t\t}\n\t\tunsubscribe?.();\n\t\tunsubscribeBackpressure?.();\n\t\tawait runtimeHost.dispose();\n\t\tdetachInput();\n\t\tprocess.stdin.pause();\n\t\tif (signal !== \"SIGTERM\") {\n\t\t\teventOutput.flushEvents();\n\t\t\tawait flushRawStdout();\n\t\t}\n\t\tprocess.exit(exitCode);\n\t}\n\n\tasync function checkShutdownRequested(): Promise<void> {\n\t\tif (!shutdownRequested) return;\n\t\tawait shutdown();\n\t}\n\n\tconst handleInputLine = async (line: string) => {\n\t\tlet parsed: unknown;\n\t\ttry {\n\t\t\tparsed = JSON.parse(line);\n\t\t} catch (parseError: unknown) {\n\t\t\toutput(\n\t\t\t\terror(\n\t\t\t\t\tundefined,\n\t\t\t\t\t\"parse\",\n\t\t\t\t\t`Failed to parse command: ${parseError instanceof Error ? parseError.message : String(parseError)}`,\n\t\t\t\t),\n\t\t\t);\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle extension UI responses\n\t\tif (\n\t\t\ttypeof parsed === \"object\" &&\n\t\t\tparsed !== null &&\n\t\t\t\"type\" in parsed &&\n\t\t\tparsed.type === \"extension_ui_response\"\n\t\t) {\n\t\t\tconst response = parsed as RpcExtensionUIResponse;\n\t\t\tconst pending = pendingExtensionRequests.get(response.id);\n\t\t\tif (pending) {\n\t\t\t\tpendingExtensionRequests.delete(response.id);\n\t\t\t\tpending.resolve(response);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst command = parsed as RpcCommand;\n\t\ttry {\n\t\t\tconst response = await handleCommand(command);\n\t\t\tif (response) {\n\t\t\t\toutput(response);\n\t\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t\t}\n\t\t\tawait checkShutdownRequested();\n\t\t} catch (commandError: unknown) {\n\t\t\toutput(\n\t\t\t\terror(\n\t\t\t\t\tcommand.id,\n\t\t\t\t\tcommand.type,\n\t\t\t\t\tcommandError instanceof Error ? commandError.message : String(commandError),\n\t\t\t\t),\n\t\t\t);\n\t\t\tawait waitForRpcStdoutBackpressure();\n\t\t}\n\t};\n\n\tconst onInputEnd = () => {\n\t\tvoid shutdown();\n\t};\n\tprocess.stdin.on(\"end\", onInputEnd);\n\n\tdetachInput = (() => {\n\t\tconst detachJsonl = attachJsonlLineReader(process.stdin, (line) => {\n\t\t\tvoid handleInputLine(line);\n\t\t});\n\t\treturn () => {\n\t\t\tdetachJsonl();\n\t\t\tprocess.stdin.off(\"end\", onInputEnd);\n\t\t};\n\t})();\n\n\t// Keep process alive forever\n\treturn new Promise(() => {});\n}\n"]}