@parall/daemon 1.69.0 → 1.70.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.69.0",
3
- "built_at": "2026-09-26T15:36:24.528Z",
2
+ "version": "1.70.0",
3
+ "built_at": "2026-09-30T17:02:05.610Z",
4
4
  "min_node_version": "20.0.0",
5
5
  "files": {
6
6
  "bb-browser-daemon.js": {
@@ -16,29 +16,29 @@
16
16
  "size": 18
17
17
  },
18
18
  "parall-browser-pod.js": {
19
- "sha256": "f103d0bd3c6b136eece34ab20a328cb296f5a848b11b1c2379e90b35ed5d7ac3",
20
- "size": 3053273
19
+ "sha256": "f743b88f5994a3123e0a75f1ebcc292dfe03f0ff6c68c51ea5643070ea80d533",
20
+ "size": 3054007
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "7c2a6e12483a45e9eb4a42cd7d4cdd3c4fa21dd09ac1347d9a3e177b4ddee930",
24
24
  "size": 7220
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "fdf1a41eb478ef9c6b6a638217ffb82df40d0add450a8b820b491d91630b9350",
28
- "size": 3021658
27
+ "sha256": "4b83876df8922a1d29b0ba57a960558980b1e1ae70cbcc4f31e44132f69eee70",
28
+ "size": 3022124
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "dd152b0f4edc98117f7b53336b5e668d3ad2b4e61a0141be05a0be2063cf49a2",
32
- "size": 3043852
31
+ "sha256": "80ead9ee629732525d9d8d954146f33c6abf89ccc06d7a75383a10eec1dfec9e",
32
+ "size": 3044318
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "a252648e2635e8cfb34258531a7c483fdbb21c80c7394f994c7571991bc644aa",
36
- "size": 3229747
35
+ "sha256": "15ef7e67f43c46474130fde55bea93c4fd189ec335bc2ae3b023845377fb11e8",
36
+ "size": 3231481
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "QDaJO0ncno6HN/RODzZhyIjWQdjVqEj10wejnut49xsZIa7OyeTFkMPde4C4unkbvwA6UgjyosQ7jlEddnEsBQ=="
43
+ "signature": "vcg38htfmDLJheB/vnk3KVFb6b6QykbEP0exzYjc0UmnshbfNO+m20F9RfopU8dm0iYxi29bO8wJnA7ZsyPzBw=="
44
44
  }
@@ -64802,6 +64802,7 @@ var ENDPOINTS = {
64802
64802
  UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
64803
64803
  CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
64804
64804
  CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
64805
+ CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
64805
64806
  THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
64806
64807
  THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
64807
64808
  // References (org-scoped)
@@ -67003,6 +67004,12 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
67003
67004
  async markAllRead(orgId, chatId) {
67004
67005
  return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
67005
67006
  }
67007
+ /** The caller's watched threads in a chat that have unread replies — the
67008
+ * per-thread breakdown of the chat's `thread_count`, for reaching thread
67009
+ * residue whose root is outside the loaded message window. */
67010
+ async getUnreadThreads(orgId, chatId) {
67011
+ return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
67012
+ }
67006
67013
  async getThreadUnread(orgId, chatId, threadRootId) {
67007
67014
  return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
67008
67015
  }
@@ -71112,6 +71119,40 @@ function dependencyMaps(manifest) {
71112
71119
  return [manifest?.dependencies, manifest?.dependencySlots].filter((deps) => !!deps);
71113
71120
  }
71114
71121
 
71122
+ // ts/daemon/dist/clip-runtime/connect-envelope.js
71123
+ var ENVELOPE_FLAG_DATA = 0;
71124
+ var ENVELOPE_FLAG_TRAILER = 2;
71125
+ var MAX_FRAME_LENGTH = 16 * 1024 * 1024;
71126
+ function encodeEnvelope(msg) {
71127
+ const json = Buffer.from(JSON.stringify(msg), "utf-8");
71128
+ const header = Buffer.alloc(5);
71129
+ header[0] = ENVELOPE_FLAG_DATA;
71130
+ header.writeUInt32BE(json.length, 1);
71131
+ return Buffer.concat([header, json]);
71132
+ }
71133
+ var EnvelopeDecoder = class {
71134
+ buf = Buffer.alloc(0);
71135
+ push(chunk) {
71136
+ this.buf = this.buf.length === 0 ? Buffer.from(chunk) : Buffer.concat([this.buf, chunk]);
71137
+ }
71138
+ /** Drain all complete envelopes from the internal buffer. */
71139
+ *flush() {
71140
+ while (this.buf.length >= 5) {
71141
+ const flags = this.buf[0];
71142
+ const length = this.buf.readUInt32BE(1);
71143
+ if (length > MAX_FRAME_LENGTH) {
71144
+ this.buf = Buffer.alloc(0);
71145
+ throw new Error(`envelope frame too large: ${length} bytes`);
71146
+ }
71147
+ if (this.buf.length < 5 + length)
71148
+ break;
71149
+ const payload2 = this.buf.subarray(5, 5 + length);
71150
+ this.buf = Buffer.from(this.buf.subarray(5 + length));
71151
+ yield { flags, payload: payload2 };
71152
+ }
71153
+ }
71154
+ };
71155
+
71115
71156
  // ts/daemon/dist/clip-runtime/process.js
71116
71157
  import { spawn as spawn4 } from "node:child_process";
71117
71158
  import { createInterface as createInterface2 } from "node:readline";
@@ -71756,43 +71797,10 @@ var ClipProcess = class {
71756
71797
  };
71757
71798
 
71758
71799
  // ts/daemon/dist/clip-runtime/clip-provider.js
71759
- var ENVELOPE_FLAG_DATA = 0;
71760
- var ENVELOPE_FLAG_TRAILER = 2;
71761
- function encodeEnvelope(msg) {
71762
- const json = Buffer.from(JSON.stringify(msg), "utf-8");
71763
- const header = Buffer.alloc(5);
71764
- header[0] = ENVELOPE_FLAG_DATA;
71765
- header.writeUInt32BE(json.length, 1);
71766
- return Buffer.concat([header, json]);
71767
- }
71768
71800
  function registrationKey(clips) {
71769
71801
  const sorted = [...clips].sort((a5, b5) => (a5.alias ?? "").localeCompare(b5.alias ?? ""));
71770
71802
  return JSON.stringify(sorted);
71771
71803
  }
71772
- var EnvelopeDecoder = class _EnvelopeDecoder {
71773
- buf = Buffer.alloc(0);
71774
- push(chunk) {
71775
- this.buf = this.buf.length === 0 ? Buffer.from(chunk) : Buffer.concat([this.buf, chunk]);
71776
- }
71777
- /** Drain all complete envelopes from the internal buffer. */
71778
- static MAX_FRAME_LENGTH = 16 * 1024 * 1024;
71779
- // 16 MiB
71780
- *flush() {
71781
- while (this.buf.length >= 5) {
71782
- const flags = this.buf[0];
71783
- const length = this.buf.readUInt32BE(1);
71784
- if (length > _EnvelopeDecoder.MAX_FRAME_LENGTH) {
71785
- this.buf = Buffer.alloc(0);
71786
- throw new Error(`envelope frame too large: ${length} bytes`);
71787
- }
71788
- if (this.buf.length < 5 + length)
71789
- break;
71790
- const payload2 = this.buf.subarray(5, 5 + length);
71791
- this.buf = Buffer.from(this.buf.subarray(5 + length));
71792
- yield { flags, payload: payload2 };
71793
- }
71794
- }
71795
- };
71796
71804
  var ClipProvider = class _ClipProvider {
71797
71805
  opts;
71798
71806
  session = null;
@@ -71800,6 +71808,7 @@ var ClipProvider = class _ClipProvider {
71800
71808
  stopped = false;
71801
71809
  connected = false;
71802
71810
  reconnectAttempt = 0;
71811
+ rejectedAttempt = 0;
71803
71812
  reconnectTimer = null;
71804
71813
  heartbeatTimer = null;
71805
71814
  statusUnsubscribe = null;
@@ -71918,10 +71927,10 @@ var ClipProvider = class _ClipProvider {
71918
71927
  this.clearHeartbeatTimer();
71919
71928
  this.scheduleReconnect();
71920
71929
  }
71921
- scheduleReconnect() {
71930
+ scheduleReconnect(delayMs) {
71922
71931
  if (this.stopped || this.reconnectTimer)
71923
71932
  return;
71924
- const delay = Math.min(_ClipProvider.RECONNECT_BASE_MS * Math.pow(2, this.reconnectAttempt), _ClipProvider.RECONNECT_MAX_MS);
71933
+ const delay = delayMs ?? Math.min(_ClipProvider.RECONNECT_BASE_MS * Math.pow(2, this.reconnectAttempt), _ClipProvider.RECONNECT_MAX_MS);
71925
71934
  this.reconnectAttempt++;
71926
71935
  this.opts.log.info(`[clip-provider] reconnecting in ${delay}ms (attempt ${this.reconnectAttempt})`);
71927
71936
  if (this.reconnectAttempt % _ClipProvider.PERSISTENT_FAILURE_ATTEMPT === 0) {
@@ -72064,11 +72073,19 @@ var ClipProvider = class _ClipProvider {
72064
72073
  this.opts.log.info(`[clip-provider] registered with hub (org=${this.opts.orgId})`);
72065
72074
  this.connected = true;
72066
72075
  this.reconnectAttempt = 0;
72076
+ this.rejectedAttempt = 0;
72067
72077
  this.startHeartbeat();
72068
72078
  this.flushReregister();
72069
72079
  } else {
72070
72080
  this.opts.log.error(`[clip-provider] registration rejected: ${reg.message}`);
72071
- this.stopped = true;
72081
+ this.connected = false;
72082
+ const retryDelay = this.opts.rejectedRetryDelayMs?.(this.rejectedAttempt++);
72083
+ if (retryDelay === void 0) {
72084
+ this.stopped = true;
72085
+ } else {
72086
+ this.clearHeartbeatTimer();
72087
+ this.scheduleReconnect(retryDelay);
72088
+ }
72072
72089
  this.closeStream();
72073
72090
  this.closeSession();
72074
72091
  }
@@ -72349,7 +72366,6 @@ function findBunBinary() {
72349
72366
  }
72350
72367
 
72351
72368
  // ts/daemon/dist/clip-runtime/hub-client.js
72352
- var MAX_FRAME_LENGTH = 16 * 1024 * 1024;
72353
72369
  var HubCommandError = class extends Error {
72354
72370
  code;
72355
72371
  constructor(message, code) {
@@ -53043,6 +53043,7 @@ var ENDPOINTS = {
53043
53043
  UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
53044
53044
  CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
53045
53045
  CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
53046
+ CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
53046
53047
  THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
53047
53048
  THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
53048
53049
  // References (org-scoped)
@@ -53201,6 +53202,7 @@ var WS_EVENTS = {
53201
53202
  ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
53202
53203
  ORG_MEMBER_REMOVED: "org.member.removed",
53203
53204
  ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
53205
+ APP_DATA_CHANGED: "app.data.changed",
53204
53206
  AGENT_CONFIG_UPDATE: "agent_config.update",
53205
53207
  PRESENCE_UPDATE: "presence.update",
53206
53208
  WIKI_CHANGESET_CREATED: "wiki.changeset.created",
@@ -55340,6 +55342,12 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
55340
55342
  async markAllRead(orgId, chatId) {
55341
55343
  return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
55342
55344
  }
55345
+ /** The caller's watched threads in a chat that have unread replies — the
55346
+ * per-thread breakdown of the chat's `thread_count`, for reaching thread
55347
+ * residue whose root is outside the loaded message window. */
55348
+ async getUnreadThreads(orgId, chatId) {
55349
+ return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
55350
+ }
55343
55351
  async getThreadUnread(orgId, chatId, threadRootId) {
55344
55352
  return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
55345
55353
  }
@@ -57174,7 +57182,7 @@ var ParallWs = class {
57174
57182
  enterAuthInvalid(event) {
57175
57183
  this.clearReconnect();
57176
57184
  this.setState("auth-invalid");
57177
- console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. The key is invalid, expired, or revoked; retrying it cannot succeed, so reconnects are stopped. Recover by refreshing credentials (re-login, or issue a new API key), then connect again.`);
57185
+ console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. This client stops reconnecting on its own; the owner decides whether to call connect() again later or refresh credentials (re-login, or issue a new API key) first.`);
57178
57186
  for (const listener of this.authInvalidListeners) {
57179
57187
  listener(event);
57180
57188
  }
@@ -53043,6 +53043,7 @@ var ENDPOINTS = {
53043
53043
  UNREAD_BY_ORG: `${API_BASE2}/me/unread/orgs`,
53044
53044
  CHAT_READ: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read`,
53045
53045
  CHAT_READ_ALL: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/read-all`,
53046
+ CHAT_UNREAD_THREADS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/unread`,
53046
53047
  THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
53047
53048
  THREAD_READ: (orgId, chatId, threadRootId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/read`,
53048
53049
  // References (org-scoped)
@@ -53201,6 +53202,7 @@ var WS_EVENTS = {
53201
53202
  ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
53202
53203
  ORG_MEMBER_REMOVED: "org.member.removed",
53203
53204
  ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
53205
+ APP_DATA_CHANGED: "app.data.changed",
53204
53206
  AGENT_CONFIG_UPDATE: "agent_config.update",
53205
53207
  PRESENCE_UPDATE: "presence.update",
53206
53208
  WIKI_CHANGESET_CREATED: "wiki.changeset.created",
@@ -55340,6 +55342,12 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
55340
55342
  async markAllRead(orgId, chatId) {
55341
55343
  return this.request("POST", ENDPOINTS.CHAT_READ_ALL(orgId, chatId));
55342
55344
  }
55345
+ /** The caller's watched threads in a chat that have unread replies — the
55346
+ * per-thread breakdown of the chat's `thread_count`, for reaching thread
55347
+ * residue whose root is outside the loaded message window. */
55348
+ async getUnreadThreads(orgId, chatId) {
55349
+ return this.request("GET", ENDPOINTS.CHAT_UNREAD_THREADS(orgId, chatId));
55350
+ }
55343
55351
  async getThreadUnread(orgId, chatId, threadRootId) {
55344
55352
  return this.request("GET", ENDPOINTS.THREAD_UNREAD(orgId, chatId, threadRootId));
55345
55353
  }
@@ -57174,7 +57182,7 @@ var ParallWs = class {
57174
57182
  enterAuthInvalid(event) {
57175
57183
  this.clearReconnect();
57176
57184
  this.setState("auth-invalid");
57177
- console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. The key is invalid, expired, or revoked; retrying it cannot succeed, so reconnects are stopped. Recover by refreshing credentials (re-login, or issue a new API key), then connect again.`);
57185
+ console.error(`WS auth-invalid: server rejected this credential (status ${event.status}${event.code ? `, code ${event.code}` : ""}) \u2014 ${event.message}. This client stops reconnecting on its own; the owner decides whether to call connect() again later or refresh credentials (re-login, or issue a new API key) first.`);
57178
57186
  for (const listener of this.authInvalidListeners) {
57179
57187
  listener(event);
57180
57188
  }