@parall/daemon 1.91.0 → 1.93.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.91.0",
3
- "built_at": "2026-11-12T10:49:05.814Z",
2
+ "version": "1.93.0",
3
+ "built_at": "2026-11-15T13:50:02.507Z",
4
4
  "min_node_version": "20.0.0",
5
5
  "files": {
6
6
  "bb-browser-daemon.js": {
@@ -16,29 +16,29 @@
16
16
  "size": 18
17
17
  },
18
18
  "parall-browser-pod.js": {
19
- "sha256": "a278a36d315cfe8a0fea395bb3f5f6fb6cd16de65e5ebc278672fc7854e2c466",
20
- "size": 3102056
19
+ "sha256": "503aa19c8aad4af1fe79dfa031ce4dbf798a7aa7032135b07afd27737d1b84ee",
20
+ "size": 3105670
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "3a39c2ced4f4e8ecf9283b77efa028bd28fa08d61e8d2e3f20700c0a4f61e792",
24
24
  "size": 9223
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "c5cddec08b719db5d2f7e36b52dc783436b426985b34b0a80512fb9057a16da0",
28
- "size": 3126053
27
+ "sha256": "015b60e60f28268d757457b278696de2448c5e7b176f3d8c345f8ca13b0a030b",
28
+ "size": 3142866
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "3c38d3add6c0a55ac284d891ce063fdef8314d7d8ab239196c65a43122c226fa",
32
- "size": 3135538
31
+ "sha256": "ec33a2f049eb12d18361e72a67e0f0056d54df8ae022c9212b8392b2d177f936",
32
+ "size": 3151433
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "b05e1083315d6f504fa1d09d24e2a07ece3cd06088dd3e03c10dfacca35c29aa",
36
- "size": 3301874
35
+ "sha256": "d0158ba506866c1253fdeabad55f9876d4cf49eef12a171836a3303380076bf6",
36
+ "size": 3307529
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "27qJU7kn4N/kQC2rT5p2HrSV0XGmWgDHFA/pQLhaahG5dbN8jpvLrd/GoiY30RSs1LCWXygbwgpEHZKk2/bGAw=="
43
+ "signature": "3p9uledRj/dZqfkVqo3aezxTYQS3UNBFi6OiqoDYccy/Gri540vJv7M62aQ/i1Vn3r+QSAaWk4WwIT1na4uZDQ=="
44
44
  }
@@ -64399,6 +64399,8 @@ var clipConnectionEndpoints = {
64399
64399
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
64400
64400
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
64401
64401
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
64402
+ /** Who among the org's agents may use one account (per-account setting). */
64403
+ CLIP_CONNECTION_AGENT_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/agent-access`,
64402
64404
  CLIP_CONNECTION: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}`,
64403
64405
  /** The caller's own (person-owned) connections; login session only. */
64404
64406
  ORG_MY_CONNECTIONS: (orgId) => `/api/v1/orgs/${orgId}/me/connections`,
@@ -64667,6 +64669,7 @@ var ENDPOINTS = {
64667
64669
  AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
64668
64670
  AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
64669
64671
  AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
64672
+ AGENT_LLM_USAGE: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/llm-usage`,
64670
64673
  ...secretEndpoints(API_BASE2),
64671
64674
  AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
64672
64675
  AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
@@ -65638,8 +65641,16 @@ var MiniAppAccessClient = class extends MiniAppActionClient {
65638
65641
  async removeMiniAppAccessGrant(orgId, appId, userId) {
65639
65642
  return this.request("DELETE", `${access(orgId, appId)}/grants/${encodeURIComponent(userId)}`);
65640
65643
  }
65641
- /** The change record, newest first: member_access, the access list and
65642
- * the author roster. */
65644
+ /** Puts a team of the organization on the app's access list, or changes
65645
+ * its level: everyone the team reaches gets at least that much. */
65646
+ async setMiniAppAccessTeamGrant(orgId, appId, teamId, level) {
65647
+ return this.request("PUT", `${access(orgId, appId)}/team-grants/${encodeURIComponent(teamId)}`, { access: level });
65648
+ }
65649
+ async removeMiniAppAccessTeamGrant(orgId, appId, teamId) {
65650
+ return this.request("DELETE", `${access(orgId, appId)}/team-grants/${encodeURIComponent(teamId)}`);
65651
+ }
65652
+ /** The change record, newest first: member_access, the access list (people
65653
+ * and teams) and the author roster. */
65643
65654
  async getMiniAppAccessLog(orgId, appId, query = {}) {
65644
65655
  const response = await this.request("GET", `${access(orgId, appId)}/log`, void 0, { limit: query.limit, before_id: query.before_id });
65645
65656
  return response.data;
@@ -65869,6 +65880,10 @@ var ClipConnectionClient = class extends ChannelConversationClient {
65869
65880
  };
65870
65881
  return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
65871
65882
  }
65883
+ /** Server-resolved hosted authorization; no client URL or secret fields. */
65884
+ async connectManagedMCP(orgId, clipId, alias, target) {
65885
+ return this.request(target ? "PUT" : "POST", target ? ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, target.config_id) : ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), { auth_type: "managed", ...alias ? { alias } : {} }, void 0, false, { headers: target ? { "If-Match": `"${target.version}"` } : void 0, timeoutMs: 11e4 });
65886
+ }
65872
65887
  // ---- Clip connections ----
65873
65888
  /** Missing keys are unknown/hidden; present empty arrays are known empty. */
65874
65889
  async listClipMCPSummaries(orgId, clipIds) {
@@ -65907,6 +65922,17 @@ var ClipConnectionClient = class extends ChannelConversationClient {
65907
65922
  async putClipConnectionAccess(orgId, connId, input) {
65908
65923
  return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_ACCESS(orgId, connId), input);
65909
65924
  }
65925
+ /** Who among the org's agents may use this account. Any org member may read. */
65926
+ async getClipConnectionAgentAccess(orgId, connId) {
65927
+ return this.request("GET", ENDPOINTS.CLIP_CONNECTION_AGENT_ACCESS(orgId, connId));
65928
+ }
65929
+ /**
65930
+ * Replace this account's agent access. Human org owner/admin only (JWT or
65931
+ * personal key); saving `selected` also turns `org_public` off.
65932
+ */
65933
+ async putClipConnectionAgentAccess(orgId, connId, input) {
65934
+ return this.request("PUT", ENDPOINTS.CLIP_CONNECTION_AGENT_ACCESS(orgId, connId), input);
65935
+ }
65910
65936
  /** Start OAuth using the reviewed platform app or provider registration ladder.
65911
65937
  * Allow discovery (30s), persistence (10s), and network overhead to finish. */
65912
65938
  async createClipMCPOAuthConnection(orgId, clipId, serverUrl, alias, oauthClient) {
@@ -66359,10 +66385,25 @@ var AgentOwningTeamClient = class extends AgentTeamOnlyClient {
66359
66385
  }
66360
66386
  };
66361
66387
 
66388
+ // ts/sdk/dist/runtime-auth-llm-usage-client.js
66389
+ var RuntimeAuthLlmUsageClient = class extends AgentOwningTeamClient {
66390
+ /**
66391
+ * Record one batch of usage. The agent's own API key only (403 AGENT_ONLY
66392
+ * otherwise); 204 also for a batch already recorded; 400 for a batch out of
66393
+ * bounds; 409 LLM_ROUTE_NOT_RUNTIME_AUTH when the agent's model route is
66394
+ * not runtime_auth. A server without the endpoint answers 404 with no error
66395
+ * code. Every refusal surfaces as an ApiError with its status and code: what
66396
+ * to do about it is the caller's decision.
66397
+ */
66398
+ async reportRuntimeAuthLlmUsage(orgId, report, opts) {
66399
+ await this.request("POST", ENDPOINTS.AGENT_LLM_USAGE(orgId), report, void 0, false, opts);
66400
+ }
66401
+ };
66402
+
66362
66403
  // ts/sdk/dist/team-graph-client.js
66363
- var TeamGraphClient = class extends AgentOwningTeamClient {
66404
+ var TeamGraphClient = class extends RuntimeAuthLlmUsageClient {
66364
66405
  async getTeamGraph(orgId, opts) {
66365
- const query = opts?.includeAccess ? "?include=access" : "";
66406
+ const query = opts?.includeAccess ? "?include=access&include=apps" : "";
66366
66407
  return this.request("GET", `${ENDPOINTS.TEAM_GRAPH(orgId)}${query}`);
66367
66408
  }
66368
66409
  /**
@@ -66372,9 +66413,12 @@ var TeamGraphClient = class extends AgentOwningTeamClient {
66372
66413
  * would refuse, with the same codes. 503 when it cannot compute the whole answer
66373
66414
  * (`TEAM_MOVE_PREVIEW_WIKI_UNAVAILABLE`, `TEAM_MOVE_PREVIEW_TIMEOUT`,
66374
66415
  * `TEAM_MOVE_PREVIEW_TOO_LARGE`). Send `tree_revision` back on `setTeamParent`.
66416
+ * Asks for Mini Apps too (`include=apps`): without it, a move that changes
66417
+ * someone's access to an app answers 503 `TEAM_MOVE_PREVIEW_APPS_UNSUPPORTED`
66418
+ * (mini-app-access-team-grants-design.md §5).
66375
66419
  */
66376
66420
  async previewTeamMove(orgId, teamId, parentTeamId) {
66377
- return this.request("POST", ENDPOINTS.TEAM_PARENT_PREVIEW(orgId, teamId), {
66421
+ return this.request("POST", `${ENDPOINTS.TEAM_PARENT_PREVIEW(orgId, teamId)}?include=apps`, {
66378
66422
  parent_team_id: parentTeamId
66379
66423
  });
66380
66424
  }
@@ -66629,6 +66673,20 @@ var ChatBookmarksClient = class extends WikiPageShareClient {
66629
66673
  }
66630
66674
  };
66631
66675
 
66676
+ // ts/sdk/dist/template-catalog-client.js
66677
+ var templateCatalogPath = (orgId) => `${API_BASE2}/orgs/${orgId}/templates/catalog`;
66678
+ var TemplateCatalogClient = class extends ChatBookmarksClient {
66679
+ /**
66680
+ * The published team templates this organization can hire. Open to every
66681
+ * member, people and agents alike (owners and admins also have the full
66682
+ * definitions through `listOfficialTemplates`).
66683
+ */
66684
+ async listTemplateCatalog(orgId) {
66685
+ const res = await this.request("GET", templateCatalogPath(orgId));
66686
+ return res.templates ?? [];
66687
+ }
66688
+ };
66689
+
66632
66690
  // ts/sdk/dist/wiki-changeset.js
66633
66691
  function normalizeWikiChangeset(changeset) {
66634
66692
  return {
@@ -66664,7 +66722,7 @@ function legacyHeartbeatFromReport(report) {
66664
66722
  detectedRuntimes
66665
66723
  };
66666
66724
  }
66667
- var ParallClient = class _ParallClient extends ChatBookmarksClient {
66725
+ var ParallClient = class _ParallClient extends TemplateCatalogClient {
66668
66726
  baseUrl;
66669
66727
  wikiBaseUrl;
66670
66728
  token;
@@ -68968,9 +69026,11 @@ var ParallClient = class _ParallClient extends ChatBookmarksClient {
68968
69026
  });
68969
69027
  }
68970
69028
  /** Idempotently begin deleting a hosted Cloud Profile; every repeat returns
68971
- * `202 deleting` until the pod and stored browser state are finalized. */
68972
- async deleteEdgeDevice(orgId, edgeId) {
68973
- return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId));
69029
+ * `202 deleting` until the pod and stored browser state are finalized.
69030
+ * `ifUnused` deletes only when no connection runs on it and no browser
69031
+ * profile on it is shared or granted; otherwise `409 EDGE_IN_USE`. */
69032
+ async deleteEdgeDevice(orgId, edgeId, options) {
69033
+ return this.request("DELETE", ENDPOINTS.ORG_EDGE_DEVICE(orgId, edgeId), void 0, options?.ifUnused ? { if_unused: "true" } : void 0);
68974
69034
  }
68975
69035
  /** Move the human caller's OWN BYOC device between the org layer and their
68976
69036
  * personal layer (ADR-020). `member` takes the device — and every clip
@@ -69203,9 +69263,8 @@ var ParallClient = class _ParallClient extends ChatBookmarksClient {
69203
69263
  }
69204
69264
  async createClipMCPConnection(orgId, clipId, req) {
69205
69265
  return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
69206
- // A card may start OAuth: allow discovery (30s) and persistence like
69207
- // createClipMCPOAuthConnection.
69208
- timeoutMs: "approval_id" in req ? 5e4 : 4e4
69266
+ // Managed no-auth cards also perform a bounded session probe and completion.
69267
+ timeoutMs: "approval_id" in req ? 11e4 : 4e4
69209
69268
  });
69210
69269
  }
69211
69270
  /** Delete one MCP config and its paired connection. */
@@ -69232,8 +69291,8 @@ var ParallClient = class _ParallClient extends ChatBookmarksClient {
69232
69291
  void 0,
69233
69292
  void 0,
69234
69293
  false,
69235
- // Same fixed 30s server-side probe budget as PUT (see putClipMCPConfig).
69236
- { timeoutMs: 4e4 }
69294
+ // Managed refresh includes account readback and session creation (60s).
69295
+ { timeoutMs: 7e4 }
69237
69296
  );
69238
69297
  }
69239
69298
  // ---- Deprecated method aliases (External* → Trigger* rename; same endpoints) ----
@@ -69438,6 +69497,9 @@ var dispatchContextStorage = new AsyncLocalStorage();
69438
69497
  // ts/agent-core/dist/gateway/lane-flow.js
69439
69498
  var TYPED_BACKOFF_CAP_MS = 5 * 6e4;
69440
69499
 
69500
+ // ts/agent-core/dist/gateway/runtime-usage-reporter.js
69501
+ var DEFAULT_INTERVAL_MS = 5 * 6e4;
69502
+
69441
69503
  // ts/agent-core/dist/http-keepalive.js
69442
69504
  var import_undici = __toESM(require_undici(), 1);
69443
69505