@parall/daemon 1.64.0 → 1.65.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.
@@ -148,6 +148,32 @@ var init_dispatch_adapter = __esm({
148
148
  }
149
149
  });
150
150
 
151
+ // ts/agent-core/dist/redact.js
152
+ function redactSecrets(s, knownValues = []) {
153
+ return maskKnownValues(s, knownValues).replace(/\b(agk|mck|cpk)_[A-Za-z0-9_-]+/g, "$1_***").replace(/\b(sk|pk|rk)-[A-Za-z0-9_-]{8,}/g, "$1-***").replace(/\bAKIA[0-9A-Z]{16}\b/g, "AKIA***").replace(/\b((?:bearer|basic)\s+)[A-Za-z0-9._~+/=-]+/gi, "$1***").replace(/(\b(?:[\w-]*[_-])?(?:api[_-]?key|key|token|secret|password|passwd|authorization)["']?\s*[=:]\s*)(?:"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'|[^\s&;,}\]"']+)/gi, "$1***").replace(/[A-Za-z0-9_-]{32,}/g, "***");
154
+ }
155
+ function maskKnownValues(s, knownValues) {
156
+ let out = s;
157
+ for (const v of knownValues) {
158
+ if (typeof v === "string" && v.length >= 6)
159
+ out = out.split(v).join("***");
160
+ }
161
+ return out;
162
+ }
163
+ var init_redact = __esm({
164
+ "ts/agent-core/dist/redact.js"() {
165
+ "use strict";
166
+ }
167
+ });
168
+
169
+ // ts/agent-core/dist/runtime-observation.js
170
+ var init_runtime_observation = __esm({
171
+ "ts/agent-core/dist/runtime-observation.js"() {
172
+ "use strict";
173
+ init_redact();
174
+ }
175
+ });
176
+
151
177
  // ts/agent-core/dist/fork-prefix.js
152
178
  var init_fork_prefix = __esm({
153
179
  "ts/agent-core/dist/fork-prefix.js"() {
@@ -155,6 +181,15 @@ var init_fork_prefix = __esm({
155
181
  }
156
182
  });
157
183
 
184
+ // ts/agent-core/dist/gateway-runtime-step.js
185
+ var init_gateway_runtime_step = __esm({
186
+ "ts/agent-core/dist/gateway-runtime-step.js"() {
187
+ "use strict";
188
+ init_dispatch_adapter();
189
+ init_runtime_observation();
190
+ }
191
+ });
192
+
158
193
  // ts/agent-core/dist/dispatch-recovery.js
159
194
  var init_dispatch_recovery = __esm({
160
195
  "ts/agent-core/dist/dispatch-recovery.js"() {
@@ -219,6 +254,25 @@ var init_channel_types = __esm({
219
254
  }
220
255
  });
221
256
 
257
+ // ts/sdk/dist/slack-endpoints.js
258
+ function slackEndpoints(apiBase) {
259
+ return {
260
+ SLACK_CHANNELS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/channels`,
261
+ SLACK_USERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/users`,
262
+ SLACK_REPLIES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/replies`,
263
+ SLACK_HISTORY: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/history`,
264
+ SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
265
+ SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
266
+ SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
267
+ SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
268
+ };
269
+ }
270
+ var init_slack_endpoints = __esm({
271
+ "ts/sdk/dist/slack-endpoints.js"() {
272
+ "use strict";
273
+ }
274
+ });
275
+
222
276
  // ts/sdk/dist/clip-connection-endpoints.js
223
277
  var clipConnectionEndpoints;
224
278
  var init_clip_connection_endpoints = __esm({
@@ -336,6 +390,7 @@ var API_BASE2, WIKI_BASE, CLIP_BASE, PLATFORM_MODELS, PLATFORM_LEGACY_MODELS, PL
336
390
  var init_constants = __esm({
337
391
  "ts/sdk/dist/constants.js"() {
338
392
  "use strict";
393
+ init_slack_endpoints();
339
394
  init_clip_connection_endpoints();
340
395
  init_attachment_endpoints();
341
396
  init_edge_endpoints();
@@ -894,13 +949,7 @@ var init_constants = __esm({
894
949
  // Tier-B platform verb (agent-only): send one message as the bound bot.
895
950
  CHANNEL_SEND: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/channel-send`,
896
951
  // Tier-B read verbs (agent-only): workspace visibility as the bot sees it.
897
- SLACK_CHANNELS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/channels`,
898
- SLACK_USERS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/users`,
899
- SLACK_HISTORY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/history`,
900
- SLACK_MEMBERS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/members`,
901
- SLACK_STATUS: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/status`,
902
- SLACK_FILE: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/file`,
903
- SLACK_FILES: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/slack/files`,
952
+ ...slackEndpoints(API_BASE2),
904
953
  // WeChat tier-B read verbs (agent-only; internal research preview).
905
954
  ...wechatEndpoints(API_BASE2),
906
955
  // Invitations (org-scoped, admin)
@@ -1645,14 +1694,16 @@ var init_slack_files_client = __esm({
1645
1694
  }
1646
1695
  /**
1647
1696
  * Tier-B file upload verb (agent-only): share a file into a Slack
1648
- * conversation this connection has seen inbound, with the same
1649
- * reply-anchor contract as the text send.
1697
+ * conversation or thread with the same addressing as text sends.
1698
+ * Native threadTs requires a server supporting Slack thread sends.
1650
1699
  */
1651
1700
  async sendSlackFile(orgId, input) {
1652
1701
  const fd = new FormData();
1653
1702
  fd.append("conversation_id", input.conversationId);
1654
1703
  if (input.replyTo)
1655
1704
  fd.append("reply_to", input.replyTo);
1705
+ if (input.threadTs)
1706
+ fd.append("thread_ts", input.threadTs);
1656
1707
  if (input.text)
1657
1708
  fd.append("text", input.text);
1658
1709
  fd.append("file", input.content, input.fileName);
@@ -1662,14 +1713,62 @@ var init_slack_files_client = __esm({
1662
1713
  }
1663
1714
  });
1664
1715
 
1716
+ // ts/sdk/dist/slack-read-client.js
1717
+ var SlackReadClient;
1718
+ var init_slack_read_client = __esm({
1719
+ "ts/sdk/dist/slack-read-client.js"() {
1720
+ "use strict";
1721
+ init_constants();
1722
+ init_slack_files_client();
1723
+ SlackReadClient = class extends SlackFilesClient {
1724
+ slackReadQuery(base, query, extra) {
1725
+ const params = new URLSearchParams();
1726
+ if (query?.cursor)
1727
+ params.set("cursor", query.cursor);
1728
+ if (query?.limit)
1729
+ params.set("limit", String(query.limit));
1730
+ for (const [k, v] of Object.entries(extra ?? {}))
1731
+ params.set(k, v);
1732
+ const qs = params.toString();
1733
+ return qs ? `${base}?${qs}` : base;
1734
+ }
1735
+ /**
1736
+ * Tier-B read verbs (agent-only): workspace visibility as the bot sees
1737
+ * it. Same live gate as the send verb; authorization beyond it is the
1738
+ * bot's own Slack permissions.
1739
+ */
1740
+ async listSlackChannels(orgId, query) {
1741
+ return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_CHANNELS(orgId), query));
1742
+ }
1743
+ async listSlackUsers(orgId, query) {
1744
+ return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_USERS(orgId), query));
1745
+ }
1746
+ async slackHistory(orgId, conversationId, query) {
1747
+ return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_HISTORY(orgId), query, { conversation: conversationId }));
1748
+ }
1749
+ /** Read a Slack thread (parent and replies), one page in Slack order. */
1750
+ async slackReplies(orgId, channel, ts, query) {
1751
+ return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_REPLIES(orgId), query, { channel, ts }));
1752
+ }
1753
+ async slackMembers(orgId, conversationId, query) {
1754
+ return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_MEMBERS(orgId), query, { conversation: conversationId }));
1755
+ }
1756
+ /** Set/clear the Agents-pane "typing…" indicator (best-effort cosmetic). */
1757
+ async setSlackStatus(orgId, input) {
1758
+ await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
1759
+ }
1760
+ };
1761
+ }
1762
+ });
1763
+
1665
1764
  // ts/sdk/dist/channel-conversation-client.js
1666
1765
  var ChannelConversationClient;
1667
1766
  var init_channel_conversation_client = __esm({
1668
1767
  "ts/sdk/dist/channel-conversation-client.js"() {
1669
1768
  "use strict";
1670
1769
  init_constants();
1671
- init_slack_files_client();
1672
- ChannelConversationClient = class extends SlackFilesClient {
1770
+ init_slack_read_client();
1771
+ ChannelConversationClient = class extends SlackReadClient {
1673
1772
  /**
1674
1773
  * Org-admin write of what the agent receives from a group root
1675
1774
  * (`PATCH …/channel-conversations/{id}/attention`); the agent's own path
@@ -3417,38 +3516,6 @@ var init_client = __esm({
3417
3516
  async sendChannelMessage(orgId, input) {
3418
3517
  return this.request("POST", ENDPOINTS.CHANNEL_SEND(orgId), input);
3419
3518
  }
3420
- slackReadQuery(base, query, extra) {
3421
- const params = new URLSearchParams();
3422
- if (query?.cursor)
3423
- params.set("cursor", query.cursor);
3424
- if (query?.limit)
3425
- params.set("limit", String(query.limit));
3426
- for (const [k, v] of Object.entries(extra ?? {}))
3427
- params.set(k, v);
3428
- const qs = params.toString();
3429
- return qs ? `${base}?${qs}` : base;
3430
- }
3431
- /**
3432
- * Tier-B read verbs (agent-only): workspace visibility as the bot sees
3433
- * it. Same live gate as the send verb; authorization beyond it is the
3434
- * bot's own Slack permissions.
3435
- */
3436
- async listSlackChannels(orgId, query) {
3437
- return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_CHANNELS(orgId), query));
3438
- }
3439
- async listSlackUsers(orgId, query) {
3440
- return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_USERS(orgId), query));
3441
- }
3442
- async slackHistory(orgId, conversationId, query) {
3443
- return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_HISTORY(orgId), query, { conversation: conversationId }));
3444
- }
3445
- async slackMembers(orgId, conversationId, query) {
3446
- return this.request("GET", this.slackReadQuery(ENDPOINTS.SLACK_MEMBERS(orgId), query, { conversation: conversationId }));
3447
- }
3448
- /** Set/clear the Agents-pane "typing…" indicator (best-effort cosmetic). */
3449
- async setSlackStatus(orgId, input) {
3450
- await this.request("POST", ENDPOINTS.SLACK_STATUS(orgId), input);
3451
- }
3452
3519
  /**
3453
3520
  * Authorized raw GET (binary responses) with the same auth, 401
3454
3521
  * refresh-and-retry-once, and error-envelope handling as `request` — the
@@ -4744,6 +4811,38 @@ var init_types = __esm({
4744
4811
  }
4745
4812
  });
4746
4813
 
4814
+ // ts/sdk/dist/runtime-observation.js
4815
+ var RUNTIME_OBSERVATION_EVENTS, RUNTIME_OBSERVATION_STATUSES;
4816
+ var init_runtime_observation2 = __esm({
4817
+ "ts/sdk/dist/runtime-observation.js"() {
4818
+ "use strict";
4819
+ RUNTIME_OBSERVATION_EVENTS = [
4820
+ "turn_started",
4821
+ "turn_completed",
4822
+ "thread_status",
4823
+ "hook_started",
4824
+ "hook_completed",
4825
+ "session_initialized",
4826
+ "request_completed",
4827
+ "session_status"
4828
+ ];
4829
+ RUNTIME_OBSERVATION_STATUSES = [
4830
+ "running",
4831
+ "completed",
4832
+ "failed",
4833
+ "blocked",
4834
+ "stopped",
4835
+ "interrupted",
4836
+ "idle",
4837
+ "not_loaded",
4838
+ "system_error",
4839
+ "initialized",
4840
+ "compacting",
4841
+ "unknown"
4842
+ ];
4843
+ }
4844
+ });
4845
+
4747
4846
  // ts/sdk/dist/wechat-types.js
4748
4847
  var init_wechat_types = __esm({
4749
4848
  "ts/sdk/dist/wechat-types.js"() {
@@ -5512,6 +5611,8 @@ __export(dist_exports, {
5512
5611
  PLATFORM_MODELS: () => PLATFORM_MODELS,
5513
5612
  ParallClient: () => ParallClient,
5514
5613
  ParallWs: () => ParallWs,
5614
+ RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
5615
+ RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
5515
5616
  WIKI_BASE: () => WIKI_BASE,
5516
5617
  WS_EVENTS: () => WS_EVENTS,
5517
5618
  authRejectionFrom: () => authRejectionFrom,
@@ -5554,6 +5655,7 @@ var init_dist = __esm({
5554
5655
  init_subject();
5555
5656
  init_task_label_types();
5556
5657
  init_types();
5658
+ init_runtime_observation2();
5557
5659
  init_wechat_types();
5558
5660
  init_ws();
5559
5661
  init_browser_use_validation();
@@ -5569,21 +5671,11 @@ var init_fork_state = __esm({
5569
5671
  }
5570
5672
  });
5571
5673
 
5572
- // ts/agent-core/dist/redact.js
5573
- function redactSecrets(s, knownValues = []) {
5574
- return maskKnownValues(s, knownValues).replace(/\b(agk|mck|cpk)_[A-Za-z0-9_-]+/g, "$1_***").replace(/\b(sk|pk|rk)-[A-Za-z0-9_-]{8,}/g, "$1-***").replace(/\bAKIA[0-9A-Z]{16}\b/g, "AKIA***").replace(/\b((?:bearer|basic)\s+)[A-Za-z0-9._~+/=-]+/gi, "$1***").replace(/(\b(?:[\w-]*[_-])?(?:api[_-]?key|key|token|secret|password|passwd|authorization)["']?\s*[=:]\s*)(?:"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'|[^\s&;,}\]"']+)/gi, "$1***").replace(/[A-Za-z0-9_-]{32,}/g, "***");
5575
- }
5576
- function maskKnownValues(s, knownValues) {
5577
- let out = s;
5578
- for (const v of knownValues) {
5579
- if (typeof v === "string" && v.length >= 6)
5580
- out = out.split(v).join("***");
5581
- }
5582
- return out;
5583
- }
5584
- var init_redact = __esm({
5585
- "ts/agent-core/dist/redact.js"() {
5674
+ // ts/agent-core/dist/gateway-steer.js
5675
+ var init_gateway_steer = __esm({
5676
+ "ts/agent-core/dist/gateway-steer.js"() {
5586
5677
  "use strict";
5678
+ init_fork_prefix();
5587
5679
  }
5588
5680
  });
5589
5681
 
@@ -32737,9 +32829,11 @@ var init_gateway_lane_flow = __esm({
32737
32829
  init_dist();
32738
32830
  init_change_source();
32739
32831
  init_fork_prefix();
32832
+ init_gateway_steer();
32740
32833
  init_lane_ledger();
32741
32834
  init_lane_target();
32742
32835
  init_telemetry();
32836
+ init_gateway_steer();
32743
32837
  TYPED_BACKOFF_CAP_MS = 5 * 6e4;
32744
32838
  }
32745
32839
  });
@@ -32758,6 +32852,7 @@ var init_gateway_runtime_turns = __esm({
32758
32852
  init_dispatch_adapter();
32759
32853
  init_redact();
32760
32854
  init_telemetry();
32855
+ init_runtime_observation();
32761
32856
  }
32762
32857
  });
32763
32858
 
@@ -32838,11 +32933,11 @@ var AUTH_INVALID_EXIT_CODE;
32838
32933
  var init_gateway_base = __esm({
32839
32934
  "ts/agent-core/dist/gateway-base.js"() {
32840
32935
  "use strict";
32936
+ init_gateway_runtime_step();
32841
32937
  init_dispatch_recovery();
32842
32938
  init_change_source();
32843
32939
  init_dist();
32844
32940
  init_fork_prefix();
32845
- init_dispatch_adapter();
32846
32941
  init_fork_state();
32847
32942
  init_gateway_lane_flow();
32848
32943
  init_gateway_idle_compact();
@@ -32861,6 +32956,7 @@ var init_gateway_base = __esm({
32861
32956
  init_session_state();
32862
32957
  init_bridge_workspace();
32863
32958
  init_telemetry();
32959
+ init_gateway_steer();
32864
32960
  AUTH_INVALID_EXIT_CODE = 86;
32865
32961
  }
32866
32962
  });
@@ -58637,6 +58733,7 @@ var init_dist2 = __esm({
58637
58733
  init_channel_capability();
58638
58734
  init_channel_token();
58639
58735
  init_dispatch_adapter();
58736
+ init_runtime_observation();
58640
58737
  init_fork_prefix();
58641
58738
  init_gateway_base();
58642
58739
  init_gateway_idle_compact();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.64.0",
3
+ "version": "1.65.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.64.0",
38
- "@parall/claude-agent": "1.64.0",
39
- "@parall/codex-agent": "1.64.0",
40
- "@parall/openclaw-agent": "1.64.0",
41
- "@parall/agent-core": "1.64.0"
37
+ "@parall/sdk": "1.65.0",
38
+ "@parall/claude-agent": "1.65.0",
39
+ "@parall/codex-agent": "1.65.0",
40
+ "@parall/openclaw-agent": "1.65.0",
41
+ "@parall/agent-core": "1.65.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",