@m2msentinel/sdk 1.2.0 → 1.2.1
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/README.md +2 -2
- package/agent_adapter.js +1 -1
- package/mcp_server.js +1 -1
- package/package.json +2 -2
- package/typescript/package.json +1 -1
- package/typescript/x402.ts +1 -1
- package/x402_signer.js +1 -1
package/README.md
CHANGED
|
@@ -40,13 +40,13 @@ Autonomous agents handling value must never rely on a single oracle or heuristic
|
|
|
40
40
|
npm install @m2msentinel/sdk
|
|
41
41
|
|
|
42
42
|
# Or unscoped package
|
|
43
|
-
npm install m2m-sentinel-sdk@1.2.
|
|
43
|
+
npm install m2m-sentinel-sdk@1.2.1
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### Python (PyPI)
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
pip install m2m-sentinel==1.2.
|
|
49
|
+
pip install m2m-sentinel==1.2.1
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
### MCP Server (Model Context Protocol)
|
package/agent_adapter.js
CHANGED
package/mcp_server.js
CHANGED
|
@@ -8,7 +8,7 @@ const readline = require('readline');
|
|
|
8
8
|
let BASE_URL = process.env.M2M_SENTINEL_BASE_URL || 'https://api.m2msentinel.com';
|
|
9
9
|
let API_KEY = process.env.M2M_SENTINEL_API_KEY || '';
|
|
10
10
|
const TIMEOUT_MS = Number(process.env.M2M_SENTINEL_TIMEOUT_MS || 30000);
|
|
11
|
-
const VERSION = '1.2.
|
|
11
|
+
const VERSION = '1.2.1';
|
|
12
12
|
|
|
13
13
|
const TOOLS = [
|
|
14
14
|
{
|
package/package.json
CHANGED
package/typescript/package.json
CHANGED
package/typescript/x402.ts
CHANGED
|
@@ -309,7 +309,7 @@ export class X402SignerClient {
|
|
|
309
309
|
|
|
310
310
|
async fetchWithAutoPayment(path: string, options: any = {}): Promise<any> {
|
|
311
311
|
const url = path.startsWith('http') ? path : `${this.baseUrl}/${path.replace(/^\/+/, '')}`;
|
|
312
|
-
const headers = { 'Accept': 'application/json', 'User-Agent': '@m2msentinel/sdk-ts/1.2.
|
|
312
|
+
const headers = { 'Accept': 'application/json', 'User-Agent': '@m2msentinel/sdk-ts/1.2.1', ...(options.headers || {}) };
|
|
313
313
|
|
|
314
314
|
let res = await fetch(url, { method: options.method || 'GET', headers, body: options.body });
|
|
315
315
|
if (res.status !== 402) {
|
package/x402_signer.js
CHANGED
|
@@ -265,7 +265,7 @@ class X402SignerClient {
|
|
|
265
265
|
path: url.pathname + url.search,
|
|
266
266
|
method: options.method || 'GET',
|
|
267
267
|
headers: {
|
|
268
|
-
'User-Agent': 'M2M-Sentinel-X402Signer/1.2.
|
|
268
|
+
'User-Agent': 'M2M-Sentinel-X402Signer/1.2.1',
|
|
269
269
|
'Accept': 'application/json',
|
|
270
270
|
...(options.headers || {})
|
|
271
271
|
},
|