@zhin.js/adapter-sandbox 1.1.3 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @zhin.js/adapter-process
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - b9b3953: Fix adapter connection races, transport health reporting, candidate rollback and delivery acknowledgement boundaries. Separate generation admission from locally observed connectivity, reject unconfirmed message receipts, and mark uncertain delivery results without recommending automatic replay.
8
+
9
+ Class and compact endpoints should expose a `transportState` getter to report physical connection or local listener health. Unobserved endpoints now report an unknown transport and remain offline in diagnostics. Platform stability tiers remain unchanged until real account acceptance evidence is available.
10
+
11
+ - Updated dependencies [b9b3953]
12
+ - Updated dependencies [b9b3953]
13
+ - Updated dependencies [b9b3953]
14
+ - Updated dependencies [b9b3953]
15
+ - Updated dependencies [b9b3953]
16
+ - Updated dependencies [b9b3953]
17
+ - Updated dependencies [b9b3953]
18
+ - Updated dependencies [b9b3953]
19
+ - Updated dependencies [b9b3953]
20
+ - Updated dependencies [b9b3953]
21
+ - Updated dependencies [b9b3953]
22
+ - @zhin.js/adapter@1.1.16
23
+ - @zhin.js/im-contract@1.1.3
24
+ - @zhin.js/core@1.1.40
25
+ - @zhin.js/host-http@1.1.3
26
+ - @zhin.js/skill@1.1.3
27
+ - @zhin.js/client@1.1.8
28
+
29
+ ## 1.1.4
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [43eda99]
34
+ - Updated dependencies [0de4836]
35
+ - Updated dependencies [fa542a2]
36
+ - @zhin.js/core@1.1.39
37
+ - @zhin.js/console-contract@1.1.1
38
+ - @zhin.js/page@1.1.3
39
+ - @zhin.js/adapter@1.1.15
40
+
3
41
  ## 1.1.3
4
42
 
5
43
  ### Patch Changes
package/lib/endpoint.d.ts CHANGED
@@ -33,6 +33,8 @@ export declare class SandboxWsEndpoint extends Endpoint<SandboxClient> {
33
33
  constructor(options: SandboxEndpointOptions);
34
34
  /** Live endpoint id (config `id`) — Console endpoint.list/resolve uses it. */
35
35
  get name(): string;
36
+ /** The Sandbox transport is the mounted local listener, not a remote account. */
37
+ get transportState(): 'open' | 'idle';
36
38
  start(): void;
37
39
  open(): void;
38
40
  close(): void;
package/lib/endpoint.js CHANGED
@@ -94,6 +94,10 @@ export class SandboxWsEndpoint extends Endpoint {
94
94
  get name() {
95
95
  return this.#options.defaults.id;
96
96
  }
97
+ /** The Sandbox transport is the mounted local listener, not a remote account. */
98
+ get transportState() {
99
+ return this.#started && this.#wsHandleRelease ? 'open' : 'idle';
100
+ }
97
101
  start() {
98
102
  if (this.#started)
99
103
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-sandbox",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Zhin.js Sandbox adapter for Plugin Runtime (WebSocket /sandbox)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -48,16 +48,16 @@
48
48
  "dependencies": {
49
49
  "lucide-react": "^0.525.0",
50
50
  "react": "^19.2.8",
51
- "@zhin.js/adapter": "1.1.15",
52
- "@zhin.js/client": "1.1.7",
53
- "@zhin.js/console-contract": "1.1.0",
54
- "@zhin.js/core": "1.1.38",
51
+ "@zhin.js/adapter": "1.1.16",
52
+ "@zhin.js/client": "1.1.8",
53
+ "@zhin.js/console-contract": "1.1.1",
54
+ "@zhin.js/core": "1.1.40",
55
55
  "@zhin.js/feature-kit": "1.1.2",
56
- "@zhin.js/host-http": "1.1.2",
57
- "@zhin.js/im-contract": "1.1.2",
56
+ "@zhin.js/host-http": "1.1.3",
57
+ "@zhin.js/im-contract": "1.1.3",
58
58
  "@zhin.js/logger": "1.1.1",
59
- "@zhin.js/page": "1.1.2",
60
- "@zhin.js/skill": "1.1.2"
59
+ "@zhin.js/page": "1.1.3",
60
+ "@zhin.js/skill": "1.1.3"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/react": "^19.2.18",
@@ -65,18 +65,18 @@
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^4.1.10",
67
67
  "ws": "^8.21.1",
68
- "@zhin.js/pagemanager": "1.1.2",
69
- "@zhin.js/runtime": "1.1.2",
70
- "zhin.js": "1.1.3"
68
+ "@zhin.js/pagemanager": "1.1.4",
69
+ "@zhin.js/runtime": "1.1.4",
70
+ "zhin.js": "1.1.5"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^19.0.0",
74
- "@zhin.js/adapter": "^1.1.15",
75
- "@zhin.js/console-contract": "^1.1.0",
76
- "@zhin.js/core": "^1.1.38",
77
- "@zhin.js/host-http": "^1.1.2",
78
- "@zhin.js/page": "^1.1.2",
79
- "zhin.js": "^1.1.3"
74
+ "@zhin.js/adapter": "^1.1.16",
75
+ "@zhin.js/console-contract": "^1.1.1",
76
+ "@zhin.js/core": "^1.1.40",
77
+ "@zhin.js/host-http": "^1.1.3",
78
+ "@zhin.js/page": "^1.1.3",
79
+ "zhin.js": "^1.1.5"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "react": {
package/src/endpoint.ts CHANGED
@@ -155,6 +155,11 @@ export class SandboxWsEndpoint extends Endpoint<SandboxClient> {
155
155
  return this.#options.defaults.id;
156
156
  }
157
157
 
158
+ /** The Sandbox transport is the mounted local listener, not a remote account. */
159
+ get transportState(): 'open' | 'idle' {
160
+ return this.#started && this.#wsHandleRelease ? 'open' : 'idle';
161
+ }
162
+
158
163
  start(): void {
159
164
  if (this.#started) return;
160
165
  this.#started = true;