@try-works/dsh-model-as-tool 0.1.2 → 0.3.6

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 (267) hide show
  1. package/bin/dsh-tool-mode-credentials.mjs +20 -0
  2. package/bin/dsh-tool-mode.mjs +202 -0
  3. package/catalog/desert-ant-models.json +693 -693
  4. package/client/client.model-tools.js +592 -0
  5. package/client/index.js +1679 -0
  6. package/lib/adapters/index.d.ts.map +1 -1
  7. package/lib/adapters/index.js +4 -4
  8. package/lib/bindings.d.ts.map +1 -1
  9. package/lib/bindings.js +26 -25
  10. package/lib/capability.d.ts.map +1 -1
  11. package/lib/capability.js +17 -0
  12. package/lib/capture-path.d.ts +97 -0
  13. package/lib/capture-path.d.ts.map +1 -0
  14. package/lib/capture-path.js +152 -0
  15. package/lib/diagnostics.d.ts +166 -0
  16. package/lib/diagnostics.d.ts.map +1 -0
  17. package/lib/diagnostics.js +135 -0
  18. package/lib/extension-dependencies.d.ts +197 -0
  19. package/lib/extension-dependencies.d.ts.map +1 -0
  20. package/lib/extension-dependencies.js +369 -0
  21. package/lib/extension-dispatch.d.ts +117 -0
  22. package/lib/extension-dispatch.d.ts.map +1 -0
  23. package/lib/extension-dispatch.js +124 -0
  24. package/lib/extension-registrar.d.ts +100 -0
  25. package/lib/extension-registrar.d.ts.map +1 -0
  26. package/lib/extension-registrar.js +134 -0
  27. package/lib/extensions-api.d.ts +217 -0
  28. package/lib/extensions-api.d.ts.map +1 -0
  29. package/lib/extensions-api.js +17 -0
  30. package/lib/extensions-remote.d.ts +54 -0
  31. package/lib/extensions-remote.d.ts.map +1 -0
  32. package/lib/extensions-remote.js +66 -0
  33. package/lib/extensions-service.d.ts +334 -0
  34. package/lib/extensions-service.d.ts.map +1 -0
  35. package/lib/extensions-service.js +1351 -0
  36. package/lib/harness-llm.d.ts +138 -0
  37. package/lib/harness-llm.d.ts.map +1 -0
  38. package/lib/harness-llm.js +218 -0
  39. package/lib/harness-serving.d.ts +95 -0
  40. package/lib/harness-serving.d.ts.map +1 -0
  41. package/lib/harness-serving.js +157 -0
  42. package/lib/headless.d.ts +97 -0
  43. package/lib/headless.d.ts.map +1 -0
  44. package/lib/headless.js +349 -0
  45. package/lib/http-acquisition.d.ts +27 -0
  46. package/lib/http-acquisition.d.ts.map +1 -0
  47. package/lib/http-acquisition.js +136 -0
  48. package/lib/index.d.ts +250 -7
  49. package/lib/index.d.ts.map +1 -1
  50. package/lib/index.js +2625 -70
  51. package/lib/invocation-accounting.d.ts +169 -0
  52. package/lib/invocation-accounting.d.ts.map +1 -0
  53. package/lib/invocation-accounting.js +148 -0
  54. package/lib/legacy-migration.d.ts +95 -0
  55. package/lib/legacy-migration.d.ts.map +1 -0
  56. package/lib/legacy-migration.js +429 -0
  57. package/lib/managed-workers.d.ts +151 -0
  58. package/lib/managed-workers.d.ts.map +1 -0
  59. package/lib/managed-workers.js +249 -0
  60. package/lib/mcp/client-grant.d.ts +74 -0
  61. package/lib/mcp/client-grant.d.ts.map +1 -0
  62. package/lib/mcp/client-grant.js +60 -0
  63. package/lib/mcp/credential-cli.d.ts +38 -0
  64. package/lib/mcp/credential-cli.d.ts.map +1 -0
  65. package/lib/mcp/credential-cli.js +148 -0
  66. package/lib/mcp/credential-store.d.ts +143 -0
  67. package/lib/mcp/credential-store.d.ts.map +1 -0
  68. package/lib/mcp/credential-store.js +454 -0
  69. package/lib/mcp/host-binding.d.ts +25 -0
  70. package/lib/mcp/host-binding.d.ts.map +1 -1
  71. package/lib/mcp/host-binding.js +107 -14
  72. package/lib/mcp/http.d.ts +68 -18
  73. package/lib/mcp/http.d.ts.map +1 -1
  74. package/lib/mcp/http.js +390 -62
  75. package/lib/mcp/oauth.d.ts +149 -0
  76. package/lib/mcp/oauth.d.ts.map +1 -0
  77. package/lib/mcp/oauth.js +396 -0
  78. package/lib/mcp/protocol.d.ts +46 -7
  79. package/lib/mcp/protocol.d.ts.map +1 -1
  80. package/lib/mcp/protocol.js +63 -16
  81. package/lib/mcp/rate-limit.d.ts +68 -0
  82. package/lib/mcp/rate-limit.d.ts.map +1 -0
  83. package/lib/mcp/rate-limit.js +114 -0
  84. package/lib/mcp/sdk-v2.d.ts +17 -0
  85. package/lib/mcp/sdk-v2.d.ts.map +1 -0
  86. package/lib/mcp/sdk-v2.js +181 -0
  87. package/lib/mcp/server.d.ts +11 -1
  88. package/lib/mcp/server.d.ts.map +1 -1
  89. package/lib/mcp/server.js +80 -13
  90. package/lib/mcp/stdio.d.ts.map +1 -1
  91. package/lib/mcp/stdio.js +9 -1
  92. package/lib/mcp/subscriptions.d.ts +43 -1
  93. package/lib/mcp/subscriptions.d.ts.map +1 -1
  94. package/lib/mcp/subscriptions.js +90 -9
  95. package/lib/model-qualification.d.ts +192 -0
  96. package/lib/model-qualification.d.ts.map +1 -0
  97. package/lib/model-qualification.js +178 -0
  98. package/lib/planning.d.ts +246 -0
  99. package/lib/planning.d.ts.map +1 -0
  100. package/lib/planning.js +457 -0
  101. package/lib/prepared-assets.d.ts +178 -0
  102. package/lib/prepared-assets.d.ts.map +1 -0
  103. package/lib/prepared-assets.js +286 -0
  104. package/lib/provider-bridge.d.ts +37 -0
  105. package/lib/provider-bridge.d.ts.map +1 -1
  106. package/lib/provider-bridge.js +189 -12
  107. package/lib/ptc-authority.d.ts +140 -0
  108. package/lib/ptc-authority.d.ts.map +1 -0
  109. package/lib/ptc-authority.js +216 -0
  110. package/lib/ptc-runtime.d.ts +156 -0
  111. package/lib/ptc-runtime.d.ts.map +1 -0
  112. package/lib/ptc-runtime.js +191 -0
  113. package/lib/publication.d.ts +2 -1
  114. package/lib/publication.d.ts.map +1 -1
  115. package/lib/publication.js +13 -5
  116. package/lib/receipt.d.ts.map +1 -1
  117. package/lib/receipt.js +8 -0
  118. package/lib/title-proposal.d.ts +194 -0
  119. package/lib/title-proposal.d.ts.map +1 -0
  120. package/lib/title-proposal.js +244 -0
  121. package/lib/tool-mode-run.d.ts +235 -0
  122. package/lib/tool-mode-run.d.ts.map +1 -0
  123. package/lib/tool-mode-run.js +283 -0
  124. package/lib/types.d.ts +3 -1
  125. package/lib/types.d.ts.map +1 -1
  126. package/lib/update-surface.d.ts +79 -0
  127. package/lib/update-surface.d.ts.map +1 -0
  128. package/lib/update-surface.js +224 -0
  129. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts +16 -0
  130. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts.map +1 -0
  131. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.js +85 -0
  132. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts +38 -0
  133. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts.map +1 -0
  134. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.js +445 -0
  135. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts +20 -0
  136. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts.map +1 -0
  137. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.js +112 -0
  138. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts +14 -0
  139. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts.map +1 -0
  140. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.js +63 -0
  141. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts +14 -0
  142. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts.map +1 -0
  143. package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.js +76 -0
  144. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts +82 -0
  145. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts.map +1 -0
  146. package/node_modules/@try-works/tool-mode-contracts/lib/dsh.js +274 -0
  147. package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts +26 -0
  148. package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts.map +1 -0
  149. package/node_modules/@try-works/tool-mode-contracts/lib/index.js +48 -0
  150. package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts +104 -0
  151. package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts.map +1 -0
  152. package/node_modules/@try-works/tool-mode-contracts/lib/meta.js +55 -0
  153. package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts +107 -0
  154. package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts.map +1 -0
  155. package/node_modules/@try-works/tool-mode-contracts/lib/registry.js +246 -0
  156. package/node_modules/@try-works/tool-mode-contracts/package.json +34 -0
  157. package/node_modules/@try-works/tool-mode-extension-sdk/bin/dsh-tool-mode.mjs +20 -0
  158. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts +80 -0
  159. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts.map +1 -0
  160. package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.js +533 -0
  161. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts +83 -0
  162. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts.map +1 -0
  163. package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.js +125 -0
  164. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts +70 -0
  165. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts.map +1 -0
  166. package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.js +201 -0
  167. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts +57 -0
  168. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts.map +1 -0
  169. package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.js +83 -0
  170. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts +31 -0
  171. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts.map +1 -0
  172. package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.js +31 -0
  173. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts +86 -0
  174. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts.map +1 -0
  175. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.js +185 -0
  176. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts +126 -0
  177. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts.map +1 -0
  178. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.js +297 -0
  179. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts +216 -0
  180. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts.map +1 -0
  181. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.js +800 -0
  182. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts +210 -0
  183. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts.map +1 -0
  184. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.js +368 -0
  185. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts +63 -0
  186. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts.map +1 -0
  187. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.js +149 -0
  188. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts +35 -0
  189. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts.map +1 -0
  190. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.js +179 -0
  191. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts +179 -0
  192. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts.map +1 -0
  193. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.js +235 -0
  194. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts +367 -0
  195. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts.map +1 -0
  196. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.js +807 -0
  197. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts +185 -0
  198. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts.map +1 -0
  199. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.js +504 -0
  200. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts +17 -0
  201. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts.map +1 -0
  202. package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.js +80 -0
  203. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts +52 -0
  204. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts.map +1 -0
  205. package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.js +102 -0
  206. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts +171 -0
  207. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts.map +1 -0
  208. package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.js +271 -0
  209. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts +242 -0
  210. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts.map +1 -0
  211. package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.js +58 -0
  212. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts +118 -0
  213. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts.map +1 -0
  214. package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.js +113 -0
  215. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts +2 -0
  216. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts.map +1 -0
  217. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.js +351 -0
  218. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts +150 -0
  219. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts.map +1 -0
  220. package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.js +670 -0
  221. package/node_modules/@try-works/tool-mode-extension-sdk/package.json +53 -0
  222. package/node_modules/@try-works/tool-mode-extension-sdk/schema/extension-manifest-1.1.0.schema.json +253 -0
  223. package/node_modules/@try-works/tool-mode-recipes/bin/tool-mode-recipe.mjs +15 -0
  224. package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts +427 -0
  225. package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts.map +1 -0
  226. package/node_modules/@try-works/tool-mode-recipes/lib/broker.js +592 -0
  227. package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts +60 -0
  228. package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts.map +1 -0
  229. package/node_modules/@try-works/tool-mode-recipes/lib/cli.js +936 -0
  230. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts +237 -0
  231. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts.map +1 -0
  232. package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.js +200 -0
  233. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts +85 -0
  234. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts.map +1 -0
  235. package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.js +176 -0
  236. package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts +105 -0
  237. package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts.map +1 -0
  238. package/node_modules/@try-works/tool-mode-recipes/lib/images.js +129 -0
  239. package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts +25 -0
  240. package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts.map +1 -0
  241. package/node_modules/@try-works/tool-mode-recipes/lib/index.js +25 -0
  242. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts +325 -0
  243. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts.map +1 -0
  244. package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.js +1310 -0
  245. package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts +51 -0
  246. package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts.map +1 -0
  247. package/node_modules/@try-works/tool-mode-recipes/lib/templates.js +310 -0
  248. package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts +227 -0
  249. package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts.map +1 -0
  250. package/node_modules/@try-works/tool-mode-recipes/lib/titles.js +407 -0
  251. package/node_modules/@try-works/tool-mode-recipes/package.json +56 -0
  252. package/node_modules/@try-works/tool-mode-recipes/recipes/describe-image.json +38 -0
  253. package/node_modules/@try-works/tool-mode-recipes/recipes/text-title.json +45 -0
  254. package/node_modules/@try-works/tool-mode-recipes/schema/harness-model-recipe.schema.json +273 -0
  255. package/package.json +50 -17
  256. package/remote/spec.mjs +439 -0
  257. package/remote/typert.host.mjs +14 -0
  258. package/remote/typert.remote-client.mjs +16 -0
  259. package/lib/adapters/tongue.d.ts +0 -31
  260. package/lib/adapters/tongue.d.ts.map +0 -1
  261. package/lib/adapters/tongue.js +0 -93
  262. package/lib/adapters/voz.d.ts +0 -28
  263. package/lib/adapters/voz.d.ts.map +0 -1
  264. package/lib/adapters/voz.js +0 -102
  265. /package/{lib → node_modules/@try-works/tool-mode-extension-sdk/lib}/licensing.d.ts +0 -0
  266. /package/{lib → node_modules/@try-works/tool-mode-extension-sdk/lib}/licensing.d.ts.map +0 -0
  267. /package/{lib → node_modules/@try-works/tool-mode-extension-sdk/lib}/licensing.js +0 -0
package/lib/index.d.ts CHANGED
@@ -14,6 +14,10 @@
14
14
  */
15
15
  import type { Context } from '@deepseek-ai/cordis';
16
16
  import z from '@deepseek-ai/schemastery';
17
+ import { type ResolvedModel } from './capability.ts';
18
+ import { type HarnessModelConfig } from './harness-llm.ts';
19
+ import { type LlmProvider } from '@try-works/tool-mode-recipes';
20
+ import type { AcquisitionSource } from './asset-acquisition.ts';
17
21
  export declare const name = "model-tools";
18
22
  export declare const inject: string[];
19
23
  /**
@@ -49,6 +53,17 @@ export interface Config {
49
53
  registerSkills?: boolean;
50
54
  /** Register the `model_tools` inspection tool. Default true. */
51
55
  registerControlTool?: boolean;
56
+ /**
57
+ * The operator's CONSENT to hosted code execution (CODE-10).
58
+ *
59
+ * Code execution is a SEPARATE consent from ordinary model-tool access, and it
60
+ * ships disabled until granted. This flag is the grant: the operator turns it
61
+ * on explicitly. It is checked in addition to — never instead of — the
62
+ * confinement gate (CODE-09), which remains closed until the confinement
63
+ * acceptance tests pass, so flipping this flag alone cannot expose the runtime.
64
+ * Default false.
65
+ */
66
+ hostedCode?: boolean;
52
67
  /**
53
68
  * The Desert Ant CLI transport, which runs on macOS and Linux and can reach
54
69
  * every shipping model — including the Apple-only ones that have no npm
@@ -84,6 +99,154 @@ export interface Config {
84
99
  * `<DSH_HOME>/model-as-tool/state.json`.
85
100
  */
86
101
  stateFile?: string;
102
+ /**
103
+ * Where generated external MCP client credentials are persisted (SEC-01).
104
+ *
105
+ * Defaults to `<DSH_HOME>/model-as-tool/credentials.json`, next to the state file,
106
+ * so the store inherits the operator profile's owner-only protection. A deployment
107
+ * that disables persistence refuses generation rather than issuing a credential a
108
+ * restart would forget.
109
+ */
110
+ credentialsFile?: string;
111
+ /**
112
+ * Directory of the operator-owned EXTENSION store.
113
+ *
114
+ * When set, the host mounts the extension lifecycle and restores the extensions the
115
+ * operator approved as active. Left unset, no extension is mounted and behaviour is
116
+ * exactly as before - which is why this is a directory rather than a boolean: an
117
+ * absent directory is a deployment that has no extensions, not one that forbade them.
118
+ */
119
+ extensionStore?: string;
120
+ /**
121
+ * Directory that holds first-party extension PACKAGE checkouts, one directory per
122
+ * package, for the Settings → Model as Tool install path.
123
+ *
124
+ * A package lives in the directory named by its final identity segment: a package
125
+ * `@try-works/extension-laya` is installed from
126
+ * `<extensionSourceDir>/extension-laya`. Left empty, no first-party source is
127
+ * advertised and `describe()` reports `sourceDir: null`; an install then needs an
128
+ * explicit source directory.
129
+ *
130
+ * This is DEVELOPER MODE (EXT-06): the directory is only ever used when
131
+ * `extensions.allowSourceDirectories` explicitly allows it, the installer copies
132
+ * the tree rather than linking it, and the installation lands INACTIVE.
133
+ */
134
+ extensionSourceDir?: string;
135
+ /**
136
+ * Operator gate: allow dependency content that arrived already materialized.
137
+ *
138
+ * OFF by default. When off, a declared dependency whose package.json carries
139
+ * install-time scripts refuses (EXT-10), exactly as before. When on, the
140
+ * resolver may supply the host's installed tree for such a dependency (for
141
+ * example onnxruntime-node after the operator's npm ran its postinstall); the
142
+ * SDK copies it into the extension's own installation directory and records
143
+ * `provenance: 'preinstalled'` with the source — stating that the installer
144
+ * did NOT run the scripts, rather than silently skipping them.
145
+ */
146
+ allowPreinstalledDependencies?: boolean;
147
+ /**
148
+ * The root a preinstalled dependency directory must live under.
149
+ *
150
+ * Required when {@link allowPreinstalledDependencies} is on: the SDK refuses a
151
+ * preinstalled directory outside it as a path escape. Point it at a root that
152
+ * contains the host dependency tree (for example the repository or profile
153
+ * root); never a world-writable location.
154
+ */
155
+ preinstalledDependenciesRoot?: string;
156
+ /**
157
+ * The operator's STANDING RES-02 approval for executable asset preparation
158
+ * initiated from the client/Remote path (Settings → Model as Tool → Prepare).
159
+ *
160
+ * DEFAULT FALSE. With it off, a preparation plan that contains an executable
161
+ * asset returns the exact RES-02 refusal: acquiring a downloaded engine is a
162
+ * separate approval from approving a model download, not a checkbox riding along
163
+ * with it. With it on, the Remote `prepare` call is the operator's approval for
164
+ * every executable asset of the digest-pinned, first-party plans the host
165
+ * resolves — which is why it should be enabled only for such engines, never for
166
+ * an arbitrary package source. The management channel (`model_tools`
167
+ * `extensions-prepare`) keeps its own PER-CALL `allowExecutable` flag and is not
168
+ * affected by this setting.
169
+ */
170
+ allowExecutablePreparation?: boolean;
171
+ /** INTERNAL TEST SEAM: the acquisition source extensions-prepare uses instead
172
+ * of the ranged HTTP source. A suite injects a local file source so the
173
+ * acquisition path is exercised with ZERO network; a deployment never sets
174
+ * this, and the default stays the real opt-in source. */
175
+ assetSourceFactory?: () => AcquisitionSource;
176
+ /** TASK-99 test seams: the bounded-retry interval/cap (defaults 250 ms / 30 s). */
177
+ harnessRetryIntervalMs?: number;
178
+ harnessRetryCapMs?: number;
179
+ /** §12 config v3: the nested shape + the fixed-false flags (see the zod). */
180
+ schemaVersion?: number;
181
+ extensions?: {
182
+ protocolMajor?: number;
183
+ manifestVersion?: string;
184
+ registry?: string;
185
+ allowHttpsArchives?: boolean;
186
+ allowLocalArchives?: boolean;
187
+ allowSourceDirectories?: boolean;
188
+ automaticUpdates?: boolean;
189
+ runInstallScripts?: boolean;
190
+ };
191
+ mcpV3?: {
192
+ enabled?: boolean;
193
+ protocolVersions?: string[];
194
+ legacyCompatibility?: boolean;
195
+ host?: string;
196
+ port?: number;
197
+ path?: string;
198
+ allowedOrigins?: string[];
199
+ exportTools?: string[];
200
+ catalogTtlMs?: number;
201
+ catalogCacheScope?: string;
202
+ auth?: {
203
+ mode?: string;
204
+ authorizationServerProfile?: string | null;
205
+ };
206
+ };
207
+ compositionV3?: {
208
+ enabled?: boolean;
209
+ defaultTimeoutMs?: number;
210
+ maxTimeoutMs?: number;
211
+ maxToolCalls?: number;
212
+ maxConcurrentBindings?: number;
213
+ maxHarnessModelCalls?: number;
214
+ };
215
+ multimodalV3?: {
216
+ defaultDimensions?: number;
217
+ defaultOverflow?: string;
218
+ maxVideoFrames?: number;
219
+ audioSampleRateHz?: number;
220
+ selectiveEncoderLoading?: boolean;
221
+ };
222
+ harnessExecutorV3?: {
223
+ enabled?: boolean;
224
+ nativeSelection?: string;
225
+ externalDefaultProfile?: string | null;
226
+ profiles?: Readonly<Record<string, unknown>>[];
227
+ defaultMaxAttempts?: number;
228
+ defaultRepairAttempts?: number;
229
+ defaultMaxOutputTokens?: number;
230
+ defaultTimeoutMs?: number;
231
+ inheritConversation?: boolean;
232
+ allowModelToolCalls?: boolean;
233
+ };
234
+ recipesV3?: {
235
+ schemaVersion?: string;
236
+ allowLocalAuthoring?: boolean;
237
+ automaticActivation?: boolean;
238
+ allowExecutableTemplates?: boolean;
239
+ };
240
+ clientsV3?: Readonly<Record<string, unknown>>[];
241
+ captureV3?: {
242
+ bodies?: boolean;
243
+ retentionDays?: number;
244
+ maxBytes?: number;
245
+ auxiliaryLlmJournal?: {
246
+ enabled?: boolean;
247
+ retentionDays?: number;
248
+ };
249
+ };
87
250
  /**
88
251
  * Whether `enable`/`disable` persist across restarts. Default true; false
89
252
  * restores the earlier session-scoped behaviour.
@@ -119,6 +282,71 @@ export interface Config {
119
282
  grantId?: string;
120
283
  /** Whether receipts may be recorded (SEC-03); default true. */
121
284
  recordReceipts?: boolean;
285
+ /**
286
+ * The CODE-11 repair-attempt ceiling for bounded-repair tools.
287
+ *
288
+ * The FLAT key is the deprecated-alias-compatible spelling that drives
289
+ * behaviour; `harnessExecutorV3.defaultRepairAttempts` is its v3 equivalent.
290
+ * An integer 0..8; 0 disables repairs. Default 1. An invalid value refuses
291
+ * at config parse, never silently clamps.
292
+ */
293
+ repairAttempts?: number;
294
+ /**
295
+ * Which capture profile this deployment runs under (OBS-03).
296
+ *
297
+ * `standard` is the default. `metadata-only` is for a headless local-specialist deployment: it
298
+ * REFUSES harness-backed execution where a no-retention policy cannot be honoured alongside
299
+ * DSH's requirement that model-visible inputs be reconstructable — rather than logging bodies
300
+ * against the policy or bypassing DSH, both of which are forbidden.
301
+ */
302
+ captureProfile?: 'standard' | 'metadata-only';
303
+ /**
304
+ * The deployment's harness provider, for executing DECLARATIVE packages (HLM-01).
305
+ *
306
+ * Supplied by the DEPLOYMENT rather than constructed here, because which model answers a
307
+ * harness call is not this plugin's business — and the architecture gate forbids
308
+ * model-specific code in the host. Absent means a declarative package resolves but is not
309
+ * served, and the refusal says so at preparation rather than at the first invocation.
310
+ */
311
+ harnessProvider?: LlmProvider;
312
+ /**
313
+ * Opt the host INTO a REAL DSH-backed harness provider (HLM-01/02/03).
314
+ *
315
+ * DEFAULT OFF: absent, nothing is wired and every existing test and packed probe is
316
+ * unchanged. When set, the host builds a {@link DshLlmProvider} over the deployment's
317
+ * DSH LLM surface (`ctx.llm`), reading the model's OWN capability descriptor, and uses
318
+ * it for declarative recipes — with the image transport minted only when the DSH
319
+ * attachment service is reachable, otherwise capabilities honestly report `unknown`
320
+ * and the broker refuses image recipes rather than dropping them. An explicit
321
+ * `harnessProvider` wins over this option (test doubles and prebuilt providers).
322
+ */
323
+ harnessModel?: HarnessModelConfig;
324
+ /**
325
+ * Opt the host INTO routing extension invocations through managed worker
326
+ * processes (EXT-20).
327
+ *
328
+ * DEFAULT OFF: absent, every extension runs in-process exactly as before, and no
329
+ * child process is ever spawned by this plugin. When set, each extension's module
330
+ * entry runs in a scrubbed-environment managed process — ONE process per extension
331
+ * per activation generation, disposed when the generation advances — and the host's
332
+ * dispatch discipline is unchanged: grant authorization and schema validation stay
333
+ * HOST-side before the worker call, and the worker's result is validated against
334
+ * the declared output schema exactly like the in-process path.
335
+ */
336
+ managedWorkers?: boolean;
337
+ /**
338
+ * Extension ids the operator switched OFF in Settings.
339
+ *
340
+ * The store still holds them and their desired activation is unchanged; the
341
+ * host simply does not restore them, so their tools never register. Removing
342
+ * an id re-activates the extension on the next load.
343
+ */
344
+ disabledExtensions?: string[];
345
+ /**
346
+ * Environment names to pass through to managed workers, on top of the SDK's
347
+ * bootstrap allowlist. Explicit names only — never `process.env` wholesale.
348
+ */
349
+ workerEnvPassthrough?: string[];
122
350
  /** Hard resource limits overriding the conservative defaults. */
123
351
  limits?: {
124
352
  maxInputBytes?: number;
@@ -126,8 +354,26 @@ export interface Config {
126
354
  maxResultBytes?: number;
127
355
  };
128
356
  }
129
- /** Validate and default the plugin configuration. */
130
357
  export declare const Config: z<Config>;
358
+ /**
359
+ * §12: the spec's fixed-false flags REJECT unsupported values instead of being
360
+ * accepted as ineffective flags. A config that sets any of them to true fails
361
+ * the configuration with the named flag, never silently ignores it.
362
+ * @param config - the parsed configuration.
363
+ * @throws Error naming the first flag set to an unsupported value.
364
+ */
365
+ export declare function assertConfigV3DisabledFlags(config: Config): void;
366
+ /**
367
+ * The CODE-11 repair-attempt ceiling for one configuration (task-74).
368
+ *
369
+ * The flat `repairAttempts` key drives; the v3 nested spelling
370
+ * `harnessExecutorV3.defaultRepairAttempts` is its equivalent; absent both,
371
+ * the default is 1. An out-of-range value is a REFUSAL, never a silent clamp:
372
+ * a ceiling the operator did not write is a budget nobody approved.
373
+ * @param config - the parsed configuration.
374
+ * @throws Error naming the invalid value.
375
+ */
376
+ export declare function repairCeilingOf(config: Config): number;
131
377
  /** One model as the `model_tools` control tool reports it. */
132
378
  export interface ModelDescriptor {
133
379
  readonly id: string;
@@ -144,12 +390,9 @@ export interface ModelDescriptor {
144
390
  readonly license: string;
145
391
  readonly docs: string;
146
392
  }
147
- /**
148
- * Register the Desert Ant model tools and skills.
149
- * @param ctx - the plugin context whose tool registry receives the definitions.
150
- * @param config - deployment configuration for which models to expose.
151
- */
152
- export declare function apply(ctx: Context, config?: Config): void;
393
+ /** Render the model list the control tool returns, and the plugin logs. */
394
+ export declare function describeModels(resolved: readonly ResolvedModel[]): ModelDescriptor[];
395
+ export declare function apply(ctx: Context, config?: Config): Promise<void>;
153
396
  export { loadCatalog, CatalogError, DEFAULT_CATALOG_FILE } from './catalog.ts';
154
397
  export { resolveCapability, resolveCatalog, canResolve, packageSpecifier, type ResolvedModel } from './capability.ts';
155
398
  export { createAdapter, ADAPTER_FACTORIES } from './adapters/index.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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