@skaile/workspaces 5.1.3 → 5.3.0

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 (379) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/README.md +1 -1
  3. package/dist/app-sdk/index.js +1 -1
  4. package/dist/{asset-feeds-C4X4RTZV.js → asset-feeds-VIZXYDAO.js} +13 -13
  5. package/dist/{asset-feeds-C4X4RTZV.js.map → asset-feeds-VIZXYDAO.js.map} +1 -1
  6. package/dist/asset-manager/catalog-deployer.js +10 -10
  7. package/dist/asset-manager/index.js +14 -14
  8. package/dist/asset-manager/installer.js +10 -10
  9. package/dist/asset-manager/src/index.d.ts +39 -4
  10. package/dist/asset-manager/src/index.d.ts.map +1 -1
  11. package/dist/asset-manager/src/installer.d.ts +2 -1
  12. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  13. package/dist/bridge/drivers/claude-sdk.js +16 -15
  14. package/dist/bridge/drivers/claude-sdk.js.map +1 -1
  15. package/dist/bridge/drivers/codex.js +13 -12
  16. package/dist/bridge/drivers/codex.js.map +1 -1
  17. package/dist/bridge/drivers/continue.js +13 -13
  18. package/dist/bridge/drivers/echo.js +3 -3
  19. package/dist/bridge/drivers/gemini.js +5 -5
  20. package/dist/bridge/drivers/goose.js +13 -13
  21. package/dist/bridge/drivers/omp.js +6 -5
  22. package/dist/bridge/drivers/omp.js.map +1 -1
  23. package/dist/bridge/drivers/opencode.js +13 -13
  24. package/dist/bridge/drivers/qwen.js +5 -5
  25. package/dist/bridge/index.js +15 -15
  26. package/dist/bridge/src/driver-capabilities.d.ts +66 -0
  27. package/dist/bridge/src/driver-capabilities.d.ts.map +1 -0
  28. package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
  29. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  30. package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
  31. package/dist/bridge/src/index.d.ts +1 -0
  32. package/dist/bridge/src/index.d.ts.map +1 -1
  33. package/dist/bridge/src/registry.d.ts.map +1 -1
  34. package/dist/{chunk-7SAWDPUT.js → chunk-37GBJLF5.js} +5 -55
  35. package/dist/chunk-37GBJLF5.js.map +1 -0
  36. package/dist/{chunk-SP47UJKE.js → chunk-3ZVSINEV.js} +247 -118
  37. package/dist/chunk-3ZVSINEV.js.map +1 -0
  38. package/dist/{chunk-ZVKJNNME.js → chunk-4257Q2LH.js} +8 -8
  39. package/dist/{chunk-ZVKJNNME.js.map → chunk-4257Q2LH.js.map} +1 -1
  40. package/dist/{chunk-YDJZRLGN.js → chunk-4SSKKFDF.js} +4 -4
  41. package/dist/{chunk-YDJZRLGN.js.map → chunk-4SSKKFDF.js.map} +1 -1
  42. package/dist/{chunk-K5GBV4SA.js → chunk-5BEFNLOR.js} +6 -5
  43. package/dist/chunk-5BEFNLOR.js.map +1 -0
  44. package/dist/{chunk-IWCCZL7C.js → chunk-6GBQND2F.js} +99 -36
  45. package/dist/chunk-6GBQND2F.js.map +1 -0
  46. package/dist/{chunk-QU4J5YSJ.js → chunk-7L4WFH3Y.js} +4 -4
  47. package/dist/{chunk-QU4J5YSJ.js.map → chunk-7L4WFH3Y.js.map} +1 -1
  48. package/dist/{chunk-O4U7OL6D.js → chunk-A223FDDC.js} +6 -6
  49. package/dist/{chunk-O4U7OL6D.js.map → chunk-A223FDDC.js.map} +1 -1
  50. package/dist/{chunk-AZYIEK3F.js → chunk-AWGQVAC5.js} +3 -3
  51. package/dist/{chunk-AZYIEK3F.js.map → chunk-AWGQVAC5.js.map} +1 -1
  52. package/dist/{chunk-RDYI4MML.js → chunk-BNUZEYC3.js} +3 -3
  53. package/dist/{chunk-RDYI4MML.js.map → chunk-BNUZEYC3.js.map} +1 -1
  54. package/dist/{chunk-RNNUYFFD.js → chunk-BUZ3K2PT.js} +3 -3
  55. package/dist/{chunk-RNNUYFFD.js.map → chunk-BUZ3K2PT.js.map} +1 -1
  56. package/dist/{chunk-WKIOWDLQ.js → chunk-CZ35I4RK.js} +4 -4
  57. package/dist/{chunk-WKIOWDLQ.js.map → chunk-CZ35I4RK.js.map} +1 -1
  58. package/dist/{chunk-KWP4RVTJ.js → chunk-D63AJVBW.js} +761 -643
  59. package/dist/chunk-D63AJVBW.js.map +1 -0
  60. package/dist/{chunk-BJZHNSQO.js → chunk-DECPI7DN.js} +5 -5
  61. package/dist/{chunk-BJZHNSQO.js.map → chunk-DECPI7DN.js.map} +1 -1
  62. package/dist/{chunk-KVAI5DGL.js → chunk-ERCSHLTF.js} +3 -3
  63. package/dist/{chunk-KVAI5DGL.js.map → chunk-ERCSHLTF.js.map} +1 -1
  64. package/dist/{chunk-ZD7CX25M.js → chunk-FTYM4VRZ.js} +56 -7
  65. package/dist/chunk-FTYM4VRZ.js.map +1 -0
  66. package/dist/{chunk-DLLM4U6C.js → chunk-FXN4PLRO.js} +3 -3
  67. package/dist/{chunk-DLLM4U6C.js.map → chunk-FXN4PLRO.js.map} +1 -1
  68. package/dist/{chunk-KNC55536.js → chunk-FZGL7Z52.js} +5 -4
  69. package/dist/chunk-FZGL7Z52.js.map +1 -0
  70. package/dist/{chunk-WCQMXBO5.js → chunk-GCYD4EGY.js} +4 -4
  71. package/dist/{chunk-WCQMXBO5.js.map → chunk-GCYD4EGY.js.map} +1 -1
  72. package/dist/{chunk-EB6OPURC.js → chunk-HTKZ4AOW.js} +3 -3
  73. package/dist/{chunk-EB6OPURC.js.map → chunk-HTKZ4AOW.js.map} +1 -1
  74. package/dist/{chunk-YV4J7V53.js → chunk-JAJG4G5E.js} +3 -3
  75. package/dist/{chunk-YV4J7V53.js.map → chunk-JAJG4G5E.js.map} +1 -1
  76. package/dist/{chunk-TYUJB336.js → chunk-JELTQ4H7.js} +3 -3
  77. package/dist/{chunk-TYUJB336.js.map → chunk-JELTQ4H7.js.map} +1 -1
  78. package/dist/{chunk-VDJKWKH2.js → chunk-JKWU6ULI.js} +3 -3
  79. package/dist/{chunk-VDJKWKH2.js.map → chunk-JKWU6ULI.js.map} +1 -1
  80. package/dist/{chunk-AGWYBS2E.js → chunk-K2JVODQD.js} +18 -6
  81. package/dist/chunk-K2JVODQD.js.map +1 -0
  82. package/dist/{chunk-IDEA6CYI.js → chunk-K2K7OF4P.js} +95 -3
  83. package/dist/chunk-K2K7OF4P.js.map +1 -0
  84. package/dist/{chunk-MXXKTQXJ.js → chunk-KBAE7PU7.js} +18 -33
  85. package/dist/chunk-KBAE7PU7.js.map +1 -0
  86. package/dist/{chunk-ARUJBGAH.js → chunk-KXTO7HON.js} +3 -3
  87. package/dist/{chunk-ARUJBGAH.js.map → chunk-KXTO7HON.js.map} +1 -1
  88. package/dist/{chunk-TVOODIZE.js → chunk-LAI7X6I2.js} +3 -3
  89. package/dist/{chunk-TVOODIZE.js.map → chunk-LAI7X6I2.js.map} +1 -1
  90. package/dist/{chunk-DXUQCMVT.js → chunk-LFMX2UEF.js} +3 -3
  91. package/dist/{chunk-DXUQCMVT.js.map → chunk-LFMX2UEF.js.map} +1 -1
  92. package/dist/{chunk-UMSWQKCY.js → chunk-LM5XEFNS.js} +3 -3
  93. package/dist/{chunk-UMSWQKCY.js.map → chunk-LM5XEFNS.js.map} +1 -1
  94. package/dist/{chunk-TLKM4M47.js → chunk-MFHKHXDE.js} +6 -3
  95. package/dist/chunk-MFHKHXDE.js.map +1 -0
  96. package/dist/{chunk-5S4ZK75K.js → chunk-OMD4TAJX.js} +3 -3
  97. package/dist/{chunk-5S4ZK75K.js.map → chunk-OMD4TAJX.js.map} +1 -1
  98. package/dist/{chunk-M4ISBWXR.js → chunk-OOKFZW6H.js} +2472 -2265
  99. package/dist/chunk-OOKFZW6H.js.map +1 -0
  100. package/dist/{chunk-WPWJRDR3.js → chunk-QHIMMBJO.js} +8 -7
  101. package/dist/chunk-QHIMMBJO.js.map +1 -0
  102. package/dist/{chunk-KC3OF6B2.js → chunk-QMWMSZQ4.js} +3 -3
  103. package/dist/{chunk-KC3OF6B2.js.map → chunk-QMWMSZQ4.js.map} +1 -1
  104. package/dist/{chunk-AG44ZJ7W.js → chunk-SR4RFKHM.js} +35 -13
  105. package/dist/chunk-SR4RFKHM.js.map +1 -0
  106. package/dist/{chunk-RNOIDD3Y.js → chunk-TR7KFBIO.js} +7 -7
  107. package/dist/chunk-TR7KFBIO.js.map +1 -0
  108. package/dist/{chunk-YMOZC2D3.js → chunk-TVFSA5IQ.js} +4 -4
  109. package/dist/{chunk-YMOZC2D3.js.map → chunk-TVFSA5IQ.js.map} +1 -1
  110. package/dist/{chunk-H4EGUQ7M.js → chunk-VKSA2CDJ.js} +7 -8
  111. package/dist/chunk-VKSA2CDJ.js.map +1 -0
  112. package/dist/{chunk-I75CM2QF.js → chunk-VLEWVR44.js} +14 -15
  113. package/dist/chunk-VLEWVR44.js.map +1 -0
  114. package/dist/{chunk-RO4Z2CBP.js → chunk-WGN7Z36G.js} +21 -4
  115. package/dist/chunk-WGN7Z36G.js.map +1 -0
  116. package/dist/{chunk-BEOKEK3B.js → chunk-WGNFDLHT.js} +135 -64
  117. package/dist/chunk-WGNFDLHT.js.map +1 -0
  118. package/dist/{chunk-43ZBF3WH.js → chunk-WX74MVNA.js} +16 -3
  119. package/dist/chunk-WX74MVNA.js.map +1 -0
  120. package/dist/{chunk-U6K3I3AX.js → chunk-XGIS325V.js} +3 -3
  121. package/dist/{chunk-U6K3I3AX.js.map → chunk-XGIS325V.js.map} +1 -1
  122. package/dist/{chunk-UVOJSWD2.js → chunk-Y7UBRRKG.js} +107 -135
  123. package/dist/chunk-Y7UBRRKG.js.map +1 -0
  124. package/dist/{chunk-Y6V6NUEV.js → chunk-YTJZQ4HY.js} +3 -3
  125. package/dist/{chunk-Y6V6NUEV.js.map → chunk-YTJZQ4HY.js.map} +1 -1
  126. package/dist/{chunk-IAGCOAIW.js → chunk-YXNYBUQY.js} +5 -5
  127. package/dist/{chunk-IAGCOAIW.js.map → chunk-YXNYBUQY.js.map} +1 -1
  128. package/dist/chunk-ZCSFGGLG.js +15 -0
  129. package/dist/{chunk-XUQBVK4R.js.map → chunk-ZCSFGGLG.js.map} +1 -1
  130. package/dist/{chunk-2HR3RPWD.js → chunk-ZDMGMWK6.js} +13 -11
  131. package/dist/chunk-ZDMGMWK6.js.map +1 -0
  132. package/dist/cli/index.js +696 -552
  133. package/dist/cli/index.js.map +1 -1
  134. package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
  135. package/dist/cli/src/commands/catalog-cmd.d.ts.map +1 -1
  136. package/dist/cli/src/commands/catalog.d.ts.map +1 -1
  137. package/dist/cli/src/commands/config.d.ts.map +1 -1
  138. package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
  139. package/dist/cli/src/commands/library-index.d.ts +43 -1
  140. package/dist/cli/src/commands/library-index.d.ts.map +1 -1
  141. package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
  142. package/dist/cli/src/commands/outdated.d.ts +3 -1
  143. package/dist/cli/src/commands/outdated.d.ts.map +1 -1
  144. package/dist/cli/src/commands/project.d.ts.map +1 -1
  145. package/dist/cli/src/commands/run.d.ts.map +1 -1
  146. package/dist/cli/src/commands/skailify-lib.d.ts +3 -47
  147. package/dist/cli/src/commands/skailify-lib.d.ts.map +1 -1
  148. package/dist/cli/src/commands/source.d.ts.map +1 -1
  149. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  150. package/dist/cli/src/flow-discovery.d.ts +9 -0
  151. package/dist/cli/src/flow-discovery.d.ts.map +1 -1
  152. package/dist/cli/src/helpers.d.ts +13 -0
  153. package/dist/cli/src/helpers.d.ts.map +1 -1
  154. package/dist/cli/src/setup.d.ts.map +1 -1
  155. package/dist/connectors/config.js +6 -6
  156. package/dist/connectors/index.js +19 -19
  157. package/dist/connectors/src/connector-manager.d.ts +8 -27
  158. package/dist/connectors/src/connector-manager.d.ts.map +1 -1
  159. package/dist/connectors/src/index.d.ts +1 -1
  160. package/dist/connectors/src/index.d.ts.map +1 -1
  161. package/dist/connectors/src/mount-ledger.d.ts +61 -0
  162. package/dist/connectors/src/mount-ledger.d.ts.map +1 -0
  163. package/dist/{connectors-BQXFKISC.js → connectors-Z2FUGAJU.js} +22 -22
  164. package/dist/{connectors-BQXFKISC.js.map → connectors-Z2FUGAJU.js.map} +1 -1
  165. package/dist/connectors-shared/index.js +2 -2
  166. package/dist/core/framework.js +1 -1
  167. package/dist/core/index.js +9 -9
  168. package/dist/core/manifest.js +2 -2
  169. package/dist/core/models.js +1 -1
  170. package/dist/core/publish-manifest.js +2 -2
  171. package/dist/core/ref.js +1 -1
  172. package/dist/core/runtime-assets.js +6 -6
  173. package/dist/core/src/asset-roots.d.ts +8 -0
  174. package/dist/core/src/asset-roots.d.ts.map +1 -1
  175. package/dist/core/src/cache-paths.d.ts +6 -0
  176. package/dist/core/src/cache-paths.d.ts.map +1 -1
  177. package/dist/core/src/framework.d.ts +7 -0
  178. package/dist/core/src/framework.d.ts.map +1 -1
  179. package/dist/core/src/index.d.ts +6 -6
  180. package/dist/core/src/index.d.ts.map +1 -1
  181. package/dist/core/src/lock.d.ts +12 -0
  182. package/dist/core/src/lock.d.ts.map +1 -1
  183. package/dist/core/src/manifest-yaml-editor.d.ts +14 -6
  184. package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
  185. package/dist/core/src/models.d.ts +22 -0
  186. package/dist/core/src/models.d.ts.map +1 -1
  187. package/dist/core/src/publish-manifest.d.ts +28 -6
  188. package/dist/core/src/publish-manifest.d.ts.map +1 -1
  189. package/dist/core/src/settings.d.ts.map +1 -1
  190. package/dist/core/src/walker.d.ts.map +1 -1
  191. package/dist/core/store.js +2 -2
  192. package/dist/core/workspace-config.js +5 -5
  193. package/dist/deploy/index.js +9 -9
  194. package/dist/discovery/index.js +4 -4
  195. package/dist/discovery/src/discover-manifest.d.ts +5 -0
  196. package/dist/discovery/src/discover-manifest.d.ts.map +1 -1
  197. package/dist/discovery/src/discover.d.ts.map +1 -1
  198. package/dist/discovery/src/hash.d.ts +45 -23
  199. package/dist/discovery/src/hash.d.ts.map +1 -1
  200. package/dist/discovery/src/index.d.ts +3 -1
  201. package/dist/discovery/src/index.d.ts.map +1 -1
  202. package/dist/discovery/src/parse-manifest.d.ts +27 -0
  203. package/dist/discovery/src/parse-manifest.d.ts.map +1 -0
  204. package/dist/discovery/src/tree-entries.d.ts.map +1 -1
  205. package/dist/{ensure-sources-CMHOTYFS.js → ensure-sources-3IH5XHAP.js} +17 -17
  206. package/dist/{ensure-sources-CMHOTYFS.js.map → ensure-sources-3IH5XHAP.js.map} +1 -1
  207. package/dist/factory-assets/connectors/box.js +19 -19
  208. package/dist/factory-assets/connectors/deploy.js +19 -19
  209. package/dist/factory-assets/connectors/devserver.js +19 -19
  210. package/dist/factory-assets/connectors/flow/adapter.d.ts +28 -4
  211. package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
  212. package/dist/factory-assets/connectors/flow/adapter.js +19 -19
  213. package/dist/factory-assets/connectors/flow/engine.js +10 -10
  214. package/dist/factory-assets/connectors/flow/index.d.ts +1 -1
  215. package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
  216. package/dist/factory-assets/connectors/flow/run-flow.js +21 -21
  217. package/dist/factory-assets/connectors/flow.js +19 -19
  218. package/dist/factory-assets/connectors/git/checkout.d.ts +161 -0
  219. package/dist/factory-assets/connectors/git/checkout.d.ts.map +1 -0
  220. package/dist/factory-assets/connectors/git/config.d.ts +78 -0
  221. package/dist/factory-assets/connectors/git/config.d.ts.map +1 -0
  222. package/dist/factory-assets/connectors/git/credentials.d.ts +93 -0
  223. package/dist/factory-assets/connectors/git/credentials.d.ts.map +1 -0
  224. package/dist/factory-assets/connectors/git/driver.d.ts +39 -598
  225. package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
  226. package/dist/factory-assets/connectors/git/exec.d.ts +177 -0
  227. package/dist/factory-assets/connectors/git/exec.d.ts.map +1 -0
  228. package/dist/factory-assets/connectors/git/inspect.d.ts +120 -0
  229. package/dist/factory-assets/connectors/git/inspect.d.ts.map +1 -0
  230. package/dist/factory-assets/connectors/git/lifecycle.d.ts +107 -0
  231. package/dist/factory-assets/connectors/git/lifecycle.d.ts.map +1 -0
  232. package/dist/factory-assets/connectors/git/repo.d.ts +496 -0
  233. package/dist/factory-assets/connectors/git/repo.d.ts.map +1 -0
  234. package/dist/factory-assets/connectors/git.js +19 -19
  235. package/dist/factory-assets/connectors/gmail.js +19 -19
  236. package/dist/factory-assets/connectors/googledrive.js +19 -19
  237. package/dist/factory-assets/connectors/local.js +19 -19
  238. package/dist/factory-assets/connectors/mattermost.js +19 -19
  239. package/dist/factory-assets/connectors/memory.js +19 -19
  240. package/dist/factory-assets/connectors/minio.js +19 -19
  241. package/dist/factory-assets/connectors/postgres.js +19 -19
  242. package/dist/factory-assets/connectors/s3.js +19 -19
  243. package/dist/factory-assets/connectors/sharepoint.js +19 -19
  244. package/dist/factory-assets/connectors/sqlite.js +19 -19
  245. package/dist/factory-assets/connectors/static-server.js +19 -19
  246. package/dist/factory-assets/connectors/tunnel.js +19 -19
  247. package/dist/factory-assets/connectors/webdav.js +19 -19
  248. package/dist/factory-assets/connectors/xstate-store.js +19 -19
  249. package/dist/factory-assets/connectors/xstate.js +19 -19
  250. package/dist/flows-64OAOYLP.js +26 -0
  251. package/dist/{flows-SVCCADGE.js.map → flows-64OAOYLP.js.map} +1 -1
  252. package/dist/{helpers-R3GLTAER.js → helpers-HV5Y57CY.js} +17 -17
  253. package/dist/{helpers-R3GLTAER.js.map → helpers-HV5Y57CY.js.map} +1 -1
  254. package/dist/library/index.js +12 -12
  255. package/dist/library/install.js +3 -2
  256. package/dist/library/src/config.d.ts +5 -4
  257. package/dist/library/src/config.d.ts.map +1 -1
  258. package/dist/library/src/index.d.ts +6 -3
  259. package/dist/library/src/index.d.ts.map +1 -1
  260. package/dist/library/src/install/install-from-manifest.d.ts +21 -0
  261. package/dist/library/src/install/install-from-manifest.d.ts.map +1 -1
  262. package/dist/library/src/local/install-library-asset.d.ts +64 -0
  263. package/dist/library/src/local/install-library-asset.d.ts.map +1 -0
  264. package/dist/library/src/local/library.d.ts.map +1 -1
  265. package/dist/library/src/local/local-catalog-source.d.ts +30 -0
  266. package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
  267. package/dist/library/src/local/store-paths.d.ts +6 -0
  268. package/dist/library/src/local/store-paths.d.ts.map +1 -1
  269. package/dist/library/src/manifest-writer.d.ts +79 -0
  270. package/dist/library/src/manifest-writer.d.ts.map +1 -0
  271. package/dist/library/src/sync/git-driver.d.ts +8 -0
  272. package/dist/library/src/sync/git-driver.d.ts.map +1 -1
  273. package/dist/library/src/sync/manifest-writeback.d.ts +2 -17
  274. package/dist/library/src/sync/manifest-writeback.d.ts.map +1 -1
  275. package/dist/{library-publish-EL7VYICU.js → library-publish-TVS3WQ4C.js} +27 -25
  276. package/dist/library-publish-TVS3WQ4C.js.map +1 -0
  277. package/dist/{open-library-MTD34YX3.js → open-library-AT6RYQ5M.js} +20 -20
  278. package/dist/{open-library-MTD34YX3.js.map → open-library-AT6RYQ5M.js.map} +1 -1
  279. package/dist/open-registry-F2Z4OLXJ.js +32 -0
  280. package/dist/{open-registry-CHCWKV5W.js.map → open-registry-F2Z4OLXJ.js.map} +1 -1
  281. package/dist/paths-P7ZXMDCX.js +22 -0
  282. package/dist/{paths-MKSI52PF.js.map → paths-P7ZXMDCX.js.map} +1 -1
  283. package/dist/plugin-registry/src/targets.d.ts +3 -1
  284. package/dist/plugin-registry/src/targets.d.ts.map +1 -1
  285. package/dist/{plugin-store-SVYV7L4C.js → plugin-store-27KGLW4S.js} +11 -11
  286. package/dist/{plugin-store-SVYV7L4C.js.map → plugin-store-27KGLW4S.js.map} +1 -1
  287. package/dist/{project-HCNWJP7J.js → project-J2EROMBW.js} +18 -18
  288. package/dist/{project-HCNWJP7J.js.map → project-J2EROMBW.js.map} +1 -1
  289. package/dist/resolver/index.js +10 -10
  290. package/dist/runner/index.js +29 -29
  291. package/dist/runner/src/agent.d.ts +1 -1
  292. package/dist/runner/src/agent.d.ts.map +1 -1
  293. package/dist/runner/src/codex-init.d.ts.map +1 -1
  294. package/dist/runner/src/compaction-gate.d.ts +9 -33
  295. package/dist/runner/src/compaction-gate.d.ts.map +1 -1
  296. package/dist/runner/src/managed-codex-bootstrap.d.ts.map +1 -1
  297. package/dist/runner/src/pending-turns.d.ts +7 -2
  298. package/dist/runner/src/pending-turns.d.ts.map +1 -1
  299. package/dist/runner/src/resources.d.ts +2 -2
  300. package/dist/runner/src/resources.d.ts.map +1 -1
  301. package/dist/runner/src/serve-credentials.d.ts +2 -1
  302. package/dist/runner/src/serve-credentials.d.ts.map +1 -1
  303. package/dist/runner/src/serve.d.ts +19 -35
  304. package/dist/runner/src/serve.d.ts.map +1 -1
  305. package/dist/runner/src/session-builder.d.ts.map +1 -1
  306. package/dist/runner/src/turn-scheduler.d.ts +158 -0
  307. package/dist/runner/src/turn-scheduler.d.ts.map +1 -0
  308. package/dist/sdk/asset-manager.js +14 -14
  309. package/dist/sdk/bridge.js +15 -15
  310. package/dist/sdk/core.js +9 -9
  311. package/dist/sdk/flow.js +10 -10
  312. package/dist/sdk/index.js +29 -29
  313. package/dist/sdk/resolver.js +10 -10
  314. package/dist/sdk/runner.js +29 -29
  315. package/dist/sdk/session.js +2 -2
  316. package/dist/sdk/types.js +1 -1
  317. package/dist/secrets/index.js +2 -2
  318. package/dist/session/index.js +2 -2
  319. package/dist/session/src/dispatcher.d.ts.map +1 -1
  320. package/dist/{setup-HTXNR2CZ.js → setup-IFGA4NQA.js} +25 -25
  321. package/dist/setup-IFGA4NQA.js.map +1 -0
  322. package/dist/skills-3T55L4YT.js +26 -0
  323. package/dist/{skills-7K2YO3KN.js.map → skills-3T55L4YT.js.map} +1 -1
  324. package/dist/{source-UIFC2PFC.js → source-HEAE43IL.js} +21 -21
  325. package/dist/{source-UIFC2PFC.js.map → source-HEAE43IL.js.map} +1 -1
  326. package/dist/{source-manifest-publish-QKAKXDVH.js → source-manifest-publish-SCAHAYSQ.js} +23 -23
  327. package/dist/{source-manifest-publish-QKAKXDVH.js.map → source-manifest-publish-SCAHAYSQ.js.map} +1 -1
  328. package/dist/tui/index.js +30 -30
  329. package/dist/tui/index.js.map +1 -1
  330. package/dist/types/index.js +1 -1
  331. package/dist/types/src/delivery.d.ts +26 -0
  332. package/dist/types/src/delivery.d.ts.map +1 -0
  333. package/dist/types/src/index.d.ts +3 -1
  334. package/dist/types/src/index.d.ts.map +1 -1
  335. package/dist/types/src/runtime.d.ts +51 -0
  336. package/dist/types/src/runtime.d.ts.map +1 -1
  337. package/dist/workspace-plugin/adapters/mcp.js +26 -26
  338. package/dist/workspace-plugin/adapters/omp.js +18 -17
  339. package/dist/workspace-plugin/adapters/omp.js.map +1 -1
  340. package/dist/workspace-plugin/index.js +2 -1
  341. package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
  342. package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
  343. package/dist/workspace-plugin/src/plugin.d.ts.map +1 -1
  344. package/package.json +1 -1
  345. package/dist/chunk-2HR3RPWD.js.map +0 -1
  346. package/dist/chunk-43ZBF3WH.js.map +0 -1
  347. package/dist/chunk-7SAWDPUT.js.map +0 -1
  348. package/dist/chunk-AG44ZJ7W.js.map +0 -1
  349. package/dist/chunk-AGWYBS2E.js.map +0 -1
  350. package/dist/chunk-BEOKEK3B.js.map +0 -1
  351. package/dist/chunk-F7JHP7JV.js +0 -122
  352. package/dist/chunk-F7JHP7JV.js.map +0 -1
  353. package/dist/chunk-H4EGUQ7M.js.map +0 -1
  354. package/dist/chunk-I75CM2QF.js.map +0 -1
  355. package/dist/chunk-IDEA6CYI.js.map +0 -1
  356. package/dist/chunk-IWCCZL7C.js.map +0 -1
  357. package/dist/chunk-K5GBV4SA.js.map +0 -1
  358. package/dist/chunk-KNC55536.js.map +0 -1
  359. package/dist/chunk-KWP4RVTJ.js.map +0 -1
  360. package/dist/chunk-M4ISBWXR.js.map +0 -1
  361. package/dist/chunk-MXXKTQXJ.js.map +0 -1
  362. package/dist/chunk-RNOIDD3Y.js.map +0 -1
  363. package/dist/chunk-RO4Z2CBP.js.map +0 -1
  364. package/dist/chunk-SP47UJKE.js.map +0 -1
  365. package/dist/chunk-TLKM4M47.js.map +0 -1
  366. package/dist/chunk-UVOJSWD2.js.map +0 -1
  367. package/dist/chunk-WPWJRDR3.js.map +0 -1
  368. package/dist/chunk-XUQBVK4R.js +0 -15
  369. package/dist/chunk-ZD7CX25M.js.map +0 -1
  370. package/dist/flows-SVCCADGE.js +0 -26
  371. package/dist/library-publish-EL7VYICU.js.map +0 -1
  372. package/dist/open-registry-CHCWKV5W.js +0 -32
  373. package/dist/paths-MKSI52PF.js +0 -22
  374. package/dist/runner/src/flow-turn-dispatch.d.ts +0 -41
  375. package/dist/runner/src/flow-turn-dispatch.d.ts.map +0 -1
  376. package/dist/runner/src/reply-routing.d.ts +0 -54
  377. package/dist/runner/src/reply-routing.d.ts.map +0 -1
  378. package/dist/setup-HTXNR2CZ.js.map +0 -1
  379. package/dist/skills-7K2YO3KN.js +0 -26
@@ -1,37 +1,37 @@
1
- export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-M4ISBWXR.js';
2
- import '../../../chunk-KC3OF6B2.js';
3
- import '../../../chunk-WKIOWDLQ.js';
4
- import '../../../chunk-QU4J5YSJ.js';
5
- import '../../../chunk-TVOODIZE.js';
1
+ export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-OOKFZW6H.js';
2
+ import '../../../chunk-QMWMSZQ4.js';
3
+ import '../../../chunk-CZ35I4RK.js';
4
+ import '../../../chunk-7L4WFH3Y.js';
5
+ import '../../../chunk-LAI7X6I2.js';
6
6
  import '../../../chunk-EINLFFP6.js';
7
7
  import '../../../chunk-LOO5CB5M.js';
8
- import '../../../chunk-RDYI4MML.js';
9
- import '../../../chunk-KVAI5DGL.js';
8
+ import '../../../chunk-BNUZEYC3.js';
9
+ import '../../../chunk-ERCSHLTF.js';
10
10
  import '../../../chunk-XBSQ4KMC.js';
11
11
  import '../../../chunk-YROR332M.js';
12
- import '../../../chunk-ZD7CX25M.js';
12
+ import '../../../chunk-FTYM4VRZ.js';
13
13
  import '../../../chunk-6E6PKKAD.js';
14
14
  import '../../../chunk-IFGTRL2I.js';
15
- export { isBlocking } from '../../../chunk-UMSWQKCY.js';
15
+ export { isBlocking } from '../../../chunk-LM5XEFNS.js';
16
16
  import '../../../chunk-37FTLYFP.js';
17
17
  import '../../../chunk-QZLWJETK.js';
18
18
  import '../../../chunk-XUUYAS3Z.js';
19
19
  import '../../../chunk-NFGRW3L7.js';
20
20
  import '../../../chunk-QCI6D7E4.js';
21
- import '../../../chunk-IDEA6CYI.js';
22
- import '../../../chunk-IWCCZL7C.js';
21
+ import '../../../chunk-K2K7OF4P.js';
22
+ import '../../../chunk-6GBQND2F.js';
23
23
  import '../../../chunk-4GY63JU6.js';
24
- import '../../../chunk-YDJZRLGN.js';
25
- import '../../../chunk-U6K3I3AX.js';
26
- import '../../../chunk-K5GBV4SA.js';
24
+ import '../../../chunk-4SSKKFDF.js';
25
+ import '../../../chunk-XGIS325V.js';
26
+ import '../../../chunk-5BEFNLOR.js';
27
27
  import '../../../chunk-A2ULN3KX.js';
28
- import '../../../chunk-MXXKTQXJ.js';
29
- import '../../../chunk-TLKM4M47.js';
28
+ import '../../../chunk-KBAE7PU7.js';
29
+ import '../../../chunk-MFHKHXDE.js';
30
30
  import '../../../chunk-TOSHZX4C.js';
31
- import '../../../chunk-AG44ZJ7W.js';
31
+ import '../../../chunk-SR4RFKHM.js';
32
32
  import '../../../chunk-RVRB27AN.js';
33
- import '../../../chunk-DXUQCMVT.js';
34
- import '../../../chunk-43ZBF3WH.js';
33
+ import '../../../chunk-LFMX2UEF.js';
34
+ import '../../../chunk-WX74MVNA.js';
35
35
  import '../../../chunk-ICSCSM5D.js';
36
36
  import '../../../chunk-JMKB7IB4.js';
37
37
  import '../../../chunk-MJHSLODD.js';
@@ -1,20 +1,20 @@
1
- export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveFlowOutputFields, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-UMSWQKCY.js';
1
+ export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveFlowOutputFields, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-LM5XEFNS.js';
2
2
  import '../../../chunk-QZLWJETK.js';
3
3
  export { deterministicNodeKindLabel, flowDefaults, flowSkillVersionPins, isActiveRuntimeNode, isAgentNode, isCheckNode, isExecutableNode, isFunctionNode, isGateNode, isRouterNode, isSubFlowNode, isSubpromptNode, nodeAssets, nodeBindings, nodeInstruction, nodeIsInert, nodeIsOptional, nodeLabel, nodeRequiresApproval, nodeRunKind, nodeSkillAsset, nodeSkillId, nodeSkillVersionPins } from '../../../chunk-NFGRW3L7.js';
4
4
  export { getConsumedOutputSchema } from '../../../chunk-QCI6D7E4.js';
5
- import '../../../chunk-IWCCZL7C.js';
5
+ import '../../../chunk-6GBQND2F.js';
6
6
  import '../../../chunk-4GY63JU6.js';
7
- import '../../../chunk-YDJZRLGN.js';
8
- import '../../../chunk-U6K3I3AX.js';
9
- import '../../../chunk-K5GBV4SA.js';
7
+ import '../../../chunk-4SSKKFDF.js';
8
+ import '../../../chunk-XGIS325V.js';
9
+ import '../../../chunk-5BEFNLOR.js';
10
10
  import '../../../chunk-A2ULN3KX.js';
11
- import '../../../chunk-MXXKTQXJ.js';
12
- import '../../../chunk-TLKM4M47.js';
11
+ import '../../../chunk-KBAE7PU7.js';
12
+ import '../../../chunk-MFHKHXDE.js';
13
13
  import '../../../chunk-TOSHZX4C.js';
14
- import '../../../chunk-AG44ZJ7W.js';
14
+ import '../../../chunk-SR4RFKHM.js';
15
15
  import '../../../chunk-RVRB27AN.js';
16
- import '../../../chunk-DXUQCMVT.js';
17
- import '../../../chunk-43ZBF3WH.js';
16
+ import '../../../chunk-LFMX2UEF.js';
17
+ import '../../../chunk-WX74MVNA.js';
18
18
  import '../../../chunk-ICSCSM5D.js';
19
19
  import '../../../chunk-JMKB7IB4.js';
20
20
  import '../../../chunk-MJHSLODD.js';
@@ -1,4 +1,4 @@
1
- export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, } from "./adapter.js";
1
+ export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, FlowRestoreKick, FlowRunTurnRule, } from "./adapter.js";
2
2
  export { createConnector, describeFlowOperations, FlowAdapter } from "./adapter.js";
3
3
  export { type InlineSubFlowAgentTurn, SessionInlineSubFlowRunner, type SessionInlineSubFlowRunnerOptions, } from "./inline-sub-flow-host.js";
4
4
  export { SessionNodeExecutor, type DeterministicFlowNode, type FunctionFlowNode, type NodeExecutor, type NodeExecutorOptions, type NodeExecutorRequest, type NodeExecutorResult, type SessionNodeExecutorOptions, } from "./node-executor.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EACL,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,iCAAiC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EACL,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,iCAAiC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC"}
@@ -1,40 +1,40 @@
1
- export { awaitAgentEnd, resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-ZVKJNNME.js';
1
+ export { awaitAgentEnd, resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-4257Q2LH.js';
2
2
  import '../../../chunk-4R6DROGN.js';
3
- import '../../../chunk-YV4J7V53.js';
4
- import '../../../chunk-M4ISBWXR.js';
5
- import '../../../chunk-KC3OF6B2.js';
6
- import '../../../chunk-WKIOWDLQ.js';
7
- import '../../../chunk-QU4J5YSJ.js';
8
- import '../../../chunk-TVOODIZE.js';
3
+ import '../../../chunk-JAJG4G5E.js';
4
+ import '../../../chunk-OOKFZW6H.js';
5
+ import '../../../chunk-QMWMSZQ4.js';
6
+ import '../../../chunk-CZ35I4RK.js';
7
+ import '../../../chunk-7L4WFH3Y.js';
8
+ import '../../../chunk-LAI7X6I2.js';
9
9
  import '../../../chunk-EINLFFP6.js';
10
10
  import '../../../chunk-LOO5CB5M.js';
11
- import '../../../chunk-RDYI4MML.js';
12
- import '../../../chunk-KVAI5DGL.js';
11
+ import '../../../chunk-BNUZEYC3.js';
12
+ import '../../../chunk-ERCSHLTF.js';
13
13
  import '../../../chunk-XBSQ4KMC.js';
14
14
  import '../../../chunk-YROR332M.js';
15
- import '../../../chunk-ZD7CX25M.js';
15
+ import '../../../chunk-FTYM4VRZ.js';
16
16
  import '../../../chunk-6E6PKKAD.js';
17
17
  import '../../../chunk-IFGTRL2I.js';
18
- import '../../../chunk-UMSWQKCY.js';
18
+ import '../../../chunk-LM5XEFNS.js';
19
19
  import '../../../chunk-37FTLYFP.js';
20
20
  import '../../../chunk-QZLWJETK.js';
21
21
  import '../../../chunk-XUUYAS3Z.js';
22
22
  import '../../../chunk-NFGRW3L7.js';
23
23
  import '../../../chunk-QCI6D7E4.js';
24
- import '../../../chunk-IDEA6CYI.js';
25
- import '../../../chunk-IWCCZL7C.js';
24
+ import '../../../chunk-K2K7OF4P.js';
25
+ import '../../../chunk-6GBQND2F.js';
26
26
  import '../../../chunk-4GY63JU6.js';
27
- import '../../../chunk-YDJZRLGN.js';
28
- import '../../../chunk-U6K3I3AX.js';
29
- import '../../../chunk-K5GBV4SA.js';
27
+ import '../../../chunk-4SSKKFDF.js';
28
+ import '../../../chunk-XGIS325V.js';
29
+ import '../../../chunk-5BEFNLOR.js';
30
30
  import '../../../chunk-A2ULN3KX.js';
31
- import '../../../chunk-MXXKTQXJ.js';
32
- import '../../../chunk-TLKM4M47.js';
31
+ import '../../../chunk-KBAE7PU7.js';
32
+ import '../../../chunk-MFHKHXDE.js';
33
33
  import '../../../chunk-TOSHZX4C.js';
34
- import '../../../chunk-AG44ZJ7W.js';
34
+ import '../../../chunk-SR4RFKHM.js';
35
35
  import '../../../chunk-RVRB27AN.js';
36
- import '../../../chunk-DXUQCMVT.js';
37
- import '../../../chunk-43ZBF3WH.js';
36
+ import '../../../chunk-LFMX2UEF.js';
37
+ import '../../../chunk-WX74MVNA.js';
38
38
  import '../../../chunk-ICSCSM5D.js';
39
39
  import '../../../chunk-JMKB7IB4.js';
40
40
  import '../../../chunk-MJHSLODD.js';
@@ -1,37 +1,37 @@
1
- export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, SubFlowContractError, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-M4ISBWXR.js';
2
- import '../../chunk-KC3OF6B2.js';
3
- import '../../chunk-WKIOWDLQ.js';
4
- import '../../chunk-QU4J5YSJ.js';
5
- import '../../chunk-TVOODIZE.js';
1
+ export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, SubFlowContractError, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-OOKFZW6H.js';
2
+ import '../../chunk-QMWMSZQ4.js';
3
+ import '../../chunk-CZ35I4RK.js';
4
+ import '../../chunk-7L4WFH3Y.js';
5
+ import '../../chunk-LAI7X6I2.js';
6
6
  import '../../chunk-EINLFFP6.js';
7
7
  import '../../chunk-LOO5CB5M.js';
8
- import '../../chunk-RDYI4MML.js';
9
- import '../../chunk-KVAI5DGL.js';
8
+ import '../../chunk-BNUZEYC3.js';
9
+ import '../../chunk-ERCSHLTF.js';
10
10
  import '../../chunk-XBSQ4KMC.js';
11
11
  import '../../chunk-YROR332M.js';
12
- import '../../chunk-ZD7CX25M.js';
12
+ import '../../chunk-FTYM4VRZ.js';
13
13
  import '../../chunk-6E6PKKAD.js';
14
14
  import '../../chunk-IFGTRL2I.js';
15
- import '../../chunk-UMSWQKCY.js';
15
+ import '../../chunk-LM5XEFNS.js';
16
16
  import '../../chunk-37FTLYFP.js';
17
17
  import '../../chunk-QZLWJETK.js';
18
18
  import '../../chunk-XUUYAS3Z.js';
19
19
  import '../../chunk-NFGRW3L7.js';
20
20
  import '../../chunk-QCI6D7E4.js';
21
- import '../../chunk-IDEA6CYI.js';
22
- import '../../chunk-IWCCZL7C.js';
21
+ import '../../chunk-K2K7OF4P.js';
22
+ import '../../chunk-6GBQND2F.js';
23
23
  import '../../chunk-4GY63JU6.js';
24
- import '../../chunk-YDJZRLGN.js';
25
- import '../../chunk-U6K3I3AX.js';
26
- import '../../chunk-K5GBV4SA.js';
24
+ import '../../chunk-4SSKKFDF.js';
25
+ import '../../chunk-XGIS325V.js';
26
+ import '../../chunk-5BEFNLOR.js';
27
27
  import '../../chunk-A2ULN3KX.js';
28
- import '../../chunk-MXXKTQXJ.js';
29
- import '../../chunk-TLKM4M47.js';
28
+ import '../../chunk-KBAE7PU7.js';
29
+ import '../../chunk-MFHKHXDE.js';
30
30
  import '../../chunk-TOSHZX4C.js';
31
- import '../../chunk-AG44ZJ7W.js';
31
+ import '../../chunk-SR4RFKHM.js';
32
32
  import '../../chunk-RVRB27AN.js';
33
- import '../../chunk-DXUQCMVT.js';
34
- import '../../chunk-43ZBF3WH.js';
33
+ import '../../chunk-LFMX2UEF.js';
34
+ import '../../chunk-WX74MVNA.js';
35
35
  import '../../chunk-ICSCSM5D.js';
36
36
  import '../../chunk-JMKB7IB4.js';
37
37
  import '../../chunk-MJHSLODD.js';
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Checkout-level git operations that need no per-mount state: hold the index
3
+ * lock down, stage and commit, keep `.skaile/` out of the index, sync
4
+ * submodules, manage session-branch fetch refspecs.
5
+ *
6
+ * Every function takes the checkout path (and, for network commands, a
7
+ * {@link GitRemoteAuth}). The per-mount state those operations are sequenced
8
+ * with lives in the repo module.
9
+ */
10
+ import type { Logger } from "@skaile/workspaces/types";
11
+ import { type GitRemoteAuth } from "./exec.js";
12
+ /**
13
+ * `git pull origin <branch>` in two processes: the fetch carries the token, the
14
+ * merge does not. A merge runs programs the checkout's config and attributes
15
+ * name (filters, merge drivers), which must never see the token.
16
+ *
17
+ * A clean divergence is merged (never rebased: both sides may be published),
18
+ * where `git pull` without `pull.rebase` would refuse. A conflicting one is
19
+ * aborted and thrown, naming the files: left in place, the auto-commit's
20
+ * `add -A` would complete the merge with the conflict markers and push them.
21
+ * An unfinished merge or rebase found beforehand is someone else's (the
22
+ * agent's): the pull throws without touching it, so the abort only ever undoes
23
+ * this pull's own merge.
24
+ */
25
+ export declare function pullByMerge(branch: string, cwd: string, auth: GitRemoteAuth, timeout?: number): Promise<void>;
26
+ /**
27
+ * Make the checkout ignore `SKAILE_INTERNAL_DIR`, and drop it from the index
28
+ * if a previous session already staged it.
29
+ *
30
+ * Written to `info/exclude` rather than `.gitignore`: the rule is a property
31
+ * of this machine's checkout, not of the user's project, so it must never show
32
+ * up in their diff, their history, or on their remote.
33
+ *
34
+ * Excluding — rather than filtering at `git add` time — keeps
35
+ * `status --porcelain` and `add -A` answering the same question, and covers
36
+ * git the *agent* runs by hand just as much as the driver's own commits.
37
+ *
38
+ * Resolved through `--git-common-dir` because a fleet worktree's `.git` is a
39
+ * file; `info/exclude` lives in the shared common dir in both layouts.
40
+ *
41
+ * The unstage is deliberately narrow. An ignore rule does not evict a path
42
+ * that is already in the index, so a checkout carrying a half-finished save
43
+ * from before this fix would still commit it on the next hibernate. Only
44
+ * entries that are in the index and *not* in `HEAD` are dropped, so a project
45
+ * that genuinely tracks a `.skaile/` of its own is left exactly as it is.
46
+ *
47
+ * Best effort throughout: a checkout whose git dir cannot be written is still
48
+ * a usable checkout, and failing `connect` over an ignore rule would trade a
49
+ * leak for an outage.
50
+ */
51
+ export declare function ensureSkaileExcluded(cwd: string, log: Logger): Promise<void>;
52
+ /**
53
+ * Drop a `.git/index.lock` orphaned by a SIGKILL'd git child.
54
+ *
55
+ * `runGit` kills on SIGKILL by design, which gives git no chance to release the
56
+ * lock, and the checkout outlives the container that made it — so one killed
57
+ * child wedges every later `connect()` on the same repo, permanently. Measured
58
+ * in prod: two sessions dead for 23 and 4 days, recoverable only by hand.
59
+ *
60
+ * Called from the connect path alone, which rules out this driver's own git:
61
+ * the periodic timers arm only once connect returns, and a fleet-managed mount
62
+ * (where the host owns git against this very path) takes another branch
63
+ * entirely. The mtime gate covers what ordering does not — a previous
64
+ * container still shutting down, and, on the hot-plug connect of a live
65
+ * session, git the AGENT is running, which is under no deadline of ours.
66
+ */
67
+ export declare function clearStaleIndexLock(targetDir: string, log: Logger): Promise<void>;
68
+ /**
69
+ * Whether a failed git child died on the checkout's `.git/index.lock` — held
70
+ * by another process (`Unable to create '<path>/index.lock': File exists.`) or
71
+ * unwritable. A lock young enough to survive {@link clearStaleIndexLock} still
72
+ * fails the connect, and no new credential fixes either case.
73
+ *
74
+ * Matches the lock path alone: the words around it go through gettext, and
75
+ * git inherits whatever locale the host runs it under.
76
+ */
77
+ export declare function isIndexLockFailure(err: unknown): boolean;
78
+ /**
79
+ * Run a purely local `git checkout` for the connect path, marking a refusal as
80
+ * repo-state: with no network in the command, only the checkout itself (a lock,
81
+ * local changes in the way, a broken HEAD) can be what refused it.
82
+ *
83
+ * Only a clean non-zero exit counts. A deadline kill (a wedged mount) or a
84
+ * failed spawn says nothing about the repository, so those stay unclassified.
85
+ */
86
+ export declare function gitLocalCheckout(args: string[], cwd: string): Promise<string>;
87
+ export declare function syncSubmodules(cwd: string, log: Logger, auth: GitRemoteAuth): Promise<void>;
88
+ /**
89
+ * The agent's `pull` moves submodule pins without fetching them: a submodule
90
+ * fetch reads its URL from the agent-writable config and would carry the
91
+ * host-scoped header to any repo the agent names. Checks out pins whose commits
92
+ * are already local and returns the paths still behind, which the next driver
93
+ * sync fetches. Runs without the token; `--checkout` as in `syncSubmodules`.
94
+ */
95
+ export declare function checkoutSubmodulesOffline(cwd: string): Promise<string[]>;
96
+ /** The fetch refspec that maps `branch` on origin to `refs/remotes/origin/<branch>`. */
97
+ export declare function trackingRefspec(branch: string): string;
98
+ /**
99
+ * Make sure a fetch refspec of `origin` maps `branch` to its remote-tracking
100
+ * ref. Idempotent: adds nothing when the exact refspec or the default
101
+ * `refs/heads/*` wildcard (a full clone) is already configured.
102
+ *
103
+ * Needed because the clone is `--single-branch`: its only refspec maps the base
104
+ * branch. Without a mapping for the session branch, git does not resolve
105
+ * `@{upstream}`, and neither a fetch nor a push updates
106
+ * `refs/remotes/origin/<branch>`. `branch` must already be refname-validated.
107
+ */
108
+ export declare function ensureTrackingRefspec(branch: string, cwd: string): Promise<void>;
109
+ /**
110
+ * Remove the exact session-branch refspec that {@link ensureTrackingRefspec}
111
+ * adds. A configured refspec without a wildcard makes every plain
112
+ * `git fetch origin` fail with "couldn't find remote ref" while origin does
113
+ * not have the branch, which stops the periodic fetch and the agent's own
114
+ * `git fetch` / `git pull`. Never throws.
115
+ */
116
+ export declare function dropTrackingRefspec(branch: string, cwd: string): Promise<void>;
117
+ /**
118
+ * Before the base branch is pushed: fetch `origin/<branch>` and merge it in
119
+ * through {@link pullByMerge} (a fast-forward when the local branch has
120
+ * nothing of its own; the fetch authenticates per command), so the push that
121
+ * follows is a fast-forward. A merge, never a rebase: origin's commits
122
+ * may already be pulled elsewhere. A conflicting merge is aborted and thrown
123
+ * naming the files, so nothing is pushed and no conflict markers reach a later
124
+ * auto-commit. Unlike a session branch, the base branch gets no
125
+ * `.conflict`-file resolution: it is shared, and silently keeping "ours" there
126
+ * would bury someone else's change.
127
+ *
128
+ * Skipped (the push then runs as before) when HEAD is not `<branch>` — the
129
+ * agent checked out another branch or is mid-rebase — or when a merge,
130
+ * rebase, cherry-pick or revert is unfinished: that state is the agent's, and
131
+ * the abort in `pullByMerge` must only ever undo this function's own merge.
132
+ */
133
+ export declare function integrateOriginBaseBranch(branch: string, cwd: string, auth: GitRemoteAuth): Promise<void>;
134
+ /**
135
+ * Set `branch`'s upstream to `origin/<branch>` through config, as `push -u`
136
+ * does. Unlike `branch --set-upstream-to`, this works before a fetch refspec
137
+ * maps the branch.
138
+ */
139
+ export declare function setSessionUpstream(branch: string, cwd: string): Promise<void>;
140
+ /**
141
+ * True when `dir` is empty (no entries, including no dotfiles) or when the
142
+ * listing fails or misses its deadline (e.g. dir does not exist, wedged
143
+ * mount). The "fails → empty" mapping is intentional: the caller is about to
144
+ * `mkdir` and proceed, so a missing dir is functionally equivalent to an
145
+ * empty one.
146
+ */
147
+ export declare function isDirEmpty(dir: string): Promise<boolean>;
148
+ /**
149
+ * Stage everything and commit. Returns `null` without committing when there is
150
+ * nothing to commit, or when an unfinished merge or rebase would make the
151
+ * commit carry conflict markers (see {@link unfinishedGitOperation}).
152
+ */
153
+ export declare function commitAll(cwd: string, message: string, log: Logger): Promise<string | null>;
154
+ /**
155
+ * `git add -A` for the driver's own commits, minus any submodule pin it would
156
+ * move backwards. After a pull that could not fetch a submodule (the agent's
157
+ * `pull` never does), the submodule's checkout lags the merged pin, and a plain
158
+ * `add -A` would commit the old pin and so undo the upstream bump on push.
159
+ */
160
+ export declare function stageAll(cwd: string, log: Logger): Promise<void>;
161
+ //# sourceMappingURL=checkout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/checkout.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAEL,KAAK,aAAa,EAOnB,MAAM,WAAW,CAAC;AAcnB;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,aAAa,EACnB,OAAO,SAAS,GACf,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2ElF;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCvF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAGxD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7E;AAMD,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBjG;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAS9E;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtF;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAapF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGnF;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAOjG;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBtE"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Git connector config - the session, sync and lifecycle blocks a mount
3
+ * declaration resolves to. `mode` seeds per-block defaults, explicit
4
+ * `options.{session,sync,lifecycle}` keys override them, and a read-only mount
5
+ * is forced onto the reference-checkout profile. Pure functions: no I/O, no
6
+ * per-mount state.
7
+ */
8
+ import type { ConnectorDeclaration } from "@skaile/workspaces/connectors";
9
+ export interface GitSessionConfig {
10
+ enabled: boolean;
11
+ slug?: string;
12
+ isMain: boolean;
13
+ branchPrefix: string;
14
+ /**
15
+ * Starting point for a freshly-created session branch. When set and the
16
+ * session branch does not already exist on origin, the driver fetches this
17
+ * ref and branches from it instead of from the base branch tip. Used by
18
+ * the platform's fork flow so a forked session branches off the source
19
+ * session's tip rather than off `main`. May be a branch name (e.g.
20
+ * `skaile/session-source-slug`) or a commit SHA. Ignored when the session
21
+ * branch already exists on origin (existing branch wins). No-op when
22
+ * `enabled = false` or `isMain = true` (only branch sessions cut new
23
+ * branches). The value is validated against `isValidGitRefOrSha` before
24
+ * use; refs with shell metacharacters are rejected and the driver falls
25
+ * back to branching off base.
26
+ */
27
+ fromRef?: string;
28
+ }
29
+ export interface GitSyncConfig {
30
+ fetchIntervalSec: number;
31
+ autoRebase: boolean;
32
+ autoPull: boolean;
33
+ }
34
+ export interface GitLifecycleConfig {
35
+ commitOnHibernate: boolean;
36
+ pushOnHibernate: boolean;
37
+ mergeOnClose: boolean;
38
+ pushOnClose: boolean;
39
+ /** Auto-commit after N ms of no file changes. 0 = disabled. Default: 30000 (30s). */
40
+ autoCommitIdleMs: number;
41
+ /** Push to remote after each auto-commit. */
42
+ pushAfterCommit: boolean;
43
+ /** Push freshly-created session branch to origin on connect. Best-effort — push
44
+ * failures are swallowed; lifecycle push hooks remain the backstop. */
45
+ publishOnCreate: boolean;
46
+ }
47
+ /**
48
+ * True when at least one lifecycle hook may push to origin. With none on, the
49
+ * driver itself never writes to origin; the agent's explicit `push` op still can.
50
+ */
51
+ export declare function lifecyclePushesEnabled(lc: GitLifecycleConfig): boolean;
52
+ /** The session, sync and lifecycle blocks a git mount runs with. */
53
+ export interface GitConfigBlocks {
54
+ session: GitSessionConfig;
55
+ sync: GitSyncConfig;
56
+ lifecycle: GitLifecycleConfig;
57
+ }
58
+ /**
59
+ * Resolve the session/sync/lifecycle config blocks for a git connector. `mode`
60
+ * seeds per-block defaults (`agent` / `sync`); explicit `options.{session,sync,
61
+ * lifecycle}` keys still override those defaults. Absent `mode` reproduces the
62
+ * legacy literals exactly, so behavior is unchanged for declarations that set none.
63
+ */
64
+ export declare function resolveGitConfig(args: {
65
+ mode?: "agent" | "sync";
66
+ options?: Record<string, unknown>;
67
+ }): GitConfigBlocks;
68
+ /** The blocks a mount runs with, and whether it is a read-only reference checkout. */
69
+ export interface GitMountConfig extends GitConfigBlocks {
70
+ readOnly: boolean;
71
+ }
72
+ /**
73
+ * Resolve the config a declaration mounts with. Only an explicit `read-only`
74
+ * counts: a mount that declared no `access` got the default from the parser and
75
+ * keeps the behaviour it had before the mode existed.
76
+ */
77
+ export declare function resolveMountConfig(declaration: ConnectorDeclaration): GitMountConfig;
78
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,qFAAqF;IACrF,gBAAgB,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB;4EACwE;IACxE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAqGD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAQtE;AAED,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG,eAAe,CAclB;AAoCD,sFAAsF;AACtF,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,oBAAoB,GAAG,cAAc,CAKpF"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Git connector credentials — everything between a mount's `auth:` declaration
3
+ * and a token a git command can use.
4
+ *
5
+ * Owns token acquisition (platform mediator or PAT), the proactive refresh
6
+ * timer, the Tier-2 managed gitconfig and credential file the agent's own `git`
7
+ * reads, atomic writes to that file, and the teardown fence that stops a late
8
+ * refresh from writing back after the mount is gone. The rest of the connector
9
+ * only holds a {@link GitCredentials} handle: it reads `token` and calls
10
+ * `teardown`; it never writes a credential file itself.
11
+ */
12
+ import type { ConnectContext, ConnectorDeclaration, SecretProvider } from "@skaile/workspaces/connectors";
13
+ import type { Logger } from "@skaile/workspaces/types";
14
+ type ConnectorTokenMediator = NonNullable<ConnectContext["tokenMediator"]>;
15
+ /**
16
+ * Longest delay ever handed to `setTimeout`, a margin below its 2^31-1 ms
17
+ * ceiling (above which the delay silently collapses to 1 ms). Same cap the
18
+ * runner's AI-credential scheduler uses.
19
+ */
20
+ export declare const MAX_REARM_MS: number;
21
+ export interface GitCredentialsInit {
22
+ declaration: ConnectorDeclaration;
23
+ /** The declared remote (`mount.source`), used as the log scope of a driver-only credential. */
24
+ url: string;
25
+ secrets?: SecretProvider;
26
+ tokenMediator?: ConnectorTokenMediator;
27
+ log: Logger;
28
+ }
29
+ /** One mount's credential, as the rest of the git connector sees it. */
30
+ export interface GitCredentials {
31
+ /** The current token. Read per git command, so a rotated token reaches the next spawn. */
32
+ readonly token: string | undefined;
33
+ /** True once the agent's gitconfig carries this mount's credential (Tier-2). */
34
+ readonly exposedToAgent: boolean;
35
+ /**
36
+ * Tier-2: write the managed gitconfig block, helper script and credential
37
+ * file for `url`, and arm the refresh timer. Writes nothing (and leaves
38
+ * {@link exposedToAgent} false) when there is no token, the remote is not
39
+ * http(s) or `GIT_CONFIG_GLOBAL` is unset. Throws when the files cannot be written.
40
+ */
41
+ exposeToAgent(url: string): void;
42
+ /**
43
+ * Tier-1: the credential stays inside the driver's own git. Reports the mint
44
+ * and arms the refresh timer, which keeps the token fresh in memory only.
45
+ */
46
+ serveDriverOnly(): void;
47
+ /**
48
+ * The agent's git hit a 401 and asked for a new token. No-op unless the
49
+ * credential is exposed and backend-minted; never writes after teardown.
50
+ */
51
+ refreshAfterRejection(): Promise<void>;
52
+ /**
53
+ * Stop refreshing and remove what was exposed to the agent. Idempotent.
54
+ * A refresh whose mint is still in flight finds the fence down and writes nothing.
55
+ */
56
+ teardown(): void;
57
+ }
58
+ /**
59
+ * The sanitized full repository URL a credential helper is scoped to.
60
+ * Userinfo, query, and fragment data must never enter the managed gitconfig.
61
+ */
62
+ export declare function credentialScope(url: string): string;
63
+ /**
64
+ * Register a credential helper that *reports* why there is no credential,
65
+ * after this connector failed to connect.
66
+ *
67
+ * Without it git finds no helper for the host and asks the terminal for a
68
+ * username, so the agent sees `fatal: could not read Username for
69
+ * 'https://github.com'` — which names neither the mount nor the cause, and
70
+ * which only ever appears on a write, since reads against a public remote
71
+ * keep succeeding. The helper written here makes git stop with the mediator's
72
+ * actual refusal text instead.
73
+ *
74
+ * Entirely best-effort: it runs on the failure path and must never mask the
75
+ * connect error that is already on its way up.
76
+ */
77
+ export declare function registerUnavailableCredentialHelper(connectorId: string, url: string, err: unknown, log: Logger): void;
78
+ /**
79
+ * Best-effort removal of the unavailable-mount blocks that would answer this
80
+ * connector's git operations: its own from a previous failed session, and any
81
+ * left under the same repository scope by a sibling mount that failed earlier
82
+ * in this `connectAll` (git matches helpers by URL, not by mount id).
83
+ */
84
+ export declare function clearUnavailableCredentialHelper(connectorId: string, url: string, log: Logger): void;
85
+ /**
86
+ * Resolve a mount's credential: ask the mediator (or secrets chain) for the
87
+ * initial token. Throws a classified connect error when the mount has no usable
88
+ * credential. Nothing is written or scheduled until `exposeToAgent` /
89
+ * `serveDriverOnly`.
90
+ */
91
+ export declare function acquireGitCredentials(init: GitCredentialsInit): Promise<GitCredentials>;
92
+ export {};
93
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EAGpB,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAsB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,KAAK,sBAAsB,GAAG,WAAW,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;AAmB3E;;;;GAIG;AACH,eAAO,MAAM,YAAY,QAA2B,CAAC;AAgCrD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,oBAAoB,CAAC;IAClC,+FAA+F;IAC/F,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gFAAgF;IAChF,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;;;OAKG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,eAAe,IAAI,IAAI,CAAC;IACxB;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;;OAGG;IACH,QAAQ,IAAI,IAAI,CAAC;CAClB;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGnD;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,GACV,IAAI,CA2CN;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,IAAI,CAuBN;AA2ED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAkS7F"}