@evomap/evolver-adapter-public 2.0.0-beta.5 → 2.0.0-beta.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/dist/hubCapability.js +6 -1
- package/package.json +2 -2
package/dist/hubCapability.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hub as hubNs } from '@evomap/evolver-core';
|
|
1
|
+
import { bootstrap, hub as hubNs } from '@evomap/evolver-core';
|
|
2
2
|
import { AuthError, HubFetch, HubClientError, isHubUnreachableError } from './hubFetch.js';
|
|
3
3
|
import { isNodeSecret, parseNodeSecretVersion } from './auth/legacyShim.js';
|
|
4
4
|
import { inboundToAgentEvent, agentEventToOutbound, publishRespToReceipt, searchQueryToFetchWire } from './wireMap.js';
|
|
@@ -103,6 +103,11 @@ export class PublicHubCapability {
|
|
|
103
103
|
timestamp: new Date().toISOString(),
|
|
104
104
|
...(sender ? { node_id: sender } : {}),
|
|
105
105
|
...(opts.evolverVersion ? { evolver_version: opts.evolverVersion } : {}),
|
|
106
|
+
// v1 parity (a2aProtocol.js buildHello): every hello carries the env fingerprint — it is how the
|
|
107
|
+
// hub builds node/IP trust for its anti-abuse layer. v2 had moved it to heartbeat-only meta, which
|
|
108
|
+
// one-shot CLI paths never send; the hub then answers heartbeats with resend_hello
|
|
109
|
+
// `missing_env_fingerprint` and 403-antibodies /a2a/fetch (#555).
|
|
110
|
+
env_fingerprint: bootstrap.captureEnvFingerprint({ env: this.opts.antiAbuse?.env ?? process.env }),
|
|
106
111
|
}));
|
|
107
112
|
const payload = asRecord(body['payload']) ?? body;
|
|
108
113
|
const retryAfterMs = numberField(payload, 'retry_after_ms') ?? numberField(payload, 'retryAfterMs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evomap/evolver-adapter-public",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "公版 hub 适配器 (积分/治理)",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@evomap/atp-sdk": "^0.1.0",
|
|
17
|
-
"@evomap/evolver-core": "2.0.0-beta.
|
|
17
|
+
"@evomap/evolver-core": "2.0.0-beta.6",
|
|
18
18
|
"undici": "^6.27.0"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|