@parall/daemon 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/bundle/manifest.json +11 -11
- package/bundle/parall-browser-pod.js +267 -104
- package/bundle/parall-claude-agent.js +25 -18
- package/bundle/parall-codex-agent.js +25 -18
- package/bundle/parall-daemon.js +317 -184
- package/dist/browser-pod.d.ts.map +1 -1
- package/dist/browser-pod.js +9 -14
- package/dist/browser-profile-viewer-control.d.ts +15 -0
- package/dist/browser-profile-viewer-control.d.ts.map +1 -0
- package/dist/browser-profile-viewer-control.js +27 -0
- package/dist/clip-runtime/bb-viewer-command-client.d.ts +19 -0
- package/dist/clip-runtime/bb-viewer-command-client.d.ts.map +1 -0
- package/dist/clip-runtime/bb-viewer-command-client.js +89 -0
- package/dist/clip-runtime/browser-profile-manager.d.ts +3 -1
- package/dist/clip-runtime/browser-profile-manager.d.ts.map +1 -1
- package/dist/clip-runtime/browser-profile-manager.js +2 -2
- package/dist/clip-runtime/browser-viewer-streamer.d.ts +7 -7
- package/dist/clip-runtime/browser-viewer-streamer.d.ts.map +1 -1
- package/dist/clip-runtime/browser-viewer-streamer.js +39 -47
- package/dist/clip-runtime/clip-provider.d.ts +3 -2
- package/dist/clip-runtime/clip-provider.d.ts.map +1 -1
- package/dist/clip-runtime/clip-provider.js +13 -6
- package/dist/clip-runtime/hosted-viewer-command-queue.d.ts +43 -0
- package/dist/clip-runtime/hosted-viewer-command-queue.d.ts.map +1 -0
- package/dist/clip-runtime/hosted-viewer-command-queue.js +72 -0
- package/dist/clip-runtime/index.d.ts +1 -0
- package/dist/clip-runtime/index.d.ts.map +1 -1
- package/dist/clip-runtime/index.js +1 -0
- package/dist/clip-runtime/viewer-command-deadline.d.ts +14 -0
- package/dist/clip-runtime/viewer-command-deadline.d.ts.map +1 -0
- package/dist/clip-runtime/viewer-command-deadline.js +29 -0
- package/dist/clip-runtime/viewer-command-error.d.ts +18 -0
- package/dist/clip-runtime/viewer-command-error.d.ts.map +1 -0
- package/dist/clip-runtime/viewer-command-error.js +23 -0
- package/dist/supervisor.d.ts +0 -8
- package/dist/supervisor.d.ts.map +1 -1
- package/dist/supervisor.js +3 -32
- package/package.json +6 -6
|
@@ -51291,18 +51291,15 @@ function laneContextFilePath(contextDir, targetUri, threadRootId) {
|
|
|
51291
51291
|
return path.join(contextDir, `${laneKeyForTarget(targetUri, threadRootId)}.json`);
|
|
51292
51292
|
}
|
|
51293
51293
|
|
|
51294
|
-
// ts/sdk/dist/
|
|
51295
|
-
var
|
|
51296
|
-
|
|
51297
|
-
|
|
51298
|
-
|
|
51299
|
-
|
|
51300
|
-
|
|
51301
|
-
|
|
51302
|
-
|
|
51303
|
-
if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
|
|
51304
|
-
return userType === "agent";
|
|
51305
|
-
return false;
|
|
51294
|
+
// ts/sdk/dist/browser-viewer.js
|
|
51295
|
+
var BROWSER_VIEWER_READINESS_TIMEOUT_MS = 6e4;
|
|
51296
|
+
function browserViewerRequestOptions(command, opts) {
|
|
51297
|
+
if (command !== "stream.answer" && command !== "stream.switch")
|
|
51298
|
+
return opts;
|
|
51299
|
+
return {
|
|
51300
|
+
...opts,
|
|
51301
|
+
timeoutMs: Math.max(opts?.timeoutMs ?? 0, BROWSER_VIEWER_READINESS_TIMEOUT_MS)
|
|
51302
|
+
};
|
|
51306
51303
|
}
|
|
51307
51304
|
|
|
51308
51305
|
// ts/sdk/dist/constants.js
|
|
@@ -52734,11 +52731,7 @@ var ParallClient = class _ParallClient {
|
|
|
52734
52731
|
async postBrowseResponse(requestId, response) {
|
|
52735
52732
|
return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSE_RESPONSE(requestId), response);
|
|
52736
52733
|
}
|
|
52737
|
-
/**
|
|
52738
|
-
* `POST /machines/me/browser-profiles/viewer-response/{requestId}` — daemon
|
|
52739
|
-
* reply to a `machine.browser_profile.viewer` control command. Wakes the
|
|
52740
|
-
* api-server request/reply bridge (mirrors {@link postBrowseResponse}).
|
|
52741
|
-
*/
|
|
52734
|
+
/** Reply to `machine.browser_profile.viewer` and wake its request/reply bridge. */
|
|
52742
52735
|
async postBrowserProfileViewerResponse(requestId, response) {
|
|
52743
52736
|
return this.request("POST", ENDPOINTS.MACHINES_ME_BROWSER_PROFILE_VIEWER_RESPONSE(requestId), response);
|
|
52744
52737
|
}
|
|
@@ -52748,7 +52741,7 @@ var ParallClient = class _ParallClient {
|
|
|
52748
52741
|
* owner or org admin. api-server brokers the command to the host daemon.
|
|
52749
52742
|
*/
|
|
52750
52743
|
async browserViewerCommand(orgId, profileId, req, opts) {
|
|
52751
|
-
return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, opts);
|
|
52744
|
+
return this.request("POST", ENDPOINTS.BROWSER_PROFILE_VIEWER_COMMAND(orgId, profileId), req, void 0, false, browserViewerRequestOptions(req.command, opts));
|
|
52752
52745
|
}
|
|
52753
52746
|
/**
|
|
52754
52747
|
* Drive the Cloud Edge live viewer (V1b, design §6): WebRTC signaling + input +
|
|
@@ -53932,6 +53925,20 @@ function buildApiError(res, rawErrorBody) {
|
|
|
53932
53925
|
return apiError;
|
|
53933
53926
|
}
|
|
53934
53927
|
|
|
53928
|
+
// ts/sdk/dist/types.js
|
|
53929
|
+
var MENTION_ALL_USER_ID = "all";
|
|
53930
|
+
var MENTION_ALL_HUMANS_USER_ID = "allhuman";
|
|
53931
|
+
var MENTION_ALL_AGENTS_USER_ID = "allagent";
|
|
53932
|
+
function mentionTargetsUser(mentionUserId, userId, userType) {
|
|
53933
|
+
if (mentionUserId === userId || mentionUserId === MENTION_ALL_USER_ID)
|
|
53934
|
+
return true;
|
|
53935
|
+
if (mentionUserId === MENTION_ALL_HUMANS_USER_ID)
|
|
53936
|
+
return userType === "human";
|
|
53937
|
+
if (mentionUserId === MENTION_ALL_AGENTS_USER_ID)
|
|
53938
|
+
return userType === "agent";
|
|
53939
|
+
return false;
|
|
53940
|
+
}
|
|
53941
|
+
|
|
53935
53942
|
// ts/sdk/dist/ws.js
|
|
53936
53943
|
function isRetryableNetworkError(err) {
|
|
53937
53944
|
return err instanceof Error && err.name === "ApiError" && "status" in err && err.status === 0;
|