@try-works/dsh-tool-mode 0.0.0-stage → 0.5.45
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.
- package/LICENSE +205 -0
- package/README.md +303 -2
- package/bin/dsh-tool-mode-credentials.mjs +20 -0
- package/bin/dsh-tool-mode-mcp-stdio.mjs +80 -0
- package/bin/dsh-tool-mode.mjs +211 -0
- package/builtins.lock.json +26 -0
- package/catalog/desert-ant-models.json +693 -0
- package/catalog/playbooks.json +531 -0
- package/client/client.model-tools.js +1910 -0
- package/client/index.js +4158 -0
- package/cordis.patch.yml +39 -0
- package/lib/adapters/index.d.ts +61 -0
- package/lib/adapters/index.d.ts.map +1 -0
- package/lib/adapters/index.js +82 -0
- package/lib/adapters/types.d.ts +106 -0
- package/lib/adapters/types.d.ts.map +1 -0
- package/lib/adapters/types.js +85 -0
- package/lib/approval.d.ts +189 -0
- package/lib/approval.d.ts.map +1 -0
- package/lib/approval.js +510 -0
- package/lib/asset-acquisition.d.ts +149 -0
- package/lib/asset-acquisition.d.ts.map +1 -0
- package/lib/asset-acquisition.js +175 -0
- package/lib/authority.d.ts +185 -0
- package/lib/authority.d.ts.map +1 -0
- package/lib/authority.js +223 -0
- package/lib/bindings.d.ts +144 -0
- package/lib/bindings.d.ts.map +1 -0
- package/lib/bindings.js +314 -0
- package/lib/builtins.d.ts +27 -0
- package/lib/builtins.d.ts.map +1 -0
- package/lib/builtins.js +37 -0
- package/lib/capability.d.ts +58 -0
- package/lib/capability.d.ts.map +1 -0
- package/lib/capability.js +192 -0
- package/lib/capture-path.d.ts +97 -0
- package/lib/capture-path.d.ts.map +1 -0
- package/lib/capture-path.js +152 -0
- package/lib/catalog.d.ts +37 -0
- package/lib/catalog.d.ts.map +1 -0
- package/lib/catalog.js +274 -0
- package/lib/contract-payload.d.ts +39 -0
- package/lib/contract-payload.d.ts.map +1 -0
- package/lib/contract-payload.js +56 -0
- package/lib/custom-tools/compile.d.ts +25 -0
- package/lib/custom-tools/compile.d.ts.map +1 -0
- package/lib/custom-tools/compile.js +61 -0
- package/lib/custom-tools/composite-executor.d.ts +42 -0
- package/lib/custom-tools/composite-executor.d.ts.map +1 -0
- package/lib/custom-tools/composite-executor.js +113 -0
- package/lib/custom-tools/dispatch.d.ts +28 -0
- package/lib/custom-tools/dispatch.d.ts.map +1 -0
- package/lib/custom-tools/dispatch.js +34 -0
- package/lib/custom-tools/http-executor.d.ts +48 -0
- package/lib/custom-tools/http-executor.d.ts.map +1 -0
- package/lib/custom-tools/http-executor.js +241 -0
- package/lib/custom-tools/index.d.ts +12 -0
- package/lib/custom-tools/index.d.ts.map +1 -0
- package/lib/custom-tools/index.js +12 -0
- package/lib/custom-tools/mcp-surface.d.ts +14 -0
- package/lib/custom-tools/mcp-surface.d.ts.map +1 -0
- package/lib/custom-tools/mcp-surface.js +41 -0
- package/lib/custom-tools/prompt-executor.d.ts +39 -0
- package/lib/custom-tools/prompt-executor.d.ts.map +1 -0
- package/lib/custom-tools/prompt-executor.js +59 -0
- package/lib/custom-tools/registry.d.ts +69 -0
- package/lib/custom-tools/registry.d.ts.map +1 -0
- package/lib/custom-tools/registry.js +130 -0
- package/lib/custom-tools/schema.d.ts +26 -0
- package/lib/custom-tools/schema.d.ts.map +1 -0
- package/lib/custom-tools/schema.js +375 -0
- package/lib/custom-tools/service.d.ts +90 -0
- package/lib/custom-tools/service.d.ts.map +1 -0
- package/lib/custom-tools/service.js +203 -0
- package/lib/custom-tools/store.d.ts +61 -0
- package/lib/custom-tools/store.d.ts.map +1 -0
- package/lib/custom-tools/store.js +240 -0
- package/lib/custom-tools/types.d.ts +131 -0
- package/lib/custom-tools/types.d.ts.map +1 -0
- package/lib/custom-tools/types.js +11 -0
- package/lib/decision-combine.d.ts +113 -0
- package/lib/decision-combine.d.ts.map +1 -0
- package/lib/decision-combine.js +156 -0
- package/lib/decision-evaluate.d.ts +185 -0
- package/lib/decision-evaluate.d.ts.map +1 -0
- package/lib/decision-evaluate.js +227 -0
- package/lib/deployment-coordinator.d.ts +213 -0
- package/lib/deployment-coordinator.d.ts.map +1 -0
- package/lib/deployment-coordinator.js +274 -0
- package/lib/diagnostics.d.ts +169 -0
- package/lib/diagnostics.d.ts.map +1 -0
- package/lib/diagnostics.js +136 -0
- package/lib/discovery-contracts.d.ts +14 -0
- package/lib/discovery-contracts.d.ts.map +1 -0
- package/lib/discovery-contracts.js +90 -0
- package/lib/discovery-describe.d.ts +35 -0
- package/lib/discovery-describe.d.ts.map +1 -0
- package/lib/discovery-describe.js +99 -0
- package/lib/embedding-index.d.ts +55 -0
- package/lib/embedding-index.d.ts.map +1 -0
- package/lib/embedding-index.js +126 -0
- package/lib/extension-dependencies.d.ts +355 -0
- package/lib/extension-dependencies.d.ts.map +1 -0
- package/lib/extension-dependencies.js +987 -0
- package/lib/extension-dispatch.d.ts +150 -0
- package/lib/extension-dispatch.d.ts.map +1 -0
- package/lib/extension-dispatch.js +178 -0
- package/lib/extension-page-state.d.ts +69 -0
- package/lib/extension-page-state.d.ts.map +1 -0
- package/lib/extension-page-state.js +82 -0
- package/lib/extension-registrar.d.ts +116 -0
- package/lib/extension-registrar.d.ts.map +1 -0
- package/lib/extension-registrar.js +144 -0
- package/lib/extensions-api.d.ts +346 -0
- package/lib/extensions-api.d.ts.map +1 -0
- package/lib/extensions-api.js +17 -0
- package/lib/extensions-remote.d.ts +57 -0
- package/lib/extensions-remote.d.ts.map +1 -0
- package/lib/extensions-remote.js +69 -0
- package/lib/extensions-service.d.ts +568 -0
- package/lib/extensions-service.d.ts.map +1 -0
- package/lib/extensions-service.js +2552 -0
- package/lib/harness-budgets.d.ts +158 -0
- package/lib/harness-budgets.d.ts.map +1 -0
- package/lib/harness-budgets.js +152 -0
- package/lib/harness-llm.d.ts +138 -0
- package/lib/harness-llm.d.ts.map +1 -0
- package/lib/harness-llm.js +218 -0
- package/lib/harness-serving.d.ts +115 -0
- package/lib/harness-serving.d.ts.map +1 -0
- package/lib/harness-serving.js +176 -0
- package/lib/headless.d.ts +97 -0
- package/lib/headless.d.ts.map +1 -0
- package/lib/headless.js +407 -0
- package/lib/http-acquisition.d.ts +27 -0
- package/lib/http-acquisition.d.ts.map +1 -0
- package/lib/http-acquisition.js +140 -0
- package/lib/index.d.ts +546 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5273 -0
- package/lib/invocation-accounting.d.ts +169 -0
- package/lib/invocation-accounting.d.ts.map +1 -0
- package/lib/invocation-accounting.js +148 -0
- package/lib/jev.d.ts +218 -0
- package/lib/jev.d.ts.map +1 -0
- package/lib/jev.js +366 -0
- package/lib/legacy-migration.d.ts +95 -0
- package/lib/legacy-migration.d.ts.map +1 -0
- package/lib/legacy-migration.js +429 -0
- package/lib/license-basis.d.ts +29 -0
- package/lib/license-basis.d.ts.map +1 -0
- package/lib/license-basis.js +58 -0
- package/lib/managed-workers.d.ts +158 -0
- package/lib/managed-workers.d.ts.map +1 -0
- package/lib/managed-workers.js +269 -0
- package/lib/mcp/auth-selection.d.ts +35 -0
- package/lib/mcp/auth-selection.d.ts.map +1 -0
- package/lib/mcp/auth-selection.js +64 -0
- package/lib/mcp/client-grant.d.ts +89 -0
- package/lib/mcp/client-grant.d.ts.map +1 -0
- package/lib/mcp/client-grant.js +63 -0
- package/lib/mcp/credential-cli.d.ts +38 -0
- package/lib/mcp/credential-cli.d.ts.map +1 -0
- package/lib/mcp/credential-cli.js +148 -0
- package/lib/mcp/credential-store.d.ts +143 -0
- package/lib/mcp/credential-store.d.ts.map +1 -0
- package/lib/mcp/credential-store.js +461 -0
- package/lib/mcp/export-policy.d.ts +25 -0
- package/lib/mcp/export-policy.d.ts.map +1 -0
- package/lib/mcp/export-policy.js +31 -0
- package/lib/mcp/host-binding.d.ts +144 -0
- package/lib/mcp/host-binding.d.ts.map +1 -0
- package/lib/mcp/host-binding.js +280 -0
- package/lib/mcp/http.d.ts +180 -0
- package/lib/mcp/http.d.ts.map +1 -0
- package/lib/mcp/http.js +602 -0
- package/lib/mcp/oauth.d.ts +149 -0
- package/lib/mcp/oauth.d.ts.map +1 -0
- package/lib/mcp/oauth.js +396 -0
- package/lib/mcp/protocol.d.ts +329 -0
- package/lib/mcp/protocol.d.ts.map +1 -0
- package/lib/mcp/protocol.js +459 -0
- package/lib/mcp/rate-limit.d.ts +68 -0
- package/lib/mcp/rate-limit.d.ts.map +1 -0
- package/lib/mcp/rate-limit.js +114 -0
- package/lib/mcp/sdk-v2.d.ts +17 -0
- package/lib/mcp/sdk-v2.d.ts.map +1 -0
- package/lib/mcp/sdk-v2.js +204 -0
- package/lib/mcp/server.d.ts +149 -0
- package/lib/mcp/server.d.ts.map +1 -0
- package/lib/mcp/server.js +302 -0
- package/lib/mcp/stdio.d.ts +80 -0
- package/lib/mcp/stdio.d.ts.map +1 -0
- package/lib/mcp/stdio.js +184 -0
- package/lib/mcp/subscriptions.d.ts +177 -0
- package/lib/mcp/subscriptions.d.ts.map +1 -0
- package/lib/mcp/subscriptions.js +288 -0
- package/lib/mcp-status.d.ts +96 -0
- package/lib/mcp-status.d.ts.map +1 -0
- package/lib/mcp-status.js +70 -0
- package/lib/mcp-usage.d.ts +110 -0
- package/lib/mcp-usage.d.ts.map +1 -0
- package/lib/mcp-usage.js +189 -0
- package/lib/model-qualification.d.ts +192 -0
- package/lib/model-qualification.d.ts.map +1 -0
- package/lib/model-qualification.js +178 -0
- package/lib/model-runtime-lane.d.ts +69 -0
- package/lib/model-runtime-lane.d.ts.map +1 -0
- package/lib/model-runtime-lane.js +122 -0
- package/lib/model-runtime-recipe.d.ts +132 -0
- package/lib/model-runtime-recipe.d.ts.map +1 -0
- package/lib/model-runtime-recipe.js +291 -0
- package/lib/planning.d.ts +256 -0
- package/lib/planning.d.ts.map +1 -0
- package/lib/planning.js +471 -0
- package/lib/playbook.d.ts +42 -0
- package/lib/playbook.d.ts.map +1 -0
- package/lib/playbook.js +65 -0
- package/lib/prepared-assets.d.ts +269 -0
- package/lib/prepared-assets.d.ts.map +1 -0
- package/lib/prepared-assets.js +471 -0
- package/lib/provider-bridge.d.ts +107 -0
- package/lib/provider-bridge.d.ts.map +1 -0
- package/lib/provider-bridge.js +423 -0
- package/lib/ptc-authority.d.ts +154 -0
- package/lib/ptc-authority.d.ts.map +1 -0
- package/lib/ptc-authority.js +242 -0
- package/lib/ptc-confinement.d.ts +60 -0
- package/lib/ptc-confinement.d.ts.map +1 -0
- package/lib/ptc-confinement.js +212 -0
- package/lib/ptc-runtime.d.ts +166 -0
- package/lib/ptc-runtime.d.ts.map +1 -0
- package/lib/ptc-runtime.js +231 -0
- package/lib/publication.d.ts +161 -0
- package/lib/publication.d.ts.map +1 -0
- package/lib/publication.js +181 -0
- package/lib/receipt-store.d.ts +57 -0
- package/lib/receipt-store.d.ts.map +1 -0
- package/lib/receipt-store.js +143 -0
- package/lib/receipt.d.ts +231 -0
- package/lib/receipt.d.ts.map +1 -0
- package/lib/receipt.js +165 -0
- package/lib/registrar.d.ts +75 -0
- package/lib/registrar.d.ts.map +1 -0
- package/lib/registrar.js +152 -0
- package/lib/resource-governance.d.ts +204 -0
- package/lib/resource-governance.d.ts.map +1 -0
- package/lib/resource-governance.js +213 -0
- package/lib/server-lifecycle.d.ts +175 -0
- package/lib/server-lifecycle.d.ts.map +1 -0
- package/lib/server-lifecycle.js +269 -0
- package/lib/skills.d.ts +31 -0
- package/lib/skills.d.ts.map +1 -0
- package/lib/skills.js +170 -0
- package/lib/speech-bridge.d.ts +74 -0
- package/lib/speech-bridge.d.ts.map +1 -0
- package/lib/speech-bridge.js +115 -0
- package/lib/state.d.ts +100 -0
- package/lib/state.d.ts.map +1 -0
- package/lib/state.js +160 -0
- package/lib/title-proposal.d.ts +194 -0
- package/lib/title-proposal.d.ts.map +1 -0
- package/lib/title-proposal.js +244 -0
- package/lib/tool-inventory.d.ts +90 -0
- package/lib/tool-inventory.d.ts.map +1 -0
- package/lib/tool-inventory.js +102 -0
- package/lib/tool-mode-run.d.ts +310 -0
- package/lib/tool-mode-run.d.ts.map +1 -0
- package/lib/tool-mode-run.js +411 -0
- package/lib/tool-sources.d.ts +80 -0
- package/lib/tool-sources.d.ts.map +1 -0
- package/lib/tool-sources.js +123 -0
- package/lib/tool-usage-projection.d.ts +390 -0
- package/lib/tool-usage-projection.d.ts.map +1 -0
- package/lib/tool-usage-projection.js +1038 -0
- package/lib/tool-usage-report.d.ts +153 -0
- package/lib/tool-usage-report.d.ts.map +1 -0
- package/lib/tool-usage-report.js +274 -0
- package/lib/transport.d.ts +158 -0
- package/lib/transport.d.ts.map +1 -0
- package/lib/transport.js +332 -0
- package/lib/types.d.ts +134 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +8 -0
- package/lib/update-surface.d.ts +79 -0
- package/lib/update-surface.d.ts.map +1 -0
- package/lib/update-surface.js +224 -0
- package/lib/version.d.ts +3 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +27 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.d.ts +13 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contract-metadata.js +85 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts +16 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/lang-detect.js +87 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts +38 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/standard.js +445 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts +20 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/stt-transcribe.js +112 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts +14 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-embed.js +63 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts +14 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/contracts/text-rerank.js +76 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts +82 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/dsh.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/dsh.js +274 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts +26 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/index.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/index.js +53 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts +133 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/meta.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/meta.js +64 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts +121 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/registry.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-contracts/lib/registry.js +246 -0
- package/node_modules/@try-works/tool-mode-contracts/package.json +35 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/bin/dsh-tool-mode.mjs +20 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts +80 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/cli.js +533 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts +86 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/declarative-recipes.js +145 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts +70 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/discovery.js +201 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts +57 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/errors.js +83 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts +33 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/index.js +33 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts +86 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/archive.js +191 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts +137 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/dependencies.js +349 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts +274 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/lifecycle.js +932 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts +210 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/migration.js +368 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts +63 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/runtime-link.js +149 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts +35 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/source-directory.js +179 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts +179 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/staged.js +299 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts +395 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/store.js +839 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.d.ts +44 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/tar-gzip-source.js +255 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts +185 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/update-flow.js +504 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts +17 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/install/zip-source.js +80 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.d.ts +221 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/licensing.js +188 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts +52 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/load.js +102 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts +171 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/manifest.js +271 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts +242 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/runtime.js +58 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts +128 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/state.js +113 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.d.ts +41 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/test-host.js +52 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts +2 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker/worker-child.js +351 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts +157 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/lib/worker.js +688 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/package.json +54 -0
- package/node_modules/@try-works/tool-mode-extension-sdk/schema/extension-manifest-1.1.0.schema.json +253 -0
- package/node_modules/@try-works/tool-mode-recipes/bin/tool-mode-recipe.mjs +15 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts +460 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/broker.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/broker.js +647 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts +61 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/cli.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/cli.js +1106 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts +237 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/dsh-adapter.js +205 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts +85 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/fixture-provider.js +176 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts +119 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/images.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/images.js +201 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts +25 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/index.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/index.js +25 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts +345 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/recipe-format.js +1465 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts +51 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/templates.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/templates.js +310 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts +231 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/titles.d.ts.map +1 -0
- package/node_modules/@try-works/tool-mode-recipes/lib/titles.js +435 -0
- package/node_modules/@try-works/tool-mode-recipes/package.json +56 -0
- package/node_modules/@try-works/tool-mode-recipes/recipes/describe-image.json +38 -0
- package/node_modules/@try-works/tool-mode-recipes/recipes/text-title.json +45 -0
- package/node_modules/@try-works/tool-mode-recipes/schema/harness-model-recipe.schema.json +273 -0
- package/package.json +127 -4
- package/remote/spec.mjs +993 -0
- package/remote/typert.host.mjs +14 -0
- package/remote/typert.remote-client.mjs +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
Copyright 2026 Try Works
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Apache License
|
|
5
|
+
Version 2.0, January 2004
|
|
6
|
+
http://www.apache.org/licenses/
|
|
7
|
+
|
|
8
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
|
|
12
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
13
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
16
|
+
the copyright owner that is granting the License.
|
|
17
|
+
|
|
18
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
19
|
+
other entities that control, are controlled by, or are under common
|
|
20
|
+
control with that entity. For the purposes of this definition,
|
|
21
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
22
|
+
direction or management of such entity, whether by contract or
|
|
23
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
24
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
25
|
+
|
|
26
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
27
|
+
exercising permissions granted by this License.
|
|
28
|
+
|
|
29
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
30
|
+
including but not limited to software source code, documentation
|
|
31
|
+
source, and configuration files.
|
|
32
|
+
|
|
33
|
+
"Object" form shall mean any form resulting from mechanical
|
|
34
|
+
transformation or translation of a Source form, including but
|
|
35
|
+
not limited to compiled object code, generated documentation,
|
|
36
|
+
and conversions to other media types.
|
|
37
|
+
|
|
38
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
39
|
+
Object form, made available under the License, as indicated by a
|
|
40
|
+
copyright notice that is included in or attached to the work
|
|
41
|
+
(an example is provided in the Appendix below).
|
|
42
|
+
|
|
43
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
44
|
+
form, that is based on (or derived from) the Work and for which the
|
|
45
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
46
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
47
|
+
of this License, Derivative Works shall not include works that remain
|
|
48
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
49
|
+
the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including
|
|
52
|
+
the original version of the Work and any modifications or additions
|
|
53
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
54
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
55
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
56
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
57
|
+
means any form of electronic, verbal, or written communication sent
|
|
58
|
+
to the Licensor or its representatives, including but not limited to
|
|
59
|
+
communication on electronic mailing lists, source code control systems,
|
|
60
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
61
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
62
|
+
excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
66
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
67
|
+
subsequently incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
70
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
71
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
72
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
73
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
74
|
+
Work and such Derivative Works in Source or Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
(except as stated in this section) patent license to make, have made,
|
|
80
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
81
|
+
where such license applies only to those patent claims licensable
|
|
82
|
+
by such Contributor that are necessarily infringed by their
|
|
83
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
84
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
85
|
+
institute patent litigation against any entity (including a
|
|
86
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
87
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
88
|
+
or contributory patent infringement, then any patent licenses
|
|
89
|
+
granted to You under this License for that Work shall terminate
|
|
90
|
+
as of the date such litigation is filed.
|
|
91
|
+
|
|
92
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
93
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
94
|
+
modifications, and in Source or Object form, provided that You
|
|
95
|
+
meet the following conditions:
|
|
96
|
+
|
|
97
|
+
(a) You must give any other recipients of the Work or
|
|
98
|
+
Derivative Works a copy of this License; and
|
|
99
|
+
|
|
100
|
+
(b) You must cause any modified files to carry prominent notices
|
|
101
|
+
stating that You changed the files; and
|
|
102
|
+
|
|
103
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
104
|
+
that You distribute, all copyright, patent, trademark, and
|
|
105
|
+
attribution notices from the Source form of the Work,
|
|
106
|
+
excluding those notices that do not pertain to any part of
|
|
107
|
+
the Derivative Works; and
|
|
108
|
+
|
|
109
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
110
|
+
distribution, then any Derivative Works that You distribute must
|
|
111
|
+
include a readable copy of the attribution notices contained
|
|
112
|
+
within such NOTICE file, excluding those notices that do not
|
|
113
|
+
pertain to any part of the Derivative Works, in at least one
|
|
114
|
+
of the following places: within a NOTICE text file distributed
|
|
115
|
+
as part of the Derivative Works; within the Source form or
|
|
116
|
+
documentation, if provided along with the Derivative Works; or,
|
|
117
|
+
within a display generated by the Derivative Works, if and
|
|
118
|
+
wherever such third-party notices normally appear. The contents
|
|
119
|
+
of the NOTICE file are for informational purposes only and
|
|
120
|
+
do not modify the License. You may add Your own attribution
|
|
121
|
+
notices within Derivative Works that You distribute, alongside
|
|
122
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
123
|
+
that such additional attribution notices cannot be construed
|
|
124
|
+
as modifying the License.
|
|
125
|
+
|
|
126
|
+
You may add Your own copyright statement to Your modifications and
|
|
127
|
+
may provide additional or different license terms and conditions
|
|
128
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
129
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
130
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
131
|
+
the conditions stated in this License.
|
|
132
|
+
|
|
133
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
134
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
135
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
136
|
+
this License, without any additional terms or conditions.
|
|
137
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
138
|
+
the terms of any separate license agreement you may have executed
|
|
139
|
+
with Licensor regarding such Contributions.
|
|
140
|
+
|
|
141
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
142
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
143
|
+
except as required for reasonable and customary use in describing the
|
|
144
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
145
|
+
|
|
146
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
147
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
148
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
149
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
150
|
+
implied, including, without limitation, any warranties or conditions
|
|
151
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
152
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
153
|
+
appropriateness of using or redistributing the Work and assume any
|
|
154
|
+
risks associated with Your exercise of permissions under this License.
|
|
155
|
+
|
|
156
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
157
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
158
|
+
unless required by applicable law (such as deliberate and grossly
|
|
159
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
160
|
+
liable to You for damages, including any direct, indirect, special,
|
|
161
|
+
incidental, or consequential damages of any character arising as a
|
|
162
|
+
result of this License or out of the use or inability to use the
|
|
163
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
164
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
165
|
+
other commercial damages or losses), even if such Contributor
|
|
166
|
+
has been advised of the possibility of such damages.
|
|
167
|
+
|
|
168
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
169
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
170
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
171
|
+
or other liability obligations and/or rights consistent with this
|
|
172
|
+
License. However, in accepting such obligations, You may act only
|
|
173
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
174
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
175
|
+
defend, and hold each Contributor harmless for any liability
|
|
176
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
177
|
+
of your accepting any such warranty or additional liability.
|
|
178
|
+
|
|
179
|
+
END OF TERMS AND CONDITIONS
|
|
180
|
+
|
|
181
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
182
|
+
|
|
183
|
+
To apply the Apache License to your work, attach the following
|
|
184
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
185
|
+
replaced with your own identifying information. (Don't include
|
|
186
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
187
|
+
comment syntax for the file format. We also recommend that a
|
|
188
|
+
file or class name and description of purpose be included on the
|
|
189
|
+
same "printed page" as the copyright notice for easier
|
|
190
|
+
identification within third-party archives.
|
|
191
|
+
|
|
192
|
+
Copyright [yyyy] [name of copyright owner]
|
|
193
|
+
|
|
194
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
195
|
+
you may not use this file except in compliance with the License.
|
|
196
|
+
You may obtain a copy of the License at
|
|
197
|
+
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
199
|
+
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software
|
|
201
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
202
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
|
+
See the License for the specific language governing permissions and
|
|
204
|
+
limitations under the License.
|
|
205
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,304 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-tool-mode
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **User documentation:** [docs/guide](../../docs/guide/index.md) — install, first
|
|
4
|
+
> call, MCP, extensions, custom tools, security and troubleshooting.
|
|
5
|
+
|
|
6
|
+
Install on-device models as DSH tools and skills, with per-platform capability
|
|
7
|
+
gating. Ships with the [Desert Ant Labs](https://desertant.com/models/) catalog.
|
|
8
|
+
|
|
9
|
+
A DSH agent gets a real tool for every model that can run in its process, a
|
|
10
|
+
skill that teaches it *when* to reach for that tool, and an honest explanation
|
|
11
|
+
for every model that cannot run — instead of a tool that fails at call time.
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
The plugin composes six layers:
|
|
16
|
+
|
|
17
|
+
1. **Catalog** (`catalog/desert-ant-models.json`) — all 18 Desert Ant models,
|
|
18
|
+
their inputs, outputs, language counts and the npm package that runs them.
|
|
19
|
+
2. **Capability resolver** (`src/capability.ts`) — decides, per model, whether it
|
|
20
|
+
can actually run *in this process*, and why not when it cannot.
|
|
21
|
+
3. **Adapters** (`src/adapters/`) — lazily import a model package and invoke it.
|
|
22
|
+
4. **Transports** (`src/transport.ts`) — reach a model this machine cannot run:
|
|
23
|
+
through the Desert Ant CLI, or through a bridge on a machine that can.
|
|
24
|
+
5. **Registrar** (`src/registrar.ts`) — turns each reachable model into a
|
|
25
|
+
`defineTool` definition registered on `ctx.tools`.
|
|
26
|
+
6. **Skills** (`src/skills.ts` + `catalog/playbooks.json`) — publishes one skill
|
|
27
|
+
per registered tool describing when to use it, when not to, and how.
|
|
28
|
+
|
|
29
|
+
Nothing is imported from a model package at plugin load, so a deployment that
|
|
30
|
+
installs none of them still starts cleanly and reports exactly what is missing.
|
|
31
|
+
|
|
32
|
+
## Tools it registers
|
|
33
|
+
|
|
34
|
+
| Tool | Model | Runs on Windows x64 | Notes |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| `lang_detect` | Tongue | **yes** | Pure JavaScript, 2 MB model inside the package, no network |
|
|
37
|
+
| `stt_transcribe` | Voz | **yes** | Needs `onnxruntime-node`; ~349 MB weights download on first use |
|
|
38
|
+
| `tool_mode_list` / `tool_mode_describe` | — | yes | Discovery: live readiness, schemas, and unsupported cases |
|
|
39
|
+
| `model_tools` | — | yes | Host-local management view |
|
|
40
|
+
|
|
41
|
+
The other 16 catalog models are reported by `model_tools` with the exact reason
|
|
42
|
+
they cannot run, for example:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
- [unavailable] redact (`redact_pii`): On-device redaction that strips personal
|
|
46
|
+
data as you type, in 27 languages, with restore support.
|
|
47
|
+
why not: Redact has no prebuilt native build for win32-x64; @desert-ant-labs/redact/native
|
|
48
|
+
ships one for linux-x64, linux-arm64 and darwin-arm64 only.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Reaching the other 16 models
|
|
52
|
+
|
|
53
|
+
A model only needs a route, not a rewrite. Two routes cover the rest.
|
|
54
|
+
|
|
55
|
+
### The CLI (macOS and Linux)
|
|
56
|
+
|
|
57
|
+
Every shipping model is `desertant <verb> … --json`, so wherever the CLI is
|
|
58
|
+
installed the plugin will drive it. Nothing to configure — it is detected on
|
|
59
|
+
PATH:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
curl -fsSL https://raw.githubusercontent.com/Desert-Ant-Labs/desert-ant-cli/main/install.sh | sh
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
That immediately makes Redact, Emo, Gist, Clear, Ear, Moderator, Shapes, Align,
|
|
66
|
+
Tongue and Voz callable on that machine.
|
|
67
|
+
|
|
68
|
+
### The bridge (an Apple machine, for Apple-only models)
|
|
69
|
+
|
|
70
|
+
Title and Uhm run only on Apple silicon. Run the reference bridge there and point
|
|
71
|
+
the plugin at it:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
# on the Mac
|
|
75
|
+
node scripts/desert-ant-bridge.mjs --token "$(openssl rand -hex 16)"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```yaml
|
|
79
|
+
- id: model-tools
|
|
80
|
+
config:
|
|
81
|
+
remote:
|
|
82
|
+
endpoint: http://mac-studio.local:8787
|
|
83
|
+
token: <the token>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`suggest_title` then registers here with `route: remote`, and the existing
|
|
87
|
+
catalog entry, parameter schema and skill apply unchanged. The bridge is a thin
|
|
88
|
+
wrapper over the CLI; it binds to loopback and requires a token. **The plugin
|
|
89
|
+
does not host anything** — the licence forbids re-hosting the models as a
|
|
90
|
+
service, so the bridge must be your own machine.
|
|
91
|
+
|
|
92
|
+
## Installing tools at run time
|
|
93
|
+
|
|
94
|
+
`model_tools` actions: `list`, `installed`, `describe <id>`, `enable <id>`,
|
|
95
|
+
`disable <id>`, `reset [<id>]`.
|
|
96
|
+
|
|
97
|
+
**Enable and disable are remembered across restarts.** A plugin `config` states
|
|
98
|
+
the *deployment* default; `enable`/`disable` record the *user's* choice on top of
|
|
99
|
+
it:
|
|
100
|
+
|
|
101
|
+
- `disable` always wins, so a user can turn off something the config ships.
|
|
102
|
+
- `enable` adds to the config selection, so a user can turn something on without
|
|
103
|
+
editing YAML.
|
|
104
|
+
- `reset` forgets the choice and makes the configuration authoritative again.
|
|
105
|
+
|
|
106
|
+
Choices are stored as JSON at `<DSH_HOME>/model-as-tool/state.json`, written
|
|
107
|
+
through a temporary file and a rename so a crash cannot leave a truncated
|
|
108
|
+
document that reads as "everything is gone".
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{ "enabled": ["voz"], "disabled": ["tongue"] }
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
The plugin writes its own state file rather than rewriting your
|
|
115
|
+
`cordis.patch.yml`: a rewrite there would fight the profile's reload and could
|
|
116
|
+
clobber comments you wrote. Point it elsewhere with `stateFile`, or set
|
|
117
|
+
`persist: false` for the earlier session-scoped behaviour.
|
|
118
|
+
|
|
119
|
+
Enabling a model that cannot run here fails with the resolver's reason and
|
|
120
|
+
nothing is written — persisting a failed enable would install it silently on the
|
|
121
|
+
next start.
|
|
122
|
+
|
|
123
|
+
## Install
|
|
124
|
+
|
|
125
|
+
The package is a DSH bundle: `package.json` declares
|
|
126
|
+
`dsh.bundle.patch: ./cordis.patch.yml`, and that patch is the single `insert`
|
|
127
|
+
row a profile mounts. Install it with `plugin_manager`'s `install_bundle`
|
|
128
|
+
action, or copy the row from [`cordis.patch.yml`](cordis.patch.yml) into the
|
|
129
|
+
profile's own patch file.
|
|
130
|
+
|
|
131
|
+
The package builds itself on install: `prepare` runs `tsc` from `src/` into
|
|
132
|
+
`lib/`, which is the entry point `main` and `exports` advertise. A registry
|
|
133
|
+
tarball ships `lib/` prebuilt by `prepack`, so a consumer needs no toolchain.
|
|
134
|
+
|
|
135
|
+
Model packages are **optional dependencies**: install only the ones you want.
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
npm i @desert-ant-labs/tongue # language detection, works everywhere
|
|
139
|
+
npm i @desert-ant-labs/voz onnxruntime-node # transcription on Windows/Linux/macOS
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The plugin never bundles or re-hosts model weights.
|
|
143
|
+
|
|
144
|
+
## What gets downloaded, and when
|
|
145
|
+
|
|
146
|
+
Three separate things arrive at three separate times. Measured sizes are from a
|
|
147
|
+
Windows x64 install of this package.
|
|
148
|
+
|
|
149
|
+
**1. The plugin itself — ~58 kB, from npm, at install.** `lib/`, the two catalog
|
|
150
|
+
JSON files, `cordis.patch.yml` and this README. It contains **no model weights
|
|
151
|
+
and no inference runtime**.
|
|
152
|
+
|
|
153
|
+
**2. The model SDK packages — from npm, at install, only if you asked for them.**
|
|
154
|
+
They are `optionalDependencies`, so a failed or skipped download does not fail the
|
|
155
|
+
install; the capability resolver simply reports the model as unavailable.
|
|
156
|
+
|
|
157
|
+
| Package | Size on disk | Contains |
|
|
158
|
+
| --- | --- | --- |
|
|
159
|
+
| `@desert-ant-labs/tongue` | 2.1 MB | **The model itself** — `tongue_int8.bin` (2.0 MB) ships inside the tarball |
|
|
160
|
+
| `@desert-ant-labs/voz` | 44.2 MB | The WebAssembly runtime (`VozWeb.wasm`), not the weights |
|
|
161
|
+
| `onnxruntime-node` | 287.1 MB | The prebuilt inference engine for this platform |
|
|
162
|
+
|
|
163
|
+
**3. The weights — from Hugging Face, on first call, not at install.** Each SDK
|
|
164
|
+
pins one revision and verifies the download, then caches it. Voz fetches about
|
|
165
|
+
**367 MB** on its first transcription:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
~/.cache/desert-ant-models/desert-ant-labs/voz 367 MB (first call)
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Tongue never downloads anything: its model is inside the npm package.
|
|
172
|
+
|
|
173
|
+
Point an SDK at a pre-populated folder to run offline (each adapter accepts a
|
|
174
|
+
`directory`), and set `HF_TOKEN` for a gated repo. Because the licence forbids
|
|
175
|
+
redistribution, the plugin never bundles or mirrors weights — it downloads them
|
|
176
|
+
the way the vendor intends, once, into the vendor's own cache.
|
|
177
|
+
|
|
178
|
+
### Install cost is real, so it is opt-out
|
|
179
|
+
|
|
180
|
+
Installing with the optional dependencies present pulls roughly **333 MB** before
|
|
181
|
+
any model runs, and a first Voz call adds **367 MB** more. If that is unwanted,
|
|
182
|
+
install the plugin with them skipped and add only what you use:
|
|
183
|
+
|
|
184
|
+
```sh
|
|
185
|
+
npm i @try-works/dsh-tool-mode --omit=optional
|
|
186
|
+
npm i @desert-ant-labs/tongue # 2 MB, and its model is included
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Watch out for the other model packages.** They ship prebuilt native cores for
|
|
190
|
+
`linux-x64`, `linux-arm64` and `darwin-arm64` inside one tarball — roughly 50 MB
|
|
191
|
+
each — so `@desert-ant-labs/redact` is ~166 MB of which the great majority is
|
|
192
|
+
Linux and macOS binaries that can never load on Windows. Installing one on
|
|
193
|
+
Windows buys ~130 MB that cannot run.
|
|
194
|
+
|
|
195
|
+
## Development
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
npm install # devDependencies: tsc, tsx, and the two model packages
|
|
199
|
+
npm run link:dsh # point @deepseek-ai/* peers at a DSH checkout
|
|
200
|
+
npm run verify # typecheck -> build -> 35 tests -> built-artifact check
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
`link:dsh` exists because `@deepseek-ai/*` are **peer** dependencies — DSH
|
|
204
|
+
supplies them at runtime, so locally they must be pointed at a checkout:
|
|
205
|
+
|
|
206
|
+
```sh
|
|
207
|
+
node scripts/link-dsh.mjs --checkout /path/to/deepseek-harness
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Run it again after any `npm install`: npm prunes anything in `node_modules` it
|
|
211
|
+
does not own, which includes those links.
|
|
212
|
+
|
|
213
|
+
`npm run verify` ends with `verify:built`, which loads `lib/index.js` — resolved
|
|
214
|
+
through the package's own `main`, under plain Node with no TypeScript loader —
|
|
215
|
+
and runs a real inference. That is the artifact DSH loads, so it is the only
|
|
216
|
+
build whose behaviour proves the plugin is installable; passing tests against
|
|
217
|
+
`src/` under `tsx` does not.
|
|
218
|
+
|
|
219
|
+
| Command | Purpose |
|
|
220
|
+
| --- | --- |
|
|
221
|
+
| `npm run demo` | Mount the plugin on a real context and print what it registered |
|
|
222
|
+
| `npm run gating` | Print the resolved route for every catalogued model |
|
|
223
|
+
| `npm run gen-docs` | Regenerate the data-derived docs from the catalog |
|
|
224
|
+
| `npm run bridge` | Run the reference bridge for an Apple/Linux machine |
|
|
225
|
+
|
|
226
|
+
Tests always mount through `tests/helpers.ts`, which points the durable state at
|
|
227
|
+
a throwaway directory. That is not cosmetic: the plugin writes user choices into
|
|
228
|
+
`DSH_HOME` by default, so an unisolated test would edit the developer's real
|
|
229
|
+
configuration and a later test would read those edits as a user decision.
|
|
230
|
+
|
|
231
|
+
## Configuration
|
|
232
|
+
|
|
233
|
+
```yaml
|
|
234
|
+
- id: model-tools
|
|
235
|
+
name: '@try-works/dsh-tool-mode'
|
|
236
|
+
config:
|
|
237
|
+
models: [] # empty = every runnable model; or list ids, e.g. [tongue]
|
|
238
|
+
exclude: [] # ids to drop after `models`
|
|
239
|
+
exposeUnavailable: false # true registers tools that will fail at call time
|
|
240
|
+
registerSkills: true
|
|
241
|
+
registerControlTool: true
|
|
242
|
+
persist: true # remember enable/disable across restarts
|
|
243
|
+
# stateFile: /path/to/state.json # default <DSH_HOME>/model-as-tool/state.json
|
|
244
|
+
allowNpm: true # false forces the CLI/bridge routes
|
|
245
|
+
cli:
|
|
246
|
+
enabled: true # use the Desert Ant CLI when it is on PATH
|
|
247
|
+
command: desertant
|
|
248
|
+
remote:
|
|
249
|
+
endpoint: '' # a bridge on a machine that can run what this one cannot
|
|
250
|
+
token: ''
|
|
251
|
+
# catalogFile: /path/to/other-catalog.json
|
|
252
|
+
# playbookFile: /path/to/other-playbooks.json
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Platform support
|
|
256
|
+
|
|
257
|
+
This is the part that matters most, because Desert Ant's Node prebuilds cover
|
|
258
|
+
`linux-x64`, `linux-arm64` and `darwin-arm64` — **not `win32-x64`**.
|
|
259
|
+
|
|
260
|
+
| Tier | Models | How |
|
|
261
|
+
| --- | --- | --- |
|
|
262
|
+
| Runs in plain Node everywhere | Tongue | Pure JS, no WASM, no inference runtime |
|
|
263
|
+
| Runs where ONNX Runtime runs | Voz | `onnxruntime-node` ships win32-x64 binaries |
|
|
264
|
+
| Prebuilt for linux/darwin only | Redact, Emo, Gist, Clear, Ear, Moderator, Shapes, Align | `/native` subpath |
|
|
265
|
+
| Apple only (Core ML / MLX) | Title, Uhm | Swift SDK; no JS or Kotlin SDK |
|
|
266
|
+
| Closed beta, no SDK | Schemer, Toxic, Who, Eye, Face | Weights on Hugging Face, nothing ships them |
|
|
267
|
+
|
|
268
|
+
The browser/WASM entry of the LiteRT models explicitly refuses to run in plain
|
|
269
|
+
Node ("needs a browser/Worker environment"), so it is not a fallback.
|
|
270
|
+
|
|
271
|
+
## Licensing
|
|
272
|
+
|
|
273
|
+
The Desert Ant Labs models are under the
|
|
274
|
+
[Source-Available License 1.0](https://license.desertant.com/1.0) — not an
|
|
275
|
+
open-source license. Inference is unlimited and free below 100,000 monthly active
|
|
276
|
+
devices **per platform, per model**; above that a commercial license is required.
|
|
277
|
+
Attribution ("Powered by Desert Ant Labs", linked) is required, and the models
|
|
278
|
+
may not be redistributed or re-hosted as a standalone product or service.
|
|
279
|
+
|
|
280
|
+
That is exactly why this plugin is an installer/wrapper: it loads the official
|
|
281
|
+
npm packages locally and never ships, mirrors or proxies the weights.
|
|
282
|
+
|
|
283
|
+
## Tests
|
|
284
|
+
|
|
285
|
+
```sh
|
|
286
|
+
npm run verify # from the repository root
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
The suite boots the plugin on a real Cordis context with the shipping
|
|
290
|
+
`ToolRuntime`, `SystemPrompt` and `SkillRegistry`, then drives the registered
|
|
291
|
+
tools through `ctx.tools.execute` — including a real Tongue inference. The
|
|
292
|
+
transport suite injects its command runner and HTTP poster, so the CLI and bridge
|
|
293
|
+
failure paths are covered without a process or a socket.
|
|
294
|
+
|
|
295
|
+
The tracked requirements and acceptance evidence are summarized in
|
|
296
|
+
[verification/FINAL-REPORT.md](../../verification/FINAL-REPORT.md).
|
|
297
|
+
|
|
298
|
+
## Design notes
|
|
299
|
+
|
|
300
|
+
- See [docs/model-as-tool-architecture.md](../../docs/model-as-tool-architecture.md)
|
|
301
|
+
for the full design.
|
|
302
|
+
- See [docs/adding-a-model.md](../../docs/adding-a-model.md) to add a model.
|
|
303
|
+
- See [docs/model-tool-playbook.md](../../docs/model-tool-playbook.md) for the
|
|
304
|
+
per-model use cases, tool shapes and skill content.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The `dsh-tool-mode-credentials` executable (SEC-01).
|
|
4
|
+
*
|
|
5
|
+
* The HUMAN-ONLY credential surface: the model-visible `model_tools`
|
|
6
|
+
* management action refuses generation (a generated secret must never enter a
|
|
7
|
+
* model transcript), and this CLI is the operator's terminal instead. The
|
|
8
|
+
* stream discipline is the stdio bridge's own: STDOUT carries the credential
|
|
9
|
+
* (the secret exactly once) and nothing else; diagnostics and usage go to
|
|
10
|
+
* stderr. The secret is never logged and never recoverable.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { runCredentialsCli } from '../lib/mcp/credential-cli.js'
|
|
14
|
+
|
|
15
|
+
const exit = runCredentialsCli(process.argv.slice(2), {
|
|
16
|
+
out: line => process.stdout.write(`${line}\n`),
|
|
17
|
+
err: line => process.stderr.write(`${line}\n`),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
process.exit(exit)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The `dsh-tool-mode-mcp-stdio` executable (MCP-03, P26-08).
|
|
4
|
+
*
|
|
5
|
+
* This file owns the one property that cannot be tested from the library: that
|
|
6
|
+
* STDOUT CARRIES PROTOCOL TRAFFIC AND NOTHING ELSE. Everything written here goes
|
|
7
|
+
* through two explicitly separate streams, and nothing in this process writes to
|
|
8
|
+
* stdout except a protocol frame — not a banner, not a version, not a warning.
|
|
9
|
+
*
|
|
10
|
+
* The endpoint and token come from the environment, which is how an MCP client
|
|
11
|
+
* launches a stdio server. A missing token is reported on STDERR and the process
|
|
12
|
+
* exits non-zero: an unattended launch must fail with guidance rather than hang
|
|
13
|
+
* waiting for a credential nobody will supply (P26-16).
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { createStdioBridge } from '../lib/mcp/stdio.js'
|
|
17
|
+
|
|
18
|
+
const url = process.env.DSH_TOOL_MODE_MCP_URL ?? 'http://127.0.0.1:3765/mcp'
|
|
19
|
+
const token = process.env.DSH_TOOL_MODE_MCP_TOKEN
|
|
20
|
+
|
|
21
|
+
/** Diagnostics. NEVER stdout. */
|
|
22
|
+
const diagnostic = line => process.stderr.write(`${line}\n`)
|
|
23
|
+
|
|
24
|
+
if (token === undefined || token.length === 0) {
|
|
25
|
+
// P26-16: unattended operation must fail with setup guidance, never hang.
|
|
26
|
+
diagnostic('dsh-tool-mode-mcp-stdio: no credential configured.')
|
|
27
|
+
diagnostic(' Set DSH_TOOL_MODE_MCP_TOKEN to the token the operator configured for this client,')
|
|
28
|
+
diagnostic(' and DSH_TOOL_MODE_MCP_URL if the endpoint is not http://127.0.0.1:3765/mcp.')
|
|
29
|
+
process.exit(2)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const bridge = createStdioBridge(
|
|
33
|
+
{
|
|
34
|
+
url,
|
|
35
|
+
token,
|
|
36
|
+
fetch: async (target, init) => {
|
|
37
|
+
const response = await fetch(target, {
|
|
38
|
+
method: init.method,
|
|
39
|
+
headers: init.headers,
|
|
40
|
+
body: init.body,
|
|
41
|
+
signal: init.signal,
|
|
42
|
+
})
|
|
43
|
+
const headers = {}
|
|
44
|
+
response.headers.forEach((value, key) => { headers[key] = value })
|
|
45
|
+
return { status: response.status, headers, body: await response.text() }
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
// The ONLY writer to stdout in this process.
|
|
50
|
+
protocol: line => process.stdout.write(`${line}\n`),
|
|
51
|
+
diagnostic,
|
|
52
|
+
},
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
// Newline-delimited input. Chunk boundaries are not frame boundaries, so a partial
|
|
56
|
+
// line is buffered until its newline arrives.
|
|
57
|
+
let buffer = ''
|
|
58
|
+
process.stdin.setEncoding('utf8')
|
|
59
|
+
process.stdin.on('data', chunk => {
|
|
60
|
+
buffer += chunk
|
|
61
|
+
let index = buffer.indexOf('\n')
|
|
62
|
+
while (index !== -1) {
|
|
63
|
+
const line = buffer.slice(0, index)
|
|
64
|
+
buffer = buffer.slice(index + 1)
|
|
65
|
+
void bridge.handleLine(line).then(output => {
|
|
66
|
+
if (output !== undefined) process.stdout.write(`${output}\n`)
|
|
67
|
+
}).catch(error => {
|
|
68
|
+
// A bridge fault is a diagnostic; the protocol channel stays clean.
|
|
69
|
+
diagnostic(`bridge error: ${error instanceof Error ? error.message : String(error)}`)
|
|
70
|
+
})
|
|
71
|
+
index = buffer.indexOf('\n')
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
process.stdin.on('end', () => {
|
|
76
|
+
// P26-08: EOF shuts down BRIDGE-OWNED requests without killing the shared host.
|
|
77
|
+
bridge.close()
|
|
78
|
+
diagnostic('stdin closed; bridge-owned requests aborted')
|
|
79
|
+
process.exit(0)
|
|
80
|
+
})
|