@parall/daemon 1.65.0 → 1.67.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 +185 -39
- package/bundle/parall-claude-agent.js +4551 -4254
- package/bundle/parall-codex-agent.js +4400 -4107
- package/bundle/parall-daemon.js +960 -567
- 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.67.0",
|
|
3
|
+
"built_at": "2026-09-21T03:49:42.703Z",
|
|
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": "a87802bc5a848a34d2058b780c48a577d3890e5dce343e0d7459024ff8a9538d",
|
|
20
|
+
"size": 3042316
|
|
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": "a3c6e0d7d81ee42c6ad5632a04ba4c80c32d6e75a170ca86d1f90a8ed5176109",
|
|
28
|
+
"size": 3005141
|
|
29
29
|
},
|
|
30
30
|
"parall-codex-agent.js": {
|
|
31
|
-
"sha256": "
|
|
32
|
-
"size":
|
|
31
|
+
"sha256": "b02b6ca3280f0417a977d2045a472f66180c48c491e078cf3bac45644ea8e8fa",
|
|
32
|
+
"size": 3027335
|
|
33
33
|
},
|
|
34
34
|
"parall-daemon.js": {
|
|
35
|
-
"sha256": "
|
|
36
|
-
"size":
|
|
35
|
+
"sha256": "d4b1b60ad805f695b104a3b2f755b2af71aaf046f26528e187f60f3e9c3f007f",
|
|
36
|
+
"size": 3216708
|
|
37
37
|
},
|
|
38
38
|
"parall-openclaw-agent.js": {
|
|
39
39
|
"sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
|
|
40
40
|
"size": 9923
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"signature": "
|
|
43
|
+
"signature": "8OfljP8cO9ZvVuGWwPV72VPbHr16dUEomkdQ+6xu3KvLUR/gSqEy/n/OIjBj8ljH+mGLCb7Rn1ekNdOTQXrKCw=="
|
|
44
44
|
}
|
|
@@ -64279,6 +64279,16 @@ function renderPlatformReferenceGuide(skillsAvailable) {
|
|
|
64279
64279
|
var PLATFORM_BEHAVIOR = renderPlatformBehavior(true);
|
|
64280
64280
|
var PLATFORM_REFERENCE_GUIDE = renderPlatformReferenceGuide(true);
|
|
64281
64281
|
|
|
64282
|
+
// ts/sdk/dist/browser-use-contract.generated.js
|
|
64283
|
+
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 } } };
|
|
64284
|
+
|
|
64285
|
+
// ts/sdk/dist/browser-use-validation.js
|
|
64286
|
+
var BROWSER_USE_ACTION_SCHEMAS = browserUseContract.actions;
|
|
64287
|
+
var BROWSER_USE_ACTIONS = Object.freeze(Object.keys(BROWSER_USE_ACTION_SCHEMAS));
|
|
64288
|
+
|
|
64289
|
+
// ts/sdk/dist/browser-use-receipt.js
|
|
64290
|
+
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(" ");
|
|
64291
|
+
|
|
64282
64292
|
// ts/sdk/dist/browser-viewer.js
|
|
64283
64293
|
var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
|
|
64284
64294
|
function browserViewerRequestOptions(command, opts) {
|
|
@@ -64290,17 +64300,13 @@ function browserViewerRequestOptions(command, opts) {
|
|
|
64290
64300
|
};
|
|
64291
64301
|
}
|
|
64292
64302
|
|
|
64293
|
-
// ts/sdk/dist/
|
|
64294
|
-
function
|
|
64303
|
+
// ts/sdk/dist/attachment-endpoints.js
|
|
64304
|
+
function attachmentEndpoints(apiBase) {
|
|
64295
64305
|
return {
|
|
64296
|
-
|
|
64297
|
-
|
|
64298
|
-
|
|
64299
|
-
|
|
64300
|
-
SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
|
|
64301
|
-
SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
|
|
64302
|
-
SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
|
|
64303
|
-
SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
|
|
64306
|
+
UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
|
|
64307
|
+
UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
|
|
64308
|
+
UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
|
|
64309
|
+
FILE: (id) => `${apiBase}/files/${id}`
|
|
64304
64310
|
};
|
|
64305
64311
|
}
|
|
64306
64312
|
|
|
@@ -64312,16 +64318,6 @@ var clipConnectionEndpoints = {
|
|
|
64312
64318
|
CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`
|
|
64313
64319
|
};
|
|
64314
64320
|
|
|
64315
|
-
// ts/sdk/dist/attachment-endpoints.js
|
|
64316
|
-
function attachmentEndpoints(apiBase) {
|
|
64317
|
-
return {
|
|
64318
|
-
UPLOAD_PRESIGN: (orgId) => `${apiBase}/orgs/${orgId}/upload/presign`,
|
|
64319
|
-
UPLOAD_COMPLETE: (orgId) => `${apiBase}/orgs/${orgId}/upload/complete`,
|
|
64320
|
-
UPLOAD_ABORT: (orgId) => `${apiBase}/orgs/${orgId}/upload/abort`,
|
|
64321
|
-
FILE: (id) => `${apiBase}/files/${id}`
|
|
64322
|
-
};
|
|
64323
|
-
}
|
|
64324
|
-
|
|
64325
64321
|
// ts/sdk/dist/edge-endpoints.js
|
|
64326
64322
|
var API_BASE = "/api/v1";
|
|
64327
64323
|
var edgeEndpoints = {
|
|
@@ -64338,6 +64334,20 @@ var edgeEndpoints = {
|
|
|
64338
64334
|
ORG_EDGE_PROFILE_OPERATION_CONFIRM: (orgId, edgeId, operationId) => `${API_BASE}/orgs/${orgId}/edge/${edgeId}/profile-operations/${operationId}/confirm`
|
|
64339
64335
|
};
|
|
64340
64336
|
|
|
64337
|
+
// ts/sdk/dist/slack-endpoints.js
|
|
64338
|
+
function slackEndpoints(apiBase) {
|
|
64339
|
+
return {
|
|
64340
|
+
SLACK_CHANNELS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/channels`,
|
|
64341
|
+
SLACK_USERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/users`,
|
|
64342
|
+
SLACK_REPLIES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/replies`,
|
|
64343
|
+
SLACK_HISTORY: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/history`,
|
|
64344
|
+
SLACK_MEMBERS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/members`,
|
|
64345
|
+
SLACK_STATUS: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/status`,
|
|
64346
|
+
SLACK_FILE: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/file`,
|
|
64347
|
+
SLACK_FILES: (orgId) => `${apiBase}/orgs/${orgId}/agents/me/slack/files`
|
|
64348
|
+
};
|
|
64349
|
+
}
|
|
64350
|
+
|
|
64341
64351
|
// ts/sdk/dist/wechat-endpoints.js
|
|
64342
64352
|
function wechatEndpoints(apiBase) {
|
|
64343
64353
|
const agentBase = (orgId) => `${apiBase}/orgs/${orgId}/agents/me/wechat`;
|
|
@@ -64546,6 +64556,7 @@ var ENDPOINTS = {
|
|
|
64546
64556
|
TASK_RELATIONS: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/relations`,
|
|
64547
64557
|
TASK_RELATION: (orgId, taskId, relId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/relations/${relId}`,
|
|
64548
64558
|
TASK_RELATIONS_BY_TARGET: (orgId) => `${API_BASE2}/orgs/${orgId}/task-relations`,
|
|
64559
|
+
TASK_DEPENDENCIES: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/dependencies`,
|
|
64549
64560
|
TASK_COMMENTS: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/comments`,
|
|
64550
64561
|
TASK_COMMENT: (orgId, taskId, commentId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/comments/${commentId}`,
|
|
64551
64562
|
TASK_ACTIVITIES: (orgId, taskId) => `${API_BASE2}/orgs/${orgId}/tasks/${taskId}/activities`,
|
|
@@ -64554,6 +64565,13 @@ var ENDPOINTS = {
|
|
|
64554
64565
|
// Labels (org-scoped vocabulary; writes are admin-gated)
|
|
64555
64566
|
LABELS: (orgId) => `${API_BASE2}/orgs/${orgId}/labels`,
|
|
64556
64567
|
LABEL: (orgId, labelId) => `${API_BASE2}/orgs/${orgId}/labels/${labelId}`,
|
|
64568
|
+
// Mini Apps (project-scoped entity; routes exist only under cap:mini-apps)
|
|
64569
|
+
MINI_APPS: (orgId) => `${API_BASE2}/orgs/${orgId}/apps`,
|
|
64570
|
+
MINI_APP: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}`,
|
|
64571
|
+
MINI_APP_ARCHIVE: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/archive`,
|
|
64572
|
+
MINI_APP_RESTORE: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/restore`,
|
|
64573
|
+
MINI_APP_AUTHORS: (orgId, appId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/authors`,
|
|
64574
|
+
MINI_APP_AUTHOR: (orgId, appId, userId) => `${API_BASE2}/orgs/${orgId}/apps/${appId}/authors/${userId}`,
|
|
64557
64575
|
// Projects (org-scoped)
|
|
64558
64576
|
PROJECTS: (orgId) => `${API_BASE2}/orgs/${orgId}/projects`,
|
|
64559
64577
|
PROJECT_TASK_SUMMARY: (orgId) => `${API_BASE2}/orgs/${orgId}/projects/task-summary`,
|
|
@@ -64664,6 +64682,11 @@ var ENDPOINTS = {
|
|
|
64664
64682
|
WIKI_TREE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree`,
|
|
64665
64683
|
WIKI_TREE_LAST_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree/last-commits`,
|
|
64666
64684
|
WIKI_BLOB: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blob`,
|
|
64685
|
+
// Wiki shared-draft room control plane (wiki-shared-draft-design.md §7).
|
|
64686
|
+
// Mounted only when cap:wiki-shared-drafts is on; absent otherwise.
|
|
64687
|
+
WIKI_DRAFT_OPEN: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/open`,
|
|
64688
|
+
WIKI_DRAFT_STATUS: (orgId, wikiId, draftId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/${draftId}/status`,
|
|
64689
|
+
WIKI_DRAFT_SOCKET: (orgId, wikiId, draftId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/drafts/${draftId}/socket`,
|
|
64667
64690
|
WIKI_COPY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/copy`,
|
|
64668
64691
|
WIKI_NODE_SECTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/node-sections`,
|
|
64669
64692
|
WIKI_SEARCH: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/search`,
|
|
@@ -64955,6 +64978,13 @@ var ProjectTaskClient = class {
|
|
|
64955
64978
|
async deleteTaskRelation(orgId, taskId, relationId) {
|
|
64956
64979
|
return this.request("DELETE", ENDPOINTS.TASK_RELATION(orgId, taskId, relationId));
|
|
64957
64980
|
}
|
|
64981
|
+
async getTaskDependencies(orgId, taskId) {
|
|
64982
|
+
const res = await this.request("GET", ENDPOINTS.TASK_DEPENDENCIES(orgId, taskId));
|
|
64983
|
+
return {
|
|
64984
|
+
blocked_by: res.blocked_by ?? [],
|
|
64985
|
+
blocking: res.blocking ?? []
|
|
64986
|
+
};
|
|
64987
|
+
}
|
|
64958
64988
|
async getTaskComments(orgId, taskId, params) {
|
|
64959
64989
|
return this.request("GET", ENDPOINTS.TASK_COMMENTS(orgId, taskId), void 0, params);
|
|
64960
64990
|
}
|
|
@@ -65013,8 +65043,9 @@ var ProjectTaskClient = class {
|
|
|
65013
65043
|
return res.data;
|
|
65014
65044
|
}
|
|
65015
65045
|
/** Public-tier self-admission: writes the caller's own member row.
|
|
65016
|
-
* Other tiers answer `
|
|
65017
|
-
* `
|
|
65046
|
+
* Other tiers answer `403 PERMISSION_DENIED` with `details.project`
|
|
65047
|
+
* (its `visibility` tells whether to request-join or ask for an invite);
|
|
65048
|
+
* a duplicate answers `409 MEMBER_EXISTS`. */
|
|
65018
65049
|
async joinProject(orgId, projectId) {
|
|
65019
65050
|
return this.request("POST", ENDPOINTS.PROJECT_JOIN(orgId, projectId));
|
|
65020
65051
|
}
|
|
@@ -65104,8 +65135,48 @@ var WechatClient = class extends TaskLabelClient {
|
|
|
65104
65135
|
}
|
|
65105
65136
|
};
|
|
65106
65137
|
|
|
65138
|
+
// ts/sdk/dist/mini-app-client.js
|
|
65139
|
+
var MiniAppClient = class extends WechatClient {
|
|
65140
|
+
async getMiniApps(orgId, query = {}) {
|
|
65141
|
+
const response = await this.request("GET", ENDPOINTS.MINI_APPS(orgId), void 0, {
|
|
65142
|
+
project_id: query.project_id,
|
|
65143
|
+
include_archived: query.include_archived ? "true" : void 0
|
|
65144
|
+
});
|
|
65145
|
+
return response.data;
|
|
65146
|
+
}
|
|
65147
|
+
async getMiniApp(orgId, appId) {
|
|
65148
|
+
return this.request("GET", ENDPOINTS.MINI_APP(orgId, appId));
|
|
65149
|
+
}
|
|
65150
|
+
async createMiniApp(orgId, data2) {
|
|
65151
|
+
return this.request("POST", ENDPOINTS.MINI_APPS(orgId), data2);
|
|
65152
|
+
}
|
|
65153
|
+
async updateMiniApp(orgId, appId, data2) {
|
|
65154
|
+
return this.request("PATCH", ENDPOINTS.MINI_APP(orgId, appId), data2);
|
|
65155
|
+
}
|
|
65156
|
+
async archiveMiniApp(orgId, appId) {
|
|
65157
|
+
return this.request("POST", ENDPOINTS.MINI_APP_ARCHIVE(orgId, appId));
|
|
65158
|
+
}
|
|
65159
|
+
async restoreMiniApp(orgId, appId) {
|
|
65160
|
+
return this.request("POST", ENDPOINTS.MINI_APP_RESTORE(orgId, appId));
|
|
65161
|
+
}
|
|
65162
|
+
async getMiniAppAuthors(orgId, appId) {
|
|
65163
|
+
const response = await this.request("GET", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId));
|
|
65164
|
+
return response.data;
|
|
65165
|
+
}
|
|
65166
|
+
/** Idempotent: re-adding an existing author returns the roster unchanged. */
|
|
65167
|
+
async addMiniAppAuthor(orgId, appId, userId) {
|
|
65168
|
+
const response = await this.request("POST", ENDPOINTS.MINI_APP_AUTHORS(orgId, appId), {
|
|
65169
|
+
user_id: userId
|
|
65170
|
+
});
|
|
65171
|
+
return response.data;
|
|
65172
|
+
}
|
|
65173
|
+
async removeMiniAppAuthor(orgId, appId, userId) {
|
|
65174
|
+
return this.request("DELETE", ENDPOINTS.MINI_APP_AUTHOR(orgId, appId, userId));
|
|
65175
|
+
}
|
|
65176
|
+
};
|
|
65177
|
+
|
|
65107
65178
|
// ts/sdk/dist/llm-provider-client.js
|
|
65108
|
-
var LLMProviderClient = class extends
|
|
65179
|
+
var LLMProviderClient = class extends MiniAppClient {
|
|
65109
65180
|
async getLLMProviders(orgId) {
|
|
65110
65181
|
const response = await this.request("GET", ENDPOINTS.LLM_PROVIDERS(orgId));
|
|
65111
65182
|
return response.data;
|
|
@@ -65374,6 +65445,91 @@ var BrowserProfileClient = class extends ClipConnectionClient {
|
|
|
65374
65445
|
}
|
|
65375
65446
|
};
|
|
65376
65447
|
|
|
65448
|
+
// ts/sdk/dist/wiki-draft-types.js
|
|
65449
|
+
var WIKI_DRAFT_SCHEMA_VERSION = 1;
|
|
65450
|
+
var IDENTIFIER = /^[A-Za-z0-9_.:-]{1,128}$/;
|
|
65451
|
+
function isWikiDraftScope(value) {
|
|
65452
|
+
if (!value || typeof value !== "object")
|
|
65453
|
+
return false;
|
|
65454
|
+
const scope = value;
|
|
65455
|
+
return ["lane", "org_id", "wiki_id", "draft_id", "incarnation"].every((key) => typeof scope[key] === "string" && IDENTIFIER.test(scope[key])) && Number.isSafeInteger(scope.generation) && scope.generation >= 1;
|
|
65456
|
+
}
|
|
65457
|
+
function sameWikiDraftScope(left, right) {
|
|
65458
|
+
return left.lane === right.lane && left.org_id === right.org_id && left.wiki_id === right.wiki_id && left.draft_id === right.draft_id && left.incarnation === right.incarnation && left.generation === right.generation;
|
|
65459
|
+
}
|
|
65460
|
+
var WIRE_TIMESTAMP = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(?:Z|[+-](\d{2}):(\d{2}))$/;
|
|
65461
|
+
function isWireTimestamp(value) {
|
|
65462
|
+
if (typeof value !== "string")
|
|
65463
|
+
return false;
|
|
65464
|
+
const m3 = WIRE_TIMESTAMP.exec(value);
|
|
65465
|
+
if (!m3)
|
|
65466
|
+
return false;
|
|
65467
|
+
const [year2, month, day, hour, minute, second] = m3.slice(1, 7).map(Number);
|
|
65468
|
+
if (month < 1 || month > 12)
|
|
65469
|
+
return false;
|
|
65470
|
+
const leap = year2 % 4 === 0 && (year2 % 100 !== 0 || year2 % 400 === 0);
|
|
65471
|
+
const daysInMonth = [31, leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
|
|
65472
|
+
if (day < 1 || day > daysInMonth)
|
|
65473
|
+
return false;
|
|
65474
|
+
if (hour > 23 || minute > 59 || second > 59)
|
|
65475
|
+
return false;
|
|
65476
|
+
if (m3[7] !== void 0 && (Number(m3[7]) > 23 || Number(m3[8]) > 59))
|
|
65477
|
+
return false;
|
|
65478
|
+
return true;
|
|
65479
|
+
}
|
|
65480
|
+
function isWikiDraftConnection(value) {
|
|
65481
|
+
if (!value || typeof value !== "object")
|
|
65482
|
+
return false;
|
|
65483
|
+
const c5 = value;
|
|
65484
|
+
return isWikiDraftScope(c5.scope) && c5.schema_version === WIKI_DRAFT_SCHEMA_VERSION && Number.isSafeInteger(c5.seq) && c5.seq >= 0 && typeof c5.actor_id === "string" && c5.actor_id.length > 0 && typeof c5.actor_token === "string" && c5.actor_token.length > 0 && typeof c5.websocket_url === "string" && c5.websocket_url.startsWith("/") && isWireTimestamp(c5.issued_at) && isWireTimestamp(c5.expires_at);
|
|
65485
|
+
}
|
|
65486
|
+
function isWikiDraftStatus(value) {
|
|
65487
|
+
if (!value || typeof value !== "object")
|
|
65488
|
+
return false;
|
|
65489
|
+
const s = value;
|
|
65490
|
+
const owner = s.owner;
|
|
65491
|
+
return isWikiDraftScope(s.scope) && typeof s.path === "string" && s.schema_version === WIKI_DRAFT_SCHEMA_VERSION && Number.isSafeInteger(s.seq) && s.seq >= 0 && typeof s.base_commit === "string" && typeof s.base_blob === "string" && (s.state === "active" || s.state === "conflicted" || s.state === "retired") && (owner === null || !!owner && typeof owner === "object" && typeof owner.instance === "string" && Number.isSafeInteger(owner.epoch) && isWireTimestamp(owner.lease_deadline)) && isWireTimestamp(s.updated_at);
|
|
65492
|
+
}
|
|
65493
|
+
|
|
65494
|
+
// ts/sdk/dist/wiki-draft-client.js
|
|
65495
|
+
var WikiDraftClient = class extends BrowserProfileClient {
|
|
65496
|
+
/**
|
|
65497
|
+
* Open (or rejoin) the shared draft of an existing formal Markdown path.
|
|
65498
|
+
* No content is uploaded; the server pins the Git baseline itself.
|
|
65499
|
+
* Only call this when `cap:wiki-shared-drafts` and the org flag are on —
|
|
65500
|
+
* the routes do not exist otherwise.
|
|
65501
|
+
*/
|
|
65502
|
+
async openWikiDraft(orgId, wikiId, path7, opts) {
|
|
65503
|
+
const connection = await this.request("POST", ENDPOINTS.WIKI_DRAFT_OPEN(orgId, wikiId), { path: path7 }, void 0, false, opts);
|
|
65504
|
+
if (!isWikiDraftConnection(connection) || connection.scope.org_id !== orgId || connection.scope.wiki_id !== wikiId) {
|
|
65505
|
+
throw new Error("DRAFT_SCOPE");
|
|
65506
|
+
}
|
|
65507
|
+
const socketPath = ENDPOINTS.WIKI_DRAFT_SOCKET(orgId, wikiId, connection.scope.draft_id);
|
|
65508
|
+
if (connection.websocket_url !== socketPath)
|
|
65509
|
+
throw new Error("DRAFT_SCOPE");
|
|
65510
|
+
const base = this.baseUrlFor(socketPath);
|
|
65511
|
+
const locationOrigin = typeof globalThis.location === "undefined" ? void 0 : globalThis.location.origin;
|
|
65512
|
+
const socket = new URL(`${base}${socketPath}`, locationOrigin);
|
|
65513
|
+
if (!["http:", "https:"].includes(socket.protocol) || socket.username || socket.password || socket.search || socket.hash) {
|
|
65514
|
+
throw new Error("DRAFT_SCOPE");
|
|
65515
|
+
}
|
|
65516
|
+
socket.protocol = socket.protocol === "https:" ? "wss:" : "ws:";
|
|
65517
|
+
return { ...connection, websocket_url: socket.href };
|
|
65518
|
+
}
|
|
65519
|
+
/** Durable draft metadata under the caller's current read permission. Never uploads content. */
|
|
65520
|
+
async getWikiDraftStatus(scope, opts) {
|
|
65521
|
+
const status = await this.request("GET", ENDPOINTS.WIKI_DRAFT_STATUS(scope.org_id, scope.wiki_id, scope.draft_id), void 0, { lane: scope.lane, incarnation: scope.incarnation, generation: String(scope.generation) }, false, opts);
|
|
65522
|
+
if (!isWikiDraftStatus(status) || !sameWikiDraftScope(status.scope, scope)) {
|
|
65523
|
+
throw new Error("DRAFT_SCOPE");
|
|
65524
|
+
}
|
|
65525
|
+
return status;
|
|
65526
|
+
}
|
|
65527
|
+
/** Subprotocol tokens for the room WebSocket handshake: protocol + ticket. */
|
|
65528
|
+
wikiDraftSocketProtocols(connection) {
|
|
65529
|
+
return ["parall.wiki.v1", `ticket.${connection.actor_token}`];
|
|
65530
|
+
}
|
|
65531
|
+
};
|
|
65532
|
+
|
|
65377
65533
|
// ts/sdk/dist/wiki-upload.js
|
|
65378
65534
|
function createWikiUploadFormData(params) {
|
|
65379
65535
|
const form = new FormData();
|
|
@@ -65510,7 +65666,7 @@ function legacyHeartbeatFromReport(report) {
|
|
|
65510
65666
|
detectedRuntimes
|
|
65511
65667
|
};
|
|
65512
65668
|
}
|
|
65513
|
-
var ParallClient = class _ParallClient extends
|
|
65669
|
+
var ParallClient = class _ParallClient extends WikiDraftClient {
|
|
65514
65670
|
baseUrl;
|
|
65515
65671
|
wikiBaseUrl;
|
|
65516
65672
|
token;
|
|
@@ -68200,20 +68356,6 @@ function buildApiError(res, rawErrorBody) {
|
|
|
68200
68356
|
return apiError;
|
|
68201
68357
|
}
|
|
68202
68358
|
|
|
68203
|
-
// ts/sdk/dist/browser-use-contract.generated.js
|
|
68204
|
-
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 } } };
|
|
68205
|
-
|
|
68206
|
-
// ts/sdk/dist/browser-use-validation.js
|
|
68207
|
-
var BROWSER_USE_ACTION_SCHEMAS = browserUseContract.actions;
|
|
68208
|
-
var BROWSER_USE_ACTIONS = Object.freeze(Object.keys(BROWSER_USE_ACTION_SCHEMAS));
|
|
68209
|
-
|
|
68210
|
-
// ts/sdk/dist/browser-use-receipt.js
|
|
68211
|
-
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(" ");
|
|
68212
|
-
|
|
68213
|
-
// ts/agent-core/dist/lane-target.js
|
|
68214
|
-
var PRLL_SCHEME = "prll://";
|
|
68215
|
-
var CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|
|
68216
|
-
|
|
68217
68359
|
// ts/agent-core/dist/telemetry.js
|
|
68218
68360
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
68219
68361
|
|
|
@@ -68228,7 +68370,11 @@ var DEFAULT_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
|
|
|
68228
68370
|
// ts/agent-core/dist/telemetry.js
|
|
68229
68371
|
var dispatchContextStorage = new AsyncLocalStorage();
|
|
68230
68372
|
|
|
68231
|
-
// ts/agent-core/dist/
|
|
68373
|
+
// ts/agent-core/dist/lane/target.js
|
|
68374
|
+
var PRLL_SCHEME = "prll://";
|
|
68375
|
+
var CHANNEL_LANE_PREFIX = `${PRLL_SCHEME}chv_`;
|
|
68376
|
+
|
|
68377
|
+
// ts/agent-core/dist/gateway/lane-flow.js
|
|
68232
68378
|
var TYPED_BACKOFF_CAP_MS = 5 * 6e4;
|
|
68233
68379
|
|
|
68234
68380
|
// ts/agent-core/dist/http-keepalive.js
|