@try-works/dsh-tool-mode 0.0.0-stage → 0.5.44

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 (425) hide show
  1. package/README.md +299 -2
  2. package/bin/dsh-tool-mode-credentials.mjs +20 -0
  3. package/bin/dsh-tool-mode-mcp-stdio.mjs +80 -0
  4. package/bin/dsh-tool-mode.mjs +211 -0
  5. package/builtins.lock.json +26 -0
  6. package/catalog/desert-ant-models.json +693 -0
  7. package/catalog/playbooks.json +531 -0
  8. package/client/client.model-tools.js +1910 -0
  9. package/client/index.js +4039 -0
  10. package/cordis.patch.yml +39 -0
  11. package/lib/adapters/index.d.ts +61 -0
  12. package/lib/adapters/index.d.ts.map +1 -0
  13. package/lib/adapters/index.js +82 -0
  14. package/lib/adapters/types.d.ts +106 -0
  15. package/lib/adapters/types.d.ts.map +1 -0
  16. package/lib/adapters/types.js +85 -0
  17. package/lib/approval.d.ts +189 -0
  18. package/lib/approval.d.ts.map +1 -0
  19. package/lib/approval.js +510 -0
  20. package/lib/asset-acquisition.d.ts +149 -0
  21. package/lib/asset-acquisition.d.ts.map +1 -0
  22. package/lib/asset-acquisition.js +175 -0
  23. package/lib/authority.d.ts +185 -0
  24. package/lib/authority.d.ts.map +1 -0
  25. package/lib/authority.js +223 -0
  26. package/lib/bindings.d.ts +144 -0
  27. package/lib/bindings.d.ts.map +1 -0
  28. package/lib/bindings.js +314 -0
  29. package/lib/builtins.d.ts +27 -0
  30. package/lib/builtins.d.ts.map +1 -0
  31. package/lib/builtins.js +37 -0
  32. package/lib/capability.d.ts +58 -0
  33. package/lib/capability.d.ts.map +1 -0
  34. package/lib/capability.js +192 -0
  35. package/lib/capture-path.d.ts +97 -0
  36. package/lib/capture-path.d.ts.map +1 -0
  37. package/lib/capture-path.js +152 -0
  38. package/lib/catalog.d.ts +37 -0
  39. package/lib/catalog.d.ts.map +1 -0
  40. package/lib/catalog.js +274 -0
  41. package/lib/contract-payload.d.ts +39 -0
  42. package/lib/contract-payload.d.ts.map +1 -0
  43. package/lib/contract-payload.js +56 -0
  44. package/lib/custom-tools/compile.d.ts +25 -0
  45. package/lib/custom-tools/compile.d.ts.map +1 -0
  46. package/lib/custom-tools/compile.js +61 -0
  47. package/lib/custom-tools/composite-executor.d.ts +42 -0
  48. package/lib/custom-tools/composite-executor.d.ts.map +1 -0
  49. package/lib/custom-tools/composite-executor.js +113 -0
  50. package/lib/custom-tools/dispatch.d.ts +28 -0
  51. package/lib/custom-tools/dispatch.d.ts.map +1 -0
  52. package/lib/custom-tools/dispatch.js +34 -0
  53. package/lib/custom-tools/http-executor.d.ts +48 -0
  54. package/lib/custom-tools/http-executor.d.ts.map +1 -0
  55. package/lib/custom-tools/http-executor.js +241 -0
  56. package/lib/custom-tools/index.d.ts +12 -0
  57. package/lib/custom-tools/index.d.ts.map +1 -0
  58. package/lib/custom-tools/index.js +12 -0
  59. package/lib/custom-tools/mcp-surface.d.ts +14 -0
  60. package/lib/custom-tools/mcp-surface.d.ts.map +1 -0
  61. package/lib/custom-tools/mcp-surface.js +41 -0
  62. package/lib/custom-tools/prompt-executor.d.ts +39 -0
  63. package/lib/custom-tools/prompt-executor.d.ts.map +1 -0
  64. package/lib/custom-tools/prompt-executor.js +59 -0
  65. package/lib/custom-tools/registry.d.ts +69 -0
  66. package/lib/custom-tools/registry.d.ts.map +1 -0
  67. package/lib/custom-tools/registry.js +130 -0
  68. package/lib/custom-tools/schema.d.ts +26 -0
  69. package/lib/custom-tools/schema.d.ts.map +1 -0
  70. package/lib/custom-tools/schema.js +375 -0
  71. package/lib/custom-tools/service.d.ts +90 -0
  72. package/lib/custom-tools/service.d.ts.map +1 -0
  73. package/lib/custom-tools/service.js +203 -0
  74. package/lib/custom-tools/store.d.ts +61 -0
  75. package/lib/custom-tools/store.d.ts.map +1 -0
  76. package/lib/custom-tools/store.js +240 -0
  77. package/lib/custom-tools/types.d.ts +131 -0
  78. package/lib/custom-tools/types.d.ts.map +1 -0
  79. package/lib/custom-tools/types.js +11 -0
  80. package/lib/decision-combine.d.ts +113 -0
  81. package/lib/decision-combine.d.ts.map +1 -0
  82. package/lib/decision-combine.js +156 -0
  83. package/lib/decision-evaluate.d.ts +185 -0
  84. package/lib/decision-evaluate.d.ts.map +1 -0
  85. package/lib/decision-evaluate.js +227 -0
  86. package/lib/deployment-coordinator.d.ts +213 -0
  87. package/lib/deployment-coordinator.d.ts.map +1 -0
  88. package/lib/deployment-coordinator.js +274 -0
  89. package/lib/diagnostics.d.ts +169 -0
  90. package/lib/diagnostics.d.ts.map +1 -0
  91. package/lib/diagnostics.js +136 -0
  92. package/lib/discovery-contracts.d.ts +14 -0
  93. package/lib/discovery-contracts.d.ts.map +1 -0
  94. package/lib/discovery-contracts.js +90 -0
  95. package/lib/discovery-describe.d.ts +35 -0
  96. package/lib/discovery-describe.d.ts.map +1 -0
  97. package/lib/discovery-describe.js +99 -0
  98. package/lib/embedding-index.d.ts +55 -0
  99. package/lib/embedding-index.d.ts.map +1 -0
  100. package/lib/embedding-index.js +126 -0
  101. package/lib/extension-dependencies.d.ts +355 -0
  102. package/lib/extension-dependencies.d.ts.map +1 -0
  103. package/lib/extension-dependencies.js +987 -0
  104. package/lib/extension-dispatch.d.ts +150 -0
  105. package/lib/extension-dispatch.d.ts.map +1 -0
  106. package/lib/extension-dispatch.js +178 -0
  107. package/lib/extension-page-state.d.ts +69 -0
  108. package/lib/extension-page-state.d.ts.map +1 -0
  109. package/lib/extension-page-state.js +82 -0
  110. package/lib/extension-registrar.d.ts +116 -0
  111. package/lib/extension-registrar.d.ts.map +1 -0
  112. package/lib/extension-registrar.js +144 -0
  113. package/lib/extensions-api.d.ts +346 -0
  114. package/lib/extensions-api.d.ts.map +1 -0
  115. package/lib/extensions-api.js +17 -0
  116. package/lib/extensions-remote.d.ts +57 -0
  117. package/lib/extensions-remote.d.ts.map +1 -0
  118. package/lib/extensions-remote.js +69 -0
  119. package/lib/extensions-service.d.ts +568 -0
  120. package/lib/extensions-service.d.ts.map +1 -0
  121. package/lib/extensions-service.js +2507 -0
  122. package/lib/harness-budgets.d.ts +158 -0
  123. package/lib/harness-budgets.d.ts.map +1 -0
  124. package/lib/harness-budgets.js +152 -0
  125. package/lib/harness-llm.d.ts +138 -0
  126. package/lib/harness-llm.d.ts.map +1 -0
  127. package/lib/harness-llm.js +218 -0
  128. package/lib/harness-serving.d.ts +115 -0
  129. package/lib/harness-serving.d.ts.map +1 -0
  130. package/lib/harness-serving.js +176 -0
  131. package/lib/headless.d.ts +97 -0
  132. package/lib/headless.d.ts.map +1 -0
  133. package/lib/headless.js +407 -0
  134. package/lib/http-acquisition.d.ts +27 -0
  135. package/lib/http-acquisition.d.ts.map +1 -0
  136. package/lib/http-acquisition.js +140 -0
  137. package/lib/index.d.ts +546 -0
  138. package/lib/index.d.ts.map +1 -0
  139. package/lib/index.js +5197 -0
  140. package/lib/invocation-accounting.d.ts +169 -0
  141. package/lib/invocation-accounting.d.ts.map +1 -0
  142. package/lib/invocation-accounting.js +148 -0
  143. package/lib/jev.d.ts +218 -0
  144. package/lib/jev.d.ts.map +1 -0
  145. package/lib/jev.js +366 -0
  146. package/lib/legacy-migration.d.ts +95 -0
  147. package/lib/legacy-migration.d.ts.map +1 -0
  148. package/lib/legacy-migration.js +429 -0
  149. package/lib/license-basis.d.ts +29 -0
  150. package/lib/license-basis.d.ts.map +1 -0
  151. package/lib/license-basis.js +58 -0
  152. package/lib/managed-workers.d.ts +158 -0
  153. package/lib/managed-workers.d.ts.map +1 -0
  154. package/lib/managed-workers.js +269 -0
  155. package/lib/mcp/auth-selection.d.ts +35 -0
  156. package/lib/mcp/auth-selection.d.ts.map +1 -0
  157. package/lib/mcp/auth-selection.js +64 -0
  158. package/lib/mcp/client-grant.d.ts +89 -0
  159. package/lib/mcp/client-grant.d.ts.map +1 -0
  160. package/lib/mcp/client-grant.js +63 -0
  161. package/lib/mcp/credential-cli.d.ts +38 -0
  162. package/lib/mcp/credential-cli.d.ts.map +1 -0
  163. package/lib/mcp/credential-cli.js +148 -0
  164. package/lib/mcp/credential-store.d.ts +143 -0
  165. package/lib/mcp/credential-store.d.ts.map +1 -0
  166. package/lib/mcp/credential-store.js +461 -0
  167. package/lib/mcp/export-policy.d.ts +25 -0
  168. package/lib/mcp/export-policy.d.ts.map +1 -0
  169. package/lib/mcp/export-policy.js +31 -0
  170. package/lib/mcp/host-binding.d.ts +144 -0
  171. package/lib/mcp/host-binding.d.ts.map +1 -0
  172. package/lib/mcp/host-binding.js +280 -0
  173. package/lib/mcp/http.d.ts +180 -0
  174. package/lib/mcp/http.d.ts.map +1 -0
  175. package/lib/mcp/http.js +602 -0
  176. package/lib/mcp/oauth.d.ts +149 -0
  177. package/lib/mcp/oauth.d.ts.map +1 -0
  178. package/lib/mcp/oauth.js +396 -0
  179. package/lib/mcp/protocol.d.ts +329 -0
  180. package/lib/mcp/protocol.d.ts.map +1 -0
  181. package/lib/mcp/protocol.js +459 -0
  182. package/lib/mcp/rate-limit.d.ts +68 -0
  183. package/lib/mcp/rate-limit.d.ts.map +1 -0
  184. package/lib/mcp/rate-limit.js +114 -0
  185. package/lib/mcp/sdk-v2.d.ts +17 -0
  186. package/lib/mcp/sdk-v2.d.ts.map +1 -0
  187. package/lib/mcp/sdk-v2.js +204 -0
  188. package/lib/mcp/server.d.ts +149 -0
  189. package/lib/mcp/server.d.ts.map +1 -0
  190. package/lib/mcp/server.js +302 -0
  191. package/lib/mcp/stdio.d.ts +80 -0
  192. package/lib/mcp/stdio.d.ts.map +1 -0
  193. package/lib/mcp/stdio.js +184 -0
  194. package/lib/mcp/subscriptions.d.ts +177 -0
  195. package/lib/mcp/subscriptions.d.ts.map +1 -0
  196. package/lib/mcp/subscriptions.js +288 -0
  197. package/lib/mcp-status.d.ts +96 -0
  198. package/lib/mcp-status.d.ts.map +1 -0
  199. package/lib/mcp-status.js +70 -0
  200. package/lib/mcp-usage.d.ts +110 -0
  201. package/lib/mcp-usage.d.ts.map +1 -0
  202. package/lib/mcp-usage.js +189 -0
  203. package/lib/model-qualification.d.ts +192 -0
  204. package/lib/model-qualification.d.ts.map +1 -0
  205. package/lib/model-qualification.js +178 -0
  206. package/lib/planning.d.ts +256 -0
  207. package/lib/planning.d.ts.map +1 -0
  208. package/lib/planning.js +471 -0
  209. package/lib/playbook.d.ts +42 -0
  210. package/lib/playbook.d.ts.map +1 -0
  211. package/lib/playbook.js +65 -0
  212. package/lib/prepared-assets.d.ts +269 -0
  213. package/lib/prepared-assets.d.ts.map +1 -0
  214. package/lib/prepared-assets.js +471 -0
  215. package/lib/provider-bridge.d.ts +107 -0
  216. package/lib/provider-bridge.d.ts.map +1 -0
  217. package/lib/provider-bridge.js +423 -0
  218. package/lib/ptc-authority.d.ts +154 -0
  219. package/lib/ptc-authority.d.ts.map +1 -0
  220. package/lib/ptc-authority.js +242 -0
  221. package/lib/ptc-confinement.d.ts +60 -0
  222. package/lib/ptc-confinement.d.ts.map +1 -0
  223. package/lib/ptc-confinement.js +212 -0
  224. package/lib/ptc-runtime.d.ts +166 -0
  225. package/lib/ptc-runtime.d.ts.map +1 -0
  226. package/lib/ptc-runtime.js +231 -0
  227. package/lib/publication.d.ts +161 -0
  228. package/lib/publication.d.ts.map +1 -0
  229. package/lib/publication.js +181 -0
  230. package/lib/receipt-store.d.ts +57 -0
  231. package/lib/receipt-store.d.ts.map +1 -0
  232. package/lib/receipt-store.js +143 -0
  233. package/lib/receipt.d.ts +231 -0
  234. package/lib/receipt.d.ts.map +1 -0
  235. package/lib/receipt.js +165 -0
  236. package/lib/registrar.d.ts +75 -0
  237. package/lib/registrar.d.ts.map +1 -0
  238. package/lib/registrar.js +152 -0
  239. package/lib/resource-governance.d.ts +204 -0
  240. package/lib/resource-governance.d.ts.map +1 -0
  241. package/lib/resource-governance.js +213 -0
  242. package/lib/server-lifecycle.d.ts +175 -0
  243. package/lib/server-lifecycle.d.ts.map +1 -0
  244. package/lib/server-lifecycle.js +269 -0
  245. package/lib/skills.d.ts +31 -0
  246. package/lib/skills.d.ts.map +1 -0
  247. package/lib/skills.js +170 -0
  248. package/lib/speech-bridge.d.ts +74 -0
  249. package/lib/speech-bridge.d.ts.map +1 -0
  250. package/lib/speech-bridge.js +115 -0
  251. package/lib/state.d.ts +100 -0
  252. package/lib/state.d.ts.map +1 -0
  253. package/lib/state.js +160 -0
  254. package/lib/title-proposal.d.ts +194 -0
  255. package/lib/title-proposal.d.ts.map +1 -0
  256. package/lib/title-proposal.js +244 -0
  257. package/lib/tool-inventory.d.ts +90 -0
  258. package/lib/tool-inventory.d.ts.map +1 -0
  259. package/lib/tool-inventory.js +102 -0
  260. package/lib/tool-mode-run.d.ts +310 -0
  261. package/lib/tool-mode-run.d.ts.map +1 -0
  262. package/lib/tool-mode-run.js +411 -0
  263. package/lib/tool-sources.d.ts +80 -0
  264. package/lib/tool-sources.d.ts.map +1 -0
  265. package/lib/tool-sources.js +123 -0
  266. package/lib/tool-usage-projection.d.ts +390 -0
  267. package/lib/tool-usage-projection.d.ts.map +1 -0
  268. package/lib/tool-usage-projection.js +1038 -0
  269. package/lib/tool-usage-report.d.ts +153 -0
  270. package/lib/tool-usage-report.d.ts.map +1 -0
  271. package/lib/tool-usage-report.js +274 -0
  272. package/lib/transport.d.ts +158 -0
  273. package/lib/transport.d.ts.map +1 -0
  274. package/lib/transport.js +332 -0
  275. package/lib/types.d.ts +134 -0
  276. package/lib/types.d.ts.map +1 -0
  277. package/lib/types.js +8 -0
  278. package/lib/update-surface.d.ts +79 -0
  279. package/lib/update-surface.d.ts.map +1 -0
  280. package/lib/update-surface.js +224 -0
  281. package/lib/version.d.ts +3 -0
  282. package/lib/version.d.ts.map +1 -0
  283. package/lib/version.js +27 -0
  284. package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.d.ts +13 -0
  285. package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.d.ts.map +1 -0
  286. package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.js +85 -0
  287. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts +16 -0
  288. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts.map +1 -0
  289. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.js +87 -0
  290. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts +38 -0
  291. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts.map +1 -0
  292. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.js +445 -0
  293. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts +20 -0
  294. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts.map +1 -0
  295. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.js +112 -0
  296. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts +14 -0
  297. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts.map +1 -0
  298. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.js +63 -0
  299. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts +14 -0
  300. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts.map +1 -0
  301. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.js +76 -0
  302. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts +82 -0
  303. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts.map +1 -0
  304. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.js +274 -0
  305. package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts +26 -0
  306. package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts.map +1 -0
  307. package/node_modules/@try-works/tool-mode-contracts/lib/index.js +53 -0
  308. package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts +133 -0
  309. package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts.map +1 -0
  310. package/node_modules/@try-works/tool-mode-contracts/lib/meta.js +64 -0
  311. package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts +121 -0
  312. package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts.map +1 -0
  313. package/node_modules/@try-works/tool-mode-contracts/lib/registry.js +246 -0
  314. package/node_modules/@try-works/tool-mode-contracts/package.json +35 -0
  315. package/node_modules/@try-works/tool-mode-extension-sdk/bin/dsh-tool-mode.mjs +20 -0
  316. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts +80 -0
  317. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts.map +1 -0
  318. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.js +533 -0
  319. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts +86 -0
  320. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts.map +1 -0
  321. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.js +145 -0
  322. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts +70 -0
  323. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts.map +1 -0
  324. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.js +201 -0
  325. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts +57 -0
  326. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts.map +1 -0
  327. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.js +83 -0
  328. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts +33 -0
  329. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts.map +1 -0
  330. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.js +33 -0
  331. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts +86 -0
  332. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts.map +1 -0
  333. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.js +191 -0
  334. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts +137 -0
  335. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts.map +1 -0
  336. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.js +349 -0
  337. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts +274 -0
  338. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts.map +1 -0
  339. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.js +932 -0
  340. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts +210 -0
  341. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts.map +1 -0
  342. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.js +368 -0
  343. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts +63 -0
  344. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts.map +1 -0
  345. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.js +149 -0
  346. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts +35 -0
  347. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts.map +1 -0
  348. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.js +179 -0
  349. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts +179 -0
  350. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts.map +1 -0
  351. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.js +299 -0
  352. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts +395 -0
  353. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts.map +1 -0
  354. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.js +839 -0
  355. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.d.ts +44 -0
  356. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.d.ts.map +1 -0
  357. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.js +255 -0
  358. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts +185 -0
  359. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts.map +1 -0
  360. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.js +504 -0
  361. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts +17 -0
  362. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts.map +1 -0
  363. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.js +80 -0
  364. package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.d.ts +221 -0
  365. package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.d.ts.map +1 -0
  366. package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.js +188 -0
  367. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts +52 -0
  368. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts.map +1 -0
  369. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.js +102 -0
  370. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts +171 -0
  371. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts.map +1 -0
  372. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.js +271 -0
  373. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts +242 -0
  374. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts.map +1 -0
  375. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.js +58 -0
  376. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts +128 -0
  377. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts.map +1 -0
  378. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.js +113 -0
  379. package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.d.ts +41 -0
  380. package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.d.ts.map +1 -0
  381. package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.js +52 -0
  382. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts +2 -0
  383. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts.map +1 -0
  384. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.js +351 -0
  385. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts +157 -0
  386. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts.map +1 -0
  387. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.js +688 -0
  388. package/node_modules/@try-works/tool-mode-extension-sdk/package.json +54 -0
  389. package/node_modules/@try-works/tool-mode-extension-sdk/schema/extension-manifest-1.1.0.schema.json +253 -0
  390. package/node_modules/@try-works/tool-mode-recipes/bin/tool-mode-recipe.mjs +15 -0
  391. package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts +460 -0
  392. package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts.map +1 -0
  393. package/node_modules/@try-works/tool-mode-recipes/lib/broker.js +647 -0
  394. package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts +61 -0
  395. package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts.map +1 -0
  396. package/node_modules/@try-works/tool-mode-recipes/lib/cli.js +1106 -0
  397. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts +237 -0
  398. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts.map +1 -0
  399. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.js +205 -0
  400. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts +85 -0
  401. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts.map +1 -0
  402. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.js +176 -0
  403. package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts +119 -0
  404. package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts.map +1 -0
  405. package/node_modules/@try-works/tool-mode-recipes/lib/images.js +201 -0
  406. package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts +25 -0
  407. package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts.map +1 -0
  408. package/node_modules/@try-works/tool-mode-recipes/lib/index.js +25 -0
  409. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts +345 -0
  410. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts.map +1 -0
  411. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.js +1465 -0
  412. package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts +51 -0
  413. package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts.map +1 -0
  414. package/node_modules/@try-works/tool-mode-recipes/lib/templates.js +310 -0
  415. package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts +231 -0
  416. package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts.map +1 -0
  417. package/node_modules/@try-works/tool-mode-recipes/lib/titles.js +435 -0
  418. package/node_modules/@try-works/tool-mode-recipes/package.json +56 -0
  419. package/node_modules/@try-works/tool-mode-recipes/recipes/describe-image.json +38 -0
  420. package/node_modules/@try-works/tool-mode-recipes/recipes/text-title.json +45 -0
  421. package/node_modules/@try-works/tool-mode-recipes/schema/harness-model-recipe.schema.json +273 -0
  422. package/package.json +127 -4
  423. package/remote/spec.mjs +993 -0
  424. package/remote/typert.host.mjs +14 -0
  425. package/remote/typert.remote-client.mjs +16 -0
@@ -0,0 +1,355 @@
1
+ /**
2
+ * First-party dependency graphs for developer-mode extension installs (EXT-09).
3
+ *
4
+ * Installing a first-party package from its checkout must satisfy the SAME
5
+ * discipline the SDK applies to a registry install: every declared runtime
6
+ * dependency is resolved to an exact version, verified by content, and
7
+ * materialized INSIDE the extension's own immutable installation directory. The
8
+ * SDK owns that discipline (`installDependencyGraph`); this module supplies the
9
+ * host half it deliberately leaves injected:
10
+ *
11
+ * - the RESOLVER: the exact version of a declared dependency is the one already
12
+ * installed in the host's own tree, found by walking `node_modules` upward from
13
+ * the source checkout exactly the way Node would. No registry request is made,
14
+ * no version is guessed, and a dependency that is not installed refuses the
15
+ * install instead of being skipped.
16
+ * - the ARCHIVE: the resolved package directory is turned into a deterministic
17
+ * zip whose SHA-512 is the integrity the SDK verifies before extraction. The
18
+ * archive is an ordinary package archive — `node_modules` is excluded because
19
+ * the SDK resolves the transitive graph itself, and the package's declared
20
+ * install-time scripts are left in place so the SDK's own refusal (EXT-10)
21
+ * decides whether the dependency is admissible.
22
+ *
23
+ * Two properties matter for truthfulness:
24
+ *
25
+ * - **The host's node_modules is READ, never written.** The only write target is
26
+ * the SDK's staging directory, which becomes the extension's private
27
+ * `node_modules`; the resolver asserts this by construction (it has no write
28
+ * path outside the archive bytes).
29
+ * - **A declaration is never silently dropped.** Every name the extension
30
+ * declares is either materialized or the whole install fails with a named
31
+ * `DEPENDENCY_UNSATISFIED` reason.
32
+ *
33
+ * INTEGRITY NOTE. The SDK's dependency lock records the SHA-512 of the archive
34
+ * bytes it verified (`verifyIntegrity`), which is what this module computes. The
35
+ * directory's own identity is additionally checked with the SDK's
36
+ * `digestInstalledContent` before and after the archive is built, so a checkout
37
+ * that changes while it is being archived refuses rather than shipping bytes that
38
+ * no longer match what was resolved.
39
+ *
40
+ * @module @try-works/dsh-tool-mode/extension-dependencies
41
+ */
42
+ import { DEFAULT_ARCHIVE_LIMITS, type ArchiveSource, type DependencyResolver, type InstallDependencyGraph, type InstallSource } from '@try-works/tool-mode-extension-sdk';
43
+ /**
44
+ * The dependency archive byte cap.
45
+ *
46
+ * The SDK's `installDependencyGraph` calls `fetch` with a 256 MiB bound and
47
+ * requires the source to enforce it, so this module refuses an archive it could
48
+ * not truthfully hand over under that contract.
49
+ */
50
+ export declare const MAX_DEPENDENCY_ARCHIVE_BYTES: number;
51
+ /** One dependency resolved from the host's own installed tree. */
52
+ export interface FirstPartyDependency {
53
+ /** The package name, as declared. */
54
+ readonly name: string;
55
+ /** The EXACT version recorded by the installed copy. */
56
+ readonly version: string;
57
+ /** The absolute directory the installed copy occupies. */
58
+ readonly directory: string;
59
+ }
60
+ /** Where to look for installed dependencies. */
61
+ export interface DependencySearch {
62
+ /** The checkout whose declared dependency is being installed. */
63
+ readonly sourcePackageDir: string;
64
+ /**
65
+ * Additional package roots searched after the source checkout's own ancestors.
66
+ *
67
+ * The host's own module directory is always searched, so a dependency installed
68
+ * for the host (rather than for the extension checkout) is still found.
69
+ */
70
+ readonly extraSearchRoots?: readonly string[];
71
+ }
72
+ /** Bounds and seams for one first-party dependency graph. */
73
+ export interface FirstPartyDependencyGraphOptions extends DependencySearch {
74
+ /** Total source bytes accepted per dependency; defaults to the SDK archive total bound. */
75
+ readonly maxSourceBytes?: number;
76
+ /** Per-file bytes accepted; defaults to the SDK archive per-entry bound. */
77
+ readonly maxEntryBytes?: number;
78
+ /** Archive bytes accepted per dependency; defaults to {@link MAX_DEPENDENCY_ARCHIVE_BYTES}. */
79
+ readonly maxArchiveBytes?: number;
80
+ /**
81
+ * Forwarded to the SDK graph: maximum dependency depth.
82
+ *
83
+ * OPTIONAL only because the SDK accepts its own default; omitting it means the
84
+ * SDK's 3-level bound, which a real host tree exceeds — the installed
85
+ * onnxruntime-node tree reaches `define-data-property` at depth 4 and
86
+ * `es-define-property` at depth 5, and the SDK walks a preinstalled package's
87
+ * declared dependencies just like registry bytes. A caller that resolves a host
88
+ * tree therefore passes its configured bound explicitly; the SDK still enforces
89
+ * it (and its independent 64-package bound) at install time.
90
+ */
91
+ readonly maxDepth?: number;
92
+ /** Forwarded to the SDK graph: maximum number of dependency packages. */
93
+ readonly maxPackages?: number;
94
+ /**
95
+ * The operator gate for PREINSTALLED dependency content (task-84).
96
+ *
97
+ * When true, a dependency resolved from the host's installed tree is supplied as
98
+ * the already-materialized directory instead of being re-archived as bytes: the
99
+ * SDK copies it into the extension's own install directory and records
100
+ * `provenance: 'preinstalled'`, which states that the content arrived from an
101
+ * operator-completed install and that this installer ran no lifecycle script.
102
+ * DEFAULT OFF: without the gate, the bytes arm applies and a dependency whose
103
+ * package.json declares an install-time script refuses exactly as before.
104
+ */
105
+ readonly allowPreinstalled?: boolean;
106
+ /**
107
+ * The operator-configured root every preinstalled directory must live under.
108
+ * REQUIRED when {@link FirstPartyDependencyGraphOptions.allowPreinstalled} is true;
109
+ * the SDK enforces the containment, this factory refuses a gate with no root.
110
+ */
111
+ readonly preinstalledRoot?: string;
112
+ /**
113
+ * Exact `name@version` pairs whose published tarball ships prebuilt artifacts.
114
+ * Their lifecycle-script declaration is admitted but NEVER executed; every
115
+ * unlisted package keeps the EXT-10 refusal. This is an allowlist of known
116
+ * prebuilt content, not a general script-execution gate.
117
+ */
118
+ readonly trustedPrebuiltDependencies?: readonly string[];
119
+ }
120
+ /** The pieces, exposed so tests and diagnostics can inspect resolution without materializing. */
121
+ export interface FirstPartyDependencyGraph {
122
+ /** The graph the SDK's directory installer consumes. */
123
+ readonly graph: InstallDependencyGraph;
124
+ /** The resolver half, callable on its own. */
125
+ readonly resolver: DependencyResolver;
126
+ /** The archive half, callable on its own. */
127
+ readonly archive: ArchiveSource;
128
+ }
129
+ /**
130
+ * Resolve one declared dependency from the host's installed tree.
131
+ *
132
+ * The source checkout's own ancestor chain is searched first (the tree whose
133
+ * `package.json` declared the dependency), then the host's own module chain, then
134
+ * any explicitly configured roots. The first installed package whose own
135
+ * `package.json` name matches wins; nothing is downloaded and no version is
136
+ * inferred.
137
+ * @param search - where to look.
138
+ * @param name - the declared dependency name.
139
+ * @param range - the declared spec, used only in the refusal message.
140
+ * @returns the installed dependency.
141
+ * @throws ManagementError `DEPENDENCY_UNSATISFIED` when it is not installed.
142
+ */
143
+ export declare function resolveFirstPartyDependency(search: DependencySearch, name: string, range: string): FirstPartyDependency;
144
+ /** The archive built for one resolved dependency. */
145
+ interface BuiltDependencyArchive {
146
+ /** The exact bytes the graph's archive source will serve. */
147
+ readonly bytes: Uint8Array;
148
+ /** SHA-512 of those bytes: the integrity the SDK verifies before extraction. */
149
+ readonly integrity: string;
150
+ /** The installed tree's own content digest, checked around the build. */
151
+ readonly contentDigest: string;
152
+ }
153
+ /**
154
+ * Build a deterministic zip of one installed dependency directory.
155
+ *
156
+ * The result is the archive the SDK's dependency graph fetches and verifies. Its
157
+ * SHA-512 is the integrity handed to the graph; the directory's own
158
+ * `digestInstalledContent` is checked before and after the build so a concurrent
159
+ * change refuses.
160
+ * @param dependency - the resolved installed dependency.
161
+ * @param limits - the byte bounds.
162
+ * @returns the archive bytes, their integrity, and the directory digest.
163
+ * @throws ManagementError `DEPENDENCY_UNSATISFIED` for any refusal.
164
+ */
165
+ export declare function buildDependencyArchive(dependency: FirstPartyDependency, limits: {
166
+ readonly maxSourceBytes: number;
167
+ readonly maxEntryBytes: number;
168
+ readonly maxArchiveBytes: number;
169
+ }): BuiltDependencyArchive;
170
+ /**
171
+ * How this host can supply one declared dependency.
172
+ *
173
+ * This is the narrow seam between the host's resolution policy and the SDK's
174
+ * dependency graph: `registry-bytes` is the verified-archive path (the SDK verifies
175
+ * the SHA-512 and extracts the bytes), and `preinstalled` is the operator-gated
176
+ * path (the SDK copies an already-materialized directory and records
177
+ * `provenance: 'preinstalled'`, never running a lifecycle script).
178
+ */
179
+ export type DependencySupply = {
180
+ /** The host built verified archive bytes for this dependency. */
181
+ readonly kind: 'registry-bytes';
182
+ readonly dependency: FirstPartyDependency;
183
+ /** SHA-512 of exactly the bytes `archive.fetch` will serve. */
184
+ readonly integrity: string;
185
+ readonly bytes: Uint8Array;
186
+ } | {
187
+ /** The host has an already-materialized installation for this dependency. */
188
+ readonly kind: 'preinstalled';
189
+ readonly dependency: FirstPartyDependency;
190
+ /** Documented by the SDK to mean: no lifecycle script was run by this installer. */
191
+ readonly provenance: 'preinstalled';
192
+ };
193
+ /**
194
+ * Create the first-party dependency graph supplied to the SDK's directory installer.
195
+ *
196
+ * Resolution and archiving happen lazily, one dependency at a time: `resolve`
197
+ * builds the exact bytes the SDK will verify and `fetch` hands back those same
198
+ * bytes, so the integrity the lock records is the integrity of the served archive
199
+ * rather than a value guessed from metadata. Only the most recently built archive
200
+ * is retained, which matches the SDK's resolve-then-fetch sequence and bounds
201
+ * memory to one dependency.
202
+ *
203
+ * The preinstalled-content gate is OPT-IN and OFF by default, matching the SDK:
204
+ * without it every dependency is served as verified bytes and EXT-10 applies. With
205
+ * it, the SDK requires `preinstalledRoot`, copies the resolved directory into the
206
+ * extension's own `node_modules`, and records `provenance: 'preinstalled'`.
207
+ * @param options - the search tree, bounds, gate and forwarded graph limits.
208
+ * @returns the install-dependency graph plus its resolver and archive halves.
209
+ * @throws ManagementError `DEPENDENCY_UNSATISFIED` when the gate has no root.
210
+ */
211
+ export declare function createFirstPartyDependencyGraph(options: FirstPartyDependencyGraphOptions): FirstPartyDependencyGraph;
212
+ /** Re-export for callers that want the size bound wording. */
213
+ export { DEFAULT_ARCHIVE_LIMITS };
214
+ /** The default npm registry. */
215
+ export declare const DEFAULT_REGISTRY_URL = "https://registry.npmjs.org/";
216
+ /** How a registry operation failed. Every code is host-facing and stable. */
217
+ export type RegistryErrorCode =
218
+ /** No registry URL is configured. */
219
+ 'registry-not-configured'
220
+ /** The registry has no such package, version, or dist-tag. */
221
+ | 'registry-not-found'
222
+ /** Transport failure or 5xx: the registry did not answer usefully. This is the ONLY fallback-eligible failure. */
223
+ | 'registry-unavailable'
224
+ /** The metadata did not have the npm shape this client can verify. */
225
+ | 'registry-invalid-metadata'
226
+ /** `dist.integrity` is absent or not a sha512 SRI string: installs are refused, never unverified. */
227
+ | 'registry-integrity-missing'
228
+ /** The tarball did not download (non-2xx, truncated, aborted). */
229
+ | 'registry-tarball-fetch-failed'
230
+ /** The tarball is over the configured byte cap. */
231
+ | 'registry-tarball-too-large'
232
+ /** No published version satisfies the requested range. */
233
+ | 'registry-no-matching-version';
234
+ /** A named registry failure. */
235
+ export declare class RegistryError extends Error {
236
+ readonly name = "RegistryError";
237
+ readonly code: RegistryErrorCode;
238
+ /** Whether a directory fallback may be considered under `auto`. */
239
+ readonly transport: boolean;
240
+ constructor(code: RegistryErrorCode, message: string, options?: {
241
+ readonly cause?: unknown;
242
+ readonly transport?: boolean;
243
+ });
244
+ }
245
+ /** One package version resolved from the registry. */
246
+ export interface RegistryPackageResolution {
247
+ /** The package name, exactly as requested. */
248
+ readonly name: string;
249
+ /** The EXACT published version selected. */
250
+ readonly version: string;
251
+ /** The tarball URL from `dist.tarball`. */
252
+ readonly tarball: string;
253
+ /** The registry's sha512 SRI string from `dist.integrity` (verified before extraction). */
254
+ readonly integrity: string;
255
+ /** The dist-tag that selected this version, when the request named one. */
256
+ readonly distTag?: string;
257
+ }
258
+ /** What a registry session needs. */
259
+ export interface RegistrySessionOptions {
260
+ /** Registry base URL, e.g. `https://registry.npmjs.org/`. Empty is allowed and refuses at resolve time. */
261
+ readonly registryUrl: string;
262
+ /**
263
+ * The container decoder for the bytes the registry serves.
264
+ *
265
+ * npm serves `.tgz`; the host passes the SDK's tar-gzip ArchiveSource factory.
266
+ * Injectable so the session (resolution, bounds, integrity plumbing) can be
267
+ * tested independently of the container implementation.
268
+ */
269
+ readonly archiveFactory: (fetcher: (source: InstallSource) => Promise<Uint8Array>) => ArchiveSource;
270
+ /** Hard cap on one downloaded package tarball; defaults to the SDK archive bound. */
271
+ readonly maxTarballBytes?: number;
272
+ /** Packument/metadata request timeout (wall clock); default 30 s. */
273
+ readonly metadataTimeoutMs?: number;
274
+ /**
275
+ * Tarball IDLE timeout: abort only after this long with NO bytes arriving.
276
+ *
277
+ * A large dependency (onnxruntime-node is hundreds of MB) must not be aborted
278
+ * by the short metadata budget; the sha512 is verified after the transfer, so
279
+ * the byte cap is the real bound and a slow-but-moving stream is fine.
280
+ * Default 10 minutes.
281
+ */
282
+ readonly tarballTimeoutMs?: number;
283
+ /** Injected fetch, for tests. Defaults to the global fetch. */
284
+ readonly fetchImpl?: typeof fetch;
285
+ }
286
+ /** A registry session: version resolution plus the tarball archive over the SAME registry. */
287
+ export interface RegistrySession {
288
+ /** The normalized registry base URL ('' when unconfigured). */
289
+ readonly registryUrl: string;
290
+ /** The ArchiveSource the install/dependency pipelines fetch through. */
291
+ readonly archive: ArchiveSource;
292
+ /**
293
+ * Resolve `<name>@<spec>` to one exact published version.
294
+ * @param name - the package name.
295
+ * @param spec - a dist-tag (`latest`), an exact version, or a semver range.
296
+ * @param signal - cancellation.
297
+ * @returns the exact version, tarball URL and sha512 integrity.
298
+ */
299
+ resolve(name: string, spec: string, signal?: AbortSignal): Promise<RegistryPackageResolution>;
300
+ /**
301
+ * Download the bytes registered for one archive source, bounded.
302
+ * @param source - the source returned by a previous resolve.
303
+ * @param signal - cancellation.
304
+ * @returns the tarball bytes (NOT yet digest-verified; the caller verifies).
305
+ */
306
+ download(source: InstallSource, signal?: AbortSignal): Promise<Uint8Array>;
307
+ }
308
+ /** The default packument timeout: metadata is small and must answer promptly. */
309
+ export declare const DEFAULT_REGISTRY_METADATA_TIMEOUT_MS = 30000;
310
+ /** The default tarball IDLE timeout: a large dependency may transfer for minutes. */
311
+ export declare const DEFAULT_REGISTRY_TARBALL_TIMEOUT_MS: number;
312
+ /**
313
+ * Whether one published version satisfies a semver range.
314
+ *
315
+ * Supported: exact versions, `^`, `~`, x-ranges (`1.x`, `1.2`), comparison
316
+ * operators (`>=`, `>`, `<=`, `<`, `=`), hyphen ranges, `||`, and `*`. NOT
317
+ * supported (refused rather than guessed): prerelease-only ranges and npm's
318
+ * `tag:` protocol. A prerelease version only matches a range that itself names a
319
+ * prerelease.
320
+ * @param versionText - the published version.
321
+ * @param rangeText - the requested range.
322
+ * @returns whether the version satisfies the range.
323
+ */
324
+ export declare function satisfiesRegistryRange(versionText: string, rangeText: string): boolean;
325
+ /**
326
+ * The highest published version satisfying a range.
327
+ * @param versions - the published version strings.
328
+ * @param rangeText - the requested range.
329
+ * @returns the highest satisfying version exactly as published, or undefined.
330
+ */
331
+ export declare function highestSatisfyingVersion(versions: readonly string[], rangeText: string): string | undefined;
332
+ /**
333
+ * Create a registry session over one npm registry.
334
+ *
335
+ * The same session serves the extension package and every runtime dependency, so
336
+ * the tarball map (key → URL) the resolver registers is the map the archive
337
+ * fetches through. Nothing is downloaded until a caller fetches; nothing is
338
+ * verified here (the SDK verifies the sha512 before extraction, and this module
339
+ * refuses metadata without one).
340
+ * @param options - registry URL, archive factory, bounds and fetch seam.
341
+ * @returns the session.
342
+ */
343
+ export declare function createRegistrySession(options: RegistrySessionOptions): RegistrySession;
344
+ /**
345
+ * Wire a registry session into the SDK dependency-graph contract.
346
+ *
347
+ * Every declared dependency is resolved to one exact published version with its
348
+ * sha512 integrity; the SAME session archive fetches the bytes, so the manifest
349
+ * the graph verifies is the manifest that was resolved. EXT-10's script refusal is
350
+ * the SDK's own, unchanged.
351
+ * @param session - the registry session.
352
+ * @returns the install-dependency graph.
353
+ */
354
+ export declare function createRegistryDependencyGraph(session: RegistrySession): InstallDependencyGraph;
355
+ //# sourceMappingURL=extension-dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-dependencies.d.ts","sourceRoot":"","sources":["../src/extension-dependencies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAOH,OAAO,EAEL,sBAAsB,EAItB,KAAK,aAAa,EAElB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAA;AAU3C;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAoB,CAAA;AAE7D,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,qCAAqC;IACrC,QAAQ,CAAC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