@tangle-network/tcloud 0.4.13 → 0.4.14

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/dist/shielded.cjs CHANGED
@@ -1039,6 +1039,26 @@ var TCloudClient = class _TCloudClient {
1039
1039
  })
1040
1040
  });
1041
1041
  }
1042
+ /** Run a multi-step deep-research task through Tangle Router billing and
1043
+ * provider routing (POST /v1/research). Slower and costlier than `search` —
1044
+ * the provider synthesizes an answer over many fetches. Pick depth with
1045
+ * `effort` (provider-specific vocabulary; see {@link ResearchOptions.effort}). */
1046
+ async research(options) {
1047
+ return this._request(`${this.baseURL}/research`, {
1048
+ method: "POST",
1049
+ body: JSON.stringify({
1050
+ query: options.query,
1051
+ provider: options.provider,
1052
+ model: options.model,
1053
+ effort: options.effort,
1054
+ maxResults: options.maxResults,
1055
+ searchRecency: options.searchRecency,
1056
+ includeDomains: options.includeDomains,
1057
+ excludeDomains: options.excludeDomains,
1058
+ outputSchema: options.outputSchema
1059
+ })
1060
+ });
1061
+ }
1042
1062
  /** Text-to-speech */
1043
1063
  async speech(options) {
1044
1064
  const res = await this._requestRaw(`${this.baseURL}/audio/speech`, {
@@ -1,5 +1,5 @@
1
1
  import { Hex } from 'viem';
2
- import { a as TCloudConfig, T as TCloudClient, $ as SpendAuth } from './client-CaD5Oal0.cjs';
2
+ import { T as TCloudConfig, a as TCloudClient, a3 as SpendAuth } from './client-CaPP4njg.cjs';
3
3
  import '@tangle-network/sandbox';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { Hex } from 'viem';
2
- import { a as TCloudConfig, T as TCloudClient, $ as SpendAuth } from './client-CaD5Oal0.js';
2
+ import { T as TCloudConfig, a as TCloudClient, a3 as SpendAuth } from './client-CaPP4njg.js';
3
3
  import '@tangle-network/sandbox';
4
4
 
5
5
  /**
package/dist/shielded.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  estimateCost,
4
4
  generateWallet,
5
5
  signSpendAuth
6
- } from "./chunk-THOMQXU5.js";
7
- import "./chunk-U4VOGRVW.js";
6
+ } from "./chunk-26M4HGWE.js";
7
+ import "./chunk-LUJXMUH5.js";
8
8
  export {
9
9
  createShieldedClient,
10
10
  estimateCost,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/tcloud",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "TypeScript SDK and CLI for Tangle Router, Sandbox, model routing, and agent service calls",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -71,7 +71,7 @@
71
71
  "dependencies": {
72
72
  "@scure/bip32": "^2.2.0",
73
73
  "@scure/bip39": "^2.2.0",
74
- "@tangle-network/sandbox": "^0.3.0",
74
+ "@tangle-network/sandbox": "^0.9.5",
75
75
  "commander": "^14.0.3",
76
76
  "viem": "^2.48.4",
77
77
  "@tangle-network/tcloud-attestation": "^0.1.1"
@@ -117,7 +117,7 @@
117
117
  "node": ">=18"
118
118
  },
119
119
  "scripts": {
120
- "build": "tsup src/index.ts src/cli.ts src/shielded.ts src/instance.ts src/attestation.ts src/sandbox.ts --format esm,cjs --dts --clean --external socks-proxy-agent",
120
+ "build": "tsup src/index.ts src/cli.ts src/mcp.ts src/shielded.ts src/instance.ts src/attestation.ts src/sandbox.ts --format esm,cjs --dts --clean --external socks-proxy-agent",
121
121
  "docs": "typedoc src/index.ts --out docs --name tcloud --readme README.md",
122
122
  "test": "vitest run",
123
123
  "test:e2e": "vitest run --config vitest.e2e.config.ts",