@parall/daemon 1.89.0 → 1.91.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 +67 -25
- package/bundle/parall-claude-agent.js +310 -227
- package/bundle/parall-codex-agent.js +321 -235
- package/bundle/parall-daemon.js +84 -26
- package/package.json +6 -6
package/bundle/parall-daemon.js
CHANGED
|
@@ -1603,6 +1603,7 @@ var init_constants = __esm({
|
|
|
1603
1603
|
WIKI_UPLOADS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/uploads`,
|
|
1604
1604
|
WIKI_FILES: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/files`,
|
|
1605
1605
|
WIKI_FILE_PREVIEW_URL: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/files/preview-url`,
|
|
1606
|
+
WIKI_DOCUMENT_IMAGE_PREVIEW_URL: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/document-images/preview-url`,
|
|
1606
1607
|
// Wiki Path Scopes (AFCS ACL)
|
|
1607
1608
|
WIKI_PATH_SCOPES: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-scopes`,
|
|
1608
1609
|
WIKI_PATH_SCOPE: (orgId, wikiId, scopeId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-scopes/${scopeId}`,
|
|
@@ -1822,6 +1823,7 @@ var init_constants = __esm({
|
|
|
1822
1823
|
CHAT_INVITATION_REVOKED: "chat_invitation.revoked",
|
|
1823
1824
|
ORG_JOIN_REQUEST_NEW: "org.join_request.new",
|
|
1824
1825
|
ORG_INVITE_LINK_JOINED: "org.invite_link.joined",
|
|
1826
|
+
ORG_MEMBER_JOINED: "org.member.joined",
|
|
1825
1827
|
ORG_MEMBER_REMOVED: "org.member.removed",
|
|
1826
1828
|
ORG_MEMBER_PROFILE_UPDATED: "org.member.profile.updated",
|
|
1827
1829
|
APP_DATA_CHANGED: "app.data.changed",
|
|
@@ -1907,12 +1909,31 @@ var init_constants = __esm({
|
|
|
1907
1909
|
}
|
|
1908
1910
|
});
|
|
1909
1911
|
|
|
1912
|
+
// ts/sdk/dist/pagination.js
|
|
1913
|
+
async function readAllPages(fetchPage) {
|
|
1914
|
+
const all = [];
|
|
1915
|
+
let cursor;
|
|
1916
|
+
do {
|
|
1917
|
+
const page = await fetchPage(cursor);
|
|
1918
|
+
all.push(...page.data);
|
|
1919
|
+
cursor = page.has_more ? page.next_cursor : void 0;
|
|
1920
|
+
} while (cursor);
|
|
1921
|
+
return all;
|
|
1922
|
+
}
|
|
1923
|
+
var init_pagination = __esm({
|
|
1924
|
+
"ts/sdk/dist/pagination.js"() {
|
|
1925
|
+
"use strict";
|
|
1926
|
+
}
|
|
1927
|
+
});
|
|
1928
|
+
|
|
1910
1929
|
// ts/sdk/dist/project-task-client.js
|
|
1911
|
-
var ProjectTaskClient;
|
|
1930
|
+
var SUBTASK_PAGE_SIZE, ProjectTaskClient;
|
|
1912
1931
|
var init_project_task_client = __esm({
|
|
1913
1932
|
"ts/sdk/dist/project-task-client.js"() {
|
|
1914
1933
|
"use strict";
|
|
1915
1934
|
init_constants();
|
|
1935
|
+
init_pagination();
|
|
1936
|
+
SUBTASK_PAGE_SIZE = 200;
|
|
1916
1937
|
ProjectTaskClient = class {
|
|
1917
1938
|
async createTask(orgId, data) {
|
|
1918
1939
|
return this.request("POST", ENDPOINTS.TASKS(orgId), data);
|
|
@@ -2001,9 +2022,13 @@ var init_project_task_client = __esm({
|
|
|
2001
2022
|
const res = await this.request("GET", ENDPOINTS.MESSAGE_WATCHING(threadRootId));
|
|
2002
2023
|
return res.watching;
|
|
2003
2024
|
}
|
|
2025
|
+
/**
|
|
2026
|
+
* Every direct child of a task. The endpoint pages (50 rows by default), so
|
|
2027
|
+
* this reads all pages: a caller that stopped at the first page would drop
|
|
2028
|
+
* the newest subtasks once a parent passes one page.
|
|
2029
|
+
*/
|
|
2004
2030
|
async getSubtasks(orgId, taskId) {
|
|
2005
|
-
|
|
2006
|
-
return res.data;
|
|
2031
|
+
return readAllPages((cursor) => this.request("GET", ENDPOINTS.TASK_SUBTASKS(orgId, taskId), void 0, { limit: SUBTASK_PAGE_SIZE, cursor }));
|
|
2007
2032
|
}
|
|
2008
2033
|
async createTaskRelation(orgId, taskId, data) {
|
|
2009
2034
|
return this.request("POST", ENDPOINTS.TASK_RELATIONS(orgId, taskId), data);
|
|
@@ -2854,18 +2879,37 @@ var init_browser_profile_client = __esm({
|
|
|
2854
2879
|
const me = await this.request("GET", ENDPOINTS.USERS_ME);
|
|
2855
2880
|
const devices = await this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
|
|
2856
2881
|
const data = [];
|
|
2882
|
+
const warnings = [];
|
|
2857
2883
|
for (const device of devices.data) {
|
|
2858
2884
|
const personal = device.managed_by === "member";
|
|
2859
2885
|
if (personal && device.owner_user_id !== me.id)
|
|
2860
2886
|
continue;
|
|
2861
|
-
|
|
2887
|
+
if (!profileId && device.hosted_state === "deleting") {
|
|
2888
|
+
warnings.push({ device_id: device.id, code: "DEVICE_DELETING" });
|
|
2889
|
+
continue;
|
|
2890
|
+
}
|
|
2891
|
+
const skipMissingDevice = (err) => {
|
|
2892
|
+
const status = typeof err === "object" && err !== null ? err.status : void 0;
|
|
2893
|
+
if (profileId || status !== 404)
|
|
2894
|
+
throw err;
|
|
2895
|
+
warnings.push({ device_id: device.id, code: "DEVICE_NOT_FOUND" });
|
|
2896
|
+
return void 0;
|
|
2897
|
+
};
|
|
2898
|
+
const profiles = await this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, device.id)).catch(skipMissingDevice);
|
|
2899
|
+
if (!profiles)
|
|
2900
|
+
continue;
|
|
2901
|
+
const deviceData = [];
|
|
2862
2902
|
for (const profile of profiles) {
|
|
2863
2903
|
if (profileId && profile.id !== profileId)
|
|
2864
2904
|
continue;
|
|
2865
|
-
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
|
|
2905
|
+
const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name).catch(skipMissingDevice);
|
|
2906
|
+
if (access2 === void 0) {
|
|
2907
|
+
deviceData.length = 0;
|
|
2908
|
+
break;
|
|
2909
|
+
}
|
|
2866
2910
|
if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g) => g.user_id === me.id && g.grants.length > 0))
|
|
2867
2911
|
continue;
|
|
2868
|
-
|
|
2912
|
+
deviceData.push({
|
|
2869
2913
|
profile_id: profile.id,
|
|
2870
2914
|
name: profile.name,
|
|
2871
2915
|
device_name: device.name,
|
|
@@ -2875,8 +2919,9 @@ var init_browser_profile_client = __esm({
|
|
|
2875
2919
|
availability: device.placement === "hosted" ? device.hosted_state ?? "unknown" : device.status
|
|
2876
2920
|
});
|
|
2877
2921
|
}
|
|
2922
|
+
data.push(...deviceData);
|
|
2878
2923
|
}
|
|
2879
|
-
return { data };
|
|
2924
|
+
return { data, ...warnings.length ? { warnings } : {} };
|
|
2880
2925
|
}
|
|
2881
2926
|
/** Submit once: even refresh-enabled clients must not replay browser actions. */
|
|
2882
2927
|
async createBrowserUseOperation(orgId, request3) {
|
|
@@ -3447,6 +3492,14 @@ var init_agent_team_only_client = __esm({
|
|
|
3447
3492
|
async setAgentTeamOnly(orgId, enabled) {
|
|
3448
3493
|
return this.request("PUT", agentTeamOnlyPath(orgId), { enabled });
|
|
3449
3494
|
}
|
|
3495
|
+
/**
|
|
3496
|
+
* The agents the signed-in person cannot reach while the switch is on, each
|
|
3497
|
+
* with the Team it works for (design §3.5). Empty while it is off, and for
|
|
3498
|
+
* the organization's owners and admins.
|
|
3499
|
+
*/
|
|
3500
|
+
async getUnreachableAgents(orgId) {
|
|
3501
|
+
return this.request("GET", `${API_BASE2}/orgs/${orgId}/me/unreachable-agents`);
|
|
3502
|
+
}
|
|
3450
3503
|
};
|
|
3451
3504
|
}
|
|
3452
3505
|
});
|
|
@@ -3868,6 +3921,7 @@ var init_client = __esm({
|
|
|
3868
3921
|
init_fetch_cause();
|
|
3869
3922
|
init_chat_bookmarks_client();
|
|
3870
3923
|
init_wiki_changeset();
|
|
3924
|
+
init_pagination();
|
|
3871
3925
|
init_constants();
|
|
3872
3926
|
ParallClient = class _ParallClient extends ChatBookmarksClient {
|
|
3873
3927
|
baseUrl;
|
|
@@ -4382,14 +4436,7 @@ var init_client = __esm({
|
|
|
4382
4436
|
// command so an agent answering "what's on X's plate" sees the full
|
|
4383
4437
|
// backlog, not just the first page.
|
|
4384
4438
|
async getMemberTasksAll(orgId, memberId) {
|
|
4385
|
-
|
|
4386
|
-
let cursor;
|
|
4387
|
-
do {
|
|
4388
|
-
const res = await this.getMemberTasks(orgId, memberId, { cursor, limit: 100 });
|
|
4389
|
-
all.push(...res.data);
|
|
4390
|
-
cursor = res.has_more ? res.next_cursor : void 0;
|
|
4391
|
-
} while (cursor);
|
|
4392
|
-
return all;
|
|
4439
|
+
return readAllPages((cursor) => this.getMemberTasks(orgId, memberId, { cursor, limit: 100 }));
|
|
4393
4440
|
}
|
|
4394
4441
|
// ---- Invitations ----
|
|
4395
4442
|
async createInvitation(orgId, email, role) {
|
|
@@ -4795,17 +4842,7 @@ var init_client = __esm({
|
|
|
4795
4842
|
* deliberately have no WorkItem behind them.
|
|
4796
4843
|
*/
|
|
4797
4844
|
async getAgentTasks(orgId, agentId) {
|
|
4798
|
-
|
|
4799
|
-
let cursor;
|
|
4800
|
-
do {
|
|
4801
|
-
const params = { limit: "100" };
|
|
4802
|
-
if (cursor)
|
|
4803
|
-
params.cursor = cursor;
|
|
4804
|
-
const res = await this.request("GET", ENDPOINTS.AGENT_TASKS(orgId, agentId), void 0, params);
|
|
4805
|
-
all.push(...res.data);
|
|
4806
|
-
cursor = res.has_more ? res.next_cursor : void 0;
|
|
4807
|
-
} while (cursor);
|
|
4808
|
-
return all;
|
|
4845
|
+
return readAllPages((cursor) => this.request("GET", ENDPOINTS.AGENT_TASKS(orgId, agentId), void 0, { limit: 100, cursor }));
|
|
4809
4846
|
}
|
|
4810
4847
|
// ---- Machines (org-scoped) ----
|
|
4811
4848
|
async getMachines(orgId) {
|
|
@@ -5690,6 +5727,19 @@ var init_client = __esm({
|
|
|
5690
5727
|
res.url = this.absoluteMediaUrl(res.url);
|
|
5691
5728
|
return res;
|
|
5692
5729
|
}
|
|
5730
|
+
/**
|
|
5731
|
+
* Sign the same kind of URL for a picture a Wiki document references.
|
|
5732
|
+
* `src` goes as the document's renderer hands it over (written or
|
|
5733
|
+
* percent-encoded); the server resolves it against `document_path`, applies
|
|
5734
|
+
* a `rev=` pin in it over `ref`, and checks read access on the file it
|
|
5735
|
+
* names. A src that is not a wiki path answers 400 `NOT_WIKI_FILE`.
|
|
5736
|
+
*/
|
|
5737
|
+
async getWikiDocumentImagePreviewUrl(orgId, wikiId, params) {
|
|
5738
|
+
const res = await this.request("POST", ENDPOINTS.WIKI_DOCUMENT_IMAGE_PREVIEW_URL(orgId, wikiId), params);
|
|
5739
|
+
if (res.url)
|
|
5740
|
+
res.url = this.absoluteMediaUrl(res.url);
|
|
5741
|
+
return res;
|
|
5742
|
+
}
|
|
5693
5743
|
// ---- Wiki Path Scopes (AFCS ACL) ----
|
|
5694
5744
|
async getWikiPathScopes(orgId, wikiId) {
|
|
5695
5745
|
const res = await this.request("GET", ENDPOINTS.WIKI_PATH_SCOPES(orgId, wikiId));
|
|
@@ -7535,6 +7585,13 @@ var init_channel_token = __esm({
|
|
|
7535
7585
|
}
|
|
7536
7586
|
});
|
|
7537
7587
|
|
|
7588
|
+
// ts/agent-core/dist/cli-features.js
|
|
7589
|
+
var init_cli_features = __esm({
|
|
7590
|
+
"ts/agent-core/dist/cli-features.js"() {
|
|
7591
|
+
"use strict";
|
|
7592
|
+
}
|
|
7593
|
+
});
|
|
7594
|
+
|
|
7538
7595
|
// ts/agent-core/dist/config-refresh.js
|
|
7539
7596
|
var init_config_refresh = __esm({
|
|
7540
7597
|
"ts/agent-core/dist/config-refresh.js"() {
|
|
@@ -60801,6 +60858,7 @@ var init_dist2 = __esm({
|
|
|
60801
60858
|
init_bridge_workspace();
|
|
60802
60859
|
init_channel_capability();
|
|
60803
60860
|
init_channel_token();
|
|
60861
|
+
init_cli_features();
|
|
60804
60862
|
init_config_refresh();
|
|
60805
60863
|
init_dispatch_adapter();
|
|
60806
60864
|
init_runtime_observation2();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parall/daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.91.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.91.0",
|
|
38
|
+
"@parall/claude-agent": "1.91.0",
|
|
39
|
+
"@parall/agent-core": "1.91.0",
|
|
40
|
+
"@parall/openclaw-agent": "1.91.0",
|
|
41
|
+
"@parall/codex-agent": "1.91.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.0.0",
|