@zhin.js/adapter-satori 1.1.22 → 1.1.23

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,34 @@
1
1
  # @zhin.js/adapter-satori
2
2
 
3
+ ## 1.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - bc6ccb1: Deep audit bug fixes and 7 architectural improvements:
8
+ - Sink Agent Turn ingress pipeline from `@zhin.js/cli` into `@zhin.js/agent/runtime` (`plugin-runtime/ingress/`) and decompose `ingress-route.ts` into modular pipeline stages.
9
+ - Bind Session State Plane (`JsxButtonRegistry`, `InteractionRuntime`, `RuntimeInteractiveRouter`) to `PluginIncarnationRef` so active buttons and interactions survive unrelated-plugin HMR while expiring when the owning plugin reloads, and support per-conversation fallback numbering (`numberingScope: 'conversation'`).
10
+ - Establish `conversation_events` as the canonical message SSOT and reference `conversation_event_id`, `conversation_key`, `platform_message_id`, and `message_key` in `agent_messages` (`AGENT_MESSAGE_QUERY_VERSION = 2`), threading `conversationSequence` across inbound and outbound delivery receipts.
11
+ - Push down `DatabaseContextRepository` and `DatabaseScheduleJobStorage` full-session/full-table memory scans to indexed SQL queries.
12
+ - Add kernel-level inbound `replyTo` and `mentioned` auto-promotion (`promoteInboundMessagePayload`) plus reusable `InboundDeduper` and `TtlLookupCache` primitives in `@zhin.js/adapter`.
13
+ - Add `MiddlewareContext.dispatch` (`InboundDispatchSummary`) and `onAfterDispatch` hooks for `after-dispatch` middlewares, and support incremental rendering of in-place `envelope.payload` array mutations in `OutboundDeliveryRuntime`.
14
+ - Unify `HistoryWindowTracker` and `AgentCompactionRuntime` token/message budgets (`resolveUnifiedHistoryAndCompactionBudget`).
15
+ - Fix schema validation, database transaction connection cleanup and SQLite WAL mode, schedule timer wheel head-of-line blocking, security policy bash read paths and subagent guard propagation, group merge window permission carrier handoff, micro-compact namespaced tool matching, and WebSocket force-close / inbound segment mapping across adapters.
16
+ - Updated dependencies [6163abc]
17
+ - Updated dependencies [fed2c27]
18
+ - Updated dependencies [bc6ccb1]
19
+ - Updated dependencies [72b5a12]
20
+ - Updated dependencies [aa41889]
21
+ - Updated dependencies [4427e72]
22
+ - Updated dependencies [22bd14a]
23
+ - @zhin.js/core@1.1.57
24
+ - @zhin.js/client@1.1.25
25
+ - @zhin.js/page@1.1.15
26
+ - @zhin.js/im-contract@1.1.12
27
+ - @zhin.js/adapter@1.1.29
28
+ - @zhin.js/host-http@1.1.15
29
+ - @zhin.js/feature-kit@1.1.13
30
+ - @zhin.js/skill@1.1.14
31
+
3
32
  ## 1.1.22
4
33
 
5
34
  ### Patch Changes
package/lib/endpoint.js CHANGED
@@ -163,6 +163,7 @@ export class SatoriWsEndpoint extends SatoriClient {
163
163
  handle.onForceClose(() => {
164
164
  try {
165
165
  ws.close();
166
+ ws.terminate?.();
166
167
  }
167
168
  catch {
168
169
  /* already closed */
package/lib/ws.d.ts CHANGED
@@ -3,6 +3,7 @@ export interface SatoriWsSocket {
3
3
  readonly readyState: number;
4
4
  send(data: string): void;
5
5
  close(code?: number, reason?: string): void;
6
+ terminate?(): void;
6
7
  on(event: 'open' | 'message' | 'close' | 'error', listener: (...args: unknown[]) => void): void;
7
8
  }
8
9
  export type CreateSatoriWebSocket = (url: string, options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/adapter-satori",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "Zhin.js Satori adapter for Plugin Runtime (WebSocket client)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -41,30 +41,30 @@
41
41
  "@imhelper/satori-v1": "1.0.7",
42
42
  "imhelper": "1.0.7",
43
43
  "ws": "^8.21.1",
44
- "@zhin.js/adapter": "1.1.28",
45
- "@zhin.js/client": "1.1.24",
44
+ "@zhin.js/adapter": "1.1.29",
45
+ "@zhin.js/client": "1.1.25",
46
46
  "@zhin.js/console-contract": "1.1.3",
47
- "@zhin.js/core": "1.1.56",
48
- "@zhin.js/feature-kit": "1.1.12",
49
- "@zhin.js/host-http": "1.1.14",
50
- "@zhin.js/im-contract": "1.1.11",
47
+ "@zhin.js/core": "1.1.57",
48
+ "@zhin.js/feature-kit": "1.1.13",
49
+ "@zhin.js/host-http": "1.1.15",
50
+ "@zhin.js/im-contract": "1.1.12",
51
51
  "@zhin.js/logger": "1.1.2",
52
- "@zhin.js/page": "1.1.14",
53
- "@zhin.js/skill": "1.1.13"
52
+ "@zhin.js/page": "1.1.15",
53
+ "@zhin.js/skill": "1.1.14"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^26.1.2",
57
57
  "@types/ws": "^8.18.1",
58
58
  "typescript": "^6.0.3",
59
59
  "vitest": "^4.1.10",
60
- "@zhin.js/host-http": "1.1.14",
61
- "zhin.js": "1.1.21"
60
+ "@zhin.js/host-http": "1.1.15",
61
+ "zhin.js": "1.1.22"
62
62
  },
63
63
  "peerDependencies": {
64
- "@zhin.js/adapter": "^1.1.28",
65
- "@zhin.js/command": "^1.1.14",
66
- "@zhin.js/core": "^1.1.56",
67
- "zhin.js": "^1.1.21"
64
+ "@zhin.js/adapter": "^1.1.29",
65
+ "@zhin.js/command": "^1.1.15",
66
+ "@zhin.js/core": "^1.1.57",
67
+ "zhin.js": "^1.1.22"
68
68
  },
69
69
  "peerDependenciesMeta": {
70
70
  "@zhin.js/command": {
package/src/endpoint.ts CHANGED
@@ -218,6 +218,7 @@ export class SatoriWsEndpoint extends SatoriClient implements Endpoint {
218
218
  handle.onForceClose(() => {
219
219
  try {
220
220
  ws.close();
221
+ ws.terminate?.();
221
222
  } catch {
222
223
  /* already closed */
223
224
  }
package/src/ws.ts CHANGED
@@ -6,6 +6,7 @@ export interface SatoriWsSocket {
6
6
  readonly readyState: number;
7
7
  send(data: string): void;
8
8
  close(code?: number, reason?: string): void;
9
+ terminate?(): void;
9
10
  on(event: 'open' | 'message' | 'close' | 'error', listener: (...args: unknown[]) => void): void;
10
11
  }
11
12