@tunnelbox/core 0.1.11 → 0.1.16

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/package.json +1 -1
  2. package/src/types.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tunnelbox/core",
3
- "version": "0.1.11",
3
+ "version": "0.1.16",
4
4
  "description": "tunnelbox 共享核心:协议类型、中继客户端、状态持久化、二维码配对",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/types.ts CHANGED
@@ -10,6 +10,8 @@ export interface Envelope<T = unknown> {
10
10
  ts: number;
11
11
  /** 中继注入/回填:手机端会话 id,用于回路由 */
12
12
  clientID?: string;
13
+ /** 用户级单连接:agent→手机由中继注入来源 agentID;手机→agent 由客户端填目标 agentID */
14
+ agentID?: string;
13
15
  }
14
16
 
15
17
  export function envelope<T>(type: string, payload: T, id?: string): Envelope<T> {