@parall/parall 1.50.0 → 1.50.1
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/dist/index.bundle.mjs +25 -18
- package/package.json +3 -3
package/dist/index.bundle.mjs
CHANGED
|
@@ -51289,18 +51289,15 @@ function laneContextFilePath(contextDir, targetUri, threadRootId) {
|
|
|
51289
51289
|
return path.join(contextDir, `${laneKeyForTarget(targetUri, threadRootId)}.json`);
|
|
51290
51290
|
}
|
|
51291
51291
|
|
|
51292
|
-
// ../sdk/dist/
|
|
51293
|
-
var
|
|
51294
|
-
|
|
51295
|
-
|
|
51296
|
-
|
|
51297
|
-
|
|
51298
|
-
|
|
51299
|
-
|
|
51300
|
-
|
|
51301
|
-
if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
|
|
51302
|
-
return userType === "agent";
|
|
51303
|
-
return false;
|
|
51292
|
+
// ../sdk/dist/browser-viewer.js
|
|
51293
|
+
var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
|
|
51294
|
+
function browserViewerRequestOptions(command, opts) {
|
|
51295
|
+
if (command !== "stream.answer" && command !== "stream.switch")
|
|
51296
|
+
return opts;
|
|
51297
|
+
return {
|
|
51298
|
+
...opts,
|
|
51299
|
+
timeoutMs: Math.max(opts?.timeoutMs ?? 0, BROWSER_VIEWER_READINESS_TIMEOUT_MS)
|
|
51300
|
+
};
|
|
51304
51301
|
}
|
|
51305
51302
|
|
|
51306
51303
|
// ../sdk/dist/constants.js
|
|
@@ -52732,11 +52729,7 @@ var ParallClient = class _ParallClient {
|
|
|
52732
52729
|
async postBrowseResponse(requestId, response) {
|
|
52733
52730
|
return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSE_RESPONSE(requestId), response);
|
|
52734
52731
|
}
|
|
52735
|
-
/**
|
|
52736
|
-
* `POST /machines/me/browser-profiles/viewer-response/{requestId}` — daemon
|
|
52737
|
-
* reply to a `machine.browser_profile.viewer` control command. Wakes the
|
|
52738
|
-
* api-server request/reply bridge (mirrors {@link postBrowseResponse}).
|
|
52739
|
-
*/
|
|
52732
|
+
/** Reply to `machine.browser_profile.viewer` and wake its request/reply bridge. */
|
|
52740
52733
|
async postBrowserProfileViewerResponse(requestId, response) {
|
|
52741
52734
|
return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSER_PROFILE_VIEWER_RESPONSE(requestId), response);
|
|
52742
52735
|
}
|
|
@@ -52746,7 +52739,7 @@ var ParallClient = class _ParallClient {
|
|
|
52746
52739
|
* owner or org admin. api-server brokers the command to the host daemon.
|
|
52747
52740
|
*/
|
|
52748
52741
|
async browserViewerCommand(orgId, profileId, req, opts) {
|
|
52749
|
-
return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, opts);
|
|
52742
|
+
return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, browserViewerRequestOptions(req.command, opts));
|
|
52750
52743
|
}
|
|
52751
52744
|
/**
|
|
52752
52745
|
* Drive the Cloud Edge live viewer (V1b, design §6): WebRTC signaling + input +
|
|
@@ -53930,6 +53923,20 @@ function buildApiError(res, rawErrorBody) {
|
|
|
53930
53923
|
return apiError;
|
|
53931
53924
|
}
|
|
53932
53925
|
|
|
53926
|
+
// ../sdk/dist/types.js
|
|
53927
|
+
var MENTION_ALL_USER_ID = "all";
|
|
53928
|
+
var MENTION_ALL_HUMANS_USER_ID = "allhuman";
|
|
53929
|
+
var MENTION_ALL_AGENTS_USER_ID = "allagent";
|
|
53930
|
+
function mentionTargetsUser(mentionUserId, userId, userType) {
|
|
53931
|
+
if (mentionUserId === userId || mentionUserId === MENTION_ALL_USER_ID)
|
|
53932
|
+
return true;
|
|
53933
|
+
if (mentionUserId === MENTION_ALL_HUMANS_USER_ID)
|
|
53934
|
+
return userType === "human";
|
|
53935
|
+
if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
|
|
53936
|
+
return userType === "agent";
|
|
53937
|
+
return false;
|
|
53938
|
+
}
|
|
53939
|
+
|
|
53933
53940
|
// ../sdk/dist/ws.js
|
|
53934
53941
|
function isRetryableNetworkError(err) {
|
|
53935
53942
|
return err instanceof Error && err.name === "ApiError" && "status" in err && err.status === 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/parall",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.1",
|
|
4
4
|
"description": "OpenClaw channel plugin for Parall IM",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"openclaw.plugin.json"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@parall/agent-core": "1.50.
|
|
20
|
-
"@parall/sdk": "1.50.
|
|
19
|
+
"@parall/agent-core": "1.50.1",
|
|
20
|
+
"@parall/sdk": "1.50.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^22.0.0",
|