@parall/daemon 1.63.0 → 1.64.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 +97 -97
- package/bundle/parall-claude-agent.js +863 -319
- package/bundle/parall-codex-agent.js +815 -302
- package/bundle/parall-daemon.js +626 -169
- package/dist/config.d.ts +5 -5
- package/dist/daemon-telemetry.d.ts +1 -1
- package/dist/daemon-telemetry.d.ts.map +1 -1
- package/dist/supervisor.d.ts.map +1 -1
- package/dist/supervisor.js +95 -10
- package/dist/update-health-gate.d.ts +18 -14
- package/dist/update-health-gate.d.ts.map +1 -1
- package/dist/update-health-gate.js +18 -14
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +5 -9
- package/package.json +6 -6
package/bundle/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
3
|
-
"built_at": "2026-09-
|
|
2
|
+
"version": "1.64.0",
|
|
3
|
+
"built_at": "2026-09-13T07:37:25.819Z",
|
|
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": "
|
|
20
|
-
"size":
|
|
19
|
+
"sha256": "f1bd596e11d2fe5cf669b9089abcaaf32f05dc6abd1e7264d0a3a22c2d4c1def",
|
|
20
|
+
"size": 3033834
|
|
21
21
|
},
|
|
22
22
|
"parall-channel-exec.js": {
|
|
23
23
|
"sha256": "7c2a6e12483a45e9eb4a42cd7d4cdd3c4fa21dd09ac1347d9a3e177b4ddee930",
|
|
24
24
|
"size": 7220
|
|
25
25
|
},
|
|
26
26
|
"parall-claude-agent.js": {
|
|
27
|
-
"sha256": "
|
|
28
|
-
"size":
|
|
27
|
+
"sha256": "05f1aaf996181ce74a46d66863202d54fef8325c6e61f4313d746b90bb3e2fdd",
|
|
28
|
+
"size": 2985087
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "968c8d82dd31017cb31eda1ff2559116313b061f708ee0c5ef333becce448f0d",
|
|
32
|
+
"size": 3001297
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "638bae1292b29f4b2218685ea3d40d044b10d9975dbafc680b75c2ae6febb633",
|
|
36
|
+
"size": 3197957
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "Wor5JhxTw4FX4mjtaNtoNMUoaZu/r1s0qf98zgJlAXZpmqPpol35y9E9n6LztgZ0M8iFM5DqPcwMUi5zZnjPAA=="
|
|
44
44
|
}
|
|
@@ -64292,6 +64292,7 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
64292
64292
|
|
|
64293
64293
|
// ts/sdk/dist/clip-connection-endpoints.js
|
|
64294
64294
|
var clipConnectionEndpoints = {
|
|
64295
|
+
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
64295
64296
|
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
64296
64297
|
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
64297
64298
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
@@ -64592,6 +64593,7 @@ var ENDPOINTS = {
|
|
|
64592
64593
|
TRIGGER: (orgId, triggerId) => `${API_BASE2}/orgs/${orgId}/external-triggers/${triggerId}`,
|
|
64593
64594
|
/** @deprecated Use TRIGGER. Same compatibility path. */
|
|
64594
64595
|
EXTERNAL_TRIGGER: (orgId, triggerId) => `${API_BASE2}/orgs/${orgId}/external-triggers/${triggerId}`,
|
|
64596
|
+
PLATFORM_TRIGGER_SCHEMA: (orgId) => `${API_BASE2}/orgs/${orgId}/platform-trigger-schema`,
|
|
64595
64597
|
TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
|
|
64596
64598
|
/** @deprecated Use TRIGGER_RUNS. Same compatibility path. */
|
|
64597
64599
|
EXTERNAL_TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
|
|
@@ -64769,6 +64771,8 @@ var ENDPOINTS = {
|
|
|
64769
64771
|
BILLING_CHECKOUT: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/checkout`,
|
|
64770
64772
|
BILLING_AUTO_RELOAD: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/auto-reload`,
|
|
64771
64773
|
BILLING_SETUP_INTENT: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/setup-intent`,
|
|
64774
|
+
BILLING_USAGE_DAILY: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/usage-daily`,
|
|
64775
|
+
BILLING_USAGE_HEATMAP: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/usage-heatmap`,
|
|
64772
64776
|
COMPUTE_PRICING: () => `${API_BASE2}/billing/compute-pricing`,
|
|
64773
64777
|
// Runtime capability table (public, no auth) — SSOT for the create/settings
|
|
64774
64778
|
// interlock: per-runtime compute modes, native model family, cross-family
|
|
@@ -64803,16 +64807,6 @@ var ENDPOINTS = {
|
|
|
64803
64807
|
BROWSER_PROFILE_VIEWER_COMMAND: (orgId, profileId) => `${API_BASE2}/orgs/${orgId}/browser-profiles/${profileId}/viewer/command`,
|
|
64804
64808
|
// Edge device endpoints
|
|
64805
64809
|
...edgeEndpoints,
|
|
64806
|
-
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
64807
|
-
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
64808
|
-
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
64809
|
-
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
64810
|
-
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
64811
|
-
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
64812
|
-
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
64813
|
-
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
64814
|
-
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
64815
|
-
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
64816
64810
|
ORG_BROWSER_USE_OPERATIONS: (orgId) => `/api/v1/orgs/${orgId}/browser-use/operations`,
|
|
64817
64811
|
ORG_BROWSER_USE_OPERATION: (orgId, operationId) => `/api/v1/orgs/${orgId}/browser-use/operations/${encodeURIComponent(operationId)}`,
|
|
64818
64812
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
@@ -65265,10 +65259,62 @@ var ClipConnectionClient = class extends ChannelConversationClient {
|
|
|
65265
65259
|
async putClipConnectionAccess(orgId, connId, input) {
|
|
65266
65260
|
return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId), input);
|
|
65267
65261
|
}
|
|
65262
|
+
/** Start OAuth using the reviewed platform app or provider registration ladder.
|
|
65263
|
+
* Allow discovery (30s), persistence (10s), and network overhead to finish. */
|
|
65264
|
+
async createClipMCPOAuthConnection(orgId, clipId, serverUrl, alias, oauthClient) {
|
|
65265
|
+
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), {
|
|
65266
|
+
server_url: serverUrl,
|
|
65267
|
+
auth_type: "oauth",
|
|
65268
|
+
...alias ? { alias } : {},
|
|
65269
|
+
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
65270
|
+
}, void 0, false, { timeoutMs: 5e4 });
|
|
65271
|
+
}
|
|
65272
|
+
/** Cancel exactly one pending attempt; requires its initiator or an org admin. */
|
|
65273
|
+
async cancelClipMCPOAuthAttempt(orgId, clipId, attemptId) {
|
|
65274
|
+
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_OAUTH_ATTEMPT(orgId, clipId, attemptId));
|
|
65275
|
+
}
|
|
65268
65276
|
};
|
|
65269
65277
|
|
|
65270
65278
|
// ts/sdk/dist/browser-profile-client.js
|
|
65271
65279
|
var BrowserProfileClient = class extends ClipConnectionClient {
|
|
65280
|
+
/** Metadata-only compatibility discovery. Management scope errors propagate;
|
|
65281
|
+
* callers with a known Profile can execute without this discovery chain. */
|
|
65282
|
+
async listBrowserUseProfiles(orgId, profileId) {
|
|
65283
|
+
const me = await this.request("GET", ENDPOINTS.USERS_ME);
|
|
65284
|
+
const devices = await this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
65285
|
+
const data2 = [];
|
|
65286
|
+
for (const device of devices.data) {
|
|
65287
|
+
const personal = device.managed_by === "member";
|
|
65288
|
+
if (personal && device.owner_user_id !== me.id)
|
|
65289
|
+
continue;
|
|
65290
|
+
const profiles = await this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, device.id));
|
|
65291
|
+
for (const profile of profiles) {
|
|
65292
|
+
if (profileId && profile.id !== profileId)
|
|
65293
|
+
continue;
|
|
65294
|
+
const access = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
65295
|
+
if (!personal && !access?.org_public && !(access?.grants ?? []).some((g5) => g5.user_id === me.id && g5.grants.length > 0))
|
|
65296
|
+
continue;
|
|
65297
|
+
data2.push({
|
|
65298
|
+
profile_id: profile.id,
|
|
65299
|
+
name: profile.name,
|
|
65300
|
+
device_name: device.name,
|
|
65301
|
+
placement: device.placement ?? "byoc",
|
|
65302
|
+
lifecycle_state: profile.lifecycle_state,
|
|
65303
|
+
can_access: true,
|
|
65304
|
+
availability: device.placement === "hosted" ? device.hosted_state ?? "unknown" : device.status
|
|
65305
|
+
});
|
|
65306
|
+
}
|
|
65307
|
+
}
|
|
65308
|
+
return { data: data2 };
|
|
65309
|
+
}
|
|
65310
|
+
/** Submit once: even refresh-enabled clients must not replay browser actions. */
|
|
65311
|
+
async createBrowserUseOperation(orgId, request) {
|
|
65312
|
+
return this.request("POST", ENDPOINTS.ORG_BROWSER_USE_OPERATIONS(orgId), request, void 0, true);
|
|
65313
|
+
}
|
|
65314
|
+
/** Recover proof/data without creating a new browser operation. */
|
|
65315
|
+
async getBrowserUseOperation(orgId, operationId, opts) {
|
|
65316
|
+
return this.request("GET", ENDPOINTS.ORG_BROWSER_USE_OPERATION(orgId, operationId), void 0, void 0, false, opts);
|
|
65317
|
+
}
|
|
65272
65318
|
async getBrowserProfileAccess(orgId, edgeId, profileName) {
|
|
65273
65319
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
65274
65320
|
}
|
|
@@ -65712,8 +65758,8 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
65712
65758
|
return this.request("POST", ENDPOINTS.AUTH_OAUTH_EXCHANGE, { code });
|
|
65713
65759
|
}
|
|
65714
65760
|
// ---- WebSocket ----
|
|
65715
|
-
async getWsTicket() {
|
|
65716
|
-
return this.request("POST", ENDPOINTS.WS_TICKET);
|
|
65761
|
+
async getWsTicket(req) {
|
|
65762
|
+
return this.request("POST", ENDPOINTS.WS_TICKET, req);
|
|
65717
65763
|
}
|
|
65718
65764
|
// ---- Users ----
|
|
65719
65765
|
async getMe() {
|
|
@@ -66700,8 +66746,8 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
66700
66746
|
* no_action sweep otherwise. Idempotent.
|
|
66701
66747
|
*
|
|
66702
66748
|
* @deprecated Legacy ok-only alias — use {@link completeDispatch} with the
|
|
66703
|
-
* `sources` form, which also carries `turn_outcome`.
|
|
66704
|
-
*
|
|
66749
|
+
* `sources` form, which also carries `turn_outcome`. Retirement conditions:
|
|
66750
|
+
* agent-dispatch-idempotency-design.md#compatibility.
|
|
66705
66751
|
*/
|
|
66706
66752
|
async completeDispatchSources(orgId, req) {
|
|
66707
66753
|
return this.request("POST", ENDPOINTS.DISPATCH_COMPLETE_SOURCES(orgId), req);
|
|
@@ -66944,6 +66990,9 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
66944
66990
|
async getTriggerSchema(orgId, connectionId) {
|
|
66945
66991
|
return this.request("GET", ENDPOINTS.TRIGGER_SCHEMA(orgId, connectionId));
|
|
66946
66992
|
}
|
|
66993
|
+
async getPlatformTriggerSchema(orgId, eventTypes) {
|
|
66994
|
+
return this.request("GET", ENDPOINTS.PLATFORM_TRIGGER_SCHEMA(orgId), void 0, eventTypes && eventTypes.length > 0 ? { event_types: eventTypes.join(",") } : void 0);
|
|
66995
|
+
}
|
|
66947
66996
|
async listTriggerIngressEvents(orgId, filters) {
|
|
66948
66997
|
return this.request("GET", ENDPOINTS.TRIGGER_INGRESS_EVENTS(orgId), void 0, filters);
|
|
66949
66998
|
}
|
|
@@ -67045,8 +67094,8 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67045
67094
|
return url;
|
|
67046
67095
|
return `${this.baseUrlFor(url)}${url}`;
|
|
67047
67096
|
}
|
|
67048
|
-
async getWikiBlob(orgId, wikiId, params) {
|
|
67049
|
-
const blob = await this.request("GET", ENDPOINTS.WIKI_BLOB(orgId, wikiId), void 0, params);
|
|
67097
|
+
async getWikiBlob(orgId, wikiId, params, opts) {
|
|
67098
|
+
const blob = await this.request("GET", ENDPOINTS.WIKI_BLOB(orgId, wikiId), void 0, params, false, opts);
|
|
67050
67099
|
if (blob.signed_url)
|
|
67051
67100
|
blob.signed_url = this.absoluteMediaUrl(blob.signed_url);
|
|
67052
67101
|
return blob;
|
|
@@ -67419,6 +67468,21 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67419
67468
|
async getBilling(orgId) {
|
|
67420
67469
|
return this.request("GET", ENDPOINTS.BILLING(orgId));
|
|
67421
67470
|
}
|
|
67471
|
+
async getUsageDaily(orgId, opts) {
|
|
67472
|
+
const params = new URLSearchParams();
|
|
67473
|
+
params.set("start_date", opts.start_date);
|
|
67474
|
+
params.set("end_date", opts.end_date);
|
|
67475
|
+
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_DAILY(orgId)}?${params}`);
|
|
67476
|
+
}
|
|
67477
|
+
async getUsageHeatmap(orgId, opts) {
|
|
67478
|
+
const params = new URLSearchParams();
|
|
67479
|
+
params.set("start_time", opts.start_time);
|
|
67480
|
+
if (opts.limit != null)
|
|
67481
|
+
params.set("limit", String(opts.limit));
|
|
67482
|
+
if (opts.offset != null)
|
|
67483
|
+
params.set("offset", String(opts.offset));
|
|
67484
|
+
return this.request("GET", `${ENDPOINTS.BILLING_USAGE_HEATMAP(orgId)}?${params}`);
|
|
67485
|
+
}
|
|
67422
67486
|
async listBillingTransactions(orgId, opts) {
|
|
67423
67487
|
const params = new URLSearchParams();
|
|
67424
67488
|
if (opts?.cursor)
|
|
@@ -67588,12 +67652,14 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67588
67652
|
}
|
|
67589
67653
|
// ---- Clip registry (v3, api-server org registry — `crg_` entries) ----
|
|
67590
67654
|
/**
|
|
67591
|
-
* List registry clips visible to the org: its own plus
|
|
67592
|
-
* cross-org entries
|
|
67593
|
-
* connections operate on.
|
|
67655
|
+
* List one page of registry clips visible to the org: its own plus
|
|
67656
|
+
* public+approved cross-org entries, used by installs and connections.
|
|
67594
67657
|
*/
|
|
67595
|
-
async listOrgRegistryClips(orgId) {
|
|
67596
|
-
const
|
|
67658
|
+
async listOrgRegistryClips(orgId, opts) {
|
|
67659
|
+
const params = new URLSearchParams({ limit: String(opts?.limit ?? 100) });
|
|
67660
|
+
if (opts?.offset !== void 0)
|
|
67661
|
+
params.set("offset", String(opts.offset));
|
|
67662
|
+
const resp = await this.request("GET", `${ENDPOINTS.ORG_CLIP_REGISTRY(orgId)}?${params}`);
|
|
67597
67663
|
return resp ?? [];
|
|
67598
67664
|
}
|
|
67599
67665
|
/**
|
|
@@ -67674,7 +67740,6 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67674
67740
|
/**
|
|
67675
67741
|
* Read a clip's per-org exec access (by user id — humans and agents alike).
|
|
67676
67742
|
* Org-member readable, so a denied caller can learn why exec answered
|
|
67677
|
-
* `CONNECTION_NOT_ALLOWED` (retired: `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED`) (agents:
|
|
67678
67743
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED`). Writing
|
|
67679
67744
|
* it (`putClipAgentExecAccess`) is an org owner/admin's act.
|
|
67680
67745
|
*/
|
|
@@ -67755,69 +67820,6 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67755
67820
|
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
67756
67821
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
67757
67822
|
}
|
|
67758
|
-
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
67759
|
-
* with the same idempotency key and body returns the original stable ccn_. */
|
|
67760
|
-
async createBrowserAlias(orgId, request) {
|
|
67761
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request);
|
|
67762
|
-
}
|
|
67763
|
-
async listBrowserAliases(orgId) {
|
|
67764
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
67765
|
-
}
|
|
67766
|
-
async getBrowserAlias(orgId, aliasId) {
|
|
67767
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
67768
|
-
}
|
|
67769
|
-
async renameBrowserAlias(orgId, aliasId, request) {
|
|
67770
|
-
return this.request("PATCH", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
67771
|
-
}
|
|
67772
|
-
async deleteBrowserAlias(orgId, aliasId, request) {
|
|
67773
|
-
return this.request("DELETE", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
67774
|
-
}
|
|
67775
|
-
/** Start one durable readiness check. The key is carried as the standard
|
|
67776
|
-
* Idempotency-Key header; the request body is intentionally empty. */
|
|
67777
|
-
async createBrowserAliasReadinessCheck(orgId, aliasId, request) {
|
|
67778
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), void 0, void 0, false, { headers: { "Idempotency-Key": request.idempotency_key } });
|
|
67779
|
-
}
|
|
67780
|
-
/** Sole durable recovery surface for one readiness request. */
|
|
67781
|
-
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
67782
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
67783
|
-
}
|
|
67784
|
-
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
67785
|
-
* intentionally available only on this human-JWT management surface. */
|
|
67786
|
-
async listBrowserAliasGrants(orgId, keyId) {
|
|
67787
|
-
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
67788
|
-
}
|
|
67789
|
-
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
67790
|
-
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
67791
|
-
}
|
|
67792
|
-
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request) {
|
|
67793
|
-
return this.request("PUT", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request);
|
|
67794
|
-
}
|
|
67795
|
-
/** Managed-key discovery. The response is already grant-filtered and never
|
|
67796
|
-
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
67797
|
-
async listManagedBrowserAliases(orgId) {
|
|
67798
|
-
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
67799
|
-
}
|
|
67800
|
-
async getManagedBrowserAlias(orgId, aliasName) {
|
|
67801
|
-
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
67802
|
-
}
|
|
67803
|
-
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
67804
|
-
* caller before local validation and is also the sole durable recovery key. */
|
|
67805
|
-
async createBrowserAliasExecution(orgId, request) {
|
|
67806
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request);
|
|
67807
|
-
}
|
|
67808
|
-
async getBrowserAliasExecution(orgId, requestId) {
|
|
67809
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
67810
|
-
}
|
|
67811
|
-
/** Accept one idempotent Browser Use operation for an explicit Profile.
|
|
67812
|
-
* JWT, personal, agent and managed keys use profile access. The Server resolves Profile→Edge. */
|
|
67813
|
-
async createBrowserUseOperation(orgId, request) {
|
|
67814
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_USE_OPERATIONS(orgId), request);
|
|
67815
|
-
}
|
|
67816
|
-
/** Recover the durable receipt. Successful data is present only inside the
|
|
67817
|
-
* Server's short encrypted result TTL; terminal proof remains afterwards. */
|
|
67818
|
-
async getBrowserUseOperation(orgId, operationId) {
|
|
67819
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_USE_OPERATION(orgId, operationId));
|
|
67820
|
-
}
|
|
67821
67823
|
/**
|
|
67822
67824
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
67823
67825
|
* human maintainer or org admin). Sanitized — the password never comes back.
|
|
@@ -67927,7 +67929,6 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
67927
67929
|
* - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
|
|
67928
67930
|
* `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
|
|
67929
67931
|
* - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
|
|
67930
|
-
* `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED` are retired.
|
|
67931
67932
|
* Agent principals receive the historical
|
|
67932
67933
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED` for one
|
|
67933
67934
|
* release. An org owner/admin can widen access in the clip's settings.
|
|
@@ -68011,17 +68012,6 @@ var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
|
68011
68012
|
timeoutMs: 4e4
|
|
68012
68013
|
});
|
|
68013
68014
|
}
|
|
68014
|
-
/** Start a new Official OAuth MCP connection with the platform-owned app.
|
|
68015
|
-
* Omitting oauth_client is load-bearing: the server resolves the exact
|
|
68016
|
-
* reviewed-version binding and never falls back to DCR/CIMD cross-org. */
|
|
68017
|
-
async createClipMCPOAuthConnection(orgId, clipId, serverUrl, alias, oauthClient) {
|
|
68018
|
-
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), {
|
|
68019
|
-
server_url: serverUrl,
|
|
68020
|
-
auth_type: "oauth",
|
|
68021
|
-
...alias ? { alias } : {},
|
|
68022
|
-
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
68023
|
-
});
|
|
68024
|
-
}
|
|
68025
68015
|
/** Re-authorize an existing MCP credential slot. */
|
|
68026
68016
|
async initiateClipMCPOAuthById(orgId, clipId, configId, serverUrl, expectedVersion, oauthClient) {
|
|
68027
68017
|
const req = {
|
|
@@ -68192,6 +68182,16 @@ function buildApiError(res, rawErrorBody) {
|
|
|
68192
68182
|
return apiError;
|
|
68193
68183
|
}
|
|
68194
68184
|
|
|
68185
|
+
// ts/sdk/dist/browser-use-contract.generated.js
|
|
68186
|
+
var browserUseContract = { "actions": { "read": { "grant": "browser.read", "target": "optional_tab", "params": { "required": [], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "rules": ["exactly one of params.url or target is required", "params.url creates a hidden Profile-bound tab and closes it before terminal success or failure"], "additional_properties": false }, "success": { "base": null, "fields": { "profile_id": "ebp_identifier", "url": "string", "title": "string", "article": "nullable_article" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "tabs": { "grant": "browser.read", "target": "none", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": null, "fields": { "tabs": "tab_summary_array" } }, "errors": ["TAB_GONE"] }, "wait": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "state": { "enum": ["attached", "detached", "visible", "hidden", "load"], "default": "attached" }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 3e4, "default": 1e4 } }, "rules": ["selector is required unless state=load", "state=load forbids selector"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "matched": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "snapshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": { "interactive": { "type": "boolean", "default": false }, "compact": { "type": "boolean", "default": false }, "depth": { "type": "integer", "minimum": 0, "maximum": 64 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "snapshot": "string", "snapshot_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "get": { "grant": "browser.read", "target": "tab_or_ref", "params": { "required": ["prop"], "properties": { "selector": { "type": "string", "min_length": 1, "max_length": 4096 }, "prop": { "enum": ["text", "html", "value", "attr", "title", "url"] }, "name": { "type": "string", "min_length": 1, "max_length": 256 } }, "rules": ["title/url forbid locator and name", "text/html/value require exactly one locator", "attr requires exactly one locator and name"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "nullable_string" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "screenshot": { "grant": "browser.read", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "format": { "const": "png" }, "base64": "canonical_base64" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "open": { "grant": "browser.interact", "target": "none", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] }, "hidden": { "type": "boolean", "default": false }, "viewport": { "type": "viewport" } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["PAGE_LOAD_FAILED"] }, "navigate": { "grant": "browser.interact", "target": "tab", "params": { "required": ["url"], "properties": { "url": { "type": "string", "min_length": 1, "max_length": 8192, "schemes": ["http", "https", "about:blank"] } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": {} }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "viewport": { "grant": "browser.interact", "target": "tab", "params": { "required": ["width", "height"], "properties": { "width": { "type": "integer", "minimum": 320, "maximum": 3840 }, "height": { "type": "integer", "minimum": 240, "maximum": 2160 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "viewport": "viewport" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "click": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": [], "properties": { "selector": "selector" }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "clicked": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "fill": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "allow_empty": true } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "filled": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "type": { "grant": "browser.interact", "target": "tab_or_ref", "params": { "required": ["text"], "properties": { "selector": "selector", "text": { "type": "string", "min_length": 1 } }, "rules": ["exactly one of params.selector or target.ref"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "typed": { "const": true }, "characters": "non_negative_integer" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "STALE_REF", "PAGE_LOAD_FAILED"] }, "press": { "grant": "browser.interact", "target": "tab", "params": { "required": ["key"], "properties": { "key": "single_unicode_character_or_named_key" }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "pressed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "scroll": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": { "direction": { "enum": ["up", "down", "left", "right"], "default": "down" }, "pixels": { "type": "integer", "minimum": 1, "maximum": 1e5, "default": 500 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "scrolled": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "close": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "closed": { "const": true } } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "recover": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": {}, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "recovered_from_tab_id": "identifier" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] }, "eval": { "grant": "browser.advanced", "target": "tab", "params": { "required": ["expression"], "properties": { "expression": { "type": "string", "min_length": 1 }, "timeout_ms": { "type": "integer", "minimum": 1, "maximum": 15e3, "default": 15e3 } }, "additional_properties": false }, "success": { "base": "tab_state", "fields": { "value": "json_value_max_256_kib" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE", "PAGE_LOAD_FAILED"] } }, "successShapes": { "tab_state": { "required": ["tab_id", "profile_id", "browser_generation", "document_generation", "url", "title"], "fields": { "tab_id": "identifier", "profile_id": "ebp_identifier", "browser_generation": "positive_integer", "document_generation": "positive_integer", "url": "string", "title": "string" }, "additional_properties": false }, "tab_summary": { "base": "tab_state", "required_additions": ["loading"], "fields": { "loading": "boolean" }, "additional_properties": false }, "article": { "required": ["title", "byline", "excerpt", "text", "published_time", "site_name", "length"], "fields": { "title": "nullable_string", "byline": "nullable_string", "excerpt": "nullable_string", "text": "string", "published_time": "nullable_string", "site_name": "nullable_string", "length": "non_negative_integer" }, "additional_properties": false } } };
|
|
68187
|
+
|
|
68188
|
+
// ts/sdk/dist/browser-use-validation.js
|
|
68189
|
+
var BROWSER_USE_ACTION_SCHEMAS = browserUseContract.actions;
|
|
68190
|
+
var BROWSER_USE_ACTIONS = Object.freeze(Object.keys(BROWSER_USE_ACTION_SCHEMAS));
|
|
68191
|
+
|
|
68192
|
+
// ts/sdk/dist/browser-use-receipt.js
|
|
68193
|
+
var KEYS = "contract_version operation_id request_id profile_id profile_version profile_config_revision action required_grant phase dispatched receipt_id receipt_digest occurred_at tab_id browser_generation duration_ms result_digest result_available result_expires_at data error deadline accepted_at started_at terminal_at updated_at".split(" ");
|
|
68194
|
+
|
|
68195
68195
|
// ts/agent-core/dist/lane-target.js
|
|
68196
68196
|
var PRLL_SCHEME = "prll://";
|
|
68197
68197
|
var CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|