@annals/agent-mesh 0.17.4 → 0.17.5

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -50,7 +50,24 @@ function hasToken() {
50
50
  // src/platform/ws-client.ts
51
51
  import { EventEmitter } from "events";
52
52
  import WebSocket from "ws";
53
- import { BRIDGE_PROTOCOL_VERSION, WS_CLOSE_REPLACED, WS_CLOSE_TOKEN_REVOKED } from "@annals/bridge-protocol";
53
+
54
+ // ../protocol/dist/errors.js
55
+ var BridgeErrorCode = {
56
+ TIMEOUT: "timeout",
57
+ ADAPTER_CRASH: "adapter_crash",
58
+ AGENT_BUSY: "agent_busy",
59
+ AUTH_FAILED: "auth_failed",
60
+ AGENT_OFFLINE: "agent_offline",
61
+ INVALID_MESSAGE: "invalid_message",
62
+ SESSION_NOT_FOUND: "session_not_found",
63
+ RATE_LIMITED: "rate_limited",
64
+ INTERNAL_ERROR: "internal_error"
65
+ };
66
+ var WS_CLOSE_REPLACED = 4001;
67
+ var WS_CLOSE_TOKEN_REVOKED = 4002;
68
+
69
+ // ../protocol/dist/version.js
70
+ var BRIDGE_PROTOCOL_VERSION = 2;
54
71
 
55
72
  // src/utils/logger.ts
56
73
  var RESET2 = "\x1B[0m";
@@ -266,9 +283,6 @@ var BridgeWSClient = class extends EventEmitter {
266
283
  }
267
284
  };
268
285
 
269
- // src/bridge/manager.ts
270
- import { BridgeErrorCode } from "@annals/bridge-protocol";
271
-
272
286
  // src/utils/webrtc-transfer.ts
273
287
  import { createHash } from "crypto";
274
288
  import { createRequire } from "module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annals/agent-mesh",
3
- "version": "0.17.4",
3
+ "version": "0.17.5",
4
4
  "description": "CLI bridge connecting local AI agents to the Agents.Hot platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "main": "./dist/index.js",
10
10
  "dependencies": {
11
- "@annals/bridge-protocol": "^0.2.0",
12
11
  "commander": "^13.0.0",
13
12
  "node-datachannel": "^0.32.0",
14
- "ws": "^8.18.0"
13
+ "ws": "^8.18.0",
14
+ "@annals/bridge-protocol": "^0.2.1"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/ws": "^8.5.0",