@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 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.0
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.0
49
+ pip install m2m-sentinel==1.2.1
50
50
  ```
51
51
 
52
52
  ### MCP Server (Model Context Protocol)
package/agent_adapter.js CHANGED
@@ -67,7 +67,7 @@ class M2MSentinelActionProvider {
67
67
 
68
68
  const headers = {
69
69
  Accept: 'application/json',
70
- 'User-Agent': 'M2MSentinel-AgentKit/1.2.0',
70
+ 'User-Agent': 'M2MSentinel-AgentKit/1.2.1',
71
71
  ...options.headers
72
72
  };
73
73
  if (this.apiKey && !headers['x-api-key']) {
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.0';
11
+ const VERSION = '1.2.1';
12
12
 
13
13
  const TOOLS = [
14
14
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m2msentinel/sdk",
3
- "version": "1.2.0",
4
- "mcpName": "io.github.m2m-sentinel/m2m-sentinel-sdk",
3
+ "version": "1.2.1",
4
+ "mcpName": "io.github.M2M-Sentinel/m2m-sentinel-sdk",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m2m-sentinel-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Source-distributed TypeScript client for M2M Sentinel Base capability intelligence API",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
@@ -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.0', ...(options.headers || {}) };
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.0',
268
+ 'User-Agent': 'M2M-Sentinel-X402Signer/1.2.1',
269
269
  'Accept': 'application/json',
270
270
  ...(options.headers || {})
271
271
  },