@twinsearth/agent-universe 2.8.4 → 2.8.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.
package/README.md CHANGED
@@ -335,6 +335,8 @@ npm install @twinsearth/agent-universe
335
335
  | v2.8.2 | **Rust-native Timeout** | **超时改 Rust 原生 spawn+读线程+try_wait kill(去外部 timeout/gtimeout),macOS CI 变绿** |
336
336
  | v2.8.3 | **Ledger Hash Chain** | **账本日志加 SHA256 哈希链 + 锚定 head(tamper-evident),坏行显式报告、水位取逻辑记录数、append 失败不推进(GAP §3.1/§3.6)** |
337
337
  | v2.8.4 | **Restart Gate** | **重启恢复证据闸门/结果信封/信誉/质押:验证策略不回 None、winner_price 不满额兜底、结果信封与质押重启后存活,根治“重启即绕过”(GAP §3.2)** |
338
+ | v2.8.5 | **REST Auth** | **REST 变更接口 fail-closed 认证(未配 token 默认 401)、CORS 白名单消除通配、请求体上限/读超时、状态转换表(Open/终态不能争议)、罚没金额服务端定、reject_task 经 REST/MCP 可达(GAP §3.5/§3.7/§3.8/§2.2.6)** |
339
+ | v2.8.6 | **MCP Validate** | **MCP 参数校验接入两个生产传输(sse/stdio),非法金额/类型返 -32602 不再静默存 0;金额入口只接受整数(get_money/REST/CLI 去浮点);ACA Receipt 计量整数化,规范签名载荷无浮点、三端一致(GAP §3.5/§4.1)** |
338
340
 
339
341
  详见 [RELEASES.md](RELEASES.md) 和 [releases/](releases/) 目录。
340
342
 
package/js/index.js CHANGED
@@ -9,7 +9,7 @@ const { AgentMarket, Bid, Reputation, MIN_STAKE } = require('./lib/market');
9
9
  const { McpHttpClient, McpError, MCP_PROTOCOL_VERSION } = require('./lib/mcp');
10
10
  const aca = require('./lib/aca');
11
11
 
12
- const version = '2.8.4';
12
+ const version = '2.8.6';
13
13
 
14
14
  /**
15
15
  * AgentUniverse 门面:聚合身份、网络、市场能力
package/js/lib/aca.js CHANGED
@@ -158,7 +158,7 @@ function buildManifest(identity, name, capabilities, opts = {}) {
158
158
  const manifest = {
159
159
  did: identity.did,
160
160
  name,
161
- version: opts.version || '2.8.4',
161
+ version: opts.version || '2.8.6',
162
162
  capabilities: [...capabilities],
163
163
  endpoints: opts.endpoints || [],
164
164
  hardware: {
package/js/lib/mcp.js CHANGED
@@ -60,7 +60,7 @@ class McpHttpClient {
60
60
  method: 'initialize',
61
61
  params: {
62
62
  protocolVersion: MCP_PROTOCOL_VERSION,
63
- clientInfo: { name: 'agent-universe-js', version: '2.8.4' },
63
+ clientInfo: { name: 'agent-universe-js', version: '2.8.6' },
64
64
  capabilities: {},
65
65
  },
66
66
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@twinsearth/agent-universe",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@twinsearth/agent-universe",
9
- "version": "2.8.4",
9
+ "version": "2.8.6",
10
10
  "license": "MIT",
11
11
  "engines": {
12
12
  "node": ">=18"
package/js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twinsearth/agent-universe",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
4
4
  "description": "Agent Universe - 群众化的 AGI 路线,去中心化的智能体共享 & 开源网络。使命:让科技造福全人类!",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/js/test/test.js CHANGED
@@ -43,8 +43,8 @@ function test(name, fn) {
43
43
  console.log('Agent Universe JS SDK 测试\n');
44
44
 
45
45
  // 1. 版本号
46
- test('版本号为 2.8.4', () => {
47
- assert.strictEqual(version, '2.8.4');
46
+ test('版本号为 2.8.6', () => {
47
+ assert.strictEqual(version, '2.8.6');
48
48
  });
49
49
 
50
50
  // 2. 密钥对 + DID + 签名验证
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twinsearth/agent-universe",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
4
4
  "description": "Agent Universe - 群众化的 AGI 路线,去中心化的智能体共享 & 开源网络。使命:让科技造福全人类!",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",