@parall/parall 1.50.0 → 1.51.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.
@@ -51289,18 +51289,15 @@ function laneContextFilePath(contextDir, targetUri, threadRootId) {
51289
51289
  return path.join(contextDir, `${laneKeyForTarget(targetUri, threadRootId)}.json`);
51290
51290
  }
51291
51291
 
51292
- // ../sdk/dist/types.js
51293
- var MENTION_ALL_USER_ID = "all";
51294
- var MENTION_ALL_HUMANS_USER_ID = "allhuman";
51295
- var MENTION_ALL_AGENTS_USER_ID = "allagent";
51296
- function mentionTargetsUser(mentionUserId, userId, userType) {
51297
- if (mentionUserId === userId || mentionUserId === MENTION_ALL_USER_ID)
51298
- return true;
51299
- if (mentionUserId === MENTION_ALL_HUMANS_USER_ID)
51300
- return userType === "human";
51301
- if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
51302
- return userType === "agent";
51303
- return false;
51292
+ // ../sdk/dist/browser-viewer.js
51293
+ var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
51294
+ function browserViewerRequestOptions(command, opts) {
51295
+ if (command !== "stream.answer" && command !== "stream.switch")
51296
+ return opts;
51297
+ return {
51298
+ ...opts,
51299
+ timeoutMs: Math.max(opts?.timeoutMs ?? 0, BROWSER_VIEWER_READINESS_TIMEOUT_MS)
51300
+ };
51304
51301
  }
51305
51302
 
51306
51303
  // ../sdk/dist/constants.js
@@ -51631,6 +51628,9 @@ var ENDPOINTS = {
51631
51628
  TEMPLATE: (orgId, templateId) => `${API_BASE}/orgs/${orgId}/templates/${templateId}`,
51632
51629
  TEMPLATE_DEPLOYMENTS: (orgId) => `${API_BASE}/orgs/${orgId}/template-deployments`,
51633
51630
  TEMPLATE_DEPLOYMENT: (orgId, deploymentId) => `${API_BASE}/orgs/${orgId}/template-deployments/${deploymentId}`,
51631
+ CLIP_DEPENDENCIES_CHECK: (orgId) => `${API_BASE}/orgs/${orgId}/clip-dependencies/check`,
51632
+ // Onboarding wizard progress (org-scoped, self)
51633
+ ONBOARDING_PROGRESS: (orgId) => `${API_BASE}/orgs/${orgId}/onboarding`,
51634
51634
  // Billing & Credits (org-scoped)
51635
51635
  BILLING: (orgId) => `${API_BASE}/orgs/${orgId}/billing`,
51636
51636
  BILLING_TRANSACTIONS: (orgId) => `${API_BASE}/orgs/${orgId}/billing/transactions`,
@@ -52185,8 +52185,10 @@ var ParallClient = class _ParallClient {
52185
52185
  q.limit = String(params.limit);
52186
52186
  return this.request("GET", ENDPOINTS.ORG_MEMBER_CHATS(orgId, memberId), void 0, q);
52187
52187
  }
52188
- // Pending tasks (todo + in_progress) assigned to a member. Powers both
52189
- // member profile Activity and the agent startup catch-up flow.
52188
+ // Pending tasks (todo + in_progress) assigned to a member. On-demand listing
52189
+ // (member profile Activity; agents via `parall tasks`) — startup catch-up
52190
+ // runs on dispatch redrive, not this endpoint. Self-assigned tasks appear
52191
+ // here without any dispatch WorkItem (self-assign is deliberately silent).
52190
52192
  async getMemberTasks(orgId, memberId, params) {
52191
52193
  const q = {};
52192
52194
  if (params?.cursor)
@@ -52528,7 +52530,12 @@ var ParallClient = class _ParallClient {
52528
52530
  async getAgentRuntimeRelease(orgId, agentId, tag) {
52529
52531
  return this.request("GET", ENDPOINTS.AGENT_RUNTIME_RELEASE(orgId, agentId, tag));
52530
52532
  }
52531
- /** Fetch all pending tasks (todo/in_progress) assigned to an agent. Pages automatically. */
52533
+ /**
52534
+ * Fetch all pending tasks (todo/in_progress) assigned to an agent. Pages
52535
+ * automatically. On-demand listing only — not a dispatch source: startup
52536
+ * catch-up runs on dispatch redrive, and self-assigned tasks listed here
52537
+ * deliberately have no WorkItem behind them.
52538
+ */
52532
52539
  async getAgentTasks(orgId, agentId) {
52533
52540
  const all = [];
52534
52541
  let cursor;
@@ -52732,11 +52739,7 @@ var ParallClient = class _ParallClient {
52732
52739
  async postBrowseResponse(requestId, response) {
52733
52740
  return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSE_RESPONSE(requestId), response);
52734
52741
  }
52735
- /**
52736
- * `POST /machines/me/browser-profiles/viewer-response/{requestId}` — daemon
52737
- * reply to a `machine.browser_profile.viewer` control command. Wakes the
52738
- * api-server request/reply bridge (mirrors {@link postBrowseResponse}).
52739
- */
52742
+ /** Reply to `machine.browser_profile.viewer` and wake its request/reply bridge. */
52740
52743
  async postBrowserProfileViewerResponse(requestId, response) {
52741
52744
  return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSER_PROFILE_VIEWER_RESPONSE(requestId), response);
52742
52745
  }
@@ -52746,7 +52749,7 @@ var ParallClient = class _ParallClient {
52746
52749
  * owner or org admin. api-server brokers the command to the host daemon.
52747
52750
  */
52748
52751
  async browserViewerCommand(orgId, profileId, req, opts) {
52749
- return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, opts);
52752
+ return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, browserViewerRequestOptions(req.command, opts));
52750
52753
  }
52751
52754
  /**
52752
52755
  * Drive the Cloud Edge live viewer (V1b, design §6): WebRTC signaling + input +
@@ -53534,6 +53537,19 @@ var ParallClient = class _ParallClient {
53534
53537
  async getTemplateDeployment(orgId, deploymentId) {
53535
53538
  return this.request("GET", ENDPOINTS.TEMPLATE_DEPLOYMENT(orgId, deploymentId));
53536
53539
  }
53540
+ /** Pre-deploy dependency connection state (wizard S3). Live answer, no
53541
+ * cache — poll it the way getTemplateDeployment is polled. */
53542
+ async checkClipDependencies(orgId, refs) {
53543
+ const response = await this.request("POST", ENDPOINTS.CLIP_DEPENDENCIES_CHECK(orgId), { refs });
53544
+ return response.results ?? [];
53545
+ }
53546
+ // ---- Onboarding wizard progress (org-scoped, self) ----
53547
+ async getOnboardingProgress(orgId) {
53548
+ return this.request("GET", ENDPOINTS.ONBOARDING_PROGRESS(orgId));
53549
+ }
53550
+ async updateOnboardingProgress(orgId, request3) {
53551
+ return this.request("PATCH", ENDPOINTS.ONBOARDING_PROGRESS(orgId), request3);
53552
+ }
53537
53553
  // ---- Billing & Credits (org-scoped) ----
53538
53554
  async getBilling(orgId) {
53539
53555
  return this.request("GET", ENDPOINTS.BILLING(orgId));
@@ -53930,6 +53946,20 @@ function buildApiError(res, rawErrorBody) {
53930
53946
  return apiError;
53931
53947
  }
53932
53948
 
53949
+ // ../sdk/dist/types.js
53950
+ var MENTION_ALL_USER_ID = "all";
53951
+ var MENTION_ALL_HUMANS_USER_ID = "allhuman";
53952
+ var MENTION_ALL_AGENTS_USER_ID = "allagent";
53953
+ function mentionTargetsUser(mentionUserId, userId, userType) {
53954
+ if (mentionUserId === userId || mentionUserId === MENTION_ALL_USER_ID)
53955
+ return true;
53956
+ if (mentionUserId === MENTION_ALL_HUMANS_USER_ID)
53957
+ return userType === "human";
53958
+ if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
53959
+ return userType === "agent";
53960
+ return false;
53961
+ }
53962
+
53933
53963
  // ../sdk/dist/ws.js
53934
53964
  function isRetryableNetworkError(err) {
53935
53965
  return err instanceof Error && err.name === "ApiError" && "status" in err && err.status === 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/parall",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "OpenClaw channel plugin for Parall IM",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  "openclaw.plugin.json"
17
17
  ],
18
18
  "dependencies": {
19
- "@parall/agent-core": "1.50.0",
20
- "@parall/sdk": "1.50.0"
19
+ "@parall/agent-core": "1.51.0",
20
+ "@parall/sdk": "1.51.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.0.0",