@parall/daemon 1.85.0 → 1.86.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.
@@ -520,6 +520,118 @@ var init_chat_team_grant_types = __esm({
520
520
  }
521
521
  });
522
522
 
523
+ // ts/sdk/dist/wiki-upload.js
524
+ function createWikiUploadFormData(params) {
525
+ const form = new FormData();
526
+ form.append("path", params.path);
527
+ form.append("file", params.file);
528
+ if (params.message)
529
+ form.append("message", params.message);
530
+ if (params.uploadId)
531
+ form.append("upload_id", params.uploadId);
532
+ if (params.conflict)
533
+ form.append("conflict", params.conflict);
534
+ if ("contentRoute" in params && params.contentRoute) {
535
+ form.append("content_route", params.contentRoute);
536
+ }
537
+ return form;
538
+ }
539
+ function sendMultipartRequest(options) {
540
+ if (options.onProgress && typeof XMLHttpRequest !== "undefined") {
541
+ return multipartXHR(options, options.onProgress);
542
+ }
543
+ const timeoutSignal = AbortSignal.timeout(options.timeoutMs);
544
+ const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;
545
+ return fetch(options.url, {
546
+ method: options.method,
547
+ headers: options.headers,
548
+ body: options.body,
549
+ signal
550
+ });
551
+ }
552
+ function multipartXHR(options, onProgress) {
553
+ return new Promise((resolve9, reject) => {
554
+ const xhr = new XMLHttpRequest();
555
+ let settled = false;
556
+ const finish = (fn) => {
557
+ if (settled)
558
+ return;
559
+ settled = true;
560
+ options.signal?.removeEventListener("abort", abortFromSignal);
561
+ fn();
562
+ };
563
+ const abortFromSignal = () => xhr.abort();
564
+ xhr.open(options.method, options.url, true);
565
+ xhr.timeout = options.timeoutMs;
566
+ for (const [name, value] of Object.entries(options.headers)) {
567
+ xhr.setRequestHeader(name, value);
568
+ }
569
+ xhr.upload.onprogress = (event) => {
570
+ try {
571
+ onProgress(event.loaded, event.lengthComputable ? event.total : 0);
572
+ } catch {
573
+ }
574
+ };
575
+ xhr.onload = () => finish(() => {
576
+ const responseHeaders = new Headers();
577
+ for (const line of xhr.getAllResponseHeaders().trim().split(/[\r\n]+/)) {
578
+ if (!line)
579
+ continue;
580
+ const separator = line.indexOf(":");
581
+ if (separator > 0) {
582
+ responseHeaders.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());
583
+ }
584
+ }
585
+ const responseBody = xhr.status === 204 || xhr.responseText === "" ? null : xhr.responseText;
586
+ resolve9(new Response(responseBody, {
587
+ status: xhr.status,
588
+ statusText: xhr.statusText,
589
+ headers: responseHeaders
590
+ }));
591
+ });
592
+ xhr.onerror = () => finish(() => reject(new TypeError("Network request failed")));
593
+ xhr.ontimeout = () => finish(() => reject(new DOMException("Request timed out", "TimeoutError")));
594
+ xhr.onabort = () => finish(() => reject(new DOMException("Request aborted", "AbortError")));
595
+ if (options.signal?.aborted) {
596
+ finish(() => reject(new DOMException("Request aborted", "AbortError")));
597
+ return;
598
+ }
599
+ options.signal?.addEventListener("abort", abortFromSignal, { once: true });
600
+ xhr.send(options.body);
601
+ });
602
+ }
603
+ var init_wiki_upload = __esm({
604
+ "ts/sdk/dist/wiki-upload.js"() {
605
+ "use strict";
606
+ }
607
+ });
608
+
609
+ // ts/sdk/dist/fetch-cause.js
610
+ function describeFetchCause(err) {
611
+ const inner = err?.cause;
612
+ for (const candidate of [inner, err]) {
613
+ if (!(candidate instanceof Error))
614
+ continue;
615
+ const code = candidate.code;
616
+ const parts = [];
617
+ if (typeof code === "string" && code && !candidate.message.includes(code))
618
+ parts.push(code);
619
+ if (candidate.message && !GENERIC_FETCH_MESSAGES.has(candidate.message)) {
620
+ parts.push(candidate.message);
621
+ }
622
+ if (parts.length > 0)
623
+ return parts.join(" ");
624
+ }
625
+ return void 0;
626
+ }
627
+ var GENERIC_FETCH_MESSAGES;
628
+ var init_fetch_cause = __esm({
629
+ "ts/sdk/dist/fetch-cause.js"() {
630
+ "use strict";
631
+ GENERIC_FETCH_MESSAGES = /* @__PURE__ */ new Set(["Failed to fetch", "fetch failed"]);
632
+ }
633
+ });
634
+
523
635
  // ts/sdk/dist/app-template-endpoints.js
524
636
  function appTemplateEndpoints(apiBase) {
525
637
  return {
@@ -620,6 +732,26 @@ var init_chat_team_grant_endpoints = __esm({
620
732
  }
621
733
  });
622
734
 
735
+ // ts/sdk/dist/team-invite-endpoints.js
736
+ function teamInviteEndpoints(apiBase) {
737
+ const seg = encodeURIComponent;
738
+ return {
739
+ TEMPLATE_INVITE_LINK: (orgId, templateId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link`,
740
+ TEMPLATE_INVITE_REQUESTS: (orgId, templateId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests`,
741
+ TEMPLATE_INVITE_REQUEST_DECIDE: (orgId, templateId, requestId) => `${apiBase}/orgs/${seg(orgId)}/templates/${seg(templateId)}/invite-link/requests/${seg(requestId)}/decide`,
742
+ TEAM_INVITE: (token) => `${apiBase}/team-invites/${seg(token)}`,
743
+ TEAM_INVITE_REQUESTS: (token) => `${apiBase}/team-invites/${seg(token)}/requests`,
744
+ TEAM_INVITE_REQUEST_MINE: (token) => `${apiBase}/team-invites/${seg(token)}/requests/mine`,
745
+ TEAM_INVITE_REQUEST_CANCEL: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/cancel`,
746
+ TEAM_INVITE_REQUEST_RETRY: (requestId) => `${apiBase}/team-invite-requests/${seg(requestId)}/retry`
747
+ };
748
+ }
749
+ var init_team_invite_endpoints = __esm({
750
+ "ts/sdk/dist/team-invite-endpoints.js"() {
751
+ "use strict";
752
+ }
753
+ });
754
+
623
755
  // ts/sdk/dist/wechat-endpoints.js
624
756
  function wechatEndpoints(apiBase) {
625
757
  const agentBase = (orgId) => `${apiBase}/orgs/${orgId}/agents/me/wechat`;
@@ -669,8 +801,12 @@ var init_billing_endpoints = __esm({
669
801
  function teamEndpoints(apiBase) {
670
802
  return {
671
803
  TEAMS: (orgId) => `${apiBase}/orgs/${orgId}/teams`,
804
+ /** The whole team tree in one read (team-chart-design.md §5). */
805
+ TEAM_GRAPH: (orgId) => `${apiBase}/orgs/${orgId}/team-graph`,
672
806
  TEAM: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}`,
673
807
  TEAM_PARENT: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/parent`,
808
+ /** What moving a team would change (team-chart-design.md §7). */
809
+ TEAM_PARENT_PREVIEW: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/parent/preview`,
674
810
  TEAM_MEMBERS: (orgId, teamId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/members`,
675
811
  TEAM_MEMBER: (orgId, teamId, userId) => `${apiBase}/orgs/${orgId}/teams/${teamId}/members/${userId}`,
676
812
  /** An agent's owning Team (agent-team-attribution-design.md §5.4). */
@@ -738,6 +874,7 @@ var init_constants = __esm({
738
874
  init_edge_endpoints();
739
875
  init_slack_endpoints();
740
876
  init_chat_team_grant_endpoints();
877
+ init_team_invite_endpoints();
741
878
  init_wechat_endpoints();
742
879
  init_billing_endpoints();
743
880
  init_team_endpoints();
@@ -1503,6 +1640,8 @@ var init_constants = __esm({
1503
1640
  TEMPLATE: (orgId, templateId) => `${API_BASE2}/orgs/${orgId}/templates/${templateId}`,
1504
1641
  TEMPLATE_DEPLOYMENTS: (orgId) => `${API_BASE2}/orgs/${orgId}/template-deployments`,
1505
1642
  TEMPLATE_DEPLOYMENT: (orgId, deploymentId) => `${API_BASE2}/orgs/${orgId}/template-deployments/${deploymentId}`,
1643
+ // Team launch / team invite links (public preview + signed-in requests)
1644
+ ...teamInviteEndpoints(API_BASE2),
1506
1645
  CLIP_DEPENDENCIES_CHECK: (orgId) => `${API_BASE2}/orgs/${orgId}/clip-dependencies/check`,
1507
1646
  // Onboarding wizard progress (org-scoped, self)
1508
1647
  ONBOARDING_PROGRESS: (orgId) => `${API_BASE2}/orgs/${orgId}/onboarding`,
@@ -3149,14 +3288,43 @@ var init_agent_owning_team_client = __esm({
3149
3288
  }
3150
3289
  });
3151
3290
 
3291
+ // ts/sdk/dist/team-graph-client.js
3292
+ var TeamGraphClient;
3293
+ var init_team_graph_client = __esm({
3294
+ "ts/sdk/dist/team-graph-client.js"() {
3295
+ "use strict";
3296
+ init_agent_owning_team_client();
3297
+ init_constants();
3298
+ TeamGraphClient = class extends AgentOwningTeamClient {
3299
+ async getTeamGraph(orgId, opts) {
3300
+ const query = opts?.includeAccess ? "?include=access" : "";
3301
+ return this.request("GET", `${ENDPOINTS.TEAM_GRAPH(orgId)}${query}`);
3302
+ }
3303
+ /**
3304
+ * Who would come to see more or less through teams if the team moved under
3305
+ * `parentTeamId`, or to the top level with null, without moving it
3306
+ * (team-chart-design.md §7). Org owners and admins only. Refuses what the move
3307
+ * would refuse, with the same codes. 503 when it cannot compute the whole answer
3308
+ * (`TEAM_MOVE_PREVIEW_WIKI_UNAVAILABLE`, `TEAM_MOVE_PREVIEW_TIMEOUT`,
3309
+ * `TEAM_MOVE_PREVIEW_TOO_LARGE`). Send `tree_revision` back on `setTeamParent`.
3310
+ */
3311
+ async previewTeamMove(orgId, teamId, parentTeamId) {
3312
+ return this.request("POST", ENDPOINTS.TEAM_PARENT_PREVIEW(orgId, teamId), {
3313
+ parent_team_id: parentTeamId
3314
+ });
3315
+ }
3316
+ };
3317
+ }
3318
+ });
3319
+
3152
3320
  // ts/sdk/dist/billing-client.js
3153
3321
  var BillingClient;
3154
3322
  var init_billing_client = __esm({
3155
3323
  "ts/sdk/dist/billing-client.js"() {
3156
3324
  "use strict";
3157
- init_agent_owning_team_client();
3158
3325
  init_constants();
3159
- BillingClient = class extends AgentOwningTeamClient {
3326
+ init_team_graph_client();
3327
+ BillingClient = class extends TeamGraphClient {
3160
3328
  // ---- Billing & Credits (org-scoped) ----
3161
3329
  //
3162
3330
  // Every account method takes an optional trailing accountId: omitted, it
@@ -3280,115 +3448,73 @@ var init_billing_client = __esm({
3280
3448
  }
3281
3449
  });
3282
3450
 
3283
- // ts/sdk/dist/wiki-upload.js
3284
- function createWikiUploadFormData(params) {
3285
- const form = new FormData();
3286
- form.append("path", params.path);
3287
- form.append("file", params.file);
3288
- if (params.message)
3289
- form.append("message", params.message);
3290
- if (params.uploadId)
3291
- form.append("upload_id", params.uploadId);
3292
- if (params.conflict)
3293
- form.append("conflict", params.conflict);
3294
- if ("contentRoute" in params && params.contentRoute) {
3295
- form.append("content_route", params.contentRoute);
3296
- }
3297
- return form;
3451
+ // ts/sdk/dist/team-invite-client.js
3452
+ function errorCode(err) {
3453
+ return typeof err === "object" && err !== null ? err.code : void 0;
3298
3454
  }
3299
- function sendMultipartRequest(options) {
3300
- if (options.onProgress && typeof XMLHttpRequest !== "undefined") {
3301
- return multipartXHR(options, options.onProgress);
3302
- }
3303
- const timeoutSignal = AbortSignal.timeout(options.timeoutMs);
3304
- const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;
3305
- return fetch(options.url, {
3306
- method: options.method,
3307
- headers: options.headers,
3308
- body: options.body,
3309
- signal
3310
- });
3311
- }
3312
- function multipartXHR(options, onProgress) {
3313
- return new Promise((resolve9, reject) => {
3314
- const xhr = new XMLHttpRequest();
3315
- let settled = false;
3316
- const finish = (fn) => {
3317
- if (settled)
3318
- return;
3319
- settled = true;
3320
- options.signal?.removeEventListener("abort", abortFromSignal);
3321
- fn();
3322
- };
3323
- const abortFromSignal = () => xhr.abort();
3324
- xhr.open(options.method, options.url, true);
3325
- xhr.timeout = options.timeoutMs;
3326
- for (const [name, value] of Object.entries(options.headers)) {
3327
- xhr.setRequestHeader(name, value);
3328
- }
3329
- xhr.upload.onprogress = (event) => {
3330
- try {
3331
- onProgress(event.loaded, event.lengthComputable ? event.total : 0);
3332
- } catch {
3333
- }
3334
- };
3335
- xhr.onload = () => finish(() => {
3336
- const responseHeaders = new Headers();
3337
- for (const line of xhr.getAllResponseHeaders().trim().split(/[\r\n]+/)) {
3338
- if (!line)
3339
- continue;
3340
- const separator = line.indexOf(":");
3341
- if (separator > 0) {
3342
- responseHeaders.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());
3455
+ var TeamInviteClient;
3456
+ var init_team_invite_client = __esm({
3457
+ "ts/sdk/dist/team-invite-client.js"() {
3458
+ "use strict";
3459
+ init_billing_client();
3460
+ init_constants();
3461
+ TeamInviteClient = class extends BillingClient {
3462
+ /** Org owner/admin: the template's current launch link, or null while it
3463
+ * has none (`TEAM_INVITE_LINK_NOT_FOUND`). Never creates one. */
3464
+ async getTemplateInviteLink(orgId, templateId) {
3465
+ try {
3466
+ return await this.request("GET", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId));
3467
+ } catch (err) {
3468
+ if (errorCode(err) === "TEAM_INVITE_LINK_NOT_FOUND")
3469
+ return null;
3470
+ throw err;
3343
3471
  }
3344
3472
  }
3345
- const responseBody = xhr.status === 204 || xhr.responseText === "" ? null : xhr.responseText;
3346
- resolve9(new Response(responseBody, {
3347
- status: xhr.status,
3348
- statusText: xhr.statusText,
3349
- headers: responseHeaders
3350
- }));
3351
- });
3352
- xhr.onerror = () => finish(() => reject(new TypeError("Network request failed")));
3353
- xhr.ontimeout = () => finish(() => reject(new DOMException("Request timed out", "TimeoutError")));
3354
- xhr.onabort = () => finish(() => reject(new DOMException("Request aborted", "AbortError")));
3355
- if (options.signal?.aborted) {
3356
- finish(() => reject(new DOMException("Request aborted", "AbortError")));
3357
- return;
3358
- }
3359
- options.signal?.addEventListener("abort", abortFromSignal, { once: true });
3360
- xhr.send(options.body);
3361
- });
3362
- }
3363
- var init_wiki_upload = __esm({
3364
- "ts/sdk/dist/wiki-upload.js"() {
3365
- "use strict";
3366
- }
3367
- });
3368
-
3369
- // ts/sdk/dist/fetch-cause.js
3370
- function describeFetchCause(err) {
3371
- const inner = err?.cause;
3372
- for (const candidate of [inner, err]) {
3373
- if (!(candidate instanceof Error))
3374
- continue;
3375
- const code = candidate.code;
3376
- const parts = [];
3377
- if (typeof code === "string" && code && !candidate.message.includes(code))
3378
- parts.push(code);
3379
- if (candidate.message && !GENERIC_FETCH_MESSAGES.has(candidate.message)) {
3380
- parts.push(candidate.message);
3381
- }
3382
- if (parts.length > 0)
3383
- return parts.join(" ");
3384
- }
3385
- return void 0;
3386
- }
3387
- var GENERIC_FETCH_MESSAGES;
3388
- var init_fetch_cause = __esm({
3389
- "ts/sdk/dist/fetch-cause.js"() {
3390
- "use strict";
3391
- GENERIC_FETCH_MESSAGES = /* @__PURE__ */ new Set(["Failed to fetch", "fetch failed"]);
3473
+ /** Org owner/admin: a new launch link, replacing the template's previous
3474
+ * one, whose URL stops working. Every new team waits for an admin's
3475
+ * approval unless `requireApproval` is false (the server's default is
3476
+ * true). */
3477
+ async createTemplateInviteLink(orgId, templateId, options = {}) {
3478
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
3479
+ }
3480
+ /** Org owner/admin: the requests waiting for approval on the template's
3481
+ * current link, oldest first. */
3482
+ async listTemplateInviteRequests(orgId, templateId) {
3483
+ const res = await this.request("GET", ENDPOINTS.TEMPLATE_INVITE_REQUESTS(orgId, templateId));
3484
+ return res.requests ?? [];
3485
+ }
3486
+ /** Org owner/admin: approve or decline a waiting request. Approving brings
3487
+ * a requester from outside the org in as a member and starts their team.
3488
+ * `ALREADY_DECIDED` (409) when someone decided first. */
3489
+ async decideTemplateInviteRequest(orgId, templateId, requestId, decision) {
3490
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_REQUEST_DECIDE(orgId, templateId, requestId), { decision });
3491
+ }
3492
+ /** Public, no login needed: what a link shows before anyone signs in.
3493
+ * `TEAM_INVITE_NOT_FOUND` (404) for an unknown, revoked or switched-off
3494
+ * link; `TEAM_INVITE_EXPIRED` (410) once it lapsed. */
3495
+ async getTeamInvite(token) {
3496
+ return this.request("GET", ENDPOINTS.TEAM_INVITE(token));
3497
+ }
3498
+ /** Ask for a new team through a link. Submitting again returns the
3499
+ * caller's open request instead of making another. */
3500
+ async createTeamInviteRequest(token, body) {
3501
+ return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUESTS(token), body);
3502
+ }
3503
+ /** The caller's latest request through this link, with its derived phase.
3504
+ * `TEAM_INVITE_REQUEST_NOT_FOUND` (404) while they have none. */
3505
+ async getMyTeamInviteRequest(token) {
3506
+ return this.request("GET", ENDPOINTS.TEAM_INVITE_REQUEST_MINE(token));
3507
+ }
3508
+ /** The requester withdraws a request that is still waiting. */
3509
+ async cancelTeamInviteRequest(requestId) {
3510
+ return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUEST_CANCEL(requestId));
3511
+ }
3512
+ /** The requester retries a failed launch; the server never makes a second
3513
+ * squad for the same request. */
3514
+ async retryTeamInviteRequest(requestId) {
3515
+ return this.request("POST", ENDPOINTS.TEAM_INVITE_REQUEST_RETRY(requestId));
3516
+ }
3517
+ };
3392
3518
  }
3393
3519
  });
3394
3520
 
@@ -3467,12 +3593,12 @@ var init_client = __esm({
3467
3593
  "ts/sdk/dist/client.js"() {
3468
3594
  "use strict";
3469
3595
  init_browser_viewer();
3470
- init_billing_client();
3471
3596
  init_wiki_upload();
3472
3597
  init_fetch_cause();
3598
+ init_team_invite_client();
3473
3599
  init_wiki_changeset();
3474
3600
  init_constants();
3475
- ParallClient = class _ParallClient extends BillingClient {
3601
+ ParallClient = class _ParallClient extends TeamInviteClient {
3476
3602
  baseUrl;
3477
3603
  wikiBaseUrl;
3478
3604
  token;
@@ -3873,10 +3999,16 @@ var init_client = __esm({
3873
3999
  async deleteTeam(orgId, teamId) {
3874
4000
  return this.request("DELETE", ENDPOINTS.TEAM(orgId, teamId));
3875
4001
  }
3876
- /** Moves a team under `parentTeamId`, or to the top level with null. Org-admin action. */
3877
- async setTeamParent(orgId, teamId, parentTeamId) {
4002
+ /**
4003
+ * Moves a team under `parentTeamId`, or to the top level with null. Org-admin
4004
+ * action. `expectedTreeRevision` is the revision the move's preview returned: if
4005
+ * the org's team tree changed since, nothing moves and it answers 409
4006
+ * `TEAM_TREE_CHANGED`. Without it nothing is checked.
4007
+ */
4008
+ async setTeamParent(orgId, teamId, parentTeamId, opts) {
3878
4009
  return this.request("PUT", ENDPOINTS.TEAM_PARENT(orgId, teamId), {
3879
- parent_team_id: parentTeamId
4010
+ parent_team_id: parentTeamId,
4011
+ ...opts?.expectedTreeRevision ? { expected_tree_revision: opts.expectedTreeRevision } : {}
3880
4012
  });
3881
4013
  }
3882
4014
  /** Roster with display info, minus members who left the org; `includeSubteams` adds subteam rows. */
@@ -6340,6 +6472,13 @@ var init_task_label_types = __esm({
6340
6472
  }
6341
6473
  });
6342
6474
 
6475
+ // ts/sdk/dist/team-invite-types.js
6476
+ var init_team_invite_types = __esm({
6477
+ "ts/sdk/dist/team-invite-types.js"() {
6478
+ "use strict";
6479
+ }
6480
+ });
6481
+
6343
6482
  // ts/sdk/dist/trigger-judge-types.js
6344
6483
  var init_trigger_judge_types = __esm({
6345
6484
  "ts/sdk/dist/trigger-judge-types.js"() {
@@ -6915,6 +7054,7 @@ var init_dist = __esm({
6915
7054
  init_subject();
6916
7055
  init_user_preferences_types();
6917
7056
  init_task_label_types();
7057
+ init_team_invite_types();
6918
7058
  init_trigger_judge_types();
6919
7059
  init_types();
6920
7060
  init_wechat_types();
@@ -42574,8 +42714,8 @@ var require_client_h2 = __commonJS({
42574
42714
  this.destroy(err);
42575
42715
  util.destroy(this[kSocket], err);
42576
42716
  }
42577
- function onHttp2SessionGoAway(errorCode) {
42578
- const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${errorCode}`, util.getSocketInfo(this[kSocket]));
42717
+ function onHttp2SessionGoAway(errorCode2) {
42718
+ const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${errorCode2}`, util.getSocketInfo(this[kSocket]));
42579
42719
  const client = this[kClient];
42580
42720
  client[kSocket] = null;
42581
42721
  client[kHTTPContext] = null;
@@ -64483,14 +64623,14 @@ var require_receiver2 = __commonJS({
64483
64623
  * @return {(Error|RangeError)} The error
64484
64624
  * @private
64485
64625
  */
64486
- createError(ErrorCtor, message, prefix, statusCode, errorCode) {
64626
+ createError(ErrorCtor, message, prefix, statusCode, errorCode2) {
64487
64627
  this._loop = false;
64488
64628
  this._errored = true;
64489
64629
  const err = new ErrorCtor(
64490
64630
  prefix ? `Invalid WebSocket frame: ${message}` : message
64491
64631
  );
64492
64632
  Error.captureStackTrace(err, this.createError);
64493
- err.code = errorCode;
64633
+ err.code = errorCode2;
64494
64634
  err[kStatusCode] = statusCode;
64495
64635
  return err;
64496
64636
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.85.0",
3
+ "version": "1.86.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.85.0",
38
- "@parall/claude-agent": "1.85.0",
39
- "@parall/codex-agent": "1.85.0",
40
- "@parall/agent-core": "1.85.0",
41
- "@parall/openclaw-agent": "1.85.0"
37
+ "@parall/agent-core": "1.86.0",
38
+ "@parall/claude-agent": "1.86.0",
39
+ "@parall/codex-agent": "1.86.0",
40
+ "@parall/openclaw-agent": "1.86.0",
41
+ "@parall/sdk": "1.86.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",