@truefoundry/trueforge 0.185.1 → 0.186.0-rc.1

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 (226) hide show
  1. package/dist/_frontend/assets/{AgentCodeSnippets-H343VMKM-Bw48fB4V.js → AgentCodeSnippets-HD2S2BI7-BfYfdMjz.js} +1 -1
  2. package/dist/_frontend/assets/AgentCodeSnippets-HD2S2BI7-BfYfdMjz.js.br +0 -0
  3. package/dist/_frontend/assets/AgentCodeSnippets-HD2S2BI7-BfYfdMjz.js.gz +0 -0
  4. package/dist/_frontend/assets/{AgentMetricChart-2A3Q73AO-ByPINDhM.js → AgentMetricChart-542G6B2Y-CbV6nl7D.js} +1 -1
  5. package/dist/_frontend/assets/AgentMetricChart-542G6B2Y-CbV6nl7D.js.br +0 -0
  6. package/dist/_frontend/assets/AgentMetricChart-542G6B2Y-CbV6nl7D.js.gz +0 -0
  7. package/dist/_frontend/assets/{AgentOverview-PLZP4BE4-B4luQD6n.js → AgentOverview-ULVEXTEZ-D7P6uzSl.js} +1 -1
  8. package/dist/_frontend/assets/AgentOverview-ULVEXTEZ-D7P6uzSl.js.br +0 -0
  9. package/dist/_frontend/assets/AgentOverview-ULVEXTEZ-D7P6uzSl.js.gz +0 -0
  10. package/dist/_frontend/assets/{AgentSessionEventTimeline-YANYUDA5-CZsR7Mad.js → AgentSessionEventTimeline-GMB3XN6C-DJSHqEXL.js} +1 -1
  11. package/dist/_frontend/assets/AgentSessionEventTimeline-GMB3XN6C-DJSHqEXL.js.br +0 -0
  12. package/dist/_frontend/assets/AgentSessionEventTimeline-GMB3XN6C-DJSHqEXL.js.gz +0 -0
  13. package/dist/_frontend/assets/{AgentSessionEventTimelineChart-E4JMM6YS-qdgLjjB4.js → AgentSessionEventTimelineChart-4QMEECTP-bSfyQNBJ.js} +1 -1
  14. package/dist/_frontend/assets/AgentSessionEventTimelineChart-4QMEECTP-bSfyQNBJ.js.br +0 -0
  15. package/dist/_frontend/assets/{AgentSessionEventTimelineChart-E4JMM6YS-qdgLjjB4.js.gz → AgentSessionEventTimelineChart-4QMEECTP-bSfyQNBJ.js.gz} +0 -0
  16. package/dist/_frontend/assets/AgentSessions-M4CXQ324-T5ZsMqQA.js +1 -0
  17. package/dist/_frontend/assets/AgentSessions-M4CXQ324-T5ZsMqQA.js.br +0 -0
  18. package/dist/_frontend/assets/AgentSessions-M4CXQ324-T5ZsMqQA.js.gz +0 -0
  19. package/dist/_frontend/assets/{ConnectorSettings-GKNCNULP-DWw6csCc.js → ConnectorSettings-OJ27YWAT-CvNaOQvz.js} +1 -1
  20. package/dist/_frontend/assets/ConnectorSettings-OJ27YWAT-CvNaOQvz.js.br +0 -0
  21. package/dist/_frontend/assets/ConnectorSettings-OJ27YWAT-CvNaOQvz.js.gz +0 -0
  22. package/dist/_frontend/assets/{DockLayout-IE3I37YU-CqOh_TZX.js → DockLayout-BVXN4MZC-DEuG84Re.js} +1 -1
  23. package/dist/_frontend/assets/DrawerLayout-GKWXZOMY-aC-VR1ad.js +2 -0
  24. package/dist/_frontend/assets/DrawerLayout-GKWXZOMY-aC-VR1ad.js.br +0 -0
  25. package/dist/_frontend/assets/DrawerLayout-GKWXZOMY-aC-VR1ad.js.gz +0 -0
  26. package/dist/_frontend/assets/{EnvironmentsPage-Y7GUFDX6-B4lzlmZl.js → EnvironmentsPage-PSTV6HH3-CyPf2k39.js} +2 -2
  27. package/dist/_frontend/assets/EnvironmentsPage-PSTV6HH3-CyPf2k39.js.br +0 -0
  28. package/dist/_frontend/assets/EnvironmentsPage-PSTV6HH3-CyPf2k39.js.gz +0 -0
  29. package/dist/_frontend/assets/{MemorySettings-4RRBDBV6-DeUiqqhK.js → MemorySettings-CDNZWHWX-NV8KzFM1.js} +1 -1
  30. package/dist/_frontend/assets/MemorySettings-CDNZWHWX-NV8KzFM1.js.br +0 -0
  31. package/dist/_frontend/assets/MemorySettings-CDNZWHWX-NV8KzFM1.js.gz +0 -0
  32. package/dist/_frontend/assets/{ModelSettings-GYHM5IRX-CETYKyCX.js → ModelSettings-IKOQUXUF-DP7Qeett.js} +1 -1
  33. package/dist/_frontend/assets/ModelSettings-IKOQUXUF-DP7Qeett.js.br +0 -0
  34. package/dist/_frontend/assets/ModelSettings-IKOQUXUF-DP7Qeett.js.gz +0 -0
  35. package/dist/_frontend/assets/{SandboxSettings-64C4LPUD-Cnonjif3.js → SandboxSettings-H2TXSQ2S-C0609Cej.js} +1 -1
  36. package/dist/_frontend/assets/SandboxSettings-H2TXSQ2S-C0609Cej.js.br +0 -0
  37. package/dist/_frontend/assets/SandboxSettings-H2TXSQ2S-C0609Cej.js.gz +0 -0
  38. package/dist/_frontend/assets/{SchedulesPage-7LTCQWDY-BZlW89Yr.js → SchedulesPage-NJR7SCQ4-CiIuAiB7.js} +1 -1
  39. package/dist/_frontend/assets/SchedulesPage-NJR7SCQ4-CiIuAiB7.js.br +0 -0
  40. package/dist/_frontend/assets/SchedulesPage-NJR7SCQ4-CiIuAiB7.js.gz +0 -0
  41. package/dist/_frontend/assets/SettingsBuilder-7LYFJW2E-DfY6WOQU.js +2 -0
  42. package/dist/_frontend/assets/SettingsBuilder-7LYFJW2E-DfY6WOQU.js.br +0 -0
  43. package/dist/_frontend/assets/SettingsBuilder-7LYFJW2E-DfY6WOQU.js.gz +0 -0
  44. package/dist/_frontend/assets/{ShellRouteSync-4T763MWC-Bk2ZHjFW.js → ShellRouteSync-4T763MWC-Dme3YqoF.js} +1 -1
  45. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-Dme3YqoF.js.br +0 -0
  46. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-Dme3YqoF.js.gz +0 -0
  47. package/dist/_frontend/assets/SidebarLayout-IU5NHSCO-_VQEsNYe.js +2 -0
  48. package/dist/_frontend/assets/SidebarLayout-IU5NHSCO-_VQEsNYe.js.br +0 -0
  49. package/dist/_frontend/assets/SidebarLayout-IU5NHSCO-_VQEsNYe.js.gz +0 -0
  50. package/dist/_frontend/assets/{SkillSettings-2HF7EG6X-BjVk8qd8.js → SkillSettings-DR2JIPM6-CQkrmuWy.js} +1 -1
  51. package/dist/_frontend/assets/SkillSettings-DR2JIPM6-CQkrmuWy.js.br +0 -0
  52. package/dist/_frontend/assets/SkillSettings-DR2JIPM6-CQkrmuWy.js.gz +0 -0
  53. package/dist/_frontend/assets/{TrueForgeUIWithRouter-T3W5RMEH-DF5Vv3-l.js → TrueForgeUIWithRouter-CU6YACO7-DiNPKuyl.js} +1 -1
  54. package/dist/_frontend/assets/WebSearchSettings-KP2NF6QV-BluxZq-c.js +1 -0
  55. package/dist/_frontend/assets/WebSearchSettings-KP2NF6QV-BluxZq-c.js.br +0 -0
  56. package/dist/_frontend/assets/WebSearchSettings-KP2NF6QV-BluxZq-c.js.gz +0 -0
  57. package/dist/_frontend/assets/{WidgetLayout-VEILCOPB-CT3L-nt5.js → WidgetLayout-ZB5UGILE-6b2iz6FW.js} +1 -1
  58. package/dist/_frontend/assets/WidgetLayout-ZB5UGILE-6b2iz6FW.js.br +0 -0
  59. package/dist/_frontend/assets/WidgetLayout-ZB5UGILE-6b2iz6FW.js.gz +0 -0
  60. package/dist/_frontend/assets/chunk-5NBGBD6D-DuSupbcS.js +2 -0
  61. package/dist/_frontend/assets/chunk-5NBGBD6D-DuSupbcS.js.br +0 -0
  62. package/dist/_frontend/assets/chunk-5NBGBD6D-DuSupbcS.js.gz +0 -0
  63. package/dist/_frontend/assets/{chunk-US5DQOBQ-Bu-huQ7M.js → chunk-EQUC5GLR-DuEW_DHi.js} +1 -1
  64. package/dist/_frontend/assets/chunk-EZYT7YJW-f4mAfmg0.js +1 -0
  65. package/dist/_frontend/assets/chunk-EZYT7YJW-f4mAfmg0.js.br +0 -0
  66. package/dist/_frontend/assets/chunk-EZYT7YJW-f4mAfmg0.js.gz +0 -0
  67. package/dist/_frontend/assets/{chunk-4LY4NAUC-C1iAiAXz.js → chunk-HWOHXUGH-Ce2u8EnX.js} +1 -1
  68. package/dist/_frontend/assets/chunk-HWOHXUGH-Ce2u8EnX.js.br +0 -0
  69. package/dist/_frontend/assets/chunk-HWOHXUGH-Ce2u8EnX.js.gz +0 -0
  70. package/dist/_frontend/assets/{chunk-OB3PAWPO-CcC39jqv.js → chunk-OB3PAWPO-CD85zr-J.js} +1 -1
  71. package/dist/_frontend/assets/chunk-OB3PAWPO-CD85zr-J.js.br +0 -0
  72. package/dist/_frontend/assets/chunk-OB3PAWPO-CD85zr-J.js.gz +0 -0
  73. package/dist/_frontend/assets/chunk-TGZCOG2N-4TYK2aiR.js +1 -0
  74. package/dist/_frontend/assets/{cssMode-Dj2Xz6jz.js → cssMode-C5E7YxpV.js} +1 -1
  75. package/dist/_frontend/assets/cssMode-C5E7YxpV.js.br +0 -0
  76. package/dist/_frontend/assets/cssMode-C5E7YxpV.js.gz +0 -0
  77. package/dist/_frontend/assets/{freemarker2-943N0gt5.js → freemarker2-DZwi8TPc.js} +1 -1
  78. package/dist/_frontend/assets/freemarker2-DZwi8TPc.js.br +0 -0
  79. package/dist/_frontend/assets/freemarker2-DZwi8TPc.js.gz +0 -0
  80. package/dist/_frontend/assets/{handlebars-BmWTi7ZS.js → handlebars-CDsMnEVc.js} +1 -1
  81. package/dist/_frontend/assets/handlebars-CDsMnEVc.js.br +0 -0
  82. package/dist/_frontend/assets/handlebars-CDsMnEVc.js.gz +0 -0
  83. package/dist/_frontend/assets/{html-8lmTcm-G.js → html-CWnNhNj2.js} +1 -1
  84. package/dist/_frontend/assets/html-CWnNhNj2.js.br +0 -0
  85. package/dist/_frontend/assets/html-CWnNhNj2.js.gz +0 -0
  86. package/dist/_frontend/assets/{htmlMode-DfBGge2N.js → htmlMode-Ca50I3VT.js} +1 -1
  87. package/dist/_frontend/assets/htmlMode-Ca50I3VT.js.br +0 -0
  88. package/dist/_frontend/assets/htmlMode-Ca50I3VT.js.gz +0 -0
  89. package/dist/_frontend/assets/{index-BQmZxgUA.js → index-CzlV2fIv.js} +3 -3
  90. package/dist/_frontend/assets/index-CzlV2fIv.js.br +0 -0
  91. package/dist/_frontend/assets/index-CzlV2fIv.js.gz +0 -0
  92. package/dist/_frontend/assets/{index-CVbSocf1.js → index-DP0q3FuR.js} +245 -245
  93. package/dist/_frontend/assets/index-DP0q3FuR.js.br +0 -0
  94. package/dist/_frontend/assets/index-DP0q3FuR.js.gz +0 -0
  95. package/dist/_frontend/assets/{javascript-BrPBFTYF.js → javascript-Ii-4k5hG.js} +1 -1
  96. package/dist/_frontend/assets/{jsonMode-BJ-YqiW2.js → jsonMode-DGdP1rR0.js} +1 -1
  97. package/dist/_frontend/assets/jsonMode-DGdP1rR0.js.br +0 -0
  98. package/dist/_frontend/assets/jsonMode-DGdP1rR0.js.gz +0 -0
  99. package/dist/_frontend/assets/{liquid-DHofx8Gl.js → liquid-C_fXk3aI.js} +1 -1
  100. package/dist/_frontend/assets/liquid-C_fXk3aI.js.br +0 -0
  101. package/dist/_frontend/assets/liquid-C_fXk3aI.js.gz +0 -0
  102. package/dist/_frontend/assets/{lspLanguageFeatures-C36LEzPR.js → lspLanguageFeatures-DS-K4idT.js} +1 -1
  103. package/dist/_frontend/assets/lspLanguageFeatures-DS-K4idT.js.br +0 -0
  104. package/dist/_frontend/assets/lspLanguageFeatures-DS-K4idT.js.gz +0 -0
  105. package/dist/_frontend/assets/{mdx-DKcVoDZ1.js → mdx-B2jItCfq.js} +1 -1
  106. package/dist/_frontend/assets/mdx-B2jItCfq.js.br +0 -0
  107. package/dist/_frontend/assets/mdx-B2jItCfq.js.gz +0 -0
  108. package/dist/_frontend/assets/{python-BJ1tC8V2.js → python-DcmEkEhB.js} +1 -1
  109. package/dist/_frontend/assets/python-DcmEkEhB.js.br +0 -0
  110. package/dist/_frontend/assets/python-DcmEkEhB.js.gz +0 -0
  111. package/dist/_frontend/assets/{razor-DwNLptja.js → razor-CJWvz-53.js} +1 -1
  112. package/dist/_frontend/assets/razor-CJWvz-53.js.br +0 -0
  113. package/dist/_frontend/assets/razor-CJWvz-53.js.gz +0 -0
  114. package/dist/_frontend/assets/{tsMode-LvSj4QG5.js → tsMode-CyiBHrIB.js} +1 -1
  115. package/dist/_frontend/assets/tsMode-CyiBHrIB.js.br +0 -0
  116. package/dist/_frontend/assets/tsMode-CyiBHrIB.js.gz +0 -0
  117. package/dist/_frontend/assets/{typescript-ByGf1nW8.js → typescript-D4TlfIug.js} +1 -1
  118. package/dist/_frontend/assets/typescript-D4TlfIug.js.br +0 -0
  119. package/dist/_frontend/assets/typescript-D4TlfIug.js.gz +0 -0
  120. package/dist/_frontend/assets/{workers-Ds-LWqXu.js → workers-Bj2Qd1oI.js} +1 -1
  121. package/dist/_frontend/assets/workers-Bj2Qd1oI.js.br +0 -0
  122. package/dist/_frontend/assets/workers-Bj2Qd1oI.js.gz +0 -0
  123. package/dist/_frontend/assets/{xml-D-KxU_aA.js → xml-CBuP8f_f.js} +1 -1
  124. package/dist/_frontend/assets/xml-CBuP8f_f.js.br +0 -0
  125. package/dist/_frontend/assets/xml-CBuP8f_f.js.gz +0 -0
  126. package/dist/_frontend/assets/{yaml-Dctt39Xw.js → yaml-DV4v-Qnw.js} +1 -1
  127. package/dist/_frontend/assets/yaml-DV4v-Qnw.js.br +0 -0
  128. package/dist/_frontend/assets/yaml-DV4v-Qnw.js.gz +0 -0
  129. package/dist/_frontend/index.html +1 -1
  130. package/dist/controller-main.js +6 -0
  131. package/dist/controller-main.js.map +1 -1
  132. package/dist/main.js +323 -157
  133. package/dist/main.js.map +1 -1
  134. package/dist/postgres/migrations/20260727_000001_init.js +6 -0
  135. package/dist/postgres/migrations/20260727_000001_init.js.map +1 -1
  136. package/dist/postgres/migrations/20261103_000001_sandbox_environment_type_truefoundry.js +6 -0
  137. package/dist/postgres/migrations/20261103_000001_sandbox_environment_type_truefoundry.js.map +1 -1
  138. package/package.json +3 -3
  139. package/dist/_frontend/assets/AgentCodeSnippets-H343VMKM-Bw48fB4V.js.br +0 -0
  140. package/dist/_frontend/assets/AgentCodeSnippets-H343VMKM-Bw48fB4V.js.gz +0 -0
  141. package/dist/_frontend/assets/AgentMetricChart-2A3Q73AO-ByPINDhM.js.br +0 -0
  142. package/dist/_frontend/assets/AgentMetricChart-2A3Q73AO-ByPINDhM.js.gz +0 -0
  143. package/dist/_frontend/assets/AgentOverview-PLZP4BE4-B4luQD6n.js.br +0 -0
  144. package/dist/_frontend/assets/AgentOverview-PLZP4BE4-B4luQD6n.js.gz +0 -0
  145. package/dist/_frontend/assets/AgentSessionEventTimeline-YANYUDA5-CZsR7Mad.js.br +0 -0
  146. package/dist/_frontend/assets/AgentSessionEventTimeline-YANYUDA5-CZsR7Mad.js.gz +0 -0
  147. package/dist/_frontend/assets/AgentSessionEventTimelineChart-E4JMM6YS-qdgLjjB4.js.br +0 -0
  148. package/dist/_frontend/assets/AgentSessions-D6O2XY6Y-C4oQgmHA.js +0 -1
  149. package/dist/_frontend/assets/AgentSessions-D6O2XY6Y-C4oQgmHA.js.br +0 -0
  150. package/dist/_frontend/assets/AgentSessions-D6O2XY6Y-C4oQgmHA.js.gz +0 -0
  151. package/dist/_frontend/assets/ConnectorSettings-GKNCNULP-DWw6csCc.js.br +0 -0
  152. package/dist/_frontend/assets/ConnectorSettings-GKNCNULP-DWw6csCc.js.gz +0 -0
  153. package/dist/_frontend/assets/DrawerLayout-RF5C5UUW-CdYLoo0Y.js +0 -2
  154. package/dist/_frontend/assets/DrawerLayout-RF5C5UUW-CdYLoo0Y.js.br +0 -0
  155. package/dist/_frontend/assets/DrawerLayout-RF5C5UUW-CdYLoo0Y.js.gz +0 -0
  156. package/dist/_frontend/assets/EnvironmentsPage-Y7GUFDX6-B4lzlmZl.js.br +0 -0
  157. package/dist/_frontend/assets/EnvironmentsPage-Y7GUFDX6-B4lzlmZl.js.gz +0 -0
  158. package/dist/_frontend/assets/MemorySettings-4RRBDBV6-DeUiqqhK.js.br +0 -0
  159. package/dist/_frontend/assets/MemorySettings-4RRBDBV6-DeUiqqhK.js.gz +0 -0
  160. package/dist/_frontend/assets/ModelSettings-GYHM5IRX-CETYKyCX.js.br +0 -0
  161. package/dist/_frontend/assets/ModelSettings-GYHM5IRX-CETYKyCX.js.gz +0 -0
  162. package/dist/_frontend/assets/SandboxSettings-64C4LPUD-Cnonjif3.js.br +0 -0
  163. package/dist/_frontend/assets/SandboxSettings-64C4LPUD-Cnonjif3.js.gz +0 -0
  164. package/dist/_frontend/assets/SchedulesPage-7LTCQWDY-BZlW89Yr.js.br +0 -0
  165. package/dist/_frontend/assets/SchedulesPage-7LTCQWDY-BZlW89Yr.js.gz +0 -0
  166. package/dist/_frontend/assets/SettingsBuilder-EFI3M2WM-C5-UGRAl.js +0 -2
  167. package/dist/_frontend/assets/SettingsBuilder-EFI3M2WM-C5-UGRAl.js.br +0 -0
  168. package/dist/_frontend/assets/SettingsBuilder-EFI3M2WM-C5-UGRAl.js.gz +0 -0
  169. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-Bk2ZHjFW.js.br +0 -0
  170. package/dist/_frontend/assets/ShellRouteSync-4T763MWC-Bk2ZHjFW.js.gz +0 -0
  171. package/dist/_frontend/assets/SidebarLayout-SLXLQ4KI-CgK26FAl.js +0 -2
  172. package/dist/_frontend/assets/SidebarLayout-SLXLQ4KI-CgK26FAl.js.br +0 -0
  173. package/dist/_frontend/assets/SidebarLayout-SLXLQ4KI-CgK26FAl.js.gz +0 -0
  174. package/dist/_frontend/assets/SkillSettings-2HF7EG6X-BjVk8qd8.js.br +0 -0
  175. package/dist/_frontend/assets/SkillSettings-2HF7EG6X-BjVk8qd8.js.gz +0 -0
  176. package/dist/_frontend/assets/WebSearchSettings-HDYOF3AO-yXj5D86c.js +0 -1
  177. package/dist/_frontend/assets/WebSearchSettings-HDYOF3AO-yXj5D86c.js.br +0 -0
  178. package/dist/_frontend/assets/WebSearchSettings-HDYOF3AO-yXj5D86c.js.gz +0 -0
  179. package/dist/_frontend/assets/WidgetLayout-VEILCOPB-CT3L-nt5.js.br +0 -0
  180. package/dist/_frontend/assets/WidgetLayout-VEILCOPB-CT3L-nt5.js.gz +0 -0
  181. package/dist/_frontend/assets/chunk-2DR7SPLX-lhr7WyYV.js +0 -2
  182. package/dist/_frontend/assets/chunk-2DR7SPLX-lhr7WyYV.js.br +0 -0
  183. package/dist/_frontend/assets/chunk-2DR7SPLX-lhr7WyYV.js.gz +0 -0
  184. package/dist/_frontend/assets/chunk-4LY4NAUC-C1iAiAXz.js.br +0 -0
  185. package/dist/_frontend/assets/chunk-4LY4NAUC-C1iAiAXz.js.gz +0 -0
  186. package/dist/_frontend/assets/chunk-OB3PAWPO-CcC39jqv.js.br +0 -0
  187. package/dist/_frontend/assets/chunk-OB3PAWPO-CcC39jqv.js.gz +0 -0
  188. package/dist/_frontend/assets/chunk-WUWRYVPF-CCSQgb1W.js +0 -1
  189. package/dist/_frontend/assets/chunk-WUWRYVPF-CCSQgb1W.js.br +0 -0
  190. package/dist/_frontend/assets/chunk-WUWRYVPF-CCSQgb1W.js.gz +0 -0
  191. package/dist/_frontend/assets/cssMode-Dj2Xz6jz.js.br +0 -0
  192. package/dist/_frontend/assets/cssMode-Dj2Xz6jz.js.gz +0 -0
  193. package/dist/_frontend/assets/freemarker2-943N0gt5.js.br +0 -0
  194. package/dist/_frontend/assets/freemarker2-943N0gt5.js.gz +0 -0
  195. package/dist/_frontend/assets/handlebars-BmWTi7ZS.js.br +0 -0
  196. package/dist/_frontend/assets/handlebars-BmWTi7ZS.js.gz +0 -0
  197. package/dist/_frontend/assets/html-8lmTcm-G.js.br +0 -0
  198. package/dist/_frontend/assets/html-8lmTcm-G.js.gz +0 -0
  199. package/dist/_frontend/assets/htmlMode-DfBGge2N.js.br +0 -0
  200. package/dist/_frontend/assets/htmlMode-DfBGge2N.js.gz +0 -0
  201. package/dist/_frontend/assets/index-BQmZxgUA.js.br +0 -0
  202. package/dist/_frontend/assets/index-BQmZxgUA.js.gz +0 -0
  203. package/dist/_frontend/assets/index-CVbSocf1.js.br +0 -0
  204. package/dist/_frontend/assets/index-CVbSocf1.js.gz +0 -0
  205. package/dist/_frontend/assets/jsonMode-BJ-YqiW2.js.br +0 -0
  206. package/dist/_frontend/assets/jsonMode-BJ-YqiW2.js.gz +0 -0
  207. package/dist/_frontend/assets/liquid-DHofx8Gl.js.br +0 -0
  208. package/dist/_frontend/assets/liquid-DHofx8Gl.js.gz +0 -0
  209. package/dist/_frontend/assets/lspLanguageFeatures-C36LEzPR.js.br +0 -0
  210. package/dist/_frontend/assets/lspLanguageFeatures-C36LEzPR.js.gz +0 -0
  211. package/dist/_frontend/assets/mdx-DKcVoDZ1.js.br +0 -0
  212. package/dist/_frontend/assets/mdx-DKcVoDZ1.js.gz +0 -0
  213. package/dist/_frontend/assets/python-BJ1tC8V2.js.br +0 -0
  214. package/dist/_frontend/assets/python-BJ1tC8V2.js.gz +0 -0
  215. package/dist/_frontend/assets/razor-DwNLptja.js.br +0 -0
  216. package/dist/_frontend/assets/razor-DwNLptja.js.gz +0 -0
  217. package/dist/_frontend/assets/tsMode-LvSj4QG5.js.br +0 -0
  218. package/dist/_frontend/assets/tsMode-LvSj4QG5.js.gz +0 -0
  219. package/dist/_frontend/assets/typescript-ByGf1nW8.js.br +0 -0
  220. package/dist/_frontend/assets/typescript-ByGf1nW8.js.gz +0 -0
  221. package/dist/_frontend/assets/workers-Ds-LWqXu.js.br +0 -0
  222. package/dist/_frontend/assets/workers-Ds-LWqXu.js.gz +0 -0
  223. package/dist/_frontend/assets/xml-D-KxU_aA.js.br +0 -0
  224. package/dist/_frontend/assets/xml-D-KxU_aA.js.gz +0 -0
  225. package/dist/_frontend/assets/yaml-Dctt39Xw.js.br +0 -0
  226. package/dist/_frontend/assets/yaml-Dctt39Xw.js.gz +0 -0
package/dist/main.js CHANGED
@@ -205,6 +205,7 @@ import { isIPv6 } from "net";
205
205
  import os from "os";
206
206
  import path2 from "path";
207
207
  import { fileURLToPath as fileURLToPath2 } from "url";
208
+ import { DEFAULT_MAX_PARALLEL_SUB_AGENTS } from "@truefoundry/trueforge-core/core";
208
209
  import envPaths from "env-paths";
209
210
  import { z } from "zod";
210
211
  function getEnv(key, options) {
@@ -774,6 +775,11 @@ var init_config = __esm({
774
775
  defaultValue: 30
775
776
  }),
776
777
  SERVER_EXECUTION_TIMEOUT_SECONDS: serverExecutionTimeoutSeconds,
778
+ MAX_PARALLEL_SUB_AGENTS: parsePositiveInt({
779
+ envKey: "MAX_PARALLEL_SUB_AGENTS",
780
+ raw: getEnv("MAX_PARALLEL_SUB_AGENTS"),
781
+ defaultValue: DEFAULT_MAX_PARALLEL_SUB_AGENTS
782
+ }),
777
783
  TURN_STREAM_TTL_SECONDS: parsePositiveInt({
778
784
  envKey: "TURN_STREAM_TTL_SECONDS",
779
785
  raw: getEnv("TURN_STREAM_TTL_SECONDS"),
@@ -3732,7 +3738,7 @@ var init_skillStore = __esm({
3732
3738
  });
3733
3739
 
3734
3740
  // src/db/gitSkillMounts.ts
3735
- import { HTTPException as HTTPException25 } from "hono/http-exception";
3741
+ import { HTTPException as HTTPException26 } from "hono/http-exception";
3736
3742
  async function validateGitAgentSkills(store, input) {
3737
3743
  const { tenant_id, skills } = input;
3738
3744
  if (skills.length === 0) {
@@ -3740,7 +3746,7 @@ async function validateGitAgentSkills(store, input) {
3740
3746
  }
3741
3747
  for (const skill of skills) {
3742
3748
  if (skill.preload) {
3743
- throw new HTTPException25(422, {
3749
+ throw new HTTPException26(422, {
3744
3750
  message: `Skill "${skill.name}": preload is not supported for git skills`
3745
3751
  });
3746
3752
  }
@@ -3750,12 +3756,12 @@ async function validateGitAgentSkills(store, input) {
3750
3756
  for (const skill of skills) {
3751
3757
  const record = byName.get(skill.name);
3752
3758
  if (record === void 0) {
3753
- throw new HTTPException25(422, {
3759
+ throw new HTTPException26(422, {
3754
3760
  message: `Unknown skill "${skill.name}" \u2014 not configured`
3755
3761
  });
3756
3762
  }
3757
3763
  if (record.manifest.type !== "git") {
3758
- throw new HTTPException25(422, {
3764
+ throw new HTTPException26(422, {
3759
3765
  message: `Skill "${skill.name}" is not a git skill`
3760
3766
  });
3761
3767
  }
@@ -3773,13 +3779,13 @@ async function resolveGitTurnSkills(store, input) {
3773
3779
  for (const skill of skills) {
3774
3780
  const record = byName.get(skill.name);
3775
3781
  if (record === void 0) {
3776
- throw new HTTPException25(422, {
3782
+ throw new HTTPException26(422, {
3777
3783
  message: `Unknown skill "${skill.name}" \u2014 not configured`
3778
3784
  });
3779
3785
  }
3780
3786
  const git = parseGitSkill(record.manifest);
3781
3787
  if (git === void 0) {
3782
- throw new HTTPException25(422, {
3788
+ throw new HTTPException26(422, {
3783
3789
  message: `Skill "${skill.name}" is not a git skill`
3784
3790
  });
3785
3791
  }
@@ -5492,7 +5498,7 @@ var init_mcpAuth = __esm({
5492
5498
  });
5493
5499
 
5494
5500
  // src/db/sessionAgentColumns.ts
5495
- import { AgentSpecSchema as AgentSpecSchema4 } from "@truefoundry/trueforge-core/agent-session";
5501
+ import { AgentSpecSchema as AgentSpecSchema5 } from "@truefoundry/trueforge-core/agent-session";
5496
5502
  function sessionAgentToColumns(agent) {
5497
5503
  if (agent.type === "reference") {
5498
5504
  return { agent_id: agent.id, agent_name: agent.name, agent_spec: null };
@@ -5504,7 +5510,7 @@ function sessionAgentFromColumns(input) {
5504
5510
  return { type: "reference", id: input.agent_id, name: input.agent_name };
5505
5511
  }
5506
5512
  if (input.agent_id === null && input.agent_spec !== null) {
5507
- return { type: "inline", spec: AgentSpecSchema4.parse(input.agent_spec) };
5513
+ return { type: "inline", spec: AgentSpecSchema5.parse(input.agent_spec) };
5508
5514
  }
5509
5515
  throw new Error(
5510
5516
  `Session ${input.session_id} has invalid agent binding (exactly one of agent_id or agent_spec required)`
@@ -11640,7 +11646,7 @@ import { swaggerUI } from "@hono/swagger-ui";
11640
11646
  import { OpenAPIHono as OpenAPIHono23, z as z51 } from "@hono/zod-openapi";
11641
11647
  import { extractErrorLogFields as extractErrorLogFields9 } from "@truefoundry/trueforge-core/core";
11642
11648
  import { bodyLimit } from "hono/body-limit";
11643
- import { HTTPException as HTTPException22 } from "hono/http-exception";
11649
+ import { HTTPException as HTTPException23 } from "hono/http-exception";
11644
11650
  import { randomUUID as randomUUID7 } from "crypto";
11645
11651
 
11646
11652
  // src/apis/agents.ts
@@ -13954,6 +13960,25 @@ function createApiKeyAuthMiddleware(apiKey) {
13954
13960
  return next();
13955
13961
  };
13956
13962
  }
13963
+ function createAuthOrServiceKeyMiddleware(params) {
13964
+ const { authenticator, apiKey } = params;
13965
+ return async (c, next) => {
13966
+ const token = readBearerToken(c);
13967
+ if (token && matchesServiceKey({ provided: token, expected: apiKey })) {
13968
+ c.set("request_context", void 0);
13969
+ c.set("subject", void 0);
13970
+ return next();
13971
+ }
13972
+ const requestContext = await tryAuthenticate({ authenticator, context: c });
13973
+ if (!requestContext) {
13974
+ throw new HTTPException5(401, { message: "Authentication required" });
13975
+ }
13976
+ c.set("subject", requestContext.subject);
13977
+ c.set("request_context", requestContext);
13978
+ updateLogContext({ tenant_id: requestContext.tenant_id });
13979
+ return next();
13980
+ };
13981
+ }
13957
13982
  async function resolveOidcRequestContext(c) {
13958
13983
  const oidcVerify2 = getOidcVerify();
13959
13984
  if (!oidcVerify2) {
@@ -17459,7 +17484,7 @@ import { OpenAPIHono as OpenAPIHono13 } from "@hono/zod-openapi";
17459
17484
  import {
17460
17485
  InvalidPageTokenError as InvalidPageTokenError3
17461
17486
  } from "@truefoundry/trueforge-core/agent-session";
17462
- import { HTTPException as HTTPException15 } from "hono/http-exception";
17487
+ import { HTTPException as HTTPException16 } from "hono/http-exception";
17463
17488
 
17464
17489
  // src/controller/scheduleDispatch.ts
17465
17490
  init_scheduleStore();
@@ -18161,9 +18186,51 @@ import {
18161
18186
  redisRequest,
18162
18187
  RequestTimeoutError
18163
18188
  } from "@truefoundry/trueforge-core/request-reply";
18164
- import { HTTPException as HTTPException14 } from "hono/http-exception";
18189
+ import { HTTPException as HTTPException15 } from "hono/http-exception";
18165
18190
  import { streamSSE } from "hono/streaming";
18166
18191
  import { z as z42 } from "zod";
18192
+
18193
+ // src/auth/assumeUser.ts
18194
+ import { HTTPException as HTTPException11 } from "hono/http-exception";
18195
+ var ASSUME_USER_HEADER = "assume-user";
18196
+ var ASSUME_USER_HEADER_PARAM = {
18197
+ name: ASSUME_USER_HEADER,
18198
+ in: "header",
18199
+ required: false,
18200
+ description: "Service API key only: which user identity to assume. Currently only session-creator.",
18201
+ schema: { type: "string", enum: ["session-creator"] }
18202
+ };
18203
+ function parseAssumeUserHeader(header) {
18204
+ const raw = header?.trim();
18205
+ if (!raw) {
18206
+ throw new HTTPException11(400, { message: `Missing ${ASSUME_USER_HEADER} header` });
18207
+ }
18208
+ if (raw !== "session-creator") {
18209
+ throw new HTTPException11(400, {
18210
+ message: `Invalid ${ASSUME_USER_HEADER}: only "session-creator" is supported`
18211
+ });
18212
+ }
18213
+ return raw;
18214
+ }
18215
+ async function applyAssumeUserToContext(params) {
18216
+ const { c, resolveCreatedBy } = params;
18217
+ const assumed = parseAssumeUserHeader(c.req.header(ASSUME_USER_HEADER));
18218
+ const createdBy = await resolveCreatedBy();
18219
+ const requestContext = requestContextFromCreatedBySubject({
18220
+ tenant_id: createdBy.tenant_id,
18221
+ created_by_subject: createdBy.created_by_subject,
18222
+ user_credential: null
18223
+ });
18224
+ c.set("request_context", requestContext);
18225
+ c.set("assume_user", assumed);
18226
+ updateLogContext({
18227
+ tenant_id: createdBy.tenant_id,
18228
+ ...createdBy.session_id ? { session_id: createdBy.session_id } : {}
18229
+ });
18230
+ return requestContext;
18231
+ }
18232
+
18233
+ // src/apis/turns.ts
18167
18234
  init_config();
18168
18235
 
18169
18236
  // src/mcp/server/trueforge/headers.ts
@@ -18948,6 +19015,7 @@ var listTurnsRoute = createRoute14({
18948
19015
  tags: ["Agent Sessions" /* AGENT_SESSIONS */],
18949
19016
  summary: "List turns in a session",
18950
19017
  description: "List turns for a session (newest first by default), token-paginated. Allowed for the creator, a manager of the bound named agent, or any tenant member when the session is shared.",
19018
+ parameters: [ASSUME_USER_HEADER_PARAM],
18951
19019
  "x-fern-sdk-group-name": ["sessions"],
18952
19020
  "x-fern-sdk-method-name": "list_turns",
18953
19021
  "x-fern-pagination": TOKEN_PAGINATION,
@@ -19135,6 +19203,7 @@ Only the session creator may create turns.
19135
19203
  When \`stream\` is true (default), respond with a Server-Sent Events stream of turn events.
19136
19204
  When \`stream\` is false, return the turn immediately with \`state.status: "running"\` while execution continues in the background; use get turn or subscribe to observe completion.
19137
19205
  Use \`previous_turn_id\` to chain to the session's last turn (defaults to \`auto\`); use \`none\` for a new root.`,
19206
+ parameters: [ASSUME_USER_HEADER_PARAM],
19138
19207
  "x-fern-sdk-group-name": ["sessions"],
19139
19208
  "x-fern-sdk-method-name": "create_turn",
19140
19209
  "x-fern-streaming": {
@@ -20369,7 +20438,7 @@ function elapsedMs(startedAt) {
20369
20438
  }
20370
20439
 
20371
20440
  // src/truefoundry/gatewayMetadata.ts
20372
- import { HTTPException as HTTPException11 } from "hono/http-exception";
20441
+ import { HTTPException as HTTPException12 } from "hono/http-exception";
20373
20442
  import { z as z39 } from "zod";
20374
20443
  var X_TFY_METADATA = "x-tfy-metadata";
20375
20444
  var X_TFY_CONVERSATION_ID = "x-tfy-conversation-id";
@@ -20380,11 +20449,11 @@ function parseGatewayMetadataHeader(raw) {
20380
20449
  try {
20381
20450
  decoded = JSON.parse(raw);
20382
20451
  } catch (error) {
20383
- throw new HTTPException11(400, { message: `${X_TFY_METADATA} must be a JSON object`, cause: error });
20452
+ throw new HTTPException12(400, { message: `${X_TFY_METADATA} must be a JSON object`, cause: error });
20384
20453
  }
20385
20454
  const parsed = GatewayMetadataSchema.safeParse(decoded);
20386
20455
  if (!parsed.success) {
20387
- throw new HTTPException11(400, {
20456
+ throw new HTTPException12(400, {
20388
20457
  message: `${X_TFY_METADATA} must be a JSON object of string values`
20389
20458
  });
20390
20459
  }
@@ -20461,7 +20530,7 @@ function headerValue(headers, name) {
20461
20530
 
20462
20531
  // src/truefoundry/inlineResources.ts
20463
20532
  import { ToolSchema as McpToolSchema } from "@modelcontextprotocol/sdk/types.js";
20464
- import { HTTPException as HTTPException12 } from "hono/http-exception";
20533
+ import { HTTPException as HTTPException13 } from "hono/http-exception";
20465
20534
  import { z as z40 } from "zod";
20466
20535
  init_skill();
20467
20536
  var X_TFG_MCP = "x-tfg-mcp";
@@ -20490,10 +20559,10 @@ var InlineToolsHeaderSchema = z40.array(McpToolSchema, {
20490
20559
  function assertInlineResourceHeadersAllowed(input) {
20491
20560
  const labeled = input.headerNames.join("/");
20492
20561
  if (!input.isTrueFoundryMode) {
20493
- throw new HTTPException12(400, { message: `${labeled} requires TrueFoundry mode` });
20562
+ throw new HTTPException13(400, { message: `${labeled} requires TrueFoundry mode` });
20494
20563
  }
20495
20564
  if (!input.allowInlineResources) {
20496
- throw new HTTPException12(400, {
20565
+ throw new HTTPException13(400, {
20497
20566
  message: `${labeled} is only allowed when creating or updating an inline session, or on a turn for one`
20498
20567
  });
20499
20568
  }
@@ -20536,17 +20605,17 @@ function parseInlineModelProviders(raw) {
20536
20605
  }
20537
20606
  function parseInlineTools(raw) {
20538
20607
  if (raw.length > MAX_TFG_TOOLS_HEADER_LENGTH) {
20539
- throw new HTTPException12(400, { message: `${X_TFG_TOOLS} is too large` });
20608
+ throw new HTTPException13(400, { message: `${X_TFG_TOOLS} is too large` });
20540
20609
  }
20541
20610
  let decoded;
20542
20611
  try {
20543
20612
  decoded = JSON.parse(raw);
20544
20613
  } catch (error) {
20545
- throw new HTTPException12(400, { message: `${X_TFG_TOOLS} must be a JSON array`, cause: error });
20614
+ throw new HTTPException13(400, { message: `${X_TFG_TOOLS} must be a JSON array`, cause: error });
20546
20615
  }
20547
20616
  const parsed = InlineToolsHeaderSchema.safeParse(decoded);
20548
20617
  if (!parsed.success) {
20549
- throw new HTTPException12(400, {
20618
+ throw new HTTPException13(400, {
20550
20619
  message: `${X_TFG_TOOLS}
20551
20620
  ${z40.prettifyError(parsed.error)}`,
20552
20621
  cause: parsed.error
@@ -20560,20 +20629,20 @@ function parseByName(input) {
20560
20629
  try {
20561
20630
  decoded = JSON.parse(raw);
20562
20631
  } catch (error) {
20563
- throw new HTTPException12(400, { message: `${header} must be a JSON object`, cause: error });
20632
+ throw new HTTPException13(400, { message: `${header} must be a JSON object`, cause: error });
20564
20633
  }
20565
20634
  if (!isPlainObject(decoded)) {
20566
- throw new HTTPException12(400, { message: `${header} must map each name to a definition` });
20635
+ throw new HTTPException13(400, { message: `${header} must map each name to a definition` });
20567
20636
  }
20568
20637
  const manifests = {};
20569
20638
  Object.setPrototypeOf(manifests, null);
20570
20639
  for (const [name, definition] of Object.entries(decoded)) {
20571
20640
  if (!isPlainObject(definition)) {
20572
- throw new HTTPException12(400, { message: `${header} entry "${name}" must be an object` });
20641
+ throw new HTTPException13(400, { message: `${header} entry "${name}" must be an object` });
20573
20642
  }
20574
20643
  const parsed = parseEntry(name, definition);
20575
20644
  if (!parsed.ok) {
20576
- throw new HTTPException12(400, { message: `${header} entry "${name}" ${parsed.reason}` });
20645
+ throw new HTTPException13(400, { message: `${header} entry "${name}" ${parsed.reason}` });
20577
20646
  }
20578
20647
  manifests[name] = parsed.manifest;
20579
20648
  }
@@ -20584,7 +20653,7 @@ function isPlainObject(value) {
20584
20653
  }
20585
20654
 
20586
20655
  // src/truefoundry/perServerMcpHeaders.ts
20587
- import { HTTPException as HTTPException13 } from "hono/http-exception";
20656
+ import { HTTPException as HTTPException14 } from "hono/http-exception";
20588
20657
  import { z as z41 } from "zod";
20589
20658
  var X_TFG_MCP_HEADERS = "x-tfg-mcp-headers";
20590
20659
  var PerServerMcpHeadersSchema = z41.record(z41.string().min(1), z41.record(z41.string().min(1), z41.string()));
@@ -20593,11 +20662,11 @@ function parsePerServerMcpHeaders(raw) {
20593
20662
  try {
20594
20663
  decoded = JSON.parse(raw);
20595
20664
  } catch (error) {
20596
- throw new HTTPException13(400, { message: `${X_TFG_MCP_HEADERS} must be a JSON object`, cause: error });
20665
+ throw new HTTPException14(400, { message: `${X_TFG_MCP_HEADERS} must be a JSON object`, cause: error });
20597
20666
  }
20598
20667
  const parsed = PerServerMcpHeadersSchema.safeParse(decoded);
20599
20668
  if (!parsed.success) {
20600
- throw new HTTPException13(400, {
20669
+ throw new HTTPException14(400, {
20601
20670
  message: `${X_TFG_MCP_HEADERS} must map each MCP server name to a header map`
20602
20671
  });
20603
20672
  }
@@ -20745,7 +20814,7 @@ function createTurnResolver(deps) {
20745
20814
  turnMetadata
20746
20815
  });
20747
20816
  if (connection === void 0) {
20748
- throw new HTTPException14(422, {
20817
+ throw new HTTPException15(422, {
20749
20818
  message: `Unknown MCP server "${id}" \u2014 not configured`
20750
20819
  });
20751
20820
  }
@@ -20754,6 +20823,7 @@ function createTurnResolver(deps) {
20754
20823
  mcpRequestTimeoutMs: config_default.MCP_REQUEST_TIMEOUT_MS,
20755
20824
  mcpConnectTimeoutMs: config_default.MCP_CONNECT_TIMEOUT_MS,
20756
20825
  mcpMaxResponseBytes: config_default.MCP_TOOL_CALL_MAX_RESPONSE_BYTES,
20826
+ maxParallelSubAgents: config_default.MAX_PARALLEL_SUB_AGENTS,
20757
20827
  sandboxProvider: async ({ spec, existingSandboxId, tracing }) => {
20758
20828
  const provider = await resolveSandboxProvider({
20759
20829
  tenant_id,
@@ -20762,7 +20832,7 @@ function createTurnResolver(deps) {
20762
20832
  sessionId
20763
20833
  });
20764
20834
  if (provider === void 0) {
20765
- throw new HTTPException14(422, {
20835
+ throw new HTTPException15(422, {
20766
20836
  message: "no sandbox provider configured \u2014 PUT /settings/sandbox-providers"
20767
20837
  });
20768
20838
  }
@@ -20802,7 +20872,7 @@ function createTurnResolver(deps) {
20802
20872
  agent: async (agentId) => {
20803
20873
  const record = await agentStore.getAgent({ tenant_id, id: agentId });
20804
20874
  if (record === void 0) {
20805
- throw new HTTPException14(422, { message: `Agent not found: ${agentId}` });
20875
+ throw new HTTPException15(422, { message: `Agent not found: ${agentId}` });
20806
20876
  }
20807
20877
  return record.manifest;
20808
20878
  },
@@ -21210,7 +21280,7 @@ async function resumePausedTurn(input) {
21210
21280
  };
21211
21281
  }
21212
21282
  function getTurnExecutionError(error) {
21213
- if (error instanceof HTTPException14) {
21283
+ if (error instanceof HTTPException15) {
21214
21284
  if (error.status === 400 || error.status === 404 || error.status === 422) {
21215
21285
  return { status: error.status, message: error.message };
21216
21286
  }
@@ -21239,7 +21309,7 @@ function resolveAfterSequenceNumber(c, bodyAfterSequenceNumber) {
21239
21309
  if (lastEventId) {
21240
21310
  const sequenceNumber = Number(lastEventId);
21241
21311
  if (!Number.isInteger(sequenceNumber) || sequenceNumber < 0) {
21242
- throw new HTTPException14(400, { message: "Invalid Last-Event-Id header" });
21312
+ throw new HTTPException15(400, { message: "Invalid Last-Event-Id header" });
21243
21313
  }
21244
21314
  return sequenceNumber;
21245
21315
  }
@@ -21251,6 +21321,37 @@ function isSessionOwner({
21251
21321
  }) {
21252
21322
  return created_by_subject.subject_id === subject_id;
21253
21323
  }
21324
+ async function resolveTurnRequestContext(params) {
21325
+ const { c, sessions, session_id: sessionId, resolveRequestContext: resolveRequestContext2 } = params;
21326
+ const existing = c.get("request_context");
21327
+ if (existing) {
21328
+ return existing;
21329
+ }
21330
+ if (c.req.header(ASSUME_USER_HEADER)?.trim()) {
21331
+ return applyAssumeUserToContext({
21332
+ c,
21333
+ resolveCreatedBy: async () => {
21334
+ const session = await sessions.getById({ session_id: sessionId });
21335
+ if (!session) {
21336
+ throw new HTTPException15(404, { message: `Session not found: ${sessionId}` });
21337
+ }
21338
+ return {
21339
+ tenant_id: session.record.tenant_id,
21340
+ created_by_subject: session.record.created_by_subject,
21341
+ session_id: sessionId
21342
+ };
21343
+ }
21344
+ });
21345
+ }
21346
+ try {
21347
+ return resolveRequestContext2(c);
21348
+ } catch (error) {
21349
+ if (error instanceof Error && error.message === "RequestContext missing; auth middleware did not run") {
21350
+ throw new HTTPException15(400, { message: `Missing ${ASSUME_USER_HEADER} header`, cause: error });
21351
+ }
21352
+ throw error;
21353
+ }
21354
+ }
21254
21355
  var TURNS_SEND_EVENTS_PATH = "turns/send-events";
21255
21356
  var PeerRequestContextSchema = z42.object({
21256
21357
  tenant_id: z42.string(),
@@ -21727,7 +21828,12 @@ function createTurnsRouter(deps) {
21727
21828
  const listTurnsHandler = async (c) => {
21728
21829
  const { session_id: sessionId } = c.req.valid("param");
21729
21830
  const query = c.req.valid("query");
21730
- const requestContext = deps.resolveRequestContext(c);
21831
+ const requestContext = await resolveTurnRequestContext({
21832
+ c,
21833
+ sessions: deps.sessions,
21834
+ session_id: sessionId,
21835
+ resolveRequestContext: deps.resolveRequestContext
21836
+ });
21731
21837
  const session = await deps.sessions.get({
21732
21838
  tenant_id: requestContext.tenant_id,
21733
21839
  session_id: sessionId
@@ -21755,7 +21861,7 @@ function createTurnsRouter(deps) {
21755
21861
  return c.json({ data: data.map(toWireTurn), pagination }, 200);
21756
21862
  } catch (error) {
21757
21863
  if (error instanceof SessionStoreConflictError) {
21758
- throw new HTTPException14(400, { message: error.message, cause: error });
21864
+ throw new HTTPException15(400, { message: error.message, cause: error });
21759
21865
  }
21760
21866
  throw error;
21761
21867
  }
@@ -21834,7 +21940,7 @@ function createTurnsRouter(deps) {
21834
21940
  });
21835
21941
  } catch (error) {
21836
21942
  if (error instanceof SandboxError2) {
21837
- throw new HTTPException14(error.statusCode, { message: error.message, cause: error });
21943
+ throw new HTTPException15(error.statusCode, { message: error.message, cause: error });
21838
21944
  }
21839
21945
  deps.logger.error("Sandbox file download failed", {
21840
21946
  ...extractErrorLogFields7(error),
@@ -21882,7 +21988,7 @@ function createTurnsRouter(deps) {
21882
21988
  return c.json({ data, pagination }, 200);
21883
21989
  } catch (error) {
21884
21990
  if (error instanceof SessionStoreConflictError) {
21885
- throw new HTTPException14(400, { message: error.message, cause: error });
21991
+ throw new HTTPException15(400, { message: error.message, cause: error });
21886
21992
  }
21887
21993
  throw error;
21888
21994
  }
@@ -21890,7 +21996,13 @@ function createTurnsRouter(deps) {
21890
21996
  const createAndExecuteTurnHandler = async (c) => {
21891
21997
  const { session_id: sessionId } = c.req.valid("param");
21892
21998
  const body = c.req.valid("json");
21893
- const requestContext = deps.resolveRequestContext(c);
21999
+ const serviceAuth = !c.get("request_context") && Boolean(c.req.header(ASSUME_USER_HEADER)?.trim());
22000
+ const requestContext = await resolveTurnRequestContext({
22001
+ c,
22002
+ sessions: deps.sessions,
22003
+ session_id: sessionId,
22004
+ resolveRequestContext: deps.resolveRequestContext
22005
+ });
21894
22006
  const session = await deps.sessions.get({
21895
22007
  tenant_id: requestContext.tenant_id,
21896
22008
  session_id: sessionId
@@ -21898,22 +22010,39 @@ function createTurnsRouter(deps) {
21898
22010
  if (!session) {
21899
22011
  return c.json({ error: { message: `Session not found: ${sessionId}` } }, 404);
21900
22012
  }
21901
- if (!isSessionOwner({
21902
- subject_id: requestContext.subject.id,
21903
- created_by_subject: session.record.created_by_subject
21904
- })) {
21905
- return c.json({ error: { message: FORBIDDEN_CREATE_TURN } }, 403);
21906
- }
21907
- const agentUse = await referencedAgentForUse({
21908
- session,
21909
- requestContext,
21910
- agentStore: deps.resolveAgentStore(requestContext),
21911
- authorizer: deps.authorizer
21912
- });
21913
- if (agentUse.type === "rejected") {
21914
- return c.json({ error: { message: agentUse.message } }, agentUse.status);
22013
+ let referencedAgent;
22014
+ if (serviceAuth) {
22015
+ if (session.record.agent.type !== "reference") {
22016
+ throw new HTTPException15(422, {
22017
+ message: "Service create-turn requires a session bound to a named agent (not an inline agent spec)"
22018
+ });
22019
+ }
22020
+ const agent = await deps.resolveAgentStore(requestContext).getAgent({
22021
+ tenant_id: requestContext.tenant_id,
22022
+ id: session.record.agent.id
22023
+ });
22024
+ if (!agent) {
22025
+ return c.json({ error: { message: `Agent not found: ${session.record.agent.id}` } }, 422);
22026
+ }
22027
+ referencedAgent = agent;
22028
+ } else {
22029
+ if (!isSessionOwner({
22030
+ subject_id: requestContext.subject.id,
22031
+ created_by_subject: session.record.created_by_subject
22032
+ })) {
22033
+ return c.json({ error: { message: FORBIDDEN_CREATE_TURN } }, 403);
22034
+ }
22035
+ const agentUse = await referencedAgentForUse({
22036
+ session,
22037
+ requestContext,
22038
+ agentStore: deps.resolveAgentStore(requestContext),
22039
+ authorizer: deps.authorizer
22040
+ });
22041
+ if (agentUse.type === "rejected") {
22042
+ return c.json({ error: { message: agentUse.message } }, agentUse.status);
22043
+ }
22044
+ referencedAgent = agentUse.agent;
21915
22045
  }
21916
- const referencedAgent = agentUse.agent;
21917
22046
  const turnParams = {
21918
22047
  session,
21919
22048
  input: body.input,
@@ -21925,7 +22054,7 @@ function createTurnsRouter(deps) {
21925
22054
  session,
21926
22055
  requestContext,
21927
22056
  requestHeaders: c.req.header(),
21928
- ...referencedAgent !== void 0 ? { runAsAgent: referencedAgent } : {}
22057
+ ...referencedAgent ? { runAsAgent: referencedAgent } : {}
21929
22058
  })
21930
22059
  };
21931
22060
  try {
@@ -21983,7 +22112,7 @@ function createTurnsRouter(deps) {
21983
22112
  } catch (error) {
21984
22113
  const turnError = getTurnExecutionError(error);
21985
22114
  if (turnError) {
21986
- throw new HTTPException14(turnError.status, { message: turnError.message, cause: error });
22115
+ throw new HTTPException15(turnError.status, { message: turnError.message, cause: error });
21987
22116
  }
21988
22117
  throw error;
21989
22118
  }
@@ -22065,15 +22194,15 @@ function createTurnsRouter(deps) {
22065
22194
  const afterEventId = query.after_event_id;
22066
22195
  const afterSequenceNumber = resolveAfterSequenceNumber(c, query.after_sequence_number);
22067
22196
  if (afterSequenceNumber !== void 0 && (fromEventId !== void 0 || afterEventId !== void 0)) {
22068
- throw new HTTPException14(400, {
22197
+ throw new HTTPException15(400, {
22069
22198
  message: "Pass only one of after_sequence_number, from_event_id, or after_event_id."
22070
22199
  });
22071
22200
  }
22072
22201
  if (fromEventId !== void 0 && eventIdTimestampMs(fromEventId) === void 0) {
22073
- throw new HTTPException14(400, { message: "Invalid event id." });
22202
+ throw new HTTPException15(400, { message: "Invalid event id." });
22074
22203
  }
22075
22204
  if (afterEventId !== void 0 && eventIdTimestampMs(afterEventId) === void 0) {
22076
- throw new HTTPException14(400, { message: "Invalid event id." });
22205
+ throw new HTTPException15(400, { message: "Invalid event id." });
22077
22206
  }
22078
22207
  const requestContext = deps.resolveRequestContext(c);
22079
22208
  const session = await deps.sessions.get({
@@ -22112,24 +22241,24 @@ function createTurnsRouter(deps) {
22112
22241
  await turnEventStream.assertSubscribable();
22113
22242
  } catch (error) {
22114
22243
  if (error instanceof StreamGoneError) {
22115
- throw new HTTPException14(412, { message: error.message, cause: error });
22244
+ throw new HTTPException15(412, { message: error.message, cause: error });
22116
22245
  }
22117
22246
  throw error;
22118
22247
  }
22119
22248
  const resumeEventId = fromEventId ?? afterEventId;
22120
22249
  if (resumeEventId !== void 0 && !await turnEventStream.hasEventId(resumeEventId)) {
22121
- throw new HTTPException14(400, { message: "Event id is not part of this turn stream." });
22250
+ throw new HTTPException15(400, { message: "Event id is not part of this turn stream." });
22122
22251
  }
22123
22252
  let includeSequenceId = false;
22124
22253
  if (afterSequenceNumber !== void 0) {
22125
22254
  const firstEntryId = await turnEventStream.firstEntryId();
22126
22255
  if (firstEntryId !== void 0 && !isLegacySequenceEntryId(firstEntryId)) {
22127
- throw new HTTPException14(400, {
22256
+ throw new HTTPException15(400, {
22128
22257
  message: "after_sequence_number is not supported on this stream. Use from_event_id or after_event_id."
22129
22258
  });
22130
22259
  }
22131
22260
  if (afterSequenceNumber > LEGACY_SEQUENCE_ID_MAX) {
22132
- throw new HTTPException14(400, {
22261
+ throw new HTTPException15(400, {
22133
22262
  message: "after_sequence_number is not supported above 50000."
22134
22263
  });
22135
22264
  }
@@ -22407,7 +22536,7 @@ function createSchedulesRouter(deps) {
22407
22536
  return c.json({ data: data.map(toWireSchedule), pagination }, 200);
22408
22537
  } catch (error) {
22409
22538
  if (error instanceof InvalidPageTokenError3) {
22410
- throw new HTTPException15(400, { message: error.message, cause: error });
22539
+ throw new HTTPException16(400, { message: error.message, cause: error });
22411
22540
  }
22412
22541
  throw error;
22413
22542
  }
@@ -22442,7 +22571,7 @@ function createSchedulesRouter(deps) {
22442
22571
  return c.json({ data: data.map(toWireScheduleRun), pagination }, 200);
22443
22572
  } catch (error) {
22444
22573
  if (error instanceof InvalidPageTokenError3) {
22445
- throw new HTTPException15(400, { message: error.message, cause: error });
22574
+ throw new HTTPException16(400, { message: error.message, cause: error });
22446
22575
  }
22447
22576
  throw error;
22448
22577
  }
@@ -22504,7 +22633,7 @@ function createSchedulesRouter(deps) {
22504
22633
  }
22505
22634
  const turnError = getTurnExecutionError(error);
22506
22635
  if (turnError) {
22507
- throw new HTTPException15(turnError.status, { message: turnError.message, cause: error });
22636
+ throw new HTTPException16(turnError.status, { message: turnError.message, cause: error });
22508
22637
  }
22509
22638
  throw error;
22510
22639
  }
@@ -22886,7 +23015,7 @@ import {
22886
23015
  redisRequest as redisRequest2,
22887
23016
  RequestTimeoutError as RequestTimeoutError2
22888
23017
  } from "@truefoundry/trueforge-core/request-reply";
22889
- import { HTTPException as HTTPException16 } from "hono/http-exception";
23018
+ import { HTTPException as HTTPException17 } from "hono/http-exception";
22890
23019
  import { z as z44 } from "zod";
22891
23020
  init_config();
22892
23021
  init_id();
@@ -23012,10 +23141,10 @@ async function requireOwnedSession(deps, input) {
23012
23141
  session_id: input.session_id
23013
23142
  });
23014
23143
  if (!record) {
23015
- throw new HTTPException16(404, { message: `Session not found: ${input.session_id}` });
23144
+ throw new HTTPException17(404, { message: `Session not found: ${input.session_id}` });
23016
23145
  }
23017
23146
  if (!isSessionOwner2({ subject_id: requestContext.subject.id, created_by_subject: record.created_by_subject })) {
23018
- throw new HTTPException16(403, { message: FORBIDDEN_SESSION_ACCESS_MANAGEMENT });
23147
+ throw new HTTPException17(403, { message: FORBIDDEN_SESSION_ACCESS_MANAGEMENT });
23019
23148
  }
23020
23149
  return { requestContext, record };
23021
23150
  }
@@ -23263,7 +23392,7 @@ function createSessionsRouter(deps) {
23263
23392
  return c.json({ error: { message: `Session not found: ${sessionId}` } }, 404);
23264
23393
  }
23265
23394
  if (error instanceof SessionStoreInvariantError) {
23266
- throw new HTTPException16(422, { message: error.message, cause: error });
23395
+ throw new HTTPException17(422, { message: error.message, cause: error });
23267
23396
  }
23268
23397
  throw error;
23269
23398
  }
@@ -23304,7 +23433,7 @@ function createSessionsRouter(deps) {
23304
23433
  return c.json({ data: data.map(toWireSession), pagination }, 200);
23305
23434
  } catch (error) {
23306
23435
  if (error instanceof SessionStoreConflictError2) {
23307
- throw new HTTPException16(400, { message: error.message, cause: error });
23436
+ throw new HTTPException17(400, { message: error.message, cause: error });
23308
23437
  }
23309
23438
  throw error;
23310
23439
  }
@@ -23364,7 +23493,7 @@ function createSessionsRouter(deps) {
23364
23493
  return c.json({ data, pagination }, 200);
23365
23494
  } catch (error) {
23366
23495
  if (error instanceof SessionStoreConflictError2) {
23367
- throw new HTTPException16(400, { message: error.message, cause: error });
23496
+ throw new HTTPException17(400, { message: error.message, cause: error });
23368
23497
  }
23369
23498
  if (error instanceof SessionStoreNotFoundError2) {
23370
23499
  return c.json({ error: { message: error.message } }, 404);
@@ -23389,21 +23518,21 @@ function createSessionsRouter(deps) {
23389
23518
  const toRevoke = uniqueSubjects(body.revoke);
23390
23519
  const revokeKeys = new Set(toRevoke.map(subjectKey));
23391
23520
  if (toGrant.some((subject) => revokeKeys.has(subjectKey(subject)))) {
23392
- throw new HTTPException16(422, { message: "A subject cannot be both granted and revoked." });
23521
+ throw new HTTPException17(422, { message: "A subject cannot be both granted and revoked." });
23393
23522
  }
23394
23523
  if (toGrant.some((subject) => subject.subject_type === "tenant" && subject.subject_id !== requestContext.tenant_id)) {
23395
- throw new HTTPException16(422, { message: "A tenant subject must be your own tenant." });
23524
+ throw new HTTPException17(422, { message: "A tenant subject must be your own tenant." });
23396
23525
  }
23397
23526
  const userIds = toGrant.filter((subject) => subject.subject_type === "user").map((subject) => subject.subject_id);
23398
23527
  if (userIds.includes(requestContext.subject.id)) {
23399
- throw new HTTPException16(422, { message: "The session creator already has access." });
23528
+ throw new HTTPException17(422, { message: "The session creator already has access." });
23400
23529
  }
23401
23530
  if (userIds.length > 0) {
23402
23531
  const knownUsers = await deps.userStore.getUsersByIds({ context: requestContext, ids: userIds });
23403
23532
  const knownIds = new Set(knownUsers.map((user) => user.id));
23404
23533
  const unknownIds = userIds.filter((id) => !knownIds.has(id));
23405
23534
  if (unknownIds.length > 0) {
23406
- throw new HTTPException16(422, { message: `Unknown users: ${unknownIds.join(", ")}` });
23535
+ throw new HTTPException17(422, { message: `Unknown users: ${unknownIds.join(", ")}` });
23407
23536
  }
23408
23537
  }
23409
23538
  await deps.withTransaction(async (transaction) => {
@@ -23450,7 +23579,7 @@ import { OpenAPIHono as OpenAPIHono21 } from "@hono/zod-openapi";
23450
23579
 
23451
23580
  // src/apis/memoryProviders.ts
23452
23581
  import { OpenAPIHono as OpenAPIHono16 } from "@hono/zod-openapi";
23453
- import { HTTPException as HTTPException17 } from "hono/http-exception";
23582
+ import { HTTPException as HTTPException18 } from "hono/http-exception";
23454
23583
 
23455
23584
  // src/routes/memoryProviderRoutes.ts
23456
23585
  import { createRoute as createRoute16 } from "@hono/zod-openapi";
@@ -23562,7 +23691,7 @@ function createMemoryProvidersRouter(deps) {
23562
23691
  return c.json({ data: toWireProvider(record) }, 200);
23563
23692
  } catch (error) {
23564
23693
  if (error instanceof MissingStoredSecretError) {
23565
- throw new HTTPException17(400, { message: "API key is required", cause: error });
23694
+ throw new HTTPException18(400, { message: "API key is required", cause: error });
23566
23695
  }
23567
23696
  throw error;
23568
23697
  }
@@ -23577,7 +23706,7 @@ function createMemoryProvidersRouter(deps) {
23577
23706
  init_modelProviderStore();
23578
23707
  import { OpenAPIHono as OpenAPIHono17 } from "@hono/zod-openapi";
23579
23708
  import { assertSafeOutboundUrl as assertSafeOutboundUrl2, OUTBOUND_URL_BLOCKED as OUTBOUND_URL_BLOCKED2 } from "@truefoundry/trueforge-core/core";
23580
- import { HTTPException as HTTPException18 } from "hono/http-exception";
23709
+ import { HTTPException as HTTPException19 } from "hono/http-exception";
23581
23710
 
23582
23711
  // src/routes/modelProviderRoutes.ts
23583
23712
  import { createRoute as createRoute17, z as z45 } from "@hono/zod-openapi";
@@ -23765,7 +23894,7 @@ function createModelProvidersRouter(deps) {
23765
23894
  await assertSafeOutboundUrl2(provider.base_url);
23766
23895
  } catch (error) {
23767
23896
  const message = error instanceof Error ? error.message : OUTBOUND_URL_BLOCKED2;
23768
- throw new HTTPException18(400, { message, cause: error });
23897
+ throw new HTTPException19(400, { message, cause: error });
23769
23898
  }
23770
23899
  try {
23771
23900
  const manifest = resolveModelProviderManifestForWrite({ incoming: provider, existing: void 0 });
@@ -23777,7 +23906,7 @@ function createModelProvidersRouter(deps) {
23777
23906
  return c.json({ data: toWireProvider2(record) }, 201);
23778
23907
  } catch (error) {
23779
23908
  if (error instanceof MissingStoredSecretError) {
23780
- throw new HTTPException18(400, { message: "API key is required", cause: error });
23909
+ throw new HTTPException19(400, { message: "API key is required", cause: error });
23781
23910
  }
23782
23911
  if (error instanceof ModelProviderNameConflictError) {
23783
23912
  return c.json({ error: { message: error.message } }, 409);
@@ -23795,7 +23924,7 @@ function createModelProvidersRouter(deps) {
23795
23924
  await assertSafeOutboundUrl2(provider.base_url);
23796
23925
  } catch (error) {
23797
23926
  const message = error instanceof Error ? error.message : OUTBOUND_URL_BLOCKED2;
23798
- throw new HTTPException18(400, { message, cause: error });
23927
+ throw new HTTPException19(400, { message, cause: error });
23799
23928
  }
23800
23929
  try {
23801
23930
  const outcome = await deps.withTransaction(
@@ -23829,7 +23958,7 @@ function createModelProvidersRouter(deps) {
23829
23958
  return c.json({ data: toWireProvider2(outcome.record) }, 200);
23830
23959
  } catch (error) {
23831
23960
  if (error instanceof MissingStoredSecretError) {
23832
- throw new HTTPException18(400, { message: "API key is required", cause: error });
23961
+ throw new HTTPException19(400, { message: "API key is required", cause: error });
23833
23962
  }
23834
23963
  throw error;
23835
23964
  }
@@ -23876,7 +24005,7 @@ function createModelProvidersRouter(deps) {
23876
24005
 
23877
24006
  // src/apis/sandboxProviders.ts
23878
24007
  import { OpenAPIHono as OpenAPIHono18 } from "@hono/zod-openapi";
23879
- import { HTTPException as HTTPException19 } from "hono/http-exception";
24008
+ import { HTTPException as HTTPException20 } from "hono/http-exception";
23880
24009
 
23881
24010
  // src/routes/sandboxProviderRoutes.ts
23882
24011
  import { createRoute as createRoute18 } from "@hono/zod-openapi";
@@ -24054,16 +24183,16 @@ function createSandboxProvidersRouter(deps) {
24054
24183
  );
24055
24184
  } catch (error) {
24056
24185
  if (error instanceof MissingStoredSecretError) {
24057
- throw new HTTPException19(400, { message: "API key is required", cause: error });
24186
+ throw new HTTPException20(400, { message: "API key is required", cause: error });
24058
24187
  }
24059
24188
  if (isDaytonaAuthError(error)) {
24060
- throw new HTTPException19(422, {
24189
+ throw new HTTPException20(422, {
24061
24190
  message: "Sandbox provider rejected the API key \u2014 check the credentials",
24062
24191
  cause: error
24063
24192
  });
24064
24193
  }
24065
24194
  if (isDaytonaPermissionError(error)) {
24066
- throw new HTTPException19(422, {
24195
+ throw new HTTPException20(422, {
24067
24196
  message: "Sandbox provider denied access: the API key is missing required permissions. Grant write:sandboxes, write:snapshots, and delete:snapshots on the key, then try again.",
24068
24197
  cause: error
24069
24198
  });
@@ -24370,7 +24499,7 @@ function createAvailableSkillsRouter(deps) {
24370
24499
 
24371
24500
  // src/apis/webSearchProviders.ts
24372
24501
  import { OpenAPIHono as OpenAPIHono20 } from "@hono/zod-openapi";
24373
- import { HTTPException as HTTPException20 } from "hono/http-exception";
24502
+ import { HTTPException as HTTPException21 } from "hono/http-exception";
24374
24503
 
24375
24504
  // src/routes/webSearchProviderRoutes.ts
24376
24505
  import { createRoute as createRoute20 } from "@hono/zod-openapi";
@@ -24483,7 +24612,7 @@ function createWebSearchProvidersRouter(deps) {
24483
24612
  return c.json({ data: toWireProvider3(record) }, 200);
24484
24613
  } catch (error) {
24485
24614
  if (error instanceof MissingStoredSecretError) {
24486
- throw new HTTPException20(400, { message: "API key is required", cause: error });
24615
+ throw new HTTPException21(400, { message: "API key is required", cause: error });
24487
24616
  }
24488
24617
  throw error;
24489
24618
  }
@@ -24560,7 +24689,7 @@ import {
24560
24689
  decodeOffsetPageToken,
24561
24690
  encodeOffsetPageToken
24562
24691
  } from "@truefoundry/trueforge-core/agent-session/store/OffsetPageToken";
24563
- import { HTTPException as HTTPException21 } from "hono/http-exception";
24692
+ import { HTTPException as HTTPException22 } from "hono/http-exception";
24564
24693
 
24565
24694
  // src/routes/userRoutes.ts
24566
24695
  import { createRoute as createRoute21 } from "@hono/zod-openapi";
@@ -24623,7 +24752,7 @@ function decodeOffset(pageToken) {
24623
24752
  return decodeOffsetPageToken(pageToken);
24624
24753
  } catch (error) {
24625
24754
  if (error instanceof InvalidPageTokenError4) {
24626
- throw new HTTPException21(400, { message: error.message, cause: error });
24755
+ throw new HTTPException22(400, { message: error.message, cause: error });
24627
24756
  }
24628
24757
  throw error;
24629
24758
  }
@@ -24912,6 +25041,7 @@ async function runTool(fn) {
24912
25041
 
24913
25042
  // src/mcp/server/trueforge/tools/custom.ts
24914
25043
  init_sandboxEnvironment();
25044
+ import { AgentSpecSchema as AgentSpecSchema4 } from "@truefoundry/trueforge-core/agent-session";
24915
25045
  import { z as z48 } from "zod";
24916
25046
 
24917
25047
  // src/mcp/server/trueforge/wireApiClient.ts
@@ -25050,6 +25180,34 @@ function registerCurrentSessionTool(server, client2) {
25050
25180
  })
25051
25181
  );
25052
25182
  }
25183
+ function registerUpdateCurrentSessionTool(server, client2) {
25184
+ const descriptor = {
25185
+ name: "update_current_session",
25186
+ description: "Update this session's spec. Send the full spec back with edits; omitted fields are removed.",
25187
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true },
25188
+ method: "PATCH",
25189
+ path: "/api/v1/sessions/{session_id}",
25190
+ inputSchema: {},
25191
+ pathParameters: ["session_id"],
25192
+ queryParameters: [],
25193
+ bodyParameters: ["agent"]
25194
+ };
25195
+ server.registerTool(
25196
+ descriptor.name,
25197
+ {
25198
+ description: descriptor.description,
25199
+ inputSchema: { spec: AgentSpecSchema4 },
25200
+ annotations: descriptor.annotations
25201
+ },
25202
+ async ({ spec }, extra) => runTool(async () => {
25203
+ const sessionId = headerValue2(extra.requestInfo?.headers, TRUEFORGE_SESSION_HEADER);
25204
+ if (sessionId === void 0) {
25205
+ throw new ToolResultError(400, "No current chat. This tool is only available during a draft session turn.");
25206
+ }
25207
+ return client2.execute(descriptor, { session_id: sessionId, agent: { spec } }, extra.signal);
25208
+ })
25209
+ );
25210
+ }
25053
25211
  function registerSandboxEnvironmentUpdateTool(server, client2, tools) {
25054
25212
  const getEnvironment = openApiTool(tools, "get_sandbox_environment");
25055
25213
  const descriptor = {
@@ -25083,6 +25241,7 @@ function registerSandboxEnvironmentUpdateTool(server, client2, tools) {
25083
25241
  }
25084
25242
  function registerCustomTools(server, client2, tools) {
25085
25243
  registerCurrentSessionTool(server, client2);
25244
+ registerUpdateCurrentSessionTool(server, client2);
25086
25245
  registerSandboxEnvironmentUpdateTool(server, client2, tools);
25087
25246
  }
25088
25247
 
@@ -25283,7 +25442,7 @@ function createAppErrorHandler(params) {
25283
25442
  logError(400, "Client API error");
25284
25443
  return c.json({ error: { message: error.message } }, 400);
25285
25444
  }
25286
- if (error instanceof HTTPException22) {
25445
+ if (error instanceof HTTPException23) {
25287
25446
  logError(error.status, error.status >= 500 ? "Server API error" : "Client API error");
25288
25447
  return c.json({ error: { message: error.message } }, error.status);
25289
25448
  }
@@ -25601,6 +25760,35 @@ function createServerApp(deps) {
25601
25760
  authMiddleware
25602
25761
  )
25603
25762
  );
25763
+ const turnsRouter = new OpenAPIHono23();
25764
+ turnsRouter.use(
25765
+ "/:session_id/turns",
25766
+ createAuthOrServiceKeyMiddleware({
25767
+ authenticator: deps.authenticator,
25768
+ apiKey: config_default.TRUEFORGE_API_KEY
25769
+ })
25770
+ );
25771
+ turnsRouter.use("/:session_id/turns/:turn_id/*", authMiddleware);
25772
+ turnsRouter.route(
25773
+ "/",
25774
+ createTurnsRouter({
25775
+ accessControlStore: deps.accessControlStore,
25776
+ activeTurns: deps.activeTurns,
25777
+ authorizer: deps.authorizer,
25778
+ eventSubscriptions: deps.eventSubscriptions,
25779
+ logger: deps.logger,
25780
+ redis: deps.redis,
25781
+ requestReplyRouter: deps.requestReplyRouter,
25782
+ resolveAgentStore: deps.resolveAgentStore,
25783
+ resolveRequestContext,
25784
+ resolveTurnExecutionStores: deps.resolveTurnExecutionStores,
25785
+ sandboxEnvironmentStore: deps.sandboxEnvironmentStore,
25786
+ sandboxProviderStore: deps.sandboxProviderStore,
25787
+ sessions: deps.sessions,
25788
+ sessionStore: deps.sessionStore
25789
+ })
25790
+ );
25791
+ app.route("/api/v1/sessions", turnsRouter);
25604
25792
  app.route(
25605
25793
  "/api/v1/sessions",
25606
25794
  withAuth(
@@ -25629,28 +25817,6 @@ function createServerApp(deps) {
25629
25817
  authMiddleware
25630
25818
  )
25631
25819
  );
25632
- app.route(
25633
- "/api/v1/sessions",
25634
- withAuth(
25635
- createTurnsRouter({
25636
- accessControlStore: deps.accessControlStore,
25637
- activeTurns: deps.activeTurns,
25638
- authorizer: deps.authorizer,
25639
- eventSubscriptions: deps.eventSubscriptions,
25640
- logger: deps.logger,
25641
- redis: deps.redis,
25642
- requestReplyRouter: deps.requestReplyRouter,
25643
- resolveAgentStore: deps.resolveAgentStore,
25644
- resolveRequestContext,
25645
- resolveTurnExecutionStores: deps.resolveTurnExecutionStores,
25646
- sandboxEnvironmentStore: deps.sandboxEnvironmentStore,
25647
- sandboxProviderStore: deps.sandboxProviderStore,
25648
- sessions: deps.sessions,
25649
- sessionStore: deps.sessionStore
25650
- }),
25651
- authMiddleware
25652
- )
25653
- );
25654
25820
  app.use("/mcp", authMiddleware);
25655
25821
  app.route(
25656
25822
  "/mcp",
@@ -25767,7 +25933,7 @@ var TrueForgeAuthorizer = class {
25767
25933
  init_config();
25768
25934
 
25769
25935
  // src/truefoundry/TrueFoundryAuthenticator.ts
25770
- import { HTTPException as HTTPException23 } from "hono/http-exception";
25936
+ import { HTTPException as HTTPException24 } from "hono/http-exception";
25771
25937
  var TrueFoundryAuthenticator = class {
25772
25938
  #client;
25773
25939
  constructor(client2) {
@@ -25776,7 +25942,7 @@ var TrueFoundryAuthenticator = class {
25776
25942
  async authenticate(c) {
25777
25943
  const token = extractRequestToken(c);
25778
25944
  if (!token) {
25779
- throw new HTTPException23(401, { message: "Authentication required" });
25945
+ throw new HTTPException24(401, { message: "Authentication required" });
25780
25946
  }
25781
25947
  const session = await this.#client.getSession(token);
25782
25948
  const { subject } = session.user;
@@ -25794,17 +25960,17 @@ var TrueFoundryAuthenticator = class {
25794
25960
  };
25795
25961
 
25796
25962
  // src/auth/oidcAuthenticator.ts
25797
- import { HTTPException as HTTPException24 } from "hono/http-exception";
25963
+ import { HTTPException as HTTPException25 } from "hono/http-exception";
25798
25964
  import { jwtVerify as jwtVerify2 } from "jose";
25799
25965
  var OidcAuthenticator = class {
25800
25966
  async authenticate(c) {
25801
25967
  const oidcVerify2 = getOidcVerify();
25802
25968
  if (!oidcVerify2) {
25803
- throw new HTTPException24(401, { message: "Authentication required" });
25969
+ throw new HTTPException25(401, { message: "Authentication required" });
25804
25970
  }
25805
25971
  const token = extractRequestToken(c);
25806
25972
  if (!token) {
25807
- throw new HTTPException24(401, { message: "Authentication required" });
25973
+ throw new HTTPException25(401, { message: "Authentication required" });
25808
25974
  }
25809
25975
  let payload;
25810
25976
  try {
@@ -25813,7 +25979,7 @@ var OidcAuthenticator = class {
25813
25979
  audience: oidcVerify2.audience
25814
25980
  }));
25815
25981
  } catch {
25816
- throw new HTTPException24(401, { message: "Authentication required" });
25982
+ throw new HTTPException25(401, { message: "Authentication required" });
25817
25983
  }
25818
25984
  try {
25819
25985
  const claims = { ...payload };
@@ -25823,7 +25989,7 @@ var OidcAuthenticator = class {
25823
25989
  user_credential: token
25824
25990
  });
25825
25991
  } catch (error) {
25826
- throw new HTTPException24(401, { message: "Authentication required", cause: error });
25992
+ throw new HTTPException25(401, { message: "Authentication required", cause: error });
25827
25993
  }
25828
25994
  }
25829
25995
  };
@@ -25935,7 +26101,7 @@ var MemoryCatalog = class _MemoryCatalog {
25935
26101
  init_config();
25936
26102
 
25937
26103
  // src/catalog/modelCatalog.gen.ts
25938
- var shippedModelCatalogYaml = "# Shipped model catalog: provider/model presets offered by\n# GET /api/v1/catalog/model-providers for the UI to copy into\n# PUT /api/v1/settings/model-providers bodies. Discovery-only \u2014 never executed against.\nproviders:\n - type: openai\n logo: https://assets.production.truefoundry.com/openai.svg\n models:\n - model_id: chat-latest\n name: chat-latest\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - model_id: gpt-5.3-codex\n name: gpt-5-3-codex\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4\n name: gpt-5-4\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-mini\n name: gpt-5-4-mini\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-nano\n name: gpt-5-4-nano\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-pro\n name: gpt-5-4-pro\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - high\n - xhigh\n - model_id: gpt-5.5\n name: gpt-5-5\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.5-pro\n name: gpt-5-5-pro\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - high\n - xhigh\n - model_id: gpt-5.6-luna\n name: gpt-5-6-luna\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-5.6-sol\n name: gpt-5-6-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-5.6-terra\n name: gpt-5-6-terra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-astra\n name: gpt-6-astra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-luna\n name: gpt-6-luna\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-sol\n name: gpt-6-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6.1-sol\n name: gpt-6-1-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6.1-terra\n name: gpt-6-1-terra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - type: anthropic\n logo: https://assets.production.truefoundry.com/anthropic.svg\n models:\n - model_id: claude-fable-5\n name: claude-fable-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-fable-5-1\n name: claude-fable-5-1\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-fable-5-2\n name: claude-fable-5-2\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-haiku-4-5\n name: claude-haiku-4-5\n properties:\n context_length: 200000\n max_output_tokens: 64000\n - model_id: claude-haiku-5-5\n name: claude-haiku-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-4-6\n name: claude-opus-4-6\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: claude-opus-4-7\n name: claude-opus-4-7\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-4-8\n name: claude-opus-4-8\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-5\n name: claude-opus-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-5-5\n name: claude-opus-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-sonnet-4-6\n name: claude-sonnet-4-6\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: claude-sonnet-5\n name: claude-sonnet-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-sonnet-5-5\n name: claude-sonnet-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - type: google-gemini\n logo: https://assets.production.truefoundry.com/google-gemini.svg\n models:\n - model_id: gemini-3.1-flash-lite\n name: gemini-3-1-flash-lite\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.1-pro-preview\n name: gemini-3-1-pro-preview\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-3.5-flash\n name: gemini-3-5-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.5-flash-lite\n name: gemini-3-5-flash-lite\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.6-flash\n name: gemini-3-6-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.7-flash\n name: gemini-3-7-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-3.8-flash\n name: gemini-3-8-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-4-argon\n name: gemini-4-argon\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-4-carbon\n name: gemini-4-carbon\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-flash-latest\n name: gemini-flash-latest\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-flash-lite-latest\n name: gemini-flash-lite-latest\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - minimal\n - low\n - medium\n - high\n - model_id: gemma-4-26b-a4b-it\n name: gemma-4-26b-a4b-it\n properties:\n context_length: 262144\n max_output_tokens: 32768\n - model_id: gemma-4-31b-it\n name: gemma-4-31b-it\n properties:\n context_length: 256000\n - type: fireworks\n logo: https://assets.production.truefoundry.com/fireworks.svg\n models:\n - model_id: accounts/fireworks/models/deepseek-v4-pro\n name: deepseek-v4-pro\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/deepseek-v4p1-flash\n name: deepseek-v4p1-flash\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/deepseek-v4p1-flash-1017\n name: deepseek-v4p1-flash-1017\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/ember-1\n name: ember-1\n properties:\n context_length: 1048576\n max_output_tokens: 943718\n - model_id: accounts/fireworks/models/glm-5p2\n name: glm-5p2\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/glm-5p3\n name: glm-5p3\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: accounts/fireworks/models/glm-5p3-flash\n name: glm-5p3-flash\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: accounts/fireworks/models/kimi-k2p7-code\n name: kimi-k2p7-code\n properties:\n context_length: 262144\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/kimi-k3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/kimi-k3p1-pro\n name: kimi-k3p1-pro\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/minimax-m3\n name: minimax-m3\n properties:\n context_length: 512000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/minimax-m3p1-flash\n name: minimax-m3p1-flash\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: accounts/fireworks/models/muse-spark-open\n name: muse-spark-open\n properties:\n context_length: 1048576\n - type: zai\n logo: https://assets.production.truefoundry.com/zai.svg\n models:\n - model_id: glm-5-turbo\n name: glm-5-turbo\n properties:\n context_length: 200000\n max_output_tokens: 131072\n - model_id: glm-5.1\n name: glm-5-1\n properties:\n context_length: 200000\n max_output_tokens: 131072\n - model_id: glm-5.2\n name: glm-5-2\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: glm-5.3\n name: glm-5-3\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-flash\n name: glm-5-3-flash\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-flashx\n name: glm-5-3-flashx\n properties:\n context_length: 1048576\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-prime\n name: glm-5-3-prime\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5v-turbo\n name: glm-5v-turbo\n properties:\n context_length: 202752\n max_output_tokens: 131072\n - type: moonshot\n logo: https://assets.production.truefoundry.com/moonshot.png\n models:\n - model_id: kimi-k2.7-code\n name: kimi-k2-7-code\n properties:\n context_length: 262144\n - model_id: kimi-k3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: kimi-k3-fast\n name: kimi-k3-fast\n properties:\n context_length: 1048576\n - type: alibaba\n logo: https://assets.production.truefoundry.com/alibaba.png\n models:\n - model_id: qwen3.7-flash\n name: qwen3-7-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.7-max\n name: qwen3-7-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.7-plus\n name: qwen3-7-plus\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.8-flash\n name: qwen3-8-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - medium\n - xhigh\n - model_id: qwen3.8-max\n name: qwen3-8-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: qwen3.8-omni-flash\n name: qwen3-8-omni-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n - type: together\n logo: https://assets.production.truefoundry.com/togetherai.svg\n models:\n - model_id: deepseek-ai/DeepSeek-V4-Flash-0731\n name: deepseek-v4-flash-0731\n properties:\n context_length: 1000000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4-Pro\n name: deepseek-v4-pro\n properties:\n context_length: 512000\n reasoning_efforts:\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4-Pro-0813\n name: deepseek-v4-pro-0813\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4.1-Flash\n name: deepseek-v4-1-flash\n properties:\n context_length: 1000000\n - model_id: deepseek-ai/DeepSeek-V4.1-Flash-1017\n name: deepseek-v4-1-flash-1017\n properties:\n context_length: 1048576\n max_output_tokens: 384000\n - model_id: google/gemma-4-12B-it\n name: gemma-4-12b-it\n properties:\n context_length: 262144\n - model_id: google/gemma-4-26B-A4B-it\n name: gemma-4-26b-a4b-it\n properties:\n context_length: 262144\n - model_id: google/gemma-4-E2B-it\n name: gemma-4-e2b-it\n properties:\n context_length: 128000\n - model_id: google/gemma-4-E4B-it\n name: gemma-4-e4b-it\n properties:\n context_length: 131072\n - model_id: meta-models/Muse-Glimmer-30B\n name: muse-glimmer-30b\n properties:\n context_length: 131072\n - model_id: meta-models/Muse-Spark-Open-816B-A42B\n name: muse-spark-open-816b-a42b\n properties:\n context_length: 1048576\n - model_id: MiniMaxAI/MiniMax-M2.7\n name: minimax-m2-7\n properties:\n context_length: 228700\n - model_id: MiniMaxAI/MiniMax-M3\n name: minimax-m3\n properties:\n context_length: 524288\n - model_id: MiniMaxAI/MiniMax-M3.1-Flash\n name: minimax-m3-1-flash\n properties:\n context_length: 1048576\n max_output_tokens: 524288\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: moonshotai/Kimi-K2.6\n name: kimi-k2-6\n properties:\n context_length: 262144\n - model_id: moonshotai/Kimi-K2.7-Code\n name: kimi-k2-7-code\n properties:\n context_length: 262144\n - model_id: moonshotai/Kimi-K3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - max\n - model_id: moonshotai/Kimi-K3.1-Pro\n name: kimi-k3-1-pro\n properties:\n context_length: 1048576\n - model_id: nvidia/nemotron-3-ultra-550b-a55b\n name: nemotron-3-ultra-550b-a55b\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16\n name: nvidia-nemotron-3-nano-30b-a3b-bf16\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16\n name: nvidia-nemotron-3-super-120b-a12b-bf16\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8\n name: nvidia-nemotron-3-super-120b-a12b-fp8\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3.5-Super-VL\n name: nvidia-nemotron-3-5-super-vl\n properties:\n context_length: 262144\n - model_id: openai/gpt-oss-120b\n name: gpt-oss-120b\n properties:\n context_length: 131072\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: Prism-ML/Ternary-Bonsai-27B\n name: ternary-bonsai-27b\n properties:\n context_length: 262144\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - max\n - model_id: Qwen/Qwen3.6-35B-A3B-FP8\n name: qwen3-6-35b-a3b-fp8\n properties:\n context_length: 262144\n - model_id: Qwen/Qwen3.6-Plus\n name: qwen3-6-plus\n properties:\n context_length: 1000000\n - model_id: Qwen/Qwen3.7-Max\n name: qwen3-7-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: Qwen/Qwen3.7-Plus\n name: qwen3-7-plus\n properties:\n context_length: 1000000\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: Qwen/Qwen3.8-2.4T-A95B\n name: qwen3-8-2-4t-a95b\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - xhigh\n - model_id: Qwen/Qwen3.8-Flash\n name: qwen3-8-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - medium\n - xhigh\n - model_id: reflection/Beam-1.0-501B-A23B\n name: beam-1-0-501b-a23b\n properties:\n context_length: 1048576\n - model_id: thinkingmachines/Inkling\n name: inkling\n properties:\n context_length: 524288\n - model_id: thinkingmachines/Inkling-Small\n name: inkling-small\n properties:\n context_length: 524288\n reasoning_efforts:\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: zai-org/GLM-5.2\n name: glm-5-2\n properties:\n context_length: 1048576\n max_output_tokens: 131072\n reasoning_efforts:\n - high\n - max\n - model_id: zai-org/GLM-5.2-FP8\n name: glm-5-2-fp8\n properties:\n context_length: 1048576\n max_output_tokens: 131072\n - model_id: zai-org/GLM-5.3\n name: glm-5-3\n properties:\n context_length: 1048575\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: zai-org/GLM-5.3-Flash\n name: glm-5-3-flash\n properties:\n context_length: 1048575\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: zai-org/GLM-5.3-FP8\n name: glm-5-3-fp8\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n";
26104
+ var shippedModelCatalogYaml = "# Shipped model catalog: provider/model presets offered by\n# GET /api/v1/catalog/model-providers for the UI to copy into\n# PUT /api/v1/settings/model-providers bodies. Discovery-only \u2014 never executed against.\nproviders:\n - type: openai\n logo: https://assets.production.truefoundry.com/openai.svg\n models:\n - model_id: chat-latest\n name: chat-latest\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - model_id: gpt-5.3-codex\n name: gpt-5-3-codex\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4\n name: gpt-5-4\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-mini\n name: gpt-5-4-mini\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-nano\n name: gpt-5-4-nano\n properties:\n context_length: 400000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.4-pro\n name: gpt-5-4-pro\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - high\n - xhigh\n - model_id: gpt-5.5\n name: gpt-5-5\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - model_id: gpt-5.5-pro\n name: gpt-5-5-pro\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - medium\n - high\n - xhigh\n - model_id: gpt-5.6-luna\n name: gpt-5-6-luna\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-5.6-sol\n name: gpt-5-6-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-5.6-terra\n name: gpt-5-6-terra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-astra\n name: gpt-6-astra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-luna\n name: gpt-6-luna\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6-sol\n name: gpt-6-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6.1-sol\n name: gpt-6-1-sol\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: gpt-6.1-terra\n name: gpt-6-1-terra\n properties:\n context_length: 1050000\n max_output_tokens: 128000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - type: anthropic\n logo: https://assets.production.truefoundry.com/anthropic.svg\n models:\n - model_id: claude-fable-5\n name: claude-fable-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-fable-5-1\n name: claude-fable-5-1\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-fable-5-2\n name: claude-fable-5-2\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-haiku-4-5\n name: claude-haiku-4-5\n properties:\n context_length: 200000\n max_output_tokens: 64000\n - model_id: claude-haiku-5-5\n name: claude-haiku-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-4-6\n name: claude-opus-4-6\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: claude-opus-4-7\n name: claude-opus-4-7\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-4-8\n name: claude-opus-4-8\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-5\n name: claude-opus-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-opus-5-5\n name: claude-opus-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-sonnet-4-6\n name: claude-sonnet-4-6\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: claude-sonnet-5\n name: claude-sonnet-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: claude-sonnet-5-5\n name: claude-sonnet-5-5\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - type: google-gemini\n logo: https://assets.production.truefoundry.com/google-gemini.svg\n models:\n - model_id: gemini-3.1-flash-lite\n name: gemini-3-1-flash-lite\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.1-pro-preview\n name: gemini-3-1-pro-preview\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-3.5-flash\n name: gemini-3-5-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.5-flash-lite\n name: gemini-3-5-flash-lite\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.6-flash\n name: gemini-3-6-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - model_id: gemini-3.7-flash\n name: gemini-3-7-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-3.8-flash\n name: gemini-3-8-flash\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-4-argon\n name: gemini-4-argon\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-4-carbon\n name: gemini-4-carbon\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-flash-latest\n name: gemini-flash-latest\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: gemini-flash-lite-latest\n name: gemini-flash-lite-latest\n properties:\n context_length: 1048576\n max_output_tokens: 65536\n reasoning_efforts:\n - minimal\n - low\n - medium\n - high\n - model_id: gemma-4-26b-a4b-it\n name: gemma-4-26b-a4b-it\n properties:\n context_length: 262144\n max_output_tokens: 32768\n - model_id: gemma-4-31b-it\n name: gemma-4-31b-it\n properties:\n context_length: 256000\n - type: fireworks\n logo: https://assets.production.truefoundry.com/fireworks.svg\n models:\n - model_id: accounts/fireworks/models/deepseek-v4-pro\n name: deepseek-v4-pro\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/deepseek-v4p1-flash\n name: deepseek-v4p1-flash\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/deepseek-v4p1-flash-1017\n name: deepseek-v4p1-flash-1017\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/ember-1\n name: ember-1\n properties:\n context_length: 1048576\n max_output_tokens: 943718\n - model_id: accounts/fireworks/models/glm-5p2\n name: glm-5p2\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/glm-5p3\n name: glm-5p3\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: accounts/fireworks/models/glm-5p3-flash\n name: glm-5p3-flash\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: accounts/fireworks/models/kimi-k2p7-code\n name: kimi-k2p7-code\n properties:\n context_length: 262144\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/kimi-k3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/kimi-k3p1-pro\n name: kimi-k3p1-pro\n properties:\n context_length: 1048576\n - model_id: accounts/fireworks/models/minimax-m3\n name: minimax-m3\n properties:\n context_length: 512000\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: accounts/fireworks/models/minimax-m3p1-flash\n name: minimax-m3p1-flash\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - medium\n - high\n - max\n - model_id: accounts/fireworks/models/muse-spark-open\n name: muse-spark-open\n properties:\n context_length: 1048576\n - type: zai\n logo: https://assets.production.truefoundry.com/zai.svg\n models:\n - model_id: glm-5-turbo\n name: glm-5-turbo\n properties:\n context_length: 200000\n max_output_tokens: 131072\n - model_id: glm-5.1\n name: glm-5-1\n properties:\n context_length: 200000\n max_output_tokens: 131072\n - model_id: glm-5.2\n name: glm-5-2\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: glm-5.3\n name: glm-5-3\n properties:\n context_length: 1000000\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-flash\n name: glm-5-3-flash\n properties:\n context_length: 1048576\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-flashx\n name: glm-5-3-flashx\n properties:\n context_length: 1048576\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5.3-prime\n name: glm-5-3-prime\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: glm-5v-turbo\n name: glm-5v-turbo\n properties:\n context_length: 202752\n max_output_tokens: 131072\n - type: moonshot\n logo: https://assets.production.truefoundry.com/moonshot.png\n models:\n - model_id: kimi-k2.7-code\n name: kimi-k2-7-code\n properties:\n context_length: 262144\n - model_id: kimi-k3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: kimi-k3-fast\n name: kimi-k3-fast\n properties:\n context_length: 1048576\n - type: alibaba\n logo: https://assets.production.truefoundry.com/alibaba.png\n models:\n - model_id: qwen3.7-flash\n name: qwen3-7-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.7-max\n name: qwen3-7-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.7-plus\n name: qwen3-7-plus\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: qwen3.8-flash\n name: qwen3-8-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - medium\n - xhigh\n - model_id: qwen3.8-max\n name: qwen3-8-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: qwen3.8-omni-flash\n name: qwen3-8-omni-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n - type: together\n logo: https://assets.production.truefoundry.com/togetherai.svg\n models:\n - model_id: deepseek-ai/DeepSeek-V4-Flash-0731\n name: deepseek-v4-flash-0731\n properties:\n context_length: 1000000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4-Pro\n name: deepseek-v4-pro\n properties:\n context_length: 512000\n reasoning_efforts:\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4-Pro-0813\n name: deepseek-v4-pro-0813\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: deepseek-ai/DeepSeek-V4.1-Flash\n name: deepseek-v4-1-flash\n properties:\n context_length: 1000000\n - model_id: deepseek-ai/DeepSeek-V4.1-Flash-1017\n name: deepseek-v4-1-flash-1017\n properties:\n context_length: 1048576\n max_output_tokens: 384000\n - model_id: google/gemma-4-12B-it\n name: gemma-4-12b-it\n properties:\n context_length: 262144\n - model_id: google/gemma-4-26B-A4B-it\n name: gemma-4-26b-a4b-it\n properties:\n context_length: 262144\n - model_id: google/gemma-4-E2B-it\n name: gemma-4-e2b-it\n properties:\n context_length: 128000\n - model_id: google/gemma-4-E4B-it\n name: gemma-4-e4b-it\n properties:\n context_length: 131072\n - model_id: meta-models/Muse-Glimmer-30B\n name: muse-glimmer-30b\n properties:\n context_length: 131072\n - model_id: meta-models/Muse-Spark-Open-816B-A42B\n name: muse-spark-open-816b-a42b\n properties:\n context_length: 1048576\n - model_id: MiniMaxAI/MiniMax-M2.7\n name: minimax-m2-7\n properties:\n context_length: 228700\n - model_id: MiniMaxAI/MiniMax-M3\n name: minimax-m3\n properties:\n context_length: 524288\n - model_id: MiniMaxAI/MiniMax-M3.1-Flash\n name: minimax-m3-1-flash\n properties:\n context_length: 1048576\n max_output_tokens: 524288\n reasoning_efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n - model_id: moonshotai/Kimi-K2.6\n name: kimi-k2-6\n properties:\n context_length: 262144\n - model_id: moonshotai/Kimi-K2.7-Code\n name: kimi-k2-7-code\n properties:\n context_length: 262144\n - model_id: moonshotai/Kimi-K3\n name: kimi-k3\n properties:\n context_length: 1048576\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - max\n - model_id: moonshotai/Kimi-K3.1-Pro\n name: kimi-k3-1-pro\n properties:\n context_length: 1048576\n - model_id: nvidia/nemotron-3-ultra-550b-a55b\n name: nemotron-3-ultra-550b-a55b\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16\n name: nvidia-nemotron-3-nano-30b-a3b-bf16\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16\n name: nvidia-nemotron-3-super-120b-a12b-bf16\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8\n name: nvidia-nemotron-3-super-120b-a12b-fp8\n properties:\n context_length: 1000000\n - model_id: nvidia/NVIDIA-Nemotron-3.5-Super-VL\n name: nvidia-nemotron-3-5-super-vl\n properties:\n context_length: 262144\n - model_id: openai/gpt-oss-120b\n name: gpt-oss-120b\n properties:\n context_length: 131072\n reasoning_efforts:\n - low\n - medium\n - high\n - model_id: Prism-ML/Ternary-Bonsai-27B\n name: ternary-bonsai-27b\n properties:\n context_length: 262144\n reasoning_efforts:\n - none\n - low\n - medium\n - high\n - max\n - model_id: Qwen/Qwen3.6-35B-A3B-FP8\n name: qwen3-6-35b-a3b-fp8\n properties:\n context_length: 262144\n - model_id: Qwen/Qwen3.6-Plus\n name: qwen3-6-plus\n properties:\n context_length: 1000000\n - model_id: Qwen/Qwen3.7-Max\n name: qwen3-7-max\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: Qwen/Qwen3.7-Plus\n name: qwen3-7-plus\n properties:\n context_length: 1000000\n max_output_tokens: 65536\n reasoning_efforts:\n - none\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: Qwen/Qwen3.8-2.4T-A95B\n name: qwen3-8-2-4t-a95b\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - high\n - xhigh\n - model_id: Qwen/Qwen3.8-Flash\n name: qwen3-8-flash\n properties:\n context_length: 1000000\n max_output_tokens: 131072\n reasoning_efforts:\n - low\n - medium\n - xhigh\n - model_id: reflection/Beam-1.0-501B-A23B\n name: beam-1-0-501b-a23b\n properties:\n context_length: 1048576\n - model_id: thinkingmachines/Inkling\n name: inkling\n properties:\n context_length: 524288\n - model_id: thinkingmachines/Inkling-Small\n name: inkling-small\n properties:\n context_length: 524288\n reasoning_efforts:\n - minimal\n - low\n - medium\n - high\n - xhigh\n - model_id: zai-org/GLM-5.2\n name: glm-5-2\n properties:\n context_length: 1048576\n max_output_tokens: 131072\n reasoning_efforts:\n - high\n - max\n - model_id: zai-org/GLM-5.2-FP8\n name: glm-5-2-fp8\n properties:\n context_length: 1048575\n max_output_tokens: 131072\n - model_id: zai-org/GLM-5.3\n name: glm-5-3\n properties:\n context_length: 1048575\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: zai-org/GLM-5.3-Flash\n name: glm-5-3-flash\n properties:\n context_length: 1048575\n max_output_tokens: 128000\n reasoning_efforts:\n - low\n - high\n - max\n - model_id: zai-org/GLM-5.3-FP8\n name: glm-5-3-fp8\n properties:\n context_length: 1048576\n reasoning_efforts:\n - low\n - high\n - max\n";
25939
26105
 
25940
26106
  // src/catalog/ModelCatalog.ts
25941
26107
  var ModelCatalog = class _ModelCatalog {
@@ -27427,7 +27593,7 @@ var InlineModelProviderStore = class {
27427
27593
 
27428
27594
  // src/truefoundry/InlineSkillStore.ts
27429
27595
  init_gitSkillMounts();
27430
- import { HTTPException as HTTPException26 } from "hono/http-exception";
27596
+ import { HTTPException as HTTPException27 } from "hono/http-exception";
27431
27597
  var InlineSkillStore = class {
27432
27598
  #inline;
27433
27599
  constructor(input) {
@@ -27482,7 +27648,7 @@ var InlineSkillStore = class {
27482
27648
  #require(name) {
27483
27649
  const manifest = this.#inline[name];
27484
27650
  if (manifest === void 0) {
27485
- throw new HTTPException26(422, {
27651
+ throw new HTTPException27(422, {
27486
27652
  message: `Unknown skill "${name}" \u2014 not present in ${X_TFG_SKILLS}`
27487
27653
  });
27488
27654
  }
@@ -27502,7 +27668,7 @@ var InlineSkillStore = class {
27502
27668
  };
27503
27669
  function unsupportedInlineSkillWrite() {
27504
27670
  return Promise.reject(
27505
- new HTTPException26(400, { message: `Request-scoped skills from ${X_TFG_SKILLS} do not support writes` })
27671
+ new HTTPException27(400, { message: `Request-scoped skills from ${X_TFG_SKILLS} do not support writes` })
27506
27672
  );
27507
27673
  }
27508
27674
 
@@ -27560,7 +27726,7 @@ import {
27560
27726
  getOperationMetrics as getOperationMetrics3,
27561
27727
  httpStatusClass
27562
27728
  } from "@truefoundry/trueforge-core/core";
27563
- import { HTTPException as HTTPException27 } from "hono/http-exception";
27729
+ import { HTTPException as HTTPException28 } from "hono/http-exception";
27564
27730
  import { LRUCache } from "lru-cache";
27565
27731
  import { fetch as undiciFetch2 } from "undici";
27566
27732
  import { z as z55 } from "zod";
@@ -27954,7 +28120,7 @@ var TrueFoundryServiceFoundryServerClient = class {
27954
28120
  ...extractErrorLogFields10(parsed.error),
27955
28121
  reportable_error: { error: parsed.error }
27956
28122
  });
27957
- throw new HTTPException27(424, {
28123
+ throw new HTTPException28(424, {
27958
28124
  message: "TrueFoundry ServiceFoundry put remote agent returned an unexpected response",
27959
28125
  cause: parsed.error
27960
28126
  });
@@ -28030,7 +28196,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28030
28196
  this.#logger.error("TrueFoundry ServiceFoundry resolve agent-skill-versions returned an unexpected response", {
28031
28197
  ...extractErrorLogFields10(error)
28032
28198
  });
28033
- throw new HTTPException27(500, {
28199
+ throw new HTTPException28(500, {
28034
28200
  message: "TrueFoundry ServiceFoundry resolve agent-skill-versions returned an unexpected response",
28035
28201
  cause: error
28036
28202
  });
@@ -28084,7 +28250,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28084
28250
  ...extractErrorLogFields10(error),
28085
28251
  reportable_error: { error, extra: { mcp_server_id: input.mcpServerId } }
28086
28252
  });
28087
- throw new HTTPException27(424, {
28253
+ throw new HTTPException28(424, {
28088
28254
  message: "TrueFoundry ServiceFoundry MCP authorize returned an unexpected response",
28089
28255
  cause: error
28090
28256
  });
@@ -28109,7 +28275,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28109
28275
  ...extractErrorLogFields10(error),
28110
28276
  reportable_error: { error, extra: { mcp_server_id: input.mcpServerId } }
28111
28277
  });
28112
- throw new HTTPException27(424, {
28278
+ throw new HTTPException28(424, {
28113
28279
  message: "TrueFoundry ServiceFoundry MCP auth status returned an unexpected response",
28114
28280
  cause: error
28115
28281
  });
@@ -28143,23 +28309,23 @@ var TrueFoundryServiceFoundryServerClient = class {
28143
28309
  method: "GET"
28144
28310
  });
28145
28311
  } catch (error) {
28146
- if (error instanceof HTTPException27 && (error.status === 401 || error.status === 403)) {
28312
+ if (error instanceof HTTPException28 && (error.status === 401 || error.status === 403)) {
28147
28313
  throw error;
28148
28314
  }
28149
- throw new HTTPException27(500, {
28315
+ throw new HTTPException28(500, {
28150
28316
  message: "TrueFoundry ServiceFoundry session request failed",
28151
28317
  cause: error
28152
28318
  });
28153
28319
  }
28154
28320
  const parsed = GetSessionWireSchema.safeParse(payload);
28155
28321
  if (!parsed.success) {
28156
- throw new HTTPException27(500, {
28322
+ throw new HTTPException28(500, {
28157
28323
  message: "TrueFoundry ServiceFoundry session response was malformed",
28158
28324
  cause: parsed.error
28159
28325
  });
28160
28326
  }
28161
28327
  if (parsed.data.user === null) {
28162
- throw new HTTPException27(401, { message: "Authentication required" });
28328
+ throw new HTTPException28(401, { message: "Authentication required" });
28163
28329
  }
28164
28330
  return parsed.data;
28165
28331
  }
@@ -28182,14 +28348,14 @@ var TrueFoundryServiceFoundryServerClient = class {
28182
28348
  });
28183
28349
  } catch (error) {
28184
28350
  const causeString = error instanceof Error ? error.message : String(error);
28185
- throw new HTTPException27(500, {
28351
+ throw new HTTPException28(500, {
28186
28352
  message: `TrueFoundry ServiceFoundry session request failed: ${causeString}`,
28187
28353
  cause: error
28188
28354
  });
28189
28355
  }
28190
28356
  const parsed = TenantControlPlaneUrlSchema.safeParse(payload);
28191
28357
  if (!parsed.success) {
28192
- throw new HTTPException27(500, {
28358
+ throw new HTTPException28(500, {
28193
28359
  message: "TrueFoundry ServiceFoundry session response was malformed",
28194
28360
  cause: parsed.error
28195
28361
  });
@@ -28215,7 +28381,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28215
28381
  ...extractErrorLogFields10(parsed.error),
28216
28382
  reportable_error: { error: parsed.error }
28217
28383
  });
28218
- throw new HTTPException27(424, {
28384
+ throw new HTTPException28(424, {
28219
28385
  message: "TrueFoundry ServiceFoundry agent permissions response was malformed",
28220
28386
  cause: parsed.error
28221
28387
  });
@@ -28239,7 +28405,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28239
28405
  ...extractErrorLogFields10(parsed.error),
28240
28406
  reportable_error: { error: parsed.error }
28241
28407
  });
28242
- throw new HTTPException27(424, {
28408
+ throw new HTTPException28(424, {
28243
28409
  message: "TrueFoundry ServiceFoundry tenant permissions response was malformed",
28244
28410
  cause: parsed.error
28245
28411
  });
@@ -28271,7 +28437,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28271
28437
  this.#logger.error("TrueFoundry ServiceFoundry subjects response was malformed", {
28272
28438
  ...extractErrorLogFields10(parsed.error)
28273
28439
  });
28274
- throw new HTTPException27(424, {
28440
+ throw new HTTPException28(424, {
28275
28441
  message: "TrueFoundry ServiceFoundry subjects response was malformed",
28276
28442
  cause: parsed.error
28277
28443
  });
@@ -28303,7 +28469,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28303
28469
  ...extractErrorLogFields10(parsed.error),
28304
28470
  reportable_error: { error: parsed.error }
28305
28471
  });
28306
- throw new HTTPException27(424, {
28472
+ throw new HTTPException28(424, {
28307
28473
  message: "TrueFoundry ServiceFoundry vend-token response was malformed",
28308
28474
  cause: parsed.error
28309
28475
  });
@@ -28317,7 +28483,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28317
28483
  ...extractErrorLogFields10(parsed.error),
28318
28484
  reportable_error: { error: parsed.error }
28319
28485
  });
28320
- throw new HTTPException27(424, {
28486
+ throw new HTTPException28(424, {
28321
28487
  message: "TrueFoundry ServiceFoundry server returned an unexpected list response",
28322
28488
  cause: parsed.error
28323
28489
  });
@@ -28375,7 +28541,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28375
28541
  timedOut,
28376
28542
  ...extractErrorLogFields10(error)
28377
28543
  });
28378
- throw new HTTPException27(500, {
28544
+ throw new HTTPException28(500, {
28379
28545
  message: timedOut ? `TrueFoundry ServiceFoundry server request timed out after ${String(timeoutMs / 1e3)}s` : "TrueFoundry ServiceFoundry server request failed",
28380
28546
  cause: error
28381
28547
  });
@@ -28389,7 +28555,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28389
28555
  if (response.status === 401 || response.status === 403) {
28390
28556
  record("error", response.status);
28391
28557
  const detail = await readServiceFoundryErrorMessage(response);
28392
- throw new HTTPException27(response.status, {
28558
+ throw new HTTPException28(response.status, {
28393
28559
  message: `TrueFoundry ServiceFoundry server rejected the request: ${detail ?? `HTTP ${String(response.status)}`}`
28394
28560
  });
28395
28561
  }
@@ -28400,7 +28566,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28400
28566
  if (!response.ok) {
28401
28567
  record("error", response.status);
28402
28568
  const detail = await readServiceFoundryErrorMessage(response);
28403
- throw new HTTPException27(424, {
28569
+ throw new HTTPException28(424, {
28404
28570
  message: `TrueFoundry ServiceFoundry server request failed: ${detail ?? `HTTP ${String(response.status)}`}`
28405
28571
  });
28406
28572
  }
@@ -28424,7 +28590,7 @@ var TrueFoundryServiceFoundryServerClient = class {
28424
28590
  ...extractErrorLogFields10(error),
28425
28591
  reportable_error: { error }
28426
28592
  });
28427
- throw new HTTPException27(424, {
28593
+ throw new HTTPException28(424, {
28428
28594
  message: "TrueFoundry ServiceFoundry server returned non-JSON",
28429
28595
  cause: error
28430
28596
  });
@@ -28637,14 +28803,14 @@ var TrueFoundryAgentStore = class {
28637
28803
 
28638
28804
  // src/truefoundry/TrueFoundryMcpServerStore.ts
28639
28805
  import { McpConnectionError as McpConnectionError6 } from "@truefoundry/trueforge-core/core";
28640
- import { HTTPException as HTTPException29 } from "hono/http-exception";
28806
+ import { HTTPException as HTTPException30 } from "hono/http-exception";
28641
28807
  init_config();
28642
28808
  init_mcpServerStore();
28643
28809
 
28644
28810
  // src/truefoundry/mapEnabledModels.ts
28645
28811
  init_config();
28646
28812
  import { SUPPORTED_REASONING_EFFORTS as SUPPORTED_REASONING_EFFORTS3 } from "@truefoundry/trueforge-core/core";
28647
- import { HTTPException as HTTPException28 } from "hono/http-exception";
28813
+ import { HTTPException as HTTPException29 } from "hono/http-exception";
28648
28814
  import { z as z56 } from "zod";
28649
28815
  var ModelParamSchema = z56.object({
28650
28816
  key: z56.string(),
@@ -28734,7 +28900,7 @@ function resolveDefaultGatewayUrl(payload) {
28734
28900
  return installation.manifest.url;
28735
28901
  }
28736
28902
  }
28737
- throw new HTTPException28(502, { message: "No default TrueFoundry AI gateway installation is configured" });
28903
+ throw new HTTPException29(502, { message: "No default TrueFoundry AI gateway installation is configured" });
28738
28904
  }
28739
28905
 
28740
28906
  // src/truefoundry/TrueFoundryMcpServerStore.ts
@@ -28788,7 +28954,7 @@ var TrueFoundryMcpServerStore = class {
28788
28954
  if (status.status === "auth_required") {
28789
28955
  const authUrl = status.authorization_url;
28790
28956
  if (authUrl === void 0 || authUrl.length === 0) {
28791
- throw new HTTPException29(422, {
28957
+ throw new HTTPException30(422, {
28792
28958
  message: `MCP server "${record.name}" requires authentication but returned no authorization URL`
28793
28959
  });
28794
28960
  }
@@ -29063,7 +29229,7 @@ function toManifest(input) {
29063
29229
  }
29064
29230
 
29065
29231
  // src/truefoundry/TrueFoundrySkillStore.ts
29066
- import { HTTPException as HTTPException30 } from "hono/http-exception";
29232
+ import { HTTPException as HTTPException31 } from "hono/http-exception";
29067
29233
  function toRegistryRecord(tenant_id, skill) {
29068
29234
  const now2 = (/* @__PURE__ */ new Date()).toISOString();
29069
29235
  const manifest = {
@@ -29104,18 +29270,18 @@ var TrueFoundryAdminSkillStore = class {
29104
29270
  return skills.map((skill) => {
29105
29271
  const row = byFqn.get(skill.name);
29106
29272
  if (row === void 0) {
29107
- throw new HTTPException30(422, {
29273
+ throw new HTTPException31(422, {
29108
29274
  message: `Unknown skill "${skill.name}" \u2014 not configured`
29109
29275
  });
29110
29276
  }
29111
29277
  if (row.presigned_url === void 0) {
29112
- throw new HTTPException30(422, {
29278
+ throw new HTTPException31(422, {
29113
29279
  message: `Skill "${skill.name}" did not return a presigned URL`
29114
29280
  });
29115
29281
  }
29116
29282
  const skillMdContent = skill.preload ? row.skill_md_content ?? null : null;
29117
29283
  if (skill.preload && (skillMdContent === null || skillMdContent.length === 0)) {
29118
- throw new HTTPException30(422, {
29284
+ throw new HTTPException31(422, {
29119
29285
  message: `Skill "${skill.name}" did not return SKILL.md for preload`
29120
29286
  });
29121
29287
  }
@@ -29142,7 +29308,7 @@ var TrueFoundrySkillStore = class extends TrueFoundryAdminSkillStore {
29142
29308
  async listSkills(input, transaction) {
29143
29309
  void transaction;
29144
29310
  if (input.names !== void 0) {
29145
- throw new HTTPException30(422, {
29311
+ throw new HTTPException31(422, {
29146
29312
  message: "TrueFoundry skill list does not support name filters"
29147
29313
  });
29148
29314
  }
@@ -29190,7 +29356,7 @@ var TrueFoundrySkillStore = class extends TrueFoundryAdminSkillStore {
29190
29356
  const seenFqns = /* @__PURE__ */ new Set();
29191
29357
  for (const skill of skills) {
29192
29358
  if (seenFqns.has(skill.name)) {
29193
- throw new HTTPException30(422, {
29359
+ throw new HTTPException31(422, {
29194
29360
  message: `Duplicate skill FQN "${skill.name}"`
29195
29361
  });
29196
29362
  }
@@ -29204,7 +29370,7 @@ var TrueFoundrySkillStore = class extends TrueFoundryAdminSkillStore {
29204
29370
  const byFqn = new Map(resolved.map((row) => [row.fqn, row]));
29205
29371
  for (const skill of skills) {
29206
29372
  if (!byFqn.has(skill.name)) {
29207
- throw new HTTPException30(422, {
29373
+ throw new HTTPException31(422, {
29208
29374
  message: `Unknown skill "${skill.name}" \u2014 not configured`
29209
29375
  });
29210
29376
  }
@@ -29212,7 +29378,7 @@ var TrueFoundrySkillStore = class extends TrueFoundryAdminSkillStore {
29212
29378
  const seenNames = /* @__PURE__ */ new Set();
29213
29379
  for (const row of resolved) {
29214
29380
  if (seenNames.has(row.name)) {
29215
- throw new HTTPException30(422, {
29381
+ throw new HTTPException31(422, {
29216
29382
  message: `Agent skills must have unique names; duplicate skill name(s): ${row.name}`
29217
29383
  });
29218
29384
  }
@@ -30152,7 +30318,7 @@ function printStandaloneStartupBanner(options) {
30152
30318
  }
30153
30319
 
30154
30320
  // src/truefoundry/TrueFoundryAuthorizer.ts
30155
- import { HTTPException as HTTPException31 } from "hono/http-exception";
30321
+ import { HTTPException as HTTPException32 } from "hono/http-exception";
30156
30322
  var permissionByAction = {
30157
30323
  read: "READ_AGENT",
30158
30324
  use: "USE_AGENT",
@@ -30173,7 +30339,7 @@ function toResourcePermissions(permissions) {
30173
30339
  }
30174
30340
  function requireUserCredential(context) {
30175
30341
  if (context.user_credential === null) {
30176
- throw new HTTPException31(401, { message: "Authentication token required for agent authorization" });
30342
+ throw new HTTPException32(401, { message: "Authentication token required for agent authorization" });
30177
30343
  }
30178
30344
  return context.user_credential;
30179
30345
  }