@parall/daemon 1.73.0 → 1.74.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.73.0",
3
- "built_at": "2026-10-07T04:21:09.802Z",
2
+ "version": "1.74.0",
3
+ "built_at": "2026-10-12T18:29:34.160Z",
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": "7bfc3fe15a2634bd36dedad935198611629e2991bc321882a92d12f4b502313e",
20
- "size": 3058990
19
+ "sha256": "1a5cc75a623e0cef0654bb22f0c48fd6011b0100bf947a4097a74307361f582d",
20
+ "size": 3059780
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "2500dec2c332cce29aea476d3c048b49dbc43acf8572059bae2cd9dff49750b4",
24
24
  "size": 7978
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "1fe24de2655f3f634976aeccc969340ad60109bdf033c2a8b0dcfdb950ed50d4",
28
- "size": 3034522
27
+ "sha256": "a2950f0bc785997796b2a63e75554e9e2fc1617608f884b4fa4f13ba5a9abf25",
28
+ "size": 3038075
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "854166ce5f0d63fdbf75f09053907032548620cc43e5b13d070094e451912be8",
32
- "size": 3056715
31
+ "sha256": "54db9864f52cc7b553a7f1a34caa1913022bcc0a6bb073a0ece2abc469ba7715",
32
+ "size": 3061289
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "ec1b8d26a41849bcd9414fd25e2b1d967e4d1c16f372fb294df1b2fbbaf38b29",
36
- "size": 3241772
35
+ "sha256": "64ad91c1f422c19a78500cf5f6a3c9f8a16e68fb6960df507792ce6247a9b099",
36
+ "size": 3242376
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "XmzQMnh6gz+2Y+VB1qH+nn0yyAD04cdwLzerp/GEHNEFhGr/6bBVGg2XfazIBUaO2lldnoLzme4nFFpchernAQ=="
43
+ "signature": "RO+Eq38e2JFdLqKMZ1AUfwSpSuNP5S1g6vCbKLpaIio0Y2k4/TUwC758x+d2mcUbVW3WGsNBX3a8mQw7mjNmAQ=="
44
44
  }
@@ -64452,6 +64452,7 @@ var ENDPOINTS = {
64452
64452
  MESSAGE_REPLIES: (id) => `${API_BASE2}/messages/${id}/replies`,
64453
64453
  MESSAGE_WATCH: (id) => `${API_BASE2}/messages/${id}/watch`,
64454
64454
  MESSAGE_WATCHERS: (id) => `${API_BASE2}/messages/${id}/watchers`,
64455
+ MESSAGE_WATCHER: (id, userId) => `${API_BASE2}/messages/${id}/watchers/${userId}`,
64455
64456
  MESSAGE_WATCHING: (id) => `${API_BASE2}/messages/${id}/watching`,
64456
64457
  /** Caller's attention levels across chats / threads / tasks. */
64457
64458
  WATCHES: (orgId) => `${API_BASE2}/orgs/${orgId}/watches`,
@@ -64992,6 +64993,16 @@ var ProjectTaskClient = class {
64992
64993
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHERS(threadRootId));
64993
64994
  return res.data;
64994
64995
  }
64996
+ /**
64997
+ * Unwatch a thread for an agent: its manager, a chat owner/admin or an org
64998
+ * admin (403 otherwise). The agent ends up where its own `unwatchThread`
64999
+ * leaves it; for an agent that is not watching this is a no-op. It is
65000
+ * never done for a person (400 INVALID_TARGET), nor for anyone in a DM's
65001
+ * thread (400 DM_ALWAYS_DELIVERS).
65002
+ */
65003
+ async unwatchThreadMember(threadRootId, userId) {
65004
+ return this.request("DELETE", ENDPOINTS.MESSAGE_WATCHER(threadRootId, userId));
65005
+ }
64995
65006
  async isWatchingThread(threadRootId) {
64996
65007
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHING(threadRootId));
64997
65008
  return res.watching;
@@ -65335,12 +65346,13 @@ var MiniAppActionClient = class extends MiniAppClient {
65335
65346
  async getMiniAppActions(orgId, appId, v) {
65336
65347
  return this.request("GET", `${app(orgId, appId)}/actions`, void 0, { v });
65337
65348
  }
65338
- /** Runs one action. The server answers within its deadline plus the audit
65339
- * write; the default timeout leaves room for both. The Mini App host
65349
+ /** Runs one action. The server answers within its deadline (100 s for an
65350
+ * action that calls Clip) plus the audit write; the default timeout
65351
+ * leaves room for both. The Mini App host
65340
65352
  * passes its own (design §3.1: server < host < bridge), and a signal that
65341
65353
  * ends the whole call, a session refresh and a retry after 401 included. */
65342
65354
  async invokeMiniAppAction(orgId, appId, name, params, v, opts) {
65343
- return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 6e4, signal: opts?.signal });
65355
+ return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 12e4, signal: opts?.signal });
65344
65356
  }
65345
65357
  /** Issues the ticket of one local run of an action (`parall app action
65346
65358
  * run --local`): takes app.publish on the app and db.data.write on its
@@ -65668,9 +65680,9 @@ var BrowserProfileClient = class extends ClipConnectionClient {
65668
65680
  };
65669
65681
 
65670
65682
  // ts/sdk/dist/wiki-draft-types.js
65671
- var WIKI_DRAFT_SCHEMA_VERSION = 2;
65683
+ var WIKI_DRAFT_SCHEMA_VERSION = 3;
65672
65684
  function isWikiDraftSchemaVersion(value) {
65673
- return value === 1 || value === 2;
65685
+ return value === 1 || value === 2 || value === 3;
65674
65686
  }
65675
65687
  var IDENTIFIER = /^[A-Za-z0-9_.:-]{1,128}$/;
65676
65688
  function isWikiDraftScope(value) {
@@ -68380,11 +68392,13 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
68380
68392
  * `Retry-After` (no slot to wait for — retry re-resolves routing).
68381
68393
  *
68382
68394
  * NOT retryable:
68383
- * - `OUTCOME_UNKNOWN` 504 — dispatched, but no result arrived. The command
68395
+ * - `OUTCOME_UNKNOWN` 500 — dispatched, but no result arrived. The command
68384
68396
  * MAY HAVE EXECUTED (posted, ordered, deleted…). Never retry
68385
68397
  * automatically: verify the effect first, then decide. The message carries
68386
68398
  * the request id for audit.
68387
- * - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
68399
+ * - `EDGE_DEADLINE_EXCEEDED` 500 — the runtime hit the deadline. Refused on
68400
+ * arrival it did not run, but a hosted pod also reports it when it aborts a
68401
+ * running command or drains, so treat it like OUTCOME_UNKNOWN.
68388
68402
  * - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
68389
68403
  * `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
68390
68404
  * - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
@@ -52729,6 +52729,7 @@ var ENDPOINTS = {
52729
52729
  MESSAGE_REPLIES: (id) => `${API_BASE2}/messages/${id}/replies`,
52730
52730
  MESSAGE_WATCH: (id) => `${API_BASE2}/messages/${id}/watch`,
52731
52731
  MESSAGE_WATCHERS: (id) => `${API_BASE2}/messages/${id}/watchers`,
52732
+ MESSAGE_WATCHER: (id, userId) => `${API_BASE2}/messages/${id}/watchers/${userId}`,
52732
52733
  MESSAGE_WATCHING: (id) => `${API_BASE2}/messages/${id}/watching`,
52733
52734
  /** Caller's attention levels across chats / threads / tasks. */
52734
52735
  WATCHES: (orgId) => `${API_BASE2}/orgs/${orgId}/watches`,
@@ -53370,6 +53371,16 @@ var ProjectTaskClient = class {
53370
53371
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHERS(threadRootId));
53371
53372
  return res.data;
53372
53373
  }
53374
+ /**
53375
+ * Unwatch a thread for an agent: its manager, a chat owner/admin or an org
53376
+ * admin (403 otherwise). The agent ends up where its own `unwatchThread`
53377
+ * leaves it; for an agent that is not watching this is a no-op. It is
53378
+ * never done for a person (400 INVALID_TARGET), nor for anyone in a DM's
53379
+ * thread (400 DM_ALWAYS_DELIVERS).
53380
+ */
53381
+ async unwatchThreadMember(threadRootId, userId) {
53382
+ return this.request("DELETE", ENDPOINTS.MESSAGE_WATCHER(threadRootId, userId));
53383
+ }
53373
53384
  async isWatchingThread(threadRootId) {
53374
53385
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHING(threadRootId));
53375
53386
  return res.watching;
@@ -53713,12 +53724,13 @@ var MiniAppActionClient = class extends MiniAppClient {
53713
53724
  async getMiniAppActions(orgId, appId, v) {
53714
53725
  return this.request("GET", `${app(orgId, appId)}/actions`, void 0, { v });
53715
53726
  }
53716
- /** Runs one action. The server answers within its deadline plus the audit
53717
- * write; the default timeout leaves room for both. The Mini App host
53727
+ /** Runs one action. The server answers within its deadline (100 s for an
53728
+ * action that calls Clip) plus the audit write; the default timeout
53729
+ * leaves room for both. The Mini App host
53718
53730
  * passes its own (design §3.1: server < host < bridge), and a signal that
53719
53731
  * ends the whole call, a session refresh and a retry after 401 included. */
53720
53732
  async invokeMiniAppAction(orgId, appId, name, params, v, opts) {
53721
- return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 6e4, signal: opts?.signal });
53733
+ return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 12e4, signal: opts?.signal });
53722
53734
  }
53723
53735
  /** Issues the ticket of one local run of an action (`parall app action
53724
53736
  * run --local`): takes app.publish on the app and db.data.write on its
@@ -54046,9 +54058,9 @@ var BrowserProfileClient = class extends ClipConnectionClient {
54046
54058
  };
54047
54059
 
54048
54060
  // ts/sdk/dist/wiki-draft-types.js
54049
- var WIKI_DRAFT_SCHEMA_VERSION = 2;
54061
+ var WIKI_DRAFT_SCHEMA_VERSION = 3;
54050
54062
  function isWikiDraftSchemaVersion(value) {
54051
- return value === 1 || value === 2;
54063
+ return value === 1 || value === 2 || value === 3;
54052
54064
  }
54053
54065
  var IDENTIFIER = /^[A-Za-z0-9_.:-]{1,128}$/;
54054
54066
  function isWikiDraftScope(value) {
@@ -56758,11 +56770,13 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
56758
56770
  * `Retry-After` (no slot to wait for — retry re-resolves routing).
56759
56771
  *
56760
56772
  * NOT retryable:
56761
- * - `OUTCOME_UNKNOWN` 504 — dispatched, but no result arrived. The command
56773
+ * - `OUTCOME_UNKNOWN` 500 — dispatched, but no result arrived. The command
56762
56774
  * MAY HAVE EXECUTED (posted, ordered, deleted…). Never retry
56763
56775
  * automatically: verify the effect first, then decide. The message carries
56764
56776
  * the request id for audit.
56765
- * - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
56777
+ * - `EDGE_DEADLINE_EXCEEDED` 500 — the runtime hit the deadline. Refused on
56778
+ * arrival it did not run, but a hosted pod also reports it when it aborts a
56779
+ * running command or drains, so treat it like OUTCOME_UNKNOWN.
56766
56780
  * - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
56767
56781
  * `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
56768
56782
  * - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
@@ -63002,7 +63016,12 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
63002
63016
 
63003
63017
  \u8FD0\u884C \`parall browser profiles --json\`\uFF0C\u4ECE\u53EF\u8BBF\u95EE\u5217\u8868\u6309\u8D26\u53F7\u540D\u79F0\u9009\u62E9 Profile\u3002
63004
63018
  \u591A\u4E2A\u8D26\u53F7\u65E0\u6CD5\u533A\u5206\u65F6\u95EE\u7528\u6237\u3002\u5217\u8868\u8868\u793A\u4F60\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u4E0D\u4FDD\u8BC1\u7F51\u7AD9\u5DF2\u767B\u5F55\u6216\u6BCF\u79CD\u52A8\u4F5C\u90FD\u83B7\u6388\u6743\u3002
63005
- \u6CA1\u6709\u53EF\u7528 Profile \u65F6\u8BF7\u7EC4\u7EC7\u7BA1\u7406\u5458\u6388\u6743\uFF1B\u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
63019
+ \u6CA1\u6709\u53EF\u7528 Profile \u65F6\uFF0C\u95EE\u7528\u6237\uFF1A
63020
+ - **\u7528\u6237\u6709 Desktop \u4F46\u4F60\u6CA1\u6743\u9650**\uFF1A\u8BF7\u7528\u6237\u544A\u8BC9\u4F60 Profile ID\uFF08\`ebp_...\`\uFF0C\u5728 Desktop \u7684 Clips > Devices \u9875\u9762\u53EF\u4EE5\u770B\u5230\uFF09\uFF0C\u7136\u540E\u901A\u8FC7\u5BA1\u6279\u5361\u8BF7\u6C42\u6388\u6743\u2014\u2014
63021
+ \`parall approvals request --action browser.profile.authorize --resource prll://<ebp_id> --title "Request browser profile access" --chat prll://<cht_id>\`
63022
+ \u4EBA approve \u540E\u4F60\u81EA\u52A8\u83B7\u5F97\u8BE5 Profile \u7684\u5168\u90E8\u64CD\u4F5C\u6743\u9650\u3002
63023
+ - **\u7528\u6237\u6CA1\u6709 Desktop**\uFF1A\u544A\u8BC9\u7528\u6237\u5B89\u88C5\u5E76\u6253\u5F00 Parall Desktop\uFF0CDesktop \u542F\u52A8\u540E\u4F1A\u81EA\u52A8\u6CE8\u518C\u8BBE\u5907\u548C\u9ED8\u8BA4 Profile\u3002\u5B89\u88C5 Desktop \u540E\u4F60\u5C31\u6709\u4E86 Browser Use \u548C Clip \u80FD\u529B\u3002
63024
+ \u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
63006
63025
  \u7528\u6237\u5DF2\u7ED9 Profile ID \u65F6\u53EF\u76F4\u63A5\u4F7F\u7528\u3002\u6BCF\u6B21\u547D\u4EE4\u90FD\u5E26 \`--profile\`\uFF0C\u4E0D\u731C\u9ED8\u8BA4\u8D26\u53F7\u3002
63007
63026
 
63008
63027
  \u4E91\u7AEF\u6BCF\u7B14\u660E\u786E\u6267\u884C\u7684\u64CD\u4F5C $0.01\uFF0C\u5305\u542B\u8BFB\u9875\u3001tabs \u548C\u6267\u884C\u540E\u7684\u5931\u8D25\uFF1BBYOC \u514D\u8D39\u3002
@@ -64588,6 +64607,56 @@ bound to whatever profile the connection selected.
64588
64607
  session (\`tab.cookie\` / \`tab.fetch\`). Published source is visible to installers.
64589
64608
  - Exec has a timeout (default 30s, caller-set up to 120s). Long scrapes should page,
64590
64609
  not block.
64610
+
64611
+ ## Requesting authorization via approval cards
64612
+
64613
+ After publishing and installing a clip, you need a device connection and possibly
64614
+ exec access. File approval requests \u2014 the human approves in-chat and the server
64615
+ executes automatically.
64616
+
64617
+ For Browser Profile access (needed for Browser Use to explore sites), see the
64618
+ Parall Browser skill \u2014 it covers profile discovery, Desktop setup, and the
64619
+ \`browser.profile.authorize\` approval card.
64620
+
64621
+ ### Creating a connection (\`clip.connection.create\`)
64622
+
64623
+ After publishing and installing a clip, request a device connection:
64624
+
64625
+ \`\`\`bash
64626
+ parall approvals request \\
64627
+ --action clip.connection.create \\
64628
+ --resource prll://<crg_id> \\
64629
+ --title "Create connection for my-clip" \\
64630
+ --payload '{"device_id":"edg_xxx","alias":"desktop","is_default":true,"org_public":true}' \\
64631
+ --chat prll://<cht_id>
64632
+ \`\`\`
64633
+
64634
+ After approval, query the connection: \`parall clip connections <clipName>\`.
64635
+
64636
+ ### Requesting exec access (\`clip.exec_access.grant\`)
64637
+
64638
+ If you get \`CLIP_AGENT_NOT_ALLOWED\` when executing, request access:
64639
+
64640
+ \`\`\`bash
64641
+ parall approvals request \\
64642
+ --action clip.exec_access.grant \\
64643
+ --resource prll://<crg_id> \\
64644
+ --title "Request exec access for my-clip" \\
64645
+ --chat prll://<cht_id>
64646
+ \`\`\`
64647
+
64648
+ ### Full development loop
64649
+
64650
+ \`\`\`
64651
+ 1. Get Browser Use access (see Parall Browser skill for profile setup + approval)
64652
+ 2. Use Browser Use to explore the target site
64653
+ 3. Write clip code (manifest.json + JS files)
64654
+ 4. Publish: parall clip publish ./my-clip/
64655
+ 5. Install: parall clip install <clipName>
64656
+ 6. Request connection creation (approval card)
64657
+ 7. Request exec access if needed (approval card)
64658
+ 8. Test: parall clip exec <clipName> <command> '{"arg":"val"}' --connection <alias>
64659
+ \`\`\`
64591
64660
  `;
64592
64661
 
64593
64662
  // ts/agent-core/dist/skills/index.js
@@ -65551,9 +65620,11 @@ var ClaudeBusyTracker = class {
65551
65620
  followUpHoldUntil = null;
65552
65621
  lastNotification;
65553
65622
  /**
65554
- * Descriptions of tasks that already left the live set: the REPLACE frame
65555
- * arrives BEFORE the task_notification for the task it removed, and the
65556
- * notification itself carries only a summary.
65623
+ * Descriptions of tasks that already left the live set: up to 2.1.281 the
65624
+ * REPLACE frame arrives BEFORE the task_notification for the task it
65625
+ * removed (2.1.292 sends it after), and the notification itself carries
65626
+ * only a summary. Both orders occur — self-hosted machines run whatever
65627
+ * CLI the user installed (probes/background-tasks-2.1.292.md).
65557
65628
  */
65558
65629
  finishedDescriptions = /* @__PURE__ */ new Map();
65559
65630
  constructor(holdMs = DEFAULT_FOLLOW_UP_HOLD_MS) {
@@ -52729,6 +52729,7 @@ var ENDPOINTS = {
52729
52729
  MESSAGE_REPLIES: (id) => `${API_BASE2}/messages/${id}/replies`,
52730
52730
  MESSAGE_WATCH: (id) => `${API_BASE2}/messages/${id}/watch`,
52731
52731
  MESSAGE_WATCHERS: (id) => `${API_BASE2}/messages/${id}/watchers`,
52732
+ MESSAGE_WATCHER: (id, userId) => `${API_BASE2}/messages/${id}/watchers/${userId}`,
52732
52733
  MESSAGE_WATCHING: (id) => `${API_BASE2}/messages/${id}/watching`,
52733
52734
  /** Caller's attention levels across chats / threads / tasks. */
52734
52735
  WATCHES: (orgId) => `${API_BASE2}/orgs/${orgId}/watches`,
@@ -53370,6 +53371,16 @@ var ProjectTaskClient = class {
53370
53371
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHERS(threadRootId));
53371
53372
  return res.data;
53372
53373
  }
53374
+ /**
53375
+ * Unwatch a thread for an agent: its manager, a chat owner/admin or an org
53376
+ * admin (403 otherwise). The agent ends up where its own `unwatchThread`
53377
+ * leaves it; for an agent that is not watching this is a no-op. It is
53378
+ * never done for a person (400 INVALID_TARGET), nor for anyone in a DM's
53379
+ * thread (400 DM_ALWAYS_DELIVERS).
53380
+ */
53381
+ async unwatchThreadMember(threadRootId, userId) {
53382
+ return this.request("DELETE", ENDPOINTS.MESSAGE_WATCHER(threadRootId, userId));
53383
+ }
53373
53384
  async isWatchingThread(threadRootId) {
53374
53385
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHING(threadRootId));
53375
53386
  return res.watching;
@@ -53713,12 +53724,13 @@ var MiniAppActionClient = class extends MiniAppClient {
53713
53724
  async getMiniAppActions(orgId, appId, v) {
53714
53725
  return this.request("GET", `${app(orgId, appId)}/actions`, void 0, { v });
53715
53726
  }
53716
- /** Runs one action. The server answers within its deadline plus the audit
53717
- * write; the default timeout leaves room for both. The Mini App host
53727
+ /** Runs one action. The server answers within its deadline (100 s for an
53728
+ * action that calls Clip) plus the audit write; the default timeout
53729
+ * leaves room for both. The Mini App host
53718
53730
  * passes its own (design §3.1: server < host < bridge), and a signal that
53719
53731
  * ends the whole call, a session refresh and a retry after 401 included. */
53720
53732
  async invokeMiniAppAction(orgId, appId, name, params, v, opts) {
53721
- return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 6e4, signal: opts?.signal });
53733
+ return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 12e4, signal: opts?.signal });
53722
53734
  }
53723
53735
  /** Issues the ticket of one local run of an action (`parall app action
53724
53736
  * run --local`): takes app.publish on the app and db.data.write on its
@@ -54046,9 +54058,9 @@ var BrowserProfileClient = class extends ClipConnectionClient {
54046
54058
  };
54047
54059
 
54048
54060
  // ts/sdk/dist/wiki-draft-types.js
54049
- var WIKI_DRAFT_SCHEMA_VERSION = 2;
54061
+ var WIKI_DRAFT_SCHEMA_VERSION = 3;
54050
54062
  function isWikiDraftSchemaVersion(value) {
54051
- return value === 1 || value === 2;
54063
+ return value === 1 || value === 2 || value === 3;
54052
54064
  }
54053
54065
  var IDENTIFIER = /^[A-Za-z0-9_.:-]{1,128}$/;
54054
54066
  function isWikiDraftScope(value) {
@@ -56758,11 +56770,13 @@ var ParallClient = class _ParallClient extends OrgAccentClient {
56758
56770
  * `Retry-After` (no slot to wait for — retry re-resolves routing).
56759
56771
  *
56760
56772
  * NOT retryable:
56761
- * - `OUTCOME_UNKNOWN` 504 — dispatched, but no result arrived. The command
56773
+ * - `OUTCOME_UNKNOWN` 500 — dispatched, but no result arrived. The command
56762
56774
  * MAY HAVE EXECUTED (posted, ordered, deleted…). Never retry
56763
56775
  * automatically: verify the effect first, then decide. The message carries
56764
56776
  * the request id for audit.
56765
- * - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
56777
+ * - `EDGE_DEADLINE_EXCEEDED` 500 — the runtime hit the deadline. Refused on
56778
+ * arrival it did not run, but a hosted pod also reports it when it aborts a
56779
+ * running command or drains, so treat it like OUTCOME_UNKNOWN.
56766
56780
  * - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
56767
56781
  * `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
56768
56782
  * - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
@@ -62989,7 +63003,12 @@ var PARALL_BROWSER_SKILL = `# Parall Browser
62989
63003
 
62990
63004
  \u8FD0\u884C \`parall browser profiles --json\`\uFF0C\u4ECE\u53EF\u8BBF\u95EE\u5217\u8868\u6309\u8D26\u53F7\u540D\u79F0\u9009\u62E9 Profile\u3002
62991
63005
  \u591A\u4E2A\u8D26\u53F7\u65E0\u6CD5\u533A\u5206\u65F6\u95EE\u7528\u6237\u3002\u5217\u8868\u8868\u793A\u4F60\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u4E0D\u4FDD\u8BC1\u7F51\u7AD9\u5DF2\u767B\u5F55\u6216\u6BCF\u79CD\u52A8\u4F5C\u90FD\u83B7\u6388\u6743\u3002
62992
- \u6CA1\u6709\u53EF\u7528 Profile \u65F6\u8BF7\u7EC4\u7EC7\u7BA1\u7406\u5458\u6388\u6743\uFF1B\u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
63006
+ \u6CA1\u6709\u53EF\u7528 Profile \u65F6\uFF0C\u95EE\u7528\u6237\uFF1A
63007
+ - **\u7528\u6237\u6709 Desktop \u4F46\u4F60\u6CA1\u6743\u9650**\uFF1A\u8BF7\u7528\u6237\u544A\u8BC9\u4F60 Profile ID\uFF08\`ebp_...\`\uFF0C\u5728 Desktop \u7684 Clips > Devices \u9875\u9762\u53EF\u4EE5\u770B\u5230\uFF09\uFF0C\u7136\u540E\u901A\u8FC7\u5BA1\u6279\u5361\u8BF7\u6C42\u6388\u6743\u2014\u2014
63008
+ \`parall approvals request --action browser.profile.authorize --resource prll://<ebp_id> --title "Request browser profile access" --chat prll://<cht_id>\`
63009
+ \u4EBA approve \u540E\u4F60\u81EA\u52A8\u83B7\u5F97\u8BE5 Profile \u7684\u5168\u90E8\u64CD\u4F5C\u6743\u9650\u3002
63010
+ - **\u7528\u6237\u6CA1\u6709 Desktop**\uFF1A\u544A\u8BC9\u7528\u6237\u5B89\u88C5\u5E76\u6253\u5F00 Parall Desktop\uFF0CDesktop \u542F\u52A8\u540E\u4F1A\u81EA\u52A8\u6CE8\u518C\u8BBE\u5907\u548C\u9ED8\u8BA4 Profile\u3002\u5B89\u88C5 Desktop \u540E\u4F60\u5C31\u6709\u4E86 Browser Use \u548C Clip \u80FD\u529B\u3002
63011
+ \u5217\u8868\u62A5\u9519\u65F6\u4FDD\u7559\u9519\u8BEF\uFF0C\u4E0D\u80FD\u5F53\u4F5C\u7A7A\u5217\u8868\u3002
62993
63012
  \u7528\u6237\u5DF2\u7ED9 Profile ID \u65F6\u53EF\u76F4\u63A5\u4F7F\u7528\u3002\u6BCF\u6B21\u547D\u4EE4\u90FD\u5E26 \`--profile\`\uFF0C\u4E0D\u731C\u9ED8\u8BA4\u8D26\u53F7\u3002
62994
63013
 
62995
63014
  \u4E91\u7AEF\u6BCF\u7B14\u660E\u786E\u6267\u884C\u7684\u64CD\u4F5C $0.01\uFF0C\u5305\u542B\u8BFB\u9875\u3001tabs \u548C\u6267\u884C\u540E\u7684\u5931\u8D25\uFF1BBYOC \u514D\u8D39\u3002
@@ -64575,6 +64594,56 @@ bound to whatever profile the connection selected.
64575
64594
  session (\`tab.cookie\` / \`tab.fetch\`). Published source is visible to installers.
64576
64595
  - Exec has a timeout (default 30s, caller-set up to 120s). Long scrapes should page,
64577
64596
  not block.
64597
+
64598
+ ## Requesting authorization via approval cards
64599
+
64600
+ After publishing and installing a clip, you need a device connection and possibly
64601
+ exec access. File approval requests \u2014 the human approves in-chat and the server
64602
+ executes automatically.
64603
+
64604
+ For Browser Profile access (needed for Browser Use to explore sites), see the
64605
+ Parall Browser skill \u2014 it covers profile discovery, Desktop setup, and the
64606
+ \`browser.profile.authorize\` approval card.
64607
+
64608
+ ### Creating a connection (\`clip.connection.create\`)
64609
+
64610
+ After publishing and installing a clip, request a device connection:
64611
+
64612
+ \`\`\`bash
64613
+ parall approvals request \\
64614
+ --action clip.connection.create \\
64615
+ --resource prll://<crg_id> \\
64616
+ --title "Create connection for my-clip" \\
64617
+ --payload '{"device_id":"edg_xxx","alias":"desktop","is_default":true,"org_public":true}' \\
64618
+ --chat prll://<cht_id>
64619
+ \`\`\`
64620
+
64621
+ After approval, query the connection: \`parall clip connections <clipName>\`.
64622
+
64623
+ ### Requesting exec access (\`clip.exec_access.grant\`)
64624
+
64625
+ If you get \`CLIP_AGENT_NOT_ALLOWED\` when executing, request access:
64626
+
64627
+ \`\`\`bash
64628
+ parall approvals request \\
64629
+ --action clip.exec_access.grant \\
64630
+ --resource prll://<crg_id> \\
64631
+ --title "Request exec access for my-clip" \\
64632
+ --chat prll://<cht_id>
64633
+ \`\`\`
64634
+
64635
+ ### Full development loop
64636
+
64637
+ \`\`\`
64638
+ 1. Get Browser Use access (see Parall Browser skill for profile setup + approval)
64639
+ 2. Use Browser Use to explore the target site
64640
+ 3. Write clip code (manifest.json + JS files)
64641
+ 4. Publish: parall clip publish ./my-clip/
64642
+ 5. Install: parall clip install <clipName>
64643
+ 6. Request connection creation (approval card)
64644
+ 7. Request exec access if needed (approval card)
64645
+ 8. Test: parall clip exec <clipName> <command> '{"arg":"val"}' --connection <alias>
64646
+ \`\`\`
64578
64647
  `;
64579
64648
 
64580
64649
  // ts/agent-core/dist/skills/index.js
@@ -64921,21 +64990,20 @@ function extractTurnId(result) {
64921
64990
  return turn.id;
64922
64991
  return void 0;
64923
64992
  }
64924
- function extractThreadInfo(params) {
64925
- if (!params || typeof params !== "object")
64926
- return void 0;
64927
- const p = params;
64928
- const thread = p.thread && typeof p.thread === "object" ? p.thread : p;
64929
- const id = typeof thread.id === "string" ? thread.id : typeof p.threadId === "string" ? p.threadId : void 0;
64930
- if (!id)
64931
- return void 0;
64993
+ function extractSubagentIdentity(result) {
64994
+ const thread = result?.thread;
64995
+ if (!thread || typeof thread !== "object")
64996
+ return {};
64932
64997
  const str = (value) => typeof value === "string" && value.trim() ? value : void 0;
64998
+ const spawn2 = thread.source?.subAgent?.thread_spawn;
64999
+ const taskName = str(spawn2?.agent_path)?.split("/").filter(Boolean).at(-1);
65000
+ const parentThreadId = str(thread.parentThreadId) ?? str(spawn2?.parent_thread_id);
65001
+ const name = taskName ?? str(thread.agentNickname) ?? str(spawn2?.agent_nickname);
65002
+ const role = str(thread.agentRole) ?? str(spawn2?.agent_role);
64933
65003
  return {
64934
- id,
64935
- parentThreadId: str(thread.parentThreadId),
64936
- source: str(thread.threadSource) ?? str(thread.source),
64937
- nickname: str(thread.agentNickname),
64938
- role: str(thread.agentRole)
65004
+ ...parentThreadId ? { parentThreadId } : {},
65005
+ ...name ? { name } : {},
65006
+ ...role ? { role } : {}
64939
65007
  };
64940
65008
  }
64941
65009
  function extractThreadIdFromNotification(params) {
@@ -66631,11 +66699,18 @@ var CodexRuntimeTurn = class extends RuntimeTurnBase {
66631
66699
  this.sink = new TurnSink(() => this.touch());
66632
66700
  }
66633
66701
  async *drain() {
66702
+ const identity = await this.opts.identify();
66703
+ if (identity.parentThreadId)
66704
+ this.trigger.parentThreadId = identity.parentThreadId;
66705
+ if (identity.name)
66706
+ this.trigger.nickname = identity.name;
66707
+ if (identity.role)
66708
+ this.trigger.role = identity.role;
66634
66709
  yield {
66635
66710
  type: "runtime_session",
66636
66711
  runtimeSessionId: this.trigger.threadId,
66637
66712
  runtimeLaneKey: this.sessionKey,
66638
- ...this.opts.parentSessionKey ? { parentSessionKey: this.opts.parentSessionKey } : {}
66713
+ parentSessionKey: identity.parentSessionKey
66639
66714
  };
66640
66715
  let sawError = false;
66641
66716
  let sawOutcome = false;
@@ -66725,6 +66800,7 @@ function codexObservation(method, params) {
66725
66800
  }
66726
66801
 
66727
66802
  // ts/codex-agent/dist/foreign-threads.js
66803
+ var IDENTIFY_TIMEOUT_MS = 2e3;
66728
66804
  var ForeignThreadRegistry = class {
66729
66805
  host;
66730
66806
  threads = /* @__PURE__ */ new Map();
@@ -66747,16 +66823,8 @@ var ForeignThreadRegistry = class {
66747
66823
  * caller should keep treating the frame as unroutable.
66748
66824
  */
66749
66825
  route(method, params, threadId) {
66750
- if (method === "thread/started") {
66751
- if (this.host.sessionManager.getSessionKey(threadId) || this.threads.has(threadId)) {
66752
- return true;
66753
- }
66754
- const info = extractThreadInfo(params);
66755
- if (!info || info.source !== "subAgent")
66756
- return true;
66757
- this.register(info);
66826
+ if (method === "thread/started")
66758
66827
  return true;
66759
- }
66760
66828
  let thread = this.threads.get(threadId);
66761
66829
  if (method === "thread/closed" || method === "thread/archived" || method === "thread/deleted") {
66762
66830
  if (!thread)
@@ -66767,44 +66835,29 @@ var ForeignThreadRegistry = class {
66767
66835
  if (!thread) {
66768
66836
  if (this.host.sessionManager.getSessionKey(threadId))
66769
66837
  return false;
66770
- if (method !== "turn/started" && method !== "turn/completed" && !method.startsWith("item/")) {
66771
- return false;
66772
- }
66773
- thread = this.register({ id: threadId });
66774
- }
66775
- if (method === "turn/started") {
66776
- if (thread.turn)
66777
- thread.turn.touch();
66778
- else
66779
- this.openTurn(thread);
66780
- const observation2 = codexObservation(method, params);
66781
- if (observation2)
66782
- thread.turn?.sink.push({ kind: "runtime", event: observation2 });
66783
- return true;
66784
- }
66785
- const observation = codexObservation(method, params);
66786
- if (observation) {
66787
- if (thread.turn)
66788
- thread.turn.sink.push({ kind: "runtime", event: observation });
66789
- else
66790
- this.host.activity.emit({
66791
- kind: "observation",
66792
- sessionKey: thread.sessionKey,
66793
- event: observation
66794
- });
66838
+ if (!opensTurn(method))
66839
+ return true;
66840
+ thread = this.register(threadId);
66795
66841
  }
66796
66842
  if (!thread.turn) {
66797
- if (method !== "turn/completed" && !method.startsWith("item/"))
66843
+ if (!opensTurn(method))
66798
66844
  return true;
66799
66845
  this.openTurn(thread);
66800
66846
  }
66801
66847
  const turn = thread.turn;
66848
+ const observation = codexObservation(method, params);
66849
+ if (observation)
66850
+ turn.sink.push({ kind: "runtime", event: observation });
66851
+ if (method === "turn/started") {
66852
+ turn.touch();
66853
+ return true;
66854
+ }
66802
66855
  turn.sink.touchActivity();
66803
66856
  for (const event of turn.sink.mapper.map(method, params)) {
66804
66857
  turn.sink.push({ kind: "runtime", event });
66805
66858
  }
66806
66859
  if (method === "turn/completed") {
66807
- this.endTurn(thread, { kind: "turn_end", threadId });
66860
+ this.endTurn(thread, { kind: "turn_end", threadId }, "turn completed");
66808
66861
  this.host.log?.info?.(`runtime-initiated turn ${turn.groupKey} on subagent thread ${threadId} completed`);
66809
66862
  }
66810
66863
  return true;
@@ -66815,61 +66868,91 @@ var ForeignThreadRegistry = class {
66815
66868
  this.close(thread, reason);
66816
66869
  }
66817
66870
  }
66818
- register(info) {
66819
- const parentSessionKey = (info.parentThreadId ? this.threads.get(info.parentThreadId)?.sessionKey ?? this.host.sessionManager.getSessionKey(info.parentThreadId) : void 0) ?? this.host.sessionManager.mainSessionKey;
66871
+ register(threadId) {
66820
66872
  const thread = {
66821
- threadId: info.id,
66822
- sessionKey: `codex-sub:${info.id}`,
66823
- parentThreadId: info.parentThreadId,
66824
- parentSessionKey,
66825
- nickname: info.nickname,
66826
- role: info.role
66827
- };
66828
- this.threads.set(info.id, thread);
66829
- this.host.log?.info?.(`subagent thread ${info.id} registered (parent ${info.parentThreadId ?? "unknown"} \u2192 ${parentSessionKey}${info.nickname ? `, ${info.nickname}` : ""}${info.role ? ` / ${info.role}` : ""}); ${this.threads.size} live`);
66873
+ threadId,
66874
+ sessionKey: `codex-sub:${threadId}`,
66875
+ parentSessionKey: this.host.sessionManager.mainSessionKey,
66876
+ identified: Promise.resolve()
66877
+ };
66878
+ this.threads.set(threadId, thread);
66879
+ thread.identified = this.identify(thread);
66830
66880
  return thread;
66831
66881
  }
66882
+ /**
66883
+ * Parent and name from `thread/read`. A subagent may itself spawn
66884
+ * subagents: the parent resolves against the live foreign threads first,
66885
+ * then main / fork threads. A failed read (or an unknown parent) leaves the
66886
+ * thread under the main session, unnamed.
66887
+ */
66888
+ async identify(thread) {
66889
+ try {
66890
+ const client = this.host.client();
66891
+ if (!client || client.isDisposed())
66892
+ throw new Error("Codex app-server is not running");
66893
+ const result = await client.sendRequest(
66894
+ "thread/read",
66895
+ { threadId: thread.threadId },
66896
+ // A slow read must not kill the app-server under the main session.
66897
+ { timeoutMs: IDENTIFY_TIMEOUT_MS, lethalTimeout: false }
66898
+ );
66899
+ const identity = extractSubagentIdentity(result);
66900
+ thread.parentThreadId = identity.parentThreadId;
66901
+ thread.name = identity.name;
66902
+ thread.role = identity.role;
66903
+ const parentSessionKey = identity.parentThreadId ? this.threads.get(identity.parentThreadId)?.sessionKey ?? this.host.sessionManager.getSessionKey(identity.parentThreadId) : void 0;
66904
+ if (parentSessionKey)
66905
+ thread.parentSessionKey = parentSessionKey;
66906
+ } catch (err) {
66907
+ this.host.log?.warn?.(`subagent thread ${thread.threadId}: thread/read failed, keeping it under the main session: ${err instanceof Error ? err.message : String(err)}`);
66908
+ }
66909
+ this.host.log?.info?.(`subagent thread ${thread.threadId} registered (parent ${thread.parentThreadId ?? "unknown"} \u2192 ${thread.parentSessionKey}${thread.name ? `, ${thread.name}` : ""}${thread.role ? ` / ${thread.role}` : ""}); ${this.threads.size} live`);
66910
+ }
66832
66911
  openTurn(thread) {
66833
- const turn = new CodexRuntimeTurn(thread.sessionKey, {
66834
- kind: "subagent",
66835
- threadId: thread.threadId,
66836
- ...thread.parentThreadId ? { parentThreadId: thread.parentThreadId } : {},
66837
- ...thread.nickname ? { nickname: thread.nickname } : {},
66838
- ...thread.role ? { role: thread.role } : {}
66839
- }, {
66840
- parentSessionKey: thread.parentSessionKey,
66912
+ const turn = new CodexRuntimeTurn(thread.sessionKey, { kind: "subagent", threadId: thread.threadId }, {
66913
+ // The first turn's events wait (buffered) for the identity read.
66914
+ identify: () => thread.identified.then(() => ({
66915
+ parentSessionKey: thread.parentSessionKey,
66916
+ ...thread.parentThreadId ? { parentThreadId: thread.parentThreadId } : {},
66917
+ ...thread.name ? { name: thread.name } : {},
66918
+ ...thread.role ? { role: thread.role } : {}
66919
+ })),
66841
66920
  onDetach: (reason) => {
66842
66921
  if (thread.turn !== turn)
66843
66922
  return;
66844
- this.endTurn(thread, { kind: "error", message: `subagent turn detached: ${reason}` });
66923
+ this.endTurn(thread, { kind: "error", message: `subagent turn detached: ${reason}` }, `turn detached: ${reason}`);
66845
66924
  }
66846
66925
  });
66847
66926
  thread.turn = turn;
66848
66927
  this.host.log?.info?.(`runtime-initiated turn ${turn.groupKey} opened on subagent thread ${thread.threadId}`);
66849
66928
  this.host.activity.surfaceTurn(turn);
66850
66929
  }
66851
- /** The thread's open turn is over: last envelope, sink closed, restart re-driven. */
66852
- endTurn(thread, last) {
66930
+ /**
66931
+ * The thread's open turn is over: last envelope, sink closed, child
66932
+ * session closed (a later turn on the thread opens a new one), restart
66933
+ * re-driven. A thread with no open turn has no open session.
66934
+ */
66935
+ endTurn(thread, last, reason) {
66853
66936
  const turn = thread.turn;
66854
66937
  if (!turn)
66855
66938
  return;
66856
66939
  thread.turn = void 0;
66857
66940
  turn.sink.push(last);
66858
66941
  turn.sink.close();
66942
+ this.host.activity.emit({ kind: "session_closed", sessionKey: thread.sessionKey, reason });
66859
66943
  this.host.afterTurnClosed();
66860
66944
  }
66861
66945
  close(thread, reason) {
66862
66946
  if (this.threads.get(thread.threadId) !== thread)
66863
66947
  return;
66864
66948
  this.threads.delete(thread.threadId);
66865
- this.endTurn(thread, {
66866
- kind: "error",
66867
- message: `subagent thread ${thread.threadId} ${reason}`
66868
- });
66949
+ this.endTurn(thread, { kind: "error", message: `subagent thread ${thread.threadId} ${reason}` }, reason);
66869
66950
  this.host.log?.info?.(`subagent thread ${thread.threadId} ${reason}; ${this.threads.size} live`);
66870
- this.host.activity.emit({ kind: "session_closed", sessionKey: thread.sessionKey, reason });
66871
66951
  }
66872
66952
  };
66953
+ function opensTurn(method) {
66954
+ return method === "turn/started" || method === "turn/completed" || method.startsWith("item/");
66955
+ }
66873
66956
 
66874
66957
  // ts/codex-agent/dist/dispatch-notifications.js
66875
66958
  var CodexNotificationRouter = class {
@@ -67141,7 +67224,8 @@ var CodexAppServerAdapter = class {
67141
67224
  if (!this.restartRequested)
67142
67225
  return;
67143
67226
  void this.applyPendingRestart().catch((err) => this.opts.log?.warn?.(`deferred restart failed: ${errToString5(err)}`));
67144
- }
67227
+ },
67228
+ client: () => this.client
67145
67229
  });
67146
67230
  }
67147
67231
  /** Register a listener for every server notification; returns unregister. */
@@ -67733,8 +67817,8 @@ var CodexAppServerAdapter = class {
67733
67817
  const initialized2 = await client.sendRequest("initialize", {
67734
67818
  clientInfo: { name: "parall-codex-agent", version: "1" },
67735
67819
  // Required by thread/resume.excludeTurns and thread/fork.excludeTurns.
67736
- // The bridge sends no other experimental request fields. It does not
67737
- // consume thread status snapshots, so suppress them at the source.
67820
+ // The bridge sends no other experimental request fields. Thread status
67821
+ // snapshots are consumed as runtime observations (runtime-observations.ts).
67738
67822
  capabilities: {
67739
67823
  experimentalApi: true,
67740
67824
  optOutNotificationMethods: []
@@ -1083,6 +1083,7 @@ var init_constants = __esm({
1083
1083
  MESSAGE_REPLIES: (id) => `${API_BASE2}/messages/${id}/replies`,
1084
1084
  MESSAGE_WATCH: (id) => `${API_BASE2}/messages/${id}/watch`,
1085
1085
  MESSAGE_WATCHERS: (id) => `${API_BASE2}/messages/${id}/watchers`,
1086
+ MESSAGE_WATCHER: (id, userId) => `${API_BASE2}/messages/${id}/watchers/${userId}`,
1086
1087
  MESSAGE_WATCHING: (id) => `${API_BASE2}/messages/${id}/watching`,
1087
1088
  /** Caller's attention levels across chats / threads / tasks. */
1088
1089
  WATCHES: (orgId) => `${API_BASE2}/orgs/${orgId}/watches`,
@@ -1747,6 +1748,16 @@ var init_project_task_client = __esm({
1747
1748
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHERS(threadRootId));
1748
1749
  return res.data;
1749
1750
  }
1751
+ /**
1752
+ * Unwatch a thread for an agent: its manager, a chat owner/admin or an org
1753
+ * admin (403 otherwise). The agent ends up where its own `unwatchThread`
1754
+ * leaves it; for an agent that is not watching this is a no-op. It is
1755
+ * never done for a person (400 INVALID_TARGET), nor for anyone in a DM's
1756
+ * thread (400 DM_ALWAYS_DELIVERS).
1757
+ */
1758
+ async unwatchThreadMember(threadRootId, userId) {
1759
+ return this.request("DELETE", ENDPOINTS.MESSAGE_WATCHER(threadRootId, userId));
1760
+ }
1750
1761
  async isWatchingThread(threadRootId) {
1751
1762
  const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHING(threadRootId));
1752
1763
  return res.watching;
@@ -2122,12 +2133,13 @@ var init_mini_app_action_client = __esm({
2122
2133
  async getMiniAppActions(orgId, appId, v) {
2123
2134
  return this.request("GET", `${app(orgId, appId)}/actions`, void 0, { v });
2124
2135
  }
2125
- /** Runs one action. The server answers within its deadline plus the audit
2126
- * write; the default timeout leaves room for both. The Mini App host
2136
+ /** Runs one action. The server answers within its deadline (100 s for an
2137
+ * action that calls Clip) plus the audit write; the default timeout
2138
+ * leaves room for both. The Mini App host
2127
2139
  * passes its own (design §3.1: server < host < bridge), and a signal that
2128
2140
  * ends the whole call, a session refresh and a retry after 401 included. */
2129
2141
  async invokeMiniAppAction(orgId, appId, name, params, v, opts) {
2130
- return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 6e4, signal: opts?.signal });
2142
+ return this.request("POST", `${app(orgId, appId)}/actions/${encodeURIComponent(name)}`, { params: params ?? {} }, { v }, false, { timeoutMs: opts?.timeoutMs ?? 12e4, signal: opts?.signal });
2131
2143
  }
2132
2144
  /** Issues the ticket of one local run of an action (`parall app action
2133
2145
  * run --local`): takes app.publish on the app and db.data.write on its
@@ -2514,7 +2526,7 @@ var init_browser_profile_client = __esm({
2514
2526
 
2515
2527
  // ts/sdk/dist/wiki-draft-types.js
2516
2528
  function isWikiDraftSchemaVersion(value) {
2517
- return value === 1 || value === 2;
2529
+ return value === 1 || value === 2 || value === 3;
2518
2530
  }
2519
2531
  function wikiDraftErrorReason(error) {
2520
2532
  if (!error || typeof error !== "object")
@@ -2634,7 +2646,7 @@ var init_wiki_draft_types = __esm({
2634
2646
  "ts/sdk/dist/wiki-draft-types.js"() {
2635
2647
  "use strict";
2636
2648
  WIKI_DRAFT_PROTOCOL_VERSION = 1;
2637
- WIKI_DRAFT_SCHEMA_VERSION = 2;
2649
+ WIKI_DRAFT_SCHEMA_VERSION = 3;
2638
2650
  WIKI_DRAFT_LEGACY_SCHEMA_VERSION = 1;
2639
2651
  WIKI_DRAFT_SOCKET_SUBPROTOCOL = "parall.wiki.v1";
2640
2652
  WIKI_DRAFT_TICKET_SUBPROTOCOL_PREFIX = "ticket.";
@@ -2681,18 +2693,15 @@ var init_wiki_draft_types = __esm({
2681
2693
  /** DRAFT_VALIDATION closing every connection of a member whose input was refused several times. */
2682
2694
  refusedInput: "refused_input",
2683
2695
  /**
2684
- * DRAFT_VALIDATION refusing operations that met another member's change
2685
- * made at the same time (or an undo that did) in a shape the shared draft
2686
- * cannot hold (a text run or a text node without the other): the member
2687
- * did nothing wrong, and it does not count toward the refusals that close
2688
- * their connections. Typing into text another member moved, cut or linked
2689
- * is kept, not refused: the room gives it a text node of its own (rooms
2690
- * before that change refused it with this reason).
2696
+ * Reserved, no longer sent: schema 2 rooms refused operations that met
2697
+ * another member's change made at the same time in a shape the Lexical
2698
+ * node tree cannot hold. A schema 3 room never refuses honest concurrent
2699
+ * input. Kept so that the list only grows.
2691
2700
  */
2692
2701
  concurrentEdit: "concurrent_edit",
2693
2702
  /** DRAFT_BUSY: the room is preparing the draft from the formal version; retry shortly. */
2694
2703
  initializing: "initializing",
2695
- /** DRAFT_LIMIT: over the structure budget (tables, cells, shared roots, list items, nesting). */
2704
+ /** DRAFT_LIMIT: over the structure budget (blocks, list items, cells in one table and in all, nesting). */
2696
2705
  structure: "structure",
2697
2706
  /** DRAFT_LIMIT: the whole-document computation ran out of time twice. */
2698
2707
  time: "time",
@@ -5467,11 +5476,13 @@ var init_client = __esm({
5467
5476
  * `Retry-After` (no slot to wait for — retry re-resolves routing).
5468
5477
  *
5469
5478
  * NOT retryable:
5470
- * - `OUTCOME_UNKNOWN` 504 — dispatched, but no result arrived. The command
5479
+ * - `OUTCOME_UNKNOWN` 500 — dispatched, but no result arrived. The command
5471
5480
  * MAY HAVE EXECUTED (posted, ordered, deleted…). Never retry
5472
5481
  * automatically: verify the effect first, then decide. The message carries
5473
5482
  * the request id for audit.
5474
- * - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
5483
+ * - `EDGE_DEADLINE_EXCEEDED` 500 — the runtime hit the deadline. Refused on
5484
+ * arrival it did not run, but a hosted pod also reports it when it aborts a
5485
+ * running command or drains, so treat it like OUTCOME_UNKNOWN.
5475
5486
  * - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
5476
5487
  * `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
5477
5488
  * - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.73.0",
3
+ "version": "1.74.0",
4
4
  "description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  "@opentelemetry/api": "^1.9.0",
35
35
  "@pinixai/bb-browser-pro": "0.15.0",
36
36
  "ws": "^8.18.0",
37
- "@parall/sdk": "1.73.0",
38
- "@parall/codex-agent": "1.73.0",
39
- "@parall/claude-agent": "1.73.0",
40
- "@parall/agent-core": "1.73.0",
41
- "@parall/openclaw-agent": "1.73.0"
37
+ "@parall/agent-core": "1.74.0",
38
+ "@parall/sdk": "1.74.0",
39
+ "@parall/claude-agent": "1.74.0",
40
+ "@parall/codex-agent": "1.74.0",
41
+ "@parall/openclaw-agent": "1.74.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",