@parall/daemon 1.76.0 → 1.77.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 +51 -10
- package/bundle/parall-claude-agent.js +834 -310
- package/bundle/parall-codex-agent.js +348 -163
- package/bundle/parall-daemon.js +82 -10
- 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") {
|
|
@@ -961,6 +973,8 @@ var init_constants = __esm({
|
|
|
961
973
|
CHAT_RESTORE: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/restore`,
|
|
962
974
|
CHAT_MEMBERS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members`,
|
|
963
975
|
CHAT_MEMBER: (orgId, chatId, userId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/members/${userId}`,
|
|
976
|
+
CHAT_INVITATIONS: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations`,
|
|
977
|
+
CHAT_INVITATION: (orgId, chatId, invId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/invitations/${invId}`,
|
|
964
978
|
CHAT_TRANSFER_OWNERSHIP: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/transfer-ownership`,
|
|
965
979
|
CHAT_MESSAGES: (orgId, chatId) => `${API_BASE2}/orgs/${orgId}/chats/${chatId}/messages`,
|
|
966
980
|
// Messages (global, by message ID)
|
|
@@ -1007,6 +1021,8 @@ var init_constants = __esm({
|
|
|
1007
1021
|
AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
|
|
1008
1022
|
AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
|
|
1009
1023
|
AGENT_SESSIONS: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions`,
|
|
1024
|
+
AGENT_WORK: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/work`,
|
|
1025
|
+
ORG_LIVE_AGENT_SESSIONS: (orgId) => `${API_BASE2}/orgs/${orgId}/agent-sessions/live`,
|
|
1010
1026
|
AGENT_SESSION: (orgId, agentId, sessionId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}`,
|
|
1011
1027
|
AGENT_SESSION_STEPS: (orgId, agentId, sessionId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}/steps`,
|
|
1012
1028
|
AGENT_SESSION_STEP: (orgId, agentId, sessionId, stepId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/sessions/${sessionId}/steps/${stepId}`,
|
|
@@ -1221,6 +1237,10 @@ var init_constants = __esm({
|
|
|
1221
1237
|
INVITATION_ACCEPT: (id) => `${API_BASE2}/invitations/${id}/accept`,
|
|
1222
1238
|
INVITATION_DECLINE: (id) => `${API_BASE2}/invitations/${id}/decline`,
|
|
1223
1239
|
INVITATION_BY_TOKEN: (token) => `${API_BASE2}/invitations/by-token/${token}`,
|
|
1240
|
+
// Cross-org channel invitations (invitee, account level)
|
|
1241
|
+
MY_CHAT_INVITATIONS: `${API_BASE2}/chat-invitations/pending`,
|
|
1242
|
+
CHAT_INVITATION_ACCEPT: (id) => `${API_BASE2}/chat-invitations/${id}/accept`,
|
|
1243
|
+
CHAT_INVITATION_DECLINE: (id) => `${API_BASE2}/chat-invitations/${id}/decline`,
|
|
1224
1244
|
// Org-level shareable invite link
|
|
1225
1245
|
ORG_INVITE_LINK: (orgId) => `${API_BASE2}/orgs/${orgId}/invite-link`,
|
|
1226
1246
|
ORG_INVITE_LINK_REGENERATE: (orgId) => `${API_BASE2}/orgs/${orgId}/invite-link/regenerate`,
|
|
@@ -1485,6 +1505,8 @@ var init_constants = __esm({
|
|
|
1485
1505
|
INVITATION_ACCEPTED: "invitation.accepted",
|
|
1486
1506
|
INVITATION_DECLINED: "invitation.declined",
|
|
1487
1507
|
INVITATION_REVOKED: "invitation.revoked",
|
|
1508
|
+
CHAT_INVITATION_NEW: "chat_invitation.new",
|
|
1509
|
+
CHAT_INVITATION_REVOKED: "chat_invitation.revoked",
|
|
1488
1510
|
ORG_JOIN_REQUEST_NEW: "org.join_request.new",
|
|
1489
1511
|
ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
|
|
1490
1512
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
@@ -2350,6 +2372,15 @@ var init_clip_connection_client = __esm({
|
|
|
2350
2372
|
init_channel_conversation_client();
|
|
2351
2373
|
init_constants();
|
|
2352
2374
|
ClipConnectionClient = class extends ChannelConversationClient {
|
|
2375
|
+
/** Re-authorize an existing MCP credential slot. */
|
|
2376
|
+
async initiateClipMCPOAuthById(orgId, clipId, configId, serverUrl, expectedVersion, oauthClient) {
|
|
2377
|
+
const req = {
|
|
2378
|
+
server_url: serverUrl,
|
|
2379
|
+
auth_type: "oauth",
|
|
2380
|
+
...oauthClient ? { oauth_client: oauthClient } : {}
|
|
2381
|
+
};
|
|
2382
|
+
return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
|
|
2383
|
+
}
|
|
2353
2384
|
// ---- Clip connections ----
|
|
2354
2385
|
async listClipConnections(orgId, clipId) {
|
|
2355
2386
|
return this.request("GET", ENDPOINTS.CLIP_CONNECTIONS(orgId, clipId));
|
|
@@ -3566,6 +3597,28 @@ var init_client = __esm({
|
|
|
3566
3597
|
async declineInvitation(id) {
|
|
3567
3598
|
return this.request("POST", ENDPOINTS.INVITATION_DECLINE(id));
|
|
3568
3599
|
}
|
|
3600
|
+
/** Invite a person from another org into a channel by email (needs the host org's rollout flag). */
|
|
3601
|
+
async createChatInvitation(orgId, chatId, email) {
|
|
3602
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATIONS(orgId, chatId), { email });
|
|
3603
|
+
}
|
|
3604
|
+
async listChatInvitations(orgId, chatId) {
|
|
3605
|
+
const res = await this.request("GET", ENDPOINTS.CHAT_INVITATIONS(orgId, chatId));
|
|
3606
|
+
return res.data;
|
|
3607
|
+
}
|
|
3608
|
+
async revokeChatInvitation(orgId, chatId, invId) {
|
|
3609
|
+
return this.request("DELETE", ENDPOINTS.CHAT_INVITATION(orgId, chatId, invId));
|
|
3610
|
+
}
|
|
3611
|
+
async getMyChatInvitations() {
|
|
3612
|
+
const res = await this.request("GET", ENDPOINTS.MY_CHAT_INVITATIONS);
|
|
3613
|
+
return res.data;
|
|
3614
|
+
}
|
|
3615
|
+
/** Join the invited channel as `orgId`, one of the caller's own orgs. */
|
|
3616
|
+
async acceptChatInvitation(id, orgId) {
|
|
3617
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATION_ACCEPT(id), { org_id: orgId });
|
|
3618
|
+
}
|
|
3619
|
+
async declineChatInvitation(id) {
|
|
3620
|
+
return this.request("POST", ENDPOINTS.CHAT_INVITATION_DECLINE(id));
|
|
3621
|
+
}
|
|
3569
3622
|
async getInvitationByToken(token) {
|
|
3570
3623
|
return this.request("GET", ENDPOINTS.INVITATION_BY_TOKEN(token));
|
|
3571
3624
|
}
|
|
@@ -3828,6 +3881,17 @@ var init_client = __esm({
|
|
|
3828
3881
|
async getAgentSessions(orgId, agentId, params) {
|
|
3829
3882
|
return this.request("GET", ENDPOINTS.AGENT_SESSIONS(orgId, agentId), void 0, params);
|
|
3830
3883
|
}
|
|
3884
|
+
/** What the agent is doing now, projected for the caller (any org member). */
|
|
3885
|
+
async getAgentWork(orgId, agentId) {
|
|
3886
|
+
return this.request("GET", ENDPOINTS.AGENT_WORK(orgId, agentId));
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
* Every live session in the org, in the public view the `agent_session.new` frame
|
|
3890
|
+
* already carries to every member (no `runtime_ref`; any org member may call it).
|
|
3891
|
+
*/
|
|
3892
|
+
async getLiveAgentSessions(orgId) {
|
|
3893
|
+
return this.request("GET", ENDPOINTS.ORG_LIVE_AGENT_SESSIONS(orgId));
|
|
3894
|
+
}
|
|
3831
3895
|
async getAgentSession(orgId, agentId, sessionId) {
|
|
3832
3896
|
return this.request("GET", ENDPOINTS.AGENT_SESSION(orgId, agentId, sessionId));
|
|
3833
3897
|
}
|
|
@@ -5597,15 +5661,6 @@ var init_client = __esm({
|
|
|
5597
5661
|
timeoutMs: 4e4
|
|
5598
5662
|
});
|
|
5599
5663
|
}
|
|
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
5664
|
/** Delete one MCP config and its paired connection. */
|
|
5610
5665
|
async deleteClipMCPConfigById(orgId, clipId, configId, expectedVersion) {
|
|
5611
5666
|
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 +5988,13 @@ var init_trigger_judge_types = __esm({
|
|
|
5933
5988
|
}
|
|
5934
5989
|
});
|
|
5935
5990
|
|
|
5991
|
+
// ts/sdk/dist/action-cards.js
|
|
5992
|
+
var init_action_cards = __esm({
|
|
5993
|
+
"ts/sdk/dist/action-cards.js"() {
|
|
5994
|
+
"use strict";
|
|
5995
|
+
}
|
|
5996
|
+
});
|
|
5997
|
+
|
|
5936
5998
|
// ts/sdk/dist/types.js
|
|
5937
5999
|
function isBroadcastMentionId(userId) {
|
|
5938
6000
|
return userId === MENTION_ALL_USER_ID || userId === MENTION_ALL_HUMANS_USER_ID || userId === MENTION_ALL_AGENTS_USER_ID;
|
|
@@ -5950,6 +6012,7 @@ var MENTION_ALL_USER_ID, MENTION_ALL_HUMANS_USER_ID, MENTION_ALL_AGENTS_USER_ID,
|
|
|
5950
6012
|
var init_types = __esm({
|
|
5951
6013
|
"ts/sdk/dist/types.js"() {
|
|
5952
6014
|
"use strict";
|
|
6015
|
+
init_action_cards();
|
|
5953
6016
|
MENTION_ALL_USER_ID = "all";
|
|
5954
6017
|
MENTION_ALL_HUMANS_USER_ID = "allhuman";
|
|
5955
6018
|
MENTION_ALL_AGENTS_USER_ID = "allagent";
|
|
@@ -34021,12 +34084,21 @@ var init_runtime_declaration = __esm({
|
|
|
34021
34084
|
}
|
|
34022
34085
|
});
|
|
34023
34086
|
|
|
34087
|
+
// ts/agent-core/dist/gateway/session-restore.js
|
|
34088
|
+
var init_session_restore = __esm({
|
|
34089
|
+
"ts/agent-core/dist/gateway/session-restore.js"() {
|
|
34090
|
+
"use strict";
|
|
34091
|
+
init_lifecycle();
|
|
34092
|
+
}
|
|
34093
|
+
});
|
|
34094
|
+
|
|
34024
34095
|
// ts/agent-core/dist/gateway/connection.js
|
|
34025
34096
|
var init_connection = __esm({
|
|
34026
34097
|
"ts/agent-core/dist/gateway/connection.js"() {
|
|
34027
34098
|
"use strict";
|
|
34028
34099
|
init_dist();
|
|
34029
34100
|
init_runtime_declaration();
|
|
34101
|
+
init_session_restore();
|
|
34030
34102
|
}
|
|
34031
34103
|
});
|
|
34032
34104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.77.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/agent-core": "1.
|
|
38
|
-
"@parall/sdk": "1.
|
|
39
|
-
"@parall/
|
|
40
|
-
"@parall/
|
|
41
|
-
"@parall/
|
|
37
|
+
"@parall/agent-core": "1.77.0",
|
|
38
|
+
"@parall/sdk": "1.77.0",
|
|
39
|
+
"@parall/codex-agent": "1.77.0",
|
|
40
|
+
"@parall/openclaw-agent": "1.77.0",
|
|
41
|
+
"@parall/claude-agent": "1.77.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|