@parall/daemon 1.62.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 +172 -112
- package/bundle/parall-claude-agent.js +1118 -484
- package/bundle/parall-codex-agent.js +924 -331
- package/bundle/parall-daemon.js +2925 -1577
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +75 -2
- package/dist/config.d.ts +9 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -2
- package/dist/daemon-telemetry.d.ts +1 -1
- package/dist/daemon-telemetry.d.ts.map +1 -1
- package/dist/diagnostics.d.ts +127 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +358 -0
- 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 +14 -0
- package/dist/updater.d.ts.map +1 -1
- package/dist/updater.js +24 -24
- 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
|
}
|
|
@@ -64290,6 +64290,14 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
64290
64290
|
};
|
|
64291
64291
|
}
|
|
64292
64292
|
|
|
64293
|
+
// ts/sdk/dist/clip-connection-endpoints.js
|
|
64294
|
+
var clipConnectionEndpoints = {
|
|
64295
|
+
ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
|
|
64296
|
+
CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
|
|
64297
|
+
CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
|
|
64298
|
+
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
64299
|
+
};
|
|
64300
|
+
|
|
64293
64301
|
// ts/sdk/dist/attachment-endpoints.js
|
|
64294
64302
|
function attachmentEndpoints(apiBase) {
|
|
64295
64303
|
return {
|
|
@@ -64303,6 +64311,7 @@ function attachmentEndpoints(apiBase) {
|
|
|
64303
64311
|
// ts/sdk/dist/edge-endpoints.js
|
|
64304
64312
|
var API_BASE = "/api/v1";
|
|
64305
64313
|
var edgeEndpoints = {
|
|
64314
|
+
ORG_EDGE_PROFILE_ACCESS: (orgId, edgeId, profileName) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profiles/${encodeURIComponent(profileName)}/access`,
|
|
64306
64315
|
ORG_EDGE: (orgId) => `${API_BASE}/orgs/${orgId}/edge`,
|
|
64307
64316
|
ORG_EDGE_CONNECT: (orgId) => `${API_BASE}/orgs/${orgId}/edge/connect`,
|
|
64308
64317
|
ORG_EDGE_DEVICES: (orgId) => `${API_BASE}/orgs/${orgId}/edge/devices`,
|
|
@@ -64494,6 +64503,7 @@ var ENDPOINTS = {
|
|
|
64494
64503
|
MACHINES_ME_AGENTS: `${API_BASE2}/machines/me/agents`,
|
|
64495
64504
|
MACHINES_ME_HEALTH: `${API_BASE2}/machines/me/health`,
|
|
64496
64505
|
MACHINES_ME_RUNTIME_REPORT: `${API_BASE2}/machines/me/runtime-report`,
|
|
64506
|
+
MACHINES_ME_DIAGNOSTICS: `${API_BASE2}/machines/me/diagnostics`,
|
|
64497
64507
|
MACHINES_ME_CLIPS: `${API_BASE2}/machines/me/clips`,
|
|
64498
64508
|
MACHINES_ME_BROWSER_PROFILES: `${API_BASE2}/machines/me/browser-profiles`,
|
|
64499
64509
|
MACHINES_ME_BROWSER_PROFILE_STATUS: (profileId) => `${API_BASE2}/machines/me/browser-profiles/${profileId}/status`,
|
|
@@ -64583,6 +64593,7 @@ var ENDPOINTS = {
|
|
|
64583
64593
|
TRIGGER: (orgId, triggerId) => `${API_BASE2}/orgs/${orgId}/external-triggers/${triggerId}`,
|
|
64584
64594
|
/** @deprecated Use TRIGGER. Same compatibility path. */
|
|
64585
64595
|
EXTERNAL_TRIGGER: (orgId, triggerId) => `${API_BASE2}/orgs/${orgId}/external-triggers/${triggerId}`,
|
|
64596
|
+
PLATFORM_TRIGGER_SCHEMA: (orgId) => `${API_BASE2}/orgs/${orgId}/platform-trigger-schema`,
|
|
64586
64597
|
TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
|
|
64587
64598
|
/** @deprecated Use TRIGGER_RUNS. Same compatibility path. */
|
|
64588
64599
|
EXTERNAL_TRIGGER_RUNS: (orgId) => `${API_BASE2}/orgs/${orgId}/external-trigger-runs`,
|
|
@@ -64680,6 +64691,7 @@ var ENDPOINTS = {
|
|
|
64680
64691
|
// Wiki History (commits, file commits, blame)
|
|
64681
64692
|
WIKI_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/commits`,
|
|
64682
64693
|
WIKI_FILE_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/file-commits`,
|
|
64694
|
+
WIKI_PATH_ACTIVITY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-activity`,
|
|
64683
64695
|
WIKI_BLAME: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blame`,
|
|
64684
64696
|
// Wiki Operations (audit log)
|
|
64685
64697
|
WIKI_OPERATIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/operations`,
|
|
@@ -64759,6 +64771,8 @@ var ENDPOINTS = {
|
|
|
64759
64771
|
BILLING_CHECKOUT: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/checkout`,
|
|
64760
64772
|
BILLING_AUTO_RELOAD: (orgId) => `${API_BASE2}/orgs/${orgId}/billing/auto-reload`,
|
|
64761
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`,
|
|
64762
64776
|
COMPUTE_PRICING: () => `${API_BASE2}/billing/compute-pricing`,
|
|
64763
64777
|
// Runtime capability table (public, no auth) — SSOT for the create/settings
|
|
64764
64778
|
// interlock: per-runtime compute modes, native model family, cross-family
|
|
@@ -64793,16 +64807,6 @@ var ENDPOINTS = {
|
|
|
64793
64807
|
BROWSER_PROFILE_VIEWER_COMMAND: (orgId, profileId) => `${API_BASE2}/orgs/${orgId}/browser-profiles/${profileId}/viewer/command`,
|
|
64794
64808
|
// Edge device endpoints
|
|
64795
64809
|
...edgeEndpoints,
|
|
64796
|
-
ORG_BROWSER_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/browser-aliases`,
|
|
64797
|
-
ORG_BROWSER_ALIAS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}`,
|
|
64798
|
-
ORG_BROWSER_ALIAS_READINESS_CHECKS: (orgId, aliasId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks`,
|
|
64799
|
-
ORG_BROWSER_ALIAS_READINESS_CHECK: (orgId, aliasId, checkId) => `/api/v1/orgs/${orgId}/browser-aliases/${aliasId}/readiness-checks/${checkId}`,
|
|
64800
|
-
ORG_API_KEY_BROWSER_ALIAS_GRANTS: (orgId, keyId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants`,
|
|
64801
|
-
ORG_API_KEY_BROWSER_ALIAS_GRANT: (orgId, keyId, aliasId) => `/api/v1/orgs/${orgId}/api-keys/${keyId}/browser-alias-grants/${aliasId}`,
|
|
64802
|
-
ORG_MANAGED_ALIASES: (orgId) => `/api/v1/orgs/${orgId}/aliases`,
|
|
64803
|
-
ORG_MANAGED_ALIAS: (orgId, aliasName) => `/api/v1/orgs/${orgId}/aliases/${encodeURIComponent(aliasName)}`,
|
|
64804
|
-
ORG_BROWSER_ALIAS_EXECUTIONS: (orgId) => `/api/v1/orgs/${orgId}/executions`,
|
|
64805
|
-
ORG_BROWSER_ALIAS_EXECUTION: (orgId, requestId) => `/api/v1/orgs/${orgId}/executions/${encodeURIComponent(requestId)}`,
|
|
64806
64810
|
ORG_BROWSER_USE_OPERATIONS: (orgId) => `/api/v1/orgs/${orgId}/browser-use/operations`,
|
|
64807
64811
|
ORG_BROWSER_USE_OPERATION: (orgId, operationId) => `/api/v1/orgs/${orgId}/browser-use/operations/${encodeURIComponent(operationId)}`,
|
|
64808
64812
|
// Per-profile egress proxy (hosted Cloud Profiles; manager-only, human-only).
|
|
@@ -64815,8 +64819,7 @@ var ENDPOINTS = {
|
|
|
64815
64819
|
// Same request/reply shape as the v2 browser-profile viewer, on the v3 edge
|
|
64816
64820
|
// pipe. Additive: does NOT replace BROWSER_PROFILE_VIEWER_COMMAND.
|
|
64817
64821
|
ORG_EDGE_VIEWER_COMMAND: (orgId, edgeId) => `/api/v1/orgs/${orgId}/edge/${edgeId}/viewer/command`,
|
|
64818
|
-
|
|
64819
|
-
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
|
|
64822
|
+
...clipConnectionEndpoints,
|
|
64820
64823
|
// Clip registry (v3, org-scoped, served by api-server — `crg_` entries)
|
|
64821
64824
|
ORG_CLIP_REGISTRY: (orgId) => `/api/v1/orgs/${orgId}/clip-registry`,
|
|
64822
64825
|
ORG_CLIP_REGISTRY_RESOLVE: (orgId) => `/api/v1/orgs/${orgId}/clip-registry/resolve`,
|
|
@@ -65236,6 +65239,91 @@ var ChannelConversationClient = class extends SlackFilesClient {
|
|
|
65236
65239
|
}
|
|
65237
65240
|
};
|
|
65238
65241
|
|
|
65242
|
+
// ts/sdk/dist/clip-connection-client.js
|
|
65243
|
+
var ClipConnectionClient = class extends ChannelConversationClient {
|
|
65244
|
+
// ---- Clip connections ----
|
|
65245
|
+
async listClipConnections(orgId, clipId) {
|
|
65246
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
65247
|
+
}
|
|
65248
|
+
async createClipConnection(orgId, clipId, input) {
|
|
65249
|
+
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
65250
|
+
}
|
|
65251
|
+
async deleteClipConnection(orgId, connId) {
|
|
65252
|
+
return this.request("DELETE", ENDPOINTS.CLIP_CONNECTION(orgId, connId));
|
|
65253
|
+
}
|
|
65254
|
+
/** Organization members may read; personal connections are owner-only. */
|
|
65255
|
+
async getClipConnectionAccess(orgId, connId) {
|
|
65256
|
+
return this.request("GET", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId));
|
|
65257
|
+
}
|
|
65258
|
+
/** Human org owner/admin; accepts JWT or personal key. */
|
|
65259
|
+
async putClipConnectionAccess(orgId, connId, input) {
|
|
65260
|
+
return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId), input);
|
|
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
|
+
}
|
|
65276
|
+
};
|
|
65277
|
+
|
|
65278
|
+
// ts/sdk/dist/browser-profile-client.js
|
|
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
|
+
}
|
|
65318
|
+
async getBrowserProfileAccess(orgId, edgeId, profileName) {
|
|
65319
|
+
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName));
|
|
65320
|
+
}
|
|
65321
|
+
/** Replace the complete access policy; requires a human org owner/admin. */
|
|
65322
|
+
async putBrowserProfileAccess(orgId, edgeId, profileName, access) {
|
|
65323
|
+
return this.request("PUT", ENDPOINTS.ORG_EDGE_PROFILE_ACCESS(orgId, edgeId, profileName), access);
|
|
65324
|
+
}
|
|
65325
|
+
};
|
|
65326
|
+
|
|
65239
65327
|
// ts/sdk/dist/wiki-upload.js
|
|
65240
65328
|
function createWikiUploadFormData(params) {
|
|
65241
65329
|
const form = new FormData();
|
|
@@ -65372,7 +65460,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
65372
65460
|
detectedRuntimes
|
|
65373
65461
|
};
|
|
65374
65462
|
}
|
|
65375
|
-
var ParallClient = class _ParallClient extends
|
|
65463
|
+
var ParallClient = class _ParallClient extends BrowserProfileClient {
|
|
65376
65464
|
baseUrl;
|
|
65377
65465
|
wikiBaseUrl;
|
|
65378
65466
|
token;
|
|
@@ -65670,8 +65758,8 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
65670
65758
|
return this.request("POST", ENDPOINTS.AUTH_OAUTH_EXCHANGE, { code });
|
|
65671
65759
|
}
|
|
65672
65760
|
// ---- WebSocket ----
|
|
65673
|
-
async getWsTicket() {
|
|
65674
|
-
return this.request("POST", ENDPOINTS.WS_TICKET);
|
|
65761
|
+
async getWsTicket(req) {
|
|
65762
|
+
return this.request("POST", ENDPOINTS.WS_TICKET, req);
|
|
65675
65763
|
}
|
|
65676
65764
|
// ---- Users ----
|
|
65677
65765
|
async getMe() {
|
|
@@ -66406,6 +66494,17 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
66406
66494
|
await this.postMachineHeartbeat(legacyHeartbeatFromReport(report));
|
|
66407
66495
|
return "legacy";
|
|
66408
66496
|
}
|
|
66497
|
+
/**
|
|
66498
|
+
* Upload a diagnostics bundle from the machine itself (`mck_` bearer):
|
|
66499
|
+
* a gzip body the daemon assembled and redacted locally. Multipart so the
|
|
66500
|
+
* meta travels beside the file; the server indexes it for platform staff.
|
|
66501
|
+
*/
|
|
66502
|
+
async uploadMachineDiagnostics(bundle, meta = {}) {
|
|
66503
|
+
const form = new FormData();
|
|
66504
|
+
form.append("meta", JSON.stringify(meta));
|
|
66505
|
+
form.append("bundle", new Blob([new Uint8Array(bundle)], { type: "application/gzip" }), "diagnostics.json.gz");
|
|
66506
|
+
return this.multipartRequest("POST", ENDPOINTS.MACHINES_ME_DIAGNOSTICS, form, false, { timeoutMs: 2 * 60 * 1e3 });
|
|
66507
|
+
}
|
|
66409
66508
|
/**
|
|
66410
66509
|
* @deprecated Legacy form of `putMachineRuntimeReport`, kept for servers
|
|
66411
66510
|
* that predate it. `POST /machines/me/health` — report daemon state. All
|
|
@@ -66647,8 +66746,8 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
66647
66746
|
* no_action sweep otherwise. Idempotent.
|
|
66648
66747
|
*
|
|
66649
66748
|
* @deprecated Legacy ok-only alias — use {@link completeDispatch} with the
|
|
66650
|
-
* `sources` form, which also carries `turn_outcome`.
|
|
66651
|
-
*
|
|
66749
|
+
* `sources` form, which also carries `turn_outcome`. Retirement conditions:
|
|
66750
|
+
* agent-dispatch-idempotency-design.md#compatibility.
|
|
66652
66751
|
*/
|
|
66653
66752
|
async completeDispatchSources(orgId, req) {
|
|
66654
66753
|
return this.request("POST", ENDPOINTS.DISPATCH_COMPLETE_SOURCES(orgId), req);
|
|
@@ -66891,6 +66990,9 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
66891
66990
|
async getTriggerSchema(orgId, connectionId) {
|
|
66892
66991
|
return this.request("GET", ENDPOINTS.TRIGGER_SCHEMA(orgId, connectionId));
|
|
66893
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
|
+
}
|
|
66894
66996
|
async listTriggerIngressEvents(orgId, filters) {
|
|
66895
66997
|
return this.request("GET", ENDPOINTS.TRIGGER_INGRESS_EVENTS(orgId), void 0, filters);
|
|
66896
66998
|
}
|
|
@@ -66992,8 +67094,8 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
66992
67094
|
return url;
|
|
66993
67095
|
return `${this.baseUrlFor(url)}${url}`;
|
|
66994
67096
|
}
|
|
66995
|
-
async getWikiBlob(orgId, wikiId, params) {
|
|
66996
|
-
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);
|
|
66997
67099
|
if (blob.signed_url)
|
|
66998
67100
|
blob.signed_url = this.absoluteMediaUrl(blob.signed_url);
|
|
66999
67101
|
return blob;
|
|
@@ -67187,6 +67289,10 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67187
67289
|
...params
|
|
67188
67290
|
});
|
|
67189
67291
|
}
|
|
67292
|
+
/** Bounded, ACL-safe activity for one Wiki file path. */
|
|
67293
|
+
async getWikiPathActivity(orgId, wikiId, path7, opts) {
|
|
67294
|
+
return this.request("GET", ENDPOINTS.WIKI_PATH_ACTIVITY(orgId, wikiId), void 0, { path: path7 }, false, opts);
|
|
67295
|
+
}
|
|
67190
67296
|
async getWikiBlame(orgId, wikiId, path7, ref) {
|
|
67191
67297
|
return this.request("GET", ENDPOINTS.WIKI_BLAME(orgId, wikiId), void 0, { path: path7, ref });
|
|
67192
67298
|
}
|
|
@@ -67362,6 +67468,21 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67362
67468
|
async getBilling(orgId) {
|
|
67363
67469
|
return this.request("GET", ENDPOINTS.BILLING(orgId));
|
|
67364
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
|
+
}
|
|
67365
67486
|
async listBillingTransactions(orgId, opts) {
|
|
67366
67487
|
const params = new URLSearchParams();
|
|
67367
67488
|
if (opts?.cursor)
|
|
@@ -67531,12 +67652,14 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67531
67652
|
}
|
|
67532
67653
|
// ---- Clip registry (v3, api-server org registry — `crg_` entries) ----
|
|
67533
67654
|
/**
|
|
67534
|
-
* List registry clips visible to the org: its own plus
|
|
67535
|
-
* cross-org entries
|
|
67536
|
-
* 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.
|
|
67537
67657
|
*/
|
|
67538
|
-
async listOrgRegistryClips(orgId) {
|
|
67539
|
-
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}`);
|
|
67540
67663
|
return resp ?? [];
|
|
67541
67664
|
}
|
|
67542
67665
|
/**
|
|
@@ -67617,7 +67740,6 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67617
67740
|
/**
|
|
67618
67741
|
* Read a clip's per-org exec access (by user id — humans and agents alike).
|
|
67619
67742
|
* Org-member readable, so a denied caller can learn why exec answered
|
|
67620
|
-
* `CLIP_NOT_ALLOWED` / `CLIP_CONNECTION_NOT_ALLOWED` (agents:
|
|
67621
67743
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED`). Writing
|
|
67622
67744
|
* it (`putClipAgentExecAccess`) is an org owner/admin's act.
|
|
67623
67745
|
*/
|
|
@@ -67657,6 +67779,19 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67657
67779
|
async deleteEdgeDevice(orgId, edgeId) {
|
|
67658
67780
|
return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId));
|
|
67659
67781
|
}
|
|
67782
|
+
/** Move the human caller's OWN BYOC device between the org layer and their
|
|
67783
|
+
* personal layer (ADR-020). `member` takes the device — and every clip
|
|
67784
|
+
* connection bound to it — out of the org's sight and into the owner's sole
|
|
67785
|
+
* custody; `org` shares it back, after which an org admin binds clips to it
|
|
67786
|
+
* and the clip's access list governs exec. Idempotent. Refused for hosted
|
|
67787
|
+
* profiles (`EDGE_NOT_PERSONALIZABLE`), for anyone but the owner
|
|
67788
|
+
* (`FORBIDDEN`; someone else's personal device is `NOT_FOUND`), and for
|
|
67789
|
+
* agents. */
|
|
67790
|
+
async setEdgeManagedBy(orgId, edgeId, managedBy) {
|
|
67791
|
+
return this.request("PATCH", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId), {
|
|
67792
|
+
managed_by: managedBy
|
|
67793
|
+
});
|
|
67794
|
+
}
|
|
67660
67795
|
/** Idempotently remove the human caller's own offline BYOC registration.
|
|
67661
67796
|
* A live connection returns `EDGE_ONLINE`. */
|
|
67662
67797
|
async unregisterEdgeDevice(orgId, edgeId) {
|
|
@@ -67685,69 +67820,6 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67685
67820
|
async getEdgeProfileOperation(orgId, edgeId, operationId) {
|
|
67686
67821
|
return this.request("GET", ENDPOINTS.ORG_EDGE_PROFILE_OPERATION(orgId, edgeId, operationId));
|
|
67687
67822
|
}
|
|
67688
|
-
/** Create and atomically materialize one Local BYOC Browser Alias. A replay
|
|
67689
|
-
* with the same idempotency key and body returns the original stable ccn_. */
|
|
67690
|
-
async createBrowserAlias(orgId, request) {
|
|
67691
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIASES(orgId), request);
|
|
67692
|
-
}
|
|
67693
|
-
async listBrowserAliases(orgId) {
|
|
67694
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIASES(orgId));
|
|
67695
|
-
}
|
|
67696
|
-
async getBrowserAlias(orgId, aliasId) {
|
|
67697
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId));
|
|
67698
|
-
}
|
|
67699
|
-
async renameBrowserAlias(orgId, aliasId, request) {
|
|
67700
|
-
return this.request("PATCH", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
67701
|
-
}
|
|
67702
|
-
async deleteBrowserAlias(orgId, aliasId, request) {
|
|
67703
|
-
return this.request("DELETE", ENDPOINTS.ORG_BROWSER_ALIAS(orgId, aliasId), request);
|
|
67704
|
-
}
|
|
67705
|
-
/** Start one durable readiness check. The key is carried as the standard
|
|
67706
|
-
* Idempotency-Key header; the request body is intentionally empty. */
|
|
67707
|
-
async createBrowserAliasReadinessCheck(orgId, aliasId, request) {
|
|
67708
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECKS(orgId, aliasId), void 0, void 0, false, { headers: { "Idempotency-Key": request.idempotency_key } });
|
|
67709
|
-
}
|
|
67710
|
-
/** Sole durable recovery surface for one readiness request. */
|
|
67711
|
-
async getBrowserAliasReadinessCheck(orgId, aliasId, checkId) {
|
|
67712
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_READINESS_CHECK(orgId, aliasId, checkId));
|
|
67713
|
-
}
|
|
67714
|
-
/** Organization Owner view. Hashes, reviewed snapshots and deltas are
|
|
67715
|
-
* intentionally available only on this human-JWT management surface. */
|
|
67716
|
-
async listBrowserAliasGrants(orgId, keyId) {
|
|
67717
|
-
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANTS(orgId, keyId));
|
|
67718
|
-
}
|
|
67719
|
-
async getBrowserAliasGrant(orgId, keyId, aliasId) {
|
|
67720
|
-
return this.request("GET", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId));
|
|
67721
|
-
}
|
|
67722
|
-
async replaceBrowserAliasGrant(orgId, keyId, aliasId, request) {
|
|
67723
|
-
return this.request("PUT", ENDPOINTS.ORG_API_KEY_BROWSER_ALIAS_GRANT(orgId, keyId, aliasId), request);
|
|
67724
|
-
}
|
|
67725
|
-
/** Managed-key discovery. The response is already grant-filtered and never
|
|
67726
|
-
* carries contract hashes, review snapshots, Edge IDs or Profile IDs. */
|
|
67727
|
-
async listManagedBrowserAliases(orgId) {
|
|
67728
|
-
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIASES(orgId));
|
|
67729
|
-
}
|
|
67730
|
-
async getManagedBrowserAlias(orgId, aliasName) {
|
|
67731
|
-
return this.request("GET", ENDPOINTS.ORG_MANAGED_ALIAS(orgId, aliasName));
|
|
67732
|
-
}
|
|
67733
|
-
/** Accept and dispatch one @alias command. request_id is generated by the
|
|
67734
|
-
* caller before local validation and is also the sole durable recovery key. */
|
|
67735
|
-
async createBrowserAliasExecution(orgId, request) {
|
|
67736
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTIONS(orgId), request);
|
|
67737
|
-
}
|
|
67738
|
-
async getBrowserAliasExecution(orgId, requestId) {
|
|
67739
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_ALIAS_EXECUTION(orgId, requestId));
|
|
67740
|
-
}
|
|
67741
|
-
/** Accept one idempotent Browser Use operation for an explicit Profile.
|
|
67742
|
-
* The Server resolves Profile→Edge; callers never select an Edge directly. */
|
|
67743
|
-
async createBrowserUseOperation(orgId, request) {
|
|
67744
|
-
return this.request("POST", ENDPOINTS.ORG_BROWSER_USE_OPERATIONS(orgId), request);
|
|
67745
|
-
}
|
|
67746
|
-
/** Recover the durable receipt. Successful data is present only inside the
|
|
67747
|
-
* Server's short encrypted result TTL; terminal proof remains afterwards. */
|
|
67748
|
-
async getBrowserUseOperation(orgId, operationId) {
|
|
67749
|
-
return this.request("GET", ENDPOINTS.ORG_BROWSER_USE_OPERATION(orgId, operationId));
|
|
67750
|
-
}
|
|
67751
67823
|
/**
|
|
67752
67824
|
* Read a hosted Cloud Profile's egress-proxy status (manager-only: hosted
|
|
67753
67825
|
* human maintainer or org admin). Sanitized — the password never comes back.
|
|
@@ -67856,9 +67928,8 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67856
67928
|
* - `EDGE_DEADLINE_EXCEEDED` 504 — arrived late, provably NOT executed.
|
|
67857
67929
|
* - `EDGE_HOSTED_DISABLED_FOR_ORG` 403, `EDGE_REPAIR` 503 (operator-held),
|
|
67858
67930
|
* `EDGE_RUNTIME_UNAVAILABLE` 503 (deployment has no hosted runtime).
|
|
67859
|
-
* - Access errors (
|
|
67860
|
-
*
|
|
67861
|
-
* not cover this connection) — agent principals receive the historical
|
|
67931
|
+
* - Access errors (before side effects): human `CONNECTION_NOT_ALLOWED`.
|
|
67932
|
+
* Agent principals receive the historical
|
|
67862
67933
|
* `CLIP_AGENT_NOT_ALLOWED` / `CLIP_AGENT_CONNECTION_NOT_ALLOWED` for one
|
|
67863
67934
|
* release. An org owner/admin can widen access in the clip's settings.
|
|
67864
67935
|
* - Routing errors: `CONNECTION_REQUIRED`, `CONNECTION_NOT_FOUND`,
|
|
@@ -67880,16 +67951,6 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67880
67951
|
throw err;
|
|
67881
67952
|
}
|
|
67882
67953
|
}
|
|
67883
|
-
// ---- Clip connections ----
|
|
67884
|
-
async listClipConnections(orgId, clipId) {
|
|
67885
|
-
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
67886
|
-
}
|
|
67887
|
-
async createClipConnection(orgId, clipId, input) {
|
|
67888
|
-
return this.request("POST", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId), input);
|
|
67889
|
-
}
|
|
67890
|
-
async deleteClipConnection(orgId, connId) {
|
|
67891
|
-
return this.request("DELETE", ENDPOINTS.CLIP_CONNECTION(orgId, connId));
|
|
67892
|
-
}
|
|
67893
67954
|
// ---- MCP clip server config (same-org or reviewed Official OAuth) ----
|
|
67894
67955
|
/**
|
|
67895
67956
|
* Read the redacted MCP config. 404 NOT_FOUND when the clip has none yet —
|
|
@@ -67951,17 +68012,6 @@ var ParallClient = class _ParallClient extends ChannelConversationClient {
|
|
|
67951
68012
|
timeoutMs: 4e4
|
|
67952
68013
|
});
|
|
67953
68014
|
}
|
|
67954
|
-
/** Start a new Official OAuth MCP connection with the platform-owned app.
|
|
67955
|
-
* Omitting oauth_client is load-bearing: the server resolves the exact
|
|
67956
|
-
* reviewed-version binding and never falls back to DCR/CIMD cross-org. */
|
|
67957
|
-
async createClipMCPOAuthConnection(orgId, clipId, serverUrl, alias, oauthClient) {
|
|
67958
|
-
return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), {
|
|
67959
|
-
server_url: serverUrl,
|
|
67960
|
-
auth_type: "oauth",
|
|
67961
|
-
...alias ? { alias } : {},
|
|
67962
|
-
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
67963
|
-
});
|
|
67964
|
-
}
|
|
67965
68015
|
/** Re-authorize an existing MCP credential slot. */
|
|
67966
68016
|
async initiateClipMCPOAuthById(orgId, clipId, configId, serverUrl, expectedVersion, oauthClient) {
|
|
67967
68017
|
const req = {
|
|
@@ -68132,6 +68182,16 @@ function buildApiError(res, rawErrorBody) {
|
|
|
68132
68182
|
return apiError;
|
|
68133
68183
|
}
|
|
68134
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
|
+
|
|
68135
68195
|
// ts/agent-core/dist/lane-target.js
|
|
68136
68196
|
var PRLL_SCHEME = "prll://";
|
|
68137
68197
|
var CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|