@parall/daemon 1.90.0 → 1.92.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.
@@ -692,6 +692,8 @@ var init_clip_connection_endpoints = __esm({
692
692
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
693
693
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
694
694
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
695
+ /** Who among the org's agents may use one account (per-account setting). */
696
+ CLIP_CONNECTION_AGENT_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/agent-access`,
695
697
  CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
696
698
  /** The caller's own (person-owned) connections; login session only. */
697
699
  ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
@@ -1603,6 +1605,7 @@ var init_constants = __esm({
1603
1605
  WIKI_UPLOADS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/uploads`,
1604
1606
  WIKI_FILES: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/files`,
1605
1607
  WIKI_FILE_PREVIEW_URL: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/files/preview-url`,
1608
+ WIKI_DOCUMENT_IMAGE_PREVIEW_URL: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/document-images/preview-url`,
1606
1609
  // Wiki Path Scopes (AFCS ACL)
1607
1610
  WIKI_PATH_SCOPES: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-scopes`,
1608
1611
  WIKI_PATH_SCOPE: (orgId, wikiId, scopeId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/path-scopes/${scopeId}`,
@@ -2489,8 +2492,16 @@ var init_mini_app_access_client = __esm({
2489
2492
  async removeMiniAppAccessGrant(orgId, appId, userId) {
2490
2493
  return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
2491
2494
  }
2492
- /** The change record, newest first: member_access, the access list and
2493
- * the author roster. */
2495
+ /** Puts a team of the organization on the app's access list, or changes
2496
+ * its level: everyone the team reaches gets at least that much. */
2497
+ async setMiniAppAccessTeamGrant(orgId, appId, teamId, level) {
2498
+ return this.request("PUT", `${access(orgId, appId)}/team-grants/${encodeURIComponent(teamId)}`, { access: level });
2499
+ }
2500
+ async removeMiniAppAccessTeamGrant(orgId, appId, teamId) {
2501
+ return this.request("DELETE", `${access(orgId, appId)}/team-grants/${encodeURIComponent(teamId)}`);
2502
+ }
2503
+ /** The change record, newest first: member_access, the access list (people
2504
+ * and teams) and the author roster. */
2494
2505
  async getMiniAppAccessLog(orgId, appId, query = {}) {
2495
2506
  const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
2496
2507
  return response.data;
@@ -2806,6 +2817,17 @@ var init_clip_connection_client = __esm({
2806
2817
  async putClipConnectionAccess(orgId, connId, input) {
2807
2818
  return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId), input);
2808
2819
  }
2820
+ /** Who among the org's agents may use this account. Any org member may read. */
2821
+ async getClipConnectionAgentAccess(orgId, connId) {
2822
+ return this.request("GET", ENDPOINTS.CLIP_CONNECTION_AGENT_ACCESS(orgId, connId));
2823
+ }
2824
+ /**
2825
+ * Replace this account's agent access. Human org owner/admin only (JWT or
2826
+ * personal key); saving `selected` also turns `org_public` off.
2827
+ */
2828
+ async putClipConnectionAgentAccess(orgId, connId, input) {
2829
+ return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_AGENT_ACCESS(orgId, connId), input);
2830
+ }
2809
2831
  /** Start OAuth using the reviewed platform app or provider registration ladder.
2810
2832
  * Allow discovery (30s), persistence (10s), and network overhead to finish. */
2811
2833
  async createClipMCPOAuthConnection(orgId, clipId, serverUrl, alias, oauthClient) {
@@ -2878,18 +2900,37 @@ var init_browser_profile_client = __esm({
2878
2900
  const me = await this.request("GET", ENDPOINTS.USERS_ME);
2879
2901
  const devices = await this.request("GET", ENDPOINTS.ORG_EDGE_DEVICES(orgId));
2880
2902
  const data = [];
2903
+ const warnings = [];
2881
2904
  for (const device of devices.data) {
2882
2905
  const personal = device.managed_by === "member";
2883
2906
  if (personal && device.owner_user_id !== me.id)
2884
2907
  continue;
2885
- const profiles = await this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, device.id));
2908
+ if (!profileId && device.hosted_state === "deleting") {
2909
+ warnings.push({ device_id: device.id, code: "DEVICE_DELETING" });
2910
+ continue;
2911
+ }
2912
+ const skipMissingDevice = (err) => {
2913
+ const status = typeof err === "object" && err !== null ? err.status : void 0;
2914
+ if (profileId || status !== 404)
2915
+ throw err;
2916
+ warnings.push({ device_id: device.id, code: "DEVICE_NOT_FOUND" });
2917
+ return void 0;
2918
+ };
2919
+ const profiles = await this.request("GET", ENDPOINTS.ORG_EDGE_PROFILES(orgId, device.id)).catch(skipMissingDevice);
2920
+ if (!profiles)
2921
+ continue;
2922
+ const deviceData = [];
2886
2923
  for (const profile of profiles) {
2887
2924
  if (profileId && profile.id !== profileId)
2888
2925
  continue;
2889
- const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name);
2926
+ const access2 = personal ? null : await this.getBrowserProfileAccess(orgId, device.id, profile.name).catch(skipMissingDevice);
2927
+ if (access2 === void 0) {
2928
+ deviceData.length = 0;
2929
+ break;
2930
+ }
2890
2931
  if (!personal && !access2?.org_public && !(access2?.grants ?? []).some((g) => g.user_id === me.id && g.grants.length > 0))
2891
2932
  continue;
2892
- data.push({
2933
+ deviceData.push({
2893
2934
  profile_id: profile.id,
2894
2935
  name: profile.name,
2895
2936
  device_name: device.name,
@@ -2899,8 +2940,9 @@ var init_browser_profile_client = __esm({
2899
2940
  availability: device.placement === "hosted" ? device.hosted_state ?? "unknown" : device.status
2900
2941
  });
2901
2942
  }
2943
+ data.push(...deviceData);
2902
2944
  }
2903
- return { data };
2945
+ return { data, ...warnings.length ? { warnings } : {} };
2904
2946
  }
2905
2947
  /** Submit once: even refresh-enabled clients must not replay browser actions. */
2906
2948
  async createBrowserUseOperation(orgId, request3) {
@@ -3522,9 +3564,12 @@ var init_team_graph_client = __esm({
3522
3564
  * would refuse, with the same codes. 503 when it cannot compute the whole answer
3523
3565
  * (`TEAM_MOVE_PREVIEW_WIKI_UNAVAILABLE`, `TEAM_MOVE_PREVIEW_TIMEOUT`,
3524
3566
  * `TEAM_MOVE_PREVIEW_TOO_LARGE`). Send `tree_revision` back on `setTeamParent`.
3567
+ * Asks for Mini Apps too (`include=apps`): without it, a move that changes
3568
+ * someone's access to an app answers 503 `TEAM_MOVE_PREVIEW_APPS_UNSUPPORTED`
3569
+ * (mini-app-access-team-grants-design.md §5).
3525
3570
  */
3526
3571
  async previewTeamMove(orgId, teamId, parentTeamId) {
3527
- return this.request("POST", ENDPOINTS.TEAM_PARENT_PREVIEW(orgId, teamId), {
3572
+ return this.request("POST", `${ENDPOINTS.TEAM_PARENT_PREVIEW(orgId, teamId)}?include=apps`, {
3528
3573
  parent_team_id: parentTeamId
3529
3574
  });
3530
3575
  }
@@ -3821,6 +3866,28 @@ var init_chat_bookmarks_client = __esm({
3821
3866
  }
3822
3867
  });
3823
3868
 
3869
+ // ts/sdk/dist/template-catalog-client.js
3870
+ var templateCatalogPath, TemplateCatalogClient;
3871
+ var init_template_catalog_client = __esm({
3872
+ "ts/sdk/dist/template-catalog-client.js"() {
3873
+ "use strict";
3874
+ init_chat_bookmarks_client();
3875
+ init_constants();
3876
+ templateCatalogPath = (orgId) => `${API_BASE2}/orgs/${orgId}/templates/catalog`;
3877
+ TemplateCatalogClient = class extends ChatBookmarksClient {
3878
+ /**
3879
+ * The published team templates this organization can hire. Open to every
3880
+ * member, people and agents alike (owners and admins also have the full
3881
+ * definitions through `listOfficialTemplates`).
3882
+ */
3883
+ async listTemplateCatalog(orgId) {
3884
+ const res = await this.request("GET", templateCatalogPath(orgId));
3885
+ return res.templates ?? [];
3886
+ }
3887
+ };
3888
+ }
3889
+ });
3890
+
3824
3891
  // ts/sdk/dist/wiki-changeset.js
3825
3892
  function normalizeWikiChangeset(changeset) {
3826
3893
  return {
@@ -3898,11 +3965,11 @@ var init_client = __esm({
3898
3965
  init_browser_viewer();
3899
3966
  init_wiki_upload();
3900
3967
  init_fetch_cause();
3901
- init_chat_bookmarks_client();
3968
+ init_template_catalog_client();
3902
3969
  init_wiki_changeset();
3903
3970
  init_pagination();
3904
3971
  init_constants();
3905
- ParallClient = class _ParallClient extends ChatBookmarksClient {
3972
+ ParallClient = class _ParallClient extends TemplateCatalogClient {
3906
3973
  baseUrl;
3907
3974
  wikiBaseUrl;
3908
3975
  token;
@@ -5706,6 +5773,19 @@ var init_client = __esm({
5706
5773
  res.url = this.absoluteMediaUrl(res.url);
5707
5774
  return res;
5708
5775
  }
5776
+ /**
5777
+ * Sign the same kind of URL for a picture a Wiki document references.
5778
+ * `src` goes as the document's renderer hands it over (written or
5779
+ * percent-encoded); the server resolves it against `document_path`, applies
5780
+ * a `rev=` pin in it over `ref`, and checks read access on the file it
5781
+ * names. A src that is not a wiki path answers 400 `NOT_WIKI_FILE`.
5782
+ */
5783
+ async getWikiDocumentImagePreviewUrl(orgId, wikiId, params) {
5784
+ const res = await this.request("POST", ENDPOINTS.WIKI_DOCUMENT_IMAGE_PREVIEW_URL(orgId, wikiId), params);
5785
+ if (res.url)
5786
+ res.url = this.absoluteMediaUrl(res.url);
5787
+ return res;
5788
+ }
5709
5789
  // ---- Wiki Path Scopes (AFCS ACL) ----
5710
5790
  async getWikiPathScopes(orgId, wikiId) {
5711
5791
  const res = await this.request("GET", ENDPOINTS.WIKI_PATH_SCOPES(orgId, wikiId));
@@ -6193,9 +6273,11 @@ var init_client = __esm({
6193
6273
  });
6194
6274
  }
6195
6275
  /** Idempotently begin deleting a hosted Cloud Profile; every repeat returns
6196
- * `202 deleting` until the pod and stored browser state are finalized. */
6197
- async deleteEdgeDevice(orgId, edgeId) {
6198
- return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId));
6276
+ * `202 deleting` until the pod and stored browser state are finalized.
6277
+ * `ifUnused` deletes only when no connection runs on it and no browser
6278
+ * profile on it is shared or granted; otherwise `409 EDGE_IN_USE`. */
6279
+ async deleteEdgeDevice(orgId, edgeId, options) {
6280
+ return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId), void 0, options?.ifUnused ? { if_unused: "true" } : void 0);
6199
6281
  }
6200
6282
  /** Move the human caller's OWN BYOC device between the org layer and their
6201
6283
  * personal layer (ADR-020). `member` takes the device — and every clip
@@ -6820,6 +6902,13 @@ var init_team_invite_types = __esm({
6820
6902
  }
6821
6903
  });
6822
6904
 
6905
+ // ts/sdk/dist/template-catalog-types.js
6906
+ var init_template_catalog_types = __esm({
6907
+ "ts/sdk/dist/template-catalog-types.js"() {
6908
+ "use strict";
6909
+ }
6910
+ });
6911
+
6823
6912
  // ts/sdk/dist/template-intake-types.js
6824
6913
  var init_template_intake_types = __esm({
6825
6914
  "ts/sdk/dist/template-intake-types.js"() {
@@ -6842,9 +6931,11 @@ var init_trigger_judge_types = __esm({
6842
6931
  });
6843
6932
 
6844
6933
  // ts/sdk/dist/action-cards.js
6934
+ var TEMPLATE_TEAM_HIRE_ACTION;
6845
6935
  var init_action_cards = __esm({
6846
6936
  "ts/sdk/dist/action-cards.js"() {
6847
6937
  "use strict";
6938
+ TEMPLATE_TEAM_HIRE_ACTION = "template.team.hire";
6848
6939
  }
6849
6940
  });
6850
6941
 
@@ -7346,6 +7437,7 @@ __export(dist_exports, {
7346
7437
  RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
7347
7438
  TEAM_SECRET_AGENT_ADD_ACTION: () => TEAM_SECRET_AGENT_ADD_ACTION,
7348
7439
  TEAM_SECRET_REQUEST_ACTION: () => TEAM_SECRET_REQUEST_ACTION,
7440
+ TEMPLATE_TEAM_HIRE_ACTION: () => TEMPLATE_TEAM_HIRE_ACTION,
7349
7441
  USER_SECRET_AGENT_ADD_ACTION: () => USER_SECRET_AGENT_ADD_ACTION,
7350
7442
  USER_SECRET_REQUEST_ACTION: () => USER_SECRET_REQUEST_ACTION,
7351
7443
  WIKI_BASE: () => WIKI_BASE,
@@ -7438,6 +7530,7 @@ var init_dist = __esm({
7438
7530
  init_task_label_types();
7439
7531
  init_chat_bookmarks_types();
7440
7532
  init_team_invite_types();
7533
+ init_template_catalog_types();
7441
7534
  init_template_intake_types();
7442
7535
  init_member_field_types();
7443
7536
  init_trigger_judge_types();
@@ -7551,6 +7644,13 @@ var init_channel_token = __esm({
7551
7644
  }
7552
7645
  });
7553
7646
 
7647
+ // ts/agent-core/dist/cli-features.js
7648
+ var init_cli_features = __esm({
7649
+ "ts/agent-core/dist/cli-features.js"() {
7650
+ "use strict";
7651
+ }
7652
+ });
7653
+
7554
7654
  // ts/agent-core/dist/config-refresh.js
7555
7655
  var init_config_refresh = __esm({
7556
7656
  "ts/agent-core/dist/config-refresh.js"() {
@@ -60817,6 +60917,7 @@ var init_dist2 = __esm({
60817
60917
  init_bridge_workspace();
60818
60918
  init_channel_capability();
60819
60919
  init_channel_token();
60920
+ init_cli_features();
60820
60921
  init_config_refresh();
60821
60922
  init_dispatch_adapter();
60822
60923
  init_runtime_observation2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.90.0",
3
+ "version": "1.92.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.90.0",
38
- "@parall/claude-agent": "1.90.0",
39
- "@parall/codex-agent": "1.90.0",
40
- "@parall/openclaw-agent": "1.90.0",
41
- "@parall/sdk": "1.90.0"
37
+ "@parall/agent-core": "1.92.0",
38
+ "@parall/claude-agent": "1.92.0",
39
+ "@parall/sdk": "1.92.0",
40
+ "@parall/codex-agent": "1.92.0",
41
+ "@parall/openclaw-agent": "1.92.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",