@parall/daemon 1.76.0 → 1.78.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 +61 -12
- package/bundle/parall-claude-agent.js +847 -309
- package/bundle/parall-codex-agent.js +364 -165
- package/bundle/parall-daemon.js +93 -13
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -121,7 +121,7 @@ var browserUseContract;
|
|
|
121
121
|
var init_browser_use_contract_generated = __esm({
|
|
122
122
|
"ts/sdk/dist/browser-use-contract.generated.js"() {
|
|
123
123
|
"use strict";
|
|
124
|
-
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 } } };
|
|
124
|
+
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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "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", "DIALOG_OPEN"] }, "dialog": { "grant": "browser.interact", "target": "tab", "params": { "required": [], "properties": { "accept": { "type": "boolean" }, "text": { "type": "string", "allow_empty": true, "max_length": 4096 } }, "rules": ["absent accept inspects the open dialog without answering it", "present accept answers the open dialog: true accepts, false dismisses", "text requires accept"], "additional_properties": false }, "success": { "base": "tab_state", "fields": { "dialog": "nullable_dialog" } }, "errors": ["TAB_NOT_FOUND", "TAB_GONE"] }, "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", "DIALOG_OPEN"] } }, "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 }, "dialog": { "required": ["type", "message"], "fields": { "type": "string", "message": "string", "accepted": "boolean" }, "type_values": ["alert", "confirm", "prompt"], "additional_properties": false } } };
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
|
|
@@ -198,6 +198,16 @@ function validateBrowserUseField(value, field, label) {
|
|
|
198
198
|
if (value === null)
|
|
199
199
|
return;
|
|
200
200
|
return validateShape(value, browserUseContract.successShapes.article.fields);
|
|
201
|
+
case "nullable_dialog": {
|
|
202
|
+
if (value === null)
|
|
203
|
+
return;
|
|
204
|
+
const shape = browserUseContract.successShapes.dialog;
|
|
205
|
+
const obj = browserUseObject(value);
|
|
206
|
+
exact(obj, Object.keys(shape.fields), [...shape.required]);
|
|
207
|
+
for (const [key, val] of Object.entries(obj))
|
|
208
|
+
validateBrowserUseField(val, shape.fields[key], key);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
201
211
|
case "tab_summary_array":
|
|
202
212
|
requireValid(Array.isArray(value), label);
|
|
203
213
|
for (const tab of value)
|
|
@@ -284,6 +294,8 @@ function validateBrowserUseActionRequest(value) {
|
|
|
284
294
|
requireValid(params.url !== void 0 !== Boolean(target), "read URL or target");
|
|
285
295
|
if (action === "wait")
|
|
286
296
|
requireValid(params.state === "load" === (params.selector === void 0), "wait selector/state");
|
|
297
|
+
if (action === "dialog")
|
|
298
|
+
requireValid(params.text === void 0 || params.accept !== void 0, "dialog text");
|
|
287
299
|
if (["click", "fill", "type"].includes(action))
|
|
288
300
|
requireValid(locatorCount === 1, "exactly one locator");
|
|
289
301
|
if (action === "get") {
|
|
@@ -542,6 +554,7 @@ function wechatEndpoints(apiBase) {
|
|
|
542
554
|
WECHAT_CONTACTS: (orgId) => `${agentBase(orgId)}/contacts`,
|
|
543
555
|
WECHAT_HISTORY: (orgId) => `${agentBase(orgId)}/history`,
|
|
544
556
|
WECHAT_MEDIA: (orgId) => `${agentBase(orgId)}/media`,
|
|
557
|
+
WECHAT_MEDIA_SEND: (orgId) => `${agentBase(orgId)}/send-media`,
|
|
545
558
|
WECHAT_PROFILE: (orgId) => `${agentBase(orgId)}/profile`,
|
|
546
559
|
WECHAT_STATUS: (orgId) => `${agentBase(orgId)}/status`
|
|
547
560
|
};
|
|
@@ -961,6 +974,8 @@ var init_constants = __esm({
|
|
|
961
974
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
962
975
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
963
976
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
977
|
+
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
978
|
+
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
964
979
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
965
980
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
966
981
|
// Messages (global, by message ID)
|
|
@@ -1007,6 +1022,8 @@ var init_constants = __esm({
|
|
|
1007
1022
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
1008
1023
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
1009
1024
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
1025
|
+
AGENT_WORK: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/work`,
|
|
1026
|
+
ORG_LIVE_AGENT_SESSIONS: (orgId) => `${API_BASE2}/orgs/${orgId}/agent-sessions/live`,
|
|
1010
1027
|
AGENT_SESSION: (orgId, agentId, sessionId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}`,
|
|
1011
1028
|
AGENT_SESSION_STEPS: (orgId, agentId, sessionId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}/steps`,
|
|
1012
1029
|
AGENT_SESSION_STEP: (orgId, agentId, sessionId, stepId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}/steps/${stepId}`,
|
|
@@ -1221,6 +1238,10 @@ var init_constants = __esm({
|
|
|
1221
1238
|
INVITATION_ACCEPT: (id) => `${API_BASE2}/invitations/${id}/accept`,
|
|
1222
1239
|
INVITATION_DECLINE: (id) => `${API_BASE2}/invitations/${id}/decline`,
|
|
1223
1240
|
INVITATION_BY_TOKEN: (token) => `${API_BASE2}/invitations/by-token/${token}`,
|
|
1241
|
+
// Cross-org channel invitations (invitee, account level)
|
|
1242
|
+
MY_CHAT_INVITATIONS: `${API_BASE2}/chat-invitations/pending`,
|
|
1243
|
+
CHAT_INVITATION_ACCEPT: (id) => `${API_BASE2}/chat-invitations/${id}/accept`,
|
|
1244
|
+
CHAT_INVITATION_DECLINE: (id) => `${API_BASE2}/chat-invitations/${id}/decline`,
|
|
1224
1245
|
// Org-level shareable invite link
|
|
1225
1246
|
ORG_INVITE_LINK: (orgId) => `${API_BASE2}/orgs/${orgId}/invite-link`,
|
|
1226
1247
|
ORG_INVITE_LINK_REGENERATE: (orgId) => `${API_BASE2}/orgs/${orgId}/invite-link/regenerate`,
|
|
@@ -1485,6 +1506,8 @@ var init_constants = __esm({
|
|
|
1485
1506
|
INVITATION_ACCEPTED: "invitation.accepted",
|
|
1486
1507
|
INVITATION_DECLINED: "invitation.declined",
|
|
1487
1508
|
INVITATION_REVOKED: "invitation.revoked",
|
|
1509
|
+
CHAT_INVITATION_NEW: "chat_invitation.new",
|
|
1510
|
+
CHAT_INVITATION_REVOKED: "chat_invitation.revoked",
|
|
1488
1511
|
ORG_JOIN_REQUEST_NEW: "org.join_request.new",
|
|
1489
1512
|
ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
|
|
1490
1513
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
@@ -1825,12 +1848,13 @@ var init_task_label_client = __esm({
|
|
|
1825
1848
|
});
|
|
1826
1849
|
|
|
1827
1850
|
// ts/sdk/dist/wechat-client.js
|
|
1828
|
-
var WechatClient;
|
|
1851
|
+
var WECHAT_MEDIA_TIMEOUT_MS, WechatClient;
|
|
1829
1852
|
var init_wechat_client = __esm({
|
|
1830
1853
|
"ts/sdk/dist/wechat-client.js"() {
|
|
1831
1854
|
"use strict";
|
|
1832
1855
|
init_constants();
|
|
1833
1856
|
init_task_label_client();
|
|
1857
|
+
WECHAT_MEDIA_TIMEOUT_MS = 1e5;
|
|
1834
1858
|
WechatClient = class extends TaskLabelClient {
|
|
1835
1859
|
/** Address book enriched with display names. */
|
|
1836
1860
|
async listWechatContacts(orgId) {
|
|
@@ -1849,7 +1873,13 @@ var init_wechat_client = __esm({
|
|
|
1849
1873
|
}
|
|
1850
1874
|
/** Fetch and cache one WeChat image or completed file on first explicit read. */
|
|
1851
1875
|
async materializeWechatMedia(orgId, messageId) {
|
|
1852
|
-
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId });
|
|
1876
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA(orgId), { message_id: messageId }, void 0, false, { timeoutMs: WECHAT_MEDIA_TIMEOUT_MS });
|
|
1877
|
+
}
|
|
1878
|
+
/** Send one uploaded image or file; never automatically retry an uncertain send. */
|
|
1879
|
+
async sendWechatMedia(orgId, input) {
|
|
1880
|
+
return this.request("POST", ENDPOINTS.WECHAT_MEDIA_SEND(orgId), input, void 0, false, {
|
|
1881
|
+
timeoutMs: WECHAT_MEDIA_TIMEOUT_MS
|
|
1882
|
+
});
|
|
1853
1883
|
}
|
|
1854
1884
|
/** Connected WeChat account identity. */
|
|
1855
1885
|
async wechatProfile(orgId) {
|
|
@@ -2350,6 +2380,15 @@ var init_clip_connection_client = __esm({
|
|
|
2350
2380
|
init_channel_conversation_client();
|
|
2351
2381
|
init_constants();
|
|
2352
2382
|
ClipConnectionClient = class extends ChannelConversationClient {
|
|
2383
|
+
/** Re-authorize an existing MCP credential slot. */
|
|
2384
|
+
async initiateClipMCPOAuthById(orgId, clipId, configId, serverUrl, expectedVersion, oauthClient) {
|
|
2385
|
+
const req = {
|
|
2386
|
+
server_url: serverUrl,
|
|
2387
|
+
auth_type: "oauth",
|
|
2388
|
+
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
2389
|
+
};
|
|
2390
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
2391
|
+
}
|
|
2353
2392
|
// ---- Clip connections ----
|
|
2354
2393
|
async listClipConnections(orgId, clipId) {
|
|
2355
2394
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
@@ -3566,6 +3605,28 @@ var init_client = __esm({
|
|
|
3566
3605
|
async declineInvitation(id) {
|
|
3567
3606
|
return this.request("POST", ENDPOINTS.INVITATION_DECLINE(id));
|
|
3568
3607
|
}
|
|
3608
|
+
/** Invite a person from another org into a channel by email (needs the host org's rollout flag). */
|
|
3609
|
+
async createChatInvitation(orgId, chatId, email) {
|
|
3610
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATIONS(orgId, chatId), { email });
|
|
3611
|
+
}
|
|
3612
|
+
async listChatInvitations(orgId, chatId) {
|
|
3613
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_INVITATIONS(orgId, chatId));
|
|
3614
|
+
return res.data;
|
|
3615
|
+
}
|
|
3616
|
+
async revokeChatInvitation(orgId, chatId, invId) {
|
|
3617
|
+
return this.request("DELETE", ENDPOINTS.CHAT_INVITATION(orgId, chatId, invId));
|
|
3618
|
+
}
|
|
3619
|
+
async getMyChatInvitations() {
|
|
3620
|
+
const res = await this.request("GET", ENDPOINTS.MY_CHAT_INVITATIONS);
|
|
3621
|
+
return res.data;
|
|
3622
|
+
}
|
|
3623
|
+
/** Join the invited channel as `orgId`, one of the caller's own orgs. */
|
|
3624
|
+
async acceptChatInvitation(id, orgId) {
|
|
3625
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATION_ACCEPT(id), { org_id: orgId });
|
|
3626
|
+
}
|
|
3627
|
+
async declineChatInvitation(id) {
|
|
3628
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
3629
|
+
}
|
|
3569
3630
|
async getInvitationByToken(token) {
|
|
3570
3631
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
3571
3632
|
}
|
|
@@ -3828,6 +3889,17 @@ var init_client = __esm({
|
|
|
3828
3889
|
async getAgentSessions(orgId, agentId, params) {
|
|
3829
3890
|
return this.request("GET", ENDPOINTS.AGENT_SESSIONS(orgId, agentId), void 0, params);
|
|
3830
3891
|
}
|
|
3892
|
+
/** What the agent is doing now, projected for the caller (any org member). */
|
|
3893
|
+
async getAgentWork(orgId, agentId) {
|
|
3894
|
+
return this.request("GET", ENDPOINTS.AGENT_WORK(orgId, agentId));
|
|
3895
|
+
}
|
|
3896
|
+
/**
|
|
3897
|
+
* Every live session in the org, in the public view the `agent_session.new` frame
|
|
3898
|
+
* already carries to every member (no `runtime_ref`; any org member may call it).
|
|
3899
|
+
*/
|
|
3900
|
+
async getLiveAgentSessions(orgId) {
|
|
3901
|
+
return this.request("GET", ENDPOINTS.ORG_LIVE_AGENT_SESSIONS(orgId));
|
|
3902
|
+
}
|
|
3831
3903
|
async getAgentSession(orgId, agentId, sessionId) {
|
|
3832
3904
|
return this.request("GET", ENDPOINTS.AGENT_SESSION(orgId, agentId, sessionId));
|
|
3833
3905
|
}
|
|
@@ -5523,7 +5595,7 @@ var init_client = __esm({
|
|
|
5523
5595
|
*/
|
|
5524
5596
|
async execEdgeClip(orgId, req) {
|
|
5525
5597
|
const t = req.timeout;
|
|
5526
|
-
const serverTimeout = t !== void 0 && t > 0
|
|
5598
|
+
const serverTimeout = t !== void 0 && t > 0 ? Math.min(t, 12e4) : 3e4;
|
|
5527
5599
|
const timeoutMs = serverTimeout + 1e4;
|
|
5528
5600
|
try {
|
|
5529
5601
|
return await this.request("POST", ENDPOINTS.ORG_EDGE_EXEC(orgId), req, void 0, false, {
|
|
@@ -5597,15 +5669,6 @@ var init_client = __esm({
|
|
|
5597
5669
|
timeoutMs: 4e4
|
|
5598
5670
|
});
|
|
5599
5671
|
}
|
|
5600
|
-
/** Re-authorize an existing MCP credential slot. */
|
|
5601
|
-
async initiateClipMCPOAuthById(orgId, clipId, configId, serverUrl, expectedVersion, oauthClient) {
|
|
5602
|
-
const req = {
|
|
5603
|
-
server_url: serverUrl,
|
|
5604
|
-
auth_type: "oauth",
|
|
5605
|
-
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
5606
|
-
};
|
|
5607
|
-
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
5608
|
-
}
|
|
5609
5672
|
/** Delete one MCP config and its paired connection. */
|
|
5610
5673
|
async deleteClipMCPConfigById(orgId, clipId, configId, expectedVersion) {
|
|
5611
5674
|
return this.request("DELETE", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), void 0, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` } });
|
|
@@ -5933,6 +5996,13 @@ var init_trigger_judge_types = __esm({
|
|
|
5933
5996
|
}
|
|
5934
5997
|
});
|
|
5935
5998
|
|
|
5999
|
+
// ts/sdk/dist/action-cards.js
|
|
6000
|
+
var init_action_cards = __esm({
|
|
6001
|
+
"ts/sdk/dist/action-cards.js"() {
|
|
6002
|
+
"use strict";
|
|
6003
|
+
}
|
|
6004
|
+
});
|
|
6005
|
+
|
|
5936
6006
|
// ts/sdk/dist/types.js
|
|
5937
6007
|
function isBroadcastMentionId(userId) {
|
|
5938
6008
|
return userId === MENTION_ALL_USER_ID || userId === MENTION_ALL_HUMANS_USER_ID || userId === MENTION_ALL_AGENTS_USER_ID;
|
|
@@ -5950,6 +6020,7 @@ var MENTION_ALL_USER_ID, MENTION_ALL_HUMANS_USER_ID, MENTION_ALL_AGENTS_USER_ID,
|
|
|
5950
6020
|
var init_types = __esm({
|
|
5951
6021
|
"ts/sdk/dist/types.js"() {
|
|
5952
6022
|
"use strict";
|
|
6023
|
+
init_action_cards();
|
|
5953
6024
|
MENTION_ALL_USER_ID = "all";
|
|
5954
6025
|
MENTION_ALL_HUMANS_USER_ID = "allhuman";
|
|
5955
6026
|
MENTION_ALL_AGENTS_USER_ID = "allagent";
|
|
@@ -34021,12 +34092,21 @@ var init_runtime_declaration = __esm({
|
|
|
34021
34092
|
}
|
|
34022
34093
|
});
|
|
34023
34094
|
|
|
34095
|
+
// ts/agent-core/dist/gateway/session-restore.js
|
|
34096
|
+
var init_session_restore = __esm({
|
|
34097
|
+
"ts/agent-core/dist/gateway/session-restore.js"() {
|
|
34098
|
+
"use strict";
|
|
34099
|
+
init_lifecycle();
|
|
34100
|
+
}
|
|
34101
|
+
});
|
|
34102
|
+
|
|
34024
34103
|
// ts/agent-core/dist/gateway/connection.js
|
|
34025
34104
|
var init_connection = __esm({
|
|
34026
34105
|
"ts/agent-core/dist/gateway/connection.js"() {
|
|
34027
34106
|
"use strict";
|
|
34028
34107
|
init_dist();
|
|
34029
34108
|
init_runtime_declaration();
|
|
34109
|
+
init_session_restore();
|
|
34030
34110
|
}
|
|
34031
34111
|
});
|
|
34032
34112
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0",
|
|
4
4
|
"description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@opentelemetry/api": "^1.9.0",
|
|
35
35
|
"@pinixai/bb-browser-pro": "0.15.0",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@parall/
|
|
38
|
-
"@parall/
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/
|
|
37
|
+
"@parall/sdk": "1.78.0",
|
|
38
|
+
"@parall/claude-agent": "1.78.0",
|
|
39
|
+
"@parall/agent-core": "1.78.0",
|
|
40
|
+
"@parall/codex-agent": "1.78.0",
|
|
41
|
+
"@parall/openclaw-agent": "1.78.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|