@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,15 +1,17 @@
1
- import { readManifestSourceConfig, discoverAssetsInTree } from './chunk-UVOJSWD2.js';
2
- import { installFromManifest } from './chunk-H4EGUQ7M.js';
3
- import { defaultLibraryDir, resolveLibraryDir } from './chunk-IWCCZL7C.js';
4
- import { getGlobalCacheDir, resolveSourcePublisher } from './chunk-MXXKTQXJ.js';
5
- import { globalSkaileDir, mergeLegacyEntriesInto, migrateLegacyDir, globalCacheRoot } from './chunk-TLKM4M47.js';
6
- import { encodeSkaileManifest } from './chunk-AG44ZJ7W.js';
7
- import { parseAssetRef } from './chunk-43ZBF3WH.js';
1
+ import { barePublisher, createDefaultRegistry, sharesItsFolder, readManifestSourceConfig, discoverAssetsInTree } from './chunk-Y7UBRRKG.js';
2
+ import { installFromManifest, assertSafeManifestPath } from './chunk-VKSA2CDJ.js';
3
+ import { defaultLibraryDir, resolveLibraryDir, GLOBAL_INSTALL_DIR_NAME, readLock, buildLibraryLockEntries, writeLock, mergeLockFile, buildLockFile, ManifestYamlEditor } from './chunk-6GBQND2F.js';
4
+ import { getGlobalCacheDir, storeManifestSlug, resolveSourcePublisher } from './chunk-KBAE7PU7.js';
5
+ import { userConfigPath, globalSkaileDir, mergeLegacyEntriesInto, migrateLegacyDir, globalCacheRoot } from './chunk-MFHKHXDE.js';
6
+ import { encodeSkaileManifest, loadSkPublishManifest, SKAILE_MANIFEST_FILENAME } from './chunk-SR4RFKHM.js';
7
+ import { scanDirectory } from './chunk-LFMX2UEF.js';
8
+ import { parseAssetRef, assetRefToStr } from './chunk-WX74MVNA.js';
8
9
  import { PresetManifestSchema } from './chunk-5CYEWBPB.js';
9
10
  import { __export } from './chunk-NSBPE2FW.js';
10
11
  import * as fs10 from 'fs';
11
- import { existsSync, mkdirSync } from 'fs';
12
- import * as path5 from 'path';
12
+ import { existsSync, mkdirSync, symlinkSync, copyFileSync, cpSync } from 'fs';
13
+ import * as path4 from 'path';
14
+ import { resolve, relative, sep, join, dirname } from 'path';
13
15
  import { stringify, parse, parseDocument } from 'yaml';
14
16
  import * as z3 from 'zod';
15
17
  import * as crypto from 'crypto';
@@ -18,6 +20,7 @@ import { createClient } from '@libsql/client';
18
20
  import { drizzle } from 'drizzle-orm/libsql';
19
21
  import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core';
20
22
  import { spawnSync } from 'child_process';
23
+ import { isDeepStrictEqual } from 'util';
21
24
 
22
25
  // library/src/library.ts
23
26
  var KNOWN_ASSET_KINDS = [
@@ -113,7 +116,7 @@ var SkaileConfigSchema = z3.object({
113
116
  library: LibraryConfigSchema.optional()
114
117
  });
115
118
  function defaultIndexPath() {
116
- return path5.join(globalSkaileDir(), "index.db");
119
+ return path4.join(globalSkaileDir(), "index.db");
117
120
  }
118
121
  function resolveIndexPath() {
119
122
  if (process.env.SKAILE_INDEX_PATH) return process.env.SKAILE_INDEX_PATH;
@@ -126,11 +129,8 @@ function getConfigDefaults() {
126
129
  };
127
130
  }
128
131
  var CONFIG_FILENAME = "config.yaml";
129
- function userConfigPath() {
130
- return path5.join(globalSkaileDir(), CONFIG_FILENAME);
131
- }
132
132
  function projectConfigPath(projectDir) {
133
- return path5.join(projectDir, ".skaile", CONFIG_FILENAME);
133
+ return path4.join(projectDir, ".skaile", CONFIG_FILENAME);
134
134
  }
135
135
  function loadConfigFile(filePath) {
136
136
  if (!fs10.existsSync(filePath)) return null;
@@ -183,7 +183,7 @@ function resolveConfig(opts) {
183
183
  return resolved;
184
184
  }
185
185
  function saveConfig(filePath, config) {
186
- const dir = path5.dirname(filePath);
186
+ const dir = path4.dirname(filePath);
187
187
  if (!fs10.existsSync(dir)) {
188
188
  fs10.mkdirSync(dir, { recursive: true });
189
189
  }
@@ -213,11 +213,11 @@ function validateKnowledge(data) {
213
213
 
214
214
  // library/src/knowledge/knowledge-kind-provider.ts
215
215
  function collectDirRecursive(baseDir, relativeDir) {
216
- const full = path5.join(baseDir, relativeDir);
216
+ const full = path4.join(baseDir, relativeDir);
217
217
  if (!fs10.existsSync(full) || !fs10.statSync(full).isDirectory()) return [];
218
218
  const results = [];
219
219
  for (const entry of fs10.readdirSync(full, { withFileTypes: true })) {
220
- const rel = path5.posix.join(relativeDir, entry.name);
220
+ const rel = path4.posix.join(relativeDir, entry.name);
221
221
  if (entry.isDirectory()) {
222
222
  results.push(...collectDirRecursive(baseDir, rel));
223
223
  } else if (entry.isFile()) {
@@ -244,8 +244,8 @@ var knowledgeKindProvider = {
244
244
  return validateKnowledge(data);
245
245
  },
246
246
  defaultFileFilter(manifestPath) {
247
- const dir = path5.dirname(manifestPath);
248
- const manifestName = path5.basename(manifestPath);
247
+ const dir = path4.dirname(manifestPath);
248
+ const manifestName = path4.basename(manifestPath);
249
249
  const files = [manifestName];
250
250
  files.push(...collectDirRecursive(dir, "documents"));
251
251
  files.sort();
@@ -324,30 +324,30 @@ var assignments = sqliteTable("assignments", {
324
324
  assignedAt: text("assigned_at").notNull()
325
325
  });
326
326
  function isClone(dir) {
327
- return fs10.existsSync(path5.join(dir, ".git"));
327
+ return fs10.existsSync(path4.join(dir, ".git"));
328
328
  }
329
329
  function getSidecarRoot() {
330
330
  const home = globalSkaileDir();
331
- const sidecars = path5.join(home, "sidecars");
332
- const legacy = path5.join(home, "sources");
331
+ const sidecars = path4.join(home, "sidecars");
332
+ const legacy = path4.join(home, "sources");
333
333
  mergeLegacyEntriesInto(getGlobalCacheDir(), legacy, isClone);
334
334
  mergeLegacyEntriesInto(sidecars, legacy, (p) => !isClone(p));
335
335
  return sidecars;
336
336
  }
337
337
  function resolveSidecarPaths(slug) {
338
338
  const rootDir = getSidecarRoot();
339
- const sidecarDir = path5.join(rootDir, slug);
339
+ const sidecarDir = path4.join(rootDir, slug);
340
340
  return {
341
341
  rootDir,
342
342
  sidecarDir,
343
- manifestFile: path5.join(sidecarDir, "skaile.manifest.yaml"),
344
- readmeFile: path5.join(sidecarDir, "README.md"),
345
- lockFile: path5.join(sidecarDir, "skaile.manifest.lock.json")
343
+ manifestFile: path4.join(sidecarDir, "skaile.manifest.yaml"),
344
+ readmeFile: path4.join(sidecarDir, "README.md"),
345
+ lockFile: path4.join(sidecarDir, "skaile.manifest.lock.json")
346
346
  };
347
347
  }
348
348
  function deriveSlug(sourceConfig, sourcePath, existingSlugs) {
349
349
  const fromConfig = sourceConfig && typeof sourceConfig.name === "string" ? sourceConfig.name : void 0;
350
- const base = fromConfig && fromConfig.length > 0 ? slugify(fromConfig) : slugify(path5.basename(sourcePath || "")) || "unnamed-source";
350
+ const base = fromConfig && fromConfig.length > 0 ? slugify(fromConfig) : slugify(path4.basename(sourcePath || "")) || "unnamed-source";
351
351
  const taken = new Set(existingSlugs);
352
352
  if (!taken.has(base)) return base;
353
353
  for (let i = 2; i < 1e3; i++) {
@@ -373,13 +373,17 @@ function slugify(input) {
373
373
 
374
374
  // library/src/local/store-paths.ts
375
375
  function getStoreRoot() {
376
- return path5.join(globalSkaileDir(), "store");
376
+ return path4.join(globalSkaileDir(), "store");
377
377
  }
378
378
  function getStoreManifestsDir() {
379
- return path5.join(getStoreRoot(), "manifests");
379
+ return path4.join(getStoreRoot(), "manifests");
380
+ }
381
+ function curatedManifestOverlay(sourceUrl) {
382
+ const file = path4.join(getStoreManifestsDir(), `${storeManifestSlug(sourceUrl)}.yaml`);
383
+ return fs10.existsSync(file) ? file : void 0;
380
384
  }
381
385
  function migratedMarkerPath() {
382
- return path5.join(getStoreRoot(), ".migrated");
386
+ return path4.join(getStoreRoot(), ".migrated");
383
387
  }
384
388
  function collectSidecarMigrationCandidates(sidecarRoot) {
385
389
  const candidates = [];
@@ -387,9 +391,9 @@ function collectSidecarMigrationCandidates(sidecarRoot) {
387
391
  for (const entry of fs10.readdirSync(sidecarRoot, { withFileTypes: true })) {
388
392
  if (!entry.isDirectory()) continue;
389
393
  if (entry.name.startsWith(".")) continue;
390
- const sidecarDir = path5.join(sidecarRoot, entry.name);
391
- const current = path5.join(sidecarDir, "skaile.manifest.yaml");
392
- const legacy = path5.join(sidecarDir, ".skaile-source.yaml");
394
+ const sidecarDir = path4.join(sidecarRoot, entry.name);
395
+ const current = path4.join(sidecarDir, "skaile.manifest.yaml");
396
+ const legacy = path4.join(sidecarDir, ".skaile-source.yaml");
393
397
  const src = fs10.existsSync(current) ? current : fs10.existsSync(legacy) ? legacy : void 0;
394
398
  if (src) candidates.push({ src, slug: entry.name });
395
399
  }
@@ -399,7 +403,7 @@ function collectSidecarMigrationCandidates(sidecarRoot) {
399
403
  function moveSidecarManifests(candidates, manifestsDir) {
400
404
  let migrated = 0;
401
405
  for (const { src, slug } of candidates) {
402
- const dest = path5.join(manifestsDir, `${slug}.yaml`);
406
+ const dest = path4.join(manifestsDir, `${slug}.yaml`);
403
407
  if (fs10.existsSync(dest)) continue;
404
408
  try {
405
409
  fs10.renameSync(src, dest);
@@ -414,11 +418,11 @@ function moveSidecarManifests(candidates, manifestsDir) {
414
418
  return migrated;
415
419
  }
416
420
  function initStoreGitRepo(storeRoot) {
417
- if (fs10.existsSync(path5.join(storeRoot, ".git"))) return;
421
+ if (fs10.existsSync(path4.join(storeRoot, ".git"))) return;
418
422
  try {
419
423
  spawnSync("git", ["init", "--quiet"], { cwd: storeRoot, stdio: "ignore" });
420
424
  fs10.writeFileSync(
421
- path5.join(storeRoot, ".gitignore"),
425
+ path4.join(storeRoot, ".gitignore"),
422
426
  "# Remote-store cache \u2014 local to this machine.\nremote-cache/\n",
423
427
  "utf8"
424
428
  );
@@ -516,7 +520,7 @@ async function librariesPresent(client) {
516
520
  return rs.rows.length > 0;
517
521
  }
518
522
  function slugify2(p) {
519
- const base = path5.basename(p) || "lib";
523
+ const base = path4.basename(p) || "lib";
520
524
  return base.toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-|-$/g, "") || "lib";
521
525
  }
522
526
  async function runLibrariesMigration(client) {
@@ -681,19 +685,19 @@ async function purgeOrphanedAssetDefinitions(client) {
681
685
  }
682
686
  function assertNoLegacyLibDb(newDbPath) {
683
687
  if (fs10.existsSync(newDbPath)) return;
684
- const parent = path5.dirname(newDbPath);
688
+ const parent = path4.dirname(newDbPath);
685
689
  const skaileHome = globalSkaileDir();
686
- const defaultIndexPath2 = path5.join(skaileHome, "index.db");
690
+ const defaultIndexPath2 = path4.join(skaileHome, "index.db");
687
691
  const candidates = [];
688
- if (path5.basename(newDbPath) === "index.db") {
689
- candidates.push(path5.join(parent, "lib.db"));
692
+ if (path4.basename(newDbPath) === "index.db") {
693
+ candidates.push(path4.join(parent, "lib.db"));
690
694
  }
691
695
  if (newDbPath === defaultIndexPath2) {
692
- candidates.push(path5.join(skaileHome, "libraries", "lib.db"));
693
- candidates.push(path5.join(skaileHome, "library", "lib.db"));
696
+ candidates.push(path4.join(skaileHome, "libraries", "lib.db"));
697
+ candidates.push(path4.join(skaileHome, "library", "lib.db"));
694
698
  }
695
- if (path5.basename(parent) === "libraries") {
696
- candidates.push(path5.join(path5.dirname(parent), "library", "lib.db"));
699
+ if (path4.basename(parent) === "libraries") {
700
+ candidates.push(path4.join(path4.dirname(parent), "library", "lib.db"));
697
701
  }
698
702
  for (const legacy of candidates) {
699
703
  if (!fs10.existsSync(legacy)) continue;
@@ -855,14 +859,14 @@ var LocalIndex = class {
855
859
  let dbPath;
856
860
  if (typeof optionsOrDir === "string") {
857
861
  dir = optionsOrDir;
858
- dbPath = path5.join(dir, "index.db");
862
+ dbPath = path4.join(dir, "index.db");
859
863
  } else if (optionsOrDir?.indexPath) {
860
864
  dbPath = optionsOrDir.indexPath;
861
865
  dir = optionsOrDir.libraryDir ?? resolveLibraryDir();
862
866
  this._kindRegistry = optionsOrDir.kindRegistry;
863
867
  } else if (optionsOrDir?.libraryDir) {
864
868
  dir = optionsOrDir.libraryDir;
865
- dbPath = path5.join(dir, "index.db");
869
+ dbPath = path4.join(dir, "index.db");
866
870
  this._kindRegistry = optionsOrDir.kindRegistry;
867
871
  } else {
868
872
  dir = resolveLibraryDir();
@@ -872,7 +876,7 @@ var LocalIndex = class {
872
876
  if (!fs10.existsSync(dir)) {
873
877
  fs10.mkdirSync(dir, { recursive: true });
874
878
  }
875
- const dbParent = path5.dirname(dbPath);
879
+ const dbParent = path4.dirname(dbPath);
876
880
  if (!fs10.existsSync(dbParent)) {
877
881
  fs10.mkdirSync(dbParent, { recursive: true });
878
882
  }
@@ -1094,7 +1098,7 @@ var LocalIndex = class {
1094
1098
  * @returns The created Instance plus its on-disk install path.
1095
1099
  */
1096
1100
  async install(manifest, opts) {
1097
- const libraryRoot = opts?.libraryRoot ?? path5.join(this.libraryDir, "installed");
1101
+ const libraryRoot = opts?.libraryRoot ?? path4.join(this.libraryDir, GLOBAL_INSTALL_DIR_NAME);
1098
1102
  const { installPath } = await installFromManifest({
1099
1103
  manifest,
1100
1104
  libraryRoot,
@@ -1251,7 +1255,7 @@ function git(cwd, args) {
1251
1255
  return spawnSync("git", args, { cwd, encoding: "utf-8" });
1252
1256
  }
1253
1257
  function isGitRepo(libPath) {
1254
- return existsSync(path5.join(libPath, ".git"));
1258
+ return existsSync(path4.join(libPath, ".git"));
1255
1259
  }
1256
1260
  function spawnGit(cwd, args, action) {
1257
1261
  const r = git(cwd, args);
@@ -1261,8 +1265,15 @@ function spawnGit(cwd, args, action) {
1261
1265
  }
1262
1266
  }
1263
1267
  function setOriginUrl(libPath, url) {
1264
- const hasOrigin = git(libPath, ["remote", "get-url", "origin"]).status === 0;
1268
+ const current = git(libPath, ["remote", "get-url", "origin"]);
1269
+ const hasOrigin = current.status === 0;
1265
1270
  spawnGit(libPath, ["remote", hasOrigin ? "set-url" : "add", "--", "origin", url], "remote");
1271
+ if (hasOrigin && current.stdout.trim() !== url) {
1272
+ const refs = git(libPath, ["for-each-ref", "--format=%(refname)", "refs/remotes/origin"]);
1273
+ for (const ref of refs.stdout.split("\n").filter(Boolean)) {
1274
+ spawnGit(libPath, ["update-ref", "--no-deref", "-d", ref], "update-ref");
1275
+ }
1276
+ }
1266
1277
  }
1267
1278
  function ensureGitRepo(libPath, url, branch) {
1268
1279
  if (!isGitRepo(libPath)) {
@@ -1606,7 +1617,7 @@ var LibraryManager = class {
1606
1617
  (l) => l.isDefault && (l.ownership === "owner" || l.ownership === "contributor")
1607
1618
  );
1608
1619
  if (writableDefault) return { library: writableDefault, created: false };
1609
- const personalPath = path5.join(librariesDir, "personal");
1620
+ const personalPath = path4.join(librariesDir, "personal");
1610
1621
  fs10.mkdirSync(personalPath, { recursive: true });
1611
1622
  const lib = await this.addLibrary({
1612
1623
  name: "personal",
@@ -1637,6 +1648,24 @@ function describeSyncError(err) {
1637
1648
  }
1638
1649
  return parts.join(": ");
1639
1650
  }
1651
+ function scanLibraryRoot(rootPath, registry, scanOpts) {
1652
+ const fallbackPublisher = resolveSourcePublisher(rootPath) ?? (path4.basename(rootPath) || "unknown");
1653
+ const opts = {
1654
+ registry,
1655
+ sidecarManifestFile: scanOpts?.sidecarManifestFile,
1656
+ sidecarPath: scanOpts?.sidecarPath,
1657
+ includeDev: scanOpts?.includeDev ?? false,
1658
+ publisher: fallbackPublisher
1659
+ };
1660
+ if (!scanOpts?.sidecarPath && !scanOpts?.sidecarManifestFile) {
1661
+ opts.sourceConfig = readManifestSourceConfig(rootPath, fallbackPublisher);
1662
+ }
1663
+ return discoverAssetsInTree(rootPath, opts);
1664
+ }
1665
+ function libraryScanOptions(library) {
1666
+ const url = library.ownership === "reader" && library.backendConfig && "url" in library.backendConfig ? library.backendConfig.url : void 0;
1667
+ return { includeDev: true, sidecarManifestFile: url ? curatedManifestOverlay(url) : void 0 };
1668
+ }
1640
1669
  var LocalCatalogSource = class {
1641
1670
  constructor(library, sourceId, rootPath, registry, options) {
1642
1671
  this.library = library;
@@ -1673,9 +1702,9 @@ var LocalCatalogSource = class {
1673
1702
  libraryId: this.sourceId,
1674
1703
  kind: parsed.kind
1675
1704
  });
1676
- const wantPublisher = parsed.publisher?.replace(/^@/, "");
1705
+ const wantPublisher = parsed.publisher === void 0 ? void 0 : barePublisher(parsed.publisher);
1677
1706
  return defs.filter(
1678
- (d) => d.name === parsed.name && (wantPublisher === void 0 || d.publisher.replace(/^@/, "") === wantPublisher)
1707
+ (d) => d.name === parsed.name && (wantPublisher === void 0 || barePublisher(d.publisher) === wantPublisher)
1679
1708
  ).map((d) => d.version);
1680
1709
  }
1681
1710
  async fetchTarball(_ref, _sha256) {
@@ -1696,18 +1725,11 @@ var LocalCatalogSource = class {
1696
1725
  * config's `dev_paths` (e.g. `ai-assets-dev/`) are discovered too.
1697
1726
  */
1698
1727
  scan(scanOpts) {
1699
- const fallbackPublisher = resolveSourcePublisher(this.rootPath) ?? (path5.basename(this.rootPath) || "unknown");
1700
- const opts = {
1701
- registry: this.registry,
1702
- sidecarManifestFile: this.sidecarManifestFile,
1728
+ return scanLibraryRoot(this.rootPath, this.registry, {
1703
1729
  sidecarPath: this.sidecarPath,
1704
- includeDev: scanOpts?.includeDev ?? false,
1705
- publisher: fallbackPublisher
1706
- };
1707
- if (!this.sidecarPath && !this.sidecarManifestFile) {
1708
- opts.sourceConfig = readManifestSourceConfig(this.rootPath, fallbackPublisher);
1709
- }
1710
- return discoverAssetsInTree(this.rootPath, opts);
1730
+ sidecarManifestFile: this.sidecarManifestFile,
1731
+ includeDev: scanOpts?.includeDev
1732
+ });
1711
1733
  }
1712
1734
  /**
1713
1735
  * Sync: discover assets in the source directory and cache them in the library.
@@ -1793,6 +1815,61 @@ function defToCatalogAsset(def) {
1793
1815
  manifest: def.manifest
1794
1816
  };
1795
1817
  }
1818
+
1819
+ // library/src/local/install-library-asset.ts
1820
+ function installLibraryAsset(opts) {
1821
+ const { def, library, mode } = opts;
1822
+ const publisher = barePublisher(def.publisher);
1823
+ const ref = assetRefToStr({ kind: def.kind, name: def.name, publisher, pin: def.version });
1824
+ const registry = opts.registry ?? createDefaultRegistry();
1825
+ const found = scanLibraryRoot(library.path, registry, libraryScanOptions(library)).assets.find(
1826
+ (a) => a.kind === def.kind && a.name === def.name && barePublisher(a.publisher) === publisher && a.version === def.version
1827
+ );
1828
+ if (!found) {
1829
+ const reindex = library.ownership === "reader" ? "skaile source sync" : `skaile library index ${library.name}`;
1830
+ throw new Error(
1831
+ `${ref} not found in library "${library.name}" at version ${def.version} \u2014 run \`${reindex}\``
1832
+ );
1833
+ }
1834
+ if (def.sha256 && found.sha256 !== def.sha256) {
1835
+ throw new Error(
1836
+ `hash mismatch for ${ref}: indexed ${def.sha256}, library has ${found.sha256} \u2014 run \`skaile library index ${library.name}\``
1837
+ );
1838
+ }
1839
+ const libRoot = resolve(library.path);
1840
+ const srcRoot = resolve(found.fileFilter.assetRoot);
1841
+ const target = resolve(opts.targetDir);
1842
+ const fileScoped = sharesItsFolder(def.kind, registry);
1843
+ const manifestAbs = resolve(found.manifestPath);
1844
+ const src = fileScoped ? manifestAbs : srcRoot;
1845
+ const rel = relative(libRoot, src).split(sep).join("/");
1846
+ if (!rel) {
1847
+ throw new Error(`${ref} sits at the root of library "${library.name}"; move it into a folder`);
1848
+ }
1849
+ assertSafeManifestPath(target, rel);
1850
+ const installPath = resolve(target, rel);
1851
+ const lockPath = join(target, "skaile.lock.yaml");
1852
+ const prevLock = readLock(lockPath);
1853
+ mkdirSync(dirname(installPath), { recursive: true });
1854
+ if (mode === "link") symlinkSync(src, installPath);
1855
+ else if (fileScoped) copyFileSync(src, installPath);
1856
+ else cpSync(src, installPath, { recursive: true });
1857
+ const lockEntries = buildLibraryLockEntries([
1858
+ {
1859
+ kind: def.kind,
1860
+ publisher,
1861
+ name: def.name,
1862
+ library: {
1863
+ name: library.name,
1864
+ version: def.version,
1865
+ sha256: found.sha256,
1866
+ installed: mode
1867
+ }
1868
+ }
1869
+ ]);
1870
+ writeLock(lockPath, mergeLockFile(prevLock, buildLockFile([], /* @__PURE__ */ new Set(), lockEntries)));
1871
+ return { installPath, lockKey: Object.keys(lockEntries)[0] ?? ref, sha256: found.sha256 };
1872
+ }
1796
1873
  var FALLBACK_USER_NAME = "Skaile CLI";
1797
1874
  var FALLBACK_USER_EMAIL = "skaile-cli@local";
1798
1875
  var ROOT_README = `# Skaile Sidecar Manifests
@@ -1840,7 +1917,7 @@ var SidecarGit = class {
1840
1917
  if (!fs10.existsSync(this.rootDir)) {
1841
1918
  fs10.mkdirSync(this.rootDir, { recursive: true });
1842
1919
  }
1843
- const gitDir = path5.join(this.rootDir, ".git");
1920
+ const gitDir = path4.join(this.rootDir, ".git");
1844
1921
  const freshRepo = !fs10.existsSync(gitDir);
1845
1922
  if (freshRepo) {
1846
1923
  const init = this.spawn(["init", "-b", "main"]);
@@ -1848,9 +1925,9 @@ var SidecarGit = class {
1848
1925
  throw new Error(`git init failed: ${init.stderr || init.stdout}`);
1849
1926
  }
1850
1927
  }
1851
- const attrsPath = path5.join(this.rootDir, ".gitattributes");
1928
+ const attrsPath = path4.join(this.rootDir, ".gitattributes");
1852
1929
  if (!fs10.existsSync(attrsPath)) fs10.writeFileSync(attrsPath, GITATTRIBUTES, "utf-8");
1853
- const readmePath = path5.join(this.rootDir, "README.md");
1930
+ const readmePath = path4.join(this.rootDir, "README.md");
1854
1931
  if (!fs10.existsSync(readmePath)) fs10.writeFileSync(readmePath, ROOT_README, "utf-8");
1855
1932
  if (!this.hasGlobalGitConfig("user.name")) {
1856
1933
  this.spawn(["config", "user.name", FALLBACK_USER_NAME]);
@@ -1876,7 +1953,7 @@ var SidecarGit = class {
1876
1953
  */
1877
1954
  async commit(slug, message, opts) {
1878
1955
  if (opts?.skip) return;
1879
- const slugDir = path5.join(this.rootDir, slug);
1956
+ const slugDir = path4.join(this.rootDir, slug);
1880
1957
  if (fs10.existsSync(slugDir)) {
1881
1958
  this.spawn(["add", "--", slug]);
1882
1959
  } else {
@@ -1937,7 +2014,7 @@ ${result.stderr}`;
1937
2014
  };
1938
2015
  function migrateWorkspaceConfig(dir, opts) {
1939
2016
  const filename = opts?.filename ?? "skaile.yaml";
1940
- const filePath = path5.join(dir, filename);
2017
+ const filePath = path4.join(dir, filename);
1941
2018
  if (!fs10.existsSync(filePath)) {
1942
2019
  return { migrated: false, version: 1, warnings: ["No skaile.yaml found"] };
1943
2020
  }
@@ -2162,8 +2239,8 @@ function resolveTemplate(template, context) {
2162
2239
  });
2163
2240
  return { value: result, hasSecret: false };
2164
2241
  }
2165
- function setNestedValue(obj, path15, value) {
2166
- const parts = path15.split(".");
2242
+ function setNestedValue(obj, path16, value) {
2243
+ const parts = path16.split(".");
2167
2244
  let current = obj;
2168
2245
  for (let i = 0; i < parts.length - 1; i++) {
2169
2246
  const key = parts[i];
@@ -2768,8 +2845,8 @@ function deepEqual(a, b) {
2768
2845
  function defaultCatalogCacheDir() {
2769
2846
  const home = globalSkaileDir();
2770
2847
  return migrateLegacyDir(
2771
- path5.join(globalCacheRoot(), "catalog"),
2772
- path5.join(home, "catalog-cache")
2848
+ path4.join(globalCacheRoot(), "catalog"),
2849
+ path4.join(home, "catalog-cache")
2773
2850
  );
2774
2851
  }
2775
2852
  var INDEX_FILE = "index.json";
@@ -2842,7 +2919,7 @@ var CatalogCache = class {
2842
2919
  // ── public: tarball cache ───────────────────────────────────────────────
2843
2920
  /** Absolute path where a tarball with `sha256` would be cached. */
2844
2921
  tarballPath(sha256) {
2845
- return path5.join(this.dir, TARBALL_DIR, `${sha256}.tgz`);
2922
+ return path4.join(this.dir, TARBALL_DIR, `${sha256}.tgz`);
2846
2923
  }
2847
2924
  /** Read a cached tarball from disk if present, otherwise `null`. */
2848
2925
  readTarball(sha256) {
@@ -2852,7 +2929,7 @@ var CatalogCache = class {
2852
2929
  }
2853
2930
  /** Persist a tarball blob to disk (atomic write). */
2854
2931
  writeTarball(sha256, bytes) {
2855
- const dir = path5.join(this.dir, TARBALL_DIR);
2932
+ const dir = path4.join(this.dir, TARBALL_DIR);
2856
2933
  if (!fs10.existsSync(dir)) fs10.mkdirSync(dir, { recursive: true });
2857
2934
  const finalPath = this.tarballPath(sha256);
2858
2935
  const tmpPath = `${finalPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
@@ -2876,7 +2953,7 @@ var CatalogCache = class {
2876
2953
  */
2877
2954
  invalidateEverything() {
2878
2955
  this.invalidateAll();
2879
- const tarballDir = path5.join(this.dir, TARBALL_DIR);
2956
+ const tarballDir = path4.join(this.dir, TARBALL_DIR);
2880
2957
  if (fs10.existsSync(tarballDir)) {
2881
2958
  fs10.rmSync(tarballDir, { recursive: true, force: true });
2882
2959
  }
@@ -2888,11 +2965,11 @@ var CatalogCache = class {
2888
2965
  // ── private ─────────────────────────────────────────────────────────────
2889
2966
  ensureDir() {
2890
2967
  if (!fs10.existsSync(this.dir)) fs10.mkdirSync(this.dir, { recursive: true });
2891
- const tarballDir = path5.join(this.dir, TARBALL_DIR);
2968
+ const tarballDir = path4.join(this.dir, TARBALL_DIR);
2892
2969
  if (!fs10.existsSync(tarballDir)) fs10.mkdirSync(tarballDir, { recursive: true });
2893
2970
  }
2894
2971
  indexPath() {
2895
- return path5.join(this.dir, INDEX_FILE);
2972
+ return path4.join(this.dir, INDEX_FILE);
2896
2973
  }
2897
2974
  loadIndex() {
2898
2975
  if (this.index) return this.index;
@@ -3726,37 +3803,8 @@ var defaultFetch2 = async (url, init) => {
3726
3803
  signal: requestInit.signal ?? AbortSignal.timeout(CATALOG_REQUEST_TIMEOUT_MS2)
3727
3804
  });
3728
3805
  };
3729
- var MANIFEST_FILENAME = "skaile.manifest.yaml";
3730
- async function writeManifestIfMissing(input) {
3731
- const manifestPath = path5.join(input.libraryPath, MANIFEST_FILENAME);
3732
- if (fs10.existsSync(manifestPath)) return { wrote: false, manifestPath };
3733
- const now = (/* @__PURE__ */ new Date()).toISOString();
3734
- const yaml = `# Generated by skaile library add on ${now}
3735
- # Edit by hand to inline discovered assets; or run \`skaile library refresh-manifest\`.
3736
- publisher: ""
3737
- assets: []
3738
- `;
3739
- fs10.writeFileSync(manifestPath, yaml, "utf-8");
3740
- if (input.ownership !== "owner") {
3741
- const excludePath = path5.join(input.libraryPath, ".git", "info", "exclude");
3742
- if (fs10.existsSync(path5.dirname(excludePath))) {
3743
- const current = fs10.existsSync(excludePath) ? fs10.readFileSync(excludePath, "utf-8") : "";
3744
- if (!current.includes(MANIFEST_FILENAME)) {
3745
- fs10.writeFileSync(
3746
- excludePath,
3747
- (current.endsWith("\n") || current === "" ? current : `${current}
3748
- `) + `# skaile-managed local-overlay manifest
3749
- ${MANIFEST_FILENAME}
3750
- `,
3751
- "utf-8"
3752
- );
3753
- }
3754
- }
3755
- }
3756
- return { wrote: true, manifestPath };
3757
- }
3758
3806
  function discoveredToAssetEntry(asset, repoPublisher, inheritPublisher) {
3759
- const root = path5.posix.dirname(asset.relativePath.replace(/\\/g, "/"));
3807
+ const root = path4.posix.dirname(asset.relativePath.replace(/\\/g, "/"));
3760
3808
  const entry = {
3761
3809
  kind: asset.kind,
3762
3810
  name: asset.name,
@@ -3780,10 +3828,91 @@ function writeCuratedManifest(input) {
3780
3828
  const inheritPublisher = input.inheritPublisher ?? false;
3781
3829
  const assets = input.assets.filter((a) => a.kind !== "preset").map((a) => discoveredToAssetEntry(a, publisher, inheritPublisher)).sort((a, b) => `${a.kind}:${a.name}`.localeCompare(`${b.kind}:${b.name}`));
3782
3830
  const manifest = { publisher, assets };
3783
- fs10.mkdirSync(path5.dirname(manifestPath), { recursive: true });
3831
+ fs10.mkdirSync(path4.dirname(manifestPath), { recursive: true });
3784
3832
  fs10.writeFileSync(manifestPath, encodeSkaileManifest(manifest), "utf-8");
3785
3833
  return { wrote: true, manifestPath, assetCount: assets.length };
3786
3834
  }
3835
+ function openManifest(libraryPath) {
3836
+ const dir = path4.resolve(libraryPath);
3837
+ const file = path4.join(dir, SKAILE_MANIFEST_FILENAME);
3838
+ if (!fs10.existsSync(file)) {
3839
+ fs10.mkdirSync(dir, { recursive: true });
3840
+ return { editor: ManifestYamlEditor.create(file), created: true };
3841
+ }
3842
+ const editor = ManifestYamlEditor.load(file);
3843
+ const problem = editor.problem();
3844
+ if (problem) throw new Error(`${file} is not a valid manifest: ${problem}`);
3845
+ return { editor, created: false };
3846
+ }
3847
+ function assertManifestEditable(libraryPath) {
3848
+ openManifest(libraryPath);
3849
+ }
3850
+ function upsertManifestAsset(libraryPath, input) {
3851
+ const { editor } = openManifest(libraryPath);
3852
+ const declared = editor.getPublisher();
3853
+ const topLevel = declared === void 0 ? void 0 : barePublisher(declared);
3854
+ const overridesTopLevel = !!input.publisher && input.publisher !== topLevel;
3855
+ const entry = { kind: input.kind, name: input.name, root: input.root };
3856
+ if (input.version) entry.version = input.version;
3857
+ if (overridesTopLevel) entry.publisher = input.publisher;
3858
+ if (input.description) entry.description = input.description;
3859
+ if (input.keywords && input.keywords.length > 0) entry.keywords = input.keywords;
3860
+ const existing = editor.getAssets().find((a) => a.kind === input.kind && a.name === input.name);
3861
+ const next = existing ? { ...existing, ...entry } : entry;
3862
+ if (existing && input.publisher && !overridesTopLevel) delete next.publisher;
3863
+ if (!existing || !isDeepStrictEqual(existing, next)) {
3864
+ editor.setAsset(next);
3865
+ editor.save();
3866
+ }
3867
+ return { manifestPath: editor.path, added: !existing };
3868
+ }
3869
+ function missingRootAssets(libraryPath, manifest) {
3870
+ return (manifest.assets ?? []).filter((a) => {
3871
+ if (a.source || manifest.source || !a.root) return false;
3872
+ const dir = path4.resolve(libraryPath, a.root);
3873
+ return !(fs10.existsSync(dir) && fs10.statSync(dir).isDirectory());
3874
+ });
3875
+ }
3876
+ function pruneMissingRootAssets(libraryPath) {
3877
+ const manifest = loadSkPublishManifest(libraryPath);
3878
+ if (!manifest) return [];
3879
+ const missing = missingRootAssets(libraryPath, manifest);
3880
+ if (missing.length === 0) return [];
3881
+ const { editor } = openManifest(libraryPath);
3882
+ const removed = missing.filter((a) => editor.removeAsset(a.kind, a.name));
3883
+ if (removed.length > 0) editor.save();
3884
+ return removed;
3885
+ }
3886
+ function stampManifestPublisher(libraryPath, publisher) {
3887
+ const { editor, created } = openManifest(libraryPath);
3888
+ if (editor.getPublisher()) return false;
3889
+ editor.setPublisher(publisher);
3890
+ if (created) editor.ensureAssets();
3891
+ editor.save();
3892
+ return true;
3893
+ }
3894
+ function setManifestPublisher(libraryPath, publisher) {
3895
+ const { editor, created } = openManifest(libraryPath);
3896
+ if (editor.getPublisher() === publisher) return false;
3897
+ editor.setPublisher(publisher);
3898
+ if (created) editor.ensureAssets();
3899
+ editor.save();
3900
+ return true;
3901
+ }
3902
+ async function syncManifestWithDisk(libraryPath, defaultPublisher) {
3903
+ stampManifestPublisher(libraryPath, defaultPublisher);
3904
+ const removed = pruneMissingRootAssets(libraryPath);
3905
+ const publisher = loadSkPublishManifest(libraryPath)?.publisher ?? defaultPublisher;
3906
+ for (const e of await scanDirectory(libraryPath, publisher)) {
3907
+ upsertManifestAsset(libraryPath, {
3908
+ kind: e.kind,
3909
+ name: e.name,
3910
+ root: path4.relative(libraryPath, path4.dirname(e.source)) || e.name,
3911
+ version: e.version
3912
+ });
3913
+ }
3914
+ return removed;
3915
+ }
3787
3916
  var PinPolicySchema = z3.enum(PIN_POLICIES);
3788
3917
  var LibraryInstanceRefSchema = z3.object({
3789
3918
  id: z3.string().uuid(),
@@ -3836,7 +3965,7 @@ function parseWorkspaceV2(raw) {
3836
3965
  return WorkspaceConfigV2Schema.parse(raw);
3837
3966
  }
3838
3967
  function loadWorkspaceV2(dir, filename = "skaile.yaml") {
3839
- const filePath = path5.join(dir, filename);
3968
+ const filePath = path4.join(dir, filename);
3840
3969
  if (!fs10.existsSync(filePath)) return null;
3841
3970
  const content = fs10.readFileSync(filePath, "utf-8");
3842
3971
  const raw = parse(content);
@@ -3844,7 +3973,7 @@ function loadWorkspaceV2(dir, filename = "skaile.yaml") {
3844
3973
  return parseWorkspaceV2(raw);
3845
3974
  }
3846
3975
  function saveWorkspaceV2(dir, v2, filename = "skaile.yaml") {
3847
- const filePath = path5.join(dir, filename);
3976
+ const filePath = path4.join(dir, filename);
3848
3977
  let existing = {};
3849
3978
  if (fs10.existsSync(filePath)) {
3850
3979
  const content = fs10.readFileSync(filePath, "utf-8");
@@ -3860,7 +3989,7 @@ function saveWorkspaceV2(dir, v2, filename = "skaile.yaml") {
3860
3989
  }
3861
3990
  var LOCK_FILENAME = "skaile.lock.yaml";
3862
3991
  function loadLockFile(dir) {
3863
- const filePath = path5.join(dir, LOCK_FILENAME);
3992
+ const filePath = path4.join(dir, LOCK_FILENAME);
3864
3993
  if (!fs10.existsSync(filePath)) return null;
3865
3994
  const content = fs10.readFileSync(filePath, "utf-8");
3866
3995
  const raw = parse(content);
@@ -3878,7 +4007,7 @@ function loadLockFile(dir) {
3878
4007
  return LockFileSchema.parse(raw);
3879
4008
  }
3880
4009
  function saveLockFile(dir, lock) {
3881
- const filePath = path5.join(dir, LOCK_FILENAME);
4010
+ const filePath = path4.join(dir, LOCK_FILENAME);
3882
4011
  if (!fs10.existsSync(dir)) {
3883
4012
  fs10.mkdirSync(dir, { recursive: true });
3884
4013
  }
@@ -3899,7 +4028,7 @@ function createEmptyLockFile() {
3899
4028
  };
3900
4029
  }
3901
4030
  function detectWorkspaceVersion(dir, filename = "skaile.yaml") {
3902
- const filePath = path5.join(dir, filename);
4031
+ const filePath = path4.join(dir, filename);
3903
4032
  if (!fs10.existsSync(filePath)) return null;
3904
4033
  const content = fs10.readFileSync(filePath, "utf-8");
3905
4034
  const raw = parse(content);
@@ -3907,6 +4036,6 @@ function detectWorkspaceVersion(dir, filename = "skaile.yaml") {
3907
4036
  return raw.version === 2 ? 2 : 1;
3908
4037
  }
3909
4038
 
3910
- export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LOCAL_CATALOG_URL, LibraryConfigSchema, LibraryError, LibraryInstanceRefSchema, LibraryManager, LibrarySectionSchema, LibrarySyncError, LocalCatalogSource, LocalIndex, LocalSyncDriver, LockAssignmentSchema, LockFileSchema, OfflineError, OperationNotPermittedError, PIN_POLICIES, PinPolicySchema, PresetAppliedSchema, PresetExpandedSchema, RemoteCatalogSource, RequiresEdgeSchema, RestCatalogSource, SidecarGit, SkaileConfigSchema, SourceNotFoundError, TarballHashMismatchError, UserLibraryNotFoundError, WorkspaceConfigV2Schema, applyNonStructuralUpgrade, applyPreset, applyPresetFromData, classifyRef, cloneOrInitGitRepo, createEmptyLockFile, deriveSlug, detectChanges, detectNestedPresetRefs, detectWorkspaceVersion, ensureGitRepo, evaluateUpgrade, extractLibraryInstanceId, extractReferencedKeys, filterKey, getConfigDefaults, getDefaultValue, getSidecarRoot, getStoreManifestsDir, getStoreRoot, hasInterpolationTokens, interpolate, isGitRepo, isLocalCatalogUrl, isSecretPlaceholder, knowledgeKindProvider, listSidecarSlugsOnDisk, loadLockFile, loadWorkspaceV2, migrateSidecarsToStoreIfNeeded, migrateWorkspaceConfig, parsePreset, parsePresetYaml, parseWorkspaceV2, projectConfigPath, queryInstancePickerChoices, resolveAllItems, resolveConfig, resolveIndexPath, resolveItem, resolvePin, resolveSidecarPaths, saveConfig, saveLockFile, saveWorkspaceV2, setOriginUrl, sha256Hex, storeSecrets, trpcGetUrl, userConfigPath, validateAllPlaceholders, validateKnowledge, validateNestingDepth, validatePlaceholder, writeCuratedManifest, writeManifestIfMissing };
3911
- //# sourceMappingURL=chunk-SP47UJKE.js.map
3912
- //# sourceMappingURL=chunk-SP47UJKE.js.map
4039
+ export { AssignmentNotFoundError, CatalogCache, CatalogConfigSchema, CatalogHttpError, DuplicateAssignmentError, DuplicateLibraryNameError, GitSyncDriver, InstanceHasConsumersError, InstanceNotFoundError, InterpolationError, KNOWN_ASSET_KINDS, KnowledgeManifestSchema, LIBRARY_BACKENDS, LIBRARY_OWNERSHIPS, LOCAL_CATALOG_URL, LibraryConfigSchema, LibraryError, LibraryInstanceRefSchema, LibraryManager, LibrarySectionSchema, LibrarySyncError, LocalCatalogSource, LocalIndex, LocalSyncDriver, LockAssignmentSchema, LockFileSchema, OfflineError, OperationNotPermittedError, PIN_POLICIES, PinPolicySchema, PresetAppliedSchema, PresetExpandedSchema, RemoteCatalogSource, RequiresEdgeSchema, RestCatalogSource, SidecarGit, SkaileConfigSchema, SourceNotFoundError, TarballHashMismatchError, UserLibraryNotFoundError, WorkspaceConfigV2Schema, applyNonStructuralUpgrade, applyPreset, applyPresetFromData, assertManifestEditable, classifyRef, cloneOrInitGitRepo, createEmptyLockFile, curatedManifestOverlay, deriveSlug, detectChanges, detectNestedPresetRefs, detectWorkspaceVersion, ensureGitRepo, evaluateUpgrade, extractLibraryInstanceId, extractReferencedKeys, filterKey, getConfigDefaults, getDefaultValue, getSidecarRoot, getStoreManifestsDir, getStoreRoot, hasInterpolationTokens, installLibraryAsset, interpolate, isGitRepo, isLocalCatalogUrl, isSecretPlaceholder, knowledgeKindProvider, listSidecarSlugsOnDisk, loadLockFile, loadWorkspaceV2, migrateSidecarsToStoreIfNeeded, migrateWorkspaceConfig, missingRootAssets, parsePreset, parsePresetYaml, parseWorkspaceV2, projectConfigPath, pruneMissingRootAssets, queryInstancePickerChoices, resolveAllItems, resolveConfig, resolveIndexPath, resolveItem, resolvePin, resolveSidecarPaths, saveConfig, saveLockFile, saveWorkspaceV2, setManifestPublisher, setOriginUrl, sha256Hex, stampManifestPublisher, storeSecrets, syncManifestWithDisk, trpcGetUrl, upsertManifestAsset, validateAllPlaceholders, validateKnowledge, validateNestingDepth, validatePlaceholder, writeCuratedManifest };
4040
+ //# sourceMappingURL=chunk-3ZVSINEV.js.map
4041
+ //# sourceMappingURL=chunk-3ZVSINEV.js.map