@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,445 @@
1
+ /**
2
+ * The remaining standard tool contracts (EXT-21, task-69).
3
+ *
4
+ * These descriptors are SCHEMAS AND SEMANTICS ONLY — no model bindings, no
5
+ * weights, no host code (EXT-17). Each is a closed schema with honest
6
+ * `semantics`, `limits` and `unsupported` records, matching the vocabulary the
7
+ * host registers and the extension packages implement against.
8
+ *
9
+ * @module @try-works/tool-mode-contracts/contracts/standard
10
+ */
11
+ import { withMeta } from "../meta.js";
12
+ /** The `text.title` contract at version 1.0.0 (RCP-12). */
13
+ export const textTitle = {
14
+ contract: 'text.title',
15
+ version: '1.0.0',
16
+ toolName: 'text_title',
17
+ description: 'Propose a bounded title and one-sentence description for supplied text through an authorized harness model.',
18
+ inputSchema: {
19
+ type: 'object',
20
+ additionalProperties: false,
21
+ required: ['text'],
22
+ properties: {
23
+ text: { type: 'string', minLength: 1, maxLength: 32768 },
24
+ kind: { type: 'string', enum: ['section', 'page', 'document'], default: 'section' },
25
+ repairFeedback: { type: 'string', minLength: 1, maxLength: 512 },
26
+ },
27
+ },
28
+ outputSchema: withMeta({
29
+ title: { type: 'string', minLength: 1, maxLength: 80 },
30
+ description: { type: 'string', minLength: 1, maxLength: 240 },
31
+ }, ['title', 'description']),
32
+ semantics: {
33
+ scoreKind: 'none',
34
+ calibrated: false,
35
+ emptyInputMeaning: 'binding-error',
36
+ appliesTo: 'written-text-only',
37
+ },
38
+ limits: {
39
+ maxInputCharacters: 32768,
40
+ maxTitleCharacters: 80,
41
+ maxDescriptionCharacters: 240,
42
+ maxRepairs: 1,
43
+ },
44
+ unsupported: [
45
+ 'Invented facts: the title must state only what the text supports.',
46
+ 'Empty titles and descriptions.',
47
+ ],
48
+ };
49
+ /** The `image.describe` contract at version 1.0.0 (HLM-12). */
50
+ export const imageDescribe = {
51
+ contract: 'image.describe',
52
+ version: '1.0.0',
53
+ toolName: 'describe_image',
54
+ description: 'Describe the visible content of an approved image through an authorized harness model, with honest uncertainty.',
55
+ inputSchema: {
56
+ type: 'object',
57
+ additionalProperties: false,
58
+ required: ['image_path'],
59
+ properties: {
60
+ image_path: { type: 'string', minLength: 1, description: 'An approved image resolved by the host.' },
61
+ focus: { type: 'string', minLength: 1, maxLength: 500 },
62
+ },
63
+ },
64
+ outputSchema: withMeta({
65
+ description: { type: 'string', minLength: 1 },
66
+ }, ['description']),
67
+ semantics: {
68
+ scoreKind: 'none',
69
+ calibrated: false,
70
+ emptyInputMeaning: 'binding-error',
71
+ appliesTo: 'visible-image-content',
72
+ },
73
+ limits: {
74
+ maxImages: 1,
75
+ maxFocusCharacters: 500,
76
+ },
77
+ unsupported: [
78
+ 'Invented hidden facts, exact OCR or full transcription claims.',
79
+ 'Treating text drawn in the image as instructions.',
80
+ ],
81
+ };
82
+ /** The `embed.multimodal` contract at version 1.0.0 (EmbeddingGemma family). */
83
+ export const multimodalEmbed = {
84
+ contract: 'embed.multimodal',
85
+ version: '1.0.0',
86
+ toolName: 'multimodal_embed',
87
+ description: 'Embed a text, image or audio input into a shared vector space.',
88
+ inputSchema: {
89
+ type: 'object',
90
+ additionalProperties: false,
91
+ required: ['input'],
92
+ properties: {
93
+ input: {
94
+ type: 'object',
95
+ additionalProperties: false,
96
+ required: ['kind'],
97
+ properties: {
98
+ kind: { type: 'string', enum: ['text', 'image', 'audio'] },
99
+ text: { type: 'string', minLength: 1, maxLength: 32768 },
100
+ media: { type: 'string', description: 'An approved media reference resolved by the host.' },
101
+ },
102
+ },
103
+ },
104
+ },
105
+ outputSchema: withMeta({
106
+ embedding: { type: 'array', items: { type: 'number' }, minItems: 1 },
107
+ dimensions: { type: 'integer', minimum: 1 },
108
+ }, ['embedding', 'dimensions']),
109
+ semantics: {
110
+ scoreKind: 'none',
111
+ calibrated: false,
112
+ emptyInputMeaning: 'binding-error',
113
+ appliesTo: 'text-image-audio',
114
+ },
115
+ limits: {
116
+ maxInputCharacters: 32768,
117
+ maxMediaBytes: 8388608,
118
+ },
119
+ unsupported: ['Video frames beyond the declared sampler.'],
120
+ };
121
+ /** The `semantic.similarity` contract at version 1.0.0. */
122
+ export const semanticSimilarity = {
123
+ contract: 'semantic.similarity',
124
+ version: '1.0.0',
125
+ toolName: 'semantic_similarity',
126
+ description: 'Score the similarity of two bounded texts.',
127
+ inputSchema: {
128
+ type: 'object',
129
+ additionalProperties: false,
130
+ required: ['left', 'right'],
131
+ properties: {
132
+ left: { type: 'string', minLength: 1, maxLength: 32768 },
133
+ right: { type: 'string', minLength: 1, maxLength: 32768 },
134
+ },
135
+ },
136
+ outputSchema: withMeta({ score: { type: 'number' } }, ['score']),
137
+ semantics: {
138
+ scoreKind: 'cosine-similarity',
139
+ calibrated: false,
140
+ emptyInputMeaning: 'binding-error',
141
+ appliesTo: 'written-text-only',
142
+ },
143
+ limits: { maxInputCharacters: 32768 },
144
+ unsupported: ['Calibrated probabilities.'],
145
+ };
146
+ /** The `semantic.rank` contract at version 1.0.0. */
147
+ export const semanticRank = {
148
+ contract: 'semantic.rank',
149
+ version: '1.0.0',
150
+ toolName: 'semantic_rank',
151
+ description: 'Rank candidates by semantic distance to a query.',
152
+ inputSchema: {
153
+ type: 'object',
154
+ additionalProperties: false,
155
+ required: ['query', 'candidates'],
156
+ properties: {
157
+ query: { type: 'string', minLength: 1, maxLength: 4096 },
158
+ candidates: {
159
+ type: 'array', minItems: 1, maxItems: 100,
160
+ items: { type: 'string', minLength: 1, maxLength: 8192 },
161
+ },
162
+ },
163
+ },
164
+ outputSchema: withMeta({
165
+ ranked: {
166
+ type: 'array',
167
+ items: {
168
+ type: 'object',
169
+ additionalProperties: false,
170
+ required: ['index', 'score'],
171
+ properties: { index: { type: 'integer', minimum: 0 }, score: { type: 'number' } },
172
+ },
173
+ },
174
+ }, ['ranked']),
175
+ semantics: {
176
+ scoreKind: 'cosine-similarity',
177
+ calibrated: false,
178
+ emptyInputMeaning: 'binding-error',
179
+ appliesTo: 'written-text-only',
180
+ },
181
+ limits: { maxCandidates: 100 },
182
+ unsupported: ['Calibrated probabilities.'],
183
+ };
184
+ /** The `semantic.classify` contract at version 1.0.0. */
185
+ export const semanticClassify = {
186
+ contract: 'semantic.classify',
187
+ version: '1.0.0',
188
+ toolName: 'semantic_classify',
189
+ description: 'Classify a text into the closest of the supplied labels, with the ability to abstain.',
190
+ inputSchema: {
191
+ type: 'object',
192
+ additionalProperties: false,
193
+ required: ['text', 'labels'],
194
+ properties: {
195
+ text: { type: 'string', minLength: 1, maxLength: 32768 },
196
+ labels: { type: 'array', minItems: 1, maxItems: 64, items: { type: 'string', minLength: 1, maxLength: 200 } },
197
+ },
198
+ },
199
+ outputSchema: withMeta({
200
+ label: { type: ['string', 'null'] },
201
+ abstained: { type: 'boolean' },
202
+ scores: { type: 'array', items: { type: 'number' } },
203
+ }, ['label', 'abstained', 'scores']),
204
+ semantics: {
205
+ scoreKind: 'cosine-similarity',
206
+ calibrated: false,
207
+ emptyInputMeaning: 'binding-error',
208
+ appliesTo: 'written-text-only',
209
+ },
210
+ limits: { maxLabels: 64 },
211
+ unsupported: ['Forcing a label when every score is below the abstain margin.'],
212
+ };
213
+ /** The `semantic.deduplicate` contract at version 1.0.0. */
214
+ export const semanticDeduplicate = {
215
+ contract: 'semantic.deduplicate',
216
+ version: '1.0.0',
217
+ toolName: 'semantic_deduplicate',
218
+ description: 'Group near-duplicate texts into greedy clusters around their representatives.',
219
+ inputSchema: {
220
+ type: 'object',
221
+ additionalProperties: false,
222
+ required: ['texts'],
223
+ properties: {
224
+ texts: { type: 'array', minItems: 1, maxItems: 1000, items: { type: 'string', minLength: 1, maxLength: 8192 } },
225
+ },
226
+ },
227
+ outputSchema: withMeta({
228
+ groups: {
229
+ type: 'array',
230
+ items: {
231
+ type: 'object',
232
+ additionalProperties: false,
233
+ required: ['members'],
234
+ properties: { members: { type: 'array', items: { type: 'integer', minimum: 0 } } },
235
+ },
236
+ },
237
+ }, ['groups']),
238
+ semantics: {
239
+ scoreKind: 'cosine-similarity',
240
+ calibrated: false,
241
+ emptyInputMeaning: 'binding-error',
242
+ appliesTo: 'written-text-only',
243
+ },
244
+ limits: { maxTexts: 1000 },
245
+ unsupported: ['Transitive-closure equivalence: clustering is greedy, not global.'],
246
+ };
247
+ /** The `media.find_moments` contract at version 1.0.0. */
248
+ export const mediaFindMoments = {
249
+ contract: 'media.find_moments',
250
+ version: '1.0.0',
251
+ toolName: 'media_find_moments',
252
+ description: 'Find the media windows most relevant to a query within approved media.',
253
+ inputSchema: {
254
+ type: 'object',
255
+ additionalProperties: false,
256
+ required: ['media', 'query'],
257
+ properties: {
258
+ media: { type: 'string', description: 'An approved media reference resolved by the host.' },
259
+ query: { type: 'string', minLength: 1, maxLength: 4096 },
260
+ },
261
+ },
262
+ outputSchema: withMeta({
263
+ windows: {
264
+ type: 'array',
265
+ items: {
266
+ type: 'object',
267
+ additionalProperties: false,
268
+ required: ['startMs', 'endMs', 'score'],
269
+ properties: {
270
+ startMs: { type: 'number', minimum: 0 },
271
+ endMs: { type: 'number', minimum: 0 },
272
+ score: { type: 'number' },
273
+ },
274
+ },
275
+ },
276
+ }, ['windows']),
277
+ semantics: {
278
+ scoreKind: 'cosine-similarity',
279
+ calibrated: false,
280
+ emptyInputMeaning: 'binding-error',
281
+ appliesTo: 'approved-media',
282
+ },
283
+ limits: { maxWindows: 32, maxQueryCharacters: 4096 },
284
+ unsupported: ['Windows outside the approved media bounds.'],
285
+ };
286
+ /** The `decision.choose` contract at version 1.0.0 (Laya family). */
287
+ export const decisionChoose = {
288
+ contract: 'decision.choose',
289
+ version: '1.0.0',
290
+ toolName: 'decision_choose',
291
+ description: 'Choose one option from a bounded set for a stated decision, with a confidence verdict.',
292
+ inputSchema: {
293
+ type: 'object',
294
+ additionalProperties: false,
295
+ required: ['decision', 'options'],
296
+ properties: {
297
+ decision: { type: 'string', minLength: 1, maxLength: 4096 },
298
+ options: { type: 'array', minItems: 2, maxItems: 16, items: { type: 'string', minLength: 1, maxLength: 400 } },
299
+ },
300
+ },
301
+ outputSchema: withMeta({
302
+ chosen: { type: 'integer', minimum: 0 },
303
+ confidence: { type: 'string', enum: ['confident', 'likely', 'tentative'] },
304
+ reason: { type: 'string', minLength: 1 },
305
+ }, ['chosen', 'confidence', 'reason']),
306
+ semantics: {
307
+ scoreKind: 'vendor-reported-confidence',
308
+ calibrated: false,
309
+ emptyInputMeaning: 'binding-error',
310
+ appliesTo: 'stated-decision',
311
+ },
312
+ limits: { maxOptions: 16 },
313
+ unsupported: ['Open-ended generation: this contract chooses, it does not compose.'],
314
+ };
315
+ /** The `decision.test` contract at version 1.0.0. */
316
+ export const decisionTest = {
317
+ contract: 'decision.test',
318
+ version: '1.0.0',
319
+ toolName: 'decision_test',
320
+ description: 'Test a binary predicate against supplied text and report the verdict with evidence.',
321
+ inputSchema: {
322
+ type: 'object',
323
+ additionalProperties: false,
324
+ required: ['text', 'predicate'],
325
+ properties: {
326
+ text: { type: 'string', minLength: 1, maxLength: 32768 },
327
+ predicate: { type: 'string', minLength: 1, maxLength: 1000 },
328
+ },
329
+ },
330
+ outputSchema: withMeta({
331
+ verdict: { type: 'boolean' },
332
+ confidence: { type: 'string', enum: ['confident', 'likely', 'tentative'] },
333
+ evidence: { type: 'string', minLength: 1 },
334
+ }, ['verdict', 'confidence', 'evidence']),
335
+ semantics: {
336
+ scoreKind: 'vendor-reported-confidence',
337
+ calibrated: false,
338
+ emptyInputMeaning: 'binding-error',
339
+ appliesTo: 'written-text-only',
340
+ },
341
+ limits: { maxInputCharacters: 32768 },
342
+ unsupported: ['Testing predicates about content outside the supplied text.'],
343
+ };
344
+ /** The `decision.score` contract at version 1.0.0. */
345
+ export const decisionScore = {
346
+ contract: 'decision.score',
347
+ version: '1.0.0',
348
+ toolName: 'decision_score',
349
+ description: 'Score supplied options against one criterion on a declared bounded scale.',
350
+ inputSchema: {
351
+ type: 'object',
352
+ additionalProperties: false,
353
+ required: ['criterion', 'options'],
354
+ properties: {
355
+ criterion: { type: 'string', minLength: 1, maxLength: 2000 },
356
+ options: { type: 'array', minItems: 1, maxItems: 16, items: { type: 'string', minLength: 1, maxLength: 400 } },
357
+ },
358
+ },
359
+ outputSchema: withMeta({
360
+ scores: {
361
+ type: 'array',
362
+ items: {
363
+ type: 'object',
364
+ additionalProperties: false,
365
+ required: ['index', 'score'],
366
+ properties: { index: { type: 'integer', minimum: 0 }, score: { type: 'number', minimum: 0, maximum: 10 } },
367
+ },
368
+ },
369
+ }, ['scores']),
370
+ semantics: {
371
+ scoreKind: 'bounded-scale-0-10',
372
+ calibrated: false,
373
+ emptyInputMeaning: 'binding-error',
374
+ appliesTo: 'stated-criterion',
375
+ },
376
+ limits: { maxOptions: 16 },
377
+ unsupported: ['Scores outside the declared 0-10 scale.'],
378
+ };
379
+ /** The `structured.extract` contract at version 1.0.0 (Needle family). */
380
+ export const structuredExtract = {
381
+ contract: 'structured.extract',
382
+ version: '1.0.0',
383
+ toolName: 'structured_extract',
384
+ description: 'Extract typed fields from supplied text against the caller-declared, host-approved schema snapshot.',
385
+ inputSchema: {
386
+ type: 'object',
387
+ additionalProperties: false,
388
+ required: ['text', 'schema'],
389
+ properties: {
390
+ text: { type: 'string', minLength: 1, maxLength: 32768 },
391
+ schema: { type: 'object', description: 'The host-approved extraction schema snapshot (NDL-02).' },
392
+ },
393
+ },
394
+ outputSchema: withMeta({
395
+ extracted: { type: 'object', description: 'The typed extraction payload.' },
396
+ }, ['extracted']),
397
+ semantics: {
398
+ scoreKind: 'none',
399
+ calibrated: false,
400
+ emptyInputMeaning: 'binding-error',
401
+ appliesTo: 'written-text-only',
402
+ },
403
+ limits: { maxInputCharacters: 32768 },
404
+ unsupported: ['Executing a caller-supplied schema that the host has not approved.'],
405
+ };
406
+ /** The `plan.tools` contract at version 1.0.0 (Needle family). */
407
+ export const toolsPlan = {
408
+ contract: 'plan.tools',
409
+ version: '1.0.0',
410
+ toolName: 'tools_plan',
411
+ description: 'Propose a read-only tool plan against the host-frozen authorized tool snapshot (NDL-02).',
412
+ inputSchema: {
413
+ type: 'object',
414
+ additionalProperties: false,
415
+ required: ['objective'],
416
+ properties: {
417
+ objective: { type: 'string', minLength: 1, maxLength: 4096 },
418
+ },
419
+ },
420
+ outputSchema: withMeta({
421
+ proposal: {
422
+ type: 'array',
423
+ items: {
424
+ type: 'object',
425
+ additionalProperties: false,
426
+ required: ['tool', 'arguments'],
427
+ properties: {
428
+ tool: { type: 'string', minLength: 1 },
429
+ arguments: { type: 'object' },
430
+ },
431
+ },
432
+ },
433
+ }, ['proposal']),
434
+ semantics: {
435
+ scoreKind: 'none',
436
+ calibrated: false,
437
+ emptyInputMeaning: 'binding-error',
438
+ appliesTo: 'proposal-only',
439
+ },
440
+ limits: { maxObjectiveCharacters: 4096 },
441
+ unsupported: [
442
+ 'Executing the proposal: this contract proposes; the host re-checks authorization before any dispatch (NDL-03).',
443
+ ],
444
+ };
445
+ //# sourceMappingURL=standard.js.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `stt.transcribe` — the canonical transcription contract (TOOL-01).
3
+ *
4
+ * This contract is model-free on purpose. Any conforming implementation binds to
5
+ * it, so a caller addresses `stt_transcribe` once and the host decides which
6
+ * model runs (BASE-02). Adding a second transcription model must not add a
7
+ * second tool.
8
+ *
9
+ * The semantics block is the part a schema cannot express and the part the spec
10
+ * insists on (DECL-01, TOOL-01): whether this transcribes or translates, what
11
+ * the timestamps mean, and what an empty result means.
12
+ *
13
+ * @module @try-works/tool-mode-contracts/contracts/stt-transcribe
14
+ */
15
+ import type { ToolContract } from '../registry.ts';
16
+ /** Accepted audio container/codec combinations for the bounded decoder. */
17
+ export declare const STT_ADMITTED_FORMATS: readonly ["wav-pcm16"];
18
+ /** The `stt.transcribe` contract at version 1.0.0. */
19
+ export declare const sttTranscribe: ToolContract;
20
+ //# sourceMappingURL=stt-transcribe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stt-transcribe.d.ts","sourceRoot":"","sources":["../../src/contracts/stt-transcribe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,wBAAyB,CAAA;AAE1D,sDAAsD;AACtD,eAAO,MAAM,aAAa,EAAE,YAqG3B,CAAA"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * `stt.transcribe` — the canonical transcription contract (TOOL-01).
3
+ *
4
+ * This contract is model-free on purpose. Any conforming implementation binds to
5
+ * it, so a caller addresses `stt_transcribe` once and the host decides which
6
+ * model runs (BASE-02). Adding a second transcription model must not add a
7
+ * second tool.
8
+ *
9
+ * The semantics block is the part a schema cannot express and the part the spec
10
+ * insists on (DECL-01, TOOL-01): whether this transcribes or translates, what
11
+ * the timestamps mean, and what an empty result means.
12
+ *
13
+ * @module @try-works/tool-mode-contracts/contracts/stt-transcribe
14
+ */
15
+ import { withMeta } from "../meta.js";
16
+ /** Accepted audio container/codec combinations for the bounded decoder. */
17
+ export const STT_ADMITTED_FORMATS = ['wav-pcm16'];
18
+ /** The `stt.transcribe` contract at version 1.0.0. */
19
+ export const sttTranscribe = {
20
+ contract: 'stt.transcribe',
21
+ version: '1.0.0',
22
+ toolName: 'stt_transcribe',
23
+ description: 'Transcribe a local audio recording into text with optional word timestamps. '
24
+ + 'Runs on device by default; the caller selects no model. Accepts 16 kHz mono PCM16 WAV '
25
+ + 'directly, and other encodings only through a tested decoder. Reports partial coverage '
26
+ + 'rather than presenting an incomplete clip as fully transcribed.',
27
+ inputSchema: {
28
+ type: 'object',
29
+ additionalProperties: false,
30
+ required: ['audio'],
31
+ properties: {
32
+ audio: {
33
+ type: 'object',
34
+ additionalProperties: false,
35
+ required: ['path'],
36
+ properties: {
37
+ path: { type: 'string', minLength: 1, description: 'Absolute path to the recording.' },
38
+ sampleRateHz: {
39
+ type: 'integer',
40
+ minimum: 8000,
41
+ maximum: 48000,
42
+ description: 'Declared sample rate; inspected against the file header, not trusted.',
43
+ },
44
+ channels: { type: 'integer', minimum: 1, maximum: 2 },
45
+ },
46
+ },
47
+ language: {
48
+ type: 'string',
49
+ minLength: 2,
50
+ description: 'Requested language as a BCP-47/ISO 639 code. An unsupported request is an error, never a silent fallback.',
51
+ },
52
+ timestamps: {
53
+ type: 'string',
54
+ enum: ['none', 'word'],
55
+ default: 'none',
56
+ description: 'Word timestamps when requested; an implementation that cannot supply them must error rather than omit them.',
57
+ },
58
+ },
59
+ },
60
+ outputSchema: withMeta({
61
+ text: { type: 'string' },
62
+ coverage: {
63
+ type: 'object',
64
+ additionalProperties: false,
65
+ required: ['complete', 'transcribedSeconds'],
66
+ properties: {
67
+ complete: { type: 'boolean' },
68
+ transcribedSeconds: { type: 'number', minimum: 0 },
69
+ totalSeconds: { type: ['number', 'null'], minimum: 0 },
70
+ reason: { type: ['string', 'null'] },
71
+ },
72
+ },
73
+ words: {
74
+ type: ['array', 'null'],
75
+ items: {
76
+ type: 'object',
77
+ additionalProperties: false,
78
+ required: ['text', 'start', 'end'],
79
+ properties: {
80
+ text: { type: 'string' },
81
+ start: { type: 'number', minimum: 0, description: 'Seconds from the start of the audio.' },
82
+ end: { type: 'number', minimum: 0 },
83
+ },
84
+ },
85
+ },
86
+ language: { type: ['string', 'null'], description: 'The language actually recognized, when the implementation reports it.' },
87
+ }, ['text', 'coverage']),
88
+ semantics: {
89
+ operation: 'transcription',
90
+ translation: false,
91
+ timestampUnit: 'seconds',
92
+ timestampReference: 'start-of-audio',
93
+ emptyResultMeaning: 'valid-empty-transcript',
94
+ partialResultMeaning: 'coverage.complete is false; the transcript is incomplete, not wrong',
95
+ languageMismatch: 'error',
96
+ unsupportedTimestampRequest: 'error',
97
+ },
98
+ limits: {
99
+ maxAudioSeconds: 3600,
100
+ maxAudioBytes: 512 * 1024 * 1024,
101
+ admittedSampleRateHz: 16000,
102
+ admittedChannels: 1,
103
+ },
104
+ unsupported: [
105
+ 'Encoding without a tested decoder: only wav-pcm16 is admitted directly; assume nothing from the file extension.',
106
+ 'Translation: this contract transcribes, it does not translate.',
107
+ 'Diarization or speaker attribution: separate capability.',
108
+ 'Timestamps when the selected implementation cannot produce them: reported as an error.',
109
+ 'Live/streaming audio: the input is a completed local file.',
110
+ ],
111
+ };
112
+ //# sourceMappingURL=stt-transcribe.js.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * `text.embed` — the legacy MiniLM text-embedding contract (TOOL-04, BASE-12).
3
+ *
4
+ * Model-free: any conforming implementation binds to it. This is the 384-
5
+ * dimensional MiniLM space, PRESERVED separately from the EmbeddingGemma 2
6
+ * 768-dimensional space — the two must never be mixed, and a stored 384-d
7
+ * index must never be quietly fed 768-wide vectors.
8
+ *
9
+ * @module @try-works/tool-mode-contracts/contracts/text-embed
10
+ */
11
+ import type { ToolContract } from '../registry.ts';
12
+ /** The `text.embed` contract at version 1.0.0. */
13
+ export declare const textEmbed: ToolContract;
14
+ //# sourceMappingURL=text-embed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-embed.d.ts","sourceRoot":"","sources":["../../src/contracts/text-embed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,kDAAkD;AAClD,eAAO,MAAM,SAAS,EAAE,YA0DvB,CAAA"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * `text.embed` — the legacy MiniLM text-embedding contract (TOOL-04, BASE-12).
3
+ *
4
+ * Model-free: any conforming implementation binds to it. This is the 384-
5
+ * dimensional MiniLM space, PRESERVED separately from the EmbeddingGemma 2
6
+ * 768-dimensional space — the two must never be mixed, and a stored 384-d
7
+ * index must never be quietly fed 768-wide vectors.
8
+ *
9
+ * @module @try-works/tool-mode-contracts/contracts/text-embed
10
+ */
11
+ import { withMeta } from "../meta.js";
12
+ /** The `text.embed` contract at version 1.0.0. */
13
+ export const textEmbed = {
14
+ contract: 'text.embed',
15
+ version: '1.0.0',
16
+ toolName: 'text_embed',
17
+ description: 'Embed a batch of texts into the legacy 384-dimensional MiniLM embedding space (mean pooling, '
18
+ + 'L2-normalized, input order preserved). This is a compatibility space: stored 384-d vectors and '
19
+ + 'indexes remain pinned to it, and switching to another model requires explicit re-embedding. '
20
+ + 'All values are finite; an empty or overlong batch is refused, never silently truncated.',
21
+ inputSchema: {
22
+ type: 'object',
23
+ additionalProperties: false,
24
+ required: ['texts'],
25
+ properties: {
26
+ texts: {
27
+ type: 'array',
28
+ minItems: 1,
29
+ maxItems: 32,
30
+ items: { type: 'string', minLength: 1, maxLength: 32768 },
31
+ description: 'The texts in the caller\'s order; that order is the embedding order (TOOL-04).',
32
+ },
33
+ },
34
+ },
35
+ outputSchema: withMeta({
36
+ embeddings: {
37
+ type: 'array',
38
+ items: {
39
+ type: 'array',
40
+ items: { type: 'number' },
41
+ description: 'One 384-dimensional L2-normalized vector per input text, in input order.',
42
+ },
43
+ },
44
+ dimensions: { const: 384 },
45
+ normalized: { const: true },
46
+ }, ['embeddings', 'dimensions', 'normalized']),
47
+ semantics: {
48
+ scoreKind: 'none',
49
+ calibrated: false,
50
+ emptyInputMeaning: 'binding-error',
51
+ appliesTo: 'written-text-only',
52
+ },
53
+ limits: {
54
+ maxTexts: 32,
55
+ maxInputCharacters: 32768,
56
+ dimensions: 384,
57
+ },
58
+ unsupported: [
59
+ 'Mixing 384-dimensional and 768-dimensional vectors in one index.',
60
+ 'Silently truncating an overlong batch.',
61
+ ],
62
+ };
63
+ //# sourceMappingURL=text-embed.js.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * `text.rerank` — the cross-encoder reranking contract (TOOL-05).
3
+ *
4
+ * Model-free: any conforming implementation binds to it. The scores are
5
+ * RANKING LOGITS from a cross-encoder — not embedding cosines, and the two
6
+ * score kinds are never interchangeable (the semantic_rank tool's
7
+ * cosine_similarity is a different quantity).
8
+ *
9
+ * @module @try-works/tool-mode-contracts/contracts/text-rerank
10
+ */
11
+ import type { ToolContract } from '../registry.ts';
12
+ /** The `text.rerank` contract at version 1.0.0. */
13
+ export declare const textRerank: ToolContract;
14
+ //# sourceMappingURL=text-rerank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-rerank.d.ts","sourceRoot":"","sources":["../../src/contracts/text-rerank.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,mDAAmD;AACnD,eAAO,MAAM,UAAU,EAAE,YAuExB,CAAA"}