@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.
- package/bundle/manifest.json +11 -11
- package/bundle/parall-browser-pod.js +220 -110
- package/bundle/parall-claude-agent.js +221 -105
- package/bundle/parall-codex-agent.js +221 -105
- package/bundle/parall-daemon.js +257 -117
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -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
|
-
|
|
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/
|
|
3284
|
-
function
|
|
3285
|
-
|
|
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
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
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
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
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
|
|
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
|
-
/**
|
|
3877
|
-
|
|
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(
|
|
42578
|
-
const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${
|
|
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,
|
|
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 =
|
|
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.
|
|
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/
|
|
38
|
-
"@parall/claude-agent": "1.
|
|
39
|
-
"@parall/codex-agent": "1.
|
|
40
|
-
"@parall/agent
|
|
41
|
-
"@parall/
|
|
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",
|