@myagentroam/server 0.13.18 → 0.13.20

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 (419) hide show
  1. package/node_modules/@myagentroam/protocol/dist/index.js +2 -0
  2. package/node_modules/@myagentroam/protocol/package.json +1 -1
  3. package/node_modules/@myagentroam/server-core/dist/git-skill-repository.d.ts +3 -0
  4. package/node_modules/@myagentroam/server-core/dist/git-skill-repository.js +116 -61
  5. package/node_modules/@myagentroam/server-core/dist/github-skill-provider.d.ts +1 -16
  6. package/node_modules/@myagentroam/server-core/dist/github-skill-provider.js +2 -250
  7. package/node_modules/@myagentroam/server-core/dist/mar-agent-model-service.d.ts +2 -0
  8. package/node_modules/@myagentroam/server-core/dist/mar-agent-model-service.js +5 -1
  9. package/node_modules/@myagentroam/server-core/dist/marctl-routes.js +1 -1
  10. package/node_modules/@myagentroam/server-core/dist/marctl-session-routes.d.ts +2 -1
  11. package/node_modules/@myagentroam/server-core/dist/marctl-session-routes.js +1 -1
  12. package/node_modules/@myagentroam/server-core/dist/skill-artifact-service.d.ts +2 -1
  13. package/node_modules/@myagentroam/server-core/dist/skill-artifact-service.js +3 -4
  14. package/node_modules/@myagentroam/server-core/dist/skill-bundle.d.ts +12 -5
  15. package/node_modules/@myagentroam/server-core/dist/skill-bundle.js +92 -12
  16. package/node_modules/@myagentroam/server-core/dist/skill-discovery-service.d.ts +1 -1
  17. package/node_modules/@myagentroam/server-core/dist/skill-discovery-service.js +6 -139
  18. package/node_modules/@myagentroam/server-core/dist/skill-favorite-service.d.ts +6 -2
  19. package/node_modules/@myagentroam/server-core/dist/skill-favorite-service.js +168 -147
  20. package/node_modules/@myagentroam/server-core/dist/skill-network-policy.d.ts +1 -3
  21. package/node_modules/@myagentroam/server-core/dist/skill-network-policy.js +2 -50
  22. package/node_modules/@myagentroam/server-core/package.json +2 -2
  23. package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-application.js +4 -3
  24. package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-catalog.d.ts +6 -1
  25. package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-catalog.js +10 -4
  26. package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/background-execution-preparation-service.d.ts +2 -0
  27. package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/background-execution-preparation-service.js +1 -1
  28. package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/mar-agent-model-service.d.ts +1 -1
  29. package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/mar-agent-model-service.js +6 -15
  30. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  31. package/package.json +6 -6
  32. package/web/assets/{AuditManagementPage-D3hdlavH.js → AuditManagementPage-CT9AOOqd.js} +1 -1
  33. package/web/assets/{BusyIndicator-BsXgDjhC.js → BusyIndicator-cDNZxyX3.js} +1 -1
  34. package/web/assets/{CodeFileEditor-7tT5VBG3.js → CodeFileEditor-AYq9n-D2.js} +3 -3
  35. package/web/assets/{ConversationTemplateManagementPage-Ci7f3KDs.js → ConversationTemplateManagementPage-C3Yzzwsq.js} +1 -1
  36. package/web/assets/{ConversationTemplateManagementPage-LNXVjjvh.js → ConversationTemplateManagementPage-fZAqY6OP.js} +1 -1
  37. package/web/assets/{EnterpriseUserManagementPage-Bp8UDDFT.js → EnterpriseUserManagementPage-shHB778E.js} +1 -1
  38. package/web/assets/{EnvironmentSecretManager-B4O3yL9C.js → EnvironmentSecretManager-BjrQp9LT.js} +1 -1
  39. package/web/assets/{FilePreviewLoading-Bhnl24-D.js → FilePreviewLoading-BVa7Jdy2.js} +1 -1
  40. package/web/assets/{HtmlPreviewFrame-BQYCrD_N.css → HtmlPreviewFrame-DBTGgnc7.css} +1 -1
  41. package/web/assets/HtmlPreviewFrame-DehvyId6.js +6 -0
  42. package/web/assets/{LicenseManagementPage-5uQSrUa-.js → LicenseManagementPage-9-fDOn3F.js} +1 -1
  43. package/web/assets/{ManagementPagination-BlZgahFt.js → ManagementPagination-Bwcpuwmx.js} +1 -1
  44. package/web/assets/{MarAgentModelManagementPage-ChkMMbj0.js → MarAgentModelManagementPage-BOyxUL1-.js} +1 -1
  45. package/web/assets/{MarAgentModelManagementPage-sKOYFtqQ.js → MarAgentModelManagementPage-Cv_qkctR.js} +1 -1
  46. package/web/assets/{MarIcon-DycY5voe.js → MarIcon-Bj9pdssP.js} +1 -1
  47. package/web/assets/{MarkdownFilePreview-wgKVDG80.js → MarkdownFilePreview-Bdcb9cAI.js} +2 -2
  48. package/web/assets/{McpDetailsDialog-w1MxU041.js → McpDetailsDialog-DFNGZrv5.js} +1 -1
  49. package/web/assets/McpSourceManagementPage-BOiZTAId.js +1 -0
  50. package/web/assets/McpSourceManagementPage-CgRkSGUT.css +1 -0
  51. package/web/assets/{McpSourceManagementPage-DiytfG7R.js → McpSourceManagementPage-CqrNQjIt.js} +1 -1
  52. package/web/assets/{NodeDetailsDialogs-qwKFBpes.js → NodeDetailsDialogs-TcuKFRpc.js} +1 -1
  53. package/web/assets/NodeManagementPage-CTF2V0y6.js +1 -0
  54. package/web/assets/NodeManagementPage-D1joXUos.js +1 -0
  55. package/web/assets/{OAuthManagementPage-nYD6p5hy.js → OAuthManagementPage-3zk4Uxzw.js} +1 -1
  56. package/web/assets/{OrganizationManagementPage-Cc6tyCQ5.js → OrganizationManagementPage-142qGVdx.js} +1 -1
  57. package/web/assets/{RemoteDesktopPage-CCmcyJ_m.js → RemoteDesktopPage-DIhKdrQb.js} +1 -1
  58. package/web/assets/{ResourceManagementPanel-gG6MmrGV.js → ResourceManagementPanel-DH6HTxrA.js} +1 -1
  59. package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DwroDIjc.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DxzJfWW-.js} +1 -1
  60. package/web/assets/SecretManagementPage-DGZXGadO.js +1 -0
  61. package/web/assets/{SecretManagementPage-BSL8gQCE.js → SecretManagementPage-NWShr5ox.js} +1 -1
  62. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-2VDyau_f.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-CDMiinKW.js} +1 -1
  63. package/web/assets/{SessionSharePage-kiXiEiji.js → SessionSharePage-B_9d2hF0.js} +2 -2
  64. package/web/assets/SettingsContent-ByCx_Pwx.css +1 -0
  65. package/web/assets/SettingsContent-ChUHWkgO.js +1 -0
  66. package/web/assets/{SettingsContent-CBfcbA7p.js → SettingsContent-Dr2m7Uzi.js} +1 -1
  67. package/web/assets/SkillCenterPage-DYQJkwEK.js +1 -0
  68. package/web/assets/{SkillCenterPage-DZC91jE3.js → SkillCenterPage-wSKZIJA0.js} +1 -1
  69. package/web/assets/{SkillDetailsDialog-Cj-wOlC6.js → SkillDetailsDialog-DhFFgyDB.js} +1 -1
  70. package/web/assets/{SkillSourceManagementPage-CJ46bwPN.js → SkillSourceManagementPage-Dz9w1TZf.js} +1 -1
  71. package/web/assets/SkillSourceManagementPage-X_g8Aumt.css +1 -0
  72. package/web/assets/SkillSourceManagementPage-j39CtCvL.js +1 -0
  73. package/web/assets/{StandaloneFilePreviewPage-CfnizHSI.js → StandaloneFilePreviewPage-DCUz4HFg.js} +1 -1
  74. package/web/assets/{SystemConfigurationPage-BiWlcN_T.js → SystemConfigurationPage-BGSJkTkI.js} +1 -1
  75. package/web/assets/SystemConfigurationPage-CRSGQ9nl.js +1 -0
  76. package/web/assets/{SystemInformationPage-CGqEQc7a.js → SystemInformationPage-CrIND2ra.js} +1 -1
  77. package/web/assets/{TerminalTabView-DFaMY3MI.js → TerminalTabView-Cla63nWg.js} +1 -1
  78. package/web/assets/WorkbenchPage-B1Eh2PE-.js +22 -0
  79. package/web/assets/{WorkbenchPage-BF-eO2Bt.css → WorkbenchPage-_n_7hxCc.css} +1 -1
  80. package/web/assets/WorkspaceManagementPage-BDk_v-Mj.js +1 -0
  81. package/web/assets/WorkspaceManagementPage-BSlQAJh-.js +1 -0
  82. package/web/assets/{_baseIteratee-OBuEeiju.js → _baseIteratee-COOLn63n.js} +1 -1
  83. package/web/assets/{abnfDiagram-VCTEODGH-DC1H-kKL.js → abnfDiagram-VCTEODGH-DTNNA0Uo.js} +1 -1
  84. package/web/assets/{advancedFormat-BwBYNi1b.js → advancedFormat-Fwtopnu_.js} +1 -1
  85. package/web/assets/{arc-BWTUIVtj.js → arc-DsxcVRes.js} +1 -1
  86. package/web/assets/{architectureDiagram-5GKGNRK7-Dw5tB7MA.js → architectureDiagram-5GKGNRK7-DE5UTgaL.js} +1 -1
  87. package/web/assets/{blockDiagram-OSKFZWR5-zb8vvG19.js → blockDiagram-OSKFZWR5-Di3PFNat.js} +1 -1
  88. package/web/assets/{c4Diagram-7LVT6UL2-B5YBkwtY.js → c4Diagram-7LVT6UL2-DRFAOe6a.js} +1 -1
  89. package/web/assets/{catalog-ownership-service-B_l53AGl.js → catalog-ownership-service-DCIgieVu.js} +1 -1
  90. package/web/assets/{catalog-page-service-DOo8J-Nl.js → catalog-page-service-Cfg3Yili.js} +1 -1
  91. package/web/assets/channel-C5zUCTFH.js +1 -0
  92. package/web/assets/{chunk-2Q5K7J3B-CMwGCMaz.js → chunk-2Q5K7J3B-CYrsv89i.js} +1 -1
  93. package/web/assets/{chunk-5VM5RSS4-CQ2wXSVs.js → chunk-5VM5RSS4-Dfb8fOwx.js} +1 -1
  94. package/web/assets/{chunk-F27PBJKO-Dk3kPbRU.js → chunk-F27PBJKO-CurHVJ3j.js} +1 -1
  95. package/web/assets/{chunk-HLEWEB6X-uUB98Zbx.js → chunk-HLEWEB6X-CaAjV27Y.js} +1 -1
  96. package/web/assets/{chunk-JWPE2WC7-D17nwHRj.js → chunk-JWPE2WC7-BkkhAXEF.js} +1 -1
  97. package/web/assets/{chunk-POPQ4Y6H-DleoPyTC.js → chunk-POPQ4Y6H-DlkTRDH_.js} +1 -1
  98. package/web/assets/{chunk-SVP7TREG-Bs2_nsYK.js → chunk-SVP7TREG-CAs_D2Wx.js} +1 -1
  99. package/web/assets/{chunk-XXDRQBXY-C-Og25pw.js → chunk-XXDRQBXY-DBK2KsjK.js} +1 -1
  100. package/web/assets/{chunk-ZLD2IHE6-f97k2QA_.js → chunk-ZLD2IHE6-B81XH76h.js} +1 -1
  101. package/web/assets/classDiagram-CYGNFDIV-9yf_yy9C.js +1 -0
  102. package/web/assets/classDiagram-v2-TLXNO2FR-9yf_yy9C.js +1 -0
  103. package/web/assets/{conversation-history-_RM1XTWo.js → conversation-history-pmdl3BFW.js} +1 -1
  104. package/web/assets/{cose-bilkent-JH36ORCC-Dr-weOh5.js → cose-bilkent-JH36ORCC-Cv2MU-9z.js} +1 -1
  105. package/web/assets/{cynefin-OW5HDTMX-C6LX2Djh.js → cynefin-OW5HDTMX-CxpBssHI.js} +1 -1
  106. package/web/assets/{cynefinDiagram-5FMLGOSQ-CUEX8N77.js → cynefinDiagram-5FMLGOSQ-Djns8r4f.js} +1 -1
  107. package/web/assets/{dagre-OS7QT2EB-DOLWH8JN.js → dagre-OS7QT2EB-Dh2tEvm1.js} +1 -1
  108. package/web/assets/{diagram-S7CK7UJ4-X8GVGQoG.js → diagram-S7CK7UJ4-FEyNLy63.js} +1 -1
  109. package/web/assets/{diagram-UQ7AKVKN-CHjNzEfn.js → diagram-UQ7AKVKN-BaRTsTix.js} +1 -1
  110. package/web/assets/{diagram-VSXAHHWV-DfUONdQq.js → diagram-VSXAHHWV-B3HiPYTS.js} +1 -1
  111. package/web/assets/{diagram-VX7I27RA-BQRpQKo3.js → diagram-VX7I27RA-CJKLBc9f.js} +1 -1
  112. package/web/assets/{diagram-Z3DM3KII-VpvJQLFN.js → diagram-Z3DM3KII-D7CCcM4p.js} +1 -1
  113. package/web/assets/{ebnfDiagram-PWID7BFC-HiCwLJn2.js → ebnfDiagram-PWID7BFC-DTz_sXqh.js} +1 -1
  114. package/web/assets/{el-alert-BGHR0aT4.js → el-alert-Dxu0EB0b.js} +1 -1
  115. package/web/assets/{el-cascader-Dh0-lZJC.js → el-cascader-CKy4kJbH.js} +1 -1
  116. package/web/assets/{el-checkbox-DqIypwmt.js → el-checkbox-Cl9MO0Yx.js} +1 -1
  117. package/web/assets/{el-date-picker-oZ8eBLKg.js → el-date-picker-ROwf0lg9.js} +1 -1
  118. package/web/assets/{el-descriptions-BzeH10M_.js → el-descriptions-CQfGvHFS.js} +1 -1
  119. package/web/assets/{el-form-item-C3ehD0TF.js → el-form-item-C4T01JyU.js} +1 -1
  120. package/web/assets/{el-input-BB8kLuGu.js → el-input-Bzt2zHba.js} +1 -1
  121. package/web/assets/{el-input-number-3qqyNMqN.js → el-input-number-CIJAC4vM.js} +1 -1
  122. package/web/assets/{el-radio-BJQDF5vX.js → el-radio-Cv8Piymh.js} +1 -1
  123. package/web/assets/{el-scrollbar-DgtwHgCd.js → el-scrollbar-rqo3G55l.js} +1 -1
  124. package/web/assets/{el-select-COo_ZS5Z.js → el-select-iY0QiOSw.js} +1 -1
  125. package/web/assets/{el-switch-jsAbcVFe.js → el-switch-BZcYak3B.js} +1 -1
  126. package/web/assets/{el-tab-pane-DCog5zcE.js → el-tab-pane-DpVQdwSV.js} +1 -1
  127. package/web/assets/{el-table-column-Bz26K24-.js → el-table-column-BIte4jUu.js} +1 -1
  128. package/web/assets/{enterprise-management-service-B5OSS8mD.js → enterprise-management-service-CjAP3uTc.js} +1 -1
  129. package/web/assets/{erDiagram-2YWLMYGG-CgWlPzIj.js → erDiagram-2YWLMYGG-Bh0s6lmQ.js} +1 -1
  130. package/web/assets/{error-presentation-Ci0eF5Y8.js → error-presentation-tOeXjyNf.js} +1 -1
  131. package/web/assets/{flowDiagram-T62WH6J4-BaklBqiM.js → flowDiagram-T62WH6J4-CoV-k4OL.js} +1 -1
  132. package/web/assets/{ganttDiagram-EL5Y4UJY-HwnW05YW.js → ganttDiagram-EL5Y4UJY-OiksvcZj.js} +1 -1
  133. package/web/assets/{gitGraphDiagram-WWUBYQGX-DCbX6w7i.js → gitGraphDiagram-WWUBYQGX-CRGC1EuH.js} +1 -1
  134. package/web/assets/{hosted-conversation-template-client-ChH4dGfP.js → hosted-conversation-template-client-Cg5nxljA.js} +1 -1
  135. package/web/assets/{index-7XqmxogV.js → index-8SSpzuEm.js} +1 -1
  136. package/web/assets/{index-CH1iV6Xg.js → index-AIWBgr9R.js} +1 -1
  137. package/web/assets/{index-BvdrjNG0.js → index-B0yxzN1P.js} +1 -1
  138. package/web/assets/{index-DNmT7tNi.js → index-BAGagvLe.js} +1 -1
  139. package/web/assets/{index-DXSopFwN.js → index-BBETKyU8.js} +1 -1
  140. package/web/assets/{index-CNTejnPt.js → index-BC8JLhRy.js} +1 -1
  141. package/web/assets/{index-CFDQ30r1.js → index-BHJ6zMIB.js} +1 -1
  142. package/web/assets/{index-D8Eis6Yo.js → index-BJaMgUlo.js} +1 -1
  143. package/web/assets/{index-DEixaa1V.js → index-BZE4HsCy.js} +1 -1
  144. package/web/assets/{index-o1UaMw_5.js → index-Bg08YJVX.js} +1 -1
  145. package/web/assets/{index-bwmrOz0j.js → index-Bn8QeNFY.js} +1 -1
  146. package/web/assets/{index-DfcfhYe9.js → index-C5C6pUQg.js} +1 -1
  147. package/web/assets/{index-CK5TaQIx.js → index-CCXMQvDU.js} +1 -1
  148. package/web/assets/{index-BDo9PbNc.js → index-CFLlrJhJ.js} +1 -1
  149. package/web/assets/{index-B-0vl5HE.js → index-CG7Ri6zL.js} +1 -1
  150. package/web/assets/{index-CwRehuyj.js → index-CJ8_ne2Y.js} +10 -10
  151. package/web/assets/{index-LMWxmWcF.js → index-C_VVYmNk.js} +1 -1
  152. package/web/assets/{index-Byq8hRIR.js → index-CgIry_oU.js} +1 -1
  153. package/web/assets/{index-mU8KcV6l.js → index-DD5cqXF6.js} +1 -1
  154. package/web/assets/{index-Bg5lQkoZ.js → index-DDo9_Nhj.js} +1 -1
  155. package/web/assets/{index-BGWs4snQ.js → index-DP4aMExU.js} +1 -1
  156. package/web/assets/{index-ByagxFuW.css → index-DY553-om.css} +1 -1
  157. package/web/assets/{index-BFJvHMLv.js → index-DwDKKieK.js} +1 -1
  158. package/web/assets/{index-tJgQauRG.js → index-E1RB3QgJ.js} +1 -1
  159. package/web/assets/{index-CIqLje65.js → index-IwJYm3SI.js} +1 -1
  160. package/web/assets/{index-C531L9aI.js → index-QxLvDi_F.js} +1 -1
  161. package/web/assets/{index-Bj1rp_71.js → index-Rcn45qDG.js} +1 -1
  162. package/web/assets/{index-CBq0tXdx.js → index-VqqZYY_C.js} +1 -1
  163. package/web/assets/{index-CFevx185.js → index-cT4Ua4J_.js} +1 -1
  164. package/web/assets/{index-BDQPPEZm.js → index-qgVYrWzR.js} +1 -1
  165. package/web/assets/infoDiagram-FKFFQAWI-DXWztZRK.js +2 -0
  166. package/web/assets/{isArrayLikeObject-BYhbOh6X.js → isArrayLikeObject-BzFRHfZx.js} +1 -1
  167. package/web/assets/{ishikawaDiagram-5VMMS53U-2vVYVfWr.js → ishikawaDiagram-5VMMS53U-CPVzsETv.js} +1 -1
  168. package/web/assets/{journeyDiagram-EYS64GPL-Cq4qOnoH.js → journeyDiagram-EYS64GPL-GsMuQApu.js} +1 -1
  169. package/web/assets/{kanban-definition-UXKFOSKX-DbXITY8H.js → kanban-definition-UXKFOSKX-CLh5ENsU.js} +1 -1
  170. package/web/assets/{layout-D5FMAfgG.js → layout-oK80PG-U.js} +1 -1
  171. package/web/assets/{linear-Ap07sTGN.js → linear-Zf9PHauK.js} +1 -1
  172. package/web/assets/{management-url-service-Bjai6lXR.js → management-url-service-pzRB7tiV.js} +1 -1
  173. package/web/assets/{mcp-center-service-HUuczq6f.js → mcp-center-service-IFGmUU5t.js} +1 -1
  174. package/web/assets/{merge-CFBZwG0m.js → merge-Dh4Y6qHo.js} +1 -1
  175. package/web/assets/{mermaid.core-DaGyFo-1.js → mermaid.core-Btv1XXfr.js} +5 -5
  176. package/web/assets/{message-box-service-BcoYvNFi.js → message-box-service-iotMXboM.js} +1 -1
  177. package/web/assets/{mindmap-definition-THT77NOG-CPaskabB.js → mindmap-definition-THT77NOG-PJiKgjms.js} +1 -1
  178. package/web/assets/{mobile-dialog-return-service-Cn8VPXhj.js → mobile-dialog-return-service-DIX6ueYC.js} +1 -1
  179. package/web/assets/{oauth-callback-CQnNFYHi.js → oauth-callback-CK8k49ON.js} +1 -1
  180. package/web/assets/{pegDiagram-XKGWAZYB-CpN53TWF.js → pegDiagram-XKGWAZYB-D9jue1iw.js} +1 -1
  181. package/web/assets/{pieDiagram-E7YTZNPT-Wd4H7FUf.js → pieDiagram-E7YTZNPT-C612l7q7.js} +1 -1
  182. package/web/assets/{quadrantDiagram-AXDQQJYC-BsPawOXY.js → quadrantDiagram-AXDQQJYC--qOyRAuK.js} +1 -1
  183. package/web/assets/{railroadDiagram-O6MQD6OU-B2wTM_Wm.js → railroadDiagram-O6MQD6OU-BzqCSOZk.js} +1 -1
  184. package/web/assets/{requirementDiagram-IS5BZ75X-sdpeZxrH.js → requirementDiagram-IS5BZ75X-CnPRHty1.js} +1 -1
  185. package/web/assets/{runner-presentation-DXv_tOIg.js → runner-presentation-om1-hHNF.js} +1 -1
  186. package/web/assets/{sankeyDiagram-P5KCCOFB-D8lvXf9A.js → sankeyDiagram-P5KCCOFB-DFfIoRWJ.js} +1 -1
  187. package/web/assets/{sequenceDiagram-WJ2MYXX4-5g6GatnE.js → sequenceDiagram-WJ2MYXX4-B9jQDSPg.js} +1 -1
  188. package/web/assets/{session-share-client-service-De_NSsMK.js → session-share-client-service-BCzkMsK2.js} +1 -1
  189. package/web/assets/{sizeCapture-INFHLROL-BPgIYdCU.js → sizeCapture-INFHLROL-CRTWsvJ4.js} +1 -1
  190. package/web/assets/{stateDiagram-XQSTLZYL-DXm7Pu7I.js → stateDiagram-XQSTLZYL-DovMUCeo.js} +1 -1
  191. package/web/assets/stateDiagram-v2-IH3M54BS-BxzrWHYA.js +1 -0
  192. package/web/assets/{swimlanes-V6O3JKXN-CHO5Vg1S.js → swimlanes-V6O3JKXN-CKiFQYhc.js} +1 -1
  193. package/web/assets/swimlanesDiagram-JKAHXJPX-CRyNMgIO.js +8 -0
  194. package/web/assets/{time-presentation-Dud_EI-T.js → time-presentation-BAjitAPn.js} +1 -1
  195. package/web/assets/{timeline-definition-24CTP7MA-CNlrXYyK.js → timeline-definition-24CTP7MA-CT_Lq3VJ.js} +1 -1
  196. package/web/assets/{union-BRfnuxNU.js → union-CjfsZv82.js} +1 -1
  197. package/web/assets/{use-form-common-props-LlKs4FB5.js → use-form-common-props-BswRmeMk.js} +1 -1
  198. package/web/assets/{use-wheel-BLCAytkS.js → use-wheel-CYLGQ113.js} +1 -1
  199. package/web/assets/{vennDiagram-4TSXK5OY-DryStoYf.js → vennDiagram-4TSXK5OY-Crm_XST6.js} +1 -1
  200. package/web/assets/{vnode-jDXa4qrL.js → vnode-Dc2-PQ5Z.js} +1 -1
  201. package/web/assets/{wardleyDiagram-VM6X3IG4-C-bF_QRH.js → wardleyDiagram-VM6X3IG4-6bkFs44K.js} +1 -1
  202. package/web/assets/{workbench-composer-interaction-controller-Dkm4GTkB.css → workbench-composer-interaction-controller-D70pluNA.css} +1 -1
  203. package/web/assets/{workbench-composer-interaction-controller-B6DcO8-w.js → workbench-composer-interaction-controller-F78vRlfW.js} +16 -16
  204. package/web/assets/{workbench-live-service-3ZiOSig6.js → workbench-live-service-3NPzkHmB.js} +1 -1
  205. package/web/assets/{workbench-presentation-CX7b3mPR.js → workbench-presentation-CKjmOKs1.js} +1 -1
  206. package/web/assets/{xychartDiagram-S5SC5T6Z-BIXFoA1O.js → xychartDiagram-S5SC5T6Z-B84nZO4C.js} +1 -1
  207. package/web/docs/404.html +2 -2
  208. package/web/docs/administration/account.html +3 -3
  209. package/web/docs/administration/audit.html +3 -3
  210. package/web/docs/administration/conversation-templates.html +5 -5
  211. package/web/docs/administration/email-notifications.html +3 -3
  212. package/web/docs/administration/license.html +3 -3
  213. package/web/docs/administration/nodes-workspaces.html +3 -3
  214. package/web/docs/administration/oauth.html +3 -3
  215. package/web/docs/administration/secrets.html +3 -3
  216. package/web/docs/administration/template-workspace-maintenance.html +3 -3
  217. package/web/docs/administration/users-organizations.html +3 -3
  218. package/web/docs/assets/administration_conversation-templates.md.CxgeJX_-.js +1 -0
  219. package/web/docs/assets/{administration_conversation-templates.md.DR-Q8ZJH.lean.js → administration_conversation-templates.md.CxgeJX_-.lean.js} +1 -1
  220. package/web/docs/assets/{app.BsPxIHYp.js → app.CFPchytV.js} +1 -1
  221. package/web/docs/assets/chunks/@localSearchIndexen-US.CSpyb9LP.js +1 -0
  222. package/web/docs/assets/chunks/@localSearchIndexroot.CTUfgBxR.js +1 -0
  223. package/web/docs/assets/chunks/{VPLocalSearchBox.CXazrWfH.js → VPLocalSearchBox.2gvqYvxZ.js} +1 -1
  224. package/web/docs/assets/chunks/{theme.CrdaqoWe.js → theme.BJqf3isB.js} +2 -2
  225. package/web/docs/assets/en-US_administration_conversation-templates.md.Agw0_8Pj.js +1 -0
  226. package/web/docs/assets/{en-US_administration_conversation-templates.md.D7eekprK.lean.js → en-US_administration_conversation-templates.md.Agw0_8Pj.lean.js} +1 -1
  227. package/web/docs/assets/en-US_reference_keyboard-shortcuts.md.BacNA7_i.js +1 -0
  228. package/web/docs/assets/{en-US_reference_keyboard-shortcuts.md.BHIlAzih.lean.js → en-US_reference_keyboard-shortcuts.md.BacNA7_i.lean.js} +1 -1
  229. package/web/docs/assets/{en-US_workbench_file-reference-and-attachment.md.4m2Q4ywr.js → en-US_workbench_file-reference-and-attachment.md.CO_ZfbB9.js} +1 -1
  230. package/web/docs/assets/{en-US_workbench_file-reference-and-attachment.md.4m2Q4ywr.lean.js → en-US_workbench_file-reference-and-attachment.md.CO_ZfbB9.lean.js} +1 -1
  231. package/web/docs/assets/{en-US_workbench_files.md.DVFADqke.js → en-US_workbench_files.md.W16dZr3K.js} +1 -1
  232. package/web/docs/assets/{en-US_workbench_files.md.DVFADqke.lean.js → en-US_workbench_files.md.W16dZr3K.lean.js} +1 -1
  233. package/web/docs/assets/en-US_workbench_git-changes.md.BBhwCZ4S.js +1 -0
  234. package/web/docs/assets/en-US_workbench_git-changes.md.BBhwCZ4S.lean.js +1 -0
  235. package/web/docs/assets/en-US_workbench_navigation.md.DbrCsRzT.js +1 -0
  236. package/web/docs/assets/{en-US_workbench_navigation.md.CrlDIXXg.lean.js → en-US_workbench_navigation.md.DbrCsRzT.lean.js} +1 -1
  237. package/web/docs/assets/en-US_workbench_sessions.md.M_gNLK0R.js +1 -0
  238. package/web/docs/assets/{en-US_workbench_sessions.md.tSnti1TK.lean.js → en-US_workbench_sessions.md.M_gNLK0R.lean.js} +1 -1
  239. package/web/docs/assets/en-US_workbench_skills.md.DeM1SEZi.js +1 -0
  240. package/web/docs/assets/{en-US_workbench_skills.md.xchi27R9.lean.js → en-US_workbench_skills.md.DeM1SEZi.lean.js} +1 -1
  241. package/web/docs/assets/reference_keyboard-shortcuts.md.C2b7IJIt.js +1 -0
  242. package/web/docs/assets/{reference_keyboard-shortcuts.md.DOivSxmM.lean.js → reference_keyboard-shortcuts.md.C2b7IJIt.lean.js} +1 -1
  243. package/web/docs/assets/{workbench_file-reference-and-attachment.md.DYSIPaMf.js → workbench_file-reference-and-attachment.md.CkStAhL5.js} +1 -1
  244. package/web/docs/assets/{workbench_file-reference-and-attachment.md.DYSIPaMf.lean.js → workbench_file-reference-and-attachment.md.CkStAhL5.lean.js} +1 -1
  245. package/web/docs/assets/{workbench_files.md.CM-FwBlX.js → workbench_files.md.D3yBwkKe.js} +1 -1
  246. package/web/docs/assets/{workbench_files.md.CM-FwBlX.lean.js → workbench_files.md.D3yBwkKe.lean.js} +1 -1
  247. package/web/docs/assets/workbench_git-changes.md.DZuHkFio.js +1 -0
  248. package/web/docs/assets/{workbench_git-changes.md.C7xvpMwy.lean.js → workbench_git-changes.md.DZuHkFio.lean.js} +1 -1
  249. package/web/docs/assets/workbench_navigation.md.BDKQEwWX.js +1 -0
  250. package/web/docs/assets/workbench_navigation.md.BDKQEwWX.lean.js +1 -0
  251. package/web/docs/assets/workbench_sessions.md.Dv8BGwLN.js +1 -0
  252. package/web/docs/assets/{workbench_sessions.md.DHPI_apA.lean.js → workbench_sessions.md.Dv8BGwLN.lean.js} +1 -1
  253. package/web/docs/assets/workbench_skills.md.59ITBuQR.js +1 -0
  254. package/web/docs/assets/{workbench_skills.md.BQw1Wuiy.lean.js → workbench_skills.md.59ITBuQR.lean.js} +1 -1
  255. package/web/docs/concepts/architecture.html +3 -3
  256. package/web/docs/concepts/data-and-security.html +3 -3
  257. package/web/docs/concepts/files-git-terminal.html +3 -3
  258. package/web/docs/concepts/node-and-workspace.html +3 -3
  259. package/web/docs/concepts/permissions-and-sharing.html +3 -3
  260. package/web/docs/concepts/runner-control.html +3 -3
  261. package/web/docs/concepts/secrets.html +3 -3
  262. package/web/docs/concepts/session-run-turn.html +3 -3
  263. package/web/docs/deployment/backup-restore.html +3 -3
  264. package/web/docs/deployment/network.html +3 -3
  265. package/web/docs/deployment/node-installation.html +3 -3
  266. package/web/docs/deployment/node-linux.html +3 -3
  267. package/web/docs/deployment/node-macos.html +3 -3
  268. package/web/docs/deployment/node-windows.html +3 -3
  269. package/web/docs/deployment/production.html +3 -3
  270. package/web/docs/deployment/security-checklist.html +3 -3
  271. package/web/docs/deployment/upgrade.html +3 -3
  272. package/web/docs/en-US/administration/account.html +3 -3
  273. package/web/docs/en-US/administration/audit.html +3 -3
  274. package/web/docs/en-US/administration/conversation-templates.html +5 -5
  275. package/web/docs/en-US/administration/email-notifications.html +3 -3
  276. package/web/docs/en-US/administration/license.html +3 -3
  277. package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
  278. package/web/docs/en-US/administration/oauth.html +3 -3
  279. package/web/docs/en-US/administration/secrets.html +3 -3
  280. package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
  281. package/web/docs/en-US/administration/users-organizations.html +3 -3
  282. package/web/docs/en-US/concepts/architecture.html +3 -3
  283. package/web/docs/en-US/concepts/data-and-security.html +3 -3
  284. package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
  285. package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
  286. package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
  287. package/web/docs/en-US/concepts/runner-control.html +3 -3
  288. package/web/docs/en-US/concepts/secrets.html +3 -3
  289. package/web/docs/en-US/concepts/session-run-turn.html +3 -3
  290. package/web/docs/en-US/deployment/backup-restore.html +3 -3
  291. package/web/docs/en-US/deployment/network.html +3 -3
  292. package/web/docs/en-US/deployment/node-installation.html +3 -3
  293. package/web/docs/en-US/deployment/node-linux.html +3 -3
  294. package/web/docs/en-US/deployment/node-macos.html +3 -3
  295. package/web/docs/en-US/deployment/node-windows.html +3 -3
  296. package/web/docs/en-US/deployment/production.html +3 -3
  297. package/web/docs/en-US/deployment/security-checklist.html +3 -3
  298. package/web/docs/en-US/deployment/upgrade.html +3 -3
  299. package/web/docs/en-US/getting-started/connect-node.html +3 -3
  300. package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
  301. package/web/docs/en-US/getting-started/first-login.html +3 -3
  302. package/web/docs/en-US/getting-started/next-steps.html +3 -3
  303. package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
  304. package/web/docs/en-US/getting-started/overview.html +3 -3
  305. package/web/docs/en-US/getting-started/prerequisites.html +3 -3
  306. package/web/docs/en-US/getting-started/register-workspace.html +3 -3
  307. package/web/docs/en-US/getting-started/server-installation.html +3 -3
  308. package/web/docs/en-US/operations/marctl.html +3 -3
  309. package/web/docs/en-US/reference/configuration.html +3 -3
  310. package/web/docs/en-US/reference/keyboard-shortcuts.html +5 -5
  311. package/web/docs/en-US/reference/limits.html +3 -3
  312. package/web/docs/en-US/reference/ports-paths-data.html +3 -3
  313. package/web/docs/en-US/reference/status-and-errors.html +3 -3
  314. package/web/docs/en-US/runners/claude-code.html +3 -3
  315. package/web/docs/en-US/runners/codex.html +3 -3
  316. package/web/docs/en-US/runners/mar-agent.html +3 -3
  317. package/web/docs/en-US/runners/opencode.html +3 -3
  318. package/web/docs/en-US/runners/overview.html +3 -3
  319. package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
  320. package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
  321. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
  322. package/web/docs/en-US/troubleshooting/session-run.html +3 -3
  323. package/web/docs/en-US/troubleshooting/terminal.html +3 -3
  324. package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
  325. package/web/docs/en-US/workbench/composer.html +3 -3
  326. package/web/docs/en-US/workbench/context-and-plan.html +3 -3
  327. package/web/docs/en-US/workbench/conversation.html +3 -3
  328. package/web/docs/en-US/workbench/file-reference-and-attachment.html +5 -5
  329. package/web/docs/en-US/workbench/files.html +5 -5
  330. package/web/docs/en-US/workbench/git-changes.html +5 -5
  331. package/web/docs/en-US/workbench/git-history.html +3 -3
  332. package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
  333. package/web/docs/en-US/workbench/mobile.html +3 -3
  334. package/web/docs/en-US/workbench/navigation.html +5 -5
  335. package/web/docs/en-US/workbench/remote-desktop.html +3 -3
  336. package/web/docs/en-US/workbench/sessions.html +5 -5
  337. package/web/docs/en-US/workbench/skills.html +5 -5
  338. package/web/docs/en-US/workbench/terminal.html +3 -3
  339. package/web/docs/getting-started/connect-node.html +3 -3
  340. package/web/docs/getting-started/first-agent-session.html +3 -3
  341. package/web/docs/getting-started/first-login.html +3 -3
  342. package/web/docs/getting-started/next-steps.html +3 -3
  343. package/web/docs/getting-started/npm-quick-start.html +3 -3
  344. package/web/docs/getting-started/overview.html +3 -3
  345. package/web/docs/getting-started/prerequisites.html +3 -3
  346. package/web/docs/getting-started/register-workspace.html +3 -3
  347. package/web/docs/getting-started/server-installation.html +3 -3
  348. package/web/docs/hashmap.json +1 -1
  349. package/web/docs/operations/marctl.html +3 -3
  350. package/web/docs/reference/configuration.html +3 -3
  351. package/web/docs/reference/keyboard-shortcuts.html +5 -5
  352. package/web/docs/reference/limits.html +3 -3
  353. package/web/docs/reference/ports-paths-data.html +3 -3
  354. package/web/docs/reference/status-and-errors.html +3 -3
  355. package/web/docs/runners/claude-code.html +3 -3
  356. package/web/docs/runners/codex.html +3 -3
  357. package/web/docs/runners/mar-agent.html +3 -3
  358. package/web/docs/runners/opencode.html +3 -3
  359. package/web/docs/runners/overview.html +3 -3
  360. package/web/docs/runners/runner-troubleshooting.html +3 -3
  361. package/web/docs/troubleshooting/node-offline.html +3 -3
  362. package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
  363. package/web/docs/troubleshooting/session-run.html +3 -3
  364. package/web/docs/troubleshooting/terminal.html +3 -3
  365. package/web/docs/troubleshooting/workspace-files.html +3 -3
  366. package/web/docs/workbench/composer.html +3 -3
  367. package/web/docs/workbench/context-and-plan.html +3 -3
  368. package/web/docs/workbench/conversation.html +3 -3
  369. package/web/docs/workbench/file-reference-and-attachment.html +5 -5
  370. package/web/docs/workbench/files.html +5 -5
  371. package/web/docs/workbench/git-changes.html +5 -5
  372. package/web/docs/workbench/git-history.html +3 -3
  373. package/web/docs/workbench/hosted-conversations.html +3 -3
  374. package/web/docs/workbench/mobile.html +3 -3
  375. package/web/docs/workbench/navigation.html +5 -5
  376. package/web/docs/workbench/remote-desktop.html +3 -3
  377. package/web/docs/workbench/sessions.html +5 -5
  378. package/web/docs/workbench/skills.html +5 -5
  379. package/web/docs/workbench/terminal.html +3 -3
  380. package/web/index.html +2 -2
  381. package/web/service-worker.js +1 -1
  382. package/web/web-version.json +1 -1
  383. package/web/assets/HtmlPreviewFrame-DAPVYrMV.js +0 -6
  384. package/web/assets/McpSourceManagementPage-DWvv208Y.js +0 -1
  385. package/web/assets/McpSourceManagementPage-kctug-Vc.css +0 -1
  386. package/web/assets/NodeManagementPage-C2rJnHIA.js +0 -1
  387. package/web/assets/NodeManagementPage-CulMKFME.js +0 -1
  388. package/web/assets/SecretManagementPage-R2k3QC00.js +0 -1
  389. package/web/assets/SettingsContent-BqFHMWhn.css +0 -1
  390. package/web/assets/SettingsContent-Bqp5yyRZ.js +0 -1
  391. package/web/assets/SkillCenterPage-CbZnlGdv.js +0 -1
  392. package/web/assets/SkillSourceManagementPage-BkDIarnG.js +0 -1
  393. package/web/assets/SkillSourceManagementPage-bes89wDU.css +0 -1
  394. package/web/assets/SystemConfigurationPage-D9dLXr9T.js +0 -1
  395. package/web/assets/WorkbenchPage-DprL6QMg.js +0 -22
  396. package/web/assets/WorkspaceManagementPage-BD3qTo5S.js +0 -1
  397. package/web/assets/WorkspaceManagementPage-D0dw7C7e.js +0 -1
  398. package/web/assets/channel-BSg4Y-a8.js +0 -1
  399. package/web/assets/classDiagram-CYGNFDIV-DDOOA8is.js +0 -1
  400. package/web/assets/classDiagram-v2-TLXNO2FR-DDOOA8is.js +0 -1
  401. package/web/assets/infoDiagram-FKFFQAWI-CbjdBpfv.js +0 -2
  402. package/web/assets/stateDiagram-v2-IH3M54BS-CMnLZzJH.js +0 -1
  403. package/web/assets/swimlanesDiagram-JKAHXJPX-BmTh-jiL.js +0 -8
  404. package/web/docs/assets/administration_conversation-templates.md.DR-Q8ZJH.js +0 -1
  405. package/web/docs/assets/chunks/@localSearchIndexen-US.D8_JmlCt.js +0 -1
  406. package/web/docs/assets/chunks/@localSearchIndexroot.DPZZDFfq.js +0 -1
  407. package/web/docs/assets/en-US_administration_conversation-templates.md.D7eekprK.js +0 -1
  408. package/web/docs/assets/en-US_reference_keyboard-shortcuts.md.BHIlAzih.js +0 -1
  409. package/web/docs/assets/en-US_workbench_git-changes.md.CgzmFd8l.js +0 -1
  410. package/web/docs/assets/en-US_workbench_git-changes.md.CgzmFd8l.lean.js +0 -1
  411. package/web/docs/assets/en-US_workbench_navigation.md.CrlDIXXg.js +0 -1
  412. package/web/docs/assets/en-US_workbench_sessions.md.tSnti1TK.js +0 -1
  413. package/web/docs/assets/en-US_workbench_skills.md.xchi27R9.js +0 -1
  414. package/web/docs/assets/reference_keyboard-shortcuts.md.DOivSxmM.js +0 -1
  415. package/web/docs/assets/workbench_git-changes.md.C7xvpMwy.js +0 -1
  416. package/web/docs/assets/workbench_navigation.md.DIvxa7Tc.js +0 -1
  417. package/web/docs/assets/workbench_navigation.md.DIvxa7Tc.lean.js +0 -1
  418. package/web/docs/assets/workbench_sessions.md.DHPI_apA.js +0 -1
  419. package/web/docs/assets/workbench_skills.md.BQw1Wuiy.js +0 -1
@@ -2406,6 +2406,7 @@ export const conversationTemplateQuotaSchema = z
2406
2406
  });
2407
2407
  export const conversationTemplateModelReferenceSchema = z
2408
2408
  .object({
2409
+ // References the model configuration primary key, not its upstream modelId.
2409
2410
  modelId: protocolIdSchema,
2410
2411
  name: z.string().trim().min(1).max(128)
2411
2412
  })
@@ -2420,6 +2421,7 @@ export const conversationTemplateDraftSchema = z
2420
2421
  description: z.string().max(2000),
2421
2422
  icon: z.string().trim().min(1).max(128).optional(),
2422
2423
  allowedModels: z.array(conversationTemplateModelReferenceSchema).min(1).max(128),
2424
+ // Uses the same configuration primary key as allowedModels[].modelId.
2423
2425
  defaultModelId: protocolIdSchema,
2424
2426
  mcpIds: z.array(protocolIdSchema).max(128),
2425
2427
  networkMode: conversationTemplateNetworkModeSchema,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.13.18",
3
+ "version": "0.13.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/myagentroam/mar.git",
@@ -6,7 +6,10 @@ export interface GitSkillCandidate {
6
6
  readonly source: string;
7
7
  readonly skillPath: string;
8
8
  }
9
+ /** Owns complete Git snapshots; discovery and bundles only read locally before cleanup. */
9
10
  export declare class GitSkillRepository {
11
+ private readonly tlsVerificationDisabled;
12
+ constructor(tlsVerificationDisabled?: () => Promise<boolean>);
10
13
  discover(locator: string, query: string, limit: number): Promise<readonly GitSkillCandidate[]>;
11
14
  resolve(input: {
12
15
  readonly repositoryUrl: string;
@@ -1,18 +1,17 @@
1
- import { execFile } from 'node:child_process';
1
+ import { execFile, spawn } from 'node:child_process';
2
2
  import { mkdtemp, rm } from 'node:fs/promises';
3
- import { tmpdir } from 'node:os';
3
+ import { devNull, tmpdir } from 'node:os';
4
4
  import path from 'node:path';
5
5
  import { promisify } from 'node:util';
6
- import { finalizeSkillBundle, normalizeSkillName, parseSkillFrontmatter } from './skill-bundle.js';
7
- import { assertPublicSkillHost } from './skill-network-policy.js';
6
+ import { finalizeSkillBundle, normalizeSkillName, readSkillFrontmatter } from './skill-bundle.js';
8
7
  const execFileAsync = promisify(execFile);
9
- const MAX_REPOSITORY_FILES = 5_000;
10
- const MAX_REPOSITORY_BYTES = 100 * 1024 * 1024;
11
- const MAX_SKILL_FILES = 1_000;
12
- const MAX_SKILL_BYTES = 25 * 1024 * 1024;
13
- const MAX_FILE_BYTES = 5 * 1024 * 1024;
14
8
  const GIT_SSH_COMMAND = 'ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null';
9
+ /** Owns complete Git snapshots; discovery and bundles only read locally before cleanup. */
15
10
  export class GitSkillRepository {
11
+ tlsVerificationDisabled;
12
+ constructor(tlsVerificationDisabled = async () => false) {
13
+ this.tlsVerificationDisabled = tlsVerificationDisabled;
14
+ }
16
15
  async discover(locator, query, limit) {
17
16
  return this.withRepository(locator, async (repository) => {
18
17
  const skillFiles = repository.files.map((file) => file.path).filter(isDiscoverableSkillPath);
@@ -32,18 +31,21 @@ export class GitSkillRepository {
32
31
  ? true
33
32
  : `${candidate.name} ${candidate.skillPath}`.toLowerCase().includes(query.toLowerCase()))
34
33
  .slice(0, limit);
35
- return Promise.all(candidates.map(async ({ skillFile, ...candidate }) => {
36
- const content = await gitText(repository.directory, ['show', `HEAD:${skillFile}`], MAX_FILE_BYTES);
37
- const metadata = parseSkillFrontmatter(content);
38
- return {
34
+ const result = [];
35
+ for (const { skillFile, ...candidate } of candidates) {
36
+ const metadata = await readSkillFrontmatter(gitContent(repository.directory, skillFile));
37
+ result.push({
39
38
  ...candidate,
40
39
  name: normalizeSkillName(metadata.name),
41
40
  description: metadata.description
42
- };
43
- }));
41
+ });
42
+ }
43
+ return result;
44
44
  });
45
45
  }
46
46
  async resolve(input) {
47
+ if (input.skillPath !== undefined && input.skillPath !== '.')
48
+ assertSafeRelativePath(input.skillPath);
47
49
  return this.withRepository(input.repositoryUrl, async (repository) => {
48
50
  const skillPath = resolveSkillPath(repository.files, input.skillPath, input.skillName);
49
51
  const selected = repository.files
@@ -52,69 +54,66 @@ export class GitSkillRepository {
52
54
  ...file,
53
55
  relativePath: skillPath === '.' ? file.path : file.path.slice(skillPath.length + 1)
54
56
  }));
55
- if (selected.length === 0 || selected.length > MAX_SKILL_FILES)
56
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
57
- if (selected.reduce((total, file) => total + file.size, 0) > MAX_SKILL_BYTES)
58
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
59
- const files = [];
60
- let contentBytes = 0;
61
- for (const file of selected) {
62
- assertSafeRelativePath(file.relativePath);
63
- if (file.size > MAX_FILE_BYTES)
64
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
65
- const content = await gitBuffer(repository.directory, ['show', `HEAD:${file.path}`], MAX_FILE_BYTES);
66
- if (content.length !== file.size)
67
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
68
- contentBytes += content.length;
69
- files.push({ path: file.relativePath, contentBase64: content.toString('base64') });
70
- }
71
57
  return finalizeSkillBundle({
72
58
  repositoryIdentity: repository.identity,
73
59
  repositoryUrl: input.repositoryUrl,
74
60
  skillPath,
75
61
  commitSha: repository.commitSha,
76
- contentBytes,
77
- tlsVerified: false,
78
- files
62
+ tlsVerified: repository.tlsVerified,
63
+ files: selected.map((file) => ({
64
+ path: file.relativePath,
65
+ open: () => gitContent(repository.directory, file.path)
66
+ }))
79
67
  });
80
68
  });
81
69
  }
82
70
  async withRepository(locator, operation) {
83
- const parsed = parseSshLocator(locator);
84
- await assertPublicSkillHost(parsed.hostname);
71
+ const parsed = parseLocator(locator);
72
+ const tlsDisabled = parsed.https ? await this.tlsVerificationDisabled() : undefined;
73
+ const env = gitEnvironment(tlsDisabled);
74
+ const transport = parsed.https
75
+ ? [
76
+ '-c',
77
+ 'protocol.allow=never',
78
+ '-c',
79
+ 'protocol.https.allow=always',
80
+ '-c',
81
+ 'http.followRedirects=false',
82
+ '-c',
83
+ 'http.proxy=',
84
+ '-c',
85
+ `http.sslVerify=${!tlsDisabled}`
86
+ ]
87
+ : ['-c', 'protocol.file.allow=never'];
85
88
  const directory = await mkdtemp(path.join(tmpdir(), 'mar-skill-git-'));
86
89
  try {
87
- await gitText(process.cwd(), [
88
- '-c',
89
- 'protocol.file.allow=never',
90
+ await gitText(directory, [
91
+ ...transport,
90
92
  'clone',
91
93
  '--depth=1',
92
- '--filter=blob:none',
93
94
  '--no-checkout',
94
95
  '--no-tags',
95
96
  '--',
96
- locator,
97
+ parsed.locator,
97
98
  directory
98
- ], 1024 * 1024, 60_000);
99
+ ], 1024 * 1024, 60_000, env);
99
100
  const commitSha = (await gitText(directory, ['rev-parse', 'HEAD'], 1024)).trim();
100
101
  if (!/^[0-9a-f]{40}$/u.test(commitSha))
101
102
  throw new Error('SKILL_VERSION_COMMIT_INVALID');
102
- const output = await gitBuffer(directory, ['ls-tree', '-r', '-l', '-z', 'HEAD'], 5 * 1024 * 1024);
103
+ const output = await gitBuffer(directory, ['ls-tree', '-r', '-z', 'HEAD']);
103
104
  const files = output
104
105
  .toString('utf8')
105
106
  .split('\0')
106
107
  .filter(Boolean)
107
108
  .map(parseTreeLine)
108
109
  .filter((file) => file !== undefined);
109
- if (files.length > MAX_REPOSITORY_FILES ||
110
- files.reduce((sum, file) => sum + file.size, 0) > MAX_REPOSITORY_BYTES)
111
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
112
110
  return await operation({
113
111
  directory,
114
112
  commitSha,
115
113
  files,
116
114
  identity: `${parsed.hostname.toLowerCase()}/${parsed.repositoryPath.toLowerCase()}`,
117
- name: parsed.repositoryPath.split('/').at(-1)
115
+ name: parsed.repositoryPath.split('/').at(-1),
116
+ tlsVerified: parsed.https && !tlsDisabled
118
117
  });
119
118
  }
120
119
  catch (error) {
@@ -127,53 +126,109 @@ export class GitSkillRepository {
127
126
  }
128
127
  }
129
128
  }
130
- function parseSshLocator(locator) {
129
+ function parseLocator(locator) {
130
+ if (locator.startsWith('https://')) {
131
+ const url = new URL(locator);
132
+ const repositoryPath = url.pathname.replace(/^\/+|\/+$/gu, '').replace(/\.git$/u, '');
133
+ if (url.username !== '' ||
134
+ url.password !== '' ||
135
+ url.search !== '' ||
136
+ url.hash !== '' ||
137
+ repositoryPath === '')
138
+ throw new Error('SKILL_SOURCE_PROVIDER_UNSUPPORTED');
139
+ return {
140
+ hostname: url.hostname,
141
+ repositoryPath,
142
+ locator: url.href,
143
+ https: true
144
+ };
145
+ }
131
146
  const match = /^git@([A-Za-z0-9.-]+):([A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)+?)(?:\.git)?$/u.exec(locator);
132
147
  if (match === null || match[1].startsWith('.') || match[1].endsWith('.'))
133
148
  throw new Error('SKILL_SOURCE_PROVIDER_UNSUPPORTED');
134
- return { hostname: match[1], repositoryPath: match[2].replace(/\.git$/u, '') };
149
+ return {
150
+ hostname: match[1],
151
+ repositoryPath: match[2].replace(/\.git$/u, ''),
152
+ locator,
153
+ https: false
154
+ };
135
155
  }
136
156
  function parseTreeLine(line) {
137
- const match = /^\d+ (blob|commit) [0-9a-f]{40}\s+(\d+|-)\t([\s\S]+)$/u.exec(line);
157
+ const match = /^\d+ (blob|commit) [0-9a-f]{40}\t([\s\S]+)$/u.exec(line);
138
158
  if (match === null)
139
159
  throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
140
160
  if (match[1] !== 'blob')
141
161
  return undefined;
142
- const size = Number(match[2]);
143
- const filePath = match[3];
144
- if (!Number.isSafeInteger(size) || size < 0)
145
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
162
+ const filePath = match[2];
146
163
  assertSafeRelativePath(filePath);
147
- return { path: filePath, size };
164
+ return { path: filePath };
148
165
  }
149
- async function gitText(directory, args, maxBuffer, timeout = 20_000) {
166
+ async function gitText(directory, args, maxBuffer = Infinity, timeout = 20_000, env = gitEnvironment()) {
150
167
  const result = await execFileAsync('git', args, {
151
168
  cwd: directory,
152
169
  encoding: 'utf8',
153
- env: gitEnvironment(),
170
+ env,
154
171
  maxBuffer,
155
172
  timeout,
156
173
  windowsHide: true
157
174
  });
158
175
  return result.stdout;
159
176
  }
160
- async function gitBuffer(directory, args, maxBuffer) {
177
+ async function gitBuffer(directory, args) {
161
178
  const result = await execFileAsync('git', args, {
162
179
  cwd: directory,
163
180
  encoding: null,
164
181
  env: gitEnvironment(),
165
- maxBuffer,
182
+ maxBuffer: Infinity,
166
183
  timeout: 20_000,
167
184
  windowsHide: true
168
185
  });
169
186
  return result.stdout;
170
187
  }
171
- function gitEnvironment() {
172
- return {
188
+ /** Owns each local blob process and joins it before its repository can be removed. */
189
+ async function* gitContent(directory, file) {
190
+ const child = spawn('git', ['show', `HEAD:${file}`], {
191
+ cwd: directory,
192
+ env: gitEnvironment(),
193
+ stdio: ['ignore', 'pipe', 'ignore'],
194
+ timeout: 20_000,
195
+ windowsHide: true
196
+ });
197
+ // Resolve failures as values so an early stream failure cannot leave an unhandled rejection.
198
+ const completion = new Promise((resolve) => {
199
+ child.once('error', resolve);
200
+ child.once('close', (code) => resolve(code === 0 ? undefined : new Error('SKILL_SOURCE_UNAVAILABLE')));
201
+ });
202
+ try {
203
+ for await (const chunk of child.stdout)
204
+ yield chunk;
205
+ const error = await completion;
206
+ if (error !== undefined)
207
+ throw error;
208
+ }
209
+ finally {
210
+ child.kill();
211
+ await completion;
212
+ }
213
+ }
214
+ function gitEnvironment(tlsDisabled) {
215
+ const env = {
173
216
  ...process.env,
174
217
  GIT_TERMINAL_PROMPT: '0',
175
218
  GIT_SSH_COMMAND
176
219
  };
220
+ if (tlsDisabled !== undefined) {
221
+ // HTTPS must not inherit URL rewrites, proxy routing, or TLS policy overrides.
222
+ env['GIT_CONFIG_NOSYSTEM'] = '1';
223
+ env['GIT_CONFIG_GLOBAL'] = devNull;
224
+ if (tlsDisabled)
225
+ env['GIT_SSL_NO_VERIFY'] = 'true';
226
+ else
227
+ delete env['GIT_SSL_NO_VERIFY'];
228
+ delete env['GIT_CONFIG_COUNT'];
229
+ delete env['GIT_CONFIG_PARAMETERS'];
230
+ }
231
+ return env;
177
232
  }
178
233
  function resolveSkillPath(files, requestedPath, requestedName) {
179
234
  const skillFiles = files
@@ -1,16 +1 @@
1
- import { type ResolvedSkillBundle } from './skill-bundle.js';
2
- import { GitSkillRepository } from './git-skill-repository.js';
3
- export declare class GithubSkillProvider {
4
- private readonly fetchImpl;
5
- private readonly tlsVerificationDisabled;
6
- private readonly gitRepository;
7
- constructor(fetchImpl?: typeof fetch, tlsVerificationDisabled?: () => Promise<boolean>, gitRepository?: GitSkillRepository);
8
- resolve(input: {
9
- readonly repositoryUrl: string;
10
- readonly skillPath?: string;
11
- readonly skillName?: string;
12
- }): Promise<ResolvedSkillBundle>;
13
- private resolveGitlab;
14
- private json;
15
- private arrayJson;
16
- }
1
+ export { GitSkillRepository as GithubSkillProvider } from './git-skill-repository.js';
@@ -1,250 +1,2 @@
1
- import { finalizeSkillBundle } from './skill-bundle.js';
2
- import { GitSkillRepository } from './git-skill-repository.js';
3
- const MAX_REPOSITORY_FILES = 5_000;
4
- const MAX_REPOSITORY_BYTES = 100 * 1024 * 1024;
5
- const MAX_SKILL_FILES = 1_000;
6
- const MAX_SKILL_BYTES = 25 * 1024 * 1024;
7
- const MAX_FILE_BYTES = 5 * 1024 * 1024;
8
- export class GithubSkillProvider {
9
- fetchImpl;
10
- tlsVerificationDisabled;
11
- gitRepository;
12
- constructor(fetchImpl = fetch, tlsVerificationDisabled = async () => false, gitRepository = new GitSkillRepository()) {
13
- this.fetchImpl = fetchImpl;
14
- this.tlsVerificationDisabled = tlsVerificationDisabled;
15
- this.gitRepository = gitRepository;
16
- }
17
- async resolve(input) {
18
- if (input.skillPath !== undefined)
19
- assertSkillPath(input.skillPath);
20
- if (input.repositoryUrl.startsWith('git@'))
21
- return this.gitRepository.resolve(input);
22
- if (new URL(input.repositoryUrl).hostname.toLowerCase() !== 'github.com')
23
- return this.resolveGitlab(input);
24
- const repository = parseGithubRepository(input.repositoryUrl);
25
- const headers = { accept: 'application/vnd.github+json', 'user-agent': 'MyAgentRoam' };
26
- const metadata = await this.json(`https://api.github.com/repos/${repository.owner}/${repository.repo}`, headers);
27
- const defaultBranch = textField(metadata, 'default_branch');
28
- const commit = await this.json(`https://api.github.com/repos/${repository.owner}/${repository.repo}/commits/${encodeURIComponent(defaultBranch)}`, headers);
29
- const commitSha = textField(commit, 'sha');
30
- if (!/^[0-9a-f]{40}$/u.test(commitSha))
31
- throw new Error('SKILL_VERSION_COMMIT_INVALID');
32
- const treePayload = await this.json(`https://api.github.com/repos/${repository.owner}/${repository.repo}/git/trees/${commitSha}?recursive=1`, headers);
33
- const tree = arrayField(treePayload, 'tree');
34
- if (tree.length > MAX_REPOSITORY_FILES)
35
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
36
- const blobs = tree
37
- .map(treeBlob)
38
- .filter((entry) => entry !== undefined);
39
- if (blobs.reduce((total, file) => total + file.size, 0) > MAX_REPOSITORY_BYTES)
40
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
41
- const skillPath = resolveSkillPath(blobs, input.skillPath, input.skillName);
42
- const selected = blobs
43
- .filter((entry) => skillPath === '.' || entry.path.startsWith(`${skillPath}/`))
44
- .map((entry) => ({
45
- ...entry,
46
- relativePath: skillPath === '.' ? entry.path : entry.path.slice(skillPath.length + 1)
47
- }));
48
- if (selected.length === 0 || selected.length > MAX_SKILL_FILES)
49
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
50
- if (selected.reduce((total, file) => total + file.size, 0) > MAX_SKILL_BYTES)
51
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
52
- const files = [];
53
- let contentBytes = 0;
54
- for (const file of selected) {
55
- assertSafeRelativePath(file.relativePath);
56
- if (file.size > MAX_FILE_BYTES)
57
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
58
- const blob = await this.json(`https://api.github.com/repos/${repository.owner}/${repository.repo}/git/blobs/${file.sha}`, headers);
59
- if (blob['encoding'] !== 'base64')
60
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
61
- const encoded = textField(blob, 'content').replace(/\s/gu, '');
62
- const content = Buffer.from(encoded, 'base64');
63
- if (content.length !== file.size)
64
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
65
- contentBytes += content.length;
66
- files.push({ path: file.relativePath, contentBase64: content.toString('base64') });
67
- }
68
- return finalizeSkillBundle({
69
- repositoryIdentity: `github.com/${repository.owner.toLowerCase()}/${repository.repo.toLowerCase()}`,
70
- repositoryUrl: `https://github.com/${repository.owner}/${repository.repo}`,
71
- skillPath,
72
- commitSha,
73
- contentBytes,
74
- tlsVerified: !(await this.tlsVerificationDisabled()),
75
- files
76
- });
77
- }
78
- async resolveGitlab(input) {
79
- const repository = parseGitlabRepository(input.repositoryUrl);
80
- const headers = { accept: 'application/json', 'user-agent': 'MyAgentRoam' };
81
- const projectKey = encodeURIComponent(repository.projectPath);
82
- const metadata = await this.json(`${repository.origin}/api/v4/projects/${projectKey}`, headers);
83
- const defaultBranch = textField(metadata, 'default_branch');
84
- const commit = await this.json(`${repository.origin}/api/v4/projects/${projectKey}/repository/commits/${encodeURIComponent(defaultBranch)}`, headers);
85
- const commitSha = textField(commit, 'id');
86
- if (!/^[0-9a-f]{40}$/u.test(commitSha))
87
- throw new Error('SKILL_VERSION_COMMIT_INVALID');
88
- const tree = [];
89
- for (let page = 1; page <= 51; page += 1) {
90
- const result = await this.arrayJson(`${repository.origin}/api/v4/projects/${projectKey}/repository/tree?recursive=true&per_page=100&page=${page}&ref=${commitSha}`, headers);
91
- tree.push(...result);
92
- if (tree.length > MAX_REPOSITORY_FILES)
93
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
94
- if (result.length < 100)
95
- break;
96
- }
97
- const blobs = tree
98
- .map(gitlabTreeBlob)
99
- .filter((entry) => entry !== undefined);
100
- const skillPath = resolveSkillPath(blobs, input.skillPath, input.skillName);
101
- const selected = blobs
102
- .filter((entry) => skillPath === '.' || entry.path.startsWith(`${skillPath}/`))
103
- .map((entry) => ({
104
- ...entry,
105
- relativePath: skillPath === '.' ? entry.path : entry.path.slice(skillPath.length + 1)
106
- }));
107
- if (selected.length === 0 || selected.length > MAX_SKILL_FILES)
108
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
109
- const files = [];
110
- let contentBytes = 0;
111
- for (const file of selected) {
112
- assertSafeRelativePath(file.relativePath);
113
- const blob = await this.json(`${repository.origin}/api/v4/projects/${projectKey}/repository/blobs/${file.sha}`, headers);
114
- if (blob['encoding'] !== 'base64')
115
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
116
- const declaredSize = Number(blob['size']);
117
- const content = Buffer.from(textField(blob, 'content').replace(/\s/gu, ''), 'base64');
118
- if (!Number.isSafeInteger(declaredSize) || declaredSize !== content.length)
119
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
120
- if (content.length > MAX_FILE_BYTES)
121
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
122
- contentBytes += content.length;
123
- if (contentBytes > MAX_SKILL_BYTES)
124
- throw new Error('SKILL_SOURCE_LIMIT_EXCEEDED');
125
- files.push({ path: file.relativePath, contentBase64: content.toString('base64') });
126
- }
127
- return finalizeSkillBundle({
128
- repositoryIdentity: `${new URL(repository.origin).hostname.toLowerCase()}/${repository.projectPath.toLowerCase()}`,
129
- repositoryUrl: `${repository.origin}/${repository.projectPath}`,
130
- skillPath,
131
- commitSha,
132
- contentBytes,
133
- tlsVerified: !(await this.tlsVerificationDisabled()),
134
- files
135
- });
136
- }
137
- async json(url, headers) {
138
- const response = await this.fetchImpl(url, { headers, signal: AbortSignal.timeout(20_000) });
139
- if (response.status === 403 || response.status === 429)
140
- throw new Error('SKILL_SOURCE_RATE_LIMITED');
141
- if (!response.ok)
142
- throw new Error('SKILL_SOURCE_UNAVAILABLE');
143
- const payload = await response.json();
144
- if (payload === null || typeof payload !== 'object' || Array.isArray(payload))
145
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
146
- return payload;
147
- }
148
- async arrayJson(url, headers) {
149
- const response = await this.fetchImpl(url, { headers, signal: AbortSignal.timeout(20_000) });
150
- if (response.status === 403 || response.status === 429)
151
- throw new Error('SKILL_SOURCE_RATE_LIMITED');
152
- if (!response.ok)
153
- throw new Error('SKILL_SOURCE_UNAVAILABLE');
154
- const payload = await response.json();
155
- if (!Array.isArray(payload))
156
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
157
- return payload;
158
- }
159
- }
160
- function parseGitlabRepository(locator) {
161
- const url = new URL(locator);
162
- const parts = url.pathname.replace(/^\/+|\/+$/gu, '').split('/');
163
- const marker = parts.indexOf('-');
164
- const projectParts = (marker < 0 ? parts : parts.slice(0, marker)).filter(Boolean);
165
- if (url.protocol !== 'https:' ||
166
- url.username !== '' ||
167
- url.password !== '' ||
168
- projectParts.length < 2 ||
169
- projectParts.some((part) => !/^[A-Za-z0-9_.-]+$/u.test(part)))
170
- throw new Error('SKILL_SOURCE_PROVIDER_UNSUPPORTED');
171
- projectParts[projectParts.length - 1] = projectParts.at(-1).replace(/\.git$/u, '');
172
- return { origin: url.origin, projectPath: projectParts.join('/') };
173
- }
174
- function gitlabTreeBlob(value) {
175
- if (value === null || typeof value !== 'object')
176
- return undefined;
177
- const row = value;
178
- if (row['type'] !== 'blob' ||
179
- typeof row['path'] !== 'string' ||
180
- typeof row['id'] !== 'string' ||
181
- !/^[0-9a-f]{40}$/u.test(row['id']))
182
- return undefined;
183
- return { path: row['path'], sha: row['id'], size: 0 };
184
- }
185
- function parseGithubRepository(locator) {
186
- const url = new URL(locator);
187
- const parts = url.pathname.replace(/^\/+|\/+$/gu, '').split('/');
188
- if (url.protocol !== 'https:' ||
189
- url.hostname.toLowerCase() !== 'github.com' ||
190
- parts.length < 2 ||
191
- !/^[A-Za-z0-9_.-]+$/u.test(parts[0]) ||
192
- !/^[A-Za-z0-9_.-]+(?:\.git)?$/u.test(parts[1]))
193
- throw new Error('SKILL_SOURCE_PROVIDER_UNSUPPORTED');
194
- return { owner: parts[0], repo: parts[1].replace(/\.git$/u, '') };
195
- }
196
- function treeBlob(value) {
197
- if (value === null || typeof value !== 'object')
198
- return undefined;
199
- const row = value;
200
- if (row['type'] !== 'blob' || typeof row['path'] !== 'string' || typeof row['sha'] !== 'string')
201
- return undefined;
202
- const size = Number(row['size']);
203
- if (!Number.isSafeInteger(size) || size < 0)
204
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
205
- return { path: row['path'], sha: row['sha'], size };
206
- }
207
- function resolveSkillPath(blobs, requestedPath, requestedName) {
208
- const skillFiles = blobs
209
- .map((entry) => entry.path)
210
- .filter((path) => path === 'SKILL.md' || path.endsWith('/SKILL.md'));
211
- if (requestedPath !== undefined) {
212
- assertSkillPath(requestedPath);
213
- const skillFile = requestedPath === '.' ? 'SKILL.md' : `${requestedPath}/SKILL.md`;
214
- if (!skillFiles.includes(skillFile))
215
- throw new Error('SKILL_CONTENT_INVALID');
216
- return requestedPath;
217
- }
218
- if (requestedName === undefined)
219
- throw new Error('SKILL_CONTENT_INVALID');
220
- const matches = skillFiles.filter((file) => file.split('/').at(-2) === requestedName);
221
- if (matches.length === 0 && skillFiles.includes('SKILL.md'))
222
- return '.';
223
- if (matches.length !== 1)
224
- throw new Error('SKILL_CONTENT_INVALID');
225
- return matches[0].slice(0, -'/SKILL.md'.length);
226
- }
227
- function assertSkillPath(value) {
228
- if (value !== '.')
229
- assertSafeRelativePath(value);
230
- }
231
- function assertSafeRelativePath(value) {
232
- if (value === '' ||
233
- value.startsWith('/') ||
234
- value.includes('\\') ||
235
- value.includes('\0') ||
236
- value.split('/').some((part) => part === '' || part === '.' || part === '..'))
237
- throw new Error('SKILL_PATH_UNSAFE');
238
- }
239
- function textField(value, field) {
240
- const result = value[field];
241
- if (typeof result !== 'string')
242
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
243
- return result;
244
- }
245
- function arrayField(value, field) {
246
- const result = value[field];
247
- if (!Array.isArray(result))
248
- throw new Error('SKILL_SOURCE_RESPONSE_INVALID');
249
- return result;
250
- }
1
+ // Preserve the existing export while all transports use the shared Git snapshot reader.
2
+ export { GitSkillRepository as GithubSkillProvider } from './git-skill-repository.js';
@@ -40,6 +40,8 @@ export declare class MarAgentModelService {
40
40
  listManagedForUser(userId: number): Promise<readonly MarAgentModelSummary[]>;
41
41
  protected summaryRows(modelIds?: readonly string[], conversationOnly?: boolean): Promise<RowDataPacket[]>;
42
42
  listForUser(userId: number): Promise<readonly MarAgentModelSummary[]>;
43
+ /** Keeps every authorized configuration; callers own any presentation-only name deduplication. */
44
+ protected listAuthorizedConversationModels(userId: number): Promise<readonly MarAgentModelSummary[]>;
43
45
  listTemplateOptionsForNode(nodeId: string): Promise<readonly ConversationTemplateModelReference[]>;
44
46
  create(userId: number, raw: unknown): Promise<MarAgentModelSummary>;
45
47
  duplicate(userId: number, sourceId: string, raw: unknown): Promise<MarAgentModelSummary>;
@@ -121,13 +121,17 @@ export class MarAgentModelService {
121
121
  return rows;
122
122
  }
123
123
  async listForUser(userId) {
124
+ return deduplicateModelsByName(await this.listAuthorizedConversationModels(userId));
125
+ }
126
+ /** Keeps every authorized configuration; callers own any presentation-only name deduplication. */
127
+ async listAuthorizedConversationModels(userId) {
124
128
  const rows = await this.#candidateRows(true, true);
125
129
  const visibleRows = this.access === undefined
126
130
  ? rows
127
131
  : (await Promise.all(rows.map(async (row) => (await this.access.canUseModel(userId, String(row.id))) ? row : null))).filter((row) => row !== null);
128
132
  const visible = await this.#summaries(await this.summaryRows(visibleRows.map((row) => String(row.id)), true));
129
133
  const ordered = await this.#applyUserOrder(userId, visible);
130
- return deduplicateModelsByName(ordered.map(({ ownership: _ownership, ...model }) => model));
134
+ return ordered.map(({ ownership: _ownership, ...model }) => model);
131
135
  }
132
136
  async listTemplateOptionsForNode(nodeId) {
133
137
  if (this.access?.listTemplateOptionsForNode === undefined)
@@ -107,7 +107,7 @@ export function registerMarctlRoutes(input) {
107
107
  ...(binary === true ? { binary: true } : {}),
108
108
  secretEnvironment: {
109
109
  ...(await input.secrets.resolve(user.userId, nodeId)),
110
- ...(await userCredentials.environment(user, publicOrigin))
110
+ ...(await userCredentials.environment(user, (await input.marctlServerUrlForNode?.(nodeId)) ?? publicOrigin))
111
111
  }
112
112
  }, user);
113
113
  const terminal = result !== null && typeof result === 'object' && 'terminal' in result
@@ -1,9 +1,10 @@
1
1
  import type { FastifyInstance, FastifyReply } from 'fastify';
2
- import type { MarctlUserCredentials } from './marctl-user-credentials.js';
2
+ import type { MarctlServerUrlForNode, MarctlUserCredentials } from './marctl-user-credentials.js';
3
3
  import type { UserNodeAuthorization } from './node-access-contracts.js';
4
4
  import type { PersonalInstructionReader, ProcessSecretResolver, MarAgentModelService, MarAgentRuntimeModelService } from './session-run-contracts.js';
5
5
  import { type ConversationAuditObserver } from './conversation-audit.js';
6
6
  export interface MarctlSessionDependencies {
7
+ readonly marctlServerUrlForNode?: MarctlServerUrlForNode;
7
8
  readonly audits?: ConversationAuditObserver;
8
9
  readonly personalInstructions?: PersonalInstructionReader;
9
10
  readonly marAgentModels?: MarAgentModelService;
@@ -377,7 +377,7 @@ export function registerMarctlSessionRoutes(input) {
377
377
  user: { ...user, scheduled, ...(channel === undefined ? {} : { channel }) },
378
378
  nodeId: scope.nodeId,
379
379
  workspaceId: scope.workspaceId,
380
- serverUrl: input.publicOrigin,
380
+ serverUrl: (await input.marctlServerUrlForNode?.(scope.nodeId)) ?? input.publicOrigin,
381
381
  ...(input.searchBackendAvailable === undefined
382
382
  ? {}
383
383
  : { searchBackendAvailable: input.searchBackendAvailable() }),